@yomotech/view-toolkit 1.0.38 → 1.0.39

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.
@@ -5116,6 +5116,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
5116
5116
  type: Output
5117
5117
  }] } });
5118
5118
 
5119
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-19
5120
+ // - fix: the open list stays inside the page frame (fitList) - it flipped over the dialog's top edge (F15)
5119
5121
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18
5120
5122
  // - change: vl-autocomplete is the one selection list of the library (step 4.4, #166) - form, dialog,
5121
5123
  // card and grid use it instead of their own copies of p-autocomplete. The container hands over the
@@ -5128,7 +5130,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
5128
5130
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13
5129
5131
  // - fix: the placeholder comes through PlaceholderPipe (vlPlaceholder): empty when the project has
5130
5132
  // none, it showed "undefined"
5133
+ /** Room between the list and the field / the frame's edges, and the shortest list. */
5134
+ const FRAME_GAP = 4;
5135
+ const MIN_LIST = 96;
5131
5136
  class Autocomplete {
5137
+ host;
5132
5138
  /** the field of the layout (scope, option, label) */
5133
5139
  field;
5134
5140
  /** editing: the object whose value is the choice (the property in the property schema) */
@@ -5155,6 +5161,9 @@ class Autocomplete {
5155
5161
  autocomplete;
5156
5162
  suggestions = [];
5157
5163
  lastQuery = null;
5164
+ constructor(host) {
5165
+ this.host = host;
5166
+ }
5158
5167
  /** the name of the field in the entries (the property's name, "workOrderNo") */
5159
5168
  get key() {
5160
5169
  return (this.field?.scope?.reference ?? '').split('/').pop() ?? '';
@@ -5173,11 +5182,19 @@ class Autocomplete {
5173
5182
  complete(event) {
5174
5183
  this.lastQuery = event?.query ?? '';
5175
5184
  this.suggestions = this.filter(this.lastQuery);
5185
+ this.refit();
5186
+ }
5187
+ /** The entries changed while the list is open: its height and so its place change too. */
5188
+ refit() {
5189
+ if (this.host.nativeElement.querySelector('.p-autocomplete-overlay') || document.querySelector('.p-autocomplete-overlay')) {
5190
+ setTimeout(() => this.fitList());
5191
+ }
5176
5192
  }
5177
5193
  /** the list arrived while open: show it for what was typed meanwhile */
5178
5194
  ngOnChanges(changes) {
5179
5195
  if (changes['list'] && this.lastQuery !== null) {
5180
5196
  this.suggestions = this.filter(this.lastQuery);
5197
+ this.refit();
5181
5198
  }
5182
5199
  }
5183
5200
  filter(query) {
@@ -5188,6 +5205,46 @@ class Autocomplete {
5188
5205
  return v !== undefined && v !== null && `${v}`.toLowerCase().startsWith(q);
5189
5206
  });
5190
5207
  }
5208
+ /**
5209
+ * (onShow): the list stays inside the page frame - the dialog, else the window - and above a
5210
+ * keyboard docked below. It opens to the side with more room and gets shorter (scrolls) when the
5211
+ * room is small. Before, the list flipped upwards over the dialog's top edge up to the status bar
5212
+ * (phone in landscape, keyboard beside the dialog - test F15).
5213
+ */
5214
+ fitList() {
5215
+ requestAnimationFrame(() => {
5216
+ const input = this.host.nativeElement.querySelector('input');
5217
+ const overlay = this.host.nativeElement.querySelector('.p-autocomplete-overlay')
5218
+ ?? [...document.querySelectorAll('.p-autocomplete-overlay')].pop();
5219
+ const list = overlay?.querySelector('.p-autocomplete-list-container') ?? overlay;
5220
+ if (!input || !overlay || !list)
5221
+ return;
5222
+ const field = input.getBoundingClientRect();
5223
+ const dialog = input.closest('.p-dialog')?.getBoundingClientRect();
5224
+ let top = dialog ? dialog.top : 0;
5225
+ let bottom = dialog ? dialog.bottom : window.innerHeight;
5226
+ // a keyboard docked below the field limits the room downwards
5227
+ const keyboard = document.querySelector('section[data-vl-custom-keyboard]')?.getBoundingClientRect();
5228
+ if (keyboard && keyboard.top > field.bottom && keyboard.left < field.right && keyboard.right > field.left) {
5229
+ bottom = Math.min(bottom, keyboard.top);
5230
+ }
5231
+ top += FRAME_GAP;
5232
+ bottom -= FRAME_GAP;
5233
+ const below = bottom - field.bottom - FRAME_GAP;
5234
+ const above = field.top - top - FRAME_GAP;
5235
+ // only a cap: the entries often arrive after the list opened (it is empty at first)
5236
+ const downwards = below >= MIN_LIST || below >= above;
5237
+ const room = Math.max(MIN_LIST, downwards ? below : above);
5238
+ list.style.maxHeight = `${room}px`;
5239
+ // PrimeNG places the outer .p-overlay (absolute, in the body) - that one is moved
5240
+ const placed = overlay.closest('.p-overlay') ?? overlay;
5241
+ const height = placed.getBoundingClientRect().height;
5242
+ const wanted = downwards ? field.bottom + FRAME_GAP : field.top - FRAME_GAP - height;
5243
+ const now = placed.getBoundingClientRect().top;
5244
+ const current = parseFloat(getComputedStyle(placed).top) || 0;
5245
+ placed.style.top = `${current + (wanted - now)}px`;
5246
+ });
5247
+ }
5191
5248
  changed(value) {
5192
5249
  if (value && typeof value === 'object' && Object.keys(value).length) {
5193
5250
  this.picked.emit(value);
@@ -5211,13 +5268,13 @@ class Autocomplete {
5211
5268
  return `${value[this.optionLabel] ?? value[this.key] ?? ''}` || '--';
5212
5269
  return `${value}`;
5213
5270
  }
5214
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: Autocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component });
5215
- 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-18\r\n - change: the one selection list of the library (autocomplete and combobox), #166 step 4.4 -->\r\n<ng-container *ngIf=\"!readonly; else shownText\">\r\n <p-autocomplete #ac=\"ngModel\" [name]=\"field?.scope?.reference\" styleClass=\"custom-autocomplete\"\r\n [(ngModel)]=\"target.value\" (ngModelChange)=\"changed($event)\"\r\n [suggestions]=\"suggestions\" (completeMethod)=\"complete($event)\"\r\n [emptyMessage]=\"emptyText\" [showEmptyMessage]=\"true\" [dropdown]=\"true\"\r\n [forceSelection]=\"forceSelection\" [optionLabel]=\"optionLabel\"\r\n [required]=\"(field | vlRules).required\" [disabled]=\"field?.option?.disabled\"\r\n [placeholder]=\"placeholder()\" [vlCustomKeyboard]=\"keyboard\"\r\n [style]=\"inputStyle\" [class]=\"inputClass\">\r\n </p-autocomplete>\r\n <p class=\"text-danger vl-autocomplete__error\" *ngIf=\"showError()\">{{ message() }}</p>\r\n</ng-container>\r\n<ng-template #shownText>\r\n <span class=\"vl-autocomplete__text\">{{ shown(value) }}</span>\r\n</ng-template>\r\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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i2$3.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]] }] });
5271
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: Autocomplete, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
5272
+ 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-18\r\n - change: the one selection list of the library (autocomplete and combobox), #166 step 4.4\r\n 2026-10-19: the open list stays inside the page frame (fitList, test F15) -->\r\n<ng-container *ngIf=\"!readonly; else shownText\">\r\n <p-autocomplete #ac=\"ngModel\" [name]=\"field?.scope?.reference\" styleClass=\"custom-autocomplete\"\r\n [(ngModel)]=\"target.value\" (ngModelChange)=\"changed($event)\"\r\n [suggestions]=\"suggestions\" (completeMethod)=\"complete($event)\"\r\n [emptyMessage]=\"emptyText\" [showEmptyMessage]=\"true\" [dropdown]=\"true\"\r\n [forceSelection]=\"forceSelection\" [optionLabel]=\"optionLabel\"\r\n [required]=\"(field | vlRules).required\" [disabled]=\"field?.option?.disabled\"\r\n [placeholder]=\"placeholder()\" [vlCustomKeyboard]=\"keyboard\"\r\n [style]=\"inputStyle\" [class]=\"inputClass\" (onShow)=\"fitList()\">\r\n </p-autocomplete>\r\n <p class=\"text-danger vl-autocomplete__error\" *ngIf=\"showError()\">{{ message() }}</p>\r\n</ng-container>\r\n<ng-template #shownText>\r\n <span class=\"vl-autocomplete__text\">{{ shown(value) }}</span>\r\n</ng-template>\r\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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i2$3.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]] }] });
5216
5273
  }
5217
5274
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: Autocomplete, decorators: [{
5218
5275
  type: Component,
5219
- 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-18\r\n - change: the one selection list of the library (autocomplete and combobox), #166 step 4.4 -->\r\n<ng-container *ngIf=\"!readonly; else shownText\">\r\n <p-autocomplete #ac=\"ngModel\" [name]=\"field?.scope?.reference\" styleClass=\"custom-autocomplete\"\r\n [(ngModel)]=\"target.value\" (ngModelChange)=\"changed($event)\"\r\n [suggestions]=\"suggestions\" (completeMethod)=\"complete($event)\"\r\n [emptyMessage]=\"emptyText\" [showEmptyMessage]=\"true\" [dropdown]=\"true\"\r\n [forceSelection]=\"forceSelection\" [optionLabel]=\"optionLabel\"\r\n [required]=\"(field | vlRules).required\" [disabled]=\"field?.option?.disabled\"\r\n [placeholder]=\"placeholder()\" [vlCustomKeyboard]=\"keyboard\"\r\n [style]=\"inputStyle\" [class]=\"inputClass\">\r\n </p-autocomplete>\r\n <p class=\"text-danger vl-autocomplete__error\" *ngIf=\"showError()\">{{ message() }}</p>\r\n</ng-container>\r\n<ng-template #shownText>\r\n <span class=\"vl-autocomplete__text\">{{ shown(value) }}</span>\r\n</ng-template>\r\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"] }]
5220
- }], propDecorators: { field: [{
5276
+ 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-18\r\n - change: the one selection list of the library (autocomplete and combobox), #166 step 4.4\r\n 2026-10-19: the open list stays inside the page frame (fitList, test F15) -->\r\n<ng-container *ngIf=\"!readonly; else shownText\">\r\n <p-autocomplete #ac=\"ngModel\" [name]=\"field?.scope?.reference\" styleClass=\"custom-autocomplete\"\r\n [(ngModel)]=\"target.value\" (ngModelChange)=\"changed($event)\"\r\n [suggestions]=\"suggestions\" (completeMethod)=\"complete($event)\"\r\n [emptyMessage]=\"emptyText\" [showEmptyMessage]=\"true\" [dropdown]=\"true\"\r\n [forceSelection]=\"forceSelection\" [optionLabel]=\"optionLabel\"\r\n [required]=\"(field | vlRules).required\" [disabled]=\"field?.option?.disabled\"\r\n [placeholder]=\"placeholder()\" [vlCustomKeyboard]=\"keyboard\"\r\n [style]=\"inputStyle\" [class]=\"inputClass\" (onShow)=\"fitList()\">\r\n </p-autocomplete>\r\n <p class=\"text-danger vl-autocomplete__error\" *ngIf=\"showError()\">{{ message() }}</p>\r\n</ng-container>\r\n<ng-template #shownText>\r\n <span class=\"vl-autocomplete__text\">{{ shown(value) }}</span>\r\n</ng-template>\r\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"] }]
5277
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { field: [{
5221
5278
  type: Input
5222
5279
  }], target: [{
5223
5280
  type: Input
@@ -6935,7 +6992,7 @@ class CardComponent {
6935
6992
  return resolveCustomKeyboardType(field?.option, property);
6936
6993
  }
6937
6994
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CardComponent, deps: [{ token: UtilityService }, { token: i1$2.Platform }, { token: i1$1.HttpClient }, { token: ConfigService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i5.NzModalService }, { token: NotificationService }, { token: i7.OAuthService }, { token: RequestService }], target: i0.ɵɵFactoryTarget.Component });
6938
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CardComponent, isStandalone: true, selector: "vl-card", inputs: { itemInfo: "itemInfo", currentPage: "currentPage", pageSize: "pageSize", selectedLanguageInfo: "selectedLanguageInfo", mobileDisplay: "mobileDisplay", scrollPagination: "scrollPagination", pages: "pages", paginationMode: "paginationMode", paginationLoading: "paginationLoading" }, outputs: { cardButtonClick: "cardButtonClick", cardHeaderButtonClick: "cardHeaderButtonClick", linkDetails: "linkDetails", imageDetails: "imageDetails", onPageSizeChange: "onPageSizeChange", onPageChange: "onPageChange", cardDataChange: "cardDataChange" }, host: { listeners: { "window:resize": "onWindowResize()" } }, viewQueries: [{ propertyName: "scrollPaginationSentinel", first: true, predicate: ["scrollPaginationSentinel"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\r\n record's tick), numbers with their label (#166, tests F8-F11)\r\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\r\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\r\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\r\n - change: media fields are the one vl-media (#166 step 4.4)\r\n - change: the date filter is the one vl-datetime (#166 step 4.4)\r\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\r\n - change: check boxes with vl-checkbox (#166 step 4.4)\r\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\r\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\r\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\r\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\r\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\r\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\r\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\r\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\r\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\r\n card without texts)\r\n - fix: the price fields read ...?.format.currency; a property without format threw the same\r\n way (luv2shop: no prices, cards cut off) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\r\n project defines none; it showed the text \"undefined\" -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\r\n names another one ('native' keeps the system keyboard)\r\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\r\n\r\n<!-- shuaib 2026-09-24\r\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment naming the types this container does not render. It carries four\r\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\r\n\r\n<!-- @contract gap: dateRange, quantity, credit card\r\n reality: a card renders string, number, image, date, time, dropdown, boolean and\r\n autocomplete. Legacy checkbox fields normalize to boolean. dropdown and boolean arrived on 2026-09-18; before that a card\r\n dropped them silently.\r\n failure: a field of a missing type renders empty, with no error.\r\n instead: quantity is grid-only by design; for a dateRange or a credit card use a modal.\r\n seen: this file carries four switch blocks (lines 23, 94, 267, 488) and none of them has\r\n a case for those three - the gap belongs to the container, not to one block -->\r\n\r\n<!-- Loader Spinner -->\r\n\r\n<div *ngIf=\"isLoading\" class=\"loader-overlay\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n<div class=\"vl-card-runtime\">\r\n <!-- top pagination on card -->\r\n <div *ngIf=\"\r\n itemInfo?.layoutSchema?.pagination?.visible &&\r\n itemInfo?.layoutSchema?.pagination?.top\r\n \" class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"itemInfo\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\r\n [currentPage]=\"currentPage\" [pages]=\"pages\"\r\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\r\n (onGoToPage)=\"invokeGoToPage($event)\">\r\n </vl-pagination>\r\n </div>\r\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.header?.style\r\n ).classes\">\r\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index\"\r\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"element.option?.innerAction && element.option?.innerAction === 'saveAll' && !displayedRecords?.length ? \r\n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\r\n\r\n <!-- LABEL -->\r\n <span *ngIf=\"element.label?.caption\"\r\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\r\n [class]=\"element.label?.style?.classes?.[0]\">\r\n {{ element.label.caption }}\r\n </span>\r\n </div>\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\">\r\n <span *ngIf=\"element.option.protected\"\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">\r\n <vl-string [formField]=\"element\"\r\n [modalItemInfo]=\"itemInfo\">\r\n </vl-string>\r\n </span>\r\n <div *ngIf=\"!element.option.protected\"\r\n [class]=\"element?.layout == 'horizontal' ? 'horizontal-layout' : ''\"\r\n [ngClass]=\"element?.style?.classes[0]\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">{{\r\n element.label?.value\r\n ?\r\n element.label?.value : element.label?.caption ?\r\n element.label?.caption :\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}</label>\r\n <vl-datetime kind=\"date\" [field]=\"element\" [target]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(element, itemInfo.propertySchema)\"\r\n [inputClass]=\"element?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(element?.scope?.style).style\"\r\n (changed)=\"dateChangeEvent(element, $event)\"></vl-datetime>\r\n </div>\r\n </div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\r\n (click)=\"invokeOnCardHeader(element)\">\r\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [matTooltip]=\"element?.option?.tooltip || ''\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\r\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\r\n <ng-container\r\n *ngIf=\"!element.caption; else headerTextContent\">\r\n <i nz-icon [nzType]=\"element.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #headerTextContent>{{ element.caption\r\n }}</ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.layoutSchema?.style\r\n ).classes\">\r\n <div *ngFor=\"let record of displayedRecords; let k = index\"\r\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\">\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\r\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\r\n class=\"card-layout-item\" [ngStyle]=\"\r\n layout?.type === 'HorizontalLayout'\r\n ? {}\r\n : getStyleWithoutClasses(layout?.style).style\r\n \" [class]=\"\r\n layout?.type === 'HorizontalLayout'\r\n ? ''\r\n : getStyleWithoutClasses(layout?.style).classes\r\n \">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(layout?.scope?.reference && itemInfo.propertySchema[getScope(layout.scope?.reference)] ? itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.type : layout?.type == 'HorizontalLayout' ? 'HorizontalLayout' : 'default')\">\r\n <!-- Media Control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <ng-container\r\n *ngTemplateOutlet=\"mediaContent; context: { layout: layout, record: record }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">\r\n {{ getHorizontalLayoutCaption(layout) }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n @if(layout.option && layout.option.control &&\r\n !layout.option.protected){\r\n @switch (layout.option.control) {\r\n @case ('textInput') {\r\n <!-- the text shows also when the field is not locked; a card lists, editing is in the dialog (#166) -->\r\n <p\r\n [ngStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n record?.[layout.scope?.reference.split('/').pop()]\r\n ??\r\n itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ??\r\n '--'\r\n }}\r\n </p>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\">\r\n </vl-password>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n @case('textArea'){\r\n <vl-textarea [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\">\r\n </vl-textarea>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"layout\" type=\"flag\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-switch>\r\n }\r\n\r\n @case('radiobutton') {\r\n <vl-radio [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-radio>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(layout?.label?.style).style\">{{ layout.label?.value || layout.label?.caption || itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.style).style\" [inputClass]=\"layout.style?.classes ? layout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n }\r\n }@else {\r\n <!-- a locked value through the read-only building block: password as dots, the radio's text,\r\n the tick from the record (#166, tests F8-F10) -->\r\n@switch (layout.option?.control) {\r\n@case ('password') { <vl-password [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-password> }\r\n@case ('textArea') { <vl-textarea [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-textarea> }\r\n@case ('radiobutton') { <vl-radio [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-radio> }\r\n@case ('dropdown') { <vl-dropdown [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-dropdown> }\r\n@case ('switch') { <vl-switch [field]=\"layout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch> }\r\n@case ('checkbox') { <vl-checkbox [field]=\"layout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-checkbox> }\r\n@default {\r\n<p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [ngStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n record?.[layout.scope?.reference.split('/').pop()]\r\n ??\r\n itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ??\r\n '--'\r\n }}\r\n </p>\r\n}\r\n}\r\n }\r\n\r\n </div>\r\n\r\n <!-- Date Control -->\r\n <div *ngSwitchCase=\"'date'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n <!-- LABEL -->\r\n <span *ngIf=\"layout?.label?.caption\"\r\n [class]=\"layout.label?.style?.classes?.[0]\">\r\n {{ layout.label.caption }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n (record?.[layout.scope?.reference.split('/').pop()] | vlDateText: cardDateKind(layout) : layout.option)\r\n || itemInfo.propertySchema[\r\n getScope(layout.scope?.reference)\r\n ]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ?? '--'\r\n }}\r\n </p>\r\n </div>\r\n\r\n <!-- Time Control -->\r\n <div *ngSwitchCase=\"'time'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span *ngIf=\"layout?.label?.caption\"\r\n [class]=\"layout.label?.style?.classes?.[0]\">\r\n {{ layout.label.caption }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n (record?.[layout.scope?.reference.split('/').pop()] | vlDateText: 'time' : layout.option)\r\n || itemInfo.propertySchema[\r\n getScope(layout.scope?.reference)\r\n ]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ?? '--'\r\n }}\r\n </p>\r\n </div>\r\n\r\n <!-- number Control -->\r\n <div *ngSwitchCase=\"'number'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the number's label (#166, test F11) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\" [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">{{ getHorizontalLayoutCaption(layout) }}</span>\r\n <!-- VALUE -->\r\n @if(layout.option && layout.option.control &&\r\n !layout.option.protected){\r\n @switch (layout.option.control) {\r\n @case ('textInput') {\r\n <h3 [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n }\r\n @case ('slider') {\r\n <vl-number [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-number>\r\n }\r\n @case ('spinner') {\r\n <vl-number [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-number>\r\n }\r\n }\r\n } @else{\r\n <h3 [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n }\r\n\r\n </div>\r\n\r\n <!-- dropdown Control -->\r\n <div *ngSwitchCase=\"'dropdown'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(layout?.label?.style).style\">{{ layout.label?.value || layout.label?.caption || itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.style).style\" [inputClass]=\"layout.style?.classes ? layout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- autocomplete Control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <h3\r\n *ngIf=\"itemInfo.propertySchema[getScope(layout.scope?.reference)] && itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.format?.currency\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n </h3>\r\n </div>\r\n\r\n <!-- checkbox Control -->\r\n <div *ngSwitchCase=\"'boolean'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the record's value, read only, with its label (#166, test F9) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\" [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">{{ getHorizontalLayoutCaption(layout) }}</span>\r\n@if (layout.option?.control === 'switch') {\r\n<vl-switch [field]=\"layout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch>\r\n} @else {\r\n<vl-checkbox [field]=\"layout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-checkbox>\r\n}\r\n</div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <button [attr.data-vl-action]=\"vlAction(layout?.option)\" [attr.data-vl-writes]=\"vlWrites(layout?.option)\"\r\n [style]=\"getStyleWithoutClasses(layout?.style).style\"\r\n [class]=\"layout.option.protected ? 'disabled-button' : getStyleWithoutClasses(layout?.style).classes\"\r\n (click)=\"\r\n invokeButtonClick(\r\n layout,\r\n record,\r\n getRecordIndex(record)\r\n )\r\n\">\r\n <ng-container\r\n *ngIf=\"!layout.caption; else textContent\">\r\n <i nz-icon [nzType]=\"layout.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>\r\n {{ layout.caption }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n\r\n <!-- HorizontalLayout Control -->\r\n <div *ngSwitchCase=\"'HorizontalLayout'\">\r\n <div class=\"card-horizontal-layout\"\r\n [class]=\"getStyleWithoutClasses(\r\n layout?.style\r\n ).classes\" [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\r\n <ng-container\r\n *ngFor=\"let innerLayout of layout.elements\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(innerLayout.scope?.reference && itemInfo.propertySchema[getScope(innerLayout.scope?.reference)] ? itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n <!-- Media Control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"mediaContent; context: {\r\n layout: innerLayout,\r\n record: record\r\n }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n @if(innerLayout.option &&\r\n innerLayout.option.control &&\r\n !innerLayout.option.protected){\r\n @switch\r\n (innerLayout.option.control)\r\n {\r\n @case ('textInput') {\r\n <!-- the text shows also when the field is not locked (#166) -->\r\n <h3\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n\r\n <!-- DATE FORMAT -->\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.dateFormat; else checkInnerTime\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n | date:\r\n innerLayout.option.dateFormat)\r\n : '--' }}\r\n </ng-container>\r\n\r\n <!-- TIME FORMAT -->\r\n <ng-template\r\n #checkInnerTime>\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.timeFormat; else normalInnerValue\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n |\r\n date:\r\n innerLayout.option.timeFormat)\r\n : '--' }}\r\n </ng-container>\r\n </ng-template>\r\n\r\n <!-- NORMAL STRING -->\r\n <ng-template\r\n #normalInnerValue>\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ??\r\n '--' }}\r\n </ng-template>\r\n </h3>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\">\r\n </vl-password>\r\n }\r\n @case ('combobox') {\r\n\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n @case('textArea'){\r\n <vl-textarea [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\">\r\n </vl-textarea>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-switch>\r\n }\r\n\r\n @case('radiobutton') {\r\n <vl-radio [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-radio>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(innerLayout?.label?.style).style\">{{ innerLayout.label?.value || innerLayout.label?.caption || itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\" [inputClass]=\"innerLayout.style?.classes ? innerLayout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n }\r\n }@else{\r\n\r\n <!-- a locked value through the read-only building block: password as dots, the radio's text,\r\n the tick from the record (#166, tests F8-F10) -->\r\n@switch (innerLayout.option?.control) {\r\n@case ('password') { <vl-password [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-password> }\r\n@case ('textArea') { <vl-textarea [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-textarea> }\r\n@case ('radiobutton') { <vl-radio [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-radio> }\r\n@case ('dropdown') { <vl-dropdown [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-dropdown> }\r\n@case ('switch') { <vl-switch [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch> }\r\n@case ('checkbox') { <vl-checkbox [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-checkbox> }\r\n@default {\r\n<h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n\r\n <!-- DATE FORMAT -->\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.dateFormat; else checkInnerTime\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n | date:\r\n innerLayout.option.dateFormat)\r\n : '--' }}\r\n </ng-container>\r\n\r\n <!-- TIME FORMAT -->\r\n <ng-template\r\n #checkInnerTime>\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.timeFormat; else normalInnerValue\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n |\r\n date:\r\n innerLayout.option.timeFormat)\r\n : '--' }}\r\n </ng-container>\r\n </ng-template>\r\n\r\n <!-- NORMAL STRING -->\r\n <ng-template\r\n #normalInnerValue>\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ??\r\n '--' }}\r\n </ng-template>\r\n </h3>\r\n}\r\n}\r\n }\r\n\r\n </div>\r\n\r\n <!-- number Control -->\r\n <div *ngSwitchCase=\"'number'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n<!-- the number's label (#166, test F11) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\" [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">{{ getHorizontalLayoutCaption(innerLayout) }}</span>\r\n <h3 [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\" [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n </div>\r\n\r\n <!-- Date Control -->\r\n <div *ngSwitchCase=\"'date'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (innerLayout.option?.dateFormat\r\n ? (record[innerLayout.scope?.reference.split('/').pop()] | date: innerLayout.option.dateFormat)\r\n : (record[innerLayout.scope?.reference.split('/').pop()] | vlDateText: cardDateKind(innerLayout) : innerLayout.option))\r\n : '--' }}\r\n </h3>\r\n </div>\r\n\r\n <!-- Time Control -->\r\n <div *ngSwitchCase=\"'time'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (innerLayout.option?.timeFormat\r\n ? (record[innerLayout.scope?.reference.split('/').pop()] | date: innerLayout.option.timeFormat)\r\n : (record[innerLayout.scope?.reference.split('/').pop()] | vlDateText: 'time' : innerLayout.option))\r\n : '--' }}\r\n </h3>\r\n </div>\r\n\r\n <!-- dropdown Control -->\r\n <div *ngSwitchCase=\"'dropdown'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(innerLayout?.label?.style).style\">{{ innerLayout.label?.value || innerLayout.label?.caption || itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\" [inputClass]=\"innerLayout.style?.classes ? innerLayout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- autocomplete Control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n <h3\r\n *ngIf=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)] && itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.format?.currency\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [style]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\">\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n </h3>\r\n </div>\r\n\r\n <!-- checkbox Control -->\r\n <div *ngSwitchCase=\"'boolean'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the record's value, read only, with its label (#166, test F9) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\" [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">{{ getHorizontalLayoutCaption(innerLayout) }}</span>\r\n@if (innerLayout.option?.control === 'switch') {\r\n<vl-switch [field]=\"innerLayout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch>\r\n} @else {\r\n<vl-checkbox [field]=\"innerLayout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-checkbox>\r\n}\r\n</div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\">\r\n <button nz-button [attr.data-vl-action]=\"vlAction(innerLayout?.option)\" [attr.data-vl-writes]=\"vlWrites(innerLayout?.option)\"\r\n [matTooltip]=\"getHorizontalLayoutTooltip(innerLayout)\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [style]=\"getStyleWithoutClasses(innerLayout?.style).style\"\r\n [class]=\"innerLayout.option?.visible ? innerLayout.option.protected ? 'disabled-button' : getStyleWithoutClasses(innerLayout?.style).classes : 'hidden'\"\r\n (click)=\"\r\n invokeButtonClick(\r\n innerLayout,\r\n record,\r\n getRecordIndex(record)\r\n )\r\n\">\r\n <span\r\n class=\"schema-btn-content\">\r\n <i\r\n *ngIf=\"showButtonIcon(innerLayout)\"\r\n nz-icon\r\n [nzType]=\"innerLayout.icon\"\r\n nzTheme=\"outline\">\r\n </i>\r\n\r\n <span\r\n *ngIf=\"showButtonCaption(innerLayout)\">\r\n {{\r\n innerLayout.caption\r\n }}\r\n </span>\r\n\r\n <span *ngIf=\"\r\n !showButtonIcon(innerLayout) &&\r\n !showButtonCaption(innerLayout)\r\n \">\r\n Button\r\n </span>\r\n </span>\r\n </button>\r\n </div>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\r\n <span\r\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\">\r\n <span *ngIf=\"element.option.protected\"\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">\r\n <h5>{{\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}\r\n </h5>\r\n </span>\r\n <div *ngIf=\"!element.option.protected\">\r\n <div\r\n [class]=\"element?.layout == 'horizontal' ? 'horizontal-layout' : 'row'\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">{{\r\n element.label?.value\r\n ?\r\n element.label?.value :\r\n element.label?.caption ?\r\n element.label?.caption :\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}</label>\r\n\r\n <nz-date-picker\r\n [required]=\"element.option.required\"\r\n [name]=\"element.scope?.reference\"\r\n [nzDisabled]=\"element?.option?.disabled\"\r\n (ngModelChange)=\"dateChangeEvent(element, $event)\"\r\n [nzFormat]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.format ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.format : 'yyyy-MM-dd'\"\r\n [(ngModel)]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()].value\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\"></nz-date-picker>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\r\n (click)=\"invokeOnCardFooter(element)\">\r\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [style]=\"getStyleWithoutClasses(element.style).style\"\r\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\r\n <ng-container\r\n *ngIf=\"!element.caption; else textContent\">\r\n <i nz-icon [nzType]=\"element.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>\r\n {{ element.caption }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </span>\r\n </div>\r\n <!-- bottom pagination on card -->\r\n <div *ngIf=\"\r\n itemInfo?.data?.length && \r\n itemInfo?.layoutSchema?.pagination?.visible &&\r\n !itemInfo?.layoutSchema?.pagination?.top &&\r\n !scrollPagination\r\n \" class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"itemInfo\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"pageSize\"\r\n [currentPage]=\"currentPage\" [pages]=\"pages\"\r\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\r\n (onGoToPage)=\"invokeGoToPage($event)\">\r\n </vl-pagination>\r\n </div>\r\n\r\n @if (scrollPagination) {\r\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\r\n aria-hidden=\"true\">\r\n </div>\r\n }\r\n</div>\r\n<ng-template #mediaContent let-layout=\"layout\" let-record=\"record\">\r\n <vl-media [field]=\"layout\" [compact]=\"true\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [mediaClass]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [mediaStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n (clicked)=\"showImageDetails(layout.option, record)\"></vl-media>\r\n</ng-template>", styles: [":host{display:block;width:100%;min-width:0}.vl-card-runtime{min-width:0;box-sizing:border-box}.card-responsive-grid{width:100%;min-width:0;box-sizing:border-box}.scroll-pagination-sentinel{width:100%;height:1px}.card-grid-item,.card-layout-item,.card-horizontal-layout,.card-field-wrapper{width:100%;min-width:0;box-sizing:border-box}.card-field-wrapper{overflow-wrap:anywhere}.card-field-wrapper p,.card-field-wrapper h3{margin:0;min-width:0}.card-layout-item img{display:block;max-width:100%;height:auto}.card-layout-item button{max-width:100%;box-sizing:border-box}.schema-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hidden{display:none!important}.card-pagination-wrapper{width:100%;min-width:0;box-sizing:border-box;padding:0 10px}\n"], dependencies: [{ kind: "component", type: Autocomplete, selector: "vl-autocomplete", inputs: ["field", "target", "value", "readonly", "list", "loading", "combobox", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["picked"] }, { kind: "component", type: SwitchControl, selector: "vl-switch", inputs: ["field", "target", "value", "readonly", "type", "translations"], outputs: ["switched"] }, { kind: "component", type: RadioControl, selector: "vl-radio", inputs: ["field", "target", "value", "readonly", "type", "saveTried", "errorMessages", "translations"], outputs: ["chosen"] }, { kind: "component", type: NumberControl, selector: "vl-number", inputs: ["field", "target", "value", "readonly", "type", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass", "property", "row"], outputs: ["changed"] }, { kind: "component", type: CheckboxControl, selector: "vl-checkbox", inputs: ["field", "target", "key", "value", "readonly", "type", "caption", "saveTried", "errorMessages", "translations", "inputStyle"], outputs: ["toggled"] }, { kind: "component", type: DropdownControl, selector: "vl-dropdown", inputs: ["field", "target", "value", "readonly", "items", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["chosen"] }, { kind: "component", type: DateTimeControl, selector: "vl-datetime", inputs: ["field", "target", "property", "kind", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed", "opened"] }, { kind: "component", type: MediaControl, selector: "vl-media", inputs: ["field", "value", "property", "compact", "mediaStyle", "mediaClass"], outputs: ["clicked"] }, { kind: "component", type: PasswordControl, selector: "vl-password", inputs: ["field", "target", "value", "readonly", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: TextareaControl, selector: "vl-textarea", inputs: ["field", "target", "value", "readonly", "compact", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i9.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i9.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i9.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i11.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i15.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: PaginationComponent, selector: "vl-pagination", inputs: ["itemInfo", "pageSize", "currentPage", "selectedLanguageInfo", "pages"], outputs: ["pageSizeChange", "onGoToPage"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: String$1, selector: "vl-string", inputs: ["formField", "modalItemInfo"] }, { kind: "ngmodule", type: AutoCompleteModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "pipe", type: DateTextPipe, name: "vlDateText" }, { kind: "pipe", type: i9.DatePipe, name: "date" }] });
6995
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CardComponent, isStandalone: true, selector: "vl-card", inputs: { itemInfo: "itemInfo", currentPage: "currentPage", pageSize: "pageSize", selectedLanguageInfo: "selectedLanguageInfo", mobileDisplay: "mobileDisplay", scrollPagination: "scrollPagination", pages: "pages", paginationMode: "paginationMode", paginationLoading: "paginationLoading" }, outputs: { cardButtonClick: "cardButtonClick", cardHeaderButtonClick: "cardHeaderButtonClick", linkDetails: "linkDetails", imageDetails: "imageDetails", onPageSizeChange: "onPageSizeChange", onPageChange: "onPageChange", cardDataChange: "cardDataChange" }, host: { listeners: { "window:resize": "onWindowResize()" } }, viewQueries: [{ propertyName: "scrollPaginationSentinel", first: true, predicate: ["scrollPaginationSentinel"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\r\n record's tick), numbers with their label (#166, tests F8-F11)\r\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\r\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\r\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\r\n - change: media fields are the one vl-media (#166 step 4.4)\r\n - change: the date filter is the one vl-datetime (#166 step 4.4)\r\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\r\n - change: check boxes with vl-checkbox (#166 step 4.4)\r\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\r\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\r\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\r\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\r\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\r\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\r\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\r\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\r\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\r\n card without texts)\r\n - fix: the price fields read ...?.format.currency; a property without format threw the same\r\n way (luv2shop: no prices, cards cut off) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\r\n project defines none; it showed the text \"undefined\" -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\r\n names another one ('native' keeps the system keyboard)\r\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\r\n\r\n<!-- shuaib 2026-09-24\r\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment naming the types this container does not render. It carries four\r\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\r\n\r\n<!-- @contract gap: dateRange, quantity, credit card\r\n reality: a card renders string, number, image, date, time, dropdown, boolean and\r\n autocomplete. Legacy checkbox fields normalize to boolean. dropdown and boolean arrived on 2026-09-18; before that a card\r\n dropped them silently.\r\n failure: a field of a missing type renders empty, with no error.\r\n instead: quantity is grid-only by design; for a dateRange or a credit card use a modal.\r\n seen: this file carries four switch blocks (lines 23, 94, 267, 488) and none of them has\r\n a case for those three - the gap belongs to the container, not to one block -->\r\n\r\n<!-- Loader Spinner -->\r\n\r\n<div *ngIf=\"isLoading\" class=\"loader-overlay\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n<div class=\"vl-card-runtime\">\r\n <!-- top pagination on card -->\r\n <div *ngIf=\"\r\n itemInfo?.layoutSchema?.pagination?.visible &&\r\n itemInfo?.layoutSchema?.pagination?.top\r\n \" class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"itemInfo\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\r\n [currentPage]=\"currentPage\" [pages]=\"pages\"\r\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\r\n (onGoToPage)=\"invokeGoToPage($event)\">\r\n </vl-pagination>\r\n </div>\r\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.header?.style\r\n ).classes\">\r\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index\"\r\n [attr.data-vl-field]=\"vlFieldKey(element)\"\r\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"element.option?.innerAction && element.option?.innerAction === 'saveAll' && !displayedRecords?.length ? \r\n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\r\n\r\n <!-- LABEL -->\r\n <span *ngIf=\"element.label?.caption\"\r\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\r\n [class]=\"element.label?.style?.classes?.[0]\">\r\n {{ element.label.caption }}\r\n </span>\r\n </div>\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\">\r\n <span *ngIf=\"element.option.protected\"\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">\r\n <vl-string [formField]=\"element\"\r\n [modalItemInfo]=\"itemInfo\">\r\n </vl-string>\r\n </span>\r\n <div *ngIf=\"!element.option.protected\"\r\n [class]=\"element?.layout == 'horizontal' ? 'horizontal-layout' : ''\"\r\n [ngClass]=\"element?.style?.classes[0]\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">{{\r\n element.label?.value\r\n ?\r\n element.label?.value : element.label?.caption ?\r\n element.label?.caption :\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}</label>\r\n <vl-datetime kind=\"date\" [field]=\"element\" [target]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(element, itemInfo.propertySchema)\"\r\n [inputClass]=\"element?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(element?.scope?.style).style\"\r\n (changed)=\"dateChangeEvent(element, $event)\"></vl-datetime>\r\n </div>\r\n </div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\r\n (click)=\"invokeOnCardHeader(element)\">\r\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [matTooltip]=\"element?.option?.tooltip || ''\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\r\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\r\n <ng-container\r\n *ngIf=\"!element.caption; else headerTextContent\">\r\n <i nz-icon [nzType]=\"element.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #headerTextContent>{{ element.caption\r\n }}</ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.layoutSchema?.style\r\n ).classes\">\r\n <div *ngFor=\"let record of displayedRecords; let k = index\"\r\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\">\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\r\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\r\n class=\"card-layout-item\" [ngStyle]=\"\r\n layout?.type === 'HorizontalLayout'\r\n ? {}\r\n : getStyleWithoutClasses(layout?.style).style\r\n \" [class]=\"\r\n layout?.type === 'HorizontalLayout'\r\n ? ''\r\n : getStyleWithoutClasses(layout?.style).classes\r\n \">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(layout?.scope?.reference && itemInfo.propertySchema[getScope(layout.scope?.reference)] ? itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.type : layout?.type == 'HorizontalLayout' ? 'HorizontalLayout' : 'default')\">\r\n <!-- Media Control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <ng-container\r\n *ngTemplateOutlet=\"mediaContent; context: { layout: layout, record: record }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">\r\n {{ getHorizontalLayoutCaption(layout) }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n @if(layout.option && layout.option.control &&\r\n !layout.option.protected){\r\n @switch (layout.option.control) {\r\n @case ('textInput') {\r\n <!-- the text shows also when the field is not locked; a card lists, editing is in the dialog (#166) -->\r\n <p\r\n [ngStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n record?.[layout.scope?.reference.split('/').pop()]\r\n ??\r\n itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ??\r\n '--'\r\n }}\r\n </p>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\">\r\n </vl-password>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n @case('textArea'){\r\n <vl-textarea [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\">\r\n </vl-textarea>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"layout\" type=\"flag\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-switch>\r\n }\r\n\r\n @case('radiobutton') {\r\n <vl-radio [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-radio>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(layout?.label?.style).style\">{{ layout.label?.value || layout.label?.caption || itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.style).style\" [inputClass]=\"layout.style?.classes ? layout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n }\r\n }@else {\r\n <!-- a locked value through the read-only building block: password as dots, the radio's text,\r\n the tick from the record (#166, tests F8-F10) -->\r\n@switch (layout.option?.control) {\r\n@case ('password') { <vl-password [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-password> }\r\n@case ('textArea') { <vl-textarea [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-textarea> }\r\n@case ('radiobutton') { <vl-radio [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-radio> }\r\n@case ('dropdown') { <vl-dropdown [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-dropdown> }\r\n@case ('switch') { <vl-switch [field]=\"layout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch> }\r\n@case ('checkbox') { <vl-checkbox [field]=\"layout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-checkbox> }\r\n@default {\r\n<p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [ngStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n record?.[layout.scope?.reference.split('/').pop()]\r\n ??\r\n itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ??\r\n '--'\r\n }}\r\n </p>\r\n}\r\n}\r\n }\r\n\r\n </div>\r\n\r\n <!-- Date Control -->\r\n <div *ngSwitchCase=\"'date'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n <!-- LABEL -->\r\n <span *ngIf=\"layout?.label?.caption\"\r\n [class]=\"layout.label?.style?.classes?.[0]\">\r\n {{ layout.label.caption }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n (record?.[layout.scope?.reference.split('/').pop()] | vlDateText: cardDateKind(layout) : layout.option)\r\n || itemInfo.propertySchema[\r\n getScope(layout.scope?.reference)\r\n ]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ?? '--'\r\n }}\r\n </p>\r\n </div>\r\n\r\n <!-- Time Control -->\r\n <div *ngSwitchCase=\"'time'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span *ngIf=\"layout?.label?.caption\"\r\n [class]=\"layout.label?.style?.classes?.[0]\">\r\n {{ layout.label.caption }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n (record?.[layout.scope?.reference.split('/').pop()] | vlDateText: 'time' : layout.option)\r\n || itemInfo.propertySchema[\r\n getScope(layout.scope?.reference)\r\n ]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ?? '--'\r\n }}\r\n </p>\r\n </div>\r\n\r\n <!-- number Control -->\r\n <div *ngSwitchCase=\"'number'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the number's label (#166, test F11) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\" [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">{{ getHorizontalLayoutCaption(layout) }}</span>\r\n <!-- VALUE -->\r\n @if(layout.option && layout.option.control &&\r\n !layout.option.protected){\r\n @switch (layout.option.control) {\r\n @case ('textInput') {\r\n <h3 [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n }\r\n @case ('slider') {\r\n <vl-number [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-number>\r\n }\r\n @case ('spinner') {\r\n <vl-number [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-number>\r\n }\r\n }\r\n } @else{\r\n <h3 [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n }\r\n\r\n </div>\r\n\r\n <!-- dropdown Control -->\r\n <div *ngSwitchCase=\"'dropdown'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(layout?.label?.style).style\">{{ layout.label?.value || layout.label?.caption || itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.style).style\" [inputClass]=\"layout.style?.classes ? layout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- autocomplete Control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <h3\r\n *ngIf=\"itemInfo.propertySchema[getScope(layout.scope?.reference)] && itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.format?.currency\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n </h3>\r\n </div>\r\n\r\n <!-- checkbox Control -->\r\n <div *ngSwitchCase=\"'boolean'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the record's value, read only, with its label (#166, test F9) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\" [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">{{ getHorizontalLayoutCaption(layout) }}</span>\r\n@if (layout.option?.control === 'switch') {\r\n<vl-switch [field]=\"layout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch>\r\n} @else {\r\n<vl-checkbox [field]=\"layout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-checkbox>\r\n}\r\n</div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <button [attr.data-vl-action]=\"vlAction(layout?.option)\" [attr.data-vl-writes]=\"vlWrites(layout?.option)\"\r\n [style]=\"getStyleWithoutClasses(layout?.style).style\"\r\n [class]=\"layout.option.protected ? 'disabled-button' : getStyleWithoutClasses(layout?.style).classes\"\r\n (click)=\"\r\n invokeButtonClick(\r\n layout,\r\n record,\r\n getRecordIndex(record)\r\n )\r\n\">\r\n <ng-container\r\n *ngIf=\"!layout.caption; else textContent\">\r\n <i nz-icon [nzType]=\"layout.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>\r\n {{ layout.caption }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n\r\n <!-- HorizontalLayout Control -->\r\n <div *ngSwitchCase=\"'HorizontalLayout'\">\r\n <div class=\"card-horizontal-layout\"\r\n [class]=\"getStyleWithoutClasses(\r\n layout?.style\r\n ).classes\" [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\r\n <ng-container\r\n *ngFor=\"let innerLayout of layout.elements\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(innerLayout.scope?.reference && itemInfo.propertySchema[getScope(innerLayout.scope?.reference)] ? itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n <!-- Media Control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"mediaContent; context: {\r\n layout: innerLayout,\r\n record: record\r\n }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n @if(innerLayout.option &&\r\n innerLayout.option.control &&\r\n !innerLayout.option.protected){\r\n @switch\r\n (innerLayout.option.control)\r\n {\r\n @case ('textInput') {\r\n <!-- the text shows also when the field is not locked (#166) -->\r\n <h3\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n\r\n <!-- DATE FORMAT -->\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.dateFormat; else checkInnerTime\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n | date:\r\n innerLayout.option.dateFormat)\r\n : '--' }}\r\n </ng-container>\r\n\r\n <!-- TIME FORMAT -->\r\n <ng-template\r\n #checkInnerTime>\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.timeFormat; else normalInnerValue\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n |\r\n date:\r\n innerLayout.option.timeFormat)\r\n : '--' }}\r\n </ng-container>\r\n </ng-template>\r\n\r\n <!-- NORMAL STRING -->\r\n <ng-template\r\n #normalInnerValue>\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ??\r\n '--' }}\r\n </ng-template>\r\n </h3>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\">\r\n </vl-password>\r\n }\r\n @case ('combobox') {\r\n\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n @case('textArea'){\r\n <vl-textarea [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\">\r\n </vl-textarea>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-switch>\r\n }\r\n\r\n @case('radiobutton') {\r\n <vl-radio [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-radio>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(innerLayout?.label?.style).style\">{{ innerLayout.label?.value || innerLayout.label?.caption || itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\" [inputClass]=\"innerLayout.style?.classes ? innerLayout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n }\r\n }@else{\r\n\r\n <!-- a locked value through the read-only building block: password as dots, the radio's text,\r\n the tick from the record (#166, tests F8-F10) -->\r\n@switch (innerLayout.option?.control) {\r\n@case ('password') { <vl-password [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-password> }\r\n@case ('textArea') { <vl-textarea [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-textarea> }\r\n@case ('radiobutton') { <vl-radio [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-radio> }\r\n@case ('dropdown') { <vl-dropdown [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-dropdown> }\r\n@case ('switch') { <vl-switch [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch> }\r\n@case ('checkbox') { <vl-checkbox [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-checkbox> }\r\n@default {\r\n<h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n\r\n <!-- DATE FORMAT -->\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.dateFormat; else checkInnerTime\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n | date:\r\n innerLayout.option.dateFormat)\r\n : '--' }}\r\n </ng-container>\r\n\r\n <!-- TIME FORMAT -->\r\n <ng-template\r\n #checkInnerTime>\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.timeFormat; else normalInnerValue\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n |\r\n date:\r\n innerLayout.option.timeFormat)\r\n : '--' }}\r\n </ng-container>\r\n </ng-template>\r\n\r\n <!-- NORMAL STRING -->\r\n <ng-template\r\n #normalInnerValue>\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ??\r\n '--' }}\r\n </ng-template>\r\n </h3>\r\n}\r\n}\r\n }\r\n\r\n </div>\r\n\r\n <!-- number Control -->\r\n <div *ngSwitchCase=\"'number'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n<!-- the number's label (#166, test F11) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\" [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">{{ getHorizontalLayoutCaption(innerLayout) }}</span>\r\n <h3 [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\" [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n </div>\r\n\r\n <!-- Date Control -->\r\n <div *ngSwitchCase=\"'date'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (innerLayout.option?.dateFormat\r\n ? (record[innerLayout.scope?.reference.split('/').pop()] | date: innerLayout.option.dateFormat)\r\n : (record[innerLayout.scope?.reference.split('/').pop()] | vlDateText: cardDateKind(innerLayout) : innerLayout.option))\r\n : '--' }}\r\n </h3>\r\n </div>\r\n\r\n <!-- Time Control -->\r\n <div *ngSwitchCase=\"'time'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (innerLayout.option?.timeFormat\r\n ? (record[innerLayout.scope?.reference.split('/').pop()] | date: innerLayout.option.timeFormat)\r\n : (record[innerLayout.scope?.reference.split('/').pop()] | vlDateText: 'time' : innerLayout.option))\r\n : '--' }}\r\n </h3>\r\n </div>\r\n\r\n <!-- dropdown Control -->\r\n <div *ngSwitchCase=\"'dropdown'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(innerLayout?.label?.style).style\">{{ innerLayout.label?.value || innerLayout.label?.caption || itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\" [inputClass]=\"innerLayout.style?.classes ? innerLayout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- autocomplete Control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n <h3\r\n *ngIf=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)] && itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.format?.currency\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [style]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\">\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n </h3>\r\n </div>\r\n\r\n <!-- checkbox Control -->\r\n <div *ngSwitchCase=\"'boolean'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the record's value, read only, with its label (#166, test F9) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\" [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">{{ getHorizontalLayoutCaption(innerLayout) }}</span>\r\n@if (innerLayout.option?.control === 'switch') {\r\n<vl-switch [field]=\"innerLayout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch>\r\n} @else {\r\n<vl-checkbox [field]=\"innerLayout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-checkbox>\r\n}\r\n</div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\">\r\n <button nz-button [attr.data-vl-action]=\"vlAction(innerLayout?.option)\" [attr.data-vl-writes]=\"vlWrites(innerLayout?.option)\"\r\n [matTooltip]=\"getHorizontalLayoutTooltip(innerLayout)\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [style]=\"getStyleWithoutClasses(innerLayout?.style).style\"\r\n [class]=\"innerLayout.option?.visible ? innerLayout.option.protected ? 'disabled-button' : getStyleWithoutClasses(innerLayout?.style).classes : 'hidden'\"\r\n (click)=\"\r\n invokeButtonClick(\r\n innerLayout,\r\n record,\r\n getRecordIndex(record)\r\n )\r\n\">\r\n <span\r\n class=\"schema-btn-content\">\r\n <i\r\n *ngIf=\"showButtonIcon(innerLayout)\"\r\n nz-icon\r\n [nzType]=\"innerLayout.icon\"\r\n nzTheme=\"outline\">\r\n </i>\r\n\r\n <span\r\n *ngIf=\"showButtonCaption(innerLayout)\">\r\n {{\r\n innerLayout.caption\r\n }}\r\n </span>\r\n\r\n <span *ngIf=\"\r\n !showButtonIcon(innerLayout) &&\r\n !showButtonCaption(innerLayout)\r\n \">\r\n Button\r\n </span>\r\n </span>\r\n </button>\r\n </div>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\r\n <span\r\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\">\r\n <span *ngIf=\"element.option.protected\"\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">\r\n <h5>{{\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}\r\n </h5>\r\n </span>\r\n <div *ngIf=\"!element.option.protected\">\r\n <div\r\n [class]=\"element?.layout == 'horizontal' ? 'horizontal-layout' : 'row'\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">{{\r\n element.label?.value\r\n ?\r\n element.label?.value :\r\n element.label?.caption ?\r\n element.label?.caption :\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}</label>\r\n\r\n <nz-date-picker\r\n [required]=\"element.option.required\"\r\n [name]=\"element.scope?.reference\"\r\n [nzDisabled]=\"element?.option?.disabled\"\r\n (ngModelChange)=\"dateChangeEvent(element, $event)\"\r\n [nzFormat]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.format ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.format : 'yyyy-MM-dd'\"\r\n [(ngModel)]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()].value\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\"></nz-date-picker>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\r\n (click)=\"invokeOnCardFooter(element)\">\r\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [style]=\"getStyleWithoutClasses(element.style).style\"\r\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\r\n <ng-container\r\n *ngIf=\"!element.caption; else textContent\">\r\n <i nz-icon [nzType]=\"element.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>\r\n {{ element.caption }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </span>\r\n </div>\r\n <!-- bottom pagination on card -->\r\n <div *ngIf=\"\r\n itemInfo?.data?.length && \r\n itemInfo?.layoutSchema?.pagination?.visible &&\r\n !itemInfo?.layoutSchema?.pagination?.top &&\r\n !scrollPagination\r\n \" class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"itemInfo\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"pageSize\"\r\n [currentPage]=\"currentPage\" [pages]=\"pages\"\r\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\r\n (onGoToPage)=\"invokeGoToPage($event)\">\r\n </vl-pagination>\r\n </div>\r\n\r\n @if (scrollPagination) {\r\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\r\n aria-hidden=\"true\">\r\n </div>\r\n }\r\n</div>\r\n<ng-template #mediaContent let-layout=\"layout\" let-record=\"record\">\r\n <vl-media [field]=\"layout\" [compact]=\"true\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [mediaClass]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [mediaStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n (clicked)=\"showImageDetails(layout.option, record)\"></vl-media>\r\n</ng-template>", styles: [":host{display:block;width:100%;min-width:0}.vl-card-runtime{min-width:0;box-sizing:border-box}.card-responsive-grid{width:100%;min-width:0;box-sizing:border-box}.scroll-pagination-sentinel{width:100%;height:1px}.card-grid-item,.card-layout-item,.card-horizontal-layout,.card-field-wrapper{width:100%;min-width:0;box-sizing:border-box}.card-field-wrapper{overflow-wrap:anywhere}.card-field-wrapper p,.card-field-wrapper h3{margin:0;min-width:0}.card-layout-item img{display:block;max-width:100%;height:auto}.card-layout-item button{max-width:100%;box-sizing:border-box}.schema-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hidden{display:none!important}.card-pagination-wrapper{width:100%;min-width:0;box-sizing:border-box;padding:0 10px}\n"], dependencies: [{ kind: "component", type: Autocomplete, selector: "vl-autocomplete", inputs: ["field", "target", "value", "readonly", "list", "loading", "combobox", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["picked"] }, { kind: "component", type: SwitchControl, selector: "vl-switch", inputs: ["field", "target", "value", "readonly", "type", "translations"], outputs: ["switched"] }, { kind: "component", type: RadioControl, selector: "vl-radio", inputs: ["field", "target", "value", "readonly", "type", "saveTried", "errorMessages", "translations"], outputs: ["chosen"] }, { kind: "component", type: NumberControl, selector: "vl-number", inputs: ["field", "target", "value", "readonly", "type", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass", "property", "row"], outputs: ["changed"] }, { kind: "component", type: CheckboxControl, selector: "vl-checkbox", inputs: ["field", "target", "key", "value", "readonly", "type", "caption", "saveTried", "errorMessages", "translations", "inputStyle"], outputs: ["toggled"] }, { kind: "component", type: DropdownControl, selector: "vl-dropdown", inputs: ["field", "target", "value", "readonly", "items", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["chosen"] }, { kind: "component", type: DateTimeControl, selector: "vl-datetime", inputs: ["field", "target", "property", "kind", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed", "opened"] }, { kind: "component", type: MediaControl, selector: "vl-media", inputs: ["field", "value", "property", "compact", "mediaStyle", "mediaClass"], outputs: ["clicked"] }, { kind: "component", type: PasswordControl, selector: "vl-password", inputs: ["field", "target", "value", "readonly", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: TextareaControl, selector: "vl-textarea", inputs: ["field", "target", "value", "readonly", "compact", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i9.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i9.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i9.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i11.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i15.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: PaginationComponent, selector: "vl-pagination", inputs: ["itemInfo", "pageSize", "currentPage", "selectedLanguageInfo", "pages"], outputs: ["pageSizeChange", "onGoToPage"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: String$1, selector: "vl-string", inputs: ["formField", "modalItemInfo"] }, { kind: "ngmodule", type: AutoCompleteModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "pipe", type: DateTextPipe, name: "vlDateText" }, { kind: "pipe", type: i9.DatePipe, name: "date" }] });
6939
6996
  }
6940
6997
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CardComponent, decorators: [{
6941
6998
  type: Component,
@@ -6953,7 +7010,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
6953
7010
  AutoCompleteModule,
6954
7011
  InputTextModule,
6955
7012
  CustomKeyboardDirective,
6956
- ], standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\r\n record's tick), numbers with their label (#166, tests F8-F11)\r\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\r\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\r\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\r\n - change: media fields are the one vl-media (#166 step 4.4)\r\n - change: the date filter is the one vl-datetime (#166 step 4.4)\r\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\r\n - change: check boxes with vl-checkbox (#166 step 4.4)\r\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\r\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\r\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\r\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\r\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\r\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\r\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\r\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\r\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\r\n card without texts)\r\n - fix: the price fields read ...?.format.currency; a property without format threw the same\r\n way (luv2shop: no prices, cards cut off) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\r\n project defines none; it showed the text \"undefined\" -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\r\n names another one ('native' keeps the system keyboard)\r\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\r\n\r\n<!-- shuaib 2026-09-24\r\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment naming the types this container does not render. It carries four\r\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\r\n\r\n<!-- @contract gap: dateRange, quantity, credit card\r\n reality: a card renders string, number, image, date, time, dropdown, boolean and\r\n autocomplete. Legacy checkbox fields normalize to boolean. dropdown and boolean arrived on 2026-09-18; before that a card\r\n dropped them silently.\r\n failure: a field of a missing type renders empty, with no error.\r\n instead: quantity is grid-only by design; for a dateRange or a credit card use a modal.\r\n seen: this file carries four switch blocks (lines 23, 94, 267, 488) and none of them has\r\n a case for those three - the gap belongs to the container, not to one block -->\r\n\r\n<!-- Loader Spinner -->\r\n\r\n<div *ngIf=\"isLoading\" class=\"loader-overlay\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n<div class=\"vl-card-runtime\">\r\n <!-- top pagination on card -->\r\n <div *ngIf=\"\r\n itemInfo?.layoutSchema?.pagination?.visible &&\r\n itemInfo?.layoutSchema?.pagination?.top\r\n \" class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"itemInfo\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\r\n [currentPage]=\"currentPage\" [pages]=\"pages\"\r\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\r\n (onGoToPage)=\"invokeGoToPage($event)\">\r\n </vl-pagination>\r\n </div>\r\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.header?.style\r\n ).classes\">\r\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index\"\r\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"element.option?.innerAction && element.option?.innerAction === 'saveAll' && !displayedRecords?.length ? \r\n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\r\n\r\n <!-- LABEL -->\r\n <span *ngIf=\"element.label?.caption\"\r\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\r\n [class]=\"element.label?.style?.classes?.[0]\">\r\n {{ element.label.caption }}\r\n </span>\r\n </div>\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\">\r\n <span *ngIf=\"element.option.protected\"\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">\r\n <vl-string [formField]=\"element\"\r\n [modalItemInfo]=\"itemInfo\">\r\n </vl-string>\r\n </span>\r\n <div *ngIf=\"!element.option.protected\"\r\n [class]=\"element?.layout == 'horizontal' ? 'horizontal-layout' : ''\"\r\n [ngClass]=\"element?.style?.classes[0]\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">{{\r\n element.label?.value\r\n ?\r\n element.label?.value : element.label?.caption ?\r\n element.label?.caption :\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}</label>\r\n <vl-datetime kind=\"date\" [field]=\"element\" [target]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(element, itemInfo.propertySchema)\"\r\n [inputClass]=\"element?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(element?.scope?.style).style\"\r\n (changed)=\"dateChangeEvent(element, $event)\"></vl-datetime>\r\n </div>\r\n </div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\r\n (click)=\"invokeOnCardHeader(element)\">\r\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [matTooltip]=\"element?.option?.tooltip || ''\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\r\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\r\n <ng-container\r\n *ngIf=\"!element.caption; else headerTextContent\">\r\n <i nz-icon [nzType]=\"element.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #headerTextContent>{{ element.caption\r\n }}</ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.layoutSchema?.style\r\n ).classes\">\r\n <div *ngFor=\"let record of displayedRecords; let k = index\"\r\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\">\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\r\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\r\n class=\"card-layout-item\" [ngStyle]=\"\r\n layout?.type === 'HorizontalLayout'\r\n ? {}\r\n : getStyleWithoutClasses(layout?.style).style\r\n \" [class]=\"\r\n layout?.type === 'HorizontalLayout'\r\n ? ''\r\n : getStyleWithoutClasses(layout?.style).classes\r\n \">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(layout?.scope?.reference && itemInfo.propertySchema[getScope(layout.scope?.reference)] ? itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.type : layout?.type == 'HorizontalLayout' ? 'HorizontalLayout' : 'default')\">\r\n <!-- Media Control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <ng-container\r\n *ngTemplateOutlet=\"mediaContent; context: { layout: layout, record: record }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">\r\n {{ getHorizontalLayoutCaption(layout) }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n @if(layout.option && layout.option.control &&\r\n !layout.option.protected){\r\n @switch (layout.option.control) {\r\n @case ('textInput') {\r\n <!-- the text shows also when the field is not locked; a card lists, editing is in the dialog (#166) -->\r\n <p\r\n [ngStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n record?.[layout.scope?.reference.split('/').pop()]\r\n ??\r\n itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ??\r\n '--'\r\n }}\r\n </p>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\">\r\n </vl-password>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n @case('textArea'){\r\n <vl-textarea [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\">\r\n </vl-textarea>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"layout\" type=\"flag\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-switch>\r\n }\r\n\r\n @case('radiobutton') {\r\n <vl-radio [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-radio>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(layout?.label?.style).style\">{{ layout.label?.value || layout.label?.caption || itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.style).style\" [inputClass]=\"layout.style?.classes ? layout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n }\r\n }@else {\r\n <!-- a locked value through the read-only building block: password as dots, the radio's text,\r\n the tick from the record (#166, tests F8-F10) -->\r\n@switch (layout.option?.control) {\r\n@case ('password') { <vl-password [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-password> }\r\n@case ('textArea') { <vl-textarea [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-textarea> }\r\n@case ('radiobutton') { <vl-radio [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-radio> }\r\n@case ('dropdown') { <vl-dropdown [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-dropdown> }\r\n@case ('switch') { <vl-switch [field]=\"layout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch> }\r\n@case ('checkbox') { <vl-checkbox [field]=\"layout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-checkbox> }\r\n@default {\r\n<p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [ngStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n record?.[layout.scope?.reference.split('/').pop()]\r\n ??\r\n itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ??\r\n '--'\r\n }}\r\n </p>\r\n}\r\n}\r\n }\r\n\r\n </div>\r\n\r\n <!-- Date Control -->\r\n <div *ngSwitchCase=\"'date'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n <!-- LABEL -->\r\n <span *ngIf=\"layout?.label?.caption\"\r\n [class]=\"layout.label?.style?.classes?.[0]\">\r\n {{ layout.label.caption }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n (record?.[layout.scope?.reference.split('/').pop()] | vlDateText: cardDateKind(layout) : layout.option)\r\n || itemInfo.propertySchema[\r\n getScope(layout.scope?.reference)\r\n ]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ?? '--'\r\n }}\r\n </p>\r\n </div>\r\n\r\n <!-- Time Control -->\r\n <div *ngSwitchCase=\"'time'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span *ngIf=\"layout?.label?.caption\"\r\n [class]=\"layout.label?.style?.classes?.[0]\">\r\n {{ layout.label.caption }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n (record?.[layout.scope?.reference.split('/').pop()] | vlDateText: 'time' : layout.option)\r\n || itemInfo.propertySchema[\r\n getScope(layout.scope?.reference)\r\n ]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ?? '--'\r\n }}\r\n </p>\r\n </div>\r\n\r\n <!-- number Control -->\r\n <div *ngSwitchCase=\"'number'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the number's label (#166, test F11) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\" [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">{{ getHorizontalLayoutCaption(layout) }}</span>\r\n <!-- VALUE -->\r\n @if(layout.option && layout.option.control &&\r\n !layout.option.protected){\r\n @switch (layout.option.control) {\r\n @case ('textInput') {\r\n <h3 [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n }\r\n @case ('slider') {\r\n <vl-number [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-number>\r\n }\r\n @case ('spinner') {\r\n <vl-number [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-number>\r\n }\r\n }\r\n } @else{\r\n <h3 [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n }\r\n\r\n </div>\r\n\r\n <!-- dropdown Control -->\r\n <div *ngSwitchCase=\"'dropdown'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(layout?.label?.style).style\">{{ layout.label?.value || layout.label?.caption || itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.style).style\" [inputClass]=\"layout.style?.classes ? layout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- autocomplete Control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <h3\r\n *ngIf=\"itemInfo.propertySchema[getScope(layout.scope?.reference)] && itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.format?.currency\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n </h3>\r\n </div>\r\n\r\n <!-- checkbox Control -->\r\n <div *ngSwitchCase=\"'boolean'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the record's value, read only, with its label (#166, test F9) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\" [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">{{ getHorizontalLayoutCaption(layout) }}</span>\r\n@if (layout.option?.control === 'switch') {\r\n<vl-switch [field]=\"layout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch>\r\n} @else {\r\n<vl-checkbox [field]=\"layout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-checkbox>\r\n}\r\n</div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <button [attr.data-vl-action]=\"vlAction(layout?.option)\" [attr.data-vl-writes]=\"vlWrites(layout?.option)\"\r\n [style]=\"getStyleWithoutClasses(layout?.style).style\"\r\n [class]=\"layout.option.protected ? 'disabled-button' : getStyleWithoutClasses(layout?.style).classes\"\r\n (click)=\"\r\n invokeButtonClick(\r\n layout,\r\n record,\r\n getRecordIndex(record)\r\n )\r\n\">\r\n <ng-container\r\n *ngIf=\"!layout.caption; else textContent\">\r\n <i nz-icon [nzType]=\"layout.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>\r\n {{ layout.caption }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n\r\n <!-- HorizontalLayout Control -->\r\n <div *ngSwitchCase=\"'HorizontalLayout'\">\r\n <div class=\"card-horizontal-layout\"\r\n [class]=\"getStyleWithoutClasses(\r\n layout?.style\r\n ).classes\" [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\r\n <ng-container\r\n *ngFor=\"let innerLayout of layout.elements\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(innerLayout.scope?.reference && itemInfo.propertySchema[getScope(innerLayout.scope?.reference)] ? itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n <!-- Media Control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"mediaContent; context: {\r\n layout: innerLayout,\r\n record: record\r\n }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n @if(innerLayout.option &&\r\n innerLayout.option.control &&\r\n !innerLayout.option.protected){\r\n @switch\r\n (innerLayout.option.control)\r\n {\r\n @case ('textInput') {\r\n <!-- the text shows also when the field is not locked (#166) -->\r\n <h3\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n\r\n <!-- DATE FORMAT -->\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.dateFormat; else checkInnerTime\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n | date:\r\n innerLayout.option.dateFormat)\r\n : '--' }}\r\n </ng-container>\r\n\r\n <!-- TIME FORMAT -->\r\n <ng-template\r\n #checkInnerTime>\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.timeFormat; else normalInnerValue\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n |\r\n date:\r\n innerLayout.option.timeFormat)\r\n : '--' }}\r\n </ng-container>\r\n </ng-template>\r\n\r\n <!-- NORMAL STRING -->\r\n <ng-template\r\n #normalInnerValue>\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ??\r\n '--' }}\r\n </ng-template>\r\n </h3>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\">\r\n </vl-password>\r\n }\r\n @case ('combobox') {\r\n\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n @case('textArea'){\r\n <vl-textarea [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\">\r\n </vl-textarea>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-switch>\r\n }\r\n\r\n @case('radiobutton') {\r\n <vl-radio [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-radio>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(innerLayout?.label?.style).style\">{{ innerLayout.label?.value || innerLayout.label?.caption || itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\" [inputClass]=\"innerLayout.style?.classes ? innerLayout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n }\r\n }@else{\r\n\r\n <!-- a locked value through the read-only building block: password as dots, the radio's text,\r\n the tick from the record (#166, tests F8-F10) -->\r\n@switch (innerLayout.option?.control) {\r\n@case ('password') { <vl-password [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-password> }\r\n@case ('textArea') { <vl-textarea [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-textarea> }\r\n@case ('radiobutton') { <vl-radio [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-radio> }\r\n@case ('dropdown') { <vl-dropdown [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-dropdown> }\r\n@case ('switch') { <vl-switch [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch> }\r\n@case ('checkbox') { <vl-checkbox [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-checkbox> }\r\n@default {\r\n<h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n\r\n <!-- DATE FORMAT -->\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.dateFormat; else checkInnerTime\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n | date:\r\n innerLayout.option.dateFormat)\r\n : '--' }}\r\n </ng-container>\r\n\r\n <!-- TIME FORMAT -->\r\n <ng-template\r\n #checkInnerTime>\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.timeFormat; else normalInnerValue\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n |\r\n date:\r\n innerLayout.option.timeFormat)\r\n : '--' }}\r\n </ng-container>\r\n </ng-template>\r\n\r\n <!-- NORMAL STRING -->\r\n <ng-template\r\n #normalInnerValue>\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ??\r\n '--' }}\r\n </ng-template>\r\n </h3>\r\n}\r\n}\r\n }\r\n\r\n </div>\r\n\r\n <!-- number Control -->\r\n <div *ngSwitchCase=\"'number'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n<!-- the number's label (#166, test F11) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\" [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">{{ getHorizontalLayoutCaption(innerLayout) }}</span>\r\n <h3 [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\" [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n </div>\r\n\r\n <!-- Date Control -->\r\n <div *ngSwitchCase=\"'date'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (innerLayout.option?.dateFormat\r\n ? (record[innerLayout.scope?.reference.split('/').pop()] | date: innerLayout.option.dateFormat)\r\n : (record[innerLayout.scope?.reference.split('/').pop()] | vlDateText: cardDateKind(innerLayout) : innerLayout.option))\r\n : '--' }}\r\n </h3>\r\n </div>\r\n\r\n <!-- Time Control -->\r\n <div *ngSwitchCase=\"'time'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (innerLayout.option?.timeFormat\r\n ? (record[innerLayout.scope?.reference.split('/').pop()] | date: innerLayout.option.timeFormat)\r\n : (record[innerLayout.scope?.reference.split('/').pop()] | vlDateText: 'time' : innerLayout.option))\r\n : '--' }}\r\n </h3>\r\n </div>\r\n\r\n <!-- dropdown Control -->\r\n <div *ngSwitchCase=\"'dropdown'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(innerLayout?.label?.style).style\">{{ innerLayout.label?.value || innerLayout.label?.caption || itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\" [inputClass]=\"innerLayout.style?.classes ? innerLayout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- autocomplete Control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n <h3\r\n *ngIf=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)] && itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.format?.currency\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [style]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\">\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n </h3>\r\n </div>\r\n\r\n <!-- checkbox Control -->\r\n <div *ngSwitchCase=\"'boolean'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the record's value, read only, with its label (#166, test F9) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\" [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">{{ getHorizontalLayoutCaption(innerLayout) }}</span>\r\n@if (innerLayout.option?.control === 'switch') {\r\n<vl-switch [field]=\"innerLayout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch>\r\n} @else {\r\n<vl-checkbox [field]=\"innerLayout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-checkbox>\r\n}\r\n</div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\">\r\n <button nz-button [attr.data-vl-action]=\"vlAction(innerLayout?.option)\" [attr.data-vl-writes]=\"vlWrites(innerLayout?.option)\"\r\n [matTooltip]=\"getHorizontalLayoutTooltip(innerLayout)\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [style]=\"getStyleWithoutClasses(innerLayout?.style).style\"\r\n [class]=\"innerLayout.option?.visible ? innerLayout.option.protected ? 'disabled-button' : getStyleWithoutClasses(innerLayout?.style).classes : 'hidden'\"\r\n (click)=\"\r\n invokeButtonClick(\r\n innerLayout,\r\n record,\r\n getRecordIndex(record)\r\n )\r\n\">\r\n <span\r\n class=\"schema-btn-content\">\r\n <i\r\n *ngIf=\"showButtonIcon(innerLayout)\"\r\n nz-icon\r\n [nzType]=\"innerLayout.icon\"\r\n nzTheme=\"outline\">\r\n </i>\r\n\r\n <span\r\n *ngIf=\"showButtonCaption(innerLayout)\">\r\n {{\r\n innerLayout.caption\r\n }}\r\n </span>\r\n\r\n <span *ngIf=\"\r\n !showButtonIcon(innerLayout) &&\r\n !showButtonCaption(innerLayout)\r\n \">\r\n Button\r\n </span>\r\n </span>\r\n </button>\r\n </div>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\r\n <span\r\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\">\r\n <span *ngIf=\"element.option.protected\"\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">\r\n <h5>{{\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}\r\n </h5>\r\n </span>\r\n <div *ngIf=\"!element.option.protected\">\r\n <div\r\n [class]=\"element?.layout == 'horizontal' ? 'horizontal-layout' : 'row'\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">{{\r\n element.label?.value\r\n ?\r\n element.label?.value :\r\n element.label?.caption ?\r\n element.label?.caption :\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}</label>\r\n\r\n <nz-date-picker\r\n [required]=\"element.option.required\"\r\n [name]=\"element.scope?.reference\"\r\n [nzDisabled]=\"element?.option?.disabled\"\r\n (ngModelChange)=\"dateChangeEvent(element, $event)\"\r\n [nzFormat]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.format ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.format : 'yyyy-MM-dd'\"\r\n [(ngModel)]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()].value\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\"></nz-date-picker>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\r\n (click)=\"invokeOnCardFooter(element)\">\r\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [style]=\"getStyleWithoutClasses(element.style).style\"\r\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\r\n <ng-container\r\n *ngIf=\"!element.caption; else textContent\">\r\n <i nz-icon [nzType]=\"element.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>\r\n {{ element.caption }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </span>\r\n </div>\r\n <!-- bottom pagination on card -->\r\n <div *ngIf=\"\r\n itemInfo?.data?.length && \r\n itemInfo?.layoutSchema?.pagination?.visible &&\r\n !itemInfo?.layoutSchema?.pagination?.top &&\r\n !scrollPagination\r\n \" class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"itemInfo\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"pageSize\"\r\n [currentPage]=\"currentPage\" [pages]=\"pages\"\r\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\r\n (onGoToPage)=\"invokeGoToPage($event)\">\r\n </vl-pagination>\r\n </div>\r\n\r\n @if (scrollPagination) {\r\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\r\n aria-hidden=\"true\">\r\n </div>\r\n }\r\n</div>\r\n<ng-template #mediaContent let-layout=\"layout\" let-record=\"record\">\r\n <vl-media [field]=\"layout\" [compact]=\"true\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [mediaClass]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [mediaStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n (clicked)=\"showImageDetails(layout.option, record)\"></vl-media>\r\n</ng-template>", styles: [":host{display:block;width:100%;min-width:0}.vl-card-runtime{min-width:0;box-sizing:border-box}.card-responsive-grid{width:100%;min-width:0;box-sizing:border-box}.scroll-pagination-sentinel{width:100%;height:1px}.card-grid-item,.card-layout-item,.card-horizontal-layout,.card-field-wrapper{width:100%;min-width:0;box-sizing:border-box}.card-field-wrapper{overflow-wrap:anywhere}.card-field-wrapper p,.card-field-wrapper h3{margin:0;min-width:0}.card-layout-item img{display:block;max-width:100%;height:auto}.card-layout-item button{max-width:100%;box-sizing:border-box}.schema-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hidden{display:none!important}.card-pagination-wrapper{width:100%;min-width:0;box-sizing:border-box;padding:0 10px}\n"] }]
7013
+ ], standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\r\n record's tick), numbers with their label (#166, tests F8-F11)\r\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\r\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\r\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\r\n - change: media fields are the one vl-media (#166 step 4.4)\r\n - change: the date filter is the one vl-datetime (#166 step 4.4)\r\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\r\n - change: check boxes with vl-checkbox (#166 step 4.4)\r\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\r\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\r\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\r\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\r\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\r\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\r\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\r\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\r\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\r\n card without texts)\r\n - fix: the price fields read ...?.format.currency; a property without format threw the same\r\n way (luv2shop: no prices, cards cut off) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\r\n project defines none; it showed the text \"undefined\" -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\r\n names another one ('native' keeps the system keyboard)\r\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\r\n\r\n<!-- shuaib 2026-09-24\r\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment naming the types this container does not render. It carries four\r\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\r\n\r\n<!-- @contract gap: dateRange, quantity, credit card\r\n reality: a card renders string, number, image, date, time, dropdown, boolean and\r\n autocomplete. Legacy checkbox fields normalize to boolean. dropdown and boolean arrived on 2026-09-18; before that a card\r\n dropped them silently.\r\n failure: a field of a missing type renders empty, with no error.\r\n instead: quantity is grid-only by design; for a dateRange or a credit card use a modal.\r\n seen: this file carries four switch blocks (lines 23, 94, 267, 488) and none of them has\r\n a case for those three - the gap belongs to the container, not to one block -->\r\n\r\n<!-- Loader Spinner -->\r\n\r\n<div *ngIf=\"isLoading\" class=\"loader-overlay\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n<div class=\"vl-card-runtime\">\r\n <!-- top pagination on card -->\r\n <div *ngIf=\"\r\n itemInfo?.layoutSchema?.pagination?.visible &&\r\n itemInfo?.layoutSchema?.pagination?.top\r\n \" class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"itemInfo\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\r\n [currentPage]=\"currentPage\" [pages]=\"pages\"\r\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\r\n (onGoToPage)=\"invokeGoToPage($event)\">\r\n </vl-pagination>\r\n </div>\r\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.header?.style\r\n ).classes\">\r\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index\"\r\n [attr.data-vl-field]=\"vlFieldKey(element)\"\r\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"element.option?.innerAction && element.option?.innerAction === 'saveAll' && !displayedRecords?.length ? \r\n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\r\n\r\n <!-- LABEL -->\r\n <span *ngIf=\"element.label?.caption\"\r\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\r\n [class]=\"element.label?.style?.classes?.[0]\">\r\n {{ element.label.caption }}\r\n </span>\r\n </div>\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\">\r\n <span *ngIf=\"element.option.protected\"\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">\r\n <vl-string [formField]=\"element\"\r\n [modalItemInfo]=\"itemInfo\">\r\n </vl-string>\r\n </span>\r\n <div *ngIf=\"!element.option.protected\"\r\n [class]=\"element?.layout == 'horizontal' ? 'horizontal-layout' : ''\"\r\n [ngClass]=\"element?.style?.classes[0]\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">{{\r\n element.label?.value\r\n ?\r\n element.label?.value : element.label?.caption ?\r\n element.label?.caption :\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}</label>\r\n <vl-datetime kind=\"date\" [field]=\"element\" [target]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(element, itemInfo.propertySchema)\"\r\n [inputClass]=\"element?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(element?.scope?.style).style\"\r\n (changed)=\"dateChangeEvent(element, $event)\"></vl-datetime>\r\n </div>\r\n </div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\r\n (click)=\"invokeOnCardHeader(element)\">\r\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [matTooltip]=\"element?.option?.tooltip || ''\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\r\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\r\n <ng-container\r\n *ngIf=\"!element.caption; else headerTextContent\">\r\n <i nz-icon [nzType]=\"element.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #headerTextContent>{{ element.caption\r\n }}</ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.layoutSchema?.style\r\n ).classes\">\r\n <div *ngFor=\"let record of displayedRecords; let k = index\"\r\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\">\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\r\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\r\n class=\"card-layout-item\" [ngStyle]=\"\r\n layout?.type === 'HorizontalLayout'\r\n ? {}\r\n : getStyleWithoutClasses(layout?.style).style\r\n \" [class]=\"\r\n layout?.type === 'HorizontalLayout'\r\n ? ''\r\n : getStyleWithoutClasses(layout?.style).classes\r\n \">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(layout?.scope?.reference && itemInfo.propertySchema[getScope(layout.scope?.reference)] ? itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.type : layout?.type == 'HorizontalLayout' ? 'HorizontalLayout' : 'default')\">\r\n <!-- Media Control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <ng-container\r\n *ngTemplateOutlet=\"mediaContent; context: { layout: layout, record: record }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">\r\n {{ getHorizontalLayoutCaption(layout) }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n @if(layout.option && layout.option.control &&\r\n !layout.option.protected){\r\n @switch (layout.option.control) {\r\n @case ('textInput') {\r\n <!-- the text shows also when the field is not locked; a card lists, editing is in the dialog (#166) -->\r\n <p\r\n [ngStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n record?.[layout.scope?.reference.split('/').pop()]\r\n ??\r\n itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ??\r\n '--'\r\n }}\r\n </p>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\">\r\n </vl-password>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n @case('textArea'){\r\n <vl-textarea [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\">\r\n </vl-textarea>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"layout\" type=\"flag\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-switch>\r\n }\r\n\r\n @case('radiobutton') {\r\n <vl-radio [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-radio>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(layout?.label?.style).style\">{{ layout.label?.value || layout.label?.caption || itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.style).style\" [inputClass]=\"layout.style?.classes ? layout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n }\r\n }@else {\r\n <!-- a locked value through the read-only building block: password as dots, the radio's text,\r\n the tick from the record (#166, tests F8-F10) -->\r\n@switch (layout.option?.control) {\r\n@case ('password') { <vl-password [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-password> }\r\n@case ('textArea') { <vl-textarea [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-textarea> }\r\n@case ('radiobutton') { <vl-radio [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-radio> }\r\n@case ('dropdown') { <vl-dropdown [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-dropdown> }\r\n@case ('switch') { <vl-switch [field]=\"layout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch> }\r\n@case ('checkbox') { <vl-checkbox [field]=\"layout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-checkbox> }\r\n@default {\r\n<p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [ngStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n record?.[layout.scope?.reference.split('/').pop()]\r\n ??\r\n itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ??\r\n '--'\r\n }}\r\n </p>\r\n}\r\n}\r\n }\r\n\r\n </div>\r\n\r\n <!-- Date Control -->\r\n <div *ngSwitchCase=\"'date'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n <!-- LABEL -->\r\n <span *ngIf=\"layout?.label?.caption\"\r\n [class]=\"layout.label?.style?.classes?.[0]\">\r\n {{ layout.label.caption }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n (record?.[layout.scope?.reference.split('/').pop()] | vlDateText: cardDateKind(layout) : layout.option)\r\n || itemInfo.propertySchema[\r\n getScope(layout.scope?.reference)\r\n ]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ?? '--'\r\n }}\r\n </p>\r\n </div>\r\n\r\n <!-- Time Control -->\r\n <div *ngSwitchCase=\"'time'\"\r\n [class]=\"layout.option?.visible ? 'card-field-wrapper' : 'hidden'\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span *ngIf=\"layout?.label?.caption\"\r\n [class]=\"layout.label?.style?.classes?.[0]\">\r\n {{ layout.label.caption }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <p\r\n *ngIf=\"layout.option?.protected && layout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n (click)=\"showLinkDetails(layout.option, record)\">\r\n {{\r\n (record?.[layout.scope?.reference.split('/').pop()] | vlDateText: 'time' : layout.option)\r\n || itemInfo.propertySchema[\r\n getScope(layout.scope?.reference)\r\n ]?.[layout.scope?.reference.split('/').pop()]?.default\r\n ?? '--'\r\n }}\r\n </p>\r\n </div>\r\n\r\n <!-- number Control -->\r\n <div *ngSwitchCase=\"'number'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the number's label (#166, test F11) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\" [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">{{ getHorizontalLayoutCaption(layout) }}</span>\r\n <!-- VALUE -->\r\n @if(layout.option && layout.option.control &&\r\n !layout.option.protected){\r\n @switch (layout.option.control) {\r\n @case ('textInput') {\r\n <h3 [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n }\r\n @case ('slider') {\r\n <vl-number [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-number>\r\n }\r\n @case ('spinner') {\r\n <vl-number [field]=\"layout\" [readonly]=\"true\"\r\n [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-number>\r\n }\r\n }\r\n } @else{\r\n <h3 [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"layout\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n }\r\n\r\n </div>\r\n\r\n <!-- dropdown Control -->\r\n <div *ngSwitchCase=\"'dropdown'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(layout?.label?.style).style\">{{ layout.label?.value || layout.label?.caption || itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.style).style\" [inputClass]=\"layout.style?.classes ? layout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- autocomplete Control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <h3\r\n *ngIf=\"itemInfo.propertySchema[getScope(layout.scope?.reference)] && itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]?.format?.currency\"\r\n [class]=\"getStyleWithoutClasses(layout?.scope?.style).classes\"\r\n [style]=\"getStyleWithoutClasses(layout?.scope?.style).style\">\r\n <vl-autocomplete [field]=\"layout\" [target]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)][layout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[layout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(layout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\" [inputClass]=\"layout?.scope?.style?.classes ? layout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n </h3>\r\n </div>\r\n\r\n <!-- checkbox Control -->\r\n <div *ngSwitchCase=\"'boolean'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the record's value, read only, with its label (#166, test F9) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(layout.label?.style).style\" [class]=\"getStyleWithoutClasses(layout.label?.style).classes\">{{ getHorizontalLayoutCaption(layout) }}</span>\r\n@if (layout.option?.control === 'switch') {\r\n<vl-switch [field]=\"layout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch>\r\n} @else {\r\n<vl-checkbox [field]=\"layout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"></vl-checkbox>\r\n}\r\n</div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"layout.option?.visible ? 'row' : 'hidden'\">\r\n <button [attr.data-vl-action]=\"vlAction(layout?.option)\" [attr.data-vl-writes]=\"vlWrites(layout?.option)\"\r\n [style]=\"getStyleWithoutClasses(layout?.style).style\"\r\n [class]=\"layout.option.protected ? 'disabled-button' : getStyleWithoutClasses(layout?.style).classes\"\r\n (click)=\"\r\n invokeButtonClick(\r\n layout,\r\n record,\r\n getRecordIndex(record)\r\n )\r\n\">\r\n <ng-container\r\n *ngIf=\"!layout.caption; else textContent\">\r\n <i nz-icon [nzType]=\"layout.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>\r\n {{ layout.caption }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n\r\n <!-- HorizontalLayout Control -->\r\n <div *ngSwitchCase=\"'HorizontalLayout'\">\r\n <div class=\"card-horizontal-layout\"\r\n [class]=\"getStyleWithoutClasses(\r\n layout?.style\r\n ).classes\" [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\r\n <ng-container\r\n *ngFor=\"let innerLayout of layout.elements\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(innerLayout.scope?.reference && itemInfo.propertySchema[getScope(innerLayout.scope?.reference)] ? itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n <!-- Media Control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"mediaContent; context: {\r\n layout: innerLayout,\r\n record: record\r\n }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- String Control -->\r\n <div *ngSwitchCase=\"'string'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n @if(innerLayout.option &&\r\n innerLayout.option.control &&\r\n !innerLayout.option.protected){\r\n @switch\r\n (innerLayout.option.control)\r\n {\r\n @case ('textInput') {\r\n <!-- the text shows also when the field is not locked (#166) -->\r\n <h3\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n\r\n <!-- DATE FORMAT -->\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.dateFormat; else checkInnerTime\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n | date:\r\n innerLayout.option.dateFormat)\r\n : '--' }}\r\n </ng-container>\r\n\r\n <!-- TIME FORMAT -->\r\n <ng-template\r\n #checkInnerTime>\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.timeFormat; else normalInnerValue\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n |\r\n date:\r\n innerLayout.option.timeFormat)\r\n : '--' }}\r\n </ng-container>\r\n </ng-template>\r\n\r\n <!-- NORMAL STRING -->\r\n <ng-template\r\n #normalInnerValue>\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ??\r\n '--' }}\r\n </ng-template>\r\n </h3>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\">\r\n </vl-password>\r\n }\r\n @case ('combobox') {\r\n\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n @case('textArea'){\r\n <vl-textarea [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\">\r\n </vl-textarea>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-switch>\r\n }\r\n\r\n @case('radiobutton') {\r\n <vl-radio [field]=\"innerLayout\" [readonly]=\"true\"\r\n [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\">\r\n </vl-radio>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(innerLayout?.label?.style).style\">{{ innerLayout.label?.value || innerLayout.label?.caption || itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\" [inputClass]=\"innerLayout.style?.classes ? innerLayout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n }\r\n }\r\n }@else{\r\n\r\n <!-- a locked value through the read-only building block: password as dots, the radio's text,\r\n the tick from the record (#166, tests F8-F10) -->\r\n@switch (innerLayout.option?.control) {\r\n@case ('password') { <vl-password [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-password> }\r\n@case ('textArea') { <vl-textarea [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-textarea> }\r\n@case ('radiobutton') { <vl-radio [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-radio> }\r\n@case ('dropdown') { <vl-dropdown [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-dropdown> }\r\n@case ('switch') { <vl-switch [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch> }\r\n@case ('checkbox') { <vl-checkbox [field]=\"innerLayout\" type=\"flag\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-checkbox> }\r\n@default {\r\n<h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n\r\n <!-- DATE FORMAT -->\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.dateFormat; else checkInnerTime\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n | date:\r\n innerLayout.option.dateFormat)\r\n : '--' }}\r\n </ng-container>\r\n\r\n <!-- TIME FORMAT -->\r\n <ng-template\r\n #checkInnerTime>\r\n <ng-container\r\n *ngIf=\"innerLayout.option?.timeFormat; else normalInnerValue\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (record[innerLayout.scope?.reference.split('/').pop()]\r\n |\r\n date:\r\n innerLayout.option.timeFormat)\r\n : '--' }}\r\n </ng-container>\r\n </ng-template>\r\n\r\n <!-- NORMAL STRING -->\r\n <ng-template\r\n #normalInnerValue>\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ??\r\n '--' }}\r\n </ng-template>\r\n </h3>\r\n}\r\n}\r\n }\r\n\r\n </div>\r\n\r\n <!-- number Control -->\r\n <div *ngSwitchCase=\"'number'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n<!-- the number's label (#166, test F11) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\" [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">{{ getHorizontalLayoutCaption(innerLayout) }}</span>\r\n <h3 [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\" [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"><vl-number style=\"display:inline-block\" [field]=\"innerLayout\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [property]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]\" [row]=\"record\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number></h3>\r\n </div>\r\n\r\n <!-- Date Control -->\r\n <div *ngSwitchCase=\"'date'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (innerLayout.option?.dateFormat\r\n ? (record[innerLayout.scope?.reference.split('/').pop()] | date: innerLayout.option.dateFormat)\r\n : (record[innerLayout.scope?.reference.split('/').pop()] | vlDateText: cardDateKind(innerLayout) : innerLayout.option))\r\n : '--' }}\r\n </h3>\r\n </div>\r\n\r\n <!-- Time Control -->\r\n <div *ngSwitchCase=\"'time'\"\r\n [ngClass]=\"[innerLayout?.option?.visible ? 'card-field-wrapper' : 'hidden',getStyleWithoutClasses(innerLayout?.style).classes]\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\">\r\n\r\n <!-- LABEL -->\r\n <span\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\"\r\n [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">\r\n {{\r\n getHorizontalLayoutCaption(innerLayout)\r\n }}\r\n </span>\r\n\r\n <!-- VALUE -->\r\n <h3\r\n *ngIf=\"innerLayout.option?.protected && innerLayout.option?.visible\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\"\r\n (click)=\"showLinkDetails(innerLayout.option, record)\">\r\n {{\r\n record?.[innerLayout.scope?.reference.split('/').pop()]\r\n ?\r\n (innerLayout.option?.timeFormat\r\n ? (record[innerLayout.scope?.reference.split('/').pop()] | date: innerLayout.option.timeFormat)\r\n : (record[innerLayout.scope?.reference.split('/').pop()] | vlDateText: 'time' : innerLayout.option))\r\n : '--' }}\r\n </h3>\r\n </div>\r\n\r\n <!-- dropdown Control -->\r\n <div *ngSwitchCase=\"'dropdown'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n <div class=\"vl-field-row\">\r\n <label [style]=\"getStyleWithoutClasses(innerLayout?.label?.style).style\">{{ innerLayout.label?.value || innerLayout.label?.caption || itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.caption || '' }}</label>\r\n <vl-dropdown [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\" [items]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)]?.[innerLayout.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"false\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.style).style\" [inputClass]=\"innerLayout.style?.classes ? innerLayout.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- autocomplete Control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n <h3\r\n *ngIf=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)] && itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]?.format?.currency\"\r\n [class]=\"getStyleWithoutClasses(innerLayout?.scope?.style).classes\"\r\n [style]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\">\r\n <vl-autocomplete [field]=\"innerLayout\" [target]=\"itemInfo.propertySchema[getScope(innerLayout.scope?.reference)][innerLayout.scope?.reference.split('/').pop()]\"\r\n [list]=\"remoteData[innerLayout.scope?.reference]\" [loading]=\"false\"\r\n [keyboard]=\"keyboardTypeFor(innerLayout, itemInfo.propertySchema)\" [saveTried]=\"false\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || {}\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(innerLayout?.scope?.style).style\" [inputClass]=\"innerLayout?.scope?.style?.classes ? innerLayout.scope.style.classes[0] : ''\">\r\n </vl-autocomplete>\r\n </h3>\r\n </div>\r\n\r\n <!-- checkbox Control -->\r\n <div *ngSwitchCase=\"'boolean'\"\r\n [class]=\"innerLayout.option?.visible ? 'row' : 'hidden'\">\r\n<!-- the record's value, read only, with its label (#166, test F9) -->\r\n<span [ngStyle]=\"getStyleWithoutClasses(innerLayout.label?.style).style\" [class]=\"getStyleWithoutClasses(innerLayout.label?.style).classes\">{{ getHorizontalLayoutCaption(innerLayout) }}</span>\r\n@if (innerLayout.option?.control === 'switch') {\r\n<vl-switch [field]=\"innerLayout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-switch>\r\n} @else {\r\n<vl-checkbox [field]=\"innerLayout\" type=\"boolean\" [readonly]=\"true\" [value]=\"record?.[innerLayout.scope?.reference.split('/').pop()]\"></vl-checkbox>\r\n}\r\n</div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\">\r\n <button nz-button [attr.data-vl-action]=\"vlAction(innerLayout?.option)\" [attr.data-vl-writes]=\"vlWrites(innerLayout?.option)\"\r\n [matTooltip]=\"getHorizontalLayoutTooltip(innerLayout)\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [style]=\"getStyleWithoutClasses(innerLayout?.style).style\"\r\n [class]=\"innerLayout.option?.visible ? innerLayout.option.protected ? 'disabled-button' : getStyleWithoutClasses(innerLayout?.style).classes : 'hidden'\"\r\n (click)=\"\r\n invokeButtonClick(\r\n innerLayout,\r\n record,\r\n getRecordIndex(record)\r\n )\r\n\">\r\n <span\r\n class=\"schema-btn-content\">\r\n <i\r\n *ngIf=\"showButtonIcon(innerLayout)\"\r\n nz-icon\r\n [nzType]=\"innerLayout.icon\"\r\n nzTheme=\"outline\">\r\n </i>\r\n\r\n <span\r\n *ngIf=\"showButtonCaption(innerLayout)\">\r\n {{\r\n innerLayout.caption\r\n }}\r\n </span>\r\n\r\n <span *ngIf=\"\r\n !showButtonIcon(innerLayout) &&\r\n !showButtonCaption(innerLayout)\r\n \">\r\n Button\r\n </span>\r\n </span>\r\n </button>\r\n </div>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\r\n <span\r\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\r\n <ng-container\r\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\">\r\n <span *ngIf=\"element.option.protected\"\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">\r\n <h5>{{\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}\r\n </h5>\r\n </span>\r\n <div *ngIf=\"!element.option.protected\">\r\n <div\r\n [class]=\"element?.layout == 'horizontal' ? 'horizontal-layout' : 'row'\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(element?.label?.style).style\"\r\n [class]=\"element?.label?.style?.classes[0]\">{{\r\n element.label?.value\r\n ?\r\n element.label?.value :\r\n element.label?.caption ?\r\n element.label?.caption :\r\n itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.caption\r\n }}</label>\r\n\r\n <nz-date-picker\r\n [required]=\"element.option.required\"\r\n [name]=\"element.scope?.reference\"\r\n [nzDisabled]=\"element?.option?.disabled\"\r\n (ngModelChange)=\"dateChangeEvent(element, $event)\"\r\n [nzFormat]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.format ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.format : 'yyyy-MM-dd'\"\r\n [(ngModel)]=\"itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()].value\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\"></nz-date-picker>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <!-- Button Control -->\r\n <div *ngSwitchCase=\"'default'\"\r\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\r\n (click)=\"invokeOnCardFooter(element)\">\r\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [style]=\"getStyleWithoutClasses(element.style).style\"\r\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\r\n <ng-container\r\n *ngIf=\"!element.caption; else textContent\">\r\n <i nz-icon [nzType]=\"element.icon\"\r\n nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>\r\n {{ element.caption }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </span>\r\n </div>\r\n <!-- bottom pagination on card -->\r\n <div *ngIf=\"\r\n itemInfo?.data?.length && \r\n itemInfo?.layoutSchema?.pagination?.visible &&\r\n !itemInfo?.layoutSchema?.pagination?.top &&\r\n !scrollPagination\r\n \" class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"itemInfo\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"pageSize\"\r\n [currentPage]=\"currentPage\" [pages]=\"pages\"\r\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\r\n (onGoToPage)=\"invokeGoToPage($event)\">\r\n </vl-pagination>\r\n </div>\r\n\r\n @if (scrollPagination) {\r\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\r\n aria-hidden=\"true\">\r\n </div>\r\n }\r\n</div>\r\n<ng-template #mediaContent let-layout=\"layout\" let-record=\"record\">\r\n <vl-media [field]=\"layout\" [compact]=\"true\" [property]=\"itemInfo.propertySchema[getScope(layout.scope?.reference)]?.[layout.scope?.reference.split('/').pop()]\" [value]=\"record?.[layout.scope?.reference.split('/').pop()]\"\r\n [mediaClass]=\"getStyleWithoutClasses(layout?.scope?.style).classes\" [mediaStyle]=\"getStyleWithoutClasses(layout?.scope?.style).style\"\r\n (clicked)=\"showImageDetails(layout.option, record)\"></vl-media>\r\n</ng-template>", styles: [":host{display:block;width:100%;min-width:0}.vl-card-runtime{min-width:0;box-sizing:border-box}.card-responsive-grid{width:100%;min-width:0;box-sizing:border-box}.scroll-pagination-sentinel{width:100%;height:1px}.card-grid-item,.card-layout-item,.card-horizontal-layout,.card-field-wrapper{width:100%;min-width:0;box-sizing:border-box}.card-field-wrapper{overflow-wrap:anywhere}.card-field-wrapper p,.card-field-wrapper h3{margin:0;min-width:0}.card-layout-item img{display:block;max-width:100%;height:auto}.card-layout-item button{max-width:100%;box-sizing:border-box}.schema-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hidden{display:none!important}.card-pagination-wrapper{width:100%;min-width:0;box-sizing:border-box;padding:0 10px}\n"] }]
6957
7014
  }], ctorParameters: () => [{ type: UtilityService }, { type: i1$2.Platform }, { type: i1$1.HttpClient }, { type: ConfigService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i5.NzModalService }, { type: NotificationService }, { type: i7.OAuthService }, { type: RequestService }], propDecorators: { itemInfo: [{
6958
7015
  type: Input
6959
7016
  }], currentPage: [{
@@ -8662,6 +8719,221 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
8662
8719
  ], selector: 'vl-logs', template: "<div class=\"network-log-wrapper\">\r\n\r\n <div class=\"network-log-table\">\r\n <table>\r\n <thead>\r\n <tr>\r\n <th>#</th>\r\n <th>Time</th>\r\n <th>Method</th>\r\n <th>URL</th>\r\n <th>Status</th>\r\n <th>Duration (ms)</th>\r\n <th>Size (KB)</th>\r\n </tr>\r\n </thead>\r\n\r\n <tbody>\r\n <ng-container *ngFor=\"let log of logs; let i = index\">\r\n\r\n <!-- MAIN ROW -->\r\n <tr class=\"log-row\" (click)=\"toggleRow(i)\">\r\n <td>{{ i + 1 }}</td>\r\n <td>{{ log.time }}</td>\r\n\r\n <td>\r\n <span class=\"method\" [class.get]=\"log.method === 'GET'\" [class.post]=\"log.method === 'POST'\"\r\n [class.put]=\"log.method === 'PUT'\" [class.delete]=\"log.method === 'DELETE'\">\r\n {{ log.method }}\r\n </span>\r\n </td>\r\n\r\n <td class=\"ellipsis\" [title]=\"log.url\">\r\n {{ log.url }}\r\n </td>\r\n\r\n <td [class.error]=\"log.status >= 400\">\r\n {{ log.status }}\r\n </td>\r\n\r\n <td>{{ log.duration }}</td>\r\n\r\n <td>{{ log.size | number:'1.0-2' }}</td>\r\n </tr>\r\n\r\n <!-- DETAILS ROW -->\r\n <tr *ngIf=\"expandedRow === i\" class=\"details-row\">\r\n <td colspan=\"7\">\r\n <div class=\"details-container\">\r\n\r\n <!-- META -->\r\n <div class=\"detail-block\">\r\n <h4>Meta</h4>\r\n <p><strong>Date:</strong> {{ log.date }}</p>\r\n <p><strong>Type:</strong> {{ log.type }}</p>\r\n </div>\r\n\r\n <!-- REQUEST -->\r\n <div class=\"detail-block\">\r\n <h4>Request</h4>\r\n <p><strong>Headers</strong></p>\r\n <pre>{{ log.requestHeaders | json }}</pre>\r\n\r\n <p><strong>Body</strong></p>\r\n <pre>{{ log.requestBody | json }}</pre>\r\n </div>\r\n\r\n <!-- RESPONSE -->\r\n <div class=\"detail-block\">\r\n <h4>Response</h4>\r\n <pre>{{ log.responseBody | json }}</pre>\r\n </div>\r\n\r\n <!-- PERFORMANCE -->\r\n <div class=\"detail-block\">\r\n <h4>Performance</h4>\r\n <p><strong>Duration:</strong> {{ log.duration }} ms</p>\r\n <p><strong>Size:</strong> {{ log.size | number:'1.0-2' }} KB</p>\r\n </div>\r\n\r\n </div>\r\n </td>\r\n </tr>\r\n\r\n </ng-container>\r\n </tbody>\r\n </table>\r\n </div>\r\n\r\n</div>", styles: [".network-log-wrapper{padding:12px}.network-log-table{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px;min-width:900px}thead th{background:#06b6d4;color:#fff;padding:8px;text-align:left;position:sticky;top:0;z-index:2}tbody td{padding:8px;border-bottom:1px solid #e5e7eb}.log-row{cursor:pointer}.log-row:hover{background:#f1f5f9}.details-row{background:#f8fafc}.method{padding:2px 8px;border-radius:4px;font-weight:600;font-size:11px;color:#fff}.method.get{background:#16a34a}.method.post{background:#2563eb}.method.put{background:#d97706}.method.delete{background:#dc2626}td.error{color:#dc2626;font-weight:700}.ellipsis{max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.details-container{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-block{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:10px}.detail-block h4{margin:0 0 6px;font-size:14px;color:#0f172a}pre{background:#020617;color:#e5e7eb;padding:8px;border-radius:6px;max-height:260px;overflow:auto;font-size:12px;white-space:pre-wrap;word-break:break-word}@media(max-width:768px){table{min-width:100%;font-size:12px}.ellipsis{max-width:140px}.details-container{grid-template-columns:1fr}pre{max-height:200px}}\n"] }]
8663
8720
  }], ctorParameters: () => [{ type: NetworkLogService }] });
8664
8721
 
8722
+ // Claude Opus 5.5 2026-10-20
8723
+ // - new: which building block draws a field of a layout, the one rule for every container. The
8724
+ // same decision as the Designer's modal canvas (editor LiveForge/model canvasControl), so the app
8725
+ // draws a field exactly as the Designer shows it. No Angular, so it can be tested with node --test.
8726
+ /** The property a field is bound to (scope.reference) in the page's property schema, or undefined. */
8727
+ function controlProperty(field, propertySchema) {
8728
+ const reference = field?.scope?.reference;
8729
+ if (!reference)
8730
+ return undefined;
8731
+ const { scope, name } = splitReference(reference);
8732
+ return propertySchema?.[scope]?.[name];
8733
+ }
8734
+ /**
8735
+ * The building block of a field:
8736
+ * - no scope.reference: a button (layout field without a property)
8737
+ * - the property type decides media, credit card and the period (dateRange)
8738
+ * - otherwise the control (option.control, or the field catalog's choice for the type)
8739
+ */
8740
+ function controlKind(field, property) {
8741
+ if (!field?.scope?.reference)
8742
+ return 'button';
8743
+ const type = String(property?.type || '').toLowerCase();
8744
+ if (type === 'media' || type === 'image')
8745
+ return 'media';
8746
+ if (type === 'creditcard')
8747
+ return 'creditCard';
8748
+ if (type === 'daterange')
8749
+ return 'daterange';
8750
+ // older data objects naming the control as their type
8751
+ if (type === 'autocomplete' && !field?.option?.control)
8752
+ return 'autocomplete';
8753
+ switch (effectiveControl(field?.option || {}, property || {})) {
8754
+ case 'dateRangepicker': return 'daterange';
8755
+ case 'datepicker': return 'date';
8756
+ case 'timepicker': return 'time';
8757
+ case 'dateTimepicker': return 'datetime';
8758
+ case 'password': return 'password';
8759
+ case 'textArea': return 'textarea';
8760
+ case 'combobox': return 'combobox';
8761
+ case 'autocomplete': return 'autocomplete';
8762
+ case 'dropdown': return 'dropdown';
8763
+ case 'radiobutton': return 'radio';
8764
+ case 'checkbox': return 'checkbox';
8765
+ case 'switch': return 'switch';
8766
+ case 'spinner':
8767
+ case 'slider':
8768
+ case 'quantity': return 'number';
8769
+ case 'creditCard': return 'creditCard';
8770
+ }
8771
+ // a date, time or date and time typed as text keeps its picker: the value is a date, not text
8772
+ if (type === 'date')
8773
+ return 'date';
8774
+ if (type === 'time')
8775
+ return 'time';
8776
+ if (['datetime', 'date&time', 'date-time'].includes(type))
8777
+ return 'datetime';
8778
+ return ['number', 'integer', 'bigdecimal', 'decimal'].includes(type) ? 'number' : 'text';
8779
+ }
8780
+ /**
8781
+ * A style object of the layout split into its classes and its CSS: { classes: ['a', 'b'], color }
8782
+ * -> { classes: 'a b', style: { color } }. Every class counts, not only the first.
8783
+ */
8784
+ function styleParts(styleObject) {
8785
+ if (!styleObject || typeof styleObject !== 'object') {
8786
+ return { classes: '', style: {} };
8787
+ }
8788
+ const { classes, ...style } = styleObject;
8789
+ const list = Array.isArray(classes) ? classes : typeof classes === 'string' ? [classes] : [];
8790
+ return { classes: list.filter((c) => typeof c === 'string' && c.trim()).join(' '), style };
8791
+ }
8792
+
8793
+ // Claude Opus 5.5 2026-10-20
8794
+ // - new: <vl-control>, one field of a layout drawn with the library's building blocks. A container
8795
+ // (dialog first, then form, card and grid) lists its fields and hands each one to <vl-control>
8796
+ // instead of repeating the switch over types and controls in its own template.
8797
+ // Follows the Designer's layout schema for a field:
8798
+ // label.caption / label.value / label.style -> the label (above, or beside with layout "horizontal")
8799
+ // scope.reference -> the property in the property schema
8800
+ // scope.style -> the input
8801
+ // option.control / option.protected / ... -> which control, read only, rules
8802
+ // layoutStyle -> the grid of label and input
8803
+ // The field's own style (the wrapper, grid column) stays with the container, which places it.
8804
+ // The inputs register with the container's <form> (ControlContainer of every control), so the
8805
+ // container's Save still checks them.
8806
+ class ControlComponent {
8807
+ /** the field of the layout (formField) */
8808
+ field;
8809
+ /** the page's property schema: { workOrder: { fromDate: { type, value, ... } } } */
8810
+ propertySchema = {};
8811
+ /** the project's language: selectedLanguage (translations), errorMessages */
8812
+ selectedLanguageInfo = {};
8813
+ /** the container's own error texts, when the project has none */
8814
+ errorMessages = {};
8815
+ /** set by the container after a save attempt: messages show then even for untouched fields */
8816
+ saveTried = false;
8817
+ /** the label rule of the container: 'dialog' (the layout's layoutStyle) or 'form' */
8818
+ container = 'dialog';
8819
+ /** an entry of an autocomplete or combobox list was chosen */
8820
+ picked = new EventEmitter();
8821
+ /** a date, time or period was set */
8822
+ changed = new EventEmitter();
8823
+ /** a time picker opened */
8824
+ opened = new EventEmitter();
8825
+ /** a check box, switch or radio button changed */
8826
+ toggled = new EventEmitter();
8827
+ /** a button was clicked; its option (innerAction, action ...) */
8828
+ buttonClick = new EventEmitter();
8829
+ kind = 'text';
8830
+ property;
8831
+ /** the property's object ({ fromDate: {...}, toDate: {...} }), for amounts with a currency field */
8832
+ row;
8833
+ keyboard = null;
8834
+ /** vl-textbox reads the property schema from a container info */
8835
+ textboxInfo = { propertySchema: {} };
8836
+ vlAction = testAction;
8837
+ vlWrites = testWrites;
8838
+ ngOnChanges() {
8839
+ this.property = controlProperty(this.field, this.propertySchema);
8840
+ this.row = this.propertySchema?.[splitReference(this.field?.scope?.reference).scope];
8841
+ this.kind = controlKind(this.field, this.property);
8842
+ this.keyboard = resolveCustomKeyboardType(this.field?.option, this.property);
8843
+ this.textboxInfo = { propertySchema: this.propertySchema || {} };
8844
+ }
8845
+ /** protected in the layout: the value is shown, not typed in */
8846
+ get readonly() {
8847
+ return this.field?.option?.protected === true;
8848
+ }
8849
+ /** the property the control writes into ({} so a control never writes into undefined) */
8850
+ get target() {
8851
+ return this.property || {};
8852
+ }
8853
+ get translations() {
8854
+ return this.selectedLanguageInfo?.selectedLanguage || null;
8855
+ }
8856
+ get messages() {
8857
+ return this.selectedLanguageInfo?.errorMessages || this.errorMessages;
8858
+ }
8859
+ /** label.value, the layout's label.caption, then the data object's caption - translated */
8860
+ get label() {
8861
+ const caption = this.field?.label?.value || this.field?.label?.caption || this.property?.caption || '';
8862
+ return this.translations?.[caption] || caption;
8863
+ }
8864
+ /** a check box carries its own caption; every other control gets the label above or beside it */
8865
+ get showLabel() {
8866
+ return this.kind !== 'checkbox' && this.kind !== 'button' && this.kind !== 'creditCard';
8867
+ }
8868
+ /** text flag (string "Y"/"N" ...) or Boolean, for check box, switch and radio buttons */
8869
+ get toggleType() {
8870
+ return String(this.property?.type || '').toLowerCase() === 'boolean' ? 'boolean' : 'flag';
8871
+ }
8872
+ innerStyle() {
8873
+ return fieldInnerLayoutStyle(this.field, this.container);
8874
+ }
8875
+ labelStyle() {
8876
+ return styleParts(this.field?.label?.style);
8877
+ }
8878
+ /** scope.style: the input's own style in the layout (the Designer's "input" style) */
8879
+ inputStyle() {
8880
+ return styleParts(this.field?.scope?.style);
8881
+ }
8882
+ /** a button has no input; the field's style is the button's */
8883
+ buttonStyle() {
8884
+ return styleParts(this.field?.style);
8885
+ }
8886
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8887
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: ControlComponent, isStandalone: true, selector: "vl-control", inputs: { field: "field", propertySchema: "propertySchema", selectedLanguageInfo: "selectedLanguageInfo", errorMessages: "errorMessages", saveTried: "saveTried", container: "container" }, outputs: { picked: "picked", changed: "changed", opened: "opened", toggled: "toggled", buttonClick: "buttonClick" }, usesOnChanges: true, ngImport: i0, template: "<!-- Claude Opus 5.5 2026-10-20\r\n - new: one field of a layout with the library's building blocks, as the Designer's canvas shows it:\r\n the label (label.style) above or beside the input (layoutStyle), the input styled by scope.style,\r\n read only when option.protected -->\r\n@if (kind === 'button') {\r\n<button type=\"button\"\r\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\r\n [class]=\"'btn btn-primary btn-block ' + buttonStyle().classes\"\r\n [ngStyle]=\"buttonStyle().style\"\r\n (click)=\"buttonClick.emit(field?.option)\">\r\n {{ label }}\r\n</button>\r\n} @else if (kind === 'creditCard') {\r\n<div id=\"card-element\">\r\n <!-- a Stripe element will be inserted here -->\r\n</div>\r\n<div id=\"card-errors\"></div>\r\n} @else {\r\n<div [ngStyle]=\"innerStyle()\">\r\n @if (showLabel) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</label>\r\n }\r\n @switch (kind) {\r\n @case ('media') {\r\n <vl-media [field]=\"field\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-password>\r\n }\r\n @case ('textarea') {\r\n <vl-textarea [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-textarea>\r\n }\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"field?.data\" [loading]=\"!!field?.loading\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"field?.data\" [loading]=\"!!field?.loading\" [combobox]=\"true\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\r\n }\r\n @case ('dropdown') {\r\n <vl-dropdown [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [items]=\"property?.data\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-dropdown>\r\n }\r\n @case ('radio') {\r\n <vl-radio [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n (chosen)=\"toggled.emit($event)\"></vl-radio>\r\n }\r\n @case ('checkbox') {\r\n <vl-checkbox [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [type]=\"toggleType\" [caption]=\"label\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\"\r\n (toggled)=\"toggled.emit($event)\"></vl-checkbox>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [type]=\"toggleType\" [translations]=\"translations\"\r\n (switched)=\"toggled.emit($event)\"></vl-switch>\r\n }\r\n @case ('number') {\r\n <vl-number [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [type]=\"property?.type || 'number'\" [property]=\"property\" [row]=\"row\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-number>\r\n }\r\n @case ('date') {\r\n <vl-datetime kind=\"date\" [field]=\"field\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\r\n [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (changed)=\"changed.emit($event)\"></vl-datetime>\r\n }\r\n @case ('time') {\r\n <vl-datetime kind=\"time\" [field]=\"field\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\r\n [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (changed)=\"changed.emit($event)\" (opened)=\"opened.emit()\"></vl-datetime>\r\n }\r\n @case ('datetime') {\r\n <vl-datetime kind=\"datetime\" [field]=\"field\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\r\n [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (changed)=\"changed.emit($event)\"></vl-datetime>\r\n }\r\n @case ('daterange') {\r\n <vl-daterange [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (changed)=\"changed.emit($event)\"></vl-daterange>\r\n }\r\n @default {\r\n <!-- textInput, email and every other text control -->\r\n <vl-textbox [formField]=\"field\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"></vl-textbox>\r\n }\r\n }\r\n</div>\r\n}\r\n", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Autocomplete, selector: "vl-autocomplete", inputs: ["field", "target", "value", "readonly", "list", "loading", "combobox", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["picked"] }, { kind: "component", type: CheckboxControl, selector: "vl-checkbox", inputs: ["field", "target", "key", "value", "readonly", "type", "caption", "saveTried", "errorMessages", "translations", "inputStyle"], outputs: ["toggled"] }, { kind: "component", type: DateRangeControl, selector: "vl-daterange", inputs: ["field", "target", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed"] }, { kind: "component", type: DateTimeControl, selector: "vl-datetime", inputs: ["field", "target", "property", "kind", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed", "opened"] }, { kind: "component", type: DropdownControl, selector: "vl-dropdown", inputs: ["field", "target", "value", "readonly", "items", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["chosen"] }, { kind: "component", type: MediaControl, selector: "vl-media", inputs: ["field", "value", "property", "compact", "mediaStyle", "mediaClass"], outputs: ["clicked"] }, { kind: "component", type: NumberControl, selector: "vl-number", inputs: ["field", "target", "value", "readonly", "type", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass", "property", "row"], outputs: ["changed"] }, { kind: "component", type: PasswordControl, selector: "vl-password", inputs: ["field", "target", "value", "readonly", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: RadioControl, selector: "vl-radio", inputs: ["field", "target", "value", "readonly", "type", "saveTried", "errorMessages", "translations"], outputs: ["chosen"] }, { kind: "component", type: SwitchControl, selector: "vl-switch", inputs: ["field", "target", "value", "readonly", "type", "translations"], outputs: ["switched"] }, { kind: "component", type: TextareaControl, selector: "vl-textarea", inputs: ["field", "target", "value", "readonly", "compact", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: Textbox, selector: "vl-textbox", inputs: ["formField", "modalItemInfo", "saveTried", "errorMessages", "readonly", "value"], outputs: ["linkClicked"] }] });
8888
+ }
8889
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ControlComponent, decorators: [{
8890
+ type: Component,
8891
+ args: [{ selector: 'vl-control', standalone: true, imports: [
8892
+ NgStyle,
8893
+ Autocomplete,
8894
+ CheckboxControl,
8895
+ DateRangeControl,
8896
+ DateTimeControl,
8897
+ DropdownControl,
8898
+ MediaControl,
8899
+ NumberControl,
8900
+ PasswordControl,
8901
+ RadioControl,
8902
+ SwitchControl,
8903
+ TextareaControl,
8904
+ Textbox,
8905
+ ], template: "<!-- Claude Opus 5.5 2026-10-20\r\n - new: one field of a layout with the library's building blocks, as the Designer's canvas shows it:\r\n the label (label.style) above or beside the input (layoutStyle), the input styled by scope.style,\r\n read only when option.protected -->\r\n@if (kind === 'button') {\r\n<button type=\"button\"\r\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\r\n [class]=\"'btn btn-primary btn-block ' + buttonStyle().classes\"\r\n [ngStyle]=\"buttonStyle().style\"\r\n (click)=\"buttonClick.emit(field?.option)\">\r\n {{ label }}\r\n</button>\r\n} @else if (kind === 'creditCard') {\r\n<div id=\"card-element\">\r\n <!-- a Stripe element will be inserted here -->\r\n</div>\r\n<div id=\"card-errors\"></div>\r\n} @else {\r\n<div [ngStyle]=\"innerStyle()\">\r\n @if (showLabel) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</label>\r\n }\r\n @switch (kind) {\r\n @case ('media') {\r\n <vl-media [field]=\"field\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-password>\r\n }\r\n @case ('textarea') {\r\n <vl-textarea [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-textarea>\r\n }\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"field?.data\" [loading]=\"!!field?.loading\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"field?.data\" [loading]=\"!!field?.loading\" [combobox]=\"true\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\r\n }\r\n @case ('dropdown') {\r\n <vl-dropdown [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [items]=\"property?.data\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-dropdown>\r\n }\r\n @case ('radio') {\r\n <vl-radio [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n (chosen)=\"toggled.emit($event)\"></vl-radio>\r\n }\r\n @case ('checkbox') {\r\n <vl-checkbox [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [type]=\"toggleType\" [caption]=\"label\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\"\r\n (toggled)=\"toggled.emit($event)\"></vl-checkbox>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [type]=\"toggleType\" [translations]=\"translations\"\r\n (switched)=\"toggled.emit($event)\"></vl-switch>\r\n }\r\n @case ('number') {\r\n <vl-number [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [type]=\"property?.type || 'number'\" [property]=\"property\" [row]=\"row\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-number>\r\n }\r\n @case ('date') {\r\n <vl-datetime kind=\"date\" [field]=\"field\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\r\n [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (changed)=\"changed.emit($event)\"></vl-datetime>\r\n }\r\n @case ('time') {\r\n <vl-datetime kind=\"time\" [field]=\"field\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\r\n [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (changed)=\"changed.emit($event)\" (opened)=\"opened.emit()\"></vl-datetime>\r\n }\r\n @case ('datetime') {\r\n <vl-datetime kind=\"datetime\" [field]=\"field\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\r\n [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (changed)=\"changed.emit($event)\"></vl-datetime>\r\n }\r\n @case ('daterange') {\r\n <vl-daterange [field]=\"field\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\r\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\r\n (changed)=\"changed.emit($event)\"></vl-daterange>\r\n }\r\n @default {\r\n <!-- textInput, email and every other text control -->\r\n <vl-textbox [formField]=\"field\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"></vl-textbox>\r\n }\r\n }\r\n</div>\r\n}\r\n" }]
8906
+ }], propDecorators: { field: [{
8907
+ type: Input
8908
+ }], propertySchema: [{
8909
+ type: Input
8910
+ }], selectedLanguageInfo: [{
8911
+ type: Input
8912
+ }], errorMessages: [{
8913
+ type: Input
8914
+ }], saveTried: [{
8915
+ type: Input
8916
+ }], container: [{
8917
+ type: Input
8918
+ }], picked: [{
8919
+ type: Output
8920
+ }], changed: [{
8921
+ type: Output
8922
+ }], opened: [{
8923
+ type: Output
8924
+ }], toggled: [{
8925
+ type: Output
8926
+ }], buttonClick: [{
8927
+ type: Output
8928
+ }] } });
8929
+
8930
+ // Claude Opus 5.5 2026-10-20
8931
+ // - change: the fields are drawn by the shared <vl-control> (controls/control.ts); the switch over
8932
+ // types and controls, the label, keyboard, media and caption helpers moved there
8933
+ // - change: getFieldWrapperStyle keeps the whole field style of the layout (padding, border,
8934
+ // background ... set in the Designer as the wrapper style), as the Designer's canvas does; before
8935
+ // only grid placement, width and margins came through
8936
+ // - change: styleOf - every class of a style object counts, not only the first
8665
8937
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-19
8666
8938
  // - new: data-vl-field / data-vl-action marks for the app's test runner (#166)
8667
8939
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18
@@ -8723,33 +8995,10 @@ class ModelComponent {
8723
8995
  utilityService;
8724
8996
  /** Marks for the app's test runner (#166): field key and button action. */
8725
8997
  vlFieldKey = testFieldKey;
8726
- vlAction = testAction;
8727
- vlWrites = testWrites;
8728
8998
  remoteLists = inject(RemoteListService);
8729
- /** Keep existing checkbox data objects usable; new objects use boolean. */
8730
- renderFieldType(type, field) {
8731
- // the control dateRangepicker draws the period like the type dateRange (#166 E4)
8732
- if (field?.option?.control === 'dateRangepicker')
8733
- return 'dateRange';
8734
- // date and time in one field: the type datetime (date&time, date-time) or the control dateTimepicker (#166 E5)
8735
- if (field?.option?.control === 'dateTimepicker' || ['datetime', 'date&time', 'date-time'].includes(`${type ?? ''}`.toLowerCase()))
8736
- return 'datetime';
8737
- // whole and exact decimal numbers are numbers too (#166, test F3)
8738
- if (type === 'integer' || type === 'bigdecimal')
8739
- return 'number';
8740
- return type === 'checkbox' ? 'boolean' : type;
8741
- }
8742
8999
  /** Date and time picker behaviour shared by all containers. */
8743
9000
  picker = inject(DateTimePickerService);
8744
9001
  host = inject((ElementRef));
8745
- /** The toolkit keyboard for a field, from option.keyboardType or the attribute type. */
8746
- keyboardTypeFor(formField) {
8747
- const reference = formField?.scope?.reference;
8748
- const property = reference
8749
- ? this.modalItemInfo?.propertySchema?.[this.getScope(reference)]?.[reference.split('/').pop()]
8750
- : null;
8751
- return resolveCustomKeyboardType(formField?.option, property);
8752
- }
8753
9002
  matchData = [];
8754
9003
  date2;
8755
9004
  errorMessages = {};
@@ -8847,16 +9096,6 @@ class ModelComponent {
8847
9096
  walk(cloned);
8848
9097
  return cloned;
8849
9098
  }
8850
- getLabel(formField) {
8851
- let caption = formField.label?.value ? formField.label?.value : formField.label?.caption ? formField.label?.caption : this.modalItemInfo.propertySchema[this.getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption;
8852
- const translation = this.selectedLanguageInfo?.selectedLanguage;
8853
- return translation && translation[caption] ? translation[caption] : caption;
8854
- }
8855
- getButtonCaption(formField) {
8856
- let caption = formField.label?.caption;
8857
- const translation = this.selectedLanguageInfo?.selectedLanguage;
8858
- return translation && translation[caption] ? translation[caption] : caption;
8859
- }
8860
9099
  mapDataToPropertySchema(data, modalItemInfo) {
8861
9100
  if (!data || !modalItemInfo?.propertySchema)
8862
9101
  return;
@@ -8989,46 +9228,34 @@ class ModelComponent {
8989
9228
  // the exception came on every change detection of the dialog and stopped it updating
8990
9229
  return `${error ?? ''}`.replace(/{{\s*field\s*}}/g, fieldName ?? '');
8991
9230
  }
8992
- getStyleWithoutClasses(styleObject) {
8993
- if (!styleObject) {
8994
- return { classes: '', style: {} };
8995
- }
8996
- const { classes, ...styleWithoutClasses } = styleObject;
8997
- return { classes: classes && classes.length > 0 ? classes[0] : '', style: styleWithoutClasses };
9231
+ /** A style object of the layout: its classes (all of them) and its CSS. */
9232
+ styleOf(styleObject) {
9233
+ return styleParts(styleObject);
8998
9234
  }
9235
+ /** The section is a 12 column grid, as in the Designer; the section's own style comes on top. */
8999
9236
  getSectionBodyStyle(formSection) {
9000
- const sectionStyle = {
9001
- ...(formSection?.style || {})
9237
+ const { style } = styleParts(formSection?.style);
9238
+ return {
9239
+ display: 'grid',
9240
+ gridTemplateColumns: 'repeat(12, minmax(0, 1fr))',
9241
+ gap: '12px',
9242
+ width: '100%',
9243
+ boxSizing: 'border-box',
9244
+ ...style
9002
9245
  };
9003
- return this.getStyleWithoutClasses({
9004
- display: sectionStyle.display || 'grid',
9005
- gridTemplateColumns: sectionStyle.gridTemplateColumns ||
9006
- sectionStyle['grid-template-columns'] ||
9007
- 'repeat(12, minmax(0, 1fr))',
9008
- gap: sectionStyle.gap || '12px',
9009
- width: sectionStyle.width || '100%',
9010
- boxSizing: sectionStyle.boxSizing || 'border-box',
9011
- ...sectionStyle
9012
- }).style;
9013
9246
  }
9247
+ /**
9248
+ * The field's wrapper in the section grid: the field's whole style from the layout (the Designer's
9249
+ * wrapper style), placed by gridColumn ("span N", else gridSpan) and never wider than its column.
9250
+ */
9014
9251
  getFieldWrapperStyle(formField) {
9015
- const style = formField?.style || {};
9252
+ const { style } = styleParts(formField?.style);
9016
9253
  return {
9017
- gridColumn: style.gridColumn ||
9018
- style['grid-column'] ||
9019
- `span ${formField?.gridSpan || 12}`,
9020
- gridRow: style.gridRow || style['grid-row'] || undefined,
9021
- justifySelf: style.justifySelf || style['justify-self'] || undefined,
9022
- alignSelf: style.alignSelf || style['align-self'] || undefined,
9023
- width: style.width || '100%',
9024
- maxWidth: style.maxWidth || style['max-width'] || undefined,
9025
- minWidth: style.minWidth || style['min-width'] || '0',
9026
- margin: style.margin || undefined,
9027
- marginTop: style.marginTop || style['margin-top'] || undefined,
9028
- marginRight: style.marginRight || style['margin-right'] || undefined,
9029
- marginBottom: style.marginBottom || style['margin-bottom'] || undefined,
9030
- marginLeft: style.marginLeft || style['margin-left'] || undefined,
9031
- boxSizing: style.boxSizing || style['box-sizing'] || 'border-box'
9254
+ ...style,
9255
+ gridColumn: style['gridColumn'] || style['grid-column'] || `span ${formField?.gridSpan || 12}`,
9256
+ width: style['width'] || '100%',
9257
+ minWidth: style['minWidth'] || style['min-width'] || '0',
9258
+ boxSizing: style['boxSizing'] || style['box-sizing'] || 'border-box'
9032
9259
  };
9033
9260
  }
9034
9261
  onTimePanelShow(formField) {
@@ -9045,70 +9272,9 @@ class ModelComponent {
9045
9272
  currentTime.setSeconds(0, 0);
9046
9273
  this.handleRules(formField, currentTime);
9047
9274
  }
9048
- getControlStyle(formField) {
9049
- const style = {
9050
- ...(formField?.style || {})
9051
- };
9052
- /*
9053
- * These properties belong to the field wrapper because the wrapper
9054
- * is the direct child of the section grid.
9055
- */
9056
- delete style.gridColumn;
9057
- delete style['grid-column'];
9058
- delete style.gridRow;
9059
- delete style['grid-row'];
9060
- delete style.justifySelf;
9061
- delete style['justify-self'];
9062
- delete style.alignSelf;
9063
- delete style['align-self'];
9064
- delete style.margin;
9065
- delete style.marginTop;
9066
- delete style['margin-top'];
9067
- delete style.marginRight;
9068
- delete style['margin-right'];
9069
- delete style.marginBottom;
9070
- delete style['margin-bottom'];
9071
- delete style.marginLeft;
9072
- delete style['margin-left'];
9073
- delete style.classes;
9074
- return {
9075
- width: style.width || '100%',
9076
- maxWidth: style.maxWidth || style['max-width'] || undefined,
9077
- minWidth: style.minWidth || style['min-width'] || '0',
9078
- boxSizing: style.boxSizing || style['box-sizing'] || 'border-box',
9079
- ...style
9080
- };
9081
- }
9082
- getFieldInnerLayoutStyle(formField) {
9083
- // the one rule, shared with the Designer's canvas (#166 E6)
9084
- return fieldInnerLayoutStyle(formField, 'dialog');
9085
- }
9086
9275
  dateChangeEvent(formField, value) {
9087
9276
  this.handleRules(formField, value);
9088
9277
  }
9089
- onDateTyping(event) {
9090
- const input = event.target;
9091
- if (!input)
9092
- return;
9093
- // the field's pattern in the app language (vlDateFormat), shaped like the toolkit keyboard does
9094
- const pattern = input.closest('[data-vl-date-format]')?.getAttribute('data-vl-date-format') || 'yy-mm-dd';
9095
- input.value = shapeDateDigits(input.value, pattern);
9096
- }
9097
- onTimeTyping(event) {
9098
- const input = event?.target || event?.originalEvent?.target;
9099
- if (!input)
9100
- return;
9101
- let digits = input.value.replace(/\D/g, '');
9102
- digits = digits.substring(0, 4);
9103
- let formatted = '';
9104
- if (digits.length <= 2) {
9105
- formatted = digits;
9106
- }
9107
- else {
9108
- formatted = `${digits.slice(0, 2)}:${digits.slice(2)}`;
9109
- }
9110
- input.value = formatted;
9111
- }
9112
9278
  timeChangeEvent(formField, value) {
9113
9279
  this.handleRules(formField, value);
9114
9280
  }
@@ -9225,77 +9391,6 @@ class ModelComponent {
9225
9391
  action: 'cancel'
9226
9392
  });
9227
9393
  }
9228
- getMediaProperty(field) {
9229
- const reference = field?.scope?.reference;
9230
- const key = reference?.split('/').pop();
9231
- return key
9232
- ? this.modalItemInfo?.propertySchema?.[this.getScope(reference)]?.[key]
9233
- : undefined;
9234
- }
9235
- getMediaSource(field) {
9236
- const property = this.getMediaProperty(field);
9237
- const value = field?.option?.src || property?.value || property?.default || '';
9238
- return typeof value === 'string' ? value.trim() : '';
9239
- }
9240
- getMediaLabel(field) {
9241
- if (typeof field?.label === 'string' && field.label.trim()) {
9242
- return field.label;
9243
- }
9244
- return field?.label?.value
9245
- || field?.label?.caption
9246
- || this.getMediaProperty(field)?.caption
9247
- || 'Media';
9248
- }
9249
- getMediaKind(field) {
9250
- const source = this.getMediaSource(field);
9251
- const mime = /^data:([^;,]+)/i.exec(source)?.[1]?.toLowerCase();
9252
- if (mime?.startsWith('image/'))
9253
- return 'image';
9254
- if (mime?.startsWith('video/'))
9255
- return 'video';
9256
- if (mime?.startsWith('audio/'))
9257
- return 'audio';
9258
- if (mime === 'application/pdf')
9259
- return 'pdf';
9260
- const property = this.getMediaProperty(field);
9261
- const candidates = [
9262
- source,
9263
- field?.option?.fileName,
9264
- property?.value,
9265
- property?.default
9266
- ];
9267
- const videos = ['mp4', 'm4v', 'webm', 'mov', 'ogv', 'avi', 'mkv'];
9268
- const audios = ['mp3', 'wav', 'ogg', 'oga', 'm4a', 'aac', 'flac', 'opus'];
9269
- const files = [
9270
- 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx',
9271
- 'txt', 'csv', 'zip', 'rar', '7z'
9272
- ];
9273
- for (const candidate of candidates) {
9274
- if (typeof candidate !== 'string')
9275
- continue;
9276
- if (/^(data|blob):/i.test(candidate))
9277
- continue;
9278
- let path = candidate.split(/[?#]/)[0];
9279
- try {
9280
- path = decodeURIComponent(path);
9281
- }
9282
- catch {
9283
- // Keep the original path.
9284
- }
9285
- const extension = /\.([a-z0-9]+)$/i.exec(path)?.[1]?.toLowerCase();
9286
- if (!extension)
9287
- continue;
9288
- if (videos.includes(extension))
9289
- return 'video';
9290
- if (audios.includes(extension))
9291
- return 'audio';
9292
- if (extension === 'pdf')
9293
- return 'pdf';
9294
- if (files.includes(extension))
9295
- return 'file';
9296
- }
9297
- return 'image';
9298
- }
9299
9394
  /**
9300
9395
  * A field's message shows once the user typed in it and left it, or after a save attempt - not
9301
9396
  * when an empty field was only passed through (the message then pushed the row and its label out
@@ -9306,23 +9401,16 @@ class ModelComponent {
9306
9401
  return !!control?.invalid && ((!!control.dirty && !!control.touched) || this.saveTried);
9307
9402
  }
9308
9403
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ModelComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$4.DynamicDialogRef }, { token: i1$4.DynamicDialogConfig }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Component });
9309
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: ModelComponent, isStandalone: true, selector: "vl-model", inputs: { errorMessages: "errorMessages", modalItemInfo: "modalItemInfo", selectedLanguageInfo: "selectedLanguageInfo", userInfo: "userInfo", setFormDataHandler: "setFormDataHandler" }, usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: a text field with the control email (or any other text control) is drawn as the text field;\r\n it was not drawn at all (#166, test F6)\r\n - fix: every field label by getLabel (label.value, the layout's label.caption, then the DTO caption) (#166, test F3)\r\n - new: date and time in one field (type datetime or control dateTimepicker) with vl-datetime (#166 E5)\r\n - new: the control dateRangepicker shows the period like the type dateRange (#166 E4)\r\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\r\n - change: media fields are the one vl-media (#166 step 4.4)\r\n - change: the period is the one vl-daterange instead of nz-range-picker (#166 step 4.4)\r\n - change: every date and time picker is the one vl-datetime (#166 step 4.4)\r\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\r\n - change: check boxes with vl-checkbox (#166 step 4.4)\r\n - change: numbers with vl-number (plain, spinner, slider) (#166 step 4.4)\r\n - new: radiobutton with vl-radio (text and Boolean) instead of \"not supported yet\" (#166 step 4.4)\r\n - new: switch with vl-switch (string flag and Boolean) instead of \"not supported yet\" (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\r\n - new: textArea with vl-textarea (rows, new-line key) instead of \"not supported yet\" (#166 step 4.4)\r\n - new: password with vl-password (hidden, eye) instead of \"not supported yet\" (#166 step 4.4)\r\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\r\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\r\n project defines none; it showed the text \"undefined\" -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - change: number, autocomplete, date and time fields take the toolkit keyboard of their\r\n attribute type (keyboardTypeFor) instead of only an explicit option.keyboardType\r\n - change: the date picker docks at the bottom on the devices (model-datepicker-panel--docked);\r\n the time picker stays attached to its field in a compact form (model-timepicker-panel);\r\n both report which picker closed (onPickerClose(picker)) -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: the model field switch uses renderFieldType so legacy checkbox fields render as boolean. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment on the widest type coverage in the toolkit, and one on the credit\r\n card case recording that the rename reached this file first -->\r\n<!-- Loader Spinner -->\r\n<div *ngIf=\"isLoading\" class=\"loader-overlay\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n<div [style]=\"getStyleWithoutClasses(modalItemInfo?.layoutSchema?.style).style\"\r\n [class]=\"modalItemInfo?.layoutSchema?.style?.classes[0]\">\r\n <form #dynamicForm=\"ngForm\"\r\n *ngIf=\"modalItemInfo?.layoutSchema?.formSections?.length > 0\"\r\n (submit)=\"$event.preventDefault()\">\r\n <div\r\n *ngFor=\"let formSection of modalItemInfo?.layoutSchema?.formSections\">\r\n <div *ngIf=\"formSection?.label?.caption\"\r\n [class]=\"formSection?.label?.style?.classes[0]\"\r\n [style]=\"getStyleWithoutClasses(formSection?.label?.style).style\">\r\n {{formSection.label.caption}}\r\n </div>\r\n <div *ngIf=\"formSection?.formFields?.length > 0\"\r\n [class]=\"formSection?.style?.classes?.[0] || ''\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\">\r\n <div *ngFor=\"let formField of formSection.formFields | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class]=\"formField?.style?.classes || ''\">\r\n\r\n <!-- @contract decision: the widest type coverage in the toolkit\r\n reality: every field type except the grid-only quantity renders here.\r\n When another container drops a type, this is the way out.\r\n seen: measured 2026-09-19. Note the file is model.component.html while\r\n the container is called modal in layout files - that costs a\r\n search every time -->\r\n <!-- @contract compatibility: checkbox is rendered as boolean for existing projects. -->\r\n <div [ngSwitch]=\"renderFieldType(\r\n formField?.scope?.reference &&\r\n modalItemInfo?.propertySchema?.[\r\n getScope(formField.scope.reference)\r\n ]\r\n ? modalItemInfo.propertySchema[\r\n getScope(formField.scope.reference)\r\n ]?.[\r\n formField.scope.reference.split('/').pop()\r\n ]?.type\r\n : 'default'\r\n , formField)\">\r\n <!-- Media control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [style]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [class]=\"formField.style?.classes ? formField.style?.classes[0] : ''\">\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"modelMediaContent; context: { field: formField }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- credit card control -->\r\n <!-- @contract decision: the credit card type is spelled creditCard\r\n reality: this file was renamed on 2026-09-15, form.component.html and\r\n utility.service.ts followed on 2026-09-19. carditCard is read\r\n nowhere any more.\r\n failure: a data object still declaring carditCard renders empty. -->\r\n <div *ngSwitchCase=\"'creditCard'\"\r\n [style]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [class]=\"formField.style?.classes[0]\">\r\n <div id=\"card-element\">\r\n <!-- a Stripe element will be inserted here -->\r\n </div>\r\n <!-- Used to display form errors -->\r\n <div id=\"card-errors\"\r\n class=\"displayError.textContent!=='': 'alert alert-danger mt-1'\">\r\n </div>\r\n </div>\r\n\r\n <!-- string control -->\r\n <div *ngSwitchCase=\"'string'\" class=\"form-group mb-3\">\r\n @if(formField.option && formField.option.control &&\r\n !formField.option.protected){\r\n @switch (formField.option.control) {\r\n @case ('textInput') {\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textbox [formField]=\"formField\" [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-textbox>\r\n </div>\r\n <!-- Error Message -->\r\n <!-- <div *ngIf=\"showError(inputField)\"\r\n [style]=\"getStyleWithoutClasses(formField?.validation?.style).style\">\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['required']\">\r\n {{setErroMessage(formField, errorMessages, \"required\")}}</p>\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['email']\">\r\n {{(formField.label?.value ?\r\n formField.label?.value :\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption)\r\n +\r\n ' ' + errorMessages.pattern}}</p>\r\n </div> -->\r\n }\r\n @case ('email') {\r\n <!-- an e-mail field: the text field checks the address (#166, test F6) -->\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textbox [formField]=\"formField\" [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-textbox>\r\n </div>\r\n <!-- Error Message -->\r\n <!-- <div *ngIf=\"showError(inputField)\"\r\n [style]=\"getStyleWithoutClasses(formField?.validation?.style).style\">\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['required']\">\r\n {{setErroMessage(formField, errorMessages, \"required\")}}</p>\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['email']\">\r\n {{(formField.label?.value ?\r\n formField.label?.value :\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption)\r\n +\r\n ' ' + errorMessages.pattern}}</p>\r\n </div> -->\r\n }\r\n\r\n @case ('password') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-password [field]=\"formField\"\r\n [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\">\r\n </vl-password>\r\n </div>\r\n }\r\n @case ('combobox') {\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n\r\n <span>\r\n <vl-autocomplete [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [list]=\"formField.data\" [loading]=\"!!formField.loading\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\" [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\"\r\n (picked)=\"autocompSelectEvent($event, formField)\">\r\n </vl-autocomplete>\r\n </span>\r\n </div>\r\n }\r\n @case('textArea'){\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textarea [field]=\"formField\"\r\n [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(formField)\"\r\n [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\">\r\n </vl-textarea>\r\n </div>\r\n }\r\n @case ('switch') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-switch [field]=\"formField\" type=\"flag\"\r\n [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (switched)=\"invokeSetformData()\">\r\n </vl-switch>\r\n </div>\r\n }\r\n\r\n @case('radiobutton') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-radio [field]=\"formField\" type=\"string\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (chosen)=\"invokeSetformData()\">\r\n </vl-radio>\r\n </div>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label [style]=\"getStyleWithoutClasses(formField?.label?.style).style\">{{ getLabel(formField) }}</label>\r\n <vl-dropdown [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [items]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.style).style\" [inputClass]=\"formField.style?.classes ? formField.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n\r\n <span>\r\n <vl-autocomplete [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [list]=\"formField.data\" [loading]=\"!!formField.loading\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\" [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\"\r\n (picked)=\"autocompSelectEvent($event, formField)\">\r\n </vl-autocomplete>\r\n </span>\r\n </div>\r\n }\r\n \r\n @default {\r\n <!-- any other text control: the text field - before, the field was not drawn at all (#166, test F6) -->\r\n\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textbox [formField]=\"formField\" [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-textbox>\r\n </div>\r\n <!-- Error Message -->\r\n <!-- <div *ngIf=\"showError(inputField)\"\r\n [style]=\"getStyleWithoutClasses(formField?.validation?.style).style\">\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['required']\">\r\n {{setErroMessage(formField, errorMessages, \"required\")}}</p>\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['email']\">\r\n {{(formField.label?.value ?\r\n formField.label?.value :\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption)\r\n +\r\n ' ' + errorMessages.pattern}}</p>\r\n </div> -->\r\n }\r\n}\r\n }@else{\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textbox [formField]=\"formField\" [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-textbox>\r\n </div>\r\n <!-- Error Message -->\r\n <!-- <div *ngIf=\"showError(inputField)\"\r\n [style]=\"getStyleWithoutClasses(formField?.validation?.style).style\">\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['required']\">\r\n {{setErroMessage(formField, errorMessages, \"required\")}}</p>\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['email']\">\r\n {{(formField.label?.value ?\r\n formField.label?.value :\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption)\r\n +\r\n ' ' + errorMessages.pattern}}</p>\r\n </div> -->\r\n </div>\r\n }\r\n <span *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n\r\n </div>\r\n\r\n <!-- number control -->\r\n <div *ngSwitchCase=\"'number'\" class=\"form-group mb-3\">\r\n <span *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <h5>{{\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption\r\n }} <vl-number style=\"display:inline-block\" [field]=\"formField\" [readonly]=\"true\" [value]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)]?.[formField.scope?.reference.split('/').pop()]?.value\" [property]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)]?.[formField.scope?.reference.split('/').pop()]\" [row]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number>\r\n </h5>\r\n </span>\r\n <span *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">{{ getLabel(formField) }}</label>\r\n <vl-number [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [property]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [row]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)]\"\r\n [type]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.type || 'number'\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [inputClass]=\"formField.style?.classes ? formField.style?.classes[0] : ''\"></vl-number>\r\n </div>\r\n </span>\r\n </div>\r\n\r\n <!-- DateRange control -->\r\n <div *ngSwitchCase=\"'dateRange'\"\r\n class=\"form-group mb-3\">\r\n <span *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">{{ getLabel(formField) }}</label>\r\n <vl-daterange [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [keyboard]=\"keyboardTypeFor(formField)\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.style).style\"></vl-daterange>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\">\r\n <span\r\n *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string\r\n [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n {{ getLabel(formField) }}\r\n </label>\r\n\r\n <span>\r\n <vl-datetime kind=\"date\" [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputClass]=\"formField?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n (changed)=\"dateChangeEvent(formField, $event)\"></vl-datetime>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Time control -->\r\n <div *ngSwitchCase=\"'time'\" class=\"form-group mb-3\">\r\n <span\r\n *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string\r\n [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n {{ getLabel(formField) }}\r\n </label>\r\n\r\n <span>\r\n <vl-datetime kind=\"time\" [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputClass]=\"formField?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n (changed)=\"timeChangeEvent(formField, $event)\"\r\n (opened)=\"onTimePanelShow(formField)\"></vl-datetime>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- date and time in one field (#166 E5) -->\r\n <div *ngSwitchCase=\"'datetime'\" class=\"form-group mb-3\">\r\n <span\r\n *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string\r\n [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n {{ getLabel(formField) }}\r\n </label>\r\n\r\n <span>\r\n <vl-datetime kind=\"datetime\" [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputClass]=\"formField?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n (changed)=\"dateChangeEvent(formField, $event)\"></vl-datetime>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Autocomplete control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n class=\"form-group mb-3\">\r\n <span *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n\r\n <span>\r\n <vl-autocomplete [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [list]=\"formField.data\" [loading]=\"!!formField.loading\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\" [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\"\r\n (picked)=\"autocompSelectEvent($event, formField)\">\r\n </vl-autocomplete>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- checkBox control -->\r\n <div *ngSwitchCase=\"'boolean'\" class=\"form-group mb-3\"\r\n [style]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [class]=\"formField.style?.classes ? formField.style?.classes[0] : ''\">\r\n @if (formField?.option?.control === 'radiobutton') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-radio [field]=\"formField\" type=\"boolean\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (chosen)=\"invokeSetformData()\">\r\n </vl-radio>\r\n </div>\r\n } @else if (formField?.option?.control === 'switch') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-switch [field]=\"formField\" type=\"boolean\"\r\n [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (switched)=\"invokeSetformData()\">\r\n </vl-switch>\r\n </div>\r\n } @else {\r\n <vl-checkbox [field]=\"formField\" type=\"boolean\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [caption]=\"formField.label?.value || formField.label?.caption || modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption || ''\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (toggled)=\"invokeSetformData()\"></vl-checkbox>\r\n }\r\n </div>\r\n\r\n <!-- dropdown control -->\r\n <div *ngSwitchCase=\"'dropdown'\" class=\"form-group mb-3\"\r\n [style]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [class]=\"formField.style?.classes ? formField.style?.classes[0] : ''\">\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label [style]=\"getStyleWithoutClasses(formField?.label?.style).style\">{{ getLabel(formField) }}</label>\r\n <vl-dropdown [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [items]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.style).style\" [inputClass]=\"formField.style?.classes ? formField.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- button control -->\r\n <div *ngSwitchCase=\"'default'\">\r\n <button type=\"button\" [attr.data-vl-action]=\"vlAction(formField.option)\" [attr.data-vl-writes]=\"vlWrites(formField.option)\"\r\n [ngStyle]=\"getStyleWithoutClasses(formField.style).style\"\r\n (click)=\"invokeFormBtnClick(formField.option, modalItemInfo.propertySchema, dynamicForm)\"\r\n class=\"btn btn-primary btn-block\">\r\n {{ getButtonCaption(formField) }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n</div>\r\n<ng-template #modelMediaContent let-field=\"field\">\r\n <vl-media [field]=\"field\" [property]=\"modalItemInfo.propertySchema[getScope(field.scope?.reference)]?.[field.scope?.reference.split('/').pop()]\" [value]=\"modalItemInfo.propertySchema[getScope(field.scope?.reference)]?.[field.scope?.reference.split('/').pop()]?.value\"></vl-media>\r\n</ng-template>", styles: [":host ::ng-deep .custom-datepicker .p-datepicker-dropdown{height:100%;border-radius:4px}:host ::ng-deep .custom-datepicker .p-datepicker-input{border-radius:4px}::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}.responsive-modal-grid{width:100%;min-width:0;box-sizing:border-box}:host{display:block;container-type:inline-size}.responsive-modal-field [style*=grid-template-columns]{align-items:start!important}.responsive-modal-field [style*=grid-template-columns]>:first-child{padding-top:10px}@container (max-width: 660px){.responsive-modal-grid{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:10px!important}.responsive-modal-field{grid-column:1 / -1!important;width:100%!important;max-width:none!important;min-width:0!important}.responsive-modal-action:nth-last-child(2){grid-column:1 / span 6!important}.responsive-modal-action:last-child{grid-column:7 / span 6!important}.responsive-modal-action{width:100%!important;max-width:none!important;min-width:0!important;justify-self:stretch!important;box-sizing:border-box!important}.responsive-modal-action button{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}}:host{--modal-field-focus-color: var(--p-primary-color, #10b981);--modal-field-focus-shadow: 0 0 0 2px rgba(16, 185, 129, .16)}:host ::ng-deep input:not([type=checkbox]):not(:disabled):focus,:host ::ng-deep textarea:not(:disabled):focus{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-autocomplete:focus-within{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-autocomplete:focus-within .p-autocomplete-input{border:none!important;outline:none!important;box-shadow:none!important}:host ::ng-deep select:not(:disabled):focus{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .ant-select-focused:not(.ant-select-disabled) .ant-select-selector,:host ::ng-deep nz-select:not(.ant-select-disabled):focus-within .ant-select-selector{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .p-select:not(.p-disabled).p-focus,:host ::ng-deep .p-select:not(.p-disabled):focus-within,:host ::ng-deep .p-dropdown:not(.p-disabled).p-focus,:host ::ng-deep .p-dropdown:not(.p-disabled):focus-within{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-datepicker:focus-within .p-datepicker-input{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep input:disabled,:host ::ng-deep textarea:disabled,:host ::ng-deep select:disabled,:host ::ng-deep .p-disabled,:host ::ng-deep .ant-select-disabled .ant-select-selector{box-shadow:none!important}\n"], dependencies: [{ kind: "component", type: Autocomplete, selector: "vl-autocomplete", inputs: ["field", "target", "value", "readonly", "list", "loading", "combobox", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["picked"] }, { kind: "component", type: SwitchControl, selector: "vl-switch", inputs: ["field", "target", "value", "readonly", "type", "translations"], outputs: ["switched"] }, { kind: "component", type: RadioControl, selector: "vl-radio", inputs: ["field", "target", "value", "readonly", "type", "saveTried", "errorMessages", "translations"], outputs: ["chosen"] }, { kind: "component", type: NumberControl, selector: "vl-number", inputs: ["field", "target", "value", "readonly", "type", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass", "property", "row"], outputs: ["changed"] }, { kind: "component", type: CheckboxControl, selector: "vl-checkbox", inputs: ["field", "target", "key", "value", "readonly", "type", "caption", "saveTried", "errorMessages", "translations", "inputStyle"], outputs: ["toggled"] }, { kind: "component", type: DropdownControl, selector: "vl-dropdown", inputs: ["field", "target", "value", "readonly", "items", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["chosen"] }, { kind: "component", type: DateTimeControl, selector: "vl-datetime", inputs: ["field", "target", "property", "kind", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed", "opened"] }, { kind: "component", type: DateRangeControl, selector: "vl-daterange", inputs: ["field", "target", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed"] }, { kind: "component", type: MediaControl, selector: "vl-media", inputs: ["field", "value", "property", "compact", "mediaStyle", "mediaClass"], outputs: ["clicked"] }, { kind: "component", type: PasswordControl, selector: "vl-password", inputs: ["field", "target", "value", "readonly", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: TextareaControl, selector: "vl-textarea", inputs: ["field", "target", "value", "readonly", "compact", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i9.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i9.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i9.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "ngmodule", type: DatePickerModule }, { kind: "ngmodule", type: AutoCompleteModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "component", type: Label, selector: "vl-label", inputs: ["formField", "modalItemInfo"] }, { kind: "component", type: String$1, selector: "vl-string", inputs: ["formField", "modalItemInfo"] }, { kind: "component", type: Textbox, selector: "vl-textbox", inputs: ["formField", "modalItemInfo", "saveTried", "errorMessages", "readonly", "value"], outputs: ["linkClicked"] }, { kind: "pipe", type: VisiblePipe, name: "vlVisible" }] });
9404
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: ModelComponent, isStandalone: true, selector: "vl-model", inputs: { errorMessages: "errorMessages", modalItemInfo: "modalItemInfo", selectedLanguageInfo: "selectedLanguageInfo", userInfo: "userInfo", setFormDataHandler: "setFormDataHandler" }, usesOnChanges: true, ngImport: i0, template: "<!-- Claude Opus 5.5 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> (controls/control.ts) instead of a\r\n switch over types and controls in this template; the same building block as the Designer's canvas\r\n - change: follows the Designer's modal layout schema: the field's style is its wrapper (padding,\r\n border, background no longer dropped), scope.style is the input for every control (dropdown,\r\n number and period took the wrapper's style before), all classes of a style count, not only the first\r\n - change: a protected field shows its label and its value (read only control); a protected text\r\n showed only the data object's caption -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: a text field with the control email (or any other text control) is drawn as the text field;\r\n it was not drawn at all (#166, test F6)\r\n - fix: every field label by getLabel (label.value, the layout's label.caption, then the DTO caption) (#166, test F3)\r\n - new: date and time in one field (type datetime or control dateTimepicker) with vl-datetime (#166 E5)\r\n - new: the control dateRangepicker shows the period like the type dateRange (#166 E4)\r\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\r\n - change: media fields are the one vl-media (#166 step 4.4)\r\n - change: the period is the one vl-daterange instead of nz-range-picker (#166 step 4.4)\r\n - change: every date and time picker is the one vl-datetime (#166 step 4.4)\r\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\r\n - change: check boxes with vl-checkbox (#166 step 4.4)\r\n - change: numbers with vl-number (plain, spinner, slider) (#166 step 4.4)\r\n - new: radiobutton with vl-radio (text and Boolean) instead of \"not supported yet\" (#166 step 4.4)\r\n - new: switch with vl-switch (string flag and Boolean) instead of \"not supported yet\" (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\r\n - new: textArea with vl-textarea (rows, new-line key) instead of \"not supported yet\" (#166 step 4.4)\r\n - new: password with vl-password (hidden, eye) instead of \"not supported yet\" (#166 step 4.4)\r\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\r\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\r\n project defines none; it showed the text \"undefined\" -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - change: number, autocomplete, date and time fields take the toolkit keyboard of their\r\n attribute type (keyboardTypeFor) instead of only an explicit option.keyboardType\r\n - change: the date picker docks at the bottom on the devices (model-datepicker-panel--docked);\r\n the time picker stays attached to its field in a compact form (model-timepicker-panel);\r\n both report which picker closed (onPickerClose(picker)) -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: the model field switch uses renderFieldType so legacy checkbox fields render as boolean. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment on the widest type coverage in the toolkit, and one on the credit\r\n card case recording that the rename reached this file first -->\r\n<!-- Loader Spinner -->\r\n<div *ngIf=\"isLoading\" class=\"loader-overlay\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n<div [ngStyle]=\"styleOf(modalItemInfo?.layoutSchema?.style).style\"\r\n [class]=\"styleOf(modalItemInfo?.layoutSchema?.style).classes\">\r\n <form #dynamicForm=\"ngForm\"\r\n *ngIf=\"modalItemInfo?.layoutSchema?.formSections?.length > 0\"\r\n (submit)=\"$event.preventDefault()\">\r\n <div *ngFor=\"let formSection of modalItemInfo?.layoutSchema?.formSections\">\r\n <div *ngIf=\"formSection?.label?.caption\"\r\n [class]=\"styleOf(formSection?.label?.style).classes\"\r\n [ngStyle]=\"styleOf(formSection?.label?.style).style\">\r\n {{ formSection.label.caption }}\r\n </div>\r\n <div *ngIf=\"formSection?.formFields?.length > 0\"\r\n [class]=\"styleOf(formSection?.style).classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\">\r\n <!-- the field's style is its wrapper in the section grid (gridColumn \"span N\"), as in\r\n the Designer; label, input and button are drawn by <vl-control> -->\r\n <div *ngFor=\"let formField of formSection.formFields | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class]=\"styleOf(formField?.style).classes\">\r\n <vl-control [field]=\"formField\"\r\n [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"dialog\"\r\n (picked)=\"autocompSelectEvent($event, formField)\"\r\n (changed)=\"handleRules(formField, $event)\"\r\n (opened)=\"onTimePanelShow(formField)\"\r\n (toggled)=\"invokeSetformData()\"\r\n (buttonClick)=\"invokeFormBtnClick($event, modalItemInfo.propertySchema, dynamicForm)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n</div>\r\n", styles: [":host ::ng-deep .custom-datepicker .p-datepicker-dropdown{height:100%;border-radius:4px}:host ::ng-deep .custom-datepicker .p-datepicker-input{border-radius:4px}::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}.responsive-modal-grid{width:100%;min-width:0;box-sizing:border-box}:host{display:block;container-type:inline-size}.responsive-modal-field [style*=grid-template-columns]{align-items:start!important}.responsive-modal-field [style*=grid-template-columns]>:first-child{padding-top:10px}@container (max-width: 660px){.responsive-modal-grid{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:10px!important}.responsive-modal-field{grid-column:1 / -1!important;width:100%!important;max-width:none!important;min-width:0!important}.responsive-modal-action:nth-last-child(2){grid-column:1 / span 6!important}.responsive-modal-action:last-child{grid-column:7 / span 6!important}.responsive-modal-action{width:100%!important;max-width:none!important;min-width:0!important;justify-self:stretch!important;box-sizing:border-box!important}.responsive-modal-action button{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}}:host{--modal-field-focus-color: var(--p-primary-color, #10b981);--modal-field-focus-shadow: 0 0 0 2px rgba(16, 185, 129, .16)}:host ::ng-deep input:not([type=checkbox]):not(:disabled):focus,:host ::ng-deep textarea:not(:disabled):focus{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-autocomplete:focus-within{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-autocomplete:focus-within .p-autocomplete-input{border:none!important;outline:none!important;box-shadow:none!important}:host ::ng-deep select:not(:disabled):focus{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .ant-select-focused:not(.ant-select-disabled) .ant-select-selector,:host ::ng-deep nz-select:not(.ant-select-disabled):focus-within .ant-select-selector{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .p-select:not(.p-disabled).p-focus,:host ::ng-deep .p-select:not(.p-disabled):focus-within,:host ::ng-deep .p-dropdown:not(.p-disabled).p-focus,:host ::ng-deep .p-dropdown:not(.p-disabled):focus-within{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-datepicker:focus-within .p-datepicker-input{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep input:disabled,:host ::ng-deep textarea:disabled,:host ::ng-deep select:disabled,:host ::ng-deep .p-disabled,:host ::ng-deep .ant-select-disabled .ant-select-selector{box-shadow:none!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: ControlComponent, selector: "vl-control", inputs: ["field", "propertySchema", "selectedLanguageInfo", "errorMessages", "saveTried", "container"], outputs: ["picked", "changed", "opened", "toggled", "buttonClick"] }, { kind: "pipe", type: VisiblePipe, name: "vlVisible" }] });
9310
9405
  }
9311
9406
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ModelComponent, decorators: [{
9312
9407
  type: Component,
9313
- args: [{ standalone: true, selector: 'vl-model', imports: [PlaceholderPipe, Autocomplete, SwitchControl, RadioControl, NumberControl, CheckboxControl, DropdownControl, DateTimeControl, DateRangeControl, MediaControl, PasswordControl, TextareaControl, VisiblePipe, DateHintPipe, DateFormatPipe, DateTextPipe, MediaSourcePipe,
9408
+ args: [{ standalone: true, selector: 'vl-model', imports: [
9314
9409
  CommonModule,
9315
9410
  FormsModule,
9316
- NzSelectModule,
9317
- NzDatePickerModule,
9318
- DatePickerModule,
9319
- AutoCompleteModule,
9320
- InputTextModule,
9321
- Label,
9322
- String$1,
9323
- Textbox,
9324
- CustomKeyboardDirective,
9325
- ], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: a text field with the control email (or any other text control) is drawn as the text field;\r\n it was not drawn at all (#166, test F6)\r\n - fix: every field label by getLabel (label.value, the layout's label.caption, then the DTO caption) (#166, test F3)\r\n - new: date and time in one field (type datetime or control dateTimepicker) with vl-datetime (#166 E5)\r\n - new: the control dateRangepicker shows the period like the type dateRange (#166 E4)\r\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\r\n - change: media fields are the one vl-media (#166 step 4.4)\r\n - change: the period is the one vl-daterange instead of nz-range-picker (#166 step 4.4)\r\n - change: every date and time picker is the one vl-datetime (#166 step 4.4)\r\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\r\n - change: check boxes with vl-checkbox (#166 step 4.4)\r\n - change: numbers with vl-number (plain, spinner, slider) (#166 step 4.4)\r\n - new: radiobutton with vl-radio (text and Boolean) instead of \"not supported yet\" (#166 step 4.4)\r\n - new: switch with vl-switch (string flag and Boolean) instead of \"not supported yet\" (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\r\n - new: textArea with vl-textarea (rows, new-line key) instead of \"not supported yet\" (#166 step 4.4)\r\n - new: password with vl-password (hidden, eye) instead of \"not supported yet\" (#166 step 4.4)\r\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\r\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\r\n project defines none; it showed the text \"undefined\" -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - change: number, autocomplete, date and time fields take the toolkit keyboard of their\r\n attribute type (keyboardTypeFor) instead of only an explicit option.keyboardType\r\n - change: the date picker docks at the bottom on the devices (model-datepicker-panel--docked);\r\n the time picker stays attached to its field in a compact form (model-timepicker-panel);\r\n both report which picker closed (onPickerClose(picker)) -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: the model field switch uses renderFieldType so legacy checkbox fields render as boolean. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment on the widest type coverage in the toolkit, and one on the credit\r\n card case recording that the rename reached this file first -->\r\n<!-- Loader Spinner -->\r\n<div *ngIf=\"isLoading\" class=\"loader-overlay\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n<div [style]=\"getStyleWithoutClasses(modalItemInfo?.layoutSchema?.style).style\"\r\n [class]=\"modalItemInfo?.layoutSchema?.style?.classes[0]\">\r\n <form #dynamicForm=\"ngForm\"\r\n *ngIf=\"modalItemInfo?.layoutSchema?.formSections?.length > 0\"\r\n (submit)=\"$event.preventDefault()\">\r\n <div\r\n *ngFor=\"let formSection of modalItemInfo?.layoutSchema?.formSections\">\r\n <div *ngIf=\"formSection?.label?.caption\"\r\n [class]=\"formSection?.label?.style?.classes[0]\"\r\n [style]=\"getStyleWithoutClasses(formSection?.label?.style).style\">\r\n {{formSection.label.caption}}\r\n </div>\r\n <div *ngIf=\"formSection?.formFields?.length > 0\"\r\n [class]=\"formSection?.style?.classes?.[0] || ''\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\">\r\n <div *ngFor=\"let formField of formSection.formFields | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class]=\"formField?.style?.classes || ''\">\r\n\r\n <!-- @contract decision: the widest type coverage in the toolkit\r\n reality: every field type except the grid-only quantity renders here.\r\n When another container drops a type, this is the way out.\r\n seen: measured 2026-09-19. Note the file is model.component.html while\r\n the container is called modal in layout files - that costs a\r\n search every time -->\r\n <!-- @contract compatibility: checkbox is rendered as boolean for existing projects. -->\r\n <div [ngSwitch]=\"renderFieldType(\r\n formField?.scope?.reference &&\r\n modalItemInfo?.propertySchema?.[\r\n getScope(formField.scope.reference)\r\n ]\r\n ? modalItemInfo.propertySchema[\r\n getScope(formField.scope.reference)\r\n ]?.[\r\n formField.scope.reference.split('/').pop()\r\n ]?.type\r\n : 'default'\r\n , formField)\">\r\n <!-- Media control -->\r\n <div\r\n *ngSwitchCase=\"'media'\"\r\n [style]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [class]=\"formField.style?.classes ? formField.style?.classes[0] : ''\">\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"modelMediaContent; context: { field: formField }\">\r\n </ng-container>\r\n </div>\r\n\r\n <!-- credit card control -->\r\n <!-- @contract decision: the credit card type is spelled creditCard\r\n reality: this file was renamed on 2026-09-15, form.component.html and\r\n utility.service.ts followed on 2026-09-19. carditCard is read\r\n nowhere any more.\r\n failure: a data object still declaring carditCard renders empty. -->\r\n <div *ngSwitchCase=\"'creditCard'\"\r\n [style]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [class]=\"formField.style?.classes[0]\">\r\n <div id=\"card-element\">\r\n <!-- a Stripe element will be inserted here -->\r\n </div>\r\n <!-- Used to display form errors -->\r\n <div id=\"card-errors\"\r\n class=\"displayError.textContent!=='': 'alert alert-danger mt-1'\">\r\n </div>\r\n </div>\r\n\r\n <!-- string control -->\r\n <div *ngSwitchCase=\"'string'\" class=\"form-group mb-3\">\r\n @if(formField.option && formField.option.control &&\r\n !formField.option.protected){\r\n @switch (formField.option.control) {\r\n @case ('textInput') {\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textbox [formField]=\"formField\" [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-textbox>\r\n </div>\r\n <!-- Error Message -->\r\n <!-- <div *ngIf=\"showError(inputField)\"\r\n [style]=\"getStyleWithoutClasses(formField?.validation?.style).style\">\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['required']\">\r\n {{setErroMessage(formField, errorMessages, \"required\")}}</p>\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['email']\">\r\n {{(formField.label?.value ?\r\n formField.label?.value :\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption)\r\n +\r\n ' ' + errorMessages.pattern}}</p>\r\n </div> -->\r\n }\r\n @case ('email') {\r\n <!-- an e-mail field: the text field checks the address (#166, test F6) -->\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textbox [formField]=\"formField\" [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-textbox>\r\n </div>\r\n <!-- Error Message -->\r\n <!-- <div *ngIf=\"showError(inputField)\"\r\n [style]=\"getStyleWithoutClasses(formField?.validation?.style).style\">\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['required']\">\r\n {{setErroMessage(formField, errorMessages, \"required\")}}</p>\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['email']\">\r\n {{(formField.label?.value ?\r\n formField.label?.value :\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption)\r\n +\r\n ' ' + errorMessages.pattern}}</p>\r\n </div> -->\r\n }\r\n\r\n @case ('password') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-password [field]=\"formField\"\r\n [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\">\r\n </vl-password>\r\n </div>\r\n }\r\n @case ('combobox') {\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n\r\n <span>\r\n <vl-autocomplete [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [list]=\"formField.data\" [loading]=\"!!formField.loading\" [combobox]=\"true\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\" [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\"\r\n (picked)=\"autocompSelectEvent($event, formField)\">\r\n </vl-autocomplete>\r\n </span>\r\n </div>\r\n }\r\n @case('textArea'){\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textarea [field]=\"formField\"\r\n [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(formField)\"\r\n [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\">\r\n </vl-textarea>\r\n </div>\r\n }\r\n @case ('switch') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-switch [field]=\"formField\" type=\"flag\"\r\n [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (switched)=\"invokeSetformData()\">\r\n </vl-switch>\r\n </div>\r\n }\r\n\r\n @case('radiobutton') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-radio [field]=\"formField\" type=\"string\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (chosen)=\"invokeSetformData()\">\r\n </vl-radio>\r\n </div>\r\n }\r\n\r\n @case ('dropdown') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label [style]=\"getStyleWithoutClasses(formField?.label?.style).style\">{{ getLabel(formField) }}</label>\r\n <vl-dropdown [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [items]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.style).style\" [inputClass]=\"formField.style?.classes ? formField.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n }\r\n\r\n @case ('autocomplete') {\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n\r\n <span>\r\n <vl-autocomplete [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [list]=\"formField.data\" [loading]=\"!!formField.loading\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\" [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\"\r\n (picked)=\"autocompSelectEvent($event, formField)\">\r\n </vl-autocomplete>\r\n </span>\r\n </div>\r\n }\r\n \r\n @default {\r\n <!-- any other text control: the text field - before, the field was not drawn at all (#166, test F6) -->\r\n\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textbox [formField]=\"formField\" [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-textbox>\r\n </div>\r\n <!-- Error Message -->\r\n <!-- <div *ngIf=\"showError(inputField)\"\r\n [style]=\"getStyleWithoutClasses(formField?.validation?.style).style\">\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['required']\">\r\n {{setErroMessage(formField, errorMessages, \"required\")}}</p>\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['email']\">\r\n {{(formField.label?.value ?\r\n formField.label?.value :\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption)\r\n +\r\n ' ' + errorMessages.pattern}}</p>\r\n </div> -->\r\n }\r\n}\r\n }@else{\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-textbox [formField]=\"formField\" [saveTried]=\"saveTried\" [errorMessages]=\"errorMessages\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-textbox>\r\n </div>\r\n <!-- Error Message -->\r\n <!-- <div *ngIf=\"showError(inputField)\"\r\n [style]=\"getStyleWithoutClasses(formField?.validation?.style).style\">\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['required']\">\r\n {{setErroMessage(formField, errorMessages, \"required\")}}</p>\r\n <p class=\"text-danger\" *ngIf=\"inputField?.errors?.['email']\">\r\n {{(formField.label?.value ?\r\n formField.label?.value :\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption)\r\n +\r\n ' ' + errorMessages.pattern}}</p>\r\n </div> -->\r\n </div>\r\n }\r\n <span *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n\r\n </div>\r\n\r\n <!-- number control -->\r\n <div *ngSwitchCase=\"'number'\" class=\"form-group mb-3\">\r\n <span *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <h5>{{\r\n modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption\r\n }} <vl-number style=\"display:inline-block\" [field]=\"formField\" [readonly]=\"true\" [value]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)]?.[formField.scope?.reference.split('/').pop()]?.value\" [property]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)]?.[formField.scope?.reference.split('/').pop()]\" [row]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)]\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"></vl-number>\r\n </h5>\r\n </span>\r\n <span *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">{{ getLabel(formField) }}</label>\r\n <vl-number [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [property]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [row]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)]\"\r\n [type]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.type || 'number'\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [inputClass]=\"formField.style?.classes ? formField.style?.classes[0] : ''\"></vl-number>\r\n </div>\r\n </span>\r\n </div>\r\n\r\n <!-- DateRange control -->\r\n <div *ngSwitchCase=\"'dateRange'\"\r\n class=\"form-group mb-3\">\r\n <span *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">{{ getLabel(formField) }}</label>\r\n <vl-daterange [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [keyboard]=\"keyboardTypeFor(formField)\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.style).style\"></vl-daterange>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Date control -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\">\r\n <span\r\n *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string\r\n [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n {{ getLabel(formField) }}\r\n </label>\r\n\r\n <span>\r\n <vl-datetime kind=\"date\" [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputClass]=\"formField?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n (changed)=\"dateChangeEvent(formField, $event)\"></vl-datetime>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Time control -->\r\n <div *ngSwitchCase=\"'time'\" class=\"form-group mb-3\">\r\n <span\r\n *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string\r\n [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n {{ getLabel(formField) }}\r\n </label>\r\n\r\n <span>\r\n <vl-datetime kind=\"time\" [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputClass]=\"formField?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n (changed)=\"timeChangeEvent(formField, $event)\"\r\n (opened)=\"onTimePanelShow(formField)\"></vl-datetime>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- date and time in one field (#166 E5) -->\r\n <div *ngSwitchCase=\"'datetime'\" class=\"form-group mb-3\">\r\n <span\r\n *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string\r\n [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n {{ getLabel(formField) }}\r\n </label>\r\n\r\n <span>\r\n <vl-datetime kind=\"datetime\" [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputClass]=\"formField?.scope?.style?.classes?.[0] || ''\" [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\"\r\n (changed)=\"dateChangeEvent(formField, $event)\"></vl-datetime>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Autocomplete control -->\r\n <div *ngSwitchCase=\"'autocomplete'\"\r\n class=\"form-group mb-3\">\r\n <span *ngIf=\"formField.option.protected\"\r\n [style]=\"getStyleWithoutClasses(formField?.label?.style).style\"\r\n [class]=\"formField?.label?.style.classes ? formField?.label?.style?.classes[0] : ''\">\r\n <vl-string [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-string>\r\n </span>\r\n <div *ngIf=\"!formField.option.protected\">\r\n <div\r\n [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n\r\n <span>\r\n <vl-autocomplete [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [list]=\"formField.data\" [loading]=\"!!formField.loading\"\r\n [keyboard]=\"keyboardTypeFor(formField)\" [saveTried]=\"saveTried\"\r\n [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.scope?.style).style\" [inputClass]=\"formField?.scope?.style?.classes ? formField.scope.style.classes[0] : ''\"\r\n (picked)=\"autocompSelectEvent($event, formField)\">\r\n </vl-autocomplete>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- checkBox control -->\r\n <div *ngSwitchCase=\"'boolean'\" class=\"form-group mb-3\"\r\n [style]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [class]=\"formField.style?.classes ? formField.style?.classes[0] : ''\">\r\n @if (formField?.option?.control === 'radiobutton') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-radio [field]=\"formField\" type=\"boolean\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\" [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (chosen)=\"invokeSetformData()\">\r\n </vl-radio>\r\n </div>\r\n } @else if (formField?.option?.control === 'switch') {\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <vl-label [formField]=\"formField\"\r\n [modalItemInfo]=\"modalItemInfo\">\r\n </vl-label>\r\n <vl-switch [field]=\"formField\" type=\"boolean\"\r\n [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (switched)=\"invokeSetformData()\">\r\n </vl-switch>\r\n </div>\r\n } @else {\r\n <vl-checkbox [field]=\"formField\" type=\"boolean\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\"\r\n [caption]=\"formField.label?.value || formField.label?.caption || modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.caption || ''\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n (toggled)=\"invokeSetformData()\"></vl-checkbox>\r\n }\r\n </div>\r\n\r\n <!-- dropdown control -->\r\n <div *ngSwitchCase=\"'dropdown'\" class=\"form-group mb-3\"\r\n [style]=\"getStyleWithoutClasses(formField?.style).style\"\r\n [class]=\"formField.style?.classes ? formField.style?.classes[0] : ''\">\r\n <div [ngStyle]=\"getFieldInnerLayoutStyle(formField)\">\r\n <label [style]=\"getStyleWithoutClasses(formField?.label?.style).style\">{{ getLabel(formField) }}</label>\r\n <vl-dropdown [field]=\"formField\" [target]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]\" [items]=\"modalItemInfo.propertySchema[getScope(formField.scope?.reference)][formField.scope?.reference.split('/').pop()]?.data\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [translations]=\"selectedLanguageInfo?.selectedLanguage\"\r\n [inputStyle]=\"getStyleWithoutClasses(formField?.style).style\" [inputClass]=\"formField.style?.classes ? formField.style?.classes[0] : ''\"></vl-dropdown>\r\n </div>\r\n </div>\r\n\r\n <!-- button control -->\r\n <div *ngSwitchCase=\"'default'\">\r\n <button type=\"button\" [attr.data-vl-action]=\"vlAction(formField.option)\" [attr.data-vl-writes]=\"vlWrites(formField.option)\"\r\n [ngStyle]=\"getStyleWithoutClasses(formField.style).style\"\r\n (click)=\"invokeFormBtnClick(formField.option, modalItemInfo.propertySchema, dynamicForm)\"\r\n class=\"btn btn-primary btn-block\">\r\n {{ getButtonCaption(formField) }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n</div>\r\n<ng-template #modelMediaContent let-field=\"field\">\r\n <vl-media [field]=\"field\" [property]=\"modalItemInfo.propertySchema[getScope(field.scope?.reference)]?.[field.scope?.reference.split('/').pop()]\" [value]=\"modalItemInfo.propertySchema[getScope(field.scope?.reference)]?.[field.scope?.reference.split('/').pop()]?.value\"></vl-media>\r\n</ng-template>", styles: [":host ::ng-deep .custom-datepicker .p-datepicker-dropdown{height:100%;border-radius:4px}:host ::ng-deep .custom-datepicker .p-datepicker-input{border-radius:4px}::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}.responsive-modal-grid{width:100%;min-width:0;box-sizing:border-box}:host{display:block;container-type:inline-size}.responsive-modal-field [style*=grid-template-columns]{align-items:start!important}.responsive-modal-field [style*=grid-template-columns]>:first-child{padding-top:10px}@container (max-width: 660px){.responsive-modal-grid{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:10px!important}.responsive-modal-field{grid-column:1 / -1!important;width:100%!important;max-width:none!important;min-width:0!important}.responsive-modal-action:nth-last-child(2){grid-column:1 / span 6!important}.responsive-modal-action:last-child{grid-column:7 / span 6!important}.responsive-modal-action{width:100%!important;max-width:none!important;min-width:0!important;justify-self:stretch!important;box-sizing:border-box!important}.responsive-modal-action button{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}}:host{--modal-field-focus-color: var(--p-primary-color, #10b981);--modal-field-focus-shadow: 0 0 0 2px rgba(16, 185, 129, .16)}:host ::ng-deep input:not([type=checkbox]):not(:disabled):focus,:host ::ng-deep textarea:not(:disabled):focus{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-autocomplete:focus-within{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-autocomplete:focus-within .p-autocomplete-input{border:none!important;outline:none!important;box-shadow:none!important}:host ::ng-deep select:not(:disabled):focus{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .ant-select-focused:not(.ant-select-disabled) .ant-select-selector,:host ::ng-deep nz-select:not(.ant-select-disabled):focus-within .ant-select-selector{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .p-select:not(.p-disabled).p-focus,:host ::ng-deep .p-select:not(.p-disabled):focus-within,:host ::ng-deep .p-dropdown:not(.p-disabled).p-focus,:host ::ng-deep .p-dropdown:not(.p-disabled):focus-within{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-datepicker:focus-within .p-datepicker-input{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep input:disabled,:host ::ng-deep textarea:disabled,:host ::ng-deep select:disabled,:host ::ng-deep .p-disabled,:host ::ng-deep .ant-select-disabled .ant-select-selector{box-shadow:none!important}\n"] }]
9411
+ VisiblePipe,
9412
+ ControlComponent,
9413
+ ], template: "<!-- Claude Opus 5.5 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> (controls/control.ts) instead of a\r\n switch over types and controls in this template; the same building block as the Designer's canvas\r\n - change: follows the Designer's modal layout schema: the field's style is its wrapper (padding,\r\n border, background no longer dropped), scope.style is the input for every control (dropdown,\r\n number and period took the wrapper's style before), all classes of a style count, not only the first\r\n - change: a protected field shows its label and its value (read only control); a protected text\r\n showed only the data object's caption -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: a text field with the control email (or any other text control) is drawn as the text field;\r\n it was not drawn at all (#166, test F6)\r\n - fix: every field label by getLabel (label.value, the layout's label.caption, then the DTO caption) (#166, test F3)\r\n - new: date and time in one field (type datetime or control dateTimepicker) with vl-datetime (#166 E5)\r\n - new: the control dateRangepicker shows the period like the type dateRange (#166 E4)\r\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\r\n - change: media fields are the one vl-media (#166 step 4.4)\r\n - change: the period is the one vl-daterange instead of nz-range-picker (#166 step 4.4)\r\n - change: every date and time picker is the one vl-datetime (#166 step 4.4)\r\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\r\n - change: check boxes with vl-checkbox (#166 step 4.4)\r\n - change: numbers with vl-number (plain, spinner, slider) (#166 step 4.4)\r\n - new: radiobutton with vl-radio (text and Boolean) instead of \"not supported yet\" (#166 step 4.4)\r\n - new: switch with vl-switch (string flag and Boolean) instead of \"not supported yet\" (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\r\n - new: textArea with vl-textarea (rows, new-line key) instead of \"not supported yet\" (#166 step 4.4)\r\n - new: password with vl-password (hidden, eye) instead of \"not supported yet\" (#166 step 4.4)\r\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\r\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\r\n project defines none; it showed the text \"undefined\" -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - change: number, autocomplete, date and time fields take the toolkit keyboard of their\r\n attribute type (keyboardTypeFor) instead of only an explicit option.keyboardType\r\n - change: the date picker docks at the bottom on the devices (model-datepicker-panel--docked);\r\n the time picker stays attached to its field in a compact form (model-timepicker-panel);\r\n both report which picker closed (onPickerClose(picker)) -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: the model field switch uses renderFieldType so legacy checkbox fields render as boolean. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment on the widest type coverage in the toolkit, and one on the credit\r\n card case recording that the rename reached this file first -->\r\n<!-- Loader Spinner -->\r\n<div *ngIf=\"isLoading\" class=\"loader-overlay\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n<div [ngStyle]=\"styleOf(modalItemInfo?.layoutSchema?.style).style\"\r\n [class]=\"styleOf(modalItemInfo?.layoutSchema?.style).classes\">\r\n <form #dynamicForm=\"ngForm\"\r\n *ngIf=\"modalItemInfo?.layoutSchema?.formSections?.length > 0\"\r\n (submit)=\"$event.preventDefault()\">\r\n <div *ngFor=\"let formSection of modalItemInfo?.layoutSchema?.formSections\">\r\n <div *ngIf=\"formSection?.label?.caption\"\r\n [class]=\"styleOf(formSection?.label?.style).classes\"\r\n [ngStyle]=\"styleOf(formSection?.label?.style).style\">\r\n {{ formSection.label.caption }}\r\n </div>\r\n <div *ngIf=\"formSection?.formFields?.length > 0\"\r\n [class]=\"styleOf(formSection?.style).classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\">\r\n <!-- the field's style is its wrapper in the section grid (gridColumn \"span N\"), as in\r\n the Designer; label, input and button are drawn by <vl-control> -->\r\n <div *ngFor=\"let formField of formSection.formFields | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class]=\"styleOf(formField?.style).classes\">\r\n <vl-control [field]=\"formField\"\r\n [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"dialog\"\r\n (picked)=\"autocompSelectEvent($event, formField)\"\r\n (changed)=\"handleRules(formField, $event)\"\r\n (opened)=\"onTimePanelShow(formField)\"\r\n (toggled)=\"invokeSetformData()\"\r\n (buttonClick)=\"invokeFormBtnClick($event, modalItemInfo.propertySchema, dynamicForm)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n</div>\r\n", styles: [":host ::ng-deep .custom-datepicker .p-datepicker-dropdown{height:100%;border-radius:4px}:host ::ng-deep .custom-datepicker .p-datepicker-input{border-radius:4px}::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}.responsive-modal-grid{width:100%;min-width:0;box-sizing:border-box}:host{display:block;container-type:inline-size}.responsive-modal-field [style*=grid-template-columns]{align-items:start!important}.responsive-modal-field [style*=grid-template-columns]>:first-child{padding-top:10px}@container (max-width: 660px){.responsive-modal-grid{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:10px!important}.responsive-modal-field{grid-column:1 / -1!important;width:100%!important;max-width:none!important;min-width:0!important}.responsive-modal-action:nth-last-child(2){grid-column:1 / span 6!important}.responsive-modal-action:last-child{grid-column:7 / span 6!important}.responsive-modal-action{width:100%!important;max-width:none!important;min-width:0!important;justify-self:stretch!important;box-sizing:border-box!important}.responsive-modal-action button{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}}:host{--modal-field-focus-color: var(--p-primary-color, #10b981);--modal-field-focus-shadow: 0 0 0 2px rgba(16, 185, 129, .16)}:host ::ng-deep input:not([type=checkbox]):not(:disabled):focus,:host ::ng-deep textarea:not(:disabled):focus{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-autocomplete:focus-within{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-autocomplete:focus-within .p-autocomplete-input{border:none!important;outline:none!important;box-shadow:none!important}:host ::ng-deep select:not(:disabled):focus{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .ant-select-focused:not(.ant-select-disabled) .ant-select-selector,:host ::ng-deep nz-select:not(.ant-select-disabled):focus-within .ant-select-selector{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .p-select:not(.p-disabled).p-focus,:host ::ng-deep .p-select:not(.p-disabled):focus-within,:host ::ng-deep .p-dropdown:not(.p-disabled).p-focus,:host ::ng-deep .p-dropdown:not(.p-disabled):focus-within{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep .custom-datepicker:focus-within .p-datepicker-input{border-color:var(--modal-field-focus-color)!important;outline:none!important;box-shadow:var(--modal-field-focus-shadow)!important}:host ::ng-deep input:disabled,:host ::ng-deep textarea:disabled,:host ::ng-deep select:disabled,:host ::ng-deep .p-disabled,:host ::ng-deep .ant-select-disabled .ant-select-selector{box-shadow:none!important}\n"] }]
9326
9414
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$4.DynamicDialogRef }, { type: i1$4.DynamicDialogConfig }, { type: UtilityService }], propDecorators: { errorMessages: [{
9327
9415
  type: Input
9328
9416
  }], modalItemInfo: [{
@@ -11041,5 +11129,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
11041
11129
  * Generated bundle index. Do not edit.
11042
11130
  */
11043
11131
 
11044
- export { AppVersionResetService, Autocomplete, BACKEND_PROXY_PREFIX, CardComponent, CheckboxControl, ConfigService, Couchdb, CustomKeyboardComponent, CustomKeyboardDirective, CustomKeyboardService, DateFormatPipe, DateHintPipe, DateRangeControl, DateTextPipe, DateTimeControl, DropdownControl, FormComponent, GridComponent, HeaderMenuComponent, LogsComponent, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PaginationComponent, PasswordControl, PlaceholderPipe, READ_ATTEMPT_TIMEOUT, REQUEST_STAGES, RETRY_PAUSES, RETRY_STATUSES, RadioControl, RemoteListService, RequestService, RequestTimeoutError, RequestTimeoutService, RulesPipe, SIDE_DOCK_CLASS, SideMenuComponent, SwitchControl, TextareaControl, Textbox, UtilityService, ViewToolkitModule, VisiblePipe, backendUrl, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, displayDateValue, displayNumber, fieldInnerLayoutStyle, fieldModel, fieldRules, fixedTimeText, inputFormatHint, isNativeMobile, isNativePhone, languageDatePattern, layoutPlaceholder, mediaKind, normalizeCustomKeyboardType, numberShape, numberStep, numberSuffix, primeDatePattern, resolveCustomKeyboardType, resolvePlaceholder, ruleMessage, setDateLanguage, setInputHintLanguage, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storedToTyped, testAction, testFieldKey, testWrites, timeHourFormat, toggleMeridiem, toolkitKeyboardActive, typedToStored, usesTwelveHours, visibleFields, whenOnline };
11132
+ export { AppVersionResetService, Autocomplete, BACKEND_PROXY_PREFIX, CardComponent, CheckboxControl, ConfigService, ControlComponent, Couchdb, CustomKeyboardComponent, CustomKeyboardDirective, CustomKeyboardService, DateFormatPipe, DateHintPipe, DateRangeControl, DateTextPipe, DateTimeControl, DropdownControl, FormComponent, GridComponent, HeaderMenuComponent, LogsComponent, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PaginationComponent, PasswordControl, PlaceholderPipe, READ_ATTEMPT_TIMEOUT, REQUEST_STAGES, RETRY_PAUSES, RETRY_STATUSES, RadioControl, RemoteListService, RequestService, RequestTimeoutError, RequestTimeoutService, RulesPipe, SIDE_DOCK_CLASS, SideMenuComponent, SwitchControl, TextareaControl, Textbox, UtilityService, ViewToolkitModule, VisiblePipe, backendUrl, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, displayDateValue, displayNumber, fieldInnerLayoutStyle, fieldModel, fieldRules, fixedTimeText, inputFormatHint, isNativeMobile, isNativePhone, languageDatePattern, layoutPlaceholder, mediaKind, normalizeCustomKeyboardType, numberShape, numberStep, numberSuffix, primeDatePattern, resolveCustomKeyboardType, resolvePlaceholder, ruleMessage, setDateLanguage, setInputHintLanguage, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storedToTyped, styleParts, testAction, testFieldKey, testWrites, timeHourFormat, toggleMeridiem, toolkitKeyboardActive, typedToStored, usesTwelveHours, visibleFields, whenOnline };
11045
11133
  //# sourceMappingURL=yomotech-view-toolkit.mjs.map