@yomotech/view-toolkit 1.0.56 → 1.0.64

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.
@@ -1,12 +1,14 @@
1
- import * as i9 from '@angular/common';
2
- import { NgIf, NgStyle, NgTemplateOutlet, AsyncPipe, NgFor, NgClass, DatePipe, CommonModule } from '@angular/common';
1
+ import * as i6 from '@angular/common';
2
+ import { NgIf, NgStyle, NgTemplateOutlet, AsyncPipe, CommonModule, NgFor, NgClass, DatePipe } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Pipe, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, signal, Injectable, HostListener, Directive, Optional, SkipSelf, ViewChild, inject, ApplicationRef, EnvironmentInjector, createComponent, ViewChildren, HostBinding, ElementRef, NgZone, ChangeDetectorRef, NgModule, effect, DestroyRef } from '@angular/core';
5
- import { effectiveControl, keyboardFor, styleValue, actionName, BROWSER_STORAGES, OLD_STORAGES, cssStyle, paginationFor, startPageFor, START_PAGE_KEYS, cardLayoutOf, stripeTestPaymentMethod, actionParams, maxLinesOf, enterKeyFor, methodOf, waitsForFilter, translateCaptions, alignRowsOf, successMessageOf, readAppSettings, appSettingsMenu } from '@yomotech/view-toolkit/catalog';
4
+ import { Pipe, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, signal, Injectable, HostListener, Directive, Optional, SkipSelf, ViewChild, inject, ApplicationRef, EnvironmentInjector, createComponent, InjectionToken, Inject, ChangeDetectorRef, ElementRef, ViewChildren, HostBinding, NgZone, NgModule, effect, DestroyRef } from '@angular/core';
5
+ import { effectiveControl, keyboardFor, styleValue, actionName, BROWSER_STORAGES, OLD_STORAGES, cssStyle, paginationFor, startPageFor, START_PAGE_KEYS, cardLayoutOf, stripeTestPaymentMethod, actionParams, WEEK_DAYS, openingStatus, validPlace, mapEmbedUrl, validAmount, formatPrice, maxLinesOf, enterKeyFor, CONTACT_ICONS, methodOf, waitsForFilter, translateCaptions, alignRowsOf, successMessageOf, readAppSettings, appSettingsMenu, appSettingsFooter } from '@yomotech/view-toolkit/catalog';
6
6
  import * as catalog from '@yomotech/view-toolkit/catalog';
7
7
  export { catalog as FieldCatalog };
8
8
  import * as i15 from '@angular/cdk/drag-drop';
9
9
  import { DragDropModule } from '@angular/cdk/drag-drop';
10
+ import * as i1$4 from 'ng-zorro-antd/icon';
11
+ import { NzIconModule } from 'ng-zorro-antd/icon';
10
12
  import * as i1 from '@angular/forms';
11
13
  import { NgForm, ControlContainer, FormsModule } from '@angular/forms';
12
14
  import * as i2 from 'primeng/autocomplete';
@@ -34,8 +36,6 @@ import * as i2$4 from 'primeng/toggleswitch';
34
36
  import { ToggleSwitchModule } from 'primeng/toggleswitch';
35
37
  import * as i2$5 from 'primeng/textarea';
36
38
  import { TextareaModule } from 'primeng/textarea';
37
- import * as i10 from 'ng-zorro-antd/icon';
38
- import { NzIconModule } from 'ng-zorro-antd/icon';
39
39
  import * as i11 from 'ng-zorro-antd/button';
40
40
  import { NzButtonModule } from 'ng-zorro-antd/button';
41
41
  import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
@@ -49,7 +49,7 @@ import * as i12 from 'ng-zorro-antd/core/transition-patch';
49
49
  import * as i13 from 'ng-zorro-antd/core/wave';
50
50
  import * as i7$1 from 'ng-zorro-antd/table';
51
51
  import { NzTableModule } from 'ng-zorro-antd/table';
52
- import * as i9$1 from 'primeng/button';
52
+ import * as i9 from 'primeng/button';
53
53
  import { ButtonModule } from 'primeng/button';
54
54
  import * as i11$2 from 'ng-zorro-antd/dropdown';
55
55
  import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
@@ -57,11 +57,11 @@ import * as i11$1 from 'ng-zorro-antd/menu';
57
57
  import { NzMenuModule } from 'ng-zorro-antd/menu';
58
58
  import * as i4 from '@okta/okta-angular';
59
59
  import { OktaAuthStateService, OKTA_AUTH } from '@okta/okta-angular';
60
- import * as i1$4 from 'primeng/dynamicdialog';
60
+ import * as i1$5 from 'primeng/dynamicdialog';
61
61
  import { DynamicDialogModule } from 'primeng/dynamicdialog';
62
62
  import { Device } from '@capacitor/device';
63
63
  import { jwtDecode } from 'jwt-decode';
64
- import * as i1$5 from 'ng-zorro-antd/i18n';
64
+ import * as i1$6 from 'ng-zorro-antd/i18n';
65
65
  import { de_DE, en_US } from 'ng-zorro-antd/i18n';
66
66
  import * as i13$1 from 'ng-zorro-antd/tooltip';
67
67
  import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
@@ -693,12 +693,20 @@ function testWrites(option) {
693
693
  // the browser storages and the old "filter" (a backend list loaded on its filter, read only) - from the catalog
694
694
  && ![...BROWSER_STORAGES, ...Object.keys(OLD_STORAGES)].includes(String(option?.storageType ?? '').toLowerCase());
695
695
  const writes = option?.storageType === 'database'
696
- || ['save', 'delete', 'saveAll'].includes(actionName(option))
696
+ // a save into a browser list stays on the device (PageData.keep)
697
+ || (actionName(option) === 'save' && !BROWSER_STORAGES.includes(String(option?.storageType ?? '').toLowerCase()))
698
+ || ['delete', 'saveAll'].includes(actionName(option))
697
699
  // a submit that sends to the backend (luv2shop's Purchase: submit, data_url checkout/purchase)
698
700
  || (actionName(option) === 'submit' && toBackend);
699
701
  return writes ? 'true' : 'false';
700
702
  }
701
703
 
704
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
705
+ // - new: price - a price as data (213/36)
706
+ // - new: map - where the business is, loaded only after a tap (point 213 worklist 42)
707
+ // - new: openingHours - the week's opening times with the status now (point 213 worklist 29)
708
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
709
+ // - new: textBlock - a text shown as a paragraph (point 213 worklist 15a)
702
710
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
703
711
  // - new: wrapperStyleOf - a button's look no longer draws a second box around it (point 184)
704
712
  // Shuaib 2026-10-20
@@ -725,7 +733,7 @@ function controlKind(field, property) {
725
733
  return 'button';
726
734
  const type = String(property?.type || '').toLowerCase();
727
735
  if (type === 'media' || type === 'image')
728
- return 'media';
736
+ return field?.option?.control === 'slideshow' ? 'slideshow' : 'media';
729
737
  if (type === 'creditcard')
730
738
  return 'creditCard';
731
739
  if (type === 'daterange')
@@ -738,6 +746,10 @@ function controlKind(field, property) {
738
746
  case 'datepicker': return 'date';
739
747
  case 'timepicker': return 'time';
740
748
  case 'dateTimepicker': return 'datetime';
749
+ case 'textBlock': return 'textBlock';
750
+ case 'openingHours': return 'openingHours';
751
+ case 'map': return 'map';
752
+ case 'price': return 'price';
741
753
  case 'password': return 'password';
742
754
  case 'textArea': return 'textarea';
743
755
  case 'combobox': return 'combobox';
@@ -780,6 +792,8 @@ function styleParts(styleObject) {
780
792
  return { classes: list.filter((c) => typeof c === 'string' && c.trim()).join(' '), style };
781
793
  }
782
794
 
795
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08
796
+ // - fix: keeping a card in shape drops only empty classes - filled ones (the app's look) stay (point 213, worklist 23)
783
797
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-03
784
798
  // - fix: a row that is not a grid (display flex) gets no grid columns on a save - the card stays as it was
785
799
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
@@ -818,9 +832,14 @@ function gridColumnCount(template) {
818
832
  */
819
833
  /** The most equal columns a row of a card gets; more elements wrap to the next line. */
820
834
  const MAX_ROW_COLUMNS = 4;
835
+ /** A classes list without a name: it is dropped, a filled one stays. */
836
+ function emptyClasses(style) {
837
+ return Array.isArray(style?.classes) && style.classes.every((c) => !String(c ?? '').trim());
838
+ }
821
839
  function normalizeHorizontal(layout) {
822
840
  layout.style = layout.style || horizontalStyle();
823
- delete layout.style.classes;
841
+ if (emptyClasses(layout.style))
842
+ delete layout.style.classes;
824
843
  layout.style.display = layout.style.display || 'grid';
825
844
  // a row laid out by the app itself (flex - price and button apart) keeps its look: no grid columns are written into
826
845
  // it on a save (they changed a luv2shop card row nobody touched, user 2026-11-03)
@@ -863,13 +882,12 @@ function normalizeRows(cards) {
863
882
  }
864
883
  /**
865
884
  * The card layout as the Designer keeps it, changed in place: no empty classes on the card styles, the card's
866
- * columns are drawn by the container (no gridTemplateColumns in its style), no classes on the elements (the right
867
- * panel sets styles only), horizontal layouts in shape.
885
+ * columns are drawn by the container (no gridTemplateColumns in its style), no empty classes on the elements -
886
+ * filled classes stay, they carry the app's look (style.css, theme) - horizontal layouts in shape.
868
887
  */
869
888
  function normalizeCard(layout) {
870
889
  if (!layout)
871
890
  return layout;
872
- const emptyClasses = (style) => Array.isArray(style?.classes) && style.classes.every((c) => !String(c ?? '').trim());
873
891
  if (emptyClasses(layout.style))
874
892
  delete layout.style.classes;
875
893
  if (emptyClasses(layout.stylePerCard))
@@ -882,12 +900,9 @@ function normalizeCard(layout) {
882
900
  for (const element of elements) {
883
901
  if (!element || typeof element !== 'object')
884
902
  continue;
885
- if (element.style)
886
- delete element.style.classes;
887
- if (element.label?.style)
888
- delete element.label.style.classes;
889
- if (element.scope?.style)
890
- delete element.scope.style.classes;
903
+ for (const style of [element.style, element.label?.style, element.scope?.style])
904
+ if (emptyClasses(style))
905
+ delete style.classes;
891
906
  if (element.type === 'HorizontalLayout') {
892
907
  element.elements = Array.isArray(element.elements) ? element.elements : [];
893
908
  clean(element.elements);
@@ -1087,6 +1102,9 @@ function clearHeader(header) {
1087
1102
  return { ...cloneLayout(header || {}), elements: [] };
1088
1103
  }
1089
1104
 
1105
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08
1106
+ // - fix: keeping a form in shape no longer removes classes (layout, section, field, label, input) - saving a page
1107
+ // in the Designer dropped the app's classes such as hh-heading and with them its look (point 213, worklist 23)
1090
1108
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
1091
1109
  // - change: styles are written in CSS spelling (font-size, grid-column - style-keys of the catalog) and read in both
1092
1110
  // Shuaib 2026-10-26
@@ -1131,8 +1149,6 @@ function setSpan(field, span, kind) {
1131
1149
  field.style = cssStyle({ ...(field.style || {}), 'grid-column': `span ${safe}`, width: '100%', 'box-sizing': 'border-box' });
1132
1150
  if (kind === 'dialog')
1133
1151
  field.style['min-width'] = '0';
1134
- if (kind === 'form')
1135
- delete field.style.classes;
1136
1152
  for (const key of ['flex', 'flexGrow', 'flexShrink', 'flexBasis', 'flex-grow', 'flex-shrink', 'flex-basis'])
1137
1153
  delete field.style[key];
1138
1154
  }
@@ -1265,8 +1281,8 @@ function fieldFromProperty(drop, kind) {
1265
1281
  // ---- the layout kept in shape ----
1266
1282
  /**
1267
1283
  * The layout as the Designer keeps it, changed in place: every section has its fields list; in a form the
1268
- * classes go (the right panel sets styles only), the section's grid is drawn by the container (no display or
1269
- * columns in its style) and every field belongs to a row.
1284
+ * section's grid is drawn by the container (no display or columns in its style) and every field belongs to a
1285
+ * row. Classes stay - they carry the app's look (style.css, theme).
1270
1286
  */
1271
1287
  function normalizeSections(layout, kind) {
1272
1288
  if (!layout)
@@ -1279,17 +1295,15 @@ function normalizeSections(layout, kind) {
1279
1295
  return layout;
1280
1296
  }
1281
1297
  layout.style = layout.style || {};
1282
- delete layout.style.classes;
1283
1298
  if (!Array.isArray(sections))
1284
1299
  return layout;
1285
1300
  for (const section of sections) {
1286
1301
  section.label = section.label || {};
1287
1302
  section.label.style = section.label.style || {};
1288
- delete section.label.style.classes;
1289
1303
  section.layout = section.layout || sectionLayout();
1290
1304
  section.responsiveStyle = section.responsiveStyle || { tablet: {}, mobile: {} };
1291
1305
  section.style = section.style || {};
1292
- for (const key of ['classes', 'display', 'gridTemplateColumns', 'grid-template-columns', 'alignItems', 'align-items', 'flex', 'flexWrap', 'flexDirection', 'flex-wrap', 'flex-direction']) {
1306
+ for (const key of ['display', 'gridTemplateColumns', 'grid-template-columns', 'alignItems', 'align-items', 'flex', 'flexWrap', 'flexDirection', 'flex-wrap', 'flex-direction']) {
1293
1307
  delete section.style[key];
1294
1308
  }
1295
1309
  if (!Array.isArray(section.formFields))
@@ -1303,16 +1317,10 @@ function normalizeFields(fields) {
1303
1317
  let activeSpan = 0;
1304
1318
  for (const field of fields) {
1305
1319
  field.style = field.style || {};
1306
- delete field.style.classes;
1307
1320
  field.label = field.label || {};
1308
1321
  field.label.style = field.label.style || {};
1309
- delete field.label.style.classes;
1310
- if (field.scope) {
1322
+ if (field.scope)
1311
1323
  field.scope.style = field.scope.style || {};
1312
- delete field.scope.style.classes;
1313
- }
1314
- if (field.validation?.style)
1315
- delete field.validation.style.classes;
1316
1324
  const span = fieldSpan(field);
1317
1325
  if (!field.rowId) {
1318
1326
  if (span === GRID_COLUMNS || !activeRow || activeSpan + span > GRID_COLUMNS) {
@@ -1683,6 +1691,8 @@ function sampleRecords(nodes, propertySchema, count, image) {
1683
1691
  });
1684
1692
  }
1685
1693
 
1694
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-06
1695
+ // - change: the handles' radius reads the design value (#170 point 11)
1686
1696
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
1687
1697
  // - change: the handles always in one order - drag, data, edit, add, delete; what is not needed is left out (user)
1688
1698
  // Shuaib 2026-10-26
@@ -1720,7 +1730,7 @@ class DesignBarComponent {
1720
1730
  (mousedown)="$event.stopPropagation()"
1721
1731
  (click)="$event.stopPropagation(); $event.preventDefault(); act.emit(action)"><i [class]="icon(action)"></i></button>
1722
1732
  }
1723
- }`, isInline: true, styles: [":host{display:inline-flex;gap:4px;align-items:center}.vl-design-bar__btn{width:26px;height:26px;min-width:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;border-radius:6px;background:#fff;color:#344054;font-size:12px;cursor:pointer;box-shadow:0 1px 2px #10182814;margin:0}.vl-design-bar__btn:hover{border-color:#2563eb;color:#2563eb;background:#eff6ff}.vl-design-bar__btn--danger:hover{border-color:#dc2626;color:#dc2626;background:#fef2f2}.vl-design-bar__btn--drag{cursor:grab}.vl-design-bar__btn--drag:active{cursor:grabbing}\n"], dependencies: [{ kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1733
+ }`, isInline: true, styles: [":host{display:inline-flex;gap:4px;align-items:center}.vl-design-bar__btn{width:26px;height:26px;min-width:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;border-radius:var(--vl-shape-button-radius, 6px);background:#fff;color:#344054;font-size:12px;cursor:pointer;box-shadow:0 1px 2px #10182814;margin:0}.vl-design-bar__btn:hover{border-color:#2563eb;color:#2563eb;background:#eff6ff}.vl-design-bar__btn--danger:hover{border-color:#dc2626;color:#dc2626;background:#fef2f2}.vl-design-bar__btn--drag{cursor:grab}.vl-design-bar__btn--drag:active{cursor:grabbing}\n"], dependencies: [{ kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1724
1734
  }
1725
1735
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: DesignBarComponent, decorators: [{
1726
1736
  type: Component,
@@ -1736,7 +1746,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
1736
1746
  (mousedown)="$event.stopPropagation()"
1737
1747
  (click)="$event.stopPropagation(); $event.preventDefault(); act.emit(action)"><i [class]="icon(action)"></i></button>
1738
1748
  }
1739
- }`, styles: [":host{display:inline-flex;gap:4px;align-items:center}.vl-design-bar__btn{width:26px;height:26px;min-width:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;border-radius:6px;background:#fff;color:#344054;font-size:12px;cursor:pointer;box-shadow:0 1px 2px #10182814;margin:0}.vl-design-bar__btn:hover{border-color:#2563eb;color:#2563eb;background:#eff6ff}.vl-design-bar__btn--danger:hover{border-color:#dc2626;color:#dc2626;background:#fef2f2}.vl-design-bar__btn--drag{cursor:grab}.vl-design-bar__btn--drag:active{cursor:grabbing}\n"] }]
1749
+ }`, styles: [":host{display:inline-flex;gap:4px;align-items:center}.vl-design-bar__btn{width:26px;height:26px;min-width:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;border-radius:var(--vl-shape-button-radius, 6px);background:#fff;color:#344054;font-size:12px;cursor:pointer;box-shadow:0 1px 2px #10182814;margin:0}.vl-design-bar__btn:hover{border-color:#2563eb;color:#2563eb;background:#eff6ff}.vl-design-bar__btn--danger:hover{border-color:#dc2626;color:#dc2626;background:#fef2f2}.vl-design-bar__btn--drag{cursor:grab}.vl-design-bar__btn--drag:active{cursor:grabbing}\n"] }]
1740
1750
  }], propDecorators: { actions: [{
1741
1751
  type: Input
1742
1752
  }], titles: [{
@@ -3914,6 +3924,9 @@ function formatDates(value, pattern) {
3914
3924
  return value;
3915
3925
  }
3916
3926
 
3927
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
3928
+ // - new: apiUrl is filled in like data_url ({{user.backendUrl}} - one server address per user, point 220)
3929
+ // - new: source user - the signed-in user as a data object ({{user.x}}, environment.login.user, point 220)
3917
3930
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25
3918
3931
  // - new: fillPlaceholders / PLACEHOLDER_SOURCES - one way to fill the placeholders of every address: the sources
3919
3932
  // userInfo, env, record, form, filter, pageNumber, pageSize with any field; unknown ones stay for the caller
@@ -3981,7 +3994,7 @@ function resolveTemplate(template, context) {
3981
3994
  return template;
3982
3995
  }
3983
3996
  /** The sources a placeholder may name - the library knows no field names of an app, only these sources. */
3984
- const PLACEHOLDER_SOURCES = ['userInfo', 'env', 'record', 'form', 'filter', 'item', 'cart', 'response', 'pageNumber', 'pageSize'];
3997
+ const PLACEHOLDER_SOURCES = ['userInfo', 'user', 'env', 'record', 'form', 'filter', 'item', 'cart', 'response', 'pageNumber', 'pageSize'];
3985
3998
  /**
3986
3999
  * An address or text with the placeholders filled in that the context can answer: a known source
3987
4000
  * ({{userInfo.x}}, {{env.x}}, {{record.x}}, {{form.x}}, {{filter.x}}, {{pageNumber}}, {{pageSize}}) - empty when the
@@ -4010,7 +4023,8 @@ function buildBackendCall(option, context) {
4010
4023
  if (!hasBackendCall(option))
4011
4024
  return null;
4012
4025
  let url = String(resolveTemplate(String(option.data_url ?? option.url), context)).trim();
4013
- const base = String(context.env?.apiUrl ?? '').replace(/\/+$/, '');
4026
+ // apiUrl may name a placeholder too - the server address per user from the sign-in, {{user.backendUrl}} (point 220)
4027
+ const base = String(resolveTemplate(String(context.env?.apiUrl ?? ''), context) ?? '').trim().replace(/\/+$/, '');
4014
4028
  if (!/^https?:\/\//i.test(url) && base) {
4015
4029
  url = `${base}/${url.replace(/^\/+/, '')}`;
4016
4030
  }
@@ -4226,6 +4240,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
4226
4240
  }]
4227
4241
  }], ctorParameters: () => [{ type: i1$1.HttpClient }] });
4228
4242
 
4243
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
4244
+ // - change: convertToDailyLogs is gone - time recording's bookings are the app's add-on (OFFENE-PUNKTE 91)
4229
4245
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
4230
4246
  // - change: what an element does is asked of the action catalog (actionName) - action = backend, innerAction = app;
4231
4247
  // older forms (button "get", innerAction saveAll/submit, copy/multiply objects) mean the same (OFFENE-PUNKTE 105/145)
@@ -4900,100 +4916,6 @@ class UtilityService {
4900
4916
  parseLocalISODate(value) {
4901
4917
  return parseStorageDate(value);
4902
4918
  }
4903
- // savecard conversion
4904
- convertToDailyLogs(cardOrCards) {
4905
- // Normalize input to array
4906
- const cards = Array.isArray(cardOrCards) ? cardOrCards : [cardOrCards];
4907
- const results = [];
4908
- for (const card of cards) {
4909
- const fromDate = new Date(card.fromDate);
4910
- const toDate = new Date(card.toDate);
4911
- const fromTime = new Date(card.workDayTimeFrom);
4912
- const toTime = new Date(card.workDayTimeTo);
4913
- // Normalize dates to midnight
4914
- const startDay = new Date(fromDate);
4915
- startDay.setHours(0, 0, 0, 0);
4916
- const endDay = new Date(toDate);
4917
- endDay.setHours(0, 0, 0, 0);
4918
- let currentDay = new Date(startDay);
4919
- while (currentDay <= endDay) {
4920
- const isFirstDay = this.isSameDay(currentDay, fromDate);
4921
- const isLastDay = this.isSameDay(currentDay, toDate);
4922
- const isSameDay = isFirstDay && isLastDay;
4923
- let workFrom;
4924
- let workTo;
4925
- // SAME DAY
4926
- if (isSameDay) {
4927
- workFrom = this.applyTimeToDay(currentDay, fromTime);
4928
- workTo = this.applyTimeToDay(currentDay, toTime);
4929
- }
4930
- // FIRST DAY
4931
- else if (isFirstDay) {
4932
- workFrom = this.applyTimeToDay(currentDay, fromTime);
4933
- workTo = this.endOfDay(currentDay);
4934
- }
4935
- // LAST DAY
4936
- else if (isLastDay) {
4937
- workFrom = this.startOfDay(currentDay);
4938
- workTo = this.applyTimeToDay(currentDay, toTime);
4939
- }
4940
- // MIDDLE DAY
4941
- else {
4942
- workFrom = this.startOfDay(currentDay);
4943
- workTo = this.endOfDay(currentDay);
4944
- }
4945
- results.push({
4946
- comment: card.comments || "",
4947
- onCallDuty: false,
4948
- timeCredit: false,
4949
- workDay: this.toLocalISO(currentDay, 0, 0),
4950
- workDayTimeFrom: this.toLocalISO(workFrom),
4951
- workDayTimeTo: this.toLocalISO(workTo),
4952
- workOrderNo: card.workOrderNo,
4953
- workType: "A"
4954
- });
4955
- currentDay.setDate(currentDay.getDate() + 1);
4956
- }
4957
- }
4958
- return results;
4959
- }
4960
- applyTimeToDay(day, time) {
4961
- const d = new Date(day);
4962
- d.setHours(time.getHours(), time.getMinutes(), 0, 0);
4963
- return d;
4964
- }
4965
- startOfDay(d) {
4966
- const x = new Date(d);
4967
- x.setHours(0, 0, 0, 0);
4968
- return x;
4969
- }
4970
- endOfDay(d) {
4971
- const x = new Date(d);
4972
- x.setHours(23, 59, 0, 0);
4973
- return x;
4974
- }
4975
- isSameDay(a, b) {
4976
- return (a.getFullYear() === b.getFullYear() &&
4977
- a.getMonth() === b.getMonth() &&
4978
- a.getDate() === b.getDate());
4979
- }
4980
- toLocalISO(date, hour, minute) {
4981
- const d = new Date(date);
4982
- if (hour !== undefined && minute !== undefined) {
4983
- d.setHours(hour, minute, 0, 0);
4984
- }
4985
- const pad = (n) => String(n).padStart(2, '0');
4986
- const year = d.getFullYear();
4987
- const month = pad(d.getMonth() + 1);
4988
- const day = pad(d.getDate());
4989
- const hrs = pad(d.getHours());
4990
- const mins = pad(d.getMinutes());
4991
- const offset = -d.getTimezoneOffset();
4992
- const sign = offset >= 0 ? '+' : '-';
4993
- const offH = pad(Math.floor(Math.abs(offset) / 60));
4994
- const offM = pad(Math.abs(offset) % 60);
4995
- return `${year}-${month}-${day}T${hrs}:${mins}:00${sign}${offH}:${offM}`;
4996
- }
4997
4919
  getMediaSrc(file) {
4998
4920
  if (!file)
4999
4921
  return '';
@@ -6036,6 +5958,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
6036
5958
  args: ['dd']
6037
5959
  }] } });
6038
5960
 
5961
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
5962
+ // - change: colors read the design values with today's color as fallback (point 173)
6039
5963
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
6040
5964
  // - new: vl-pdf-viewer - a PDF shown inside the app, the same on laptop, tablet and phone: drawn by pdf.js, so it
6041
5965
  // depends neither on the browser's PDF plugin (an embedded PDF stays blank on Android) nor on leaving the app
@@ -6173,7 +6097,7 @@ class PdfViewerComponent {
6173
6097
  </div>
6174
6098
  <div class="vl-pdf__pages" #pagesArea>
6175
6099
  @if (problem()) {
6176
- <p class="vl-pdf__note">{{ t('pdfFailed', 'The PDF could not be loaded.') }}</p>
6100
+ <p class="vl-pdf__note vl-pdf__note--failed">{{ t('pdfFailed', 'The PDF could not be loaded.') }}</p>
6177
6101
  } @else if (!pages().length) {
6178
6102
  <p class="vl-pdf__note">{{ t('pdfLoading', 'Loading…') }}</p>
6179
6103
  }
@@ -6181,7 +6105,7 @@ class PdfViewerComponent {
6181
6105
  <canvas class="vl-pdf__page" [attr.data-page]="page"></canvas>
6182
6106
  }
6183
6107
  </div>
6184
- </div>`, isInline: true, styles: [".vl-pdf{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#525659;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.vl-pdf__bar{display:flex;align-items:center;gap:8px;min-height:48px;padding:4px 12px;background:#fff;box-sizing:border-box}.vl-pdf__title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}.vl-pdf__count{color:#6b7280;font-size:13px;white-space:nowrap}.vl-pdf__btn{width:40px;height:40px;border:1px solid #d1d5db;border-radius:4px;background:#fff;font-size:20px;line-height:1;cursor:pointer}.vl-pdf__pages{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:8px;box-sizing:border-box;text-align:center}.vl-pdf__page{display:block;margin:0 auto 8px;background:#fff}.vl-pdf__note{color:#fff;margin-top:24px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6108
+ </div>`, isInline: true, styles: [".vl-pdf{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#525659;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.vl-pdf__bar{display:flex;align-items:center;gap:8px;min-height:48px;padding:4px 12px;background:var(--vl-color-surface, #fff);box-sizing:border-box}.vl-pdf__title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}.vl-pdf__count{color:var(--vl-color-text-muted, #6b7280);font-size:13px;white-space:nowrap}.vl-pdf__btn{width:40px;height:40px;border:1px solid var(--vl-color-border, #d1d5db);border-radius:4px;background:var(--vl-color-surface, #fff);font-size:20px;line-height:1;cursor:pointer}.vl-pdf__pages{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:8px;box-sizing:border-box;text-align:center}.vl-pdf__page{display:block;margin:0 auto 8px;background:var(--vl-color-surface, #fff)}.vl-pdf__note{color:var(--vl-color-on-primary, #fff);margin-top:24px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6185
6109
  }
6186
6110
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: PdfViewerComponent, decorators: [{
6187
6111
  type: Component,
@@ -6198,7 +6122,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
6198
6122
  </div>
6199
6123
  <div class="vl-pdf__pages" #pagesArea>
6200
6124
  @if (problem()) {
6201
- <p class="vl-pdf__note">{{ t('pdfFailed', 'The PDF could not be loaded.') }}</p>
6125
+ <p class="vl-pdf__note vl-pdf__note--failed">{{ t('pdfFailed', 'The PDF could not be loaded.') }}</p>
6202
6126
  } @else if (!pages().length) {
6203
6127
  <p class="vl-pdf__note">{{ t('pdfLoading', 'Loading…') }}</p>
6204
6128
  }
@@ -6206,7 +6130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
6206
6130
  <canvas class="vl-pdf__page" [attr.data-page]="page"></canvas>
6207
6131
  }
6208
6132
  </div>
6209
- </div>`, styles: [".vl-pdf{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#525659;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.vl-pdf__bar{display:flex;align-items:center;gap:8px;min-height:48px;padding:4px 12px;background:#fff;box-sizing:border-box}.vl-pdf__title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}.vl-pdf__count{color:#6b7280;font-size:13px;white-space:nowrap}.vl-pdf__btn{width:40px;height:40px;border:1px solid #d1d5db;border-radius:4px;background:#fff;font-size:20px;line-height:1;cursor:pointer}.vl-pdf__pages{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:8px;box-sizing:border-box;text-align:center}.vl-pdf__page{display:block;margin:0 auto 8px;background:#fff}.vl-pdf__note{color:#fff;margin-top:24px}\n"] }]
6133
+ </div>`, styles: [".vl-pdf{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#525659;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.vl-pdf__bar{display:flex;align-items:center;gap:8px;min-height:48px;padding:4px 12px;background:var(--vl-color-surface, #fff);box-sizing:border-box}.vl-pdf__title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}.vl-pdf__count{color:var(--vl-color-text-muted, #6b7280);font-size:13px;white-space:nowrap}.vl-pdf__btn{width:40px;height:40px;border:1px solid var(--vl-color-border, #d1d5db);border-radius:4px;background:var(--vl-color-surface, #fff);font-size:20px;line-height:1;cursor:pointer}.vl-pdf__pages{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:8px;box-sizing:border-box;text-align:center}.vl-pdf__page{display:block;margin:0 auto 8px;background:var(--vl-color-surface, #fff)}.vl-pdf__note{color:var(--vl-color-on-primary, #fff);margin-top:24px}\n"] }]
6210
6134
  }], propDecorators: { source: [{
6211
6135
  type: Input
6212
6136
  }], area: [{
@@ -6443,6 +6367,8 @@ function pause(ms, signal) {
6443
6367
  });
6444
6368
  }
6445
6369
 
6370
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
6371
+ // - new: useDraftSource - in the Designer's preview the project's own files are read instead of CouchDB (point 193)
6446
6372
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-17
6447
6373
  // - change: every CouchDB read runs as stagedRead - on a weak network it is asked again instead of
6448
6374
  // failing (an empty app at the start); a file read asks once more after a 403
@@ -6482,6 +6408,12 @@ function pause(ms, signal) {
6482
6408
  // can be uploaded into the Media folder, that list could never be complete
6483
6409
  // - new: isTextFile, holding the inverted rule. SVG stays binary on purpose although it is text,
6484
6410
  // because the menu icons expect the media object with a src
6411
+ /** Written by the export only, the project has no such file: they stay the published ones. */
6412
+ const PUBLISHED_ONLY = ['environments/release.json', 'environments/media.json'];
6413
+ let draftSource = null;
6414
+ function useDraftSource(source) {
6415
+ draftSource = source ? { ...source, db: source.db.toLowerCase() } : null;
6416
+ }
6485
6417
  class Couchdb {
6486
6418
  utilityService;
6487
6419
  platform;
@@ -6539,7 +6471,7 @@ class Couchdb {
6539
6471
  return null;
6540
6472
  }
6541
6473
  const headers = await this.getReadHeaders();
6542
- const response = await stagedRead(signal => fetch(this.getDocumentUrl(dbName, docId), { signal,
6474
+ const response = await stagedRead(signal => this.fetchDocument(dbName, docId, { signal,
6543
6475
  method: 'GET',
6544
6476
  headers,
6545
6477
  }), { retryForbiddenOnce: true });
@@ -6718,7 +6650,7 @@ class Couchdb {
6718
6650
  try {
6719
6651
  const url = this.getDocumentUrl(dbName.toLowerCase(), docId);
6720
6652
  const headers = await this.getReadHeaders();
6721
- const response = await stagedRead(signal => fetch(url, { signal, method: 'GET', headers }));
6653
+ const response = await stagedRead(signal => this.fetchDocument(dbName.toLowerCase(), docId, { signal, method: 'GET', headers }));
6722
6654
  if (!response.ok)
6723
6655
  return null;
6724
6656
  const doc = await response.json();
@@ -6738,6 +6670,8 @@ class Couchdb {
6738
6670
  /** Ids of the files under a folder of the project, e.g. listFiles(db, 'ssl/mobile/'). Empty on any error. */
6739
6671
  async listFiles(dbName, prefix) {
6740
6672
  try {
6673
+ if (this.isDraft(dbName))
6674
+ return await draftSource.list(prefix);
6741
6675
  const range = `startkey=${encodeURIComponent(JSON.stringify(prefix))}` +
6742
6676
  `&endkey=${encodeURIComponent(JSON.stringify(`${prefix}\ufff0`))}`;
6743
6677
  const response = await stagedRead(async (signal) => fetch(`${this.getDbUrl(dbName)}/_all_docs?${range}`, { signal,
@@ -6754,6 +6688,22 @@ class Couchdb {
6754
6688
  return [];
6755
6689
  }
6756
6690
  }
6691
+ isDraft(dbName) {
6692
+ return draftSource?.db === String(dbName || '').toLowerCase();
6693
+ }
6694
+ /** A document as CouchDB answers it - in the draft from the project, except what only an export writes. */
6695
+ async fetchDocument(dbName, docId, init) {
6696
+ if (!this.isDraft(dbName) || PUBLISHED_ONLY.includes(docId))
6697
+ return fetch(this.getDocumentUrl(dbName, docId), init);
6698
+ const doc = await draftSource.read(docId);
6699
+ // a large media file stays raw bytes in the project, the draft cannot hand it over: the published one
6700
+ if (!doc && docId.startsWith('Media/'))
6701
+ return fetch(this.getDocumentUrl(dbName, docId), init);
6702
+ return new Response(JSON.stringify(doc ?? { error: 'not_found' }), {
6703
+ status: doc ? 200 : 404,
6704
+ headers: { 'content-type': 'application/json' },
6705
+ });
6706
+ }
6757
6707
  getDocumentUrl(dbName, docId) {
6758
6708
  return `${this.getDbUrl(dbName)}/${encodeURIComponent(docId)}`;
6759
6709
  }
@@ -6834,7 +6784,7 @@ class Couchdb {
6834
6784
  continue;
6835
6785
  const docId = `Media/${name}`;
6836
6786
  const pending = (async () => {
6837
- const response = await stagedRead(async (signal) => fetch(this.getDocumentUrl(dbName, docId), { signal,
6787
+ const response = await stagedRead(async (signal) => this.fetchDocument(dbName, docId, { signal,
6838
6788
  method: 'GET',
6839
6789
  headers: await this.getReadHeaders(),
6840
6790
  }));
@@ -6892,7 +6842,7 @@ class Couchdb {
6892
6842
  if (!docId) {
6893
6843
  throw new Error('Missing file path');
6894
6844
  }
6895
- const response = await stagedRead(async (signal) => fetch(this.getDocumentUrl(dbName, docId), { signal,
6845
+ const response = await stagedRead(async (signal) => this.fetchDocument(dbName, docId, { signal,
6896
6846
  method: 'GET',
6897
6847
  headers: await this.getReadHeaders(),
6898
6848
  }));
@@ -6916,23 +6866,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
6916
6866
  }]
6917
6867
  }], ctorParameters: () => [{ type: UtilityService }, { type: i1$2.Platform }] });
6918
6868
 
6869
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
6870
+ // - new: VL_MEDIA_RESOLVER - a host (the Designer's canvas) resolves media itself before CouchDB is asked
6919
6871
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-15
6920
6872
  // - new (#145): vlMedia - a media field's value made playable for <video>/<audio>: a file name is
6921
6873
  // read from Media/ of the project (signed CouchDB link for an attachment), a URL stays as it is
6874
+ /**
6875
+ * How a host resolves a media source itself (2026-11-07): the Designer's canvas reads Media through its backend, the
6876
+ * app keeps CouchDB. Given, it is asked first; '' means "not mine", then CouchDB is asked.
6877
+ */
6878
+ const VL_MEDIA_RESOLVER = new InjectionToken('VL_MEDIA_RESOLVER');
6922
6879
  /** [src]="source | vlMedia | async" - the same Promise for the same source, so no request loop. */
6923
6880
  class MediaSourcePipe {
6924
6881
  couchdb;
6882
+ resolver;
6925
6883
  /** Kept one hour: a signed link lasts eight, a page lives shorter. */
6926
6884
  static known = new Map();
6927
- constructor(couchdb) {
6885
+ constructor(couchdb, resolver) {
6928
6886
  this.couchdb = couchdb;
6887
+ this.resolver = resolver;
6929
6888
  }
6930
6889
  transform(source) {
6931
6890
  const value = (source || '').trim();
6932
6891
  const known = MediaSourcePipe.known.get(value);
6933
6892
  if (known && Date.now() - known.at < 3600_000)
6934
6893
  return known.pending;
6935
- const pending = this.couchdb.resolveMediaSource(value).catch((error) => {
6894
+ const viaHost = this.resolver ? this.resolver(value).catch(() => '') : Promise.resolve('');
6895
+ const pending = viaHost.then((url) => url || this.couchdb.resolveMediaSource(value)).catch((error) => {
6936
6896
  console.warn(`Media "${value}" could not be resolved`, error);
6937
6897
  MediaSourcePipe.known.delete(value);
6938
6898
  return '';
@@ -6940,7 +6900,7 @@ class MediaSourcePipe {
6940
6900
  MediaSourcePipe.known.set(value, { pending, at: Date.now() });
6941
6901
  return pending;
6942
6902
  }
6943
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MediaSourcePipe, deps: [{ token: Couchdb }], target: i0.ɵɵFactoryTarget.Pipe });
6903
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MediaSourcePipe, deps: [{ token: Couchdb }, { token: VL_MEDIA_RESOLVER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
6944
6904
  static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.2", ngImport: i0, type: MediaSourcePipe, isStandalone: true, name: "vlMedia" });
6945
6905
  }
6946
6906
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MediaSourcePipe, decorators: [{
@@ -6949,8 +6909,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
6949
6909
  name: 'vlMedia',
6950
6910
  standalone: true,
6951
6911
  }]
6952
- }], ctorParameters: () => [{ type: Couchdb }] });
6912
+ }], ctorParameters: () => [{ type: Couchdb }, { type: undefined, decorators: [{
6913
+ type: Optional
6914
+ }, {
6915
+ type: Inject,
6916
+ args: [VL_MEDIA_RESOLVER]
6917
+ }] }] });
6953
6918
 
6919
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
6920
+ // - change: picture and video get the theme's round corners (--vl-shape-radius) like the slideshow
6921
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
6922
+ // - fix: a picture goes through vlMedia like video and audio - a Media file name ("Media/logo.jpg") showed
6923
+ // nothing in the preview; an address stays as it is (point 213 worklist 15)
6954
6924
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
6955
6925
  // - change: a PDF opens in the app's viewer (vl-pdf-viewer) - an embedded one stayed blank on Android (point 185)
6956
6926
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24
@@ -7082,13 +7052,13 @@ class MediaControl {
7082
7052
  target="_blank" rel="noopener noreferrer">Open file — {{ label() }}</a>
7083
7053
  }
7084
7054
  @default {
7085
- <img class="vl-media__item" [class]="mediaClass" [ngStyle]="mediaStyle" [src]="src" [alt]="label()"
7055
+ <img class="vl-media__item" [class]="mediaClass" [ngStyle]="mediaStyle" [src]="(src | vlMedia | async) || null" [alt]="label()"
7086
7056
  loading="lazy" (click)="clicked.emit()" />
7087
7057
  }
7088
7058
  }
7089
7059
  </ng-template>
7090
7060
  </ng-container>
7091
- `, isInline: true, styles: [":host{display:block;min-width:0;max-width:100%}.vl-media__item{max-width:100%}.vl-media__link{display:inline-block;margin-top:4px;overflow-wrap:anywhere}.vl-media__symbol{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:4px 8px;cursor:pointer}.vl-media__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vl-media__veil{position:fixed;inset:0;z-index:11000;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.vl-media__large{position:relative;background:#fff;border-radius:8px;padding:40px 12px 12px;width:min(100%,52rem);max-height:100%;overflow:auto;box-sizing:border-box}.vl-media__large video,.vl-media__large audio{width:100%}.vl-media__close{position:absolute;top:6px;right:6px;width:2rem;height:2rem;border:0;background:transparent;cursor:pointer;font-size:1rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: MediaSourcePipe, name: "vlMedia" }] });
7061
+ `, isInline: true, styles: [":host{display:block;min-width:0;max-width:100%}.vl-media__item{max-width:100%}:where(img.vl-media__item,video.vl-media__item){border-radius:var(--vl-shape-radius, 8px)}.vl-media__link{display:inline-block;margin-top:4px;overflow-wrap:anywhere}.vl-media__symbol{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:4px 8px;cursor:pointer}.vl-media__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vl-media__veil{position:fixed;inset:0;z-index:11000;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.vl-media__large{position:relative;background:#fff;border-radius:8px;padding:40px 12px 12px;width:min(100%,52rem);max-height:100%;overflow:auto;box-sizing:border-box}.vl-media__large video,.vl-media__large audio{width:100%}.vl-media__close{position:absolute;top:6px;right:6px;width:2rem;height:2rem;border:0;background:transparent;cursor:pointer;font-size:1rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: MediaSourcePipe, name: "vlMedia" }] });
7092
7062
  }
7093
7063
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MediaControl, decorators: [{
7094
7064
  type: Component,
@@ -7132,13 +7102,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
7132
7102
  target="_blank" rel="noopener noreferrer">Open file — {{ label() }}</a>
7133
7103
  }
7134
7104
  @default {
7135
- <img class="vl-media__item" [class]="mediaClass" [ngStyle]="mediaStyle" [src]="src" [alt]="label()"
7105
+ <img class="vl-media__item" [class]="mediaClass" [ngStyle]="mediaStyle" [src]="(src | vlMedia | async) || null" [alt]="label()"
7136
7106
  loading="lazy" (click)="clicked.emit()" />
7137
7107
  }
7138
7108
  }
7139
7109
  </ng-template>
7140
7110
  </ng-container>
7141
- `, styles: [":host{display:block;min-width:0;max-width:100%}.vl-media__item{max-width:100%}.vl-media__link{display:inline-block;margin-top:4px;overflow-wrap:anywhere}.vl-media__symbol{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:4px 8px;cursor:pointer}.vl-media__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vl-media__veil{position:fixed;inset:0;z-index:11000;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.vl-media__large{position:relative;background:#fff;border-radius:8px;padding:40px 12px 12px;width:min(100%,52rem);max-height:100%;overflow:auto;box-sizing:border-box}.vl-media__large video,.vl-media__large audio{width:100%}.vl-media__close{position:absolute;top:6px;right:6px;width:2rem;height:2rem;border:0;background:transparent;cursor:pointer;font-size:1rem}\n"] }]
7111
+ `, styles: [":host{display:block;min-width:0;max-width:100%}.vl-media__item{max-width:100%}:where(img.vl-media__item,video.vl-media__item){border-radius:var(--vl-shape-radius, 8px)}.vl-media__link{display:inline-block;margin-top:4px;overflow-wrap:anywhere}.vl-media__symbol{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:4px 8px;cursor:pointer}.vl-media__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vl-media__veil{position:fixed;inset:0;z-index:11000;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.vl-media__large{position:relative;background:#fff;border-radius:8px;padding:40px 12px 12px;width:min(100%,52rem);max-height:100%;overflow:auto;box-sizing:border-box}.vl-media__large video,.vl-media__large audio{width:100%}.vl-media__close{position:absolute;top:6px;right:6px;width:2rem;height:2rem;border:0;background:transparent;cursor:pointer;font-size:1rem}\n"] }]
7142
7112
  }], propDecorators: { field: [{
7143
7113
  type: Input
7144
7114
  }], value: [{
@@ -7155,6 +7125,462 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
7155
7125
  type: Output
7156
7126
  }] } });
7157
7127
 
7128
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
7129
+ // - new: placeholders (point 213 worklist 23) - a picture that does not load, or no pictures at all (option.placeholders
7130
+ // slides, default 3), shows a drawn slide in the theme's colours with a camera and "n / N" instead of an empty frame;
7131
+ // it goes by itself once the real picture is there
7132
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
7133
+ // - new: the slideshow (point 213 worklist 15c) - pictures change by themselves (option.interval, default 4 s),
7134
+ // a swipe or the arrows go on, dots show where one is; a tap enlarges the picture and stops the show. With
7135
+ // "reduce motion" set on the device nothing changes by itself. The pictures are Media paths or addresses
7136
+ // (option.images), resolved by vlMedia like every media file of the app.
7137
+ class SlideshowComponent {
7138
+ /** Media paths or addresses of the pictures. */
7139
+ images = [];
7140
+ /** Milliseconds between two pictures; 0 = no change by itself. */
7141
+ interval = 5000;
7142
+ /** The frame's proportion, e.g. "16 / 9" or "1 / 1". */
7143
+ aspect = '16 / 9';
7144
+ label = 'Picture';
7145
+ /** How many drawn placeholders without any picture. */
7146
+ placeholders = 3;
7147
+ /** The slides: the pictures, or '' for each placeholder when there are none. */
7148
+ slides = [];
7149
+ /** Pictures that did not load - shown as placeholders. */
7150
+ broken = {};
7151
+ index = 0;
7152
+ large = false;
7153
+ hold = false;
7154
+ timer = null;
7155
+ startX = 0;
7156
+ cdr = inject(ChangeDetectorRef);
7157
+ ngOnChanges() {
7158
+ this.images = (Array.isArray(this.images) ? this.images : []).filter((src) => typeof src === 'string' && !!src.trim());
7159
+ const n = Math.min(20, Math.max(1, Math.round(Number(this.placeholders) || 3)));
7160
+ this.slides = this.images.length ? this.images : Array.from({ length: n }, () => '');
7161
+ this.broken = {};
7162
+ if (this.index >= this.slides.length)
7163
+ this.index = 0;
7164
+ this.restart();
7165
+ }
7166
+ ngOnDestroy() {
7167
+ this.stop();
7168
+ }
7169
+ /** A picture that does not load becomes a placeholder. */
7170
+ fail(i) {
7171
+ this.broken = { ...this.broken, [i]: true };
7172
+ this.cdr.markForCheck();
7173
+ }
7174
+ show(i) {
7175
+ const n = this.slides.length;
7176
+ if (!n)
7177
+ return;
7178
+ this.index = ((i % n) + n) % n;
7179
+ this.restart();
7180
+ this.cdr.markForCheck();
7181
+ }
7182
+ go(step) {
7183
+ this.show(this.index + step);
7184
+ }
7185
+ open() {
7186
+ if (!this.slides[this.index] || this.broken[this.index])
7187
+ return;
7188
+ this.large = true;
7189
+ this.stop();
7190
+ this.cdr.markForCheck();
7191
+ }
7192
+ close() {
7193
+ this.large = false;
7194
+ this.restart();
7195
+ this.cdr.markForCheck();
7196
+ }
7197
+ down(event) {
7198
+ this.startX = event.clientX;
7199
+ }
7200
+ /** A swipe of more than 40 px goes to the next or the previous picture. */
7201
+ up(event) {
7202
+ const dx = event.clientX - this.startX;
7203
+ if (Math.abs(dx) > 40)
7204
+ this.go(dx < 0 ? 1 : -1);
7205
+ }
7206
+ restart() {
7207
+ this.stop();
7208
+ const reduced = typeof window !== 'undefined' && window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
7209
+ if (this.large || reduced || this.slides.length < 2 || !(this.interval > 0))
7210
+ return;
7211
+ this.timer = setInterval(() => {
7212
+ if (this.hold || (typeof document !== 'undefined' && document.hidden))
7213
+ return;
7214
+ this.index = (this.index + 1) % this.slides.length;
7215
+ this.cdr.markForCheck();
7216
+ }, Math.max(3000, this.interval));
7217
+ }
7218
+ stop() {
7219
+ if (this.timer)
7220
+ clearInterval(this.timer);
7221
+ this.timer = null;
7222
+ }
7223
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SlideshowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7224
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SlideshowComponent, isStandalone: true, selector: "vl-slideshow", inputs: { images: "images", interval: "interval", aspect: "aspect", label: "label", placeholders: "placeholders" }, usesOnChanges: true, ngImport: i0, template: `
7225
+ @if (slides.length) {
7226
+ <div class="vl-slideshow" [style.aspect-ratio]="aspect" role="region" aria-roledescription="carousel" [attr.aria-label]="label"
7227
+ (pointerdown)="down($event)" (pointerup)="up($event)" (mouseenter)="hold = true" (mouseleave)="hold = false"
7228
+ tabindex="0" (keydown.arrowleft)="go(-1)" (keydown.arrowright)="go(1)">
7229
+ @for (src of slides; track $index) {
7230
+ @let url = src ? ((src | vlMedia | async) || '') : '';
7231
+ @if (url && !broken[$index]) {
7232
+ <img class="vl-slideshow__slide" [class.vl-slideshow__slide--on]="$index === index" [src]="url"
7233
+ [alt]="label + ' ' + ($index + 1)" loading="lazy" draggable="false" (click)="open()" (error)="fail($index)" />
7234
+ } @else {
7235
+ <div class="vl-slideshow__slide vl-slideshow__placeholder" [class.vl-slideshow__slide--on]="$index === index" role="img"
7236
+ [attr.aria-label]="label + ' ' + ($index + 1)">
7237
+ <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 8h3l2-3h6l2 3h3v11H4z"/><circle cx="12" cy="13" r="3.5"/></svg>
7238
+ <span class="vl-slideshow__placeholder-n">{{ $index + 1 }} / {{ slides.length }}</span>
7239
+ </div>
7240
+ }
7241
+ }
7242
+ @if (slides.length > 1) {
7243
+ <button type="button" class="vl-slideshow__arrow vl-slideshow__arrow--prev" aria-label="Previous" (click)="go(-1); $event.stopPropagation()">‹</button>
7244
+ <button type="button" class="vl-slideshow__arrow vl-slideshow__arrow--next" aria-label="Next" (click)="go(1); $event.stopPropagation()">›</button>
7245
+ <div class="vl-slideshow__dots">
7246
+ @for (src of slides; track $index) {
7247
+ <button type="button" class="vl-slideshow__dot" [class.vl-slideshow__dot--on]="$index === index"
7248
+ [attr.aria-label]="($index + 1) + ' / ' + slides.length" (click)="show($index); $event.stopPropagation()"></button>
7249
+ }
7250
+ </div>
7251
+ }
7252
+ </div>
7253
+ }
7254
+ @if (large && slides[index]) {
7255
+ <div class="vl-slideshow__large" role="dialog" aria-modal="true" (click)="close()">
7256
+ <img [src]="(images[index] | vlMedia | async) || null" [alt]="label + ' ' + (index + 1)" (click)="$event.stopPropagation()" />
7257
+ <button type="button" class="vl-slideshow__close" aria-label="Close" (click)="close()">✕</button>
7258
+ @if (images.length > 1) {
7259
+ <button type="button" class="vl-slideshow__arrow vl-slideshow__arrow--prev" aria-label="Previous" (click)="go(-1); $event.stopPropagation()">‹</button>
7260
+ <button type="button" class="vl-slideshow__arrow vl-slideshow__arrow--next" aria-label="Next" (click)="go(1); $event.stopPropagation()">›</button>
7261
+ }
7262
+ </div>
7263
+ }
7264
+ `, isInline: true, styles: [":host{display:block;min-width:0}.vl-slideshow{position:relative;width:100%;max-height:70vh;overflow:hidden;border-radius:var(--vl-shape-radius, 8px);background:var(--vl-color-surface, #f3f4f6);touch-action:pan-y;outline:none}.vl-slideshow__slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease;cursor:zoom-in;-webkit-user-select:none;user-select:none}.vl-slideshow__slide--on{opacity:1}.vl-slideshow__placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:default;color:var(--vl-color-primary, #2563eb);background:repeating-linear-gradient(135deg,var(--vl-header-background, #e5e7eb) 0 14px,color-mix(in srgb,var(--vl-header-background, #e5e7eb) 88%,var(--vl-color-primary, #2563eb)) 14px 28px)}.vl-slideshow__placeholder-n{font-family:var(--vl-font-heading-family, inherit);font-weight:700;letter-spacing:.06em}.vl-slideshow__arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;font-size:24px;line-height:1;cursor:pointer;color:#fff;background:#00000059}.vl-slideshow__arrow--prev{left:8px}.vl-slideshow__arrow--next{right:8px}.vl-slideshow__dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px}.vl-slideshow__dot{width:8px;height:8px;margin:0;padding:0;border:0;border-radius:50%;cursor:pointer;background:#ffffff8c}.vl-slideshow__dot--on{background:#fff}.vl-slideshow__large{position:fixed;inset:0;z-index:1000000;display:flex;align-items:center;justify-content:center;padding:env(safe-area-inset-top,0) 0 env(safe-area-inset-bottom,0);background:#000000e6}.vl-slideshow__large img{max-width:100%;max-height:100%;object-fit:contain}.vl-slideshow__close{position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);right:12px;width:40px;height:40px;margin:0;border:0;border-radius:50%;font-size:20px;color:#fff;background:#ffffff26;cursor:pointer}@media(prefers-reduced-motion:reduce){.vl-slideshow__slide{transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: MediaSourcePipe, name: "vlMedia" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7265
+ }
7266
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SlideshowComponent, decorators: [{
7267
+ type: Component,
7268
+ args: [{ selector: 'vl-slideshow', standalone: true, imports: [CommonModule, MediaSourcePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: `
7269
+ @if (slides.length) {
7270
+ <div class="vl-slideshow" [style.aspect-ratio]="aspect" role="region" aria-roledescription="carousel" [attr.aria-label]="label"
7271
+ (pointerdown)="down($event)" (pointerup)="up($event)" (mouseenter)="hold = true" (mouseleave)="hold = false"
7272
+ tabindex="0" (keydown.arrowleft)="go(-1)" (keydown.arrowright)="go(1)">
7273
+ @for (src of slides; track $index) {
7274
+ @let url = src ? ((src | vlMedia | async) || '') : '';
7275
+ @if (url && !broken[$index]) {
7276
+ <img class="vl-slideshow__slide" [class.vl-slideshow__slide--on]="$index === index" [src]="url"
7277
+ [alt]="label + ' ' + ($index + 1)" loading="lazy" draggable="false" (click)="open()" (error)="fail($index)" />
7278
+ } @else {
7279
+ <div class="vl-slideshow__slide vl-slideshow__placeholder" [class.vl-slideshow__slide--on]="$index === index" role="img"
7280
+ [attr.aria-label]="label + ' ' + ($index + 1)">
7281
+ <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 8h3l2-3h6l2 3h3v11H4z"/><circle cx="12" cy="13" r="3.5"/></svg>
7282
+ <span class="vl-slideshow__placeholder-n">{{ $index + 1 }} / {{ slides.length }}</span>
7283
+ </div>
7284
+ }
7285
+ }
7286
+ @if (slides.length > 1) {
7287
+ <button type="button" class="vl-slideshow__arrow vl-slideshow__arrow--prev" aria-label="Previous" (click)="go(-1); $event.stopPropagation()">‹</button>
7288
+ <button type="button" class="vl-slideshow__arrow vl-slideshow__arrow--next" aria-label="Next" (click)="go(1); $event.stopPropagation()">›</button>
7289
+ <div class="vl-slideshow__dots">
7290
+ @for (src of slides; track $index) {
7291
+ <button type="button" class="vl-slideshow__dot" [class.vl-slideshow__dot--on]="$index === index"
7292
+ [attr.aria-label]="($index + 1) + ' / ' + slides.length" (click)="show($index); $event.stopPropagation()"></button>
7293
+ }
7294
+ </div>
7295
+ }
7296
+ </div>
7297
+ }
7298
+ @if (large && slides[index]) {
7299
+ <div class="vl-slideshow__large" role="dialog" aria-modal="true" (click)="close()">
7300
+ <img [src]="(images[index] | vlMedia | async) || null" [alt]="label + ' ' + (index + 1)" (click)="$event.stopPropagation()" />
7301
+ <button type="button" class="vl-slideshow__close" aria-label="Close" (click)="close()">✕</button>
7302
+ @if (images.length > 1) {
7303
+ <button type="button" class="vl-slideshow__arrow vl-slideshow__arrow--prev" aria-label="Previous" (click)="go(-1); $event.stopPropagation()">‹</button>
7304
+ <button type="button" class="vl-slideshow__arrow vl-slideshow__arrow--next" aria-label="Next" (click)="go(1); $event.stopPropagation()">›</button>
7305
+ }
7306
+ </div>
7307
+ }
7308
+ `, styles: [":host{display:block;min-width:0}.vl-slideshow{position:relative;width:100%;max-height:70vh;overflow:hidden;border-radius:var(--vl-shape-radius, 8px);background:var(--vl-color-surface, #f3f4f6);touch-action:pan-y;outline:none}.vl-slideshow__slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease;cursor:zoom-in;-webkit-user-select:none;user-select:none}.vl-slideshow__slide--on{opacity:1}.vl-slideshow__placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:default;color:var(--vl-color-primary, #2563eb);background:repeating-linear-gradient(135deg,var(--vl-header-background, #e5e7eb) 0 14px,color-mix(in srgb,var(--vl-header-background, #e5e7eb) 88%,var(--vl-color-primary, #2563eb)) 14px 28px)}.vl-slideshow__placeholder-n{font-family:var(--vl-font-heading-family, inherit);font-weight:700;letter-spacing:.06em}.vl-slideshow__arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;font-size:24px;line-height:1;cursor:pointer;color:#fff;background:#00000059}.vl-slideshow__arrow--prev{left:8px}.vl-slideshow__arrow--next{right:8px}.vl-slideshow__dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px}.vl-slideshow__dot{width:8px;height:8px;margin:0;padding:0;border:0;border-radius:50%;cursor:pointer;background:#ffffff8c}.vl-slideshow__dot--on{background:#fff}.vl-slideshow__large{position:fixed;inset:0;z-index:1000000;display:flex;align-items:center;justify-content:center;padding:env(safe-area-inset-top,0) 0 env(safe-area-inset-bottom,0);background:#000000e6}.vl-slideshow__large img{max-width:100%;max-height:100%;object-fit:contain}.vl-slideshow__close{position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);right:12px;width:40px;height:40px;margin:0;border:0;border-radius:50%;font-size:20px;color:#fff;background:#ffffff26;cursor:pointer}@media(prefers-reduced-motion:reduce){.vl-slideshow__slide{transition:none}}\n"] }]
7309
+ }], propDecorators: { images: [{
7310
+ type: Input
7311
+ }], interval: [{
7312
+ type: Input
7313
+ }], aspect: [{
7314
+ type: Input
7315
+ }], label: [{
7316
+ type: Input
7317
+ }], placeholders: [{
7318
+ type: Input
7319
+ }] } });
7320
+
7321
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
7322
+ // - new: on the Designer's canvas the day names follow the app's language (data-vl-canvas-lang), not the Designer's
7323
+ // - new: <vl-opening-hours> - the week's opening times as data (option.hours, option.timeZone): on top whether it is
7324
+ // open now and until when, or when it opens again; below one line per day, today marked, closed days quieter. The
7325
+ // status is reckoned in the business's time zone and renewed every minute (point 213 worklist 29). Day names in the
7326
+ // app's language (html lang, Intl); the fixed words are texts of the app (Open now, Closed now ...).
7327
+ class OpeningHoursComponent {
7328
+ cdr = inject(ChangeDetectorRef);
7329
+ host = inject(ElementRef);
7330
+ hours = [];
7331
+ timeZone = 'Europe/Berlin';
7332
+ /** the app's texts (selectedLanguage) for the fixed words */
7333
+ translations = null;
7334
+ days = WEEK_DAYS;
7335
+ status = { open: false, next: null, today: 'mon' };
7336
+ timer;
7337
+ ngOnInit() {
7338
+ this.update();
7339
+ this.timer = setInterval(() => { this.update(); this.cdr.markForCheck(); }, 60_000);
7340
+ }
7341
+ ngOnDestroy() {
7342
+ clearInterval(this.timer);
7343
+ }
7344
+ update() {
7345
+ this.status = openingStatus(this.hours || [], this.timeZone || 'Europe/Berlin');
7346
+ }
7347
+ t(key) {
7348
+ return this.translations?.[key] || key;
7349
+ }
7350
+ /** The app's language: on the Designer's canvas the app's (data-vl-canvas-lang), in the app the document's (html lang). */
7351
+ get lang() {
7352
+ if (typeof document === 'undefined')
7353
+ return 'en';
7354
+ const onCanvas = !!this.host.nativeElement?.closest?.('.vl-library-canvas');
7355
+ return (onCanvas && document.documentElement.dataset['vlCanvasLang']) || document.documentElement.lang || 'en';
7356
+ }
7357
+ dayName(day) {
7358
+ // 2026-11-09 is a Monday - the weekday names from Intl in the app's language
7359
+ const date = new Date(Date.UTC(2026, 10, 9 + WEEK_DAYS.indexOf(day), 12));
7360
+ try {
7361
+ return new Intl.DateTimeFormat(this.lang, { weekday: 'long', timeZone: 'UTC' }).format(date);
7362
+ }
7363
+ catch {
7364
+ return day;
7365
+ }
7366
+ }
7367
+ clock(time) {
7368
+ const [h, m] = time.split(':').map(Number);
7369
+ const date = new Date(Date.UTC(2026, 0, 1, h % 24, m));
7370
+ try {
7371
+ return new Intl.DateTimeFormat(this.lang, { hour: 'numeric', minute: '2-digit', timeZone: 'UTC' }).format(date);
7372
+ }
7373
+ catch {
7374
+ return time;
7375
+ }
7376
+ }
7377
+ timesOf(day) {
7378
+ return (this.hours || []).filter((t) => t.day === day).map((t) => `${this.clock(t.from)} – ${this.clock(t.to)}`);
7379
+ }
7380
+ nextText() {
7381
+ const next = this.status.next;
7382
+ if (!next)
7383
+ return '';
7384
+ const when = next.today ? this.t('today') : next.tomorrow ? this.t('tomorrow') : this.dayName(next.day);
7385
+ return `${this.status.open ? this.t('until') : this.t('Open again')} ${this.status.open && next.today ? '' : when + ' '}${this.clock(next.time)}`.replace(/\s+/g, ' ').trim();
7386
+ }
7387
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: OpeningHoursComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7388
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: OpeningHoursComponent, isStandalone: true, selector: "vl-opening-hours", inputs: { hours: "hours", timeZone: "timeZone", translations: "translations" }, ngImport: i0, template: `
7389
+ <div class="vl-hours">
7390
+ <div class="vl-hours__now" [class.vl-hours__now--open]="status.open" role="status">
7391
+ <span class="vl-hours__dot" aria-hidden="true"></span>
7392
+ <span class="vl-hours__now-text">
7393
+ <strong>{{ status.open ? t('Open now') : t('Closed now') }}</strong>
7394
+ @if (status.next) {
7395
+ <span class="vl-hours__now-sub">{{ nextText() }}</span>
7396
+ }
7397
+ </span>
7398
+ </div>
7399
+ <ul class="vl-hours__week">
7400
+ @for (day of days; track day) {
7401
+ <li class="vl-hours__day" [class.vl-hours__day--today]="day === status.today" [class.vl-hours__day--closed]="!timesOf(day).length">
7402
+ <span class="vl-hours__name">{{ dayName(day) }}@if (day === status.today) {<span class="vl-hours__today">{{ t('Today') }}</span>}</span>
7403
+ <span class="vl-hours__times">{{ timesOf(day).length ? timesOf(day).join(', ') : t('closed') }}</span>
7404
+ </li>
7405
+ }
7406
+ </ul>
7407
+ </div>
7408
+ `, isInline: true, styles: [".vl-hours{display:flex;flex-direction:column;gap:14px}.vl-hours__now{display:flex;align-items:center;gap:12px;padding:16px;border-radius:calc(var(--vl-shape-radius, 8px) * 2);background:var(--vl-color-surface, #fff);border:1px solid var(--vl-color-border, #e5e7eb);color:var(--vl-color-text, #111)}.vl-hours__now--open{background:var(--vl-header-background, #111);color:var(--vl-header-text, #fff);border-color:transparent}.vl-hours__dot{width:12px;height:12px;border-radius:50%;flex:none;background:var(--vl-color-danger, #b23a2e)}.vl-hours__now--open .vl-hours__dot{background:var(--vl-color-success, #2e8b57);box-shadow:0 0 0 4px color-mix(in srgb,var(--vl-color-success, #2e8b57) 30%,transparent)}.vl-hours__now-text{display:flex;flex-direction:column;gap:2px}.vl-hours__now-text strong{font-family:var(--vl-font-heading-family, inherit);font-size:1.15rem;text-transform:uppercase;letter-spacing:.02em}.vl-hours__now-sub{font-size:.9rem;opacity:.85}.vl-hours__week{list-style:none;margin:0;padding:4px 0;border-radius:calc(var(--vl-shape-radius, 8px) * 2);background:var(--vl-color-surface, #fff);border:1px solid var(--vl-color-border, #e5e7eb)}.vl-hours__day{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--vl-color-border, #eee);color:var(--vl-color-text, #111)}.vl-hours__day:last-child{border-bottom:0}.vl-hours__times{font-weight:700;text-align:right}.vl-hours__day--closed{color:var(--vl-color-text-muted, #6b6457)}.vl-hours__day--closed .vl-hours__times{font-weight:400}.vl-hours__day--today{margin:0 8px;border-radius:var(--vl-shape-radius, 8px);border:2px solid var(--vl-color-primary, #2563eb);background:color-mix(in srgb,var(--vl-color-primary, #2563eb) 12%,var(--vl-color-surface, #fff))}.vl-hours__today{margin-left:8px;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:700;background:var(--vl-header-background, #111);color:var(--vl-header-text, #fff)}\n"] });
7409
+ }
7410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: OpeningHoursComponent, decorators: [{
7411
+ type: Component,
7412
+ args: [{ selector: 'vl-opening-hours', standalone: true, template: `
7413
+ <div class="vl-hours">
7414
+ <div class="vl-hours__now" [class.vl-hours__now--open]="status.open" role="status">
7415
+ <span class="vl-hours__dot" aria-hidden="true"></span>
7416
+ <span class="vl-hours__now-text">
7417
+ <strong>{{ status.open ? t('Open now') : t('Closed now') }}</strong>
7418
+ @if (status.next) {
7419
+ <span class="vl-hours__now-sub">{{ nextText() }}</span>
7420
+ }
7421
+ </span>
7422
+ </div>
7423
+ <ul class="vl-hours__week">
7424
+ @for (day of days; track day) {
7425
+ <li class="vl-hours__day" [class.vl-hours__day--today]="day === status.today" [class.vl-hours__day--closed]="!timesOf(day).length">
7426
+ <span class="vl-hours__name">{{ dayName(day) }}@if (day === status.today) {<span class="vl-hours__today">{{ t('Today') }}</span>}</span>
7427
+ <span class="vl-hours__times">{{ timesOf(day).length ? timesOf(day).join(', ') : t('closed') }}</span>
7428
+ </li>
7429
+ }
7430
+ </ul>
7431
+ </div>
7432
+ `, styles: [".vl-hours{display:flex;flex-direction:column;gap:14px}.vl-hours__now{display:flex;align-items:center;gap:12px;padding:16px;border-radius:calc(var(--vl-shape-radius, 8px) * 2);background:var(--vl-color-surface, #fff);border:1px solid var(--vl-color-border, #e5e7eb);color:var(--vl-color-text, #111)}.vl-hours__now--open{background:var(--vl-header-background, #111);color:var(--vl-header-text, #fff);border-color:transparent}.vl-hours__dot{width:12px;height:12px;border-radius:50%;flex:none;background:var(--vl-color-danger, #b23a2e)}.vl-hours__now--open .vl-hours__dot{background:var(--vl-color-success, #2e8b57);box-shadow:0 0 0 4px color-mix(in srgb,var(--vl-color-success, #2e8b57) 30%,transparent)}.vl-hours__now-text{display:flex;flex-direction:column;gap:2px}.vl-hours__now-text strong{font-family:var(--vl-font-heading-family, inherit);font-size:1.15rem;text-transform:uppercase;letter-spacing:.02em}.vl-hours__now-sub{font-size:.9rem;opacity:.85}.vl-hours__week{list-style:none;margin:0;padding:4px 0;border-radius:calc(var(--vl-shape-radius, 8px) * 2);background:var(--vl-color-surface, #fff);border:1px solid var(--vl-color-border, #e5e7eb)}.vl-hours__day{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--vl-color-border, #eee);color:var(--vl-color-text, #111)}.vl-hours__day:last-child{border-bottom:0}.vl-hours__times{font-weight:700;text-align:right}.vl-hours__day--closed{color:var(--vl-color-text-muted, #6b6457)}.vl-hours__day--closed .vl-hours__times{font-weight:400}.vl-hours__day--today{margin:0 8px;border-radius:var(--vl-shape-radius, 8px);border:2px solid var(--vl-color-primary, #2563eb);background:color-mix(in srgb,var(--vl-color-primary, #2563eb) 12%,var(--vl-color-surface, #fff))}.vl-hours__today{margin-left:8px;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:700;background:var(--vl-header-background, #111);color:var(--vl-header-text, #fff)}\n"] }]
7433
+ }], propDecorators: { hours: [{
7434
+ type: Input
7435
+ }], timeZone: [{
7436
+ type: Input
7437
+ }], translations: [{
7438
+ type: Input
7439
+ }] } });
7440
+
7441
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
7442
+ // - change: the usual two-click text (loading sends data to OpenStreetMap) and "Plan route" (user 2026-11-09)
7443
+ // - change: on the loaded map Route sits top left - the map's credit line at the bottom stays readable
7444
+ // - change: on the Designer's canvas "Load map" loads nothing - it says that the app loads it after a tap (213/42b)
7445
+ // - new: <vl-map> - where the business is (point 213 worklist 42, OFFENE-PUNKTE 218): the place as data (option.lat,
7446
+ // option.lon, option.address, option.zoom). Nothing goes to a map provider until the user taps "Load map" (GDPR):
7447
+ // before that a quiet card with the address; after it the OpenStreetMap map with a pin. "Route" opens the directions
7448
+ // in the device's maps app - the app hands the link on (event vl-open-contact), it sends nothing itself. The choice
7449
+ // holds for the session.
7450
+ const CONSENT_KEY = 'vl-map-consent';
7451
+ class MapComponent {
7452
+ sanitizer = inject(DomSanitizer);
7453
+ /** the place: lat/lon in degrees (WGS84), the address for the route and the card, zoom 1..19 (default 16) */
7454
+ set place(value) {
7455
+ this.address = String(value?.address ?? '').trim();
7456
+ const url = validPlace(value?.lat, value?.lon) ? mapEmbedUrl(Number(value.lat), Number(value.lon), Number(value?.zoom) || 16) : '';
7457
+ this.embed = url ? this.sanitizer.bypassSecurityTrustResourceUrl(url) : null;
7458
+ }
7459
+ /** the app's texts (selectedLanguage) for the fixed words */
7460
+ translations = null;
7461
+ address = '';
7462
+ embed = null;
7463
+ loaded = this.consented();
7464
+ /** the Designer's canvas: a tap on Load map only says what the app does */
7465
+ designHint = false;
7466
+ get onCanvas() { return typeof document !== 'undefined' && !!document.querySelector('[data-vl-canvas-lang]'); }
7467
+ t(key) {
7468
+ return this.translations?.[key] || key;
7469
+ }
7470
+ load() {
7471
+ if (this.onCanvas) {
7472
+ this.designHint = true;
7473
+ return;
7474
+ }
7475
+ this.loaded = true;
7476
+ try {
7477
+ sessionStorage.setItem(CONSENT_KEY, '1');
7478
+ }
7479
+ catch { /* no storage: ask again next time */ }
7480
+ }
7481
+ /** the app opens the directions (the device's maps app) - the same way as a route button */
7482
+ route() {
7483
+ window.dispatchEvent(new CustomEvent('vl-open-contact', { detail: { contactKind: 'route', contactValue: this.address } }));
7484
+ }
7485
+ consented() {
7486
+ // on the Designer's canvas the map stays a card - nothing is loaded while designing
7487
+ if (typeof document !== 'undefined' && document.querySelector('[data-vl-canvas-lang]'))
7488
+ return false;
7489
+ try {
7490
+ return sessionStorage.getItem(CONSENT_KEY) === '1';
7491
+ }
7492
+ catch {
7493
+ return false;
7494
+ }
7495
+ }
7496
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7497
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: MapComponent, isStandalone: true, selector: "vl-map", inputs: { place: "place", translations: "translations" }, ngImport: i0, template: `
7498
+ <div class="vl-map">
7499
+ @if (loaded && embed) {
7500
+ <iframe class="vl-map__frame" [src]="embed" [title]="address || t('Map')" loading="lazy" referrerpolicy="no-referrer"></iframe>
7501
+ } @else {
7502
+ <div class="vl-map__idle">
7503
+ <svg class="vl-map__pin" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z"/></svg>
7504
+ @if (address) {<div class="vl-map__address">{{ address }}</div>}
7505
+ @if (embed) {
7506
+ <button type="button" class="vl-map__load" (click)="load()">{{ t('Load map') }}</button>
7507
+ <div class="vl-map__hint">{{ designHint ? t('In the app the map loads after a tap.') : t('Loading the map sends data to OpenStreetMap.') }}</div>
7508
+ }
7509
+ </div>
7510
+ }
7511
+ @if (address) {
7512
+ <button type="button" class="vl-map__route" [class.vl-map__route--top]="loaded && embed" (click)="route()">{{ t('Plan route') }}</button>
7513
+ }
7514
+ </div>
7515
+ `, isInline: true, styles: [".vl-map{position:relative;border-radius:calc(var(--vl-shape-radius, 8px) * 2);overflow:hidden;border:1px solid var(--vl-color-border, #e5e7eb);background:var(--vl-color-surface, #fff);color:var(--vl-color-text, #111)}.vl-map__frame{display:block;width:100%;height:240px;border:0}.vl-map__idle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:240px;padding:20px 16px 64px;text-align:center;background:repeating-linear-gradient(135deg,transparent 0 22px,color-mix(in srgb,var(--vl-color-primary, #2563eb) 8%,transparent) 22px 44px)}.vl-map__pin{width:40px;height:40px;fill:var(--vl-color-primary, #2563eb)}.vl-map__address{font-weight:700}.vl-map__load{padding:10px 18px;border:1px solid var(--vl-color-primary, #2563eb);border-radius:var(--vl-shape-radius, 8px);background:transparent;color:var(--vl-color-primary, #2563eb);font:inherit;font-weight:700;cursor:pointer}.vl-map__hint{font-size:.8rem;color:var(--vl-color-text-muted, #6b6457)}.vl-map__route{position:absolute;right:12px;bottom:12px;padding:10px 18px;border:0;border-radius:var(--vl-shape-radius, 8px);background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);font:inherit;font-weight:700;cursor:pointer;box-shadow:0 2px 8px #00000040}.vl-map__route--top{inset:12px auto auto 12px}\n"] });
7516
+ }
7517
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MapComponent, decorators: [{
7518
+ type: Component,
7519
+ args: [{ selector: 'vl-map', standalone: true, template: `
7520
+ <div class="vl-map">
7521
+ @if (loaded && embed) {
7522
+ <iframe class="vl-map__frame" [src]="embed" [title]="address || t('Map')" loading="lazy" referrerpolicy="no-referrer"></iframe>
7523
+ } @else {
7524
+ <div class="vl-map__idle">
7525
+ <svg class="vl-map__pin" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z"/></svg>
7526
+ @if (address) {<div class="vl-map__address">{{ address }}</div>}
7527
+ @if (embed) {
7528
+ <button type="button" class="vl-map__load" (click)="load()">{{ t('Load map') }}</button>
7529
+ <div class="vl-map__hint">{{ designHint ? t('In the app the map loads after a tap.') : t('Loading the map sends data to OpenStreetMap.') }}</div>
7530
+ }
7531
+ </div>
7532
+ }
7533
+ @if (address) {
7534
+ <button type="button" class="vl-map__route" [class.vl-map__route--top]="loaded && embed" (click)="route()">{{ t('Plan route') }}</button>
7535
+ }
7536
+ </div>
7537
+ `, styles: [".vl-map{position:relative;border-radius:calc(var(--vl-shape-radius, 8px) * 2);overflow:hidden;border:1px solid var(--vl-color-border, #e5e7eb);background:var(--vl-color-surface, #fff);color:var(--vl-color-text, #111)}.vl-map__frame{display:block;width:100%;height:240px;border:0}.vl-map__idle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:240px;padding:20px 16px 64px;text-align:center;background:repeating-linear-gradient(135deg,transparent 0 22px,color-mix(in srgb,var(--vl-color-primary, #2563eb) 8%,transparent) 22px 44px)}.vl-map__pin{width:40px;height:40px;fill:var(--vl-color-primary, #2563eb)}.vl-map__address{font-weight:700}.vl-map__load{padding:10px 18px;border:1px solid var(--vl-color-primary, #2563eb);border-radius:var(--vl-shape-radius, 8px);background:transparent;color:var(--vl-color-primary, #2563eb);font:inherit;font-weight:700;cursor:pointer}.vl-map__hint{font-size:.8rem;color:var(--vl-color-text-muted, #6b6457)}.vl-map__route{position:absolute;right:12px;bottom:12px;padding:10px 18px;border:0;border-radius:var(--vl-shape-radius, 8px);background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);font:inherit;font-weight:700;cursor:pointer;box-shadow:0 2px 8px #00000040}.vl-map__route--top{inset:12px auto auto 12px}\n"] }]
7538
+ }], propDecorators: { place: [{
7539
+ type: Input
7540
+ }], translations: [{
7541
+ type: Input
7542
+ }] } });
7543
+
7544
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
7545
+ // - new: <vl-price> - a price as data (option.amount, option.currency, option.from; point 213 worklist 36): written in
7546
+ // the app's language (32 € / €32), "from" as a text of the app; without an amount the text "Price to follow".
7547
+ // On the Designer's canvas the app's language (data-vl-canvas-lang), in the app the document's (html lang).
7548
+ class PriceComponent {
7549
+ host = inject(ElementRef);
7550
+ amount;
7551
+ currency = 'EUR';
7552
+ from = false;
7553
+ /** the app's texts (selectedLanguage) for "Price from" and "Price to follow" */
7554
+ translations = null;
7555
+ get hasAmount() { return validAmount(this.amount); }
7556
+ get text() {
7557
+ if (!this.hasAmount)
7558
+ return this.t('Price to follow');
7559
+ return formatPrice(this.amount, this.currency, this.lang, this.from === true ? this.t('Price from', 'from') : '');
7560
+ }
7561
+ t(key, fallback = key) { return this.translations?.[key] || fallback; }
7562
+ get lang() {
7563
+ if (typeof document === 'undefined')
7564
+ return 'en';
7565
+ const onCanvas = !!this.host.nativeElement?.closest?.('.vl-library-canvas');
7566
+ return (onCanvas && document.documentElement.dataset['vlCanvasLang']) || document.documentElement.lang || 'en';
7567
+ }
7568
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: PriceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7569
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: PriceComponent, isStandalone: true, selector: "vl-price", inputs: { amount: "amount", currency: "currency", from: "from", translations: "translations" }, ngImport: i0, template: `<span class="vl-price" [class.vl-price--none]="!hasAmount">{{ text }}</span>`, isInline: true, styles: [".vl-price{font-variant-numeric:tabular-nums;white-space:nowrap}.vl-price--none{font-weight:400;opacity:.75}\n"] });
7570
+ }
7571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: PriceComponent, decorators: [{
7572
+ type: Component,
7573
+ args: [{ selector: 'vl-price', standalone: true, template: `<span class="vl-price" [class.vl-price--none]="!hasAmount">{{ text }}</span>`, styles: [".vl-price{font-variant-numeric:tabular-nums;white-space:nowrap}.vl-price--none{font-weight:400;opacity:.75}\n"] }]
7574
+ }], propDecorators: { amount: [{
7575
+ type: Input
7576
+ }], currency: [{
7577
+ type: Input
7578
+ }], from: [{
7579
+ type: Input
7580
+ }], translations: [{
7581
+ type: Input
7582
+ }] } });
7583
+
7158
7584
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24
7159
7585
  // - change: a data object holds names and types only - the currency comes from the layout only
7160
7586
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18
@@ -7315,6 +7741,8 @@ function numberStep(field, shape, integer) {
7315
7741
  return integer ? 1 : 'any';
7316
7742
  }
7317
7743
 
7744
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
7745
+ // - change: colors read the design values with today's color as fallback (point 173)
7318
7746
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22
7319
7747
  // - fix: the spinner's field has a small padding and a centred number - in a table cell it was 35px
7320
7748
  // wide and its 2 x 12px padding hid the number
@@ -7431,7 +7859,7 @@ class NumberControl {
7431
7859
  <p class="text-danger vl-number__error" *ngIf="showError()">{{ message() }}</p>
7432
7860
  </ng-container>
7433
7861
  <ng-template #shownText><span class="vl-number__text">{{ shown(value) }}</span></ng-template>
7434
- `, isInline: true, styles: [":host{display:block;min-width:0}.vl-number{display:flex;align-items:center;gap:6px;min-width:0}.vl-number__box{position:relative;flex:1;min-width:0;display:block}.vl-number__input{min-width:0;width:100%}.vl-number--spinner .vl-number__input{padding-left:4px!important;padding-right:4px!important;text-align:center}.vl-number__input--sign{padding-right:2.5rem!important}.vl-number__sign{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:#64748b;pointer-events:none}.vl-number__step{width:2.5rem;height:2.5rem;flex:0 0 auto;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font-size:1.1rem;cursor:pointer}.vl-number__range{flex:1;min-width:0}.vl-number__value{min-width:3ch;text-align:right}.vl-number__error{margin:4px 0 0}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "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]] }] });
7862
+ `, isInline: true, styles: [":host{display:block;min-width:0}.vl-number{display:flex;align-items:center;gap:6px;min-width:0}.vl-number__box{position:relative;flex:1;min-width:0;display:block}.vl-number__input{min-width:0;width:100%}.vl-number--spinner .vl-number__input{padding-left:4px!important;padding-right:4px!important;text-align:center}.vl-number__input--sign{padding-right:2.5rem!important}.vl-number__sign{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:var(--vl-color-primary, #64748b);pointer-events:none}.vl-number__step{width:2.5rem;height:2.5rem;flex:0 0 auto;border:1px solid var(--vl-color-border, #cbd5e1);border-radius:6px;background:var(--vl-color-surface, #fff);font-size:1.1rem;cursor:pointer}.vl-number__range{flex:1;min-width:0}.vl-number__value{min-width:3ch;text-align:right}.vl-number__error{margin:4px 0 0}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "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]] }] });
7435
7863
  }
7436
7864
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: NumberControl, decorators: [{
7437
7865
  type: Component,
@@ -7464,7 +7892,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
7464
7892
  <p class="text-danger vl-number__error" *ngIf="showError()">{{ message() }}</p>
7465
7893
  </ng-container>
7466
7894
  <ng-template #shownText><span class="vl-number__text">{{ shown(value) }}</span></ng-template>
7467
- `, styles: [":host{display:block;min-width:0}.vl-number{display:flex;align-items:center;gap:6px;min-width:0}.vl-number__box{position:relative;flex:1;min-width:0;display:block}.vl-number__input{min-width:0;width:100%}.vl-number--spinner .vl-number__input{padding-left:4px!important;padding-right:4px!important;text-align:center}.vl-number__input--sign{padding-right:2.5rem!important}.vl-number__sign{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:#64748b;pointer-events:none}.vl-number__step{width:2.5rem;height:2.5rem;flex:0 0 auto;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font-size:1.1rem;cursor:pointer}.vl-number__range{flex:1;min-width:0}.vl-number__value{min-width:3ch;text-align:right}.vl-number__error{margin:4px 0 0}\n"] }]
7895
+ `, styles: [":host{display:block;min-width:0}.vl-number{display:flex;align-items:center;gap:6px;min-width:0}.vl-number__box{position:relative;flex:1;min-width:0;display:block}.vl-number__input{min-width:0;width:100%}.vl-number--spinner .vl-number__input{padding-left:4px!important;padding-right:4px!important;text-align:center}.vl-number__input--sign{padding-right:2.5rem!important}.vl-number__sign{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:var(--vl-color-primary, #64748b);pointer-events:none}.vl-number__step{width:2.5rem;height:2.5rem;flex:0 0 auto;border:1px solid var(--vl-color-border, #cbd5e1);border-radius:6px;background:var(--vl-color-surface, #fff);font-size:1.1rem;cursor:pointer}.vl-number__range{flex:1;min-width:0}.vl-number__value{min-width:3ch;text-align:right}.vl-number__error{margin:4px 0 0}\n"] }]
7468
7896
  }], propDecorators: { field: [{
7469
7897
  type: Input
7470
7898
  }], target: [{
@@ -7966,6 +8394,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
7966
8394
  type: Output
7967
8395
  }] } });
7968
8396
 
8397
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
8398
+ // - new: kind price (vl-price) - option.amount, option.currency, option.from
8399
+ // - new: kind map (vl-map) - option.lat, option.lon, option.address, option.zoom
8400
+ // - new: kind openingHours (vl-opening-hours) - option.hours and option.timeZone
8401
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08
8402
+ // - change: buttonIcon - every button shows its option.icon, a contact button else the icon of its kind (a tile that
8403
+ // opens a page showed none; building blocks, point 213 worklist 22)
8404
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
8405
+ // - new: kind slideshow - a media field's pictures changing by themselves (vl-slideshow, worklist 213 15c); textBlock
8406
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
8407
+ // - change: colors read the design values with today's color as fallback (point 173)
7969
8408
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
7970
8409
  // - new: a locked field still holding its fixed start text shows it in the app's language (shownSchema) - only shown
7971
8410
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01
@@ -8261,16 +8700,37 @@ class ControlComponent {
8261
8700
  valueStyle() {
8262
8701
  return this.styleValue ? styleParts(this.field?.scope?.style) : { classes: '', style: {} };
8263
8702
  }
8703
+ /** The slideshow's pictures: option.images (Media paths or addresses), else a list as the value (worklist 213 15c). */
8704
+ slideshowImages() {
8705
+ const own = this.field?.option?.images;
8706
+ if (Array.isArray(own))
8707
+ return own.map(String);
8708
+ return Array.isArray(this.value) ? this.value.map(String) : [];
8709
+ }
8710
+ /** the kind of a contact button (phone, whatsapp …) - '' for every other button (point 213 worklist 16) */
8711
+ get contactKind() {
8712
+ const option = this.field?.option;
8713
+ return option?.innerAction === 'contact' || option?.action === 'contact' ? String(option?.contactKind ?? '') : '';
8714
+ }
8715
+ /** a button's icon: its own (option.icon), else for a contact button the one of its kind */
8716
+ get buttonIcon() {
8717
+ const own = this.field?.option?.icon || this.field?.icon;
8718
+ if (own)
8719
+ return String(own);
8720
+ const kind = this.contactKind;
8721
+ return kind ? String(CONTACT_ICONS[kind] || '') : '';
8722
+ }
8264
8723
  /** a button has no input; the field's style is the button's */
8265
8724
  buttonStyle() {
8266
8725
  return styleParts(this.field?.style);
8267
8726
  }
8268
8727
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8269
- 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", buttonType: "buttonType", locked: "locked", lockHints: "lockHints", mode: "mode", record: "record", hideLabel: "hideLabel", styleValue: "styleValue", compact: "compact", list: "list", listLoading: "listLoading", creditCardError: "creditCardError" }, outputs: { picked: "picked", changed: "changed", opened: "opened", toggled: "toggled", linkClicked: "linkClicked", mediaClicked: "mediaClicked", buttonClick: "buttonClick", lockedClick: "lockedClick", signIn: "signIn" }, host: { properties: { "attr.data-vl-field": "this.hostFieldKey", "attr.data-vl-path": "this.hostFieldPath", "class.vl-control--clamped": "this.clamped", "style.--vl-max-lines": "this.maxLines", "attr.data-vl-enter-key": "this.hostEnterKey" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - new: the card field in one, two or three rows (option.cardLayout); every part carries the field's input style -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\r\n - fix: the card field (creditCard) shows its label and the red * of a required field like every other field,\r\n in the same frame (vl-control__inner): label above, the card below -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: no list of the missing fields under the button (user 2026-10-24: too many red lines) - the fields show\r\n their own messages on a click\r\n - change: every reason under a locked button\r\n - new: a locked button stays clickable (onButton: lockedClick instead of buttonClick); its hint stands under it,\r\n a link to the sign-in when the sign-in is missing\r\n - new: a red * after the label of a required field\r\n - change: a locked button is grey (vl-control__button--locked), not the layout's colour half transparent -\r\n the blue looked clickable\r\n - new: a locked button is disabled, half transparent and takes no click (needsLogin / needsValid) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - fix: the text field gets ruleField like every other building block - the data object's rules\r\n (required ...) did not count for a text field -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - fix: the building blocks get ruleField - the field with its data object's rules -->\r\n<!-- Shuaib 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 every control gets the project's translated messages (messages) (#166)\r\n - the button carries only the layout's classes and style - no Bootstrap classes, the app does not\r\n load Bootstrap -->\r\n@if (kind === 'button') {\r\n<button [attr.type]=\"buttonType\"\r\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\r\n [class]=\"buttonStyle().classes\"\r\n [ngStyle]=\"buttonStyle().style\"\r\n [attr.aria-disabled]=\"locked || null\" [class.vl-control__button--locked]=\"locked\"\r\n (click)=\"onButton($event)\">\r\n {{ label }}\r\n</button>\r\n@if (locked) {\r\n@for (hint of lockHints; track hint.reason) {\r\n@if (hint.reason === 'login' && hint.text) {\r\n<p class=\"vl-control__lock-hint vl-control__lock-hint--link\" role=\"link\" tabindex=\"0\"\r\n (click)=\"signIn.emit()\" (keydown.enter)=\"signIn.emit()\">{{ hint.text }}</p>\r\n} @else if (hint.text) {\r\n<p class=\"vl-control__lock-hint\" role=\"status\">{{ hint.text }}</p>\r\n}\r\n}\r\n}\r\n} @else if (kind === 'creditCard') {\r\n<!-- the card field has its label and the red * like every other field (it had none - user 2026-10-28) -->\r\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\r\n @if (label || required) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\r\n }\r\n <div class=\"vl-control__card\">\r\n @if (cardLayout === 'oneRow') {\r\n <div id=\"card-element\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\">\r\n <!-- a Stripe element will be inserted here -->\r\n </div>\r\n } @else {\r\n <!-- number, expiry and CVC as Stripe's three elements, in two or three rows (OFFENE-PUNKTE 103) -->\r\n <div class=\"vl-control__card-parts\" [class]=\"'vl-control__card-parts vl-control__card-parts--' + cardLayout\" data-vl-card-parts>\r\n <div id=\"card-number\" class=\"vl-control__card-part--number\" [class]=\"'vl-control__card-part--number ' + inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"number\"></div>\r\n <div id=\"card-expiry\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"expiry\"></div>\r\n <div id=\"card-cvc\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"cvc\"></div>\r\n </div>\r\n }\r\n <div id=\"card-errors\" [class]=\"creditCardError?.textContent ? 'text-red-400 m-0' : ''\"></div>\r\n </div>\r\n</div>\r\n} @else if (display) {\r\n<!-- a list (card, grid): the record's value, read only; scope.style styles the value -->\r\n@if (showLabel) {\r\n<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>\r\n}\r\n@if (kind === 'media') {\r\n<vl-media [field]=\"ruleField\" [compact]=\"true\" [property]=\"property\" [value]=\"value\"\r\n [mediaClass]=\"valueStyle().classes\" [mediaStyle]=\"valueStyle().style\"\r\n (clicked)=\"mediaClicked.emit(field?.option)\"></vl-media>\r\n} @else {\r\n<div [class]=\"'vl-control__value ' + valueStyle().classes\"\r\n [class.vl-control__value--number]=\"kind === 'number'\"\r\n [class.vl-control__value--link]=\"isLink\"\r\n [ngStyle]=\"valueStyle().style\" (click)=\"openLink()\">\r\n @switch (kind) {\r\n @case ('number') {\r\n <vl-number style=\"display:inline-block\" [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\r\n [property]=\"property\" [row]=\"numberRow\" [translations]=\"translations\"></vl-number>\r\n }\r\n @case ('password') { <vl-password [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"></vl-password> }\r\n @case ('textarea') { <vl-textarea [field]=\"ruleField\" [readonly]=\"true\" [compact]=\"compact\" [value]=\"value\"></vl-textarea> }\r\n @case ('radio') {\r\n <vl-radio [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\r\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\" [translations]=\"translations\"></vl-radio>\r\n }\r\n @case ('dropdown') {\r\n <vl-dropdown [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [items]=\"property?.data\"\r\n [translations]=\"translations\"></vl-dropdown>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"\r\n [translations]=\"translations\"></vl-switch>\r\n }\r\n @case ('checkbox') {\r\n <vl-checkbox [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"></vl-checkbox>\r\n }\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\"\r\n [translations]=\"translations\"></vl-autocomplete>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\" [combobox]=\"true\"\r\n [translations]=\"translations\"></vl-autocomplete>\r\n }\r\n @case ('date') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('time') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('datetime') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('daterange') {\r\n <vl-daterange [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [translations]=\"translations\"></vl-daterange>\r\n }\r\n @default { {{ text }} }\r\n }\r\n</div>\r\n}\r\n} @else {\r\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\r\n @if (showLabel) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\r\n }\r\n @switch (kind) {\r\n @case ('media') {\r\n <vl-media [field]=\"ruleField\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"selectionList\" [loading]=\"selectionLoading\"\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]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"selectionList\" [loading]=\"selectionLoading\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\"></vl-textbox>\r\n }\r\n }\r\n</div>\r\n}\r\n", styles: [":host{display:block;min-width:0}.vl-control__value{margin:0;min-width:0;overflow-wrap:anywhere}:host(.vl-control--clamped) .vl-control__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vl-max-lines);line-clamp:var(--vl-max-lines);overflow:hidden}.vl-control__value--number{font-size:1.17em;font-weight:700}.vl-control__value--link{cursor:pointer;text-decoration:underline}.vl-control__required{color:#dc2626;margin-left:2px}.vl-control__card-parts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.vl-control__card-parts--twoRows{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.vl-control__card-parts--twoRows .vl-control__card-part--number{grid-column:1 / -1}.vl-control__lock-hint{margin:6px 0 0;font-size:.85em;color:#b91c1c;text-align:center}.vl-control__lock-hint--link{cursor:pointer;text-decoration:underline}.vl-control__button--locked{background:#e5e7eb!important;border-color:#d1d5db!important;color:#6b7280!important;box-shadow:none!important;cursor:not-allowed!important;filter:none!important}\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"] }, { kind: "pipe", type: DatePipe, name: "date" }] });
8728
+ 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", buttonType: "buttonType", locked: "locked", lockHints: "lockHints", mode: "mode", record: "record", hideLabel: "hideLabel", styleValue: "styleValue", compact: "compact", list: "list", listLoading: "listLoading", creditCardError: "creditCardError" }, outputs: { picked: "picked", changed: "changed", opened: "opened", toggled: "toggled", linkClicked: "linkClicked", mediaClicked: "mediaClicked", buttonClick: "buttonClick", lockedClick: "lockedClick", signIn: "signIn" }, host: { properties: { "attr.data-vl-field": "this.hostFieldKey", "attr.data-vl-path": "this.hostFieldPath", "class.vl-control--clamped": "this.clamped", "style.--vl-max-lines": "this.maxLines", "attr.data-vl-enter-key": "this.hostEnterKey" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\r\n - new: kind price - a price as data (213/36)\r\n - new: kind map - the place on a map, loaded after a tap (point 213 worklist 42)\r\n - new: kind openingHours - the week's times and whether it is open now -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\r\n - change: every button with an icon shows it (buttonIcon), not only a contact button -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\r\n - new: textBlock - caption and value as a paragraph, no label, no box (point 213 worklist 15a) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - new: the card field in one, two or three rows (option.cardLayout); every part carries the field's input style -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\r\n - fix: the card field (creditCard) shows its label and the red * of a required field like every other field,\r\n in the same frame (vl-control__inner): label above, the card below -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: no list of the missing fields under the button (user 2026-10-24: too many red lines) - the fields show\r\n their own messages on a click\r\n - change: every reason under a locked button\r\n - new: a locked button stays clickable (onButton: lockedClick instead of buttonClick); its hint stands under it,\r\n a link to the sign-in when the sign-in is missing\r\n - new: a red * after the label of a required field\r\n - change: a locked button is grey (vl-control__button--locked), not the layout's colour half transparent -\r\n the blue looked clickable\r\n - new: a locked button is disabled, half transparent and takes no click (needsLogin / needsValid) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - fix: the text field gets ruleField like every other building block - the data object's rules\r\n (required ...) did not count for a text field -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - fix: the building blocks get ruleField - the field with its data object's rules -->\r\n<!-- Shuaib 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 every control gets the project's translated messages (messages) (#166)\r\n - the button carries only the layout's classes and style - no Bootstrap classes, the app does not\r\n load Bootstrap -->\r\n@if (kind === 'button') {\r\n<button [attr.type]=\"buttonType\"\r\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\r\n [class]=\"buttonStyle().classes\"\r\n [ngStyle]=\"buttonStyle().style\"\r\n [attr.aria-disabled]=\"locked || null\" [class.vl-control__button--locked]=\"locked\"\r\n [attr.data-vl-contact]=\"contactKind || null\"\r\n (click)=\"onButton($event)\">\r\n @if (buttonIcon) {<span nz-icon [nzType]=\"buttonIcon\" nzTheme=\"outline\" aria-hidden=\"true\"></span>}\r\n {{ label }}\r\n</button>\r\n@if (locked) {\r\n@for (hint of lockHints; track hint.reason) {\r\n@if (hint.reason === 'login' && hint.text) {\r\n<p class=\"vl-control__lock-hint vl-control__lock-hint--link\" role=\"link\" tabindex=\"0\"\r\n (click)=\"signIn.emit()\" (keydown.enter)=\"signIn.emit()\">{{ hint.text }}</p>\r\n} @else if (hint.text) {\r\n<p class=\"vl-control__lock-hint\" role=\"status\">{{ hint.text }}</p>\r\n}\r\n}\r\n}\r\n} @else if (kind === 'openingHours') {\r\n<!-- opening hours as data (2026-11-09): option.hours [{ day, from, to }], option.timeZone - status and week -->\r\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\r\n<vl-opening-hours [hours]=\"field?.option?.hours || []\" [timeZone]=\"field?.option?.timeZone || 'Europe/Berlin'\"\r\n [translations]=\"translations\"></vl-opening-hours>\r\n} @else if (kind === 'price') {\r\n<!-- a price as data (2026-11-09): option.amount, option.currency, option.from - written in the app's language -->\r\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\r\n<vl-price [amount]=\"field?.option?.amount\" [currency]=\"field?.option?.currency || 'EUR'\" [from]=\"field?.option?.from\" [translations]=\"translations\"></vl-price>\r\n} @else if (kind === 'map') {\r\n<!-- the place on a map (2026-11-09): option.lat, option.lon, option.address, option.zoom - loads after a tap -->\r\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\r\n<vl-map [place]=\"field?.option\" [translations]=\"translations\"></vl-map>\r\n} @else if (kind === 'slideshow') {\r\n<!-- a slideshow (2026-11-07): the media field's pictures change by themselves; a caption stays above it -->\r\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\r\n<vl-slideshow [images]=\"slideshowImages()\" [placeholders]=\"field?.option?.placeholders ?? 3\" [interval]=\"field?.option?.interval ?? 5000\"\r\n [aspect]=\"field?.option?.aspect || '16 / 9'\" [label]=\"label || 'Picture'\"></vl-slideshow>\r\n} @else if (kind === 'textBlock') {\r\n<!-- a text block (2026-11-07): the caption is the text (translated like every caption), a value follows it; no\r\n label, no box - for info pages: welcome, opening hours, an about text -->\r\n<div [class]=\"'vl-text-block ' + valueStyle().classes\" [ngStyle]=\"valueStyle().style\">\r\n @if (label) {<p [class]=\"'vl-text-block__text ' + labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</p>}\r\n @if (value !== undefined && value !== null && value !== '') {<p class=\"vl-text-block__value\">{{ value }}</p>}\r\n</div>\r\n} @else if (kind === 'creditCard') {\r\n<!-- the card field has its label and the red * like every other field (it had none - user 2026-10-28) -->\r\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\r\n @if (label || required) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\r\n }\r\n <div class=\"vl-control__card\">\r\n @if (cardLayout === 'oneRow') {\r\n <div id=\"card-element\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\">\r\n <!-- a Stripe element will be inserted here -->\r\n </div>\r\n } @else {\r\n <!-- number, expiry and CVC as Stripe's three elements, in two or three rows (OFFENE-PUNKTE 103) -->\r\n <div class=\"vl-control__card-parts\" [class]=\"'vl-control__card-parts vl-control__card-parts--' + cardLayout\" data-vl-card-parts>\r\n <div id=\"card-number\" class=\"vl-control__card-part--number\" [class]=\"'vl-control__card-part--number ' + inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"number\"></div>\r\n <div id=\"card-expiry\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"expiry\"></div>\r\n <div id=\"card-cvc\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"cvc\"></div>\r\n </div>\r\n }\r\n <div id=\"card-errors\" [class]=\"creditCardError?.textContent ? 'text-red-400 m-0' : ''\"></div>\r\n </div>\r\n</div>\r\n} @else if (display) {\r\n<!-- a list (card, grid): the record's value, read only; scope.style styles the value -->\r\n@if (showLabel) {\r\n<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>\r\n}\r\n@if (kind === 'media') {\r\n<vl-media [field]=\"ruleField\" [compact]=\"true\" [property]=\"property\" [value]=\"value\"\r\n [mediaClass]=\"valueStyle().classes\" [mediaStyle]=\"valueStyle().style\"\r\n (clicked)=\"mediaClicked.emit(field?.option)\"></vl-media>\r\n} @else {\r\n<div [class]=\"'vl-control__value ' + valueStyle().classes\"\r\n [class.vl-control__value--number]=\"kind === 'number'\"\r\n [class.vl-control__value--link]=\"isLink\"\r\n [ngStyle]=\"valueStyle().style\" (click)=\"openLink()\">\r\n @switch (kind) {\r\n @case ('number') {\r\n <vl-number style=\"display:inline-block\" [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\r\n [property]=\"property\" [row]=\"numberRow\" [translations]=\"translations\"></vl-number>\r\n }\r\n @case ('password') { <vl-password [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"></vl-password> }\r\n @case ('textarea') { <vl-textarea [field]=\"ruleField\" [readonly]=\"true\" [compact]=\"compact\" [value]=\"value\"></vl-textarea> }\r\n @case ('radio') {\r\n <vl-radio [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\r\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\" [translations]=\"translations\"></vl-radio>\r\n }\r\n @case ('dropdown') {\r\n <vl-dropdown [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [items]=\"property?.data\"\r\n [translations]=\"translations\"></vl-dropdown>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"\r\n [translations]=\"translations\"></vl-switch>\r\n }\r\n @case ('checkbox') {\r\n <vl-checkbox [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"></vl-checkbox>\r\n }\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\"\r\n [translations]=\"translations\"></vl-autocomplete>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\" [combobox]=\"true\"\r\n [translations]=\"translations\"></vl-autocomplete>\r\n }\r\n @case ('date') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('time') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('datetime') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('daterange') {\r\n <vl-daterange [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [translations]=\"translations\"></vl-daterange>\r\n }\r\n @default { {{ text }} }\r\n }\r\n</div>\r\n}\r\n} @else {\r\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\r\n @if (showLabel) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\r\n }\r\n @switch (kind) {\r\n @case ('media') {\r\n <vl-media [field]=\"ruleField\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"selectionList\" [loading]=\"selectionLoading\"\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]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"selectionList\" [loading]=\"selectionLoading\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\"></vl-textbox>\r\n }\r\n }\r\n</div>\r\n}\r\n", styles: [":host{display:block;min-width:0}.vl-text-block{margin:0;color:var(--vl-color-text, inherit)}.vl-text-block__text,.vl-text-block__value{margin:0 0 .5em;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.vl-text-block__value:last-child,.vl-text-block__text:last-child{margin-bottom:0}.vl-control__value{margin:0;min-width:0;overflow-wrap:anywhere}:host(.vl-control--clamped) .vl-control__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vl-max-lines);line-clamp:var(--vl-max-lines);overflow:hidden}.vl-control__value--number{font-size:1.17em;font-weight:700}.vl-control__value--link{cursor:pointer;text-decoration:underline}.vl-control__required{color:var(--vl-color-danger, #dc2626);margin-left:2px}.vl-control__card-parts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.vl-control__card-parts--twoRows{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.vl-control__card-parts--twoRows .vl-control__card-part--number{grid-column:1 / -1}.vl-control__lock-hint{margin:6px 0 0;font-size:.85em;color:var(--vl-color-danger, #b91c1c);text-align:center}.vl-control__lock-hint--link{cursor:pointer;text-decoration:underline}.vl-control__button--locked{background:#e5e7eb!important;border-color:var(--vl-color-border, #d1d5db)!important;color:var(--vl-color-text-muted, #6b7280)!important;box-shadow:none!important;cursor:not-allowed!important;filter:none!important}\n"], dependencies: [{ kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { 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: SlideshowComponent, selector: "vl-slideshow", inputs: ["images", "interval", "aspect", "label", "placeholders"] }, { kind: "component", type: OpeningHoursComponent, selector: "vl-opening-hours", inputs: ["hours", "timeZone", "translations"] }, { kind: "component", type: MapComponent, selector: "vl-map", inputs: ["place", "translations"] }, { kind: "component", type: PriceComponent, selector: "vl-price", inputs: ["amount", "currency", "from", "translations"] }, { 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"] }, { kind: "pipe", type: DatePipe, name: "date" }] });
8270
8729
  }
8271
8730
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ControlComponent, decorators: [{
8272
8731
  type: Component,
8273
8732
  args: [{ selector: 'vl-control', standalone: true, imports: [
8733
+ NzIconModule,
8274
8734
  NgStyle,
8275
8735
  DatePipe,
8276
8736
  Autocomplete,
@@ -8279,13 +8739,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
8279
8739
  DateTimeControl,
8280
8740
  DropdownControl,
8281
8741
  MediaControl,
8742
+ SlideshowComponent, OpeningHoursComponent, MapComponent, PriceComponent,
8282
8743
  NumberControl,
8283
8744
  PasswordControl,
8284
8745
  RadioControl,
8285
8746
  SwitchControl,
8286
8747
  TextareaControl,
8287
8748
  Textbox,
8288
- ], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - new: the card field in one, two or three rows (option.cardLayout); every part carries the field's input style -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\r\n - fix: the card field (creditCard) shows its label and the red * of a required field like every other field,\r\n in the same frame (vl-control__inner): label above, the card below -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: no list of the missing fields under the button (user 2026-10-24: too many red lines) - the fields show\r\n their own messages on a click\r\n - change: every reason under a locked button\r\n - new: a locked button stays clickable (onButton: lockedClick instead of buttonClick); its hint stands under it,\r\n a link to the sign-in when the sign-in is missing\r\n - new: a red * after the label of a required field\r\n - change: a locked button is grey (vl-control__button--locked), not the layout's colour half transparent -\r\n the blue looked clickable\r\n - new: a locked button is disabled, half transparent and takes no click (needsLogin / needsValid) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - fix: the text field gets ruleField like every other building block - the data object's rules\r\n (required ...) did not count for a text field -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - fix: the building blocks get ruleField - the field with its data object's rules -->\r\n<!-- Shuaib 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 every control gets the project's translated messages (messages) (#166)\r\n - the button carries only the layout's classes and style - no Bootstrap classes, the app does not\r\n load Bootstrap -->\r\n@if (kind === 'button') {\r\n<button [attr.type]=\"buttonType\"\r\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\r\n [class]=\"buttonStyle().classes\"\r\n [ngStyle]=\"buttonStyle().style\"\r\n [attr.aria-disabled]=\"locked || null\" [class.vl-control__button--locked]=\"locked\"\r\n (click)=\"onButton($event)\">\r\n {{ label }}\r\n</button>\r\n@if (locked) {\r\n@for (hint of lockHints; track hint.reason) {\r\n@if (hint.reason === 'login' && hint.text) {\r\n<p class=\"vl-control__lock-hint vl-control__lock-hint--link\" role=\"link\" tabindex=\"0\"\r\n (click)=\"signIn.emit()\" (keydown.enter)=\"signIn.emit()\">{{ hint.text }}</p>\r\n} @else if (hint.text) {\r\n<p class=\"vl-control__lock-hint\" role=\"status\">{{ hint.text }}</p>\r\n}\r\n}\r\n}\r\n} @else if (kind === 'creditCard') {\r\n<!-- the card field has its label and the red * like every other field (it had none - user 2026-10-28) -->\r\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\r\n @if (label || required) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\r\n }\r\n <div class=\"vl-control__card\">\r\n @if (cardLayout === 'oneRow') {\r\n <div id=\"card-element\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\">\r\n <!-- a Stripe element will be inserted here -->\r\n </div>\r\n } @else {\r\n <!-- number, expiry and CVC as Stripe's three elements, in two or three rows (OFFENE-PUNKTE 103) -->\r\n <div class=\"vl-control__card-parts\" [class]=\"'vl-control__card-parts vl-control__card-parts--' + cardLayout\" data-vl-card-parts>\r\n <div id=\"card-number\" class=\"vl-control__card-part--number\" [class]=\"'vl-control__card-part--number ' + inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"number\"></div>\r\n <div id=\"card-expiry\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"expiry\"></div>\r\n <div id=\"card-cvc\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"cvc\"></div>\r\n </div>\r\n }\r\n <div id=\"card-errors\" [class]=\"creditCardError?.textContent ? 'text-red-400 m-0' : ''\"></div>\r\n </div>\r\n</div>\r\n} @else if (display) {\r\n<!-- a list (card, grid): the record's value, read only; scope.style styles the value -->\r\n@if (showLabel) {\r\n<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>\r\n}\r\n@if (kind === 'media') {\r\n<vl-media [field]=\"ruleField\" [compact]=\"true\" [property]=\"property\" [value]=\"value\"\r\n [mediaClass]=\"valueStyle().classes\" [mediaStyle]=\"valueStyle().style\"\r\n (clicked)=\"mediaClicked.emit(field?.option)\"></vl-media>\r\n} @else {\r\n<div [class]=\"'vl-control__value ' + valueStyle().classes\"\r\n [class.vl-control__value--number]=\"kind === 'number'\"\r\n [class.vl-control__value--link]=\"isLink\"\r\n [ngStyle]=\"valueStyle().style\" (click)=\"openLink()\">\r\n @switch (kind) {\r\n @case ('number') {\r\n <vl-number style=\"display:inline-block\" [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\r\n [property]=\"property\" [row]=\"numberRow\" [translations]=\"translations\"></vl-number>\r\n }\r\n @case ('password') { <vl-password [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"></vl-password> }\r\n @case ('textarea') { <vl-textarea [field]=\"ruleField\" [readonly]=\"true\" [compact]=\"compact\" [value]=\"value\"></vl-textarea> }\r\n @case ('radio') {\r\n <vl-radio [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\r\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\" [translations]=\"translations\"></vl-radio>\r\n }\r\n @case ('dropdown') {\r\n <vl-dropdown [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [items]=\"property?.data\"\r\n [translations]=\"translations\"></vl-dropdown>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"\r\n [translations]=\"translations\"></vl-switch>\r\n }\r\n @case ('checkbox') {\r\n <vl-checkbox [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"></vl-checkbox>\r\n }\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\"\r\n [translations]=\"translations\"></vl-autocomplete>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\" [combobox]=\"true\"\r\n [translations]=\"translations\"></vl-autocomplete>\r\n }\r\n @case ('date') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('time') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('datetime') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('daterange') {\r\n <vl-daterange [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [translations]=\"translations\"></vl-daterange>\r\n }\r\n @default { {{ text }} }\r\n }\r\n</div>\r\n}\r\n} @else {\r\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\r\n @if (showLabel) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\r\n }\r\n @switch (kind) {\r\n @case ('media') {\r\n <vl-media [field]=\"ruleField\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"selectionList\" [loading]=\"selectionLoading\"\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]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"selectionList\" [loading]=\"selectionLoading\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\"></vl-textbox>\r\n }\r\n }\r\n</div>\r\n}\r\n", styles: [":host{display:block;min-width:0}.vl-control__value{margin:0;min-width:0;overflow-wrap:anywhere}:host(.vl-control--clamped) .vl-control__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vl-max-lines);line-clamp:var(--vl-max-lines);overflow:hidden}.vl-control__value--number{font-size:1.17em;font-weight:700}.vl-control__value--link{cursor:pointer;text-decoration:underline}.vl-control__required{color:#dc2626;margin-left:2px}.vl-control__card-parts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.vl-control__card-parts--twoRows{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.vl-control__card-parts--twoRows .vl-control__card-part--number{grid-column:1 / -1}.vl-control__lock-hint{margin:6px 0 0;font-size:.85em;color:#b91c1c;text-align:center}.vl-control__lock-hint--link{cursor:pointer;text-decoration:underline}.vl-control__button--locked{background:#e5e7eb!important;border-color:#d1d5db!important;color:#6b7280!important;box-shadow:none!important;cursor:not-allowed!important;filter:none!important}\n"] }]
8749
+ ], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\r\n - new: kind price - a price as data (213/36)\r\n - new: kind map - the place on a map, loaded after a tap (point 213 worklist 42)\r\n - new: kind openingHours - the week's times and whether it is open now -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\r\n - change: every button with an icon shows it (buttonIcon), not only a contact button -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\r\n - new: textBlock - caption and value as a paragraph, no label, no box (point 213 worklist 15a) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - new: the card field in one, two or three rows (option.cardLayout); every part carries the field's input style -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\r\n - fix: the card field (creditCard) shows its label and the red * of a required field like every other field,\r\n in the same frame (vl-control__inner): label above, the card below -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: no list of the missing fields under the button (user 2026-10-24: too many red lines) - the fields show\r\n their own messages on a click\r\n - change: every reason under a locked button\r\n - new: a locked button stays clickable (onButton: lockedClick instead of buttonClick); its hint stands under it,\r\n a link to the sign-in when the sign-in is missing\r\n - new: a red * after the label of a required field\r\n - change: a locked button is grey (vl-control__button--locked), not the layout's colour half transparent -\r\n the blue looked clickable\r\n - new: a locked button is disabled, half transparent and takes no click (needsLogin / needsValid) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - fix: the text field gets ruleField like every other building block - the data object's rules\r\n (required ...) did not count for a text field -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - fix: the building blocks get ruleField - the field with its data object's rules -->\r\n<!-- Shuaib 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 every control gets the project's translated messages (messages) (#166)\r\n - the button carries only the layout's classes and style - no Bootstrap classes, the app does not\r\n load Bootstrap -->\r\n@if (kind === 'button') {\r\n<button [attr.type]=\"buttonType\"\r\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\r\n [class]=\"buttonStyle().classes\"\r\n [ngStyle]=\"buttonStyle().style\"\r\n [attr.aria-disabled]=\"locked || null\" [class.vl-control__button--locked]=\"locked\"\r\n [attr.data-vl-contact]=\"contactKind || null\"\r\n (click)=\"onButton($event)\">\r\n @if (buttonIcon) {<span nz-icon [nzType]=\"buttonIcon\" nzTheme=\"outline\" aria-hidden=\"true\"></span>}\r\n {{ label }}\r\n</button>\r\n@if (locked) {\r\n@for (hint of lockHints; track hint.reason) {\r\n@if (hint.reason === 'login' && hint.text) {\r\n<p class=\"vl-control__lock-hint vl-control__lock-hint--link\" role=\"link\" tabindex=\"0\"\r\n (click)=\"signIn.emit()\" (keydown.enter)=\"signIn.emit()\">{{ hint.text }}</p>\r\n} @else if (hint.text) {\r\n<p class=\"vl-control__lock-hint\" role=\"status\">{{ hint.text }}</p>\r\n}\r\n}\r\n}\r\n} @else if (kind === 'openingHours') {\r\n<!-- opening hours as data (2026-11-09): option.hours [{ day, from, to }], option.timeZone - status and week -->\r\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\r\n<vl-opening-hours [hours]=\"field?.option?.hours || []\" [timeZone]=\"field?.option?.timeZone || 'Europe/Berlin'\"\r\n [translations]=\"translations\"></vl-opening-hours>\r\n} @else if (kind === 'price') {\r\n<!-- a price as data (2026-11-09): option.amount, option.currency, option.from - written in the app's language -->\r\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\r\n<vl-price [amount]=\"field?.option?.amount\" [currency]=\"field?.option?.currency || 'EUR'\" [from]=\"field?.option?.from\" [translations]=\"translations\"></vl-price>\r\n} @else if (kind === 'map') {\r\n<!-- the place on a map (2026-11-09): option.lat, option.lon, option.address, option.zoom - loads after a tap -->\r\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\r\n<vl-map [place]=\"field?.option\" [translations]=\"translations\"></vl-map>\r\n} @else if (kind === 'slideshow') {\r\n<!-- a slideshow (2026-11-07): the media field's pictures change by themselves; a caption stays above it -->\r\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\r\n<vl-slideshow [images]=\"slideshowImages()\" [placeholders]=\"field?.option?.placeholders ?? 3\" [interval]=\"field?.option?.interval ?? 5000\"\r\n [aspect]=\"field?.option?.aspect || '16 / 9'\" [label]=\"label || 'Picture'\"></vl-slideshow>\r\n} @else if (kind === 'textBlock') {\r\n<!-- a text block (2026-11-07): the caption is the text (translated like every caption), a value follows it; no\r\n label, no box - for info pages: welcome, opening hours, an about text -->\r\n<div [class]=\"'vl-text-block ' + valueStyle().classes\" [ngStyle]=\"valueStyle().style\">\r\n @if (label) {<p [class]=\"'vl-text-block__text ' + labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</p>}\r\n @if (value !== undefined && value !== null && value !== '') {<p class=\"vl-text-block__value\">{{ value }}</p>}\r\n</div>\r\n} @else if (kind === 'creditCard') {\r\n<!-- the card field has its label and the red * like every other field (it had none - user 2026-10-28) -->\r\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\r\n @if (label || required) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\r\n }\r\n <div class=\"vl-control__card\">\r\n @if (cardLayout === 'oneRow') {\r\n <div id=\"card-element\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\">\r\n <!-- a Stripe element will be inserted here -->\r\n </div>\r\n } @else {\r\n <!-- number, expiry and CVC as Stripe's three elements, in two or three rows (OFFENE-PUNKTE 103) -->\r\n <div class=\"vl-control__card-parts\" [class]=\"'vl-control__card-parts vl-control__card-parts--' + cardLayout\" data-vl-card-parts>\r\n <div id=\"card-number\" class=\"vl-control__card-part--number\" [class]=\"'vl-control__card-part--number ' + inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"number\"></div>\r\n <div id=\"card-expiry\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"expiry\"></div>\r\n <div id=\"card-cvc\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"cvc\"></div>\r\n </div>\r\n }\r\n <div id=\"card-errors\" [class]=\"creditCardError?.textContent ? 'text-red-400 m-0' : ''\"></div>\r\n </div>\r\n</div>\r\n} @else if (display) {\r\n<!-- a list (card, grid): the record's value, read only; scope.style styles the value -->\r\n@if (showLabel) {\r\n<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>\r\n}\r\n@if (kind === 'media') {\r\n<vl-media [field]=\"ruleField\" [compact]=\"true\" [property]=\"property\" [value]=\"value\"\r\n [mediaClass]=\"valueStyle().classes\" [mediaStyle]=\"valueStyle().style\"\r\n (clicked)=\"mediaClicked.emit(field?.option)\"></vl-media>\r\n} @else {\r\n<div [class]=\"'vl-control__value ' + valueStyle().classes\"\r\n [class.vl-control__value--number]=\"kind === 'number'\"\r\n [class.vl-control__value--link]=\"isLink\"\r\n [ngStyle]=\"valueStyle().style\" (click)=\"openLink()\">\r\n @switch (kind) {\r\n @case ('number') {\r\n <vl-number style=\"display:inline-block\" [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\r\n [property]=\"property\" [row]=\"numberRow\" [translations]=\"translations\"></vl-number>\r\n }\r\n @case ('password') { <vl-password [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"></vl-password> }\r\n @case ('textarea') { <vl-textarea [field]=\"ruleField\" [readonly]=\"true\" [compact]=\"compact\" [value]=\"value\"></vl-textarea> }\r\n @case ('radio') {\r\n <vl-radio [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\r\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\" [translations]=\"translations\"></vl-radio>\r\n }\r\n @case ('dropdown') {\r\n <vl-dropdown [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [items]=\"property?.data\"\r\n [translations]=\"translations\"></vl-dropdown>\r\n }\r\n @case ('switch') {\r\n <vl-switch [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"\r\n [translations]=\"translations\"></vl-switch>\r\n }\r\n @case ('checkbox') {\r\n <vl-checkbox [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"></vl-checkbox>\r\n }\r\n @case ('autocomplete') {\r\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\"\r\n [translations]=\"translations\"></vl-autocomplete>\r\n }\r\n @case ('combobox') {\r\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\" [combobox]=\"true\"\r\n [translations]=\"translations\"></vl-autocomplete>\r\n }\r\n @case ('date') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('time') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('datetime') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\r\n @case ('daterange') {\r\n <vl-daterange [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [translations]=\"translations\"></vl-daterange>\r\n }\r\n @default { {{ text }} }\r\n }\r\n</div>\r\n}\r\n} @else {\r\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\r\n @if (showLabel) {\r\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\r\n }\r\n @switch (kind) {\r\n @case ('media') {\r\n <vl-media [field]=\"ruleField\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\r\n }\r\n @case ('password') {\r\n <vl-password [field]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"selectionList\" [loading]=\"selectionLoading\"\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]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [list]=\"selectionList\" [loading]=\"selectionLoading\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [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]=\"ruleField\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\r\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\"></vl-textbox>\r\n }\r\n }\r\n</div>\r\n}\r\n", styles: [":host{display:block;min-width:0}.vl-text-block{margin:0;color:var(--vl-color-text, inherit)}.vl-text-block__text,.vl-text-block__value{margin:0 0 .5em;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.vl-text-block__value:last-child,.vl-text-block__text:last-child{margin-bottom:0}.vl-control__value{margin:0;min-width:0;overflow-wrap:anywhere}:host(.vl-control--clamped) .vl-control__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vl-max-lines);line-clamp:var(--vl-max-lines);overflow:hidden}.vl-control__value--number{font-size:1.17em;font-weight:700}.vl-control__value--link{cursor:pointer;text-decoration:underline}.vl-control__required{color:var(--vl-color-danger, #dc2626);margin-left:2px}.vl-control__card-parts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.vl-control__card-parts--twoRows{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.vl-control__card-parts--twoRows .vl-control__card-part--number{grid-column:1 / -1}.vl-control__lock-hint{margin:6px 0 0;font-size:.85em;color:var(--vl-color-danger, #b91c1c);text-align:center}.vl-control__lock-hint--link{cursor:pointer;text-decoration:underline}.vl-control__button--locked{background:#e5e7eb!important;border-color:var(--vl-color-border, #d1d5db)!important;color:var(--vl-color-text-muted, #6b7280)!important;box-shadow:none!important;cursor:not-allowed!important;filter:none!important}\n"] }]
8289
8750
  }], propDecorators: { field: [{
8290
8751
  type: Input
8291
8752
  }], propertySchema: [{
@@ -8594,7 +9055,7 @@ class PaginationComponent {
8594
9055
  this.onGoToPage.emit(page);
8595
9056
  }
8596
9057
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: PaginationComponent, deps: [{ token: i1$2.Platform }], target: i0.ɵɵFactoryTarget.Component });
8597
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: PaginationComponent, isStandalone: true, selector: "vl-pagination", inputs: { itemInfo: "itemInfo", pageSize: "pageSize", currentPage: "currentPage", selectedLanguageInfo: "selectedLanguageInfo", pages: "pages" }, outputs: { pageSizeChange: "pageSizeChange", onGoToPage: "onGoToPage" }, host: { listeners: { "window:resize": "onWindowResize()" } }, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - change: the page items carry classes (vl-page, --active, --disabled, --step) so the app's style.css can style them;\r\n the size choice offers the size in use too (sizeOptions) - it showed empty when the backend paged by 6 -->\r\n<div [ngStyle]=\"paginationStyle\" [class]=\"paginationClasses\">\r\n\r\n <ul [ngStyle]=\"listStyle\" [style.z-index]=\"'auto'\">\r\n\r\n <!-- Existing desktop pagination: unchanged -->\r\n <ng-container *ngIf=\"!isMobile\">\r\n\r\n <li (click)=\"invokeGoToPage(0)\" [ngStyle]=\"getPageItemStyle(undefined, currentPage === 0)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"currentPage === 0\">\r\n \u00AB\u00AB\r\n </li>\r\n\r\n <li (click)=\"invokeGoToPage(currentPage - 1)\" [ngStyle]=\"getPageItemStyle(undefined, currentPage === 0)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"currentPage === 0\">\r\n \u00AB\r\n </li>\r\n\r\n <li *ngFor=\"let page of pages\" (click)=\"invokeGoToPage(page)\" [ngStyle]=\"getPageItemStyle(page)\" class=\"vl-page\" [class.vl-page--active]=\"page === currentPage\">\r\n {{ page + 1 }}\r\n </li>\r\n\r\n <li (click)=\"invokeGoToPage(currentPage + 1)\" [ngStyle]=\"getPageItemStyle(undefined, currentPage === pages.length - 1)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"currentPage === pages.length - 1\">\r\n \u00BB\r\n </li>\r\n\r\n <li (click)=\"invokeGoToPage(pages.length - 1)\" [ngStyle]=\"getPageItemStyle(undefined, currentPage === pages.length - 1)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"currentPage === pages.length - 1\">\r\n \u00BB\u00BB\r\n </li>\r\n\r\n </ng-container>\r\n\r\n <!-- Compact mobile pagination -->\r\n <ng-container *ngIf=\"isMobile\">\r\n\r\n <!-- First -->\r\n <li (click)=\"invokeGoToPage(0)\" [ngStyle]=\"getPageItemStyle(undefined, isFirstPage)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"isFirstPage\">\r\n \u00AB\u00AB\r\n </li>\r\n\r\n <!-- Previous -->\r\n <li (click)=\"invokeGoToPage(currentPage - 1)\" [ngStyle]=\"getPageItemStyle(undefined, isFirstPage)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"isFirstPage\">\r\n \u00AB\r\n </li>\r\n\r\n <!-- Current page / total pages -->\r\n <li [ngStyle]=\"pageSummaryStyle\" class=\"vl-page vl-page--summary\">\r\n {{ currentPage + 1 }} / {{ pages.length }}\r\n </li>\r\n\r\n <!-- Next -->\r\n <li (click)=\"invokeGoToPage(currentPage + 1)\" [ngStyle]=\"getPageItemStyle(undefined, isLastPage)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"isLastPage\">\r\n \u00BB\r\n </li>\r\n\r\n <!-- Last -->\r\n <li (click)=\"invokeGoToPage(pages.length - 1)\" [ngStyle]=\"getPageItemStyle(undefined, isLastPage)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"isLastPage\">\r\n \u00BB\u00BB\r\n </li>\r\n\r\n </ng-container>\r\n\r\n </ul>\r\n\r\n <div *ngIf=\"itemInfo?.layoutSchema?.pagination?.pageSize\" [ngStyle]=\"sizeControlStyle\">\r\n <label for=\"pageSize\" [ngStyle]=\"labelStyle\">\r\n {{ getPaginationCaption() }}\r\n </label>\r\n\r\n <select id=\"pageSize\" [(ngModel)]=\"pageSize\" (change)=\"invokeOnPageSizeChange(pageSize)\"\r\n [ngStyle]=\"selectStyle\">\r\n <option *ngFor=\"let size of sizeOptions()\" [value]=\"size\">\r\n {{ size }}\r\n </option>\r\n </select>\r\n </div>\r\n\r\n</div>", styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}\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.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: PlatformModule }] });
9058
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: PaginationComponent, isStandalone: true, selector: "vl-pagination", inputs: { itemInfo: "itemInfo", pageSize: "pageSize", currentPage: "currentPage", selectedLanguageInfo: "selectedLanguageInfo", pages: "pages" }, outputs: { pageSizeChange: "pageSizeChange", onGoToPage: "onGoToPage" }, host: { listeners: { "window:resize": "onWindowResize()" } }, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - change: the page items carry classes (vl-page, --active, --disabled, --step) so the app's style.css can style them;\r\n the size choice offers the size in use too (sizeOptions) - it showed empty when the backend paged by 6 -->\r\n<div [ngStyle]=\"paginationStyle\" [class]=\"paginationClasses\">\r\n\r\n <ul [ngStyle]=\"listStyle\" [style.z-index]=\"'auto'\">\r\n\r\n <!-- Existing desktop pagination: unchanged -->\r\n <ng-container *ngIf=\"!isMobile\">\r\n\r\n <li (click)=\"invokeGoToPage(0)\" [ngStyle]=\"getPageItemStyle(undefined, currentPage === 0)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"currentPage === 0\">\r\n \u00AB\u00AB\r\n </li>\r\n\r\n <li (click)=\"invokeGoToPage(currentPage - 1)\" [ngStyle]=\"getPageItemStyle(undefined, currentPage === 0)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"currentPage === 0\">\r\n \u00AB\r\n </li>\r\n\r\n <li *ngFor=\"let page of pages\" (click)=\"invokeGoToPage(page)\" [ngStyle]=\"getPageItemStyle(page)\" class=\"vl-page\" [class.vl-page--active]=\"page === currentPage\">\r\n {{ page + 1 }}\r\n </li>\r\n\r\n <li (click)=\"invokeGoToPage(currentPage + 1)\" [ngStyle]=\"getPageItemStyle(undefined, currentPage === pages.length - 1)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"currentPage === pages.length - 1\">\r\n \u00BB\r\n </li>\r\n\r\n <li (click)=\"invokeGoToPage(pages.length - 1)\" [ngStyle]=\"getPageItemStyle(undefined, currentPage === pages.length - 1)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"currentPage === pages.length - 1\">\r\n \u00BB\u00BB\r\n </li>\r\n\r\n </ng-container>\r\n\r\n <!-- Compact mobile pagination -->\r\n <ng-container *ngIf=\"isMobile\">\r\n\r\n <!-- First -->\r\n <li (click)=\"invokeGoToPage(0)\" [ngStyle]=\"getPageItemStyle(undefined, isFirstPage)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"isFirstPage\">\r\n \u00AB\u00AB\r\n </li>\r\n\r\n <!-- Previous -->\r\n <li (click)=\"invokeGoToPage(currentPage - 1)\" [ngStyle]=\"getPageItemStyle(undefined, isFirstPage)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"isFirstPage\">\r\n \u00AB\r\n </li>\r\n\r\n <!-- Current page / total pages -->\r\n <li [ngStyle]=\"pageSummaryStyle\" class=\"vl-page vl-page--summary\">\r\n {{ currentPage + 1 }} / {{ pages.length }}\r\n </li>\r\n\r\n <!-- Next -->\r\n <li (click)=\"invokeGoToPage(currentPage + 1)\" [ngStyle]=\"getPageItemStyle(undefined, isLastPage)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"isLastPage\">\r\n \u00BB\r\n </li>\r\n\r\n <!-- Last -->\r\n <li (click)=\"invokeGoToPage(pages.length - 1)\" [ngStyle]=\"getPageItemStyle(undefined, isLastPage)\" class=\"vl-page vl-page--step\" [class.vl-page--disabled]=\"isLastPage\">\r\n \u00BB\u00BB\r\n </li>\r\n\r\n </ng-container>\r\n\r\n </ul>\r\n\r\n <div *ngIf=\"itemInfo?.layoutSchema?.pagination?.pageSize\" [ngStyle]=\"sizeControlStyle\">\r\n <label for=\"pageSize\" [ngStyle]=\"labelStyle\">\r\n {{ getPaginationCaption() }}\r\n </label>\r\n\r\n <select id=\"pageSize\" [(ngModel)]=\"pageSize\" (change)=\"invokeOnPageSizeChange(pageSize)\"\r\n [ngStyle]=\"selectStyle\">\r\n <option *ngFor=\"let size of sizeOptions()\" [value]=\"size\">\r\n {{ size }}\r\n </option>\r\n </select>\r\n </div>\r\n\r\n</div>", styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: PlatformModule }] });
8598
9059
  }
8599
9060
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: PaginationComponent, decorators: [{
8600
9061
  type: Component,
@@ -9803,7 +10264,7 @@ class CardComponent {
9803
10264
  return resolveCustomKeyboardType(field?.option, property);
9804
10265
  }
9805
10266
  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 });
9806
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CardComponent, isStandalone: true, selector: "vl-card", inputs: { itemInfo: "itemInfo", pageData: "pageData", currentPage: "currentPage", pageSize: "pageSize", selectedLanguageInfo: "selectedLanguageInfo", mobileDisplay: "mobileDisplay", scrollPagination: "scrollPagination", pages: "pages", paginationMode: "paginationMode", paginationLoading: "paginationLoading", design: "design" }, outputs: { cardButtonClick: "cardButtonClick", cardHeaderButtonClick: "cardHeaderButtonClick", linkDetails: "linkDetails", imageDetails: "imageDetails", onPageSizeChange: "onPageSizeChange", onPageChange: "onPageChange", designChange: "designChange" }, host: { listeners: { "window:resize": "onWindowResize()" }, properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, viewQueries: [{ propertyName: "scrollPaginationSentinel", first: true, predicate: ["scrollPaginationSentinel"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: an element's handles in the order pencil, plus, bin (user) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\r\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\r\n the buttons there keep their own markup (icon or caption) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\r\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\r\n Mouse pad showed \"2 / 5\" while scrolling) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: every class of a style is set (classNames), not only the first -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\r\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\r\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\r\n cardFooter) that the app and the canvas share; the app draws the same as before -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: caption and date pattern from the layout - a data object holds names and types only -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\r\n - change: the loader also shows while the page's PageData loads or sends (A4)\r\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\r\n<!-- Shuaib 2026-10-20\r\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\r\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\r\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\r\n an input writing into the property schema; a text, date or time that was not locked showed only\r\n its label; an autocomplete showed only with a currency format; the period showed nothing\r\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\r\n<!-- 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 the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\r\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\r\n their own blocks (date filter, buttons). -->\r\n\r\n @if (design) {\r\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\r\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\r\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\r\n settings -->\r\n <div class=\"vl-card-runtime vl-d-root\">\r\n <div class=\"vl-d-container-bar\">\r\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\r\n (act)=\"containerAction($event)\"></vl-design-bar>\r\n </div>\r\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\r\n <div class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\r\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n @if (itemInfo?.header?.elements?.length) {\r\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\r\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\r\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\r\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\r\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\r\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\r\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\r\n @if (!itemInfo?.layoutSchema?.cards?.length) {\r\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(null)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else {\r\n <div>\r\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\r\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\r\n <div>{{ dt.emptyCardText }}</div>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\r\n @for (record of designRecords; track $index; let k = $index) {\r\n <div class=\"card-grid-item vl-d-item\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\r\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\r\n @if (k === 0 && designPage === 0) {\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\r\n [id]=\"designer.listId()\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(null)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\r\n <div [attr.data-vl-design-element]=\"li\"\r\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\r\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\r\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(li, null)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\r\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\r\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\r\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\r\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\r\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\r\n [id]=\"designer.innerListId(li)\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(li)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n @for (inner of layout.elements || []; track $index; let ii = $index) {\r\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\r\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(ii, li)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\r\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\r\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\r\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\r\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\r\n </ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <!-- the other sample cards are drawn like the app's -->\r\n <div class=\"vl-d-body\">\r\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n }\r\n @if (itemInfo?.footer?.elements && designAll.length) {\r\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\r\n }\r\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\r\n <div class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\r\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <!-- Loader Spinner -->\r\n \r\n <div *ngIf=\"isLoading || pageData?.loading\" 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 !scrollPagination\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 [attr.data-vl-path]=\"vlFieldPath(element)\"\r\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \r\n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\r\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\r\n </div>\r\n </div>\r\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\r\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.layoutSchema?.style\r\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\r\n <div *ngFor=\"let record of displayedRecords; let k = index\"\r\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\r\n [class.vl-record--send-error]=\"!!record?._vlSendError\">\r\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\r\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\r\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\r\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\r\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\r\n </ng-container>\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\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\r\n </div>\r\n }\r\n </div>\r\n }\r\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\r\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\r\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\r\n @if (element?.scope?.reference) {\r\n <div [ngClass]=\"[element?.option?.visible ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\r\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\r\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\r\n [propertySchema]=\"itemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [list]=\"remoteData[element.scope.reference]\"\r\n (linkClicked)=\"showLinkDetails(element.option, record)\"\r\n (mediaClicked)=\"showImageDetails(element.option, record)\">\r\n </vl-control>\r\n </div>\r\n } @else if (inner) {\r\n <div>\r\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\"\r\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\r\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\r\n <span class=\"schema-btn-content\">\r\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\r\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\r\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\r\n </span>\r\n </button>\r\n </div>\r\n } @else {\r\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\r\n <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 (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\r\n <ng-container *ngIf=\"!element.caption; else textContent\">\r\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\r\n </button>\r\n </div>\r\n }\r\n </ng-template>\r\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\r\n <ng-template #headerElement let-element=\"element\">\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]=\"classNames(element.label?.style)\">\r\n {{ element.label.caption | vlDesignText:designTranslations }}\r\n </span>\r\n </div>\r\n \r\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\r\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\r\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\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 | vlDesignText:designTranslations }}</ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\r\n <ng-template #cardBody let-record=\"record\">\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"'vl-card-body ' + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\r\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\r\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [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 @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\r\n <div class=\"card-horizontal-layout\"\r\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\r\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\r\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n } @else {\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\r\n </ng-container>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- the card page's footer -->\r\n <ng-template #cardFooter>\r\n <div [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 <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\r\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\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 | vlDesignText:designTranslations }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </span>\r\n </div>\r\n </ng-template>\r\n ", styles: [".vl-cards--aligned>.card-grid-item{display:flex;flex-direction:column}.vl-cards--aligned>.card-grid-item>.vl-card-body{flex:1 1 auto;display:flex;flex-direction:column}.vl-cards--aligned .vl-card-body>:not(.card-layout-item--action)+.card-layout-item--action{margin-top:auto}: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-grid-item>div{margin-left:auto;margin-right:auto}.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}.vl-d-body.vl-d-hidden .hidden{display:revert!important}.vl-d-card-empty{min-height:160px;flex-direction:column;gap:4px}.vl-d-card-empty__icon{font-size:28px;color:#94a3b8;margin-bottom:6px}.vl-d-card-empty__title{font-weight:600;color:#334155}.card-grid-item.vl-d-item{padding-top:4px}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "component", type: ControlComponent, selector: "vl-control", inputs: ["field", "propertySchema", "selectedLanguageInfo", "errorMessages", "saveTried", "container", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { 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: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i11.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i12.ɵ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: i13.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzDatePickerModule }, { 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: i14.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "component", type: DropMarkerComponent, selector: "vl-drop-marker", inputs: ["type", "text"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }] });
10267
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CardComponent, isStandalone: true, selector: "vl-card", inputs: { itemInfo: "itemInfo", pageData: "pageData", currentPage: "currentPage", pageSize: "pageSize", selectedLanguageInfo: "selectedLanguageInfo", mobileDisplay: "mobileDisplay", scrollPagination: "scrollPagination", pages: "pages", paginationMode: "paginationMode", paginationLoading: "paginationLoading", design: "design" }, outputs: { cardButtonClick: "cardButtonClick", cardHeaderButtonClick: "cardHeaderButtonClick", linkDetails: "linkDetails", imageDetails: "imageDetails", onPageSizeChange: "onPageSizeChange", onPageChange: "onPageChange", designChange: "designChange" }, host: { listeners: { "window:resize": "onWindowResize()" }, properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, viewQueries: [{ propertyName: "scrollPaginationSentinel", first: true, predicate: ["scrollPaginationSentinel"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: an element's handles in the order pencil, plus, bin (user) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\r\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\r\n the buttons there keep their own markup (icon or caption) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\r\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\r\n Mouse pad showed \"2 / 5\" while scrolling) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: every class of a style is set (classNames), not only the first -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\r\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\r\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\r\n cardFooter) that the app and the canvas share; the app draws the same as before -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: caption and date pattern from the layout - a data object holds names and types only -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\r\n - change: the loader also shows while the page's PageData loads or sends (A4)\r\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\r\n<!-- Shuaib 2026-10-20\r\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\r\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\r\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\r\n an input writing into the property schema; a text, date or time that was not locked showed only\r\n its label; an autocomplete showed only with a currency format; the period showed nothing\r\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\r\n<!-- 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 the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\r\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\r\n their own blocks (date filter, buttons). -->\r\n\r\n @if (design) {\r\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\r\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\r\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\r\n settings -->\r\n <div class=\"vl-card-runtime vl-d-root\">\r\n <div class=\"vl-d-container-bar\">\r\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\r\n (act)=\"containerAction($event)\"></vl-design-bar>\r\n </div>\r\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\r\n <div class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\r\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n @if (itemInfo?.header?.elements?.length) {\r\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\r\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\r\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\r\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\r\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\r\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\r\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\r\n @if (!itemInfo?.layoutSchema?.cards?.length) {\r\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(null)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else {\r\n <div>\r\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\r\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\r\n <div>{{ dt.emptyCardText }}</div>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\r\n @for (record of designRecords; track $index; let k = $index) {\r\n <div class=\"card-grid-item vl-d-item\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\r\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\r\n @if (k === 0 && designPage === 0) {\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\r\n [id]=\"designer.listId()\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(null)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\r\n <div [attr.data-vl-design-element]=\"li\"\r\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\r\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\r\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(li, null)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\r\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\r\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\r\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\r\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\r\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\r\n [id]=\"designer.innerListId(li)\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(li)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n @for (inner of layout.elements || []; track $index; let ii = $index) {\r\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\r\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(ii, li)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\r\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\r\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\r\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\r\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\r\n </ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <!-- the other sample cards are drawn like the app's -->\r\n <div class=\"vl-d-body\">\r\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n }\r\n @if (itemInfo?.footer?.elements && designAll.length) {\r\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\r\n }\r\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\r\n <div class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\r\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <!-- Loader Spinner -->\r\n \r\n <div *ngIf=\"isLoading || pageData?.loading\" 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 !scrollPagination\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 [attr.data-vl-path]=\"vlFieldPath(element)\"\r\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \r\n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\r\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\r\n </div>\r\n </div>\r\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\r\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.layoutSchema?.style\r\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\r\n <div *ngFor=\"let record of displayedRecords; let k = index\"\r\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\r\n [class.vl-record--send-error]=\"!!record?._vlSendError\">\r\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\r\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\r\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\r\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\r\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\r\n </ng-container>\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\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\r\n </div>\r\n }\r\n </div>\r\n }\r\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\r\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\r\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\r\n @if (element?.scope?.reference) {\r\n <div [ngClass]=\"[element?.option?.visible ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\r\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\r\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\r\n [propertySchema]=\"itemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [list]=\"remoteData[element.scope.reference]\"\r\n (linkClicked)=\"showLinkDetails(element.option, record)\"\r\n (mediaClicked)=\"showImageDetails(element.option, record)\">\r\n </vl-control>\r\n </div>\r\n } @else if (inner) {\r\n <div>\r\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\"\r\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\r\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\r\n <span class=\"schema-btn-content\">\r\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\r\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\r\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\r\n </span>\r\n </button>\r\n </div>\r\n } @else {\r\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\r\n <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 (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\r\n <ng-container *ngIf=\"!element.caption; else textContent\">\r\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\r\n </button>\r\n </div>\r\n }\r\n </ng-template>\r\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\r\n <ng-template #headerElement let-element=\"element\">\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]=\"classNames(element.label?.style)\">\r\n {{ element.label.caption | vlDesignText:designTranslations }}\r\n </span>\r\n </div>\r\n \r\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\r\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\r\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\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 | vlDesignText:designTranslations }}</ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\r\n <ng-template #cardBody let-record=\"record\">\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"'vl-card-body ' + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\r\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\r\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [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 @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\r\n <div class=\"card-horizontal-layout\"\r\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\r\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\r\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n } @else {\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\r\n </ng-container>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- the card page's footer -->\r\n <ng-template #cardFooter>\r\n <div [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 <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\r\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\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 | vlDesignText:designTranslations }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </span>\r\n </div>\r\n </ng-template>\r\n ", styles: [".vl-cards--aligned>.card-grid-item{display:flex;flex-direction:column}.vl-cards--aligned>.card-grid-item>.vl-card-body{flex:1 1 auto;display:flex;flex-direction:column}.vl-cards--aligned .vl-card-body>:not(.card-layout-item--action)+.card-layout-item--action{margin-top:auto}: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-grid-item>div{margin-left:auto;margin-right:auto}.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}.vl-d-body.vl-d-hidden .hidden{display:revert!important}.vl-d-card-empty{min-height:160px;flex-direction:column;gap:4px}.vl-d-card-empty__icon{font-size:28px;color:var(--vl-color-text-muted, #94a3b8);margin-bottom:6px}.vl-d-card-empty__title{font-weight:600;color:var(--vl-color-text, #334155)}.card-grid-item.vl-d-item{padding-top:4px}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "component", type: ControlComponent, selector: "vl-control", inputs: ["field", "propertySchema", "selectedLanguageInfo", "errorMessages", "saveTried", "container", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i11.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i12.ɵ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: i13.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzDatePickerModule }, { 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: i14.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "component", type: DropMarkerComponent, selector: "vl-drop-marker", inputs: ["type", "text"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }] });
9807
10268
  }
9808
10269
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CardComponent, decorators: [{
9809
10270
  type: Component,
@@ -9822,7 +10283,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
9822
10283
  DragDropModule,
9823
10284
  DesignBarComponent,
9824
10285
  DropMarkerComponent,
9825
- ], standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: an element's handles in the order pencil, plus, bin (user) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\r\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\r\n the buttons there keep their own markup (icon or caption) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\r\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\r\n Mouse pad showed \"2 / 5\" while scrolling) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: every class of a style is set (classNames), not only the first -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\r\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\r\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\r\n cardFooter) that the app and the canvas share; the app draws the same as before -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: caption and date pattern from the layout - a data object holds names and types only -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\r\n - change: the loader also shows while the page's PageData loads or sends (A4)\r\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\r\n<!-- Shuaib 2026-10-20\r\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\r\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\r\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\r\n an input writing into the property schema; a text, date or time that was not locked showed only\r\n its label; an autocomplete showed only with a currency format; the period showed nothing\r\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\r\n<!-- 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 the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\r\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\r\n their own blocks (date filter, buttons). -->\r\n\r\n @if (design) {\r\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\r\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\r\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\r\n settings -->\r\n <div class=\"vl-card-runtime vl-d-root\">\r\n <div class=\"vl-d-container-bar\">\r\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\r\n (act)=\"containerAction($event)\"></vl-design-bar>\r\n </div>\r\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\r\n <div class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\r\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n @if (itemInfo?.header?.elements?.length) {\r\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\r\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\r\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\r\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\r\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\r\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\r\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\r\n @if (!itemInfo?.layoutSchema?.cards?.length) {\r\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(null)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else {\r\n <div>\r\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\r\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\r\n <div>{{ dt.emptyCardText }}</div>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\r\n @for (record of designRecords; track $index; let k = $index) {\r\n <div class=\"card-grid-item vl-d-item\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\r\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\r\n @if (k === 0 && designPage === 0) {\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\r\n [id]=\"designer.listId()\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(null)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\r\n <div [attr.data-vl-design-element]=\"li\"\r\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\r\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\r\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(li, null)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\r\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\r\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\r\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\r\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\r\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\r\n [id]=\"designer.innerListId(li)\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(li)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n @for (inner of layout.elements || []; track $index; let ii = $index) {\r\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\r\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(ii, li)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\r\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\r\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\r\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\r\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\r\n </ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <!-- the other sample cards are drawn like the app's -->\r\n <div class=\"vl-d-body\">\r\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n }\r\n @if (itemInfo?.footer?.elements && designAll.length) {\r\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\r\n }\r\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\r\n <div class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\r\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <!-- Loader Spinner -->\r\n \r\n <div *ngIf=\"isLoading || pageData?.loading\" 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 !scrollPagination\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 [attr.data-vl-path]=\"vlFieldPath(element)\"\r\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \r\n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\r\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\r\n </div>\r\n </div>\r\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\r\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.layoutSchema?.style\r\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\r\n <div *ngFor=\"let record of displayedRecords; let k = index\"\r\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\r\n [class.vl-record--send-error]=\"!!record?._vlSendError\">\r\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\r\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\r\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\r\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\r\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\r\n </ng-container>\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\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\r\n </div>\r\n }\r\n </div>\r\n }\r\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\r\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\r\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\r\n @if (element?.scope?.reference) {\r\n <div [ngClass]=\"[element?.option?.visible ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\r\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\r\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\r\n [propertySchema]=\"itemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [list]=\"remoteData[element.scope.reference]\"\r\n (linkClicked)=\"showLinkDetails(element.option, record)\"\r\n (mediaClicked)=\"showImageDetails(element.option, record)\">\r\n </vl-control>\r\n </div>\r\n } @else if (inner) {\r\n <div>\r\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\"\r\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\r\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\r\n <span class=\"schema-btn-content\">\r\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\r\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\r\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\r\n </span>\r\n </button>\r\n </div>\r\n } @else {\r\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\r\n <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 (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\r\n <ng-container *ngIf=\"!element.caption; else textContent\">\r\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\r\n </button>\r\n </div>\r\n }\r\n </ng-template>\r\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\r\n <ng-template #headerElement let-element=\"element\">\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]=\"classNames(element.label?.style)\">\r\n {{ element.label.caption | vlDesignText:designTranslations }}\r\n </span>\r\n </div>\r\n \r\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\r\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\r\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\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 | vlDesignText:designTranslations }}</ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\r\n <ng-template #cardBody let-record=\"record\">\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"'vl-card-body ' + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\r\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\r\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [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 @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\r\n <div class=\"card-horizontal-layout\"\r\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\r\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\r\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n } @else {\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\r\n </ng-container>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- the card page's footer -->\r\n <ng-template #cardFooter>\r\n <div [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 <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\r\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\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 | vlDesignText:designTranslations }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </span>\r\n </div>\r\n </ng-template>\r\n ", styles: [".vl-cards--aligned>.card-grid-item{display:flex;flex-direction:column}.vl-cards--aligned>.card-grid-item>.vl-card-body{flex:1 1 auto;display:flex;flex-direction:column}.vl-cards--aligned .vl-card-body>:not(.card-layout-item--action)+.card-layout-item--action{margin-top:auto}: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-grid-item>div{margin-left:auto;margin-right:auto}.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}.vl-d-body.vl-d-hidden .hidden{display:revert!important}.vl-d-card-empty{min-height:160px;flex-direction:column;gap:4px}.vl-d-card-empty__icon{font-size:28px;color:#94a3b8;margin-bottom:6px}.vl-d-card-empty__title{font-weight:600;color:#334155}.card-grid-item.vl-d-item{padding-top:4px}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
10286
+ ], standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: an element's handles in the order pencil, plus, bin (user) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\r\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\r\n the buttons there keep their own markup (icon or caption) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\r\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\r\n Mouse pad showed \"2 / 5\" while scrolling) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: every class of a style is set (classNames), not only the first -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\r\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\r\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\r\n cardFooter) that the app and the canvas share; the app draws the same as before -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: caption and date pattern from the layout - a data object holds names and types only -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\r\n - change: the loader also shows while the page's PageData loads or sends (A4)\r\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\r\n<!-- Shuaib 2026-10-20\r\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\r\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\r\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\r\n an input writing into the property schema; a text, date or time that was not locked showed only\r\n its label; an autocomplete showed only with a currency format; the period showed nothing\r\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\r\n<!-- 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 the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\r\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\r\n their own blocks (date filter, buttons). -->\r\n\r\n @if (design) {\r\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\r\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\r\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\r\n settings -->\r\n <div class=\"vl-card-runtime vl-d-root\">\r\n <div class=\"vl-d-container-bar\">\r\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\r\n (act)=\"containerAction($event)\"></vl-design-bar>\r\n </div>\r\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\r\n <div class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\r\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n @if (itemInfo?.header?.elements?.length) {\r\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\r\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\r\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\r\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\r\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\r\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\r\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\r\n @if (!itemInfo?.layoutSchema?.cards?.length) {\r\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(null)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else {\r\n <div>\r\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\r\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\r\n <div>{{ dt.emptyCardText }}</div>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\r\n @for (record of designRecords; track $index; let k = $index) {\r\n <div class=\"card-grid-item vl-d-item\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\r\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\r\n @if (k === 0 && designPage === 0) {\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\r\n [id]=\"designer.listId()\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(null)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\r\n <div [attr.data-vl-design-element]=\"li\"\r\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\r\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\r\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(li, null)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\r\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\r\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\r\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\r\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\r\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\r\n [id]=\"designer.innerListId(li)\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\r\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\r\n @if (designer.isEmptyHint(li)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n @for (inner of layout.elements || []; track $index; let ii = $index) {\r\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\r\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(ii, li)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\r\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\r\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\r\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\r\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\r\n </ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <!-- the other sample cards are drawn like the app's -->\r\n <div class=\"vl-d-body\">\r\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n }\r\n @if (itemInfo?.footer?.elements && designAll.length) {\r\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\r\n }\r\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\r\n <div class=\"card-pagination-wrapper\">\r\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\r\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <!-- Loader Spinner -->\r\n \r\n <div *ngIf=\"isLoading || pageData?.loading\" 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 !scrollPagination\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 [attr.data-vl-path]=\"vlFieldPath(element)\"\r\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\r\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \r\n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\r\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\r\n </div>\r\n </div>\r\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\r\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\r\n [class]=\"getStyleWithoutClasses(\r\n itemInfo?.layoutSchema?.style\r\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\r\n <div *ngFor=\"let record of displayedRecords; let k = index\"\r\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\r\n [class.vl-record--send-error]=\"!!record?._vlSendError\">\r\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\r\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\r\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\r\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\r\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\r\n </ng-container>\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\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\r\n </div>\r\n }\r\n </div>\r\n }\r\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\r\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\r\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\r\n @if (element?.scope?.reference) {\r\n <div [ngClass]=\"[element?.option?.visible ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\r\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\r\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\r\n [propertySchema]=\"itemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [list]=\"remoteData[element.scope.reference]\"\r\n (linkClicked)=\"showLinkDetails(element.option, record)\"\r\n (mediaClicked)=\"showImageDetails(element.option, record)\">\r\n </vl-control>\r\n </div>\r\n } @else if (inner) {\r\n <div>\r\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\r\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\r\n [matTooltipTouchGestures]=\"'auto'\"\r\n [style]=\"getStyleWithoutClasses(element?.style).style\"\r\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\r\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\r\n <span class=\"schema-btn-content\">\r\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\r\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\r\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\r\n </span>\r\n </button>\r\n </div>\r\n } @else {\r\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\r\n <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 (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\r\n <ng-container *ngIf=\"!element.caption; else textContent\">\r\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\r\n </button>\r\n </div>\r\n }\r\n </ng-template>\r\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\r\n <ng-template #headerElement let-element=\"element\">\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]=\"classNames(element.label?.style)\">\r\n {{ element.label.caption | vlDesignText:designTranslations }}\r\n </span>\r\n </div>\r\n \r\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\r\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\r\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\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 | vlDesignText:designTranslations }}</ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\r\n <ng-template #cardBody let-record=\"record\">\r\n <div [ngStyle]=\"getSingleCardStyle()\"\r\n [class]=\"'vl-card-body ' + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\r\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\r\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [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 @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\r\n <div class=\"card-horizontal-layout\"\r\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\r\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\r\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n } @else {\r\n <ng-container\r\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\r\n </ng-container>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- the card page's footer -->\r\n <ng-template #cardFooter>\r\n <div [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 <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\r\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\r\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\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 | vlDesignText:designTranslations }}\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-container>\r\n </span>\r\n </div>\r\n </ng-template>\r\n ", styles: [".vl-cards--aligned>.card-grid-item{display:flex;flex-direction:column}.vl-cards--aligned>.card-grid-item>.vl-card-body{flex:1 1 auto;display:flex;flex-direction:column}.vl-cards--aligned .vl-card-body>:not(.card-layout-item--action)+.card-layout-item--action{margin-top:auto}: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-grid-item>div{margin-left:auto;margin-right:auto}.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}.vl-d-body.vl-d-hidden .hidden{display:revert!important}.vl-d-card-empty{min-height:160px;flex-direction:column;gap:4px}.vl-d-card-empty__icon{font-size:28px;color:var(--vl-color-text-muted, #94a3b8);margin-bottom:6px}.vl-d-card-empty__title{font-weight:600;color:var(--vl-color-text, #334155)}.card-grid-item.vl-d-item{padding-top:4px}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
9826
10287
  }], 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: [{
9827
10288
  type: Input
9828
10289
  }], pageData: [{
@@ -9873,6 +10334,73 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
9873
10334
  args: ['window:resize']
9874
10335
  }] } });
9875
10336
 
10337
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
10338
+ // - new: designer links (live preview, worklist 25 part 2) - in the Designer's preview every field of a page carries
10339
+ // its place in the page file (data-vl-at="<section>.<field>"), so a right click there can open it in the Designer.
10340
+ // Off in every real app: only the preview (viewdefinition, ?preview=1 in the Designer's frame) switches it on.
10341
+ let designerLinks = false;
10342
+ function useDesignerLinks(on) {
10343
+ designerLinks = !!on;
10344
+ }
10345
+ function designerLinksOn() {
10346
+ return designerLinks;
10347
+ }
10348
+ /** "<section>.<field>" of a field in its page file, or null when the links are off. */
10349
+ function designerPlace(sections, section, field) {
10350
+ if (!designerLinks || !Array.isArray(sections))
10351
+ return null;
10352
+ const si = sections.indexOf(section);
10353
+ const fi = Array.isArray(section?.formFields) ? section.formFields.indexOf(field) : -1;
10354
+ return si < 0 || fi < 0 ? null : `${si}.${fi}`;
10355
+ }
10356
+
10357
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
10358
+ // - new: applyMapping - one tested way to carry values from a source (a chosen suggestion, later the signed-in user,
10359
+ // point 220) into fields: { <target field>: <key of the source> | "<text with {{key}}>" }. A key the source does
10360
+ // not have leaves the field as it is (it was emptied). Used by every container (form page, dialog, card) for
10361
+ // option.onSelect.mapFields - it worked in the dialog only (worklist 47).
10362
+ /** A value of the source by its key, also a dotted path (address.city). */
10363
+ function valueAt(source, key) {
10364
+ return String(key).split('.').reduce((v, k) => (v == null ? undefined : v[k.trim()]), source);
10365
+ }
10366
+ /**
10367
+ * The values of a mapping for a source: { target: value } - only targets whose value the source has.
10368
+ * A template ("{{no}} - {{text}}") counts when at least one of its keys is there; a missing one becomes empty.
10369
+ */
10370
+ function mappedValues(mapping, source) {
10371
+ const out = {};
10372
+ if (!mapping || typeof mapping !== 'object' || source == null || typeof source !== 'object')
10373
+ return out;
10374
+ for (const [target, spec] of Object.entries(mapping)) {
10375
+ if (!target || typeof spec !== 'string' || !spec.trim())
10376
+ continue;
10377
+ if (spec.includes('{{')) {
10378
+ let found = false;
10379
+ const text = spec.replace(/\{\{\s*([^}]+?)\s*\}\}/g, (_, key) => {
10380
+ const v = valueAt(source, key);
10381
+ if (v !== undefined && v !== null)
10382
+ found = true;
10383
+ return v == null ? '' : String(v);
10384
+ });
10385
+ if (found)
10386
+ out[target] = text;
10387
+ }
10388
+ else {
10389
+ const v = valueAt(source, spec);
10390
+ if (v !== undefined)
10391
+ out[target] = v;
10392
+ }
10393
+ }
10394
+ return out;
10395
+ }
10396
+ /** Applies a mapping: set(target, value) for every target the source has a value for; the count of fields set. */
10397
+ function applyMapping(mapping, source, set) {
10398
+ const values = mappedValues(mapping, source);
10399
+ for (const [target, value] of Object.entries(values))
10400
+ set(target, value);
10401
+ return Object.keys(values).length;
10402
+ }
10403
+
9876
10404
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29
9877
10405
  // - new: fillFromUser - a start value {{userInfo.x}} (or {{x}} with option.fromUser) is filled from the signed-in
9878
10406
  // user in a form too, and again when the sign-in comes; a locked field always shows it
@@ -9939,11 +10467,14 @@ function applyLayoutDefaults(schemas, layout, asValue) {
9939
10467
  }
9940
10468
  }
9941
10469
  }
9942
- /** "{{userInfo.email}}" -> "email"; with option.fromUser also "{{email}}" -> "email"; else null. */
10470
+ /** "{{userInfo.email}}" -> "email"; "{{user.no}}" -> "user.no" (point 220); with option.fromUser also "{{email}}" -> "email"; else null. */
9943
10471
  function userField(template, fromUser) {
9944
- const match = /^\{\{\s*(userInfo\.)?([\w.]+)\s*\}\}$/.exec(String(template).trim());
10472
+ const match = /^\{\{\s*(userInfo\.|user\.)?([\w.]+)\s*\}\}$/.exec(String(template).trim());
9945
10473
  if (!match)
9946
10474
  return null;
10475
+ // {{user.x}}: the user record of environment.login.user (point 220), carried as userInfo.user
10476
+ if (match[1] === 'user.')
10477
+ return `user.${match[2]}`;
9947
10478
  return match[1] || fromUser ? match[2] : null;
9948
10479
  }
9949
10480
  /** A value inside the sign-in answer by its path ("email", "address.city"). */
@@ -10190,6 +10721,9 @@ class SectionDesigner {
10190
10721
  }
10191
10722
  }
10192
10723
 
10724
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08
10725
+ // - new: sectionPlain - card false draws a section without its card (no frame, background, padding): a title on the
10726
+ // page's background (building blocks, point 213 worklist 22)
10193
10727
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24
10194
10728
  // - new: tabletGridSpan - a section's width on a tablet (768-1023px); without it the desktop width counts
10195
10729
  // - new: the layout of a form's sections (user decision 2026-10-24, checkout): gridSpan - a section is 1..12 of the
@@ -10206,6 +10740,10 @@ function sectionTabletSpan(section) {
10206
10740
  const span = Number(section?.tabletGridSpan);
10207
10741
  return Number.isInteger(span) && span >= 1 && span <= 12 ? span : sectionSpan(section);
10208
10742
  }
10743
+ /** A section drawn without its card (card false): no frame, no background, no padding - e.g. a title on the page. */
10744
+ function sectionPlain(section) {
10745
+ return section?.card === false;
10746
+ }
10209
10747
  /** A section that stays in view while the page scrolls (sticky true). */
10210
10748
  function sectionSticky(section) {
10211
10749
  return section?.sticky === true;
@@ -10336,6 +10874,11 @@ function lockHint(option, reason, translations) {
10336
10874
  return translations?.[text.trim()] || text.trim();
10337
10875
  }
10338
10876
 
10877
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
10878
+ // - new: suggestionPicked - a chosen suggestion fills the page's other fields (onSelect.mapFields, worklist 47)
10879
+ // - new: data-vl-at - the field's place in the page file, only in the Designer's preview (designer links, worklist 25)
10880
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08
10881
+ // - new: sectionPlainOf - a section with card false has no card look (section-card--plain)
10339
10882
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
10340
10883
  // - change: a section's grid columns and alignment read in both spellings (styleValue - CSS spelling since 2026-11-02)
10341
10884
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
@@ -10349,6 +10892,21 @@ class FormComponent {
10349
10892
  /** Marks for the app's test runner (#166): field key and button action. */
10350
10893
  vlFieldKey = testFieldKey;
10351
10894
  vlFieldPath = testFieldPath;
10895
+ /** A suggestion was chosen: option.onSelect.mapFields fills the other fields of the page (applyMapping, worklist 47). */
10896
+ suggestionPicked(entry, formField) {
10897
+ const scope = this.getScope(formField?.scope?.reference);
10898
+ const fields = this.form?.propertySchema?.[scope];
10899
+ const set = applyMapping(formField?.option?.onSelect?.mapFields, entry, (target, value) => {
10900
+ if (fields?.[target])
10901
+ fields[target].value = value;
10902
+ });
10903
+ if (set)
10904
+ this.setformData();
10905
+ }
10906
+ /** The field's place in the page file - only in the Designer's preview (designer links, worklist 25). */
10907
+ vlPlace(section, field) {
10908
+ return designerPlace(this.form?.layoutSchema?.formSections, section, field);
10909
+ }
10352
10910
  // ---- Backend lists (RemoteListService): any field with option.autocomplete, any control ----
10353
10911
  remoteLists = inject(RemoteListService);
10354
10912
  /** Loaded lists by field reference. */
@@ -10578,6 +11136,10 @@ class FormComponent {
10578
11136
  return spans.length ? Math.max(...spans) : 4;
10579
11137
  }
10580
11138
  /** A section that stays in view while the page scrolls (layout sticky). */
11139
+ /** card false: the section without its card (frame, background, padding). */
11140
+ sectionPlainOf(formSection) {
11141
+ return sectionPlain(formSection);
11142
+ }
10581
11143
  sectionStickyOf(formSection) {
10582
11144
  return sectionSticky(formSection);
10583
11145
  }
@@ -10826,11 +11388,11 @@ class FormComponent {
10826
11388
  return !!control?.invalid && ((!!control.dirty && !!control.touched) || this.saveTried);
10827
11389
  }
10828
11390
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10829
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: FormComponent, isStandalone: true, selector: "vl-form", inputs: { errorMessages: "errorMessages", creditCardError: "creditCardError", form: "form", selectedLanguageInfo: "selectedLanguageInfo", userInfo: "userInfo", design: "design" }, outputs: { formButtonClick: "formButtonClick", checkBoxChangeEvent: "checkBoxChangeEvent", signIn: "signIn", designChange: "designChange" }, host: { properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its form here - the same section cards, widths, sticky\r\n column, field wrappers and <vl-control> as the app, with drag, edit and delete around each element; the app's\r\n markup below is unchanged -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - new: sections side by side (gridSpan), the sticky ones as one column at the right, visibleWhen\r\n - change: lockHints (every reason, the missing fields as links), goToField; space under the last section\r\n - new: a locked button shows its hint, a click shows the missing fields (showMissing), the hint of a missing\r\n sign-in asks the app to sign in (signIn)\r\n - change: the wrapper of a locked button drops the layout's colour and shadow (field-row--locked) - the blue\r\n of the field style stayed around the grey button\r\n - new: a button is locked by needsLogin / needsValid of its layout (isLocked, field/button-lock.ts) -->\r\n<!-- Shuaib 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> (controls/control.ts) instead of the switch\r\n over types and controls in this template - the same building block as the dialog (#166)\r\n - change: scope.style is the input of every control (the drop-down took the field's style, check box\r\n and drop-down put scope.style around label and input); all classes of a style count\r\n - change: option.protected makes every control read only - check box, switch, radio, drop-down,\r\n password, text area, media were still editable; a protected field shows label and value -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: every field label by getLabel (label.value, the layout's label.caption, then the DTO caption) -\r\n numbers and the period showed no label; a text field's control dropdown/switch/checkbox is used (#166, tests F2-F4)\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 - change: the text field is the one vl-textbox (#166 step 4.4)\r\n - new: radiobutton with vl-radio (text and Boolean) (#166 step 4.4)\r\n - new: a Boolean with control switch uses vl-switch (#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 instead of a one-line field (#166 step 4.4)\r\n - change: password with vl-password, the same field and eye as in dialog and card (#166 step 4.4)\r\n - change: validation rules only from the layout (vlRules: required, email, min/max length, pattern,\r\n minimum/maximum), messages via fieldMessage; number fields checked too (#166 step 4.6)\r\n - change: fields/columns with option.visible false are left out (vlVisible, #166)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\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 - 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: date and time fields use the shared picker markup (picker-field, DateTimePickerService)\r\n instead of PrimeNG's own icon with empty handlers -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: the form 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 - change: the credit card type is spelled creditCard. The rename of 2026-09-15 reached\r\n model.component.html and the whole Designer but not this file, so one data object rendered\r\n in a modal and stayed empty here\r\n - new: a @contract comment on the type switch and on the credit card case, so the rule sits\r\n next to the code that implements it -->\r\n@if (design) {\r\n<!-- design mode (the Designer's canvas): every section in the layout's widths, the sticky ones as the column at the\r\n right, a conditional one marked; every field - hidden ones faded - with drag, edit and delete. A field is\r\n drawn by the same <vl-control> as below, shown and not typed in; a click opens its settings -->\r\n<div class=\"form-renderer vl-d-root\"\r\n [ngClass]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.style\">\r\n <form (submit)=\"$event.preventDefault()\" cdkDropList cdkDropListOrientation=\"mixed\"\r\n [cdkDropListData]=\"form?.layoutSchema?.formSections || []\"\r\n [cdkDropListDisabled]=\"(form?.layoutSchema?.formSections?.length || 0) <= 1\"\r\n (cdkDropListDropped)=\"sectionDropped($event)\">\r\n <ng-template #designSection let-formSection let-si=\"index\">\r\n <div class=\"section-card vl-d-section\" cdkDrag [cdkDragData]=\"formSection\"\r\n [cdkDragDisabled]=\"(form?.layoutSchema?.formSections?.length || 0) <= 1\"\r\n [style.--vl-section-span]=\"sectionSpanOf(formSection)\"\r\n [style.--vl-section-span-tablet]=\"sectionTabletSpanOf(formSection)\"\r\n [class.vl-d-section--sticky]=\"sectionStickyOf(formSection)\"\r\n [class.vl-d-section--conditional]=\"!!formSection?.visibleWhen\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'section', sectionIndex: si })\"\r\n (cdkDragStarted)=\"designer.sectionDragStarted()\">\r\n <div class=\"section-header vl-d-section-head\">\r\n <div class=\"section-title\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.label?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(formSection?.label?.style)?.style\">\r\n {{ (formSection?.label?.caption | vlDesignText:designTranslations) || dt.section + ' ' + (si + 1) }}\r\n </div>\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'add', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragSection, add: dt.addButton, edit: dt.editSection, delete: dt.deleteSection }\"\r\n (act)=\"sectionAction($event, si)\"></vl-design-bar>\r\n </div>\r\n\r\n <div class=\"section-body\" [id]=\"designer.listId(si)\" data-vl-design-list\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.style)?.classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\"\r\n cdkDropList [cdkDropListData]=\"formSection.formFields || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event, si)\"\r\n (cdkDropListEntered)=\"designer.entered(si)\"\r\n (cdkDropListExited)=\"designer.exited()\"\r\n (cdkDropListDropped)=\"designer.dropped($event, si)\">\r\n @if (designer.isEmptyHint(si)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else if (!formSection.formFields?.length) {\r\n <div class=\"vl-d-empty\">{{ dt.emptySection }}</div>\r\n }\r\n @for (formField of formSection.formFields || []; track $index; let fi = $index) {\r\n <div class=\"field-row vl-d-item\" [attr.data-vl-design-field]=\"fi\"\r\n [ngClass]=\"getStyleWithoutClasses(formField?.style)?.classes\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'field', sectionIndex: si, fieldIndex: fi })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(si, fi)\"\r\n (cdkDragStarted)=\"designer.dragStarted(si, fi)\"\r\n (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(si, fi)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragField, edit: dt.editField, delete: dt.deleteField }\"\r\n (act)=\"fieldAction($event, si, fi)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"formField?.option?.visible === false\"\r\n (click)=\"designer.editField(si, fi, 'input')\">\r\n @if (formField?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\" [propertySchema]=\"form.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" container=\"form\" buttonType=\"button\"\r\n [creditCardError]=\"creditCardError\"></vl-control>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-container *ngFor=\"let formSection of sectionsIn(false)\">\r\n <ng-container *ngTemplateOutlet=\"designSection; context: { $implicit: formSection, index: sectionIndexOf(formSection) }\"></ng-container>\r\n </ng-container>\r\n <div *ngIf=\"sectionsIn(true).length\" class=\"sticky-column\" [style.--vl-section-span]=\"stickySpan()\"\r\n [style.--vl-section-span-tablet]=\"stickyTabletSpan()\"\r\n [class.sticky-column--stack-tablet]=\"stickyTabletSpan() === 12\">\r\n <ng-container *ngFor=\"let formSection of sectionsIn(true)\">\r\n <ng-container *ngTemplateOutlet=\"designSection; context: { $implicit: formSection, index: sectionIndexOf(formSection) }\"></ng-container>\r\n </ng-container>\r\n </div>\r\n </form>\r\n <div class=\"vl-d-add\">\r\n <button type=\"button\" class=\"vl-d-add-btn\" (click)=\"designer.addSection()\">{{ dt.addSection }}</button>\r\n </div>\r\n</div>\r\n} @else {\r\n<div class=\"form-renderer\"\r\n [ngClass]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.style\">\r\n <form #formRef=\"ngForm\" *ngIf=\"form?.layoutSchema?.formSections?.length > 0\">\r\n <!-- the sections stand in the form's 12 columns, gridSpan wide; the sticky ones together form a column at the\r\n right that stays in view (on a phone it stands at the end); visibleWhen shows a section only while its\r\n field holds the value (a hidden section's fields do not count) -->\r\n <ng-template #sectionTpl let-formSection>\r\n <div class=\"section-card\" [style.--vl-section-span]=\"sectionSpanOf(formSection)\"\r\n [style.--vl-section-span-tablet]=\"sectionTabletSpanOf(formSection)\">\r\n <div *ngIf=\"formSection?.label?.caption\" class=\"section-header\">\r\n <div class=\"section-title\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.label?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(formSection?.label?.style)?.style\">\r\n {{ formSection.label.caption | vlDesignText:designTranslations }}\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"formSection?.formFields?.length > 0\" class=\"section-body\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.style)?.classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\">\r\n <!-- the field's style is its wrapper in the section grid; label, input and button are drawn by\r\n the shared <vl-control>. The button is a submit button, so Enter in a field presses it -->\r\n <div *ngFor=\"let formField of formSection.formFields | vlVisible\" class=\"field-row\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [attr.data-vl-path]=\"vlFieldPath(formField)\"\r\n [ngClass]=\"getStyleWithoutClasses(formField?.style)?.classes\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.field-row--locked]=\"isLocked(formField, formRef)\">\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\"\r\n [propertySchema]=\"form.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"form\"\r\n buttonType=\"submit\"\r\n [locked]=\"isLocked(formField, formRef)\"\r\n [lockHints]=\"lockHintsOf(formField, formRef)\"\r\n (lockedClick)=\"showMissing(formRef)\"\r\n (signIn)=\"signIn.emit()\"\r\n [list]=\"remoteData[formField.scope?.reference]\"\r\n [listLoading]=\"remoteLoading[formField.scope?.reference]\"\r\n [creditCardError]=\"creditCardError\"\r\n (toggled)=\"setformData()\"\r\n (buttonClick)=\"invokeFormBtnClick($event, form.propertySchema)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-container *ngFor=\"let formSection of sectionsIn(false)\">\r\n <ng-container *ngIf=\"sectionShown(formSection)\">\r\n <ng-container *ngTemplateOutlet=\"sectionTpl; context: { $implicit: formSection }\"></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <div *ngIf=\"sectionsIn(true).length\" class=\"sticky-column\" [style.--vl-section-span]=\"stickySpan()\"\r\n [style.--vl-section-span-tablet]=\"stickyTabletSpan()\"\r\n [class.sticky-column--stack-tablet]=\"stickyTabletSpan() === 12\">\r\n <ng-container *ngFor=\"let formSection of sectionsIn(true)\">\r\n <ng-container *ngIf=\"sectionShown(formSection)\">\r\n <ng-container *ngTemplateOutlet=\"sectionTpl; context: { $implicit: formSection }\"></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </form>\r\n</div>\r\n}\r\n", styles: [":host{display:block;width:100%;height:100%;min-height:0}.form-renderer{width:100%;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding:12px}.section-card{border:1px solid #e5e7eb;border-radius:var(--radius-sm, 8px);padding:12px;margin-bottom:12px;background:#fff;box-sizing:border-box}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-weight:600}.section-title{font-size:14px;color:#0f172a}.section-body{position:relative;width:100%;min-height:78px;box-sizing:border-box}.field-row{position:relative;min-width:0;width:100%;box-sizing:border-box}.field-row input,.field-row select,.field-row nz-select,.field-row textarea,.field-row button{max-width:100%;box-sizing:border-box}@media(max-width:768px){.section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}.field-row{grid-column:span 1!important}}@media(min-width:769px)and (max-width:1024px){.section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}.field-row{grid-column:span 6!important}}:host-context(.mobile-frame) .section-body,:host-context(.device-mobile) .section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}:host-context(.mobile-frame) .field-row,:host-context(.device-mobile) .field-row{grid-column:span 1!important}:host-context(.tablet-frame) .section-body,:host-context(.device-tablet) .section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}:host-context(.tablet-frame) .field-row,:host-context(.device-tablet) .field-row{grid-column:span 6!important}.field-row--locked{background:transparent!important;box-shadow:none!important;height:auto!important}form{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;align-items:start;padding-bottom:32px}.section-card{grid-column:span var(--vl-section-span, 12);min-width:0}.sticky-column .section-card{grid-column:auto}.sticky-column{grid-column:span var(--vl-section-span, 4) / -1;grid-row:1 / span 40;align-self:start;position:sticky;top:12px;z-index:2;min-width:0}@media(min-width:768px)and (max-width:1023px){.section-card{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 12))}.sticky-column{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 4)) / -1}.sticky-column.sticky-column--stack-tablet{grid-column:1 / -1;grid-row:auto;position:static}.sticky-column .section-card{grid-column:auto}}@media(max-width:767px){.section-card,.sticky-column{grid-column:1 / -1;grid-row:auto;position:static}}:host(.vl-design-tablet) .section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}:host(.vl-design-tablet) .field-row{grid-column:span 6!important}:host(.vl-design-tablet) .section-card{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 12))}:host(.vl-design-tablet) .sticky-column{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 4)) / -1}:host(.vl-design-tablet) .sticky-column.sticky-column--stack-tablet{grid-column:1 / -1;grid-row:auto;position:static}:host(.vl-design-mobile) .section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}:host(.vl-design-mobile) .field-row{grid-column:span 1!important}:host(.vl-design-mobile) .section-card,:host(.vl-design-mobile) .sticky-column{grid-column:1 / -1;grid-row:auto;position:static}:host(.vl-design-tablet) .sticky-column .section-card,:host(.vl-design-mobile) .sticky-column .section-card{grid-column:auto}.form-renderer{container-type:inline-size;container-name:vl-form}.section-card{container-type:inline-size;container-name:vl-section}@container vl-section (max-width: 559px){.section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}.field-row{grid-column:1 / -1!important}.field-row ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}}@container vl-form (max-width: 767px){.section-card,.sticky-column{grid-column:1 / -1;grid-row:auto;position:static}.sticky-column .section-card{grid-column:auto}}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.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", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "component", type: DropMarkerComponent, selector: "vl-drop-marker", inputs: ["type", "text"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }, { kind: "pipe", type: VisiblePipe, name: "vlVisible" }] });
11391
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: FormComponent, isStandalone: true, selector: "vl-form", inputs: { errorMessages: "errorMessages", creditCardError: "creditCardError", form: "form", selectedLanguageInfo: "selectedLanguageInfo", userInfo: "userInfo", design: "design" }, outputs: { formButtonClick: "formButtonClick", checkBoxChangeEvent: "checkBoxChangeEvent", signIn: "signIn", designChange: "designChange" }, host: { properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\r\n - new: a section with card false gets section-card--plain (no card look), in the app and on the canvas -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its form here - the same section cards, widths, sticky\r\n column, field wrappers and <vl-control> as the app, with drag, edit and delete around each element; the app's\r\n markup below is unchanged -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - new: sections side by side (gridSpan), the sticky ones as one column at the right, visibleWhen\r\n - change: lockHints (every reason, the missing fields as links), goToField; space under the last section\r\n - new: a locked button shows its hint, a click shows the missing fields (showMissing), the hint of a missing\r\n sign-in asks the app to sign in (signIn)\r\n - change: the wrapper of a locked button drops the layout's colour and shadow (field-row--locked) - the blue\r\n of the field style stayed around the grey button\r\n - new: a button is locked by needsLogin / needsValid of its layout (isLocked, field/button-lock.ts) -->\r\n<!-- Shuaib 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> (controls/control.ts) instead of the switch\r\n over types and controls in this template - the same building block as the dialog (#166)\r\n - change: scope.style is the input of every control (the drop-down took the field's style, check box\r\n and drop-down put scope.style around label and input); all classes of a style count\r\n - change: option.protected makes every control read only - check box, switch, radio, drop-down,\r\n password, text area, media were still editable; a protected field shows label and value -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: every field label by getLabel (label.value, the layout's label.caption, then the DTO caption) -\r\n numbers and the period showed no label; a text field's control dropdown/switch/checkbox is used (#166, tests F2-F4)\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 - change: the text field is the one vl-textbox (#166 step 4.4)\r\n - new: radiobutton with vl-radio (text and Boolean) (#166 step 4.4)\r\n - new: a Boolean with control switch uses vl-switch (#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 instead of a one-line field (#166 step 4.4)\r\n - change: password with vl-password, the same field and eye as in dialog and card (#166 step 4.4)\r\n - change: validation rules only from the layout (vlRules: required, email, min/max length, pattern,\r\n minimum/maximum), messages via fieldMessage; number fields checked too (#166 step 4.6)\r\n - change: fields/columns with option.visible false are left out (vlVisible, #166)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\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 - 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: date and time fields use the shared picker markup (picker-field, DateTimePickerService)\r\n instead of PrimeNG's own icon with empty handlers -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: the form 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 - change: the credit card type is spelled creditCard. The rename of 2026-09-15 reached\r\n model.component.html and the whole Designer but not this file, so one data object rendered\r\n in a modal and stayed empty here\r\n - new: a @contract comment on the type switch and on the credit card case, so the rule sits\r\n next to the code that implements it -->\r\n@if (design) {\r\n<!-- design mode (the Designer's canvas): every section in the layout's widths, the sticky ones as the column at the\r\n right, a conditional one marked; every field - hidden ones faded - with drag, edit and delete. A field is\r\n drawn by the same <vl-control> as below, shown and not typed in; a click opens its settings -->\r\n<div class=\"form-renderer vl-d-root\"\r\n [ngClass]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.style\">\r\n <form (submit)=\"$event.preventDefault()\" cdkDropList cdkDropListOrientation=\"mixed\"\r\n [cdkDropListData]=\"form?.layoutSchema?.formSections || []\"\r\n [cdkDropListDisabled]=\"(form?.layoutSchema?.formSections?.length || 0) <= 1\"\r\n (cdkDropListDropped)=\"sectionDropped($event)\">\r\n <ng-template #designSection let-formSection let-si=\"index\">\r\n <div class=\"section-card vl-d-section\" cdkDrag [cdkDragData]=\"formSection\"\r\n [class.section-card--plain]=\"sectionPlainOf(formSection)\"\r\n [cdkDragDisabled]=\"(form?.layoutSchema?.formSections?.length || 0) <= 1\"\r\n [style.--vl-section-span]=\"sectionSpanOf(formSection)\"\r\n [style.--vl-section-span-tablet]=\"sectionTabletSpanOf(formSection)\"\r\n [class.vl-d-section--sticky]=\"sectionStickyOf(formSection)\"\r\n [class.vl-d-section--conditional]=\"!!formSection?.visibleWhen\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'section', sectionIndex: si })\"\r\n (cdkDragStarted)=\"designer.sectionDragStarted()\">\r\n <div class=\"section-header vl-d-section-head\">\r\n <div class=\"section-title\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.label?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(formSection?.label?.style)?.style\">\r\n {{ (formSection?.label?.caption | vlDesignText:designTranslations) || dt.section + ' ' + (si + 1) }}\r\n </div>\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'add', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragSection, add: dt.addButton, edit: dt.editSection, delete: dt.deleteSection }\"\r\n (act)=\"sectionAction($event, si)\"></vl-design-bar>\r\n </div>\r\n\r\n <div class=\"section-body\" [id]=\"designer.listId(si)\" data-vl-design-list\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.style)?.classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\"\r\n cdkDropList [cdkDropListData]=\"formSection.formFields || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event, si)\"\r\n (cdkDropListEntered)=\"designer.entered(si)\"\r\n (cdkDropListExited)=\"designer.exited()\"\r\n (cdkDropListDropped)=\"designer.dropped($event, si)\">\r\n @if (designer.isEmptyHint(si)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else if (!formSection.formFields?.length) {\r\n <div class=\"vl-d-empty\">{{ dt.emptySection }}</div>\r\n }\r\n @for (formField of formSection.formFields || []; track $index; let fi = $index) {\r\n <div class=\"field-row vl-d-item\" [attr.data-vl-design-field]=\"fi\"\r\n [ngClass]=\"getStyleWithoutClasses(formField?.style)?.classes\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'field', sectionIndex: si, fieldIndex: fi })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(si, fi)\"\r\n (cdkDragStarted)=\"designer.dragStarted(si, fi)\"\r\n (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(si, fi)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragField, edit: dt.editField, delete: dt.deleteField }\"\r\n (act)=\"fieldAction($event, si, fi)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"formField?.option?.visible === false\"\r\n (click)=\"designer.editField(si, fi, 'input')\">\r\n @if (formField?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\" [propertySchema]=\"form.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" container=\"form\" buttonType=\"button\"\r\n [creditCardError]=\"creditCardError\"></vl-control>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-container *ngFor=\"let formSection of sectionsIn(false)\">\r\n <ng-container *ngTemplateOutlet=\"designSection; context: { $implicit: formSection, index: sectionIndexOf(formSection) }\"></ng-container>\r\n </ng-container>\r\n <div *ngIf=\"sectionsIn(true).length\" class=\"sticky-column\" [style.--vl-section-span]=\"stickySpan()\"\r\n [style.--vl-section-span-tablet]=\"stickyTabletSpan()\"\r\n [class.sticky-column--stack-tablet]=\"stickyTabletSpan() === 12\">\r\n <ng-container *ngFor=\"let formSection of sectionsIn(true)\">\r\n <ng-container *ngTemplateOutlet=\"designSection; context: { $implicit: formSection, index: sectionIndexOf(formSection) }\"></ng-container>\r\n </ng-container>\r\n </div>\r\n </form>\r\n <div class=\"vl-d-add\">\r\n <button type=\"button\" class=\"vl-d-add-btn\" (click)=\"designer.addSection()\">{{ dt.addSection }}</button>\r\n </div>\r\n</div>\r\n} @else {\r\n<div class=\"form-renderer\"\r\n [ngClass]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.style\">\r\n <form #formRef=\"ngForm\" *ngIf=\"form?.layoutSchema?.formSections?.length > 0\">\r\n <!-- the sections stand in the form's 12 columns, gridSpan wide; the sticky ones together form a column at the\r\n right that stays in view (on a phone it stands at the end); visibleWhen shows a section only while its\r\n field holds the value (a hidden section's fields do not count) -->\r\n <ng-template #sectionTpl let-formSection>\r\n <div class=\"section-card\" [class.section-card--plain]=\"sectionPlainOf(formSection)\" [style.--vl-section-span]=\"sectionSpanOf(formSection)\"\r\n [style.--vl-section-span-tablet]=\"sectionTabletSpanOf(formSection)\">\r\n <div *ngIf=\"formSection?.label?.caption\" class=\"section-header\">\r\n <div class=\"section-title\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.label?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(formSection?.label?.style)?.style\">\r\n {{ formSection.label.caption | vlDesignText:designTranslations }}\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"formSection?.formFields?.length > 0\" class=\"section-body\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.style)?.classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\">\r\n <!-- the field's style is its wrapper in the section grid; label, input and button are drawn by\r\n the shared <vl-control>. The button is a submit button, so Enter in a field presses it -->\r\n <div *ngFor=\"let formField of formSection.formFields | vlVisible\" class=\"field-row\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [attr.data-vl-path]=\"vlFieldPath(formField)\"\r\n [attr.data-vl-at]=\"vlPlace(formSection, formField)\"\r\n [ngClass]=\"getStyleWithoutClasses(formField?.style)?.classes\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.field-row--locked]=\"isLocked(formField, formRef)\">\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\"\r\n [propertySchema]=\"form.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"form\"\r\n buttonType=\"submit\"\r\n [locked]=\"isLocked(formField, formRef)\"\r\n [lockHints]=\"lockHintsOf(formField, formRef)\"\r\n (lockedClick)=\"showMissing(formRef)\"\r\n (signIn)=\"signIn.emit()\"\r\n [list]=\"remoteData[formField.scope?.reference]\"\r\n [listLoading]=\"remoteLoading[formField.scope?.reference]\"\r\n [creditCardError]=\"creditCardError\"\r\n (picked)=\"suggestionPicked($event, formField)\"\r\n (toggled)=\"setformData()\"\r\n (buttonClick)=\"invokeFormBtnClick($event, form.propertySchema)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-container *ngFor=\"let formSection of sectionsIn(false)\">\r\n <ng-container *ngIf=\"sectionShown(formSection)\">\r\n <ng-container *ngTemplateOutlet=\"sectionTpl; context: { $implicit: formSection }\"></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <div *ngIf=\"sectionsIn(true).length\" class=\"sticky-column\" [style.--vl-section-span]=\"stickySpan()\"\r\n [style.--vl-section-span-tablet]=\"stickyTabletSpan()\"\r\n [class.sticky-column--stack-tablet]=\"stickyTabletSpan() === 12\">\r\n <ng-container *ngFor=\"let formSection of sectionsIn(true)\">\r\n <ng-container *ngIf=\"sectionShown(formSection)\">\r\n <ng-container *ngTemplateOutlet=\"sectionTpl; context: { $implicit: formSection }\"></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </form>\r\n</div>\r\n}\r\n", styles: [":host{display:block;width:100%;height:100%;min-height:0}.form-renderer{width:100%;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding:12px}.section-card{border:1px solid var(--vl-color-border, #e5e7eb);border-radius:var(--radius-sm, 8px);padding:12px;margin-bottom:12px;background:var(--vl-color-surface, #ffffff);box-sizing:border-box}.section-card.section-card--plain{border:0;background:transparent;padding:0;box-shadow:none}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-weight:600}.section-title{font-size:14px;color:var(--vl-color-text, #0f172a)}.section-body{position:relative;width:100%;min-height:78px;box-sizing:border-box}.field-row{position:relative;min-width:0;width:100%;box-sizing:border-box}.field-row input,.field-row select,.field-row nz-select,.field-row textarea,.field-row button{max-width:100%;box-sizing:border-box}@media(max-width:768px){.section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}.field-row{grid-column:span 1!important}}@media(min-width:769px)and (max-width:1024px){.section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}.field-row{grid-column:span 6!important}}:host-context(.mobile-frame) .section-body,:host-context(.device-mobile) .section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}:host-context(.mobile-frame) .field-row,:host-context(.device-mobile) .field-row{grid-column:span 1!important}:host-context(.tablet-frame) .section-body,:host-context(.device-tablet) .section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}:host-context(.tablet-frame) .field-row,:host-context(.device-tablet) .field-row{grid-column:span 6!important}.field-row--locked{background:transparent!important;box-shadow:none!important;height:auto!important}form{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;align-items:start;padding-bottom:32px}.section-card{grid-column:span var(--vl-section-span, 12);min-width:0}.sticky-column .section-card{grid-column:auto}.sticky-column{grid-column:span var(--vl-section-span, 4) / -1;grid-row:1 / span 40;align-self:start;position:sticky;top:12px;z-index:2;min-width:0}@media(min-width:768px)and (max-width:1023px){.section-card{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 12))}.sticky-column{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 4)) / -1}.sticky-column.sticky-column--stack-tablet{grid-column:1 / -1;grid-row:auto;position:static}.sticky-column .section-card{grid-column:auto}}@media(max-width:767px){.section-card,.sticky-column{grid-column:1 / -1;grid-row:auto;position:static}}:host(.vl-design-tablet) .section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}:host(.vl-design-tablet) .field-row{grid-column:span 6!important}:host(.vl-design-tablet) .section-card{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 12))}:host(.vl-design-tablet) .sticky-column{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 4)) / -1}:host(.vl-design-tablet) .sticky-column.sticky-column--stack-tablet{grid-column:1 / -1;grid-row:auto;position:static}:host(.vl-design-mobile) .section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}:host(.vl-design-mobile) .field-row{grid-column:span 1!important}:host(.vl-design-mobile) .section-card,:host(.vl-design-mobile) .sticky-column{grid-column:1 / -1;grid-row:auto;position:static}:host(.vl-design-tablet) .sticky-column .section-card,:host(.vl-design-mobile) .sticky-column .section-card{grid-column:auto}.form-renderer{container-type:inline-size;container-name:vl-form}.section-card{container-type:inline-size;container-name:vl-section}@container vl-section (max-width: 559px){.section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}.field-row{grid-column:1 / -1!important}.field-row ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}}@container vl-form (max-width: 767px){.section-card,.sticky-column{grid-column:1 / -1;grid-row:auto;position:static}.sticky-column .section-card{grid-column:auto}}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.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", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "component", type: DropMarkerComponent, selector: "vl-drop-marker", inputs: ["type", "text"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }, { kind: "pipe", type: VisiblePipe, name: "vlVisible" }] });
10830
11392
  }
10831
11393
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: FormComponent, decorators: [{
10832
11394
  type: Component,
10833
- args: [{ standalone: true, imports: [DesignFieldPipe, DesignTextPipe, CommonModule, FormsModule, VisiblePipe, ControlComponent, DragDropModule, DesignBarComponent, DropMarkerComponent], selector: 'vl-form', template: "<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its form here - the same section cards, widths, sticky\r\n column, field wrappers and <vl-control> as the app, with drag, edit and delete around each element; the app's\r\n markup below is unchanged -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - new: sections side by side (gridSpan), the sticky ones as one column at the right, visibleWhen\r\n - change: lockHints (every reason, the missing fields as links), goToField; space under the last section\r\n - new: a locked button shows its hint, a click shows the missing fields (showMissing), the hint of a missing\r\n sign-in asks the app to sign in (signIn)\r\n - change: the wrapper of a locked button drops the layout's colour and shadow (field-row--locked) - the blue\r\n of the field style stayed around the grey button\r\n - new: a button is locked by needsLogin / needsValid of its layout (isLocked, field/button-lock.ts) -->\r\n<!-- Shuaib 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> (controls/control.ts) instead of the switch\r\n over types and controls in this template - the same building block as the dialog (#166)\r\n - change: scope.style is the input of every control (the drop-down took the field's style, check box\r\n and drop-down put scope.style around label and input); all classes of a style count\r\n - change: option.protected makes every control read only - check box, switch, radio, drop-down,\r\n password, text area, media were still editable; a protected field shows label and value -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: every field label by getLabel (label.value, the layout's label.caption, then the DTO caption) -\r\n numbers and the period showed no label; a text field's control dropdown/switch/checkbox is used (#166, tests F2-F4)\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 - change: the text field is the one vl-textbox (#166 step 4.4)\r\n - new: radiobutton with vl-radio (text and Boolean) (#166 step 4.4)\r\n - new: a Boolean with control switch uses vl-switch (#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 instead of a one-line field (#166 step 4.4)\r\n - change: password with vl-password, the same field and eye as in dialog and card (#166 step 4.4)\r\n - change: validation rules only from the layout (vlRules: required, email, min/max length, pattern,\r\n minimum/maximum), messages via fieldMessage; number fields checked too (#166 step 4.6)\r\n - change: fields/columns with option.visible false are left out (vlVisible, #166)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\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 - 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: date and time fields use the shared picker markup (picker-field, DateTimePickerService)\r\n instead of PrimeNG's own icon with empty handlers -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: the form 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 - change: the credit card type is spelled creditCard. The rename of 2026-09-15 reached\r\n model.component.html and the whole Designer but not this file, so one data object rendered\r\n in a modal and stayed empty here\r\n - new: a @contract comment on the type switch and on the credit card case, so the rule sits\r\n next to the code that implements it -->\r\n@if (design) {\r\n<!-- design mode (the Designer's canvas): every section in the layout's widths, the sticky ones as the column at the\r\n right, a conditional one marked; every field - hidden ones faded - with drag, edit and delete. A field is\r\n drawn by the same <vl-control> as below, shown and not typed in; a click opens its settings -->\r\n<div class=\"form-renderer vl-d-root\"\r\n [ngClass]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.style\">\r\n <form (submit)=\"$event.preventDefault()\" cdkDropList cdkDropListOrientation=\"mixed\"\r\n [cdkDropListData]=\"form?.layoutSchema?.formSections || []\"\r\n [cdkDropListDisabled]=\"(form?.layoutSchema?.formSections?.length || 0) <= 1\"\r\n (cdkDropListDropped)=\"sectionDropped($event)\">\r\n <ng-template #designSection let-formSection let-si=\"index\">\r\n <div class=\"section-card vl-d-section\" cdkDrag [cdkDragData]=\"formSection\"\r\n [cdkDragDisabled]=\"(form?.layoutSchema?.formSections?.length || 0) <= 1\"\r\n [style.--vl-section-span]=\"sectionSpanOf(formSection)\"\r\n [style.--vl-section-span-tablet]=\"sectionTabletSpanOf(formSection)\"\r\n [class.vl-d-section--sticky]=\"sectionStickyOf(formSection)\"\r\n [class.vl-d-section--conditional]=\"!!formSection?.visibleWhen\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'section', sectionIndex: si })\"\r\n (cdkDragStarted)=\"designer.sectionDragStarted()\">\r\n <div class=\"section-header vl-d-section-head\">\r\n <div class=\"section-title\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.label?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(formSection?.label?.style)?.style\">\r\n {{ (formSection?.label?.caption | vlDesignText:designTranslations) || dt.section + ' ' + (si + 1) }}\r\n </div>\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'add', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragSection, add: dt.addButton, edit: dt.editSection, delete: dt.deleteSection }\"\r\n (act)=\"sectionAction($event, si)\"></vl-design-bar>\r\n </div>\r\n\r\n <div class=\"section-body\" [id]=\"designer.listId(si)\" data-vl-design-list\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.style)?.classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\"\r\n cdkDropList [cdkDropListData]=\"formSection.formFields || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event, si)\"\r\n (cdkDropListEntered)=\"designer.entered(si)\"\r\n (cdkDropListExited)=\"designer.exited()\"\r\n (cdkDropListDropped)=\"designer.dropped($event, si)\">\r\n @if (designer.isEmptyHint(si)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else if (!formSection.formFields?.length) {\r\n <div class=\"vl-d-empty\">{{ dt.emptySection }}</div>\r\n }\r\n @for (formField of formSection.formFields || []; track $index; let fi = $index) {\r\n <div class=\"field-row vl-d-item\" [attr.data-vl-design-field]=\"fi\"\r\n [ngClass]=\"getStyleWithoutClasses(formField?.style)?.classes\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'field', sectionIndex: si, fieldIndex: fi })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(si, fi)\"\r\n (cdkDragStarted)=\"designer.dragStarted(si, fi)\"\r\n (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(si, fi)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragField, edit: dt.editField, delete: dt.deleteField }\"\r\n (act)=\"fieldAction($event, si, fi)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"formField?.option?.visible === false\"\r\n (click)=\"designer.editField(si, fi, 'input')\">\r\n @if (formField?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\" [propertySchema]=\"form.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" container=\"form\" buttonType=\"button\"\r\n [creditCardError]=\"creditCardError\"></vl-control>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-container *ngFor=\"let formSection of sectionsIn(false)\">\r\n <ng-container *ngTemplateOutlet=\"designSection; context: { $implicit: formSection, index: sectionIndexOf(formSection) }\"></ng-container>\r\n </ng-container>\r\n <div *ngIf=\"sectionsIn(true).length\" class=\"sticky-column\" [style.--vl-section-span]=\"stickySpan()\"\r\n [style.--vl-section-span-tablet]=\"stickyTabletSpan()\"\r\n [class.sticky-column--stack-tablet]=\"stickyTabletSpan() === 12\">\r\n <ng-container *ngFor=\"let formSection of sectionsIn(true)\">\r\n <ng-container *ngTemplateOutlet=\"designSection; context: { $implicit: formSection, index: sectionIndexOf(formSection) }\"></ng-container>\r\n </ng-container>\r\n </div>\r\n </form>\r\n <div class=\"vl-d-add\">\r\n <button type=\"button\" class=\"vl-d-add-btn\" (click)=\"designer.addSection()\">{{ dt.addSection }}</button>\r\n </div>\r\n</div>\r\n} @else {\r\n<div class=\"form-renderer\"\r\n [ngClass]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.style\">\r\n <form #formRef=\"ngForm\" *ngIf=\"form?.layoutSchema?.formSections?.length > 0\">\r\n <!-- the sections stand in the form's 12 columns, gridSpan wide; the sticky ones together form a column at the\r\n right that stays in view (on a phone it stands at the end); visibleWhen shows a section only while its\r\n field holds the value (a hidden section's fields do not count) -->\r\n <ng-template #sectionTpl let-formSection>\r\n <div class=\"section-card\" [style.--vl-section-span]=\"sectionSpanOf(formSection)\"\r\n [style.--vl-section-span-tablet]=\"sectionTabletSpanOf(formSection)\">\r\n <div *ngIf=\"formSection?.label?.caption\" class=\"section-header\">\r\n <div class=\"section-title\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.label?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(formSection?.label?.style)?.style\">\r\n {{ formSection.label.caption | vlDesignText:designTranslations }}\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"formSection?.formFields?.length > 0\" class=\"section-body\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.style)?.classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\">\r\n <!-- the field's style is its wrapper in the section grid; label, input and button are drawn by\r\n the shared <vl-control>. The button is a submit button, so Enter in a field presses it -->\r\n <div *ngFor=\"let formField of formSection.formFields | vlVisible\" class=\"field-row\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [attr.data-vl-path]=\"vlFieldPath(formField)\"\r\n [ngClass]=\"getStyleWithoutClasses(formField?.style)?.classes\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.field-row--locked]=\"isLocked(formField, formRef)\">\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\"\r\n [propertySchema]=\"form.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"form\"\r\n buttonType=\"submit\"\r\n [locked]=\"isLocked(formField, formRef)\"\r\n [lockHints]=\"lockHintsOf(formField, formRef)\"\r\n (lockedClick)=\"showMissing(formRef)\"\r\n (signIn)=\"signIn.emit()\"\r\n [list]=\"remoteData[formField.scope?.reference]\"\r\n [listLoading]=\"remoteLoading[formField.scope?.reference]\"\r\n [creditCardError]=\"creditCardError\"\r\n (toggled)=\"setformData()\"\r\n (buttonClick)=\"invokeFormBtnClick($event, form.propertySchema)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-container *ngFor=\"let formSection of sectionsIn(false)\">\r\n <ng-container *ngIf=\"sectionShown(formSection)\">\r\n <ng-container *ngTemplateOutlet=\"sectionTpl; context: { $implicit: formSection }\"></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <div *ngIf=\"sectionsIn(true).length\" class=\"sticky-column\" [style.--vl-section-span]=\"stickySpan()\"\r\n [style.--vl-section-span-tablet]=\"stickyTabletSpan()\"\r\n [class.sticky-column--stack-tablet]=\"stickyTabletSpan() === 12\">\r\n <ng-container *ngFor=\"let formSection of sectionsIn(true)\">\r\n <ng-container *ngIf=\"sectionShown(formSection)\">\r\n <ng-container *ngTemplateOutlet=\"sectionTpl; context: { $implicit: formSection }\"></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </form>\r\n</div>\r\n}\r\n", styles: [":host{display:block;width:100%;height:100%;min-height:0}.form-renderer{width:100%;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding:12px}.section-card{border:1px solid #e5e7eb;border-radius:var(--radius-sm, 8px);padding:12px;margin-bottom:12px;background:#fff;box-sizing:border-box}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-weight:600}.section-title{font-size:14px;color:#0f172a}.section-body{position:relative;width:100%;min-height:78px;box-sizing:border-box}.field-row{position:relative;min-width:0;width:100%;box-sizing:border-box}.field-row input,.field-row select,.field-row nz-select,.field-row textarea,.field-row button{max-width:100%;box-sizing:border-box}@media(max-width:768px){.section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}.field-row{grid-column:span 1!important}}@media(min-width:769px)and (max-width:1024px){.section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}.field-row{grid-column:span 6!important}}:host-context(.mobile-frame) .section-body,:host-context(.device-mobile) .section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}:host-context(.mobile-frame) .field-row,:host-context(.device-mobile) .field-row{grid-column:span 1!important}:host-context(.tablet-frame) .section-body,:host-context(.device-tablet) .section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}:host-context(.tablet-frame) .field-row,:host-context(.device-tablet) .field-row{grid-column:span 6!important}.field-row--locked{background:transparent!important;box-shadow:none!important;height:auto!important}form{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;align-items:start;padding-bottom:32px}.section-card{grid-column:span var(--vl-section-span, 12);min-width:0}.sticky-column .section-card{grid-column:auto}.sticky-column{grid-column:span var(--vl-section-span, 4) / -1;grid-row:1 / span 40;align-self:start;position:sticky;top:12px;z-index:2;min-width:0}@media(min-width:768px)and (max-width:1023px){.section-card{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 12))}.sticky-column{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 4)) / -1}.sticky-column.sticky-column--stack-tablet{grid-column:1 / -1;grid-row:auto;position:static}.sticky-column .section-card{grid-column:auto}}@media(max-width:767px){.section-card,.sticky-column{grid-column:1 / -1;grid-row:auto;position:static}}:host(.vl-design-tablet) .section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}:host(.vl-design-tablet) .field-row{grid-column:span 6!important}:host(.vl-design-tablet) .section-card{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 12))}:host(.vl-design-tablet) .sticky-column{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 4)) / -1}:host(.vl-design-tablet) .sticky-column.sticky-column--stack-tablet{grid-column:1 / -1;grid-row:auto;position:static}:host(.vl-design-mobile) .section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}:host(.vl-design-mobile) .field-row{grid-column:span 1!important}:host(.vl-design-mobile) .section-card,:host(.vl-design-mobile) .sticky-column{grid-column:1 / -1;grid-row:auto;position:static}:host(.vl-design-tablet) .sticky-column .section-card,:host(.vl-design-mobile) .sticky-column .section-card{grid-column:auto}.form-renderer{container-type:inline-size;container-name:vl-form}.section-card{container-type:inline-size;container-name:vl-section}@container vl-section (max-width: 559px){.section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}.field-row{grid-column:1 / -1!important}.field-row ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}}@container vl-form (max-width: 767px){.section-card,.sticky-column{grid-column:1 / -1;grid-row:auto;position:static}.sticky-column .section-card{grid-column:auto}}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
11395
+ args: [{ standalone: true, imports: [DesignFieldPipe, DesignTextPipe, CommonModule, FormsModule, VisiblePipe, ControlComponent, DragDropModule, DesignBarComponent, DropMarkerComponent], selector: 'vl-form', template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\r\n - new: a section with card false gets section-card--plain (no card look), in the app and on the canvas -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its form here - the same section cards, widths, sticky\r\n column, field wrappers and <vl-control> as the app, with drag, edit and delete around each element; the app's\r\n markup below is unchanged -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - new: sections side by side (gridSpan), the sticky ones as one column at the right, visibleWhen\r\n - change: lockHints (every reason, the missing fields as links), goToField; space under the last section\r\n - new: a locked button shows its hint, a click shows the missing fields (showMissing), the hint of a missing\r\n sign-in asks the app to sign in (signIn)\r\n - change: the wrapper of a locked button drops the layout's colour and shadow (field-row--locked) - the blue\r\n of the field style stayed around the grey button\r\n - new: a button is locked by needsLogin / needsValid of its layout (isLocked, field/button-lock.ts) -->\r\n<!-- Shuaib 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> (controls/control.ts) instead of the switch\r\n over types and controls in this template - the same building block as the dialog (#166)\r\n - change: scope.style is the input of every control (the drop-down took the field's style, check box\r\n and drop-down put scope.style around label and input); all classes of a style count\r\n - change: option.protected makes every control read only - check box, switch, radio, drop-down,\r\n password, text area, media were still editable; a protected field shows label and value -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - fix: every field label by getLabel (label.value, the layout's label.caption, then the DTO caption) -\r\n numbers and the period showed no label; a text field's control dropdown/switch/checkbox is used (#166, tests F2-F4)\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 - change: the text field is the one vl-textbox (#166 step 4.4)\r\n - new: radiobutton with vl-radio (text and Boolean) (#166 step 4.4)\r\n - new: a Boolean with control switch uses vl-switch (#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 instead of a one-line field (#166 step 4.4)\r\n - change: password with vl-password, the same field and eye as in dialog and card (#166 step 4.4)\r\n - change: validation rules only from the layout (vlRules: required, email, min/max length, pattern,\r\n minimum/maximum), messages via fieldMessage; number fields checked too (#166 step 4.6)\r\n - change: fields/columns with option.visible false are left out (vlVisible, #166)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\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 - 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: date and time fields use the shared picker markup (picker-field, DateTimePickerService)\r\n instead of PrimeNG's own icon with empty handlers -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: the form 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 - change: the credit card type is spelled creditCard. The rename of 2026-09-15 reached\r\n model.component.html and the whole Designer but not this file, so one data object rendered\r\n in a modal and stayed empty here\r\n - new: a @contract comment on the type switch and on the credit card case, so the rule sits\r\n next to the code that implements it -->\r\n@if (design) {\r\n<!-- design mode (the Designer's canvas): every section in the layout's widths, the sticky ones as the column at the\r\n right, a conditional one marked; every field - hidden ones faded - with drag, edit and delete. A field is\r\n drawn by the same <vl-control> as below, shown and not typed in; a click opens its settings -->\r\n<div class=\"form-renderer vl-d-root\"\r\n [ngClass]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.style\">\r\n <form (submit)=\"$event.preventDefault()\" cdkDropList cdkDropListOrientation=\"mixed\"\r\n [cdkDropListData]=\"form?.layoutSchema?.formSections || []\"\r\n [cdkDropListDisabled]=\"(form?.layoutSchema?.formSections?.length || 0) <= 1\"\r\n (cdkDropListDropped)=\"sectionDropped($event)\">\r\n <ng-template #designSection let-formSection let-si=\"index\">\r\n <div class=\"section-card vl-d-section\" cdkDrag [cdkDragData]=\"formSection\"\r\n [class.section-card--plain]=\"sectionPlainOf(formSection)\"\r\n [cdkDragDisabled]=\"(form?.layoutSchema?.formSections?.length || 0) <= 1\"\r\n [style.--vl-section-span]=\"sectionSpanOf(formSection)\"\r\n [style.--vl-section-span-tablet]=\"sectionTabletSpanOf(formSection)\"\r\n [class.vl-d-section--sticky]=\"sectionStickyOf(formSection)\"\r\n [class.vl-d-section--conditional]=\"!!formSection?.visibleWhen\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'section', sectionIndex: si })\"\r\n (cdkDragStarted)=\"designer.sectionDragStarted()\">\r\n <div class=\"section-header vl-d-section-head\">\r\n <div class=\"section-title\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.label?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(formSection?.label?.style)?.style\">\r\n {{ (formSection?.label?.caption | vlDesignText:designTranslations) || dt.section + ' ' + (si + 1) }}\r\n </div>\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'add', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragSection, add: dt.addButton, edit: dt.editSection, delete: dt.deleteSection }\"\r\n (act)=\"sectionAction($event, si)\"></vl-design-bar>\r\n </div>\r\n\r\n <div class=\"section-body\" [id]=\"designer.listId(si)\" data-vl-design-list\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.style)?.classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\"\r\n cdkDropList [cdkDropListData]=\"formSection.formFields || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event, si)\"\r\n (cdkDropListEntered)=\"designer.entered(si)\"\r\n (cdkDropListExited)=\"designer.exited()\"\r\n (cdkDropListDropped)=\"designer.dropped($event, si)\">\r\n @if (designer.isEmptyHint(si)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else if (!formSection.formFields?.length) {\r\n <div class=\"vl-d-empty\">{{ dt.emptySection }}</div>\r\n }\r\n @for (formField of formSection.formFields || []; track $index; let fi = $index) {\r\n <div class=\"field-row vl-d-item\" [attr.data-vl-design-field]=\"fi\"\r\n [ngClass]=\"getStyleWithoutClasses(formField?.style)?.classes\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'field', sectionIndex: si, fieldIndex: fi })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(si, fi)\"\r\n (cdkDragStarted)=\"designer.dragStarted(si, fi)\"\r\n (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(si, fi)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragField, edit: dt.editField, delete: dt.deleteField }\"\r\n (act)=\"fieldAction($event, si, fi)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"formField?.option?.visible === false\"\r\n (click)=\"designer.editField(si, fi, 'input')\">\r\n @if (formField?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\" [propertySchema]=\"form.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" container=\"form\" buttonType=\"button\"\r\n [creditCardError]=\"creditCardError\"></vl-control>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-container *ngFor=\"let formSection of sectionsIn(false)\">\r\n <ng-container *ngTemplateOutlet=\"designSection; context: { $implicit: formSection, index: sectionIndexOf(formSection) }\"></ng-container>\r\n </ng-container>\r\n <div *ngIf=\"sectionsIn(true).length\" class=\"sticky-column\" [style.--vl-section-span]=\"stickySpan()\"\r\n [style.--vl-section-span-tablet]=\"stickyTabletSpan()\"\r\n [class.sticky-column--stack-tablet]=\"stickyTabletSpan() === 12\">\r\n <ng-container *ngFor=\"let formSection of sectionsIn(true)\">\r\n <ng-container *ngTemplateOutlet=\"designSection; context: { $implicit: formSection, index: sectionIndexOf(formSection) }\"></ng-container>\r\n </ng-container>\r\n </div>\r\n </form>\r\n <div class=\"vl-d-add\">\r\n <button type=\"button\" class=\"vl-d-add-btn\" (click)=\"designer.addSection()\">{{ dt.addSection }}</button>\r\n </div>\r\n</div>\r\n} @else {\r\n<div class=\"form-renderer\"\r\n [ngClass]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(form?.layoutSchema?.style)?.style\">\r\n <form #formRef=\"ngForm\" *ngIf=\"form?.layoutSchema?.formSections?.length > 0\">\r\n <!-- the sections stand in the form's 12 columns, gridSpan wide; the sticky ones together form a column at the\r\n right that stays in view (on a phone it stands at the end); visibleWhen shows a section only while its\r\n field holds the value (a hidden section's fields do not count) -->\r\n <ng-template #sectionTpl let-formSection>\r\n <div class=\"section-card\" [class.section-card--plain]=\"sectionPlainOf(formSection)\" [style.--vl-section-span]=\"sectionSpanOf(formSection)\"\r\n [style.--vl-section-span-tablet]=\"sectionTabletSpanOf(formSection)\">\r\n <div *ngIf=\"formSection?.label?.caption\" class=\"section-header\">\r\n <div class=\"section-title\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.label?.style)?.classes\"\r\n [ngStyle]=\"getStyleWithoutClasses(formSection?.label?.style)?.style\">\r\n {{ formSection.label.caption | vlDesignText:designTranslations }}\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"formSection?.formFields?.length > 0\" class=\"section-body\"\r\n [ngClass]=\"getStyleWithoutClasses(formSection?.style)?.classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\">\r\n <!-- the field's style is its wrapper in the section grid; label, input and button are drawn by\r\n the shared <vl-control>. The button is a submit button, so Enter in a field presses it -->\r\n <div *ngFor=\"let formField of formSection.formFields | vlVisible\" class=\"field-row\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [attr.data-vl-path]=\"vlFieldPath(formField)\"\r\n [attr.data-vl-at]=\"vlPlace(formSection, formField)\"\r\n [ngClass]=\"getStyleWithoutClasses(formField?.style)?.classes\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.field-row--locked]=\"isLocked(formField, formRef)\">\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\"\r\n [propertySchema]=\"form.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"form\"\r\n buttonType=\"submit\"\r\n [locked]=\"isLocked(formField, formRef)\"\r\n [lockHints]=\"lockHintsOf(formField, formRef)\"\r\n (lockedClick)=\"showMissing(formRef)\"\r\n (signIn)=\"signIn.emit()\"\r\n [list]=\"remoteData[formField.scope?.reference]\"\r\n [listLoading]=\"remoteLoading[formField.scope?.reference]\"\r\n [creditCardError]=\"creditCardError\"\r\n (picked)=\"suggestionPicked($event, formField)\"\r\n (toggled)=\"setformData()\"\r\n (buttonClick)=\"invokeFormBtnClick($event, form.propertySchema)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-container *ngFor=\"let formSection of sectionsIn(false)\">\r\n <ng-container *ngIf=\"sectionShown(formSection)\">\r\n <ng-container *ngTemplateOutlet=\"sectionTpl; context: { $implicit: formSection }\"></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <div *ngIf=\"sectionsIn(true).length\" class=\"sticky-column\" [style.--vl-section-span]=\"stickySpan()\"\r\n [style.--vl-section-span-tablet]=\"stickyTabletSpan()\"\r\n [class.sticky-column--stack-tablet]=\"stickyTabletSpan() === 12\">\r\n <ng-container *ngFor=\"let formSection of sectionsIn(true)\">\r\n <ng-container *ngIf=\"sectionShown(formSection)\">\r\n <ng-container *ngTemplateOutlet=\"sectionTpl; context: { $implicit: formSection }\"></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </form>\r\n</div>\r\n}\r\n", styles: [":host{display:block;width:100%;height:100%;min-height:0}.form-renderer{width:100%;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding:12px}.section-card{border:1px solid var(--vl-color-border, #e5e7eb);border-radius:var(--radius-sm, 8px);padding:12px;margin-bottom:12px;background:var(--vl-color-surface, #ffffff);box-sizing:border-box}.section-card.section-card--plain{border:0;background:transparent;padding:0;box-shadow:none}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-weight:600}.section-title{font-size:14px;color:var(--vl-color-text, #0f172a)}.section-body{position:relative;width:100%;min-height:78px;box-sizing:border-box}.field-row{position:relative;min-width:0;width:100%;box-sizing:border-box}.field-row input,.field-row select,.field-row nz-select,.field-row textarea,.field-row button{max-width:100%;box-sizing:border-box}@media(max-width:768px){.section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}.field-row{grid-column:span 1!important}}@media(min-width:769px)and (max-width:1024px){.section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}.field-row{grid-column:span 6!important}}:host-context(.mobile-frame) .section-body,:host-context(.device-mobile) .section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}:host-context(.mobile-frame) .field-row,:host-context(.device-mobile) .field-row{grid-column:span 1!important}:host-context(.tablet-frame) .section-body,:host-context(.device-tablet) .section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}:host-context(.tablet-frame) .field-row,:host-context(.device-tablet) .field-row{grid-column:span 6!important}.field-row--locked{background:transparent!important;box-shadow:none!important;height:auto!important}form{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;align-items:start;padding-bottom:32px}.section-card{grid-column:span var(--vl-section-span, 12);min-width:0}.sticky-column .section-card{grid-column:auto}.sticky-column{grid-column:span var(--vl-section-span, 4) / -1;grid-row:1 / span 40;align-self:start;position:sticky;top:12px;z-index:2;min-width:0}@media(min-width:768px)and (max-width:1023px){.section-card{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 12))}.sticky-column{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 4)) / -1}.sticky-column.sticky-column--stack-tablet{grid-column:1 / -1;grid-row:auto;position:static}.sticky-column .section-card{grid-column:auto}}@media(max-width:767px){.section-card,.sticky-column{grid-column:1 / -1;grid-row:auto;position:static}}:host(.vl-design-tablet) .section-body{grid-template-columns:repeat(6,minmax(0,1fr))!important}:host(.vl-design-tablet) .field-row{grid-column:span 6!important}:host(.vl-design-tablet) .section-card{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 12))}:host(.vl-design-tablet) .sticky-column{grid-column:span var(--vl-section-span-tablet, var(--vl-section-span, 4)) / -1}:host(.vl-design-tablet) .sticky-column.sticky-column--stack-tablet{grid-column:1 / -1;grid-row:auto;position:static}:host(.vl-design-mobile) .section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}:host(.vl-design-mobile) .field-row{grid-column:span 1!important}:host(.vl-design-mobile) .section-card,:host(.vl-design-mobile) .sticky-column{grid-column:1 / -1;grid-row:auto;position:static}:host(.vl-design-tablet) .sticky-column .section-card,:host(.vl-design-mobile) .sticky-column .section-card{grid-column:auto}.form-renderer{container-type:inline-size;container-name:vl-form}.section-card{container-type:inline-size;container-name:vl-section}@container vl-section (max-width: 559px){.section-body{grid-template-columns:repeat(1,minmax(0,1fr))!important}.field-row{grid-column:1 / -1!important}.field-row ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}}@container vl-form (max-width: 767px){.section-card,.sticky-column{grid-column:1 / -1;grid-row:auto;position:static}.sticky-column .section-card{grid-column:auto}}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
10834
11396
  }], propDecorators: { errorMessages: [{
10835
11397
  type: Input
10836
11398
  }], creditCardError: [{
@@ -11086,6 +11648,10 @@ class GridComponent {
11086
11648
  vlFieldPath = testFieldPath;
11087
11649
  vlAction = testAction;
11088
11650
  vlWrites = testWrites;
11651
+ /** A row's save icon writes real data unless it keeps the row in a browser list. */
11652
+ rowWrites(option) {
11653
+ return isBrowserSource(option) ? 'false' : 'true';
11654
+ }
11089
11655
  get designTranslations() { return this.design?.translations; }
11090
11656
  design = null;
11091
11657
  /** What was chosen or changed on the Designer's canvas. */
@@ -11966,7 +12532,7 @@ class GridComponent {
11966
12532
  return this.tableitemInfo?.propertySchema?.[this.getScope(reference)]?.[reference.split('/').pop() || '']?.type ?? '';
11967
12533
  }
11968
12534
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: GridComponent, deps: [{ token: RequestService }, { token: UtilityService }, { token: NotificationService }, { token: i4.OktaAuthStateService }], target: i0.ɵɵFactoryTarget.Component });
11969
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: GridComponent, isStandalone: true, selector: "vl-grid", inputs: { errorMessages: "errorMessages", environment: "environment", selectedLanguageInfo: "selectedLanguageInfo", tableitemInfo: "tableitemInfo", form: "form", isTableDataLoad: "isTableDataLoad", currenTableOptions: "currenTableOptions", projectSeleted: "projectSeleted", pageSize: "pageSize", currentPage: "currentPage", pages: "pages", scrollPagination: "scrollPagination", userInfo: "userInfo", pageData: "pageData", design: "design" }, outputs: { editRow: "editRow", designChange: "designChange", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange", onGridScroll: "onGridScroll", showGridLink: "showGridLink", gridButtonClick: "gridButtonClick", gridIncreamentClick: "gridIncreamentClick", gridDecreamentClick: "gridDecreamentClick", gridImgClick: "gridImgClick" }, host: { properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, viewQueries: [{ propertyName: "scrollSentinel", first: true, predicate: ["scrollSentinel"], descendants: true }, { propertyName: "gridForm", first: true, predicate: ["gridForm"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: a calculated column (innerAction calculate, older { action: multiply }) through isCalculated / calculatedValue -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - fix: test marks like the other containers - a row is a record (data-vl-record), a cell and a footer field carry\r\n data-vl-field and data-vl-path, a column button data-vl-action / data-vl-writes, the action icons save / delete -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - change: the table's footer draws its fields and buttons by <vl-control> like form and dialog (one pattern) -->\r\n<!-- Shuaib, 2026-10-27\r\n - change: grid search takes project CSS classes from search.style / boxStyle / inputStyle / iconStyle /\r\n buttonStyle; the app and design canvas share this template. Search/filter behavior stays the same.\r\n - fix: the clear action is a keyboard-accessible button with a translated accessible name. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - new: the end of the table asks for the next page when it pages by scrolling (scrollSentinel)\r\n - fix: the page bar is hidden while the table pages by scrolling, like the cards (hotel Reservations)\r\n - fix: the page bar follows pagination.visible (Show pagination off in the editor) - it showed anyway\r\n - fix: \"no records\" only once loading is done - it showed while the rows were on their way (luv2shop Orders)\r\n - fix: a cell stays a table cell (cellStyle) - display: block of an image column pushed every column one to the left -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: every class of a style is set (classNames), not only the first -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: the column filter is no part of the row form (ngModelOptions standalone) - without a name Angular stopped\r\n the whole grid with NG01352 (hotel Reservations stayed empty) -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its grid page here - the same table, cells, footer and\r\n page bar as the app, with sample rows; columns with drag, edit, delete and resize; a data object's field\r\n dropped on the heads becomes a column\r\n - new: the search box (layoutSchema.search), row stripes (layoutSchema.rowStyle) and column sizes\r\n (option.width / option.height) the Designer sets\r\n - change: a cell and the footer stand in templates (gridCell, gridFooter) that the app and the canvas share -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: caption and date pattern from the layout - a data object holds names and types only -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - change: the delete icon of a row goes through deleteRow (PageData for a browser list, A4)\r\n - new: editing as the page sets it (layoutSchema.edit.mode): \"row\" - pencil, the unlocked cells of\r\n that row become <vl-control mode=\"edit\"> (every type, checked like the dialog), \u2713 saves, \u2715 cancels;\r\n \"dialog\" - pencil opens the page's dialog with the record; without edit the grid is read only.\r\n The old inputs that wrote text, number and check box cells into the row without saving are gone\r\n - fix: the table takes its style from its page (layoutSchema.style); the menu or header option's style\r\n is the style of that button - luv2shop's cart table got the cart pill's max-width 90px -->\r\n<!-- Shuaib 2026-10-20\r\n - change: the cells that show a value are drawn by the shared <vl-control> in display mode (#166):\r\n the row's value of every type, read only - date, time, drop-down, autocomplete and period cells\r\n were inputs bound to the form's property (the same value in every row); integer and bigdecimal\r\n columns stayed empty\r\n - kept: unlocked text and number cells (typed in, saved by the action column), quantity +/-, multiply,\r\n the check box of the row, action columns, buttons, the footer\r\n - change: a locked check box is shown read only; it could be ticked\r\n - fix: action icons, button and footer labels read style.classes?.[0]; a style without classes (the Designer's default {}) threw -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: date and time in one value (type datetime or control dateTimepicker): field and display (#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: the footer's number field is the one vl-number (#166 step 4.4)\r\n - change: the footer's text field is the one vl-textbox (#166 step 4.4)\r\n - change: cells and footer follow the layout's control (password, textArea, switch, combobox) with the\r\n shared controls, cells read only and compact (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - change: footer fields: rules only from the layout (vlRules) and the message of the first error (#166 step 4.6)\r\n - change: fields/columns with option.visible false are left out (vlVisible, #166)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\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 - 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: date and time cells use the shared picker markup (picker-field, DateTimePickerService);\r\n their PrimeNG icon opened the calendar together with the system keyboard -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: grid cells render legacy checkbox fields through the boolean control. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: @contract comments on the sorting, on the column filter and on the footer. The filter\r\n reads option.filter and never option.columnFilter, which is the mistake a layout author\r\n makes without being told -->\r\n @if (design) {\r\n <!-- design mode (the Designer's canvas): the table with sample rows, the search box, footer and page bar as the app\r\n shows them; every column - hidden ones faded - with drag, edit, delete and its edges to resize; a data object's\r\n field dropped on the column heads becomes a column there. A click on a head opens the column's settings -->\r\n <div class=\"reservation-container vl-d-root\" (click)=\"selectGrid()\">\r\n <div class=\"vl-d-container-bar\">\r\n <vl-design-bar [actions]=\"['edit']\" [titles]=\"{ edit: dt.editGrid }\" (act)=\"selectGrid()\"></vl-design-bar>\r\n </div>\r\n <ng-container *ngIf=\"showSearch\"><ng-container *ngTemplateOutlet=\"gridSearch\"></ng-container></ng-container>\r\n @if (!tableitemInfo?.layoutSchema?.elements?.length) {\r\n <div class=\"vl-d-empty vl-d-grid-empty\" [id]=\"designListId\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"[]\" (cdkDropListDropped)=\"columnDropped($event)\">\r\n {{ dt.emptyGrid }}\r\n </div>\r\n } @else {\r\n <nz-table #designTable [nzScroll]=\"{ x: 'max-content' }\" [nzData]=\"designRows\" [nzBordered]=\"true\" [nzFrontPagination]=\"false\"\r\n [nzShowPagination]=\"false\" [style]=\"getStyleWithoutClasses(tableitemInfo?.layoutSchema?.style).style\">\r\n <thead>\r\n <tr [id]=\"designListId\" data-vl-design-list cdkDropList cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"tableitemInfo.layoutSchema.elements\" (cdkDropListDropped)=\"columnDropped($event)\">\r\n @for (column of tableitemInfo.layoutSchema.elements; track $index; let ci = $index) {\r\n <th class=\"vl-d-th vl-d-item\" cdkDrag cdkDragLockAxis=\"x\" [cdkDragData]=\"{ vlDesign: 'column', index: ci }\"\r\n [ngStyle]=\"columnSize(column)\"\r\n [class.vl-d-hidden]=\"column?.option?.visible === false\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'column', index: ci })\"\r\n (cdkDragStarted)=\"columnDragStarted()\" (click)=\"$event.stopPropagation(); columnAction('edit', ci)\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragColumn, edit: dt.editColumn, delete: dt.deleteColumn }\"\r\n (act)=\"columnAction($event, ci)\"></vl-design-bar>\r\n @if (column?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n {{ column?.label?.caption | vlDesignText:designTranslations }}\r\n <span class=\"vl-d-resize vl-d-resize--width\" [attr.title]=\"dt.resizeWidth\"\r\n (mousedown)=\"startResize($event, ci, 'width')\" (click)=\"$event.stopPropagation()\"></span>\r\n <span class=\"vl-d-resize vl-d-resize--height\" [attr.title]=\"dt.resizeHeight\"\r\n (mousedown)=\"startResize($event, ci, 'height')\" (click)=\"$event.stopPropagation()\"></span>\r\n </th>\r\n }\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n <tr *ngIf=\"hasAnyColumnFilter()\" class=\"grid-filter-row\">\r\n @for (column of tableitemInfo.layoutSchema.elements; track $index) {\r\n <th class=\"grid-filter-cell\" [class.vl-d-hidden]=\"column?.option?.visible === false\">\r\n @if (column?.option?.filter?.filtering === true && column?.scope?.reference) {\r\n <div class=\"grid-filter-input-wrapper\">\r\n <input type=\"text\" class=\"grid-filter-input\" disabled [placeholder]=\"getColumnFilterPlaceholder(column)\" />\r\n <button type=\"button\" class=\"grid-filter-operator-button\" disabled><span nz-icon nzType=\"filter\"></span></button>\r\n </div>\r\n }\r\n </th>\r\n }\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (data of designTable.data; track $index; let i = $index) {\r\n <tr [ngStyle]=\"rowStyleOf(i)\">\r\n @for (col of tableitemInfo.layoutSchema.elements; track $index) {\r\n <td [style]=\"cellStyle(col, i)\" [class.vl-d-hidden]=\"col?.option?.visible === false\">\r\n <div class=\"vl-d-body vl-d-cell\">\r\n <ng-container *ngTemplateOutlet=\"gridCell; context: { col: col, data: data, i: i }\"></ng-container>\r\n </div>\r\n </td>\r\n }\r\n <td *ngIf=\"canEdit\" class=\"grid-edit-cell\">\r\n <button type=\"button\" class=\"grid-edit-btn\" disabled>&#9998;</button>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </nz-table>\r\n }\r\n @if (tableitemInfo?.footer?.formFields && designAll.length) {\r\n <div class=\"vl-d-body\"><ng-container *ngTemplateOutlet=\"gridFooter\"></ng-container></div>\r\n }\r\n @if (designAll.length && !designInfo?.layoutSchema?.pagination?.top && designInfo?.layoutSchema?.pagination?.bottom) {\r\n <div>\r\n <vl-pagination [itemInfo]=\"designInfo\" [pageSize]=\"designPageSize\" [currentPage]=\"designPage\"\r\n [pages]=\"designPages\" (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div *ngIf=\"!tableitemInfo.data?.length && !isTableDataLoad && !pageData?.loading\" class=\"alert alert-warning col-md-12\"\r\n role=\"alert\">\r\n {{ noRecordText }}\r\n </div>\r\n <div *ngIf=\"tableitemInfo.data?.length\" class=\"reservation-container pt-5 px-3\">\r\n <ng-container *ngIf=\"showSearch\"><ng-container *ngTemplateOutlet=\"gridSearch\"></ng-container></ng-container>\r\n <!-- the controls of the row being edited join this form, so \u2713 checks them like the dialog does -->\r\n <form #gridForm=\"ngForm\" (ngSubmit)=\"saveRow()\">\r\n <nz-table #basicTable [nzData]=\"gridDisplayData\"\r\n [nzNoResult]=\"'No matching records found'\" [nzBordered]=\"true\"\r\n [nzFrontPagination]=\"currenTableOptions?.pagination?.tabs\"\r\n [style]=\"getStyleWithoutClasses(tableitemInfo?.layoutSchema?.style).style\"\r\n (scroll)=\"onScrollEvent($event)\"\r\n [nzLoading]=\"isTableDataLoad\">\r\n <thead>\r\n <!-- @contract decision: option.sortable is read here\r\n reality: nzSortFn is wired to getColumnSortFn since 2026-09-16; before that\r\n the key was decoration. The column also needs a scope.reference -\r\n without one getColumnSortFn has nothing to sort by.\r\n seen: grid.component.ts:338 -->\r\n <!-- Column headings and sorting -->\r\n <tr>\r\n <th *ngFor=\"let column of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n [ngStyle]=\"columnSize(column)\"\r\n [nzSortFn]=\"\r\n column?.option?.sortable\r\n ? getColumnSortFn(column)\r\n : false\r\n \"\r\n [class.grid-cell--editing]=\"editingRow && editableCol(column)\"\r\n [class.grid-cell--wide]=\"editingRow && editableCol(column) && wideEditCell(column)\">\r\n \r\n {{ column?.label?.caption | vlDesignText:designTranslations }}\r\n </th>\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n \r\n <!-- @contract decision: the column filter reads option.filter, NOT option.columnFilter\r\n reality: option.filter.filtering switches it on, option.filter.defaultOperator\r\n starts the comparison (the renderer falls back to contains), and\r\n option.filter.placeholder labels the input.\r\n failure: option.columnFilter is read nowhere, here or in the runtime app. A\r\n column carrying it looks filterable in the file and is not on screen.\r\n seen: grid.component.ts:450-475; 5 uses of columnFilter across the reference\r\n projects, all of them dead -->\r\n <!-- Column filters -->\r\n <tr *ngIf=\"hasAnyColumnFilter()\" class=\"grid-filter-row\">\r\n \r\n <th *ngFor=\"let column of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n class=\"grid-filter-cell\">\r\n \r\n <ng-container *ngIf=\"\r\n column?.option?.filter?.filtering === true &&\r\n column?.scope?.reference\r\n \">\r\n \r\n <div class=\"grid-filter-input-wrapper\">\r\n <input type=\"text\" class=\"grid-filter-input\" vlCustomKeyboard=\"string\"\r\n [placeholder]=\"getColumnFilterPlaceholder(column)\"\r\n [ngModel]=\"getColumnFilterState(column).value\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"\r\n setColumnFilterValue(column, $event)\r\n \" />\r\n \r\n <!-- Operator selection button -->\r\n <button type=\"button\"\r\n class=\"grid-filter-operator-button\" nz-dropdown\r\n nzTrigger=\"click\"\r\n [nzDropdownMenu]=\"operatorMenu\"\r\n [class.grid-filter-operator-button--active]=\"\r\n hasActiveColumnFilter(column)\r\n \" [title]=\"\r\n 'Operator: ' +\r\n getFilterOperatorLabel(\r\n getColumnFilterState(column).operator\r\n )\r\n \">\r\n \r\n <span nz-icon nzType=\"filter\"></span>\r\n </button>\r\n \r\n <!-- Clear current column filter -->\r\n <button *ngIf=\"hasActiveColumnFilter(column)\"\r\n type=\"button\" class=\"grid-filter-clear-button\"\r\n aria-label=\"Clear column filter\"\r\n title=\"Clear filter\"\r\n (click)=\"clearColumnFilter(column)\">\r\n \r\n <span nz-icon nzType=\"close\"></span>\r\n </button>\r\n </div>\r\n \r\n <!-- Operator dropdown -->\r\n <nz-dropdown-menu #operatorMenu=\"nzDropdownMenu\">\r\n <ul nz-menu class=\"grid-filter-operator-menu\">\r\n <li *ngFor=\"let operator of filterOperators\"\r\n nz-menu-item [nzSelected]=\"\r\n getColumnFilterState(column).operator ===\r\n operator.value\r\n \" (click)=\"\r\n setColumnFilterOperator(\r\n column,\r\n operator.value\r\n )\r\n \">\r\n \r\n <span *ngIf=\"\r\n getColumnFilterState(column).operator ===\r\n operator.value\r\n \" nz-icon nzType=\"check\">\r\n </span>\r\n \r\n {{ operator.label }}\r\n </li>\r\n </ul>\r\n </nz-dropdown-menu>\r\n </ng-container>\r\n </th>\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n </thead>\r\n <!-- @contract decision: a cell shows the row's value through <vl-control mode=\"display\">\r\n reality: every type is shown (integer, bigdecimal and the credit card stayed empty before);\r\n unlocked text and number cells, quantity, multiply and the check box keep their own\r\n blocks, because they write into the row.\r\n \r\n @contract decision: columns without scope.reference are valid\r\n reality: with option.actionColumn they render save/delete icons, otherwise a\r\n button. That is why the conditions below all guard on the reference. -->\r\n <tbody>\r\n <tr *ngFor=\"let data of basicTable.data; let i = index\" [ngStyle]=\"rowStyleOf(i)\" data-vl-record>\r\n <td *ngFor=\"let col of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(col)\" [attr.data-vl-path]=\"vlFieldPath(col)\"\r\n [style]=\"cellStyle(col, i)\"\r\n [class.grid-cell--editing]=\"cellEditing(col, data)\"\r\n [class.grid-cell--wide]=\"cellEditing(col, data) && wideEditCell(col)\">\r\n <!-- a column without property: action icons or a button. Unlocked text and number cells\r\n are typed in (the row is saved by the action column), a check box ticks the row; every\r\n other cell shows the row's value through the shared <vl-control> in display mode -->\r\n @if (cellEditing(col, data)) {\r\n <!-- inside the form: the controls of the row being edited join it, so \u2713 checks them -->\r\n <vl-control mode=\"edit\" [field]=\"col | vlDesignField:designTranslations\" [propertySchema]=\"rowSchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"rowSaveTried\" [list]=\"remoteData[col.scope.reference]\"\r\n [hideLabel]=\"true\" [compact]=\"true\">\r\n </vl-control>\r\n } @else {\r\n <ng-container *ngTemplateOutlet=\"gridCell; context: { col: col, data: data, i: i }\"></ng-container>\r\n }\r\n </td>\r\n <!-- edit: pencil, or \u2713 save / \u2715 cancel on the row being edited (layoutSchema.edit) -->\r\n <td *ngIf=\"canEdit\" class=\"grid-edit-cell\">\r\n @if (editingRow === data) {\r\n <button type=\"submit\" class=\"grid-edit-btn grid-edit-btn--save\" [attr.aria-label]=\"t('Save')\"\r\n data-vl-action=\"saveRow\">&#10003;</button>\r\n <button type=\"button\" class=\"grid-edit-btn\" [attr.aria-label]=\"t('Cancel')\"\r\n data-vl-action=\"cancelRow\" (click)=\"cancelEdit()\">&#10005;</button>\r\n } @else {\r\n <button type=\"button\" class=\"grid-edit-btn\" [attr.aria-label]=\"t('Edit')\" [disabled]=\"editingRow\"\r\n data-vl-action=\"editRow\" (click)=\"startEdit(data)\">&#9998;</button>\r\n }\r\n </td>\r\n </tr>\r\n </tbody>\r\n </nz-table>\r\n </form>\r\n </div>\r\n \r\n <!-- table footer -->\r\n <ng-container *ngIf=\"tableitemInfo?.footer?.formFields && tableitemInfo.data?.length\">\r\n <ng-container *ngTemplateOutlet=\"gridFooter\"></ng-container>\r\n </ng-container>\r\n \r\n <!-- scrolling: the end of the runtime table asks for the next page -->\r\n @if (scrollPagination) {<div #scrollSentinel class=\"scroll-pagination-sentinel\" aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\"></div>}\r\n \r\n <!-- bottom pagination on grid -->\r\n <div\r\n *ngIf=\"tableitemInfo.data?.length && tableitemInfo?.layoutSchema?.pagination?.visible !== false && !scrollPagination && !tableitemInfo?.layoutSchema?.pagination?.top && tableitemInfo?.layoutSchema?.pagination?.bottom\">\r\n <vl-pagination [itemInfo]=\"tableitemInfo\" [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 <!-- the search box above the table (layoutSchema.search) -->\r\n <ng-template #gridSearch>\r\n <div class=\"grid-toolbar\" [ngClass]=\"[searchPositionClass, classNames(tableitemInfo?.layoutSchema?.search?.style)]\">\r\n <div class=\"grid-search-box\" [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.boxStyle)\">\r\n <span nz-icon nzType=\"search\" class=\"grid-search-icon\" aria-hidden=\"true\"\r\n [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.iconStyle)\"></span>\r\n <input type=\"text\" class=\"grid-search-input\" [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.inputStyle)\" vlCustomKeyboard=\"string\" [placeholder]=\"searchPlaceholder()\"\r\n [ngModel]=\"searchText\" (ngModelChange)=\"searchText = $event\" [ngModelOptions]=\"{ standalone: true }\" />\r\n <button *ngIf=\"searchText\" type=\"button\" class=\"grid-search-clear\"\r\n [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.buttonStyle)\"\r\n [attr.aria-label]=\"t('Clear search')\" (click)=\"searchText = ''\">\r\n <span nz-icon nzType=\"close-circle\" aria-hidden=\"true\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- one cell that is not edited: action icons or a button, quantity, a product, or the row's value (the app and the\r\n canvas); the cell of the row being edited stays in the app's form above -->\r\n <ng-template #gridCell let-col=\"col\" let-data=\"data\" let-i=\"i\">\r\n @if (!col?.scope?.reference) {\r\n <span *ngIf=\"col.option?.actionColumn\">\r\n <span nz-icon\r\n *ngIf=\"setActionColumn(col.option?.save, data)\"\r\n [nzType]=\"col.option?.save?.icon\"\r\n [nzTheme]=\"'twotone'\"\r\n [style]=\"col.option?.save?.style\"\r\n [nzTwotoneColor]=\"'#52c41a'\"\r\n [class]=\"classNames(col.option?.save?.style)\" data-vl-action=\"save\" data-vl-writes=\"true\"\r\n (click)=\"upsertAction(col.option?.save, data)\">\r\n </span>\r\n <span nz-icon\r\n *ngIf=\"setActionColumn(col.option?.delete, data)\"\r\n [nzType]=\"col.option?.delete?.icon\"\r\n [nzTheme]=\"'twotone'\"\r\n [style]=\"col.option?.delete?.style\"\r\n [nzTwotoneColor]=\"'#FF0000'\"\r\n [class]=\"classNames(col.option?.delete?.style)\" data-vl-action=\"delete\" data-vl-writes=\"true\"\r\n (click)=\"deleteRow(col.option?.delete, data)\"></span>\r\n \r\n </span>\r\n <span *ngIf=\"!col.option?.actionColumn\">\r\n <button type=\"submit\"\r\n [attr.data-vl-action]=\"vlAction(col.option)\" [attr.data-vl-writes]=\"vlWrites(col.option)\"\r\n [style]=\"getStyleWithoutClasses(col?.label?.style).style\"\r\n (click)=\"invokeRowBtnClick(col.option, data)\"\r\n [class]=\"classNames(col?.label?.style)\">\r\n {{ col.label?.caption | vlDesignText:designTranslations }}\r\n </button>\r\n </span>\r\n } @else if (cellType(col) === 'quantity') {\r\n <div style=\"display: flex; align-items: center;\">\r\n <button pButton icon=\"pi pi-minus\"\r\n (click)=\"decrementQuantity(i,col.scope?.reference.split('/').pop(), col.option)\"\r\n [disabled]=\"data.quantity <= 0\"\r\n style=\"margin-right: 8px; height: 10px; width: 10px;\"></button>\r\n <span>{{ data[col.scope?.reference.split('/').pop()]\r\n }}</span>\r\n <button pButton icon=\"pi pi-plus\"\r\n (click)=\"incrementQuantity(i, col.scope?.reference.split('/').pop(), col.option)\"\r\n style=\"margin-left: 8px; height: 10px; width: 10px;\"></button>\r\n </div>\r\n } @else if (cellType(col) === 'number' && isCalculated(col)) {\r\n <span>{{ calculatedValue(col, data) | number:'1.2-2' }}</span>\r\n } @else {\r\n <vl-control mode=\"display\" [field]=\"col | vlDesignField:designTranslations\" [record]=\"data\"\r\n [propertySchema]=\"tableitemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [list]=\"remoteData[col.scope.reference]\"\r\n [hideLabel]=\"true\" [styleValue]=\"false\" [compact]=\"true\"\r\n (linkClicked)=\"showLinkDetails(col.option, data)\"\r\n (mediaClicked)=\"invokeTableImageClick(col, data)\">\r\n </vl-control>\r\n }\r\n </ng-template>\r\n <!-- the table's footer -->\r\n <ng-template #gridFooter>\r\n <div class=\"table-footer flex flex-column align-items-end gap-2 pt-2 mx-4 border-top-1 border-cyan-500\">\r\n <!-- every footer field and button is drawn by the shared <vl-control>, like the form and the dialog: the\r\n same controls, protected = a locked input, no * on it, start values, rules (it had its own switch\r\n for text and number with its own protected text - user 2026-10-29: the same pattern everywhere) -->\r\n <div *ngFor=\"let tableField of tableitemInfo?.footer?.formFields | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(tableField)\" [attr.data-vl-path]=\"vlFieldPath(tableField)\">\r\n <vl-control [field]=\"tableField | vlDesignField:designTranslations\" [propertySchema]=\"tableitemInfo?.propertySchema ?? form?.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [saveTried]=\"false\" container=\"form\" buttonType=\"button\"\r\n [list]=\"remoteData[tableField.scope?.reference]\"\r\n (buttonClick)=\"invokeGridBtnClick($event, tableitemInfo.propertySchema)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </ng-template>\r\n ", styles: [".grid-filter-row th{padding:8px;vertical-align:middle;background:#fafafa}.grid-filter-cell{min-width:150px}.grid-filter-input-wrapper{display:flex;align-items:stretch;width:100%}.grid-filter-input{width:100%;min-width:0;min-height:34px;padding:5px 8px;border:1px solid #d9d9d9;border-right:0;border-radius:4px 0 0 4px;outline:none}.grid-filter-input:focus{border-color:#1677ff}.grid-filter-operator-button,.grid-filter-clear-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:34px;padding:0;cursor:pointer;background:#fff;border:1px solid #d9d9d9}.grid-filter-operator-button{color:#595959;border-radius:0 4px 4px 0}.grid-filter-operator-button:hover,.grid-filter-operator-button--active{color:#1677ff;border-color:#1677ff}.grid-filter-clear-button{margin-left:5px;color:#ff4d4f;border-radius:4px}.grid-filter-clear-button:hover{color:#fff;background:#ff4d4f;border-color:#ff4d4f}.grid-filter-operator-menu{min-width:190px}:host ::ng-deep .ant-table-content.has-more-right{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent)}:host ::ng-deep .ant-table-content.has-more-left{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent)}:host ::ng-deep .ant-table-content.has-more-left.has-more-right{-webkit-mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent)}::ng-deep :where(.grid-edit-cell){width:1%;white-space:nowrap;text-align:center}::ng-deep :where(.grid-edit-btn){min-width:32px;height:32px;margin:0 2px;border:1px solid #d1d5db;border-radius:4px;background:#fff;cursor:pointer;font-size:15px;line-height:1}::ng-deep :where(.grid-edit-btn--save){border-color:#16a34a;background:#16a34a;color:#fff}::ng-deep :where(.grid-edit-btn:disabled){opacity:.4;cursor:default}::ng-deep :where(.grid-cell--editing){min-width:160px}::ng-deep :where(.grid-cell--wide){min-width:240px}.grid-cell--editing ::ng-deep vl-control,.grid-cell--editing ::ng-deep vl-textbox input,.grid-cell--editing ::ng-deep vl-password input,.grid-cell--editing ::ng-deep vl-textarea textarea,.grid-cell--editing ::ng-deep .ant-picker,.grid-cell--editing ::ng-deep .ant-select{display:block;width:100%!important;max-width:100%;box-sizing:border-box}.grid-toolbar{width:100%;display:flex}.grid-toolbar.search-left{justify-content:flex-start}.grid-toolbar.search-center{justify-content:center}.grid-toolbar.search-right{justify-content:flex-end}.vl-d-th{position:relative;cursor:pointer;border-radius:0;outline-offset:-2px}.vl-d-th .vl-d-bar{top:2px;right:4px}.vl-d-resize{position:absolute;z-index:25;opacity:0;transition:opacity .15s ease,background-color .15s ease}.vl-d-th:hover .vl-d-resize{opacity:1}.vl-d-resize--width{top:0;right:-3px;width:6px;height:100%;cursor:col-resize}.vl-d-resize--height{left:0;bottom:-3px;width:100%;height:6px;cursor:row-resize}.vl-d-resize:hover{background:#1890ff59}.vl-d-grid-empty{min-height:120px}.vl-d-cell{cursor:default}th.cdk-drag-preview{display:flex;align-items:center;padding:12px 16px;background:#fff;border:1px solid #d0d5dd;box-shadow:0 10px 24px #0f172a29}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "component", type: ControlComponent, selector: "vl-control", inputs: ["field", "propertySchema", "selectedLanguageInfo", "errorMessages", "saveTried", "container", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i7$1.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i7$1.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i7$1.NzTableCellDirective, selector: "th:not(.nz-disable-th), td:not(.nz-disable-td)" }, { kind: "directive", type: i7$1.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i7$1.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i7$1.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i7$1.NzTrDirective, selector: "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i9$1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i11$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i11$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i11$2.NzDropdownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzArrow", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i11$2.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzMenuModule }, { kind: "component", type: PaginationComponent, selector: "vl-pagination", inputs: ["itemInfo", "pageSize", "currentPage", "selectedLanguageInfo", "pages"], outputs: ["pageSizeChange", "onGoToPage"] }, { kind: "directive", type: CustomKeyboardDirective, selector: "[vlCustomKeyboard]", inputs: ["vlCustomKeyboard"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }, { kind: "pipe", type: VisiblePipe, name: "vlVisible" }, { kind: "pipe", type: i9.DecimalPipe, name: "number" }] });
12535
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: GridComponent, isStandalone: true, selector: "vl-grid", inputs: { errorMessages: "errorMessages", environment: "environment", selectedLanguageInfo: "selectedLanguageInfo", tableitemInfo: "tableitemInfo", form: "form", isTableDataLoad: "isTableDataLoad", currenTableOptions: "currenTableOptions", projectSeleted: "projectSeleted", pageSize: "pageSize", currentPage: "currentPage", pages: "pages", scrollPagination: "scrollPagination", userInfo: "userInfo", pageData: "pageData", design: "design" }, outputs: { editRow: "editRow", designChange: "designChange", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange", onGridScroll: "onGridScroll", showGridLink: "showGridLink", gridButtonClick: "gridButtonClick", gridIncreamentClick: "gridIncreamentClick", gridDecreamentClick: "gridDecreamentClick", gridImgClick: "gridImgClick" }, host: { properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, viewQueries: [{ propertyName: "scrollSentinel", first: true, predicate: ["scrollSentinel"], descendants: true }, { propertyName: "gridForm", first: true, predicate: ["gridForm"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: a calculated column (innerAction calculate, older { action: multiply }) through isCalculated / calculatedValue -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - fix: test marks like the other containers - a row is a record (data-vl-record), a cell and a footer field carry\r\n data-vl-field and data-vl-path, a column button data-vl-action / data-vl-writes, the action icons save / delete -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - change: the table's footer draws its fields and buttons by <vl-control> like form and dialog (one pattern) -->\r\n<!-- Shuaib, 2026-10-27\r\n - change: grid search takes project CSS classes from search.style / boxStyle / inputStyle / iconStyle /\r\n buttonStyle; the app and design canvas share this template. Search/filter behavior stays the same.\r\n - fix: the clear action is a keyboard-accessible button with a translated accessible name. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - new: the end of the table asks for the next page when it pages by scrolling (scrollSentinel)\r\n - fix: the page bar is hidden while the table pages by scrolling, like the cards (hotel Reservations)\r\n - fix: the page bar follows pagination.visible (Show pagination off in the editor) - it showed anyway\r\n - fix: \"no records\" only once loading is done - it showed while the rows were on their way (luv2shop Orders)\r\n - fix: a cell stays a table cell (cellStyle) - display: block of an image column pushed every column one to the left -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: every class of a style is set (classNames), not only the first -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: the column filter is no part of the row form (ngModelOptions standalone) - without a name Angular stopped\r\n the whole grid with NG01352 (hotel Reservations stayed empty) -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its grid page here - the same table, cells, footer and\r\n page bar as the app, with sample rows; columns with drag, edit, delete and resize; a data object's field\r\n dropped on the heads becomes a column\r\n - new: the search box (layoutSchema.search), row stripes (layoutSchema.rowStyle) and column sizes\r\n (option.width / option.height) the Designer sets\r\n - change: a cell and the footer stand in templates (gridCell, gridFooter) that the app and the canvas share -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: caption and date pattern from the layout - a data object holds names and types only -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - change: the delete icon of a row goes through deleteRow (PageData for a browser list, A4)\r\n - new: editing as the page sets it (layoutSchema.edit.mode): \"row\" - pencil, the unlocked cells of\r\n that row become <vl-control mode=\"edit\"> (every type, checked like the dialog), \u2713 saves, \u2715 cancels;\r\n \"dialog\" - pencil opens the page's dialog with the record; without edit the grid is read only.\r\n The old inputs that wrote text, number and check box cells into the row without saving are gone\r\n - fix: the table takes its style from its page (layoutSchema.style); the menu or header option's style\r\n is the style of that button - luv2shop's cart table got the cart pill's max-width 90px -->\r\n<!-- Shuaib 2026-10-20\r\n - change: the cells that show a value are drawn by the shared <vl-control> in display mode (#166):\r\n the row's value of every type, read only - date, time, drop-down, autocomplete and period cells\r\n were inputs bound to the form's property (the same value in every row); integer and bigdecimal\r\n columns stayed empty\r\n - kept: unlocked text and number cells (typed in, saved by the action column), quantity +/-, multiply,\r\n the check box of the row, action columns, buttons, the footer\r\n - change: a locked check box is shown read only; it could be ticked\r\n - fix: action icons, button and footer labels read style.classes?.[0]; a style without classes (the Designer's default {}) threw -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: date and time in one value (type datetime or control dateTimepicker): field and display (#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: the footer's number field is the one vl-number (#166 step 4.4)\r\n - change: the footer's text field is the one vl-textbox (#166 step 4.4)\r\n - change: cells and footer follow the layout's control (password, textArea, switch, combobox) with the\r\n shared controls, cells read only and compact (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - change: footer fields: rules only from the layout (vlRules) and the message of the first error (#166 step 4.6)\r\n - change: fields/columns with option.visible false are left out (vlVisible, #166)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\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 - 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: date and time cells use the shared picker markup (picker-field, DateTimePickerService);\r\n their PrimeNG icon opened the calendar together with the system keyboard -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: grid cells render legacy checkbox fields through the boolean control. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: @contract comments on the sorting, on the column filter and on the footer. The filter\r\n reads option.filter and never option.columnFilter, which is the mistake a layout author\r\n makes without being told -->\r\n @if (design) {\r\n <!-- design mode (the Designer's canvas): the table with sample rows, the search box, footer and page bar as the app\r\n shows them; every column - hidden ones faded - with drag, edit, delete and its edges to resize; a data object's\r\n field dropped on the column heads becomes a column there. A click on a head opens the column's settings -->\r\n <div class=\"reservation-container vl-d-root\" (click)=\"selectGrid()\">\r\n <div class=\"vl-d-container-bar\">\r\n <vl-design-bar [actions]=\"['edit']\" [titles]=\"{ edit: dt.editGrid }\" (act)=\"selectGrid()\"></vl-design-bar>\r\n </div>\r\n <ng-container *ngIf=\"showSearch\"><ng-container *ngTemplateOutlet=\"gridSearch\"></ng-container></ng-container>\r\n @if (!tableitemInfo?.layoutSchema?.elements?.length) {\r\n <div class=\"vl-d-empty vl-d-grid-empty\" [id]=\"designListId\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"[]\" (cdkDropListDropped)=\"columnDropped($event)\">\r\n {{ dt.emptyGrid }}\r\n </div>\r\n } @else {\r\n <nz-table #designTable [nzScroll]=\"{ x: 'max-content' }\" [nzData]=\"designRows\" [nzBordered]=\"true\" [nzFrontPagination]=\"false\"\r\n [nzShowPagination]=\"false\" [style]=\"getStyleWithoutClasses(tableitemInfo?.layoutSchema?.style).style\">\r\n <thead>\r\n <tr [id]=\"designListId\" data-vl-design-list cdkDropList cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"tableitemInfo.layoutSchema.elements\" (cdkDropListDropped)=\"columnDropped($event)\">\r\n @for (column of tableitemInfo.layoutSchema.elements; track $index; let ci = $index) {\r\n <th class=\"vl-d-th vl-d-item\" cdkDrag cdkDragLockAxis=\"x\" [cdkDragData]=\"{ vlDesign: 'column', index: ci }\"\r\n [ngStyle]=\"columnSize(column)\"\r\n [class.vl-d-hidden]=\"column?.option?.visible === false\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'column', index: ci })\"\r\n (cdkDragStarted)=\"columnDragStarted()\" (click)=\"$event.stopPropagation(); columnAction('edit', ci)\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragColumn, edit: dt.editColumn, delete: dt.deleteColumn }\"\r\n (act)=\"columnAction($event, ci)\"></vl-design-bar>\r\n @if (column?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n {{ column?.label?.caption | vlDesignText:designTranslations }}\r\n <span class=\"vl-d-resize vl-d-resize--width\" [attr.title]=\"dt.resizeWidth\"\r\n (mousedown)=\"startResize($event, ci, 'width')\" (click)=\"$event.stopPropagation()\"></span>\r\n <span class=\"vl-d-resize vl-d-resize--height\" [attr.title]=\"dt.resizeHeight\"\r\n (mousedown)=\"startResize($event, ci, 'height')\" (click)=\"$event.stopPropagation()\"></span>\r\n </th>\r\n }\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n <tr *ngIf=\"hasAnyColumnFilter()\" class=\"grid-filter-row\">\r\n @for (column of tableitemInfo.layoutSchema.elements; track $index) {\r\n <th class=\"grid-filter-cell\" [class.vl-d-hidden]=\"column?.option?.visible === false\">\r\n @if (column?.option?.filter?.filtering === true && column?.scope?.reference) {\r\n <div class=\"grid-filter-input-wrapper\">\r\n <input type=\"text\" class=\"grid-filter-input\" disabled [placeholder]=\"getColumnFilterPlaceholder(column)\" />\r\n <button type=\"button\" class=\"grid-filter-operator-button\" disabled><span nz-icon nzType=\"filter\"></span></button>\r\n </div>\r\n }\r\n </th>\r\n }\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (data of designTable.data; track $index; let i = $index) {\r\n <tr [ngStyle]=\"rowStyleOf(i)\">\r\n @for (col of tableitemInfo.layoutSchema.elements; track $index) {\r\n <td [style]=\"cellStyle(col, i)\" [class.vl-d-hidden]=\"col?.option?.visible === false\">\r\n <div class=\"vl-d-body vl-d-cell\">\r\n <ng-container *ngTemplateOutlet=\"gridCell; context: { col: col, data: data, i: i }\"></ng-container>\r\n </div>\r\n </td>\r\n }\r\n <td *ngIf=\"canEdit\" class=\"grid-edit-cell\">\r\n <button type=\"button\" class=\"grid-edit-btn\" disabled>&#9998;</button>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </nz-table>\r\n }\r\n @if (tableitemInfo?.footer?.formFields && designAll.length) {\r\n <div class=\"vl-d-body\"><ng-container *ngTemplateOutlet=\"gridFooter\"></ng-container></div>\r\n }\r\n @if (designAll.length && !designInfo?.layoutSchema?.pagination?.top && designInfo?.layoutSchema?.pagination?.bottom) {\r\n <div>\r\n <vl-pagination [itemInfo]=\"designInfo\" [pageSize]=\"designPageSize\" [currentPage]=\"designPage\"\r\n [pages]=\"designPages\" (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div *ngIf=\"!tableitemInfo.data?.length && !isTableDataLoad && !pageData?.loading\" class=\"alert alert-warning col-md-12\"\r\n role=\"alert\">\r\n {{ noRecordText }}\r\n </div>\r\n <div *ngIf=\"tableitemInfo.data?.length\" class=\"reservation-container pt-5 px-3\">\r\n <ng-container *ngIf=\"showSearch\"><ng-container *ngTemplateOutlet=\"gridSearch\"></ng-container></ng-container>\r\n <!-- the controls of the row being edited join this form, so \u2713 checks them like the dialog does -->\r\n <form #gridForm=\"ngForm\" (ngSubmit)=\"saveRow()\">\r\n <nz-table #basicTable [nzData]=\"gridDisplayData\"\r\n [nzNoResult]=\"'No matching records found'\" [nzBordered]=\"true\"\r\n [nzFrontPagination]=\"currenTableOptions?.pagination?.tabs\"\r\n [style]=\"getStyleWithoutClasses(tableitemInfo?.layoutSchema?.style).style\"\r\n (scroll)=\"onScrollEvent($event)\"\r\n [nzLoading]=\"isTableDataLoad\">\r\n <thead>\r\n <!-- @contract decision: option.sortable is read here\r\n reality: nzSortFn is wired to getColumnSortFn since 2026-09-16; before that\r\n the key was decoration. The column also needs a scope.reference -\r\n without one getColumnSortFn has nothing to sort by.\r\n seen: grid.component.ts:338 -->\r\n <!-- Column headings and sorting -->\r\n <tr>\r\n <th *ngFor=\"let column of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n [ngStyle]=\"columnSize(column)\"\r\n [nzSortFn]=\"\r\n column?.option?.sortable\r\n ? getColumnSortFn(column)\r\n : false\r\n \"\r\n [class.grid-cell--editing]=\"editingRow && editableCol(column)\"\r\n [class.grid-cell--wide]=\"editingRow && editableCol(column) && wideEditCell(column)\">\r\n \r\n {{ column?.label?.caption | vlDesignText:designTranslations }}\r\n </th>\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n \r\n <!-- @contract decision: the column filter reads option.filter, NOT option.columnFilter\r\n reality: option.filter.filtering switches it on, option.filter.defaultOperator\r\n starts the comparison (the renderer falls back to contains), and\r\n option.filter.placeholder labels the input.\r\n failure: option.columnFilter is read nowhere, here or in the runtime app. A\r\n column carrying it looks filterable in the file and is not on screen.\r\n seen: grid.component.ts:450-475; 5 uses of columnFilter across the reference\r\n projects, all of them dead -->\r\n <!-- Column filters -->\r\n <tr *ngIf=\"hasAnyColumnFilter()\" class=\"grid-filter-row\">\r\n \r\n <th *ngFor=\"let column of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n class=\"grid-filter-cell\">\r\n \r\n <ng-container *ngIf=\"\r\n column?.option?.filter?.filtering === true &&\r\n column?.scope?.reference\r\n \">\r\n \r\n <div class=\"grid-filter-input-wrapper\">\r\n <input type=\"text\" class=\"grid-filter-input\" vlCustomKeyboard=\"string\"\r\n [placeholder]=\"getColumnFilterPlaceholder(column)\"\r\n [ngModel]=\"getColumnFilterState(column).value\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"\r\n setColumnFilterValue(column, $event)\r\n \" />\r\n \r\n <!-- Operator selection button -->\r\n <button type=\"button\"\r\n class=\"grid-filter-operator-button\" nz-dropdown\r\n nzTrigger=\"click\"\r\n [nzDropdownMenu]=\"operatorMenu\"\r\n [class.grid-filter-operator-button--active]=\"\r\n hasActiveColumnFilter(column)\r\n \" [title]=\"\r\n 'Operator: ' +\r\n getFilterOperatorLabel(\r\n getColumnFilterState(column).operator\r\n )\r\n \">\r\n \r\n <span nz-icon nzType=\"filter\"></span>\r\n </button>\r\n \r\n <!-- Clear current column filter -->\r\n <button *ngIf=\"hasActiveColumnFilter(column)\"\r\n type=\"button\" class=\"grid-filter-clear-button\"\r\n aria-label=\"Clear column filter\"\r\n title=\"Clear filter\"\r\n (click)=\"clearColumnFilter(column)\">\r\n \r\n <span nz-icon nzType=\"close\"></span>\r\n </button>\r\n </div>\r\n \r\n <!-- Operator dropdown -->\r\n <nz-dropdown-menu #operatorMenu=\"nzDropdownMenu\">\r\n <ul nz-menu class=\"grid-filter-operator-menu\">\r\n <li *ngFor=\"let operator of filterOperators\"\r\n nz-menu-item [nzSelected]=\"\r\n getColumnFilterState(column).operator ===\r\n operator.value\r\n \" (click)=\"\r\n setColumnFilterOperator(\r\n column,\r\n operator.value\r\n )\r\n \">\r\n \r\n <span *ngIf=\"\r\n getColumnFilterState(column).operator ===\r\n operator.value\r\n \" nz-icon nzType=\"check\">\r\n </span>\r\n \r\n {{ operator.label }}\r\n </li>\r\n </ul>\r\n </nz-dropdown-menu>\r\n </ng-container>\r\n </th>\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n </thead>\r\n <!-- @contract decision: a cell shows the row's value through <vl-control mode=\"display\">\r\n reality: every type is shown (integer, bigdecimal and the credit card stayed empty before);\r\n unlocked text and number cells, quantity, multiply and the check box keep their own\r\n blocks, because they write into the row.\r\n \r\n @contract decision: columns without scope.reference are valid\r\n reality: with option.actionColumn they render save/delete icons, otherwise a\r\n button. That is why the conditions below all guard on the reference. -->\r\n <tbody>\r\n <tr *ngFor=\"let data of basicTable.data; let i = index\" [ngStyle]=\"rowStyleOf(i)\" data-vl-record>\r\n <td *ngFor=\"let col of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(col)\" [attr.data-vl-path]=\"vlFieldPath(col)\"\r\n [style]=\"cellStyle(col, i)\"\r\n [class.grid-cell--editing]=\"cellEditing(col, data)\"\r\n [class.grid-cell--wide]=\"cellEditing(col, data) && wideEditCell(col)\">\r\n <!-- a column without property: action icons or a button. Unlocked text and number cells\r\n are typed in (the row is saved by the action column), a check box ticks the row; every\r\n other cell shows the row's value through the shared <vl-control> in display mode -->\r\n @if (cellEditing(col, data)) {\r\n <!-- inside the form: the controls of the row being edited join it, so \u2713 checks them -->\r\n <vl-control mode=\"edit\" [field]=\"col | vlDesignField:designTranslations\" [propertySchema]=\"rowSchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"rowSaveTried\" [list]=\"remoteData[col.scope.reference]\"\r\n [hideLabel]=\"true\" [compact]=\"true\">\r\n </vl-control>\r\n } @else {\r\n <ng-container *ngTemplateOutlet=\"gridCell; context: { col: col, data: data, i: i }\"></ng-container>\r\n }\r\n </td>\r\n <!-- edit: pencil, or \u2713 save / \u2715 cancel on the row being edited (layoutSchema.edit) -->\r\n <td *ngIf=\"canEdit\" class=\"grid-edit-cell\">\r\n @if (editingRow === data) {\r\n <button type=\"submit\" class=\"grid-edit-btn grid-edit-btn--save\" [attr.aria-label]=\"t('Save')\"\r\n data-vl-action=\"saveRow\">&#10003;</button>\r\n <button type=\"button\" class=\"grid-edit-btn\" [attr.aria-label]=\"t('Cancel')\"\r\n data-vl-action=\"cancelRow\" (click)=\"cancelEdit()\">&#10005;</button>\r\n } @else {\r\n <button type=\"button\" class=\"grid-edit-btn\" [attr.aria-label]=\"t('Edit')\" [disabled]=\"editingRow\"\r\n data-vl-action=\"editRow\" (click)=\"startEdit(data)\">&#9998;</button>\r\n }\r\n </td>\r\n </tr>\r\n </tbody>\r\n </nz-table>\r\n </form>\r\n </div>\r\n \r\n <!-- table footer -->\r\n <ng-container *ngIf=\"tableitemInfo?.footer?.formFields && tableitemInfo.data?.length\">\r\n <ng-container *ngTemplateOutlet=\"gridFooter\"></ng-container>\r\n </ng-container>\r\n \r\n <!-- scrolling: the end of the runtime table asks for the next page -->\r\n @if (scrollPagination) {<div #scrollSentinel class=\"scroll-pagination-sentinel\" aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\"></div>}\r\n \r\n <!-- bottom pagination on grid -->\r\n <div\r\n *ngIf=\"tableitemInfo.data?.length && tableitemInfo?.layoutSchema?.pagination?.visible !== false && !scrollPagination && !tableitemInfo?.layoutSchema?.pagination?.top && tableitemInfo?.layoutSchema?.pagination?.bottom\">\r\n <vl-pagination [itemInfo]=\"tableitemInfo\" [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 <!-- the search box above the table (layoutSchema.search) -->\r\n <ng-template #gridSearch>\r\n <div class=\"grid-toolbar\" [ngClass]=\"[searchPositionClass, classNames(tableitemInfo?.layoutSchema?.search?.style)]\">\r\n <div class=\"grid-search-box\" [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.boxStyle)\">\r\n <span nz-icon nzType=\"search\" class=\"grid-search-icon\" aria-hidden=\"true\"\r\n [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.iconStyle)\"></span>\r\n <input type=\"text\" class=\"grid-search-input\" [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.inputStyle)\" vlCustomKeyboard=\"string\" [placeholder]=\"searchPlaceholder()\"\r\n [ngModel]=\"searchText\" (ngModelChange)=\"searchText = $event\" [ngModelOptions]=\"{ standalone: true }\" />\r\n <button *ngIf=\"searchText\" type=\"button\" class=\"grid-search-clear\"\r\n [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.buttonStyle)\"\r\n [attr.aria-label]=\"t('Clear search')\" (click)=\"searchText = ''\">\r\n <span nz-icon nzType=\"close-circle\" aria-hidden=\"true\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- one cell that is not edited: action icons or a button, quantity, a product, or the row's value (the app and the\r\n canvas); the cell of the row being edited stays in the app's form above -->\r\n <ng-template #gridCell let-col=\"col\" let-data=\"data\" let-i=\"i\">\r\n @if (!col?.scope?.reference) {\r\n <span *ngIf=\"col.option?.actionColumn\">\r\n <span nz-icon\r\n *ngIf=\"setActionColumn(col.option?.save, data)\"\r\n [nzType]=\"col.option?.save?.icon\"\r\n [nzTheme]=\"'twotone'\"\r\n [style]=\"col.option?.save?.style\"\r\n [nzTwotoneColor]=\"'#52c41a'\"\r\n [class]=\"classNames(col.option?.save?.style)\" data-vl-action=\"save\" [attr.data-vl-writes]=\"rowWrites(col.option?.save)\"\r\n (click)=\"upsertAction(col.option?.save, data)\">\r\n </span>\r\n <span nz-icon\r\n *ngIf=\"setActionColumn(col.option?.delete, data)\"\r\n [nzType]=\"col.option?.delete?.icon\"\r\n [nzTheme]=\"'twotone'\"\r\n [style]=\"col.option?.delete?.style\"\r\n [nzTwotoneColor]=\"'#FF0000'\"\r\n [class]=\"classNames(col.option?.delete?.style)\" data-vl-action=\"delete\" data-vl-writes=\"true\"\r\n (click)=\"deleteRow(col.option?.delete, data)\"></span>\r\n \r\n </span>\r\n <span *ngIf=\"!col.option?.actionColumn\">\r\n <button type=\"submit\"\r\n [attr.data-vl-action]=\"vlAction(col.option)\" [attr.data-vl-writes]=\"vlWrites(col.option)\"\r\n [style]=\"getStyleWithoutClasses(col?.label?.style).style\"\r\n (click)=\"invokeRowBtnClick(col.option, data)\"\r\n [class]=\"classNames(col?.label?.style)\">\r\n {{ col.label?.caption | vlDesignText:designTranslations }}\r\n </button>\r\n </span>\r\n } @else if (cellType(col) === 'quantity') {\r\n <div style=\"display: flex; align-items: center;\">\r\n <button pButton icon=\"pi pi-minus\"\r\n (click)=\"decrementQuantity(i,col.scope?.reference.split('/').pop(), col.option)\"\r\n [disabled]=\"data.quantity <= 0\"\r\n style=\"margin-right: 8px; height: 10px; width: 10px;\"></button>\r\n <span>{{ data[col.scope?.reference.split('/').pop()]\r\n }}</span>\r\n <button pButton icon=\"pi pi-plus\"\r\n (click)=\"incrementQuantity(i, col.scope?.reference.split('/').pop(), col.option)\"\r\n style=\"margin-left: 8px; height: 10px; width: 10px;\"></button>\r\n </div>\r\n } @else if (cellType(col) === 'number' && isCalculated(col)) {\r\n <span>{{ calculatedValue(col, data) | number:'1.2-2' }}</span>\r\n } @else {\r\n <vl-control mode=\"display\" [field]=\"col | vlDesignField:designTranslations\" [record]=\"data\"\r\n [propertySchema]=\"tableitemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [list]=\"remoteData[col.scope.reference]\"\r\n [hideLabel]=\"true\" [styleValue]=\"false\" [compact]=\"true\"\r\n (linkClicked)=\"showLinkDetails(col.option, data)\"\r\n (mediaClicked)=\"invokeTableImageClick(col, data)\">\r\n </vl-control>\r\n }\r\n </ng-template>\r\n <!-- the table's footer -->\r\n <ng-template #gridFooter>\r\n <div class=\"table-footer flex flex-column align-items-end gap-2 pt-2 mx-4 border-top-1 border-cyan-500\">\r\n <!-- every footer field and button is drawn by the shared <vl-control>, like the form and the dialog: the\r\n same controls, protected = a locked input, no * on it, start values, rules (it had its own switch\r\n for text and number with its own protected text - user 2026-10-29: the same pattern everywhere) -->\r\n <div *ngFor=\"let tableField of tableitemInfo?.footer?.formFields | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(tableField)\" [attr.data-vl-path]=\"vlFieldPath(tableField)\">\r\n <vl-control [field]=\"tableField | vlDesignField:designTranslations\" [propertySchema]=\"tableitemInfo?.propertySchema ?? form?.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [saveTried]=\"false\" container=\"form\" buttonType=\"button\"\r\n [list]=\"remoteData[tableField.scope?.reference]\"\r\n (buttonClick)=\"invokeGridBtnClick($event, tableitemInfo.propertySchema)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </ng-template>\r\n ", styles: [".grid-filter-row th{padding:8px;vertical-align:middle;background:var(--vl-color-surface, #fafafa)}.grid-filter-cell{min-width:150px}.grid-filter-input-wrapper{display:flex;align-items:stretch;width:100%}.grid-filter-input{width:100%;min-width:0;min-height:34px;padding:5px 8px;border:1px solid var(--vl-color-border, #d9d9d9);border-right:0;border-radius:4px 0 0 4px;outline:none}.grid-filter-input:focus{border-color:var(--vl-color-primary, #1677ff)}.grid-filter-operator-button,.grid-filter-clear-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:34px;padding:0;cursor:pointer;background:var(--vl-color-surface, #ffffff);border:1px solid var(--vl-color-border, #d9d9d9)}.grid-filter-operator-button{color:var(--vl-color-text-muted, #595959);border-radius:0 4px 4px 0}.grid-filter-operator-button:hover,.grid-filter-operator-button--active{color:var(--vl-color-primary, #1677ff);border-color:var(--vl-color-primary, #1677ff)}.grid-filter-clear-button{margin-left:5px;color:var(--vl-color-danger, #ff4d4f);border-radius:4px}.grid-filter-clear-button:hover{color:var(--vl-color-on-primary, #ffffff);background:var(--vl-color-danger, #ff4d4f);border-color:var(--vl-color-danger, #ff4d4f)}.grid-filter-operator-menu{min-width:190px}:host ::ng-deep .ant-table-content.has-more-right{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent)}:host ::ng-deep .ant-table-content.has-more-left{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent)}:host ::ng-deep .ant-table-content.has-more-left.has-more-right{-webkit-mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent)}::ng-deep :where(.grid-edit-cell){width:1%;white-space:nowrap;text-align:center}::ng-deep :where(.grid-edit-btn){min-width:32px;height:32px;margin:0 2px;border:1px solid var(--vl-color-border, #d1d5db);border-radius:4px;background:var(--vl-color-surface, #ffffff);cursor:pointer;font-size:15px;line-height:1}::ng-deep :where(.grid-edit-btn--save){border-color:var(--vl-color-success, #16a34a);background:var(--vl-color-success, #16a34a);color:var(--vl-color-on-primary, #ffffff)}::ng-deep :where(.grid-edit-btn:disabled){opacity:.4;cursor:default}::ng-deep :where(.grid-cell--editing){min-width:160px}::ng-deep :where(.grid-cell--wide){min-width:240px}.grid-cell--editing ::ng-deep vl-control,.grid-cell--editing ::ng-deep vl-textbox input,.grid-cell--editing ::ng-deep vl-password input,.grid-cell--editing ::ng-deep vl-textarea textarea,.grid-cell--editing ::ng-deep .ant-picker,.grid-cell--editing ::ng-deep .ant-select{display:block;width:100%!important;max-width:100%;box-sizing:border-box}.grid-toolbar{width:100%;display:flex}.grid-toolbar.search-left{justify-content:flex-start}.grid-toolbar.search-center{justify-content:center}.grid-toolbar.search-right{justify-content:flex-end}.vl-d-th{position:relative;cursor:pointer;border-radius:0;outline-offset:-2px}.vl-d-th .vl-d-bar{top:2px;right:4px}.vl-d-resize{position:absolute;z-index:25;opacity:0;transition:opacity .15s ease,background-color .15s ease}.vl-d-th:hover .vl-d-resize{opacity:1}.vl-d-resize--width{top:0;right:-3px;width:6px;height:100%;cursor:col-resize}.vl-d-resize--height{left:0;bottom:-3px;width:100%;height:6px;cursor:row-resize}.vl-d-resize:hover{background:#1890ff59}.vl-d-grid-empty{min-height:120px}.vl-d-cell{cursor:default}th.cdk-drag-preview{display:flex;align-items:center;padding:12px 16px;background:var(--vl-color-surface, #ffffff);border:1px solid var(--vl-color-border, #d0d5dd);box-shadow:0 10px 24px #0f172a29}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "component", type: ControlComponent, selector: "vl-control", inputs: ["field", "propertySchema", "selectedLanguageInfo", "errorMessages", "saveTried", "container", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i7$1.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i7$1.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i7$1.NzTableCellDirective, selector: "th:not(.nz-disable-th), td:not(.nz-disable-td)" }, { kind: "directive", type: i7$1.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i7$1.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i7$1.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i7$1.NzTrDirective, selector: "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i9.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i11$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i11$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i11$2.NzDropdownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzArrow", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i11$2.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzMenuModule }, { kind: "component", type: PaginationComponent, selector: "vl-pagination", inputs: ["itemInfo", "pageSize", "currentPage", "selectedLanguageInfo", "pages"], outputs: ["pageSizeChange", "onGoToPage"] }, { kind: "directive", type: CustomKeyboardDirective, selector: "[vlCustomKeyboard]", inputs: ["vlCustomKeyboard"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }, { kind: "pipe", type: VisiblePipe, name: "vlVisible" }, { kind: "pipe", type: i6.DecimalPipe, name: "number" }] });
11970
12536
  }
11971
12537
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: GridComponent, decorators: [{
11972
12538
  type: Component,
@@ -11992,7 +12558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
11992
12558
  CustomKeyboardDirective,
11993
12559
  DragDropModule,
11994
12560
  DesignBarComponent,
11995
- ], selector: 'vl-grid', template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: a calculated column (innerAction calculate, older { action: multiply }) through isCalculated / calculatedValue -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - fix: test marks like the other containers - a row is a record (data-vl-record), a cell and a footer field carry\r\n data-vl-field and data-vl-path, a column button data-vl-action / data-vl-writes, the action icons save / delete -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - change: the table's footer draws its fields and buttons by <vl-control> like form and dialog (one pattern) -->\r\n<!-- Shuaib, 2026-10-27\r\n - change: grid search takes project CSS classes from search.style / boxStyle / inputStyle / iconStyle /\r\n buttonStyle; the app and design canvas share this template. Search/filter behavior stays the same.\r\n - fix: the clear action is a keyboard-accessible button with a translated accessible name. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - new: the end of the table asks for the next page when it pages by scrolling (scrollSentinel)\r\n - fix: the page bar is hidden while the table pages by scrolling, like the cards (hotel Reservations)\r\n - fix: the page bar follows pagination.visible (Show pagination off in the editor) - it showed anyway\r\n - fix: \"no records\" only once loading is done - it showed while the rows were on their way (luv2shop Orders)\r\n - fix: a cell stays a table cell (cellStyle) - display: block of an image column pushed every column one to the left -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: every class of a style is set (classNames), not only the first -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: the column filter is no part of the row form (ngModelOptions standalone) - without a name Angular stopped\r\n the whole grid with NG01352 (hotel Reservations stayed empty) -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its grid page here - the same table, cells, footer and\r\n page bar as the app, with sample rows; columns with drag, edit, delete and resize; a data object's field\r\n dropped on the heads becomes a column\r\n - new: the search box (layoutSchema.search), row stripes (layoutSchema.rowStyle) and column sizes\r\n (option.width / option.height) the Designer sets\r\n - change: a cell and the footer stand in templates (gridCell, gridFooter) that the app and the canvas share -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: caption and date pattern from the layout - a data object holds names and types only -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - change: the delete icon of a row goes through deleteRow (PageData for a browser list, A4)\r\n - new: editing as the page sets it (layoutSchema.edit.mode): \"row\" - pencil, the unlocked cells of\r\n that row become <vl-control mode=\"edit\"> (every type, checked like the dialog), \u2713 saves, \u2715 cancels;\r\n \"dialog\" - pencil opens the page's dialog with the record; without edit the grid is read only.\r\n The old inputs that wrote text, number and check box cells into the row without saving are gone\r\n - fix: the table takes its style from its page (layoutSchema.style); the menu or header option's style\r\n is the style of that button - luv2shop's cart table got the cart pill's max-width 90px -->\r\n<!-- Shuaib 2026-10-20\r\n - change: the cells that show a value are drawn by the shared <vl-control> in display mode (#166):\r\n the row's value of every type, read only - date, time, drop-down, autocomplete and period cells\r\n were inputs bound to the form's property (the same value in every row); integer and bigdecimal\r\n columns stayed empty\r\n - kept: unlocked text and number cells (typed in, saved by the action column), quantity +/-, multiply,\r\n the check box of the row, action columns, buttons, the footer\r\n - change: a locked check box is shown read only; it could be ticked\r\n - fix: action icons, button and footer labels read style.classes?.[0]; a style without classes (the Designer's default {}) threw -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: date and time in one value (type datetime or control dateTimepicker): field and display (#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: the footer's number field is the one vl-number (#166 step 4.4)\r\n - change: the footer's text field is the one vl-textbox (#166 step 4.4)\r\n - change: cells and footer follow the layout's control (password, textArea, switch, combobox) with the\r\n shared controls, cells read only and compact (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - change: footer fields: rules only from the layout (vlRules) and the message of the first error (#166 step 4.6)\r\n - change: fields/columns with option.visible false are left out (vlVisible, #166)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\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 - 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: date and time cells use the shared picker markup (picker-field, DateTimePickerService);\r\n their PrimeNG icon opened the calendar together with the system keyboard -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: grid cells render legacy checkbox fields through the boolean control. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: @contract comments on the sorting, on the column filter and on the footer. The filter\r\n reads option.filter and never option.columnFilter, which is the mistake a layout author\r\n makes without being told -->\r\n @if (design) {\r\n <!-- design mode (the Designer's canvas): the table with sample rows, the search box, footer and page bar as the app\r\n shows them; every column - hidden ones faded - with drag, edit, delete and its edges to resize; a data object's\r\n field dropped on the column heads becomes a column there. A click on a head opens the column's settings -->\r\n <div class=\"reservation-container vl-d-root\" (click)=\"selectGrid()\">\r\n <div class=\"vl-d-container-bar\">\r\n <vl-design-bar [actions]=\"['edit']\" [titles]=\"{ edit: dt.editGrid }\" (act)=\"selectGrid()\"></vl-design-bar>\r\n </div>\r\n <ng-container *ngIf=\"showSearch\"><ng-container *ngTemplateOutlet=\"gridSearch\"></ng-container></ng-container>\r\n @if (!tableitemInfo?.layoutSchema?.elements?.length) {\r\n <div class=\"vl-d-empty vl-d-grid-empty\" [id]=\"designListId\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"[]\" (cdkDropListDropped)=\"columnDropped($event)\">\r\n {{ dt.emptyGrid }}\r\n </div>\r\n } @else {\r\n <nz-table #designTable [nzScroll]=\"{ x: 'max-content' }\" [nzData]=\"designRows\" [nzBordered]=\"true\" [nzFrontPagination]=\"false\"\r\n [nzShowPagination]=\"false\" [style]=\"getStyleWithoutClasses(tableitemInfo?.layoutSchema?.style).style\">\r\n <thead>\r\n <tr [id]=\"designListId\" data-vl-design-list cdkDropList cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"tableitemInfo.layoutSchema.elements\" (cdkDropListDropped)=\"columnDropped($event)\">\r\n @for (column of tableitemInfo.layoutSchema.elements; track $index; let ci = $index) {\r\n <th class=\"vl-d-th vl-d-item\" cdkDrag cdkDragLockAxis=\"x\" [cdkDragData]=\"{ vlDesign: 'column', index: ci }\"\r\n [ngStyle]=\"columnSize(column)\"\r\n [class.vl-d-hidden]=\"column?.option?.visible === false\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'column', index: ci })\"\r\n (cdkDragStarted)=\"columnDragStarted()\" (click)=\"$event.stopPropagation(); columnAction('edit', ci)\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragColumn, edit: dt.editColumn, delete: dt.deleteColumn }\"\r\n (act)=\"columnAction($event, ci)\"></vl-design-bar>\r\n @if (column?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n {{ column?.label?.caption | vlDesignText:designTranslations }}\r\n <span class=\"vl-d-resize vl-d-resize--width\" [attr.title]=\"dt.resizeWidth\"\r\n (mousedown)=\"startResize($event, ci, 'width')\" (click)=\"$event.stopPropagation()\"></span>\r\n <span class=\"vl-d-resize vl-d-resize--height\" [attr.title]=\"dt.resizeHeight\"\r\n (mousedown)=\"startResize($event, ci, 'height')\" (click)=\"$event.stopPropagation()\"></span>\r\n </th>\r\n }\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n <tr *ngIf=\"hasAnyColumnFilter()\" class=\"grid-filter-row\">\r\n @for (column of tableitemInfo.layoutSchema.elements; track $index) {\r\n <th class=\"grid-filter-cell\" [class.vl-d-hidden]=\"column?.option?.visible === false\">\r\n @if (column?.option?.filter?.filtering === true && column?.scope?.reference) {\r\n <div class=\"grid-filter-input-wrapper\">\r\n <input type=\"text\" class=\"grid-filter-input\" disabled [placeholder]=\"getColumnFilterPlaceholder(column)\" />\r\n <button type=\"button\" class=\"grid-filter-operator-button\" disabled><span nz-icon nzType=\"filter\"></span></button>\r\n </div>\r\n }\r\n </th>\r\n }\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (data of designTable.data; track $index; let i = $index) {\r\n <tr [ngStyle]=\"rowStyleOf(i)\">\r\n @for (col of tableitemInfo.layoutSchema.elements; track $index) {\r\n <td [style]=\"cellStyle(col, i)\" [class.vl-d-hidden]=\"col?.option?.visible === false\">\r\n <div class=\"vl-d-body vl-d-cell\">\r\n <ng-container *ngTemplateOutlet=\"gridCell; context: { col: col, data: data, i: i }\"></ng-container>\r\n </div>\r\n </td>\r\n }\r\n <td *ngIf=\"canEdit\" class=\"grid-edit-cell\">\r\n <button type=\"button\" class=\"grid-edit-btn\" disabled>&#9998;</button>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </nz-table>\r\n }\r\n @if (tableitemInfo?.footer?.formFields && designAll.length) {\r\n <div class=\"vl-d-body\"><ng-container *ngTemplateOutlet=\"gridFooter\"></ng-container></div>\r\n }\r\n @if (designAll.length && !designInfo?.layoutSchema?.pagination?.top && designInfo?.layoutSchema?.pagination?.bottom) {\r\n <div>\r\n <vl-pagination [itemInfo]=\"designInfo\" [pageSize]=\"designPageSize\" [currentPage]=\"designPage\"\r\n [pages]=\"designPages\" (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div *ngIf=\"!tableitemInfo.data?.length && !isTableDataLoad && !pageData?.loading\" class=\"alert alert-warning col-md-12\"\r\n role=\"alert\">\r\n {{ noRecordText }}\r\n </div>\r\n <div *ngIf=\"tableitemInfo.data?.length\" class=\"reservation-container pt-5 px-3\">\r\n <ng-container *ngIf=\"showSearch\"><ng-container *ngTemplateOutlet=\"gridSearch\"></ng-container></ng-container>\r\n <!-- the controls of the row being edited join this form, so \u2713 checks them like the dialog does -->\r\n <form #gridForm=\"ngForm\" (ngSubmit)=\"saveRow()\">\r\n <nz-table #basicTable [nzData]=\"gridDisplayData\"\r\n [nzNoResult]=\"'No matching records found'\" [nzBordered]=\"true\"\r\n [nzFrontPagination]=\"currenTableOptions?.pagination?.tabs\"\r\n [style]=\"getStyleWithoutClasses(tableitemInfo?.layoutSchema?.style).style\"\r\n (scroll)=\"onScrollEvent($event)\"\r\n [nzLoading]=\"isTableDataLoad\">\r\n <thead>\r\n <!-- @contract decision: option.sortable is read here\r\n reality: nzSortFn is wired to getColumnSortFn since 2026-09-16; before that\r\n the key was decoration. The column also needs a scope.reference -\r\n without one getColumnSortFn has nothing to sort by.\r\n seen: grid.component.ts:338 -->\r\n <!-- Column headings and sorting -->\r\n <tr>\r\n <th *ngFor=\"let column of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n [ngStyle]=\"columnSize(column)\"\r\n [nzSortFn]=\"\r\n column?.option?.sortable\r\n ? getColumnSortFn(column)\r\n : false\r\n \"\r\n [class.grid-cell--editing]=\"editingRow && editableCol(column)\"\r\n [class.grid-cell--wide]=\"editingRow && editableCol(column) && wideEditCell(column)\">\r\n \r\n {{ column?.label?.caption | vlDesignText:designTranslations }}\r\n </th>\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n \r\n <!-- @contract decision: the column filter reads option.filter, NOT option.columnFilter\r\n reality: option.filter.filtering switches it on, option.filter.defaultOperator\r\n starts the comparison (the renderer falls back to contains), and\r\n option.filter.placeholder labels the input.\r\n failure: option.columnFilter is read nowhere, here or in the runtime app. A\r\n column carrying it looks filterable in the file and is not on screen.\r\n seen: grid.component.ts:450-475; 5 uses of columnFilter across the reference\r\n projects, all of them dead -->\r\n <!-- Column filters -->\r\n <tr *ngIf=\"hasAnyColumnFilter()\" class=\"grid-filter-row\">\r\n \r\n <th *ngFor=\"let column of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n class=\"grid-filter-cell\">\r\n \r\n <ng-container *ngIf=\"\r\n column?.option?.filter?.filtering === true &&\r\n column?.scope?.reference\r\n \">\r\n \r\n <div class=\"grid-filter-input-wrapper\">\r\n <input type=\"text\" class=\"grid-filter-input\" vlCustomKeyboard=\"string\"\r\n [placeholder]=\"getColumnFilterPlaceholder(column)\"\r\n [ngModel]=\"getColumnFilterState(column).value\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"\r\n setColumnFilterValue(column, $event)\r\n \" />\r\n \r\n <!-- Operator selection button -->\r\n <button type=\"button\"\r\n class=\"grid-filter-operator-button\" nz-dropdown\r\n nzTrigger=\"click\"\r\n [nzDropdownMenu]=\"operatorMenu\"\r\n [class.grid-filter-operator-button--active]=\"\r\n hasActiveColumnFilter(column)\r\n \" [title]=\"\r\n 'Operator: ' +\r\n getFilterOperatorLabel(\r\n getColumnFilterState(column).operator\r\n )\r\n \">\r\n \r\n <span nz-icon nzType=\"filter\"></span>\r\n </button>\r\n \r\n <!-- Clear current column filter -->\r\n <button *ngIf=\"hasActiveColumnFilter(column)\"\r\n type=\"button\" class=\"grid-filter-clear-button\"\r\n aria-label=\"Clear column filter\"\r\n title=\"Clear filter\"\r\n (click)=\"clearColumnFilter(column)\">\r\n \r\n <span nz-icon nzType=\"close\"></span>\r\n </button>\r\n </div>\r\n \r\n <!-- Operator dropdown -->\r\n <nz-dropdown-menu #operatorMenu=\"nzDropdownMenu\">\r\n <ul nz-menu class=\"grid-filter-operator-menu\">\r\n <li *ngFor=\"let operator of filterOperators\"\r\n nz-menu-item [nzSelected]=\"\r\n getColumnFilterState(column).operator ===\r\n operator.value\r\n \" (click)=\"\r\n setColumnFilterOperator(\r\n column,\r\n operator.value\r\n )\r\n \">\r\n \r\n <span *ngIf=\"\r\n getColumnFilterState(column).operator ===\r\n operator.value\r\n \" nz-icon nzType=\"check\">\r\n </span>\r\n \r\n {{ operator.label }}\r\n </li>\r\n </ul>\r\n </nz-dropdown-menu>\r\n </ng-container>\r\n </th>\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n </thead>\r\n <!-- @contract decision: a cell shows the row's value through <vl-control mode=\"display\">\r\n reality: every type is shown (integer, bigdecimal and the credit card stayed empty before);\r\n unlocked text and number cells, quantity, multiply and the check box keep their own\r\n blocks, because they write into the row.\r\n \r\n @contract decision: columns without scope.reference are valid\r\n reality: with option.actionColumn they render save/delete icons, otherwise a\r\n button. That is why the conditions below all guard on the reference. -->\r\n <tbody>\r\n <tr *ngFor=\"let data of basicTable.data; let i = index\" [ngStyle]=\"rowStyleOf(i)\" data-vl-record>\r\n <td *ngFor=\"let col of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(col)\" [attr.data-vl-path]=\"vlFieldPath(col)\"\r\n [style]=\"cellStyle(col, i)\"\r\n [class.grid-cell--editing]=\"cellEditing(col, data)\"\r\n [class.grid-cell--wide]=\"cellEditing(col, data) && wideEditCell(col)\">\r\n <!-- a column without property: action icons or a button. Unlocked text and number cells\r\n are typed in (the row is saved by the action column), a check box ticks the row; every\r\n other cell shows the row's value through the shared <vl-control> in display mode -->\r\n @if (cellEditing(col, data)) {\r\n <!-- inside the form: the controls of the row being edited join it, so \u2713 checks them -->\r\n <vl-control mode=\"edit\" [field]=\"col | vlDesignField:designTranslations\" [propertySchema]=\"rowSchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"rowSaveTried\" [list]=\"remoteData[col.scope.reference]\"\r\n [hideLabel]=\"true\" [compact]=\"true\">\r\n </vl-control>\r\n } @else {\r\n <ng-container *ngTemplateOutlet=\"gridCell; context: { col: col, data: data, i: i }\"></ng-container>\r\n }\r\n </td>\r\n <!-- edit: pencil, or \u2713 save / \u2715 cancel on the row being edited (layoutSchema.edit) -->\r\n <td *ngIf=\"canEdit\" class=\"grid-edit-cell\">\r\n @if (editingRow === data) {\r\n <button type=\"submit\" class=\"grid-edit-btn grid-edit-btn--save\" [attr.aria-label]=\"t('Save')\"\r\n data-vl-action=\"saveRow\">&#10003;</button>\r\n <button type=\"button\" class=\"grid-edit-btn\" [attr.aria-label]=\"t('Cancel')\"\r\n data-vl-action=\"cancelRow\" (click)=\"cancelEdit()\">&#10005;</button>\r\n } @else {\r\n <button type=\"button\" class=\"grid-edit-btn\" [attr.aria-label]=\"t('Edit')\" [disabled]=\"editingRow\"\r\n data-vl-action=\"editRow\" (click)=\"startEdit(data)\">&#9998;</button>\r\n }\r\n </td>\r\n </tr>\r\n </tbody>\r\n </nz-table>\r\n </form>\r\n </div>\r\n \r\n <!-- table footer -->\r\n <ng-container *ngIf=\"tableitemInfo?.footer?.formFields && tableitemInfo.data?.length\">\r\n <ng-container *ngTemplateOutlet=\"gridFooter\"></ng-container>\r\n </ng-container>\r\n \r\n <!-- scrolling: the end of the runtime table asks for the next page -->\r\n @if (scrollPagination) {<div #scrollSentinel class=\"scroll-pagination-sentinel\" aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\"></div>}\r\n \r\n <!-- bottom pagination on grid -->\r\n <div\r\n *ngIf=\"tableitemInfo.data?.length && tableitemInfo?.layoutSchema?.pagination?.visible !== false && !scrollPagination && !tableitemInfo?.layoutSchema?.pagination?.top && tableitemInfo?.layoutSchema?.pagination?.bottom\">\r\n <vl-pagination [itemInfo]=\"tableitemInfo\" [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 <!-- the search box above the table (layoutSchema.search) -->\r\n <ng-template #gridSearch>\r\n <div class=\"grid-toolbar\" [ngClass]=\"[searchPositionClass, classNames(tableitemInfo?.layoutSchema?.search?.style)]\">\r\n <div class=\"grid-search-box\" [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.boxStyle)\">\r\n <span nz-icon nzType=\"search\" class=\"grid-search-icon\" aria-hidden=\"true\"\r\n [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.iconStyle)\"></span>\r\n <input type=\"text\" class=\"grid-search-input\" [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.inputStyle)\" vlCustomKeyboard=\"string\" [placeholder]=\"searchPlaceholder()\"\r\n [ngModel]=\"searchText\" (ngModelChange)=\"searchText = $event\" [ngModelOptions]=\"{ standalone: true }\" />\r\n <button *ngIf=\"searchText\" type=\"button\" class=\"grid-search-clear\"\r\n [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.buttonStyle)\"\r\n [attr.aria-label]=\"t('Clear search')\" (click)=\"searchText = ''\">\r\n <span nz-icon nzType=\"close-circle\" aria-hidden=\"true\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- one cell that is not edited: action icons or a button, quantity, a product, or the row's value (the app and the\r\n canvas); the cell of the row being edited stays in the app's form above -->\r\n <ng-template #gridCell let-col=\"col\" let-data=\"data\" let-i=\"i\">\r\n @if (!col?.scope?.reference) {\r\n <span *ngIf=\"col.option?.actionColumn\">\r\n <span nz-icon\r\n *ngIf=\"setActionColumn(col.option?.save, data)\"\r\n [nzType]=\"col.option?.save?.icon\"\r\n [nzTheme]=\"'twotone'\"\r\n [style]=\"col.option?.save?.style\"\r\n [nzTwotoneColor]=\"'#52c41a'\"\r\n [class]=\"classNames(col.option?.save?.style)\" data-vl-action=\"save\" data-vl-writes=\"true\"\r\n (click)=\"upsertAction(col.option?.save, data)\">\r\n </span>\r\n <span nz-icon\r\n *ngIf=\"setActionColumn(col.option?.delete, data)\"\r\n [nzType]=\"col.option?.delete?.icon\"\r\n [nzTheme]=\"'twotone'\"\r\n [style]=\"col.option?.delete?.style\"\r\n [nzTwotoneColor]=\"'#FF0000'\"\r\n [class]=\"classNames(col.option?.delete?.style)\" data-vl-action=\"delete\" data-vl-writes=\"true\"\r\n (click)=\"deleteRow(col.option?.delete, data)\"></span>\r\n \r\n </span>\r\n <span *ngIf=\"!col.option?.actionColumn\">\r\n <button type=\"submit\"\r\n [attr.data-vl-action]=\"vlAction(col.option)\" [attr.data-vl-writes]=\"vlWrites(col.option)\"\r\n [style]=\"getStyleWithoutClasses(col?.label?.style).style\"\r\n (click)=\"invokeRowBtnClick(col.option, data)\"\r\n [class]=\"classNames(col?.label?.style)\">\r\n {{ col.label?.caption | vlDesignText:designTranslations }}\r\n </button>\r\n </span>\r\n } @else if (cellType(col) === 'quantity') {\r\n <div style=\"display: flex; align-items: center;\">\r\n <button pButton icon=\"pi pi-minus\"\r\n (click)=\"decrementQuantity(i,col.scope?.reference.split('/').pop(), col.option)\"\r\n [disabled]=\"data.quantity <= 0\"\r\n style=\"margin-right: 8px; height: 10px; width: 10px;\"></button>\r\n <span>{{ data[col.scope?.reference.split('/').pop()]\r\n }}</span>\r\n <button pButton icon=\"pi pi-plus\"\r\n (click)=\"incrementQuantity(i, col.scope?.reference.split('/').pop(), col.option)\"\r\n style=\"margin-left: 8px; height: 10px; width: 10px;\"></button>\r\n </div>\r\n } @else if (cellType(col) === 'number' && isCalculated(col)) {\r\n <span>{{ calculatedValue(col, data) | number:'1.2-2' }}</span>\r\n } @else {\r\n <vl-control mode=\"display\" [field]=\"col | vlDesignField:designTranslations\" [record]=\"data\"\r\n [propertySchema]=\"tableitemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [list]=\"remoteData[col.scope.reference]\"\r\n [hideLabel]=\"true\" [styleValue]=\"false\" [compact]=\"true\"\r\n (linkClicked)=\"showLinkDetails(col.option, data)\"\r\n (mediaClicked)=\"invokeTableImageClick(col, data)\">\r\n </vl-control>\r\n }\r\n </ng-template>\r\n <!-- the table's footer -->\r\n <ng-template #gridFooter>\r\n <div class=\"table-footer flex flex-column align-items-end gap-2 pt-2 mx-4 border-top-1 border-cyan-500\">\r\n <!-- every footer field and button is drawn by the shared <vl-control>, like the form and the dialog: the\r\n same controls, protected = a locked input, no * on it, start values, rules (it had its own switch\r\n for text and number with its own protected text - user 2026-10-29: the same pattern everywhere) -->\r\n <div *ngFor=\"let tableField of tableitemInfo?.footer?.formFields | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(tableField)\" [attr.data-vl-path]=\"vlFieldPath(tableField)\">\r\n <vl-control [field]=\"tableField | vlDesignField:designTranslations\" [propertySchema]=\"tableitemInfo?.propertySchema ?? form?.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [saveTried]=\"false\" container=\"form\" buttonType=\"button\"\r\n [list]=\"remoteData[tableField.scope?.reference]\"\r\n (buttonClick)=\"invokeGridBtnClick($event, tableitemInfo.propertySchema)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </ng-template>\r\n ", styles: [".grid-filter-row th{padding:8px;vertical-align:middle;background:#fafafa}.grid-filter-cell{min-width:150px}.grid-filter-input-wrapper{display:flex;align-items:stretch;width:100%}.grid-filter-input{width:100%;min-width:0;min-height:34px;padding:5px 8px;border:1px solid #d9d9d9;border-right:0;border-radius:4px 0 0 4px;outline:none}.grid-filter-input:focus{border-color:#1677ff}.grid-filter-operator-button,.grid-filter-clear-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:34px;padding:0;cursor:pointer;background:#fff;border:1px solid #d9d9d9}.grid-filter-operator-button{color:#595959;border-radius:0 4px 4px 0}.grid-filter-operator-button:hover,.grid-filter-operator-button--active{color:#1677ff;border-color:#1677ff}.grid-filter-clear-button{margin-left:5px;color:#ff4d4f;border-radius:4px}.grid-filter-clear-button:hover{color:#fff;background:#ff4d4f;border-color:#ff4d4f}.grid-filter-operator-menu{min-width:190px}:host ::ng-deep .ant-table-content.has-more-right{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent)}:host ::ng-deep .ant-table-content.has-more-left{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent)}:host ::ng-deep .ant-table-content.has-more-left.has-more-right{-webkit-mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent)}::ng-deep :where(.grid-edit-cell){width:1%;white-space:nowrap;text-align:center}::ng-deep :where(.grid-edit-btn){min-width:32px;height:32px;margin:0 2px;border:1px solid #d1d5db;border-radius:4px;background:#fff;cursor:pointer;font-size:15px;line-height:1}::ng-deep :where(.grid-edit-btn--save){border-color:#16a34a;background:#16a34a;color:#fff}::ng-deep :where(.grid-edit-btn:disabled){opacity:.4;cursor:default}::ng-deep :where(.grid-cell--editing){min-width:160px}::ng-deep :where(.grid-cell--wide){min-width:240px}.grid-cell--editing ::ng-deep vl-control,.grid-cell--editing ::ng-deep vl-textbox input,.grid-cell--editing ::ng-deep vl-password input,.grid-cell--editing ::ng-deep vl-textarea textarea,.grid-cell--editing ::ng-deep .ant-picker,.grid-cell--editing ::ng-deep .ant-select{display:block;width:100%!important;max-width:100%;box-sizing:border-box}.grid-toolbar{width:100%;display:flex}.grid-toolbar.search-left{justify-content:flex-start}.grid-toolbar.search-center{justify-content:center}.grid-toolbar.search-right{justify-content:flex-end}.vl-d-th{position:relative;cursor:pointer;border-radius:0;outline-offset:-2px}.vl-d-th .vl-d-bar{top:2px;right:4px}.vl-d-resize{position:absolute;z-index:25;opacity:0;transition:opacity .15s ease,background-color .15s ease}.vl-d-th:hover .vl-d-resize{opacity:1}.vl-d-resize--width{top:0;right:-3px;width:6px;height:100%;cursor:col-resize}.vl-d-resize--height{left:0;bottom:-3px;width:100%;height:6px;cursor:row-resize}.vl-d-resize:hover{background:#1890ff59}.vl-d-grid-empty{min-height:120px}.vl-d-cell{cursor:default}th.cdk-drag-preview{display:flex;align-items:center;padding:12px 16px;background:#fff;border:1px solid #d0d5dd;box-shadow:0 10px 24px #0f172a29}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
12561
+ ], selector: 'vl-grid', template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: a calculated column (innerAction calculate, older { action: multiply }) through isCalculated / calculatedValue -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - fix: test marks like the other containers - a row is a record (data-vl-record), a cell and a footer field carry\r\n data-vl-field and data-vl-path, a column button data-vl-action / data-vl-writes, the action icons save / delete -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\r\n - change: the table's footer draws its fields and buttons by <vl-control> like form and dialog (one pattern) -->\r\n<!-- Shuaib, 2026-10-27\r\n - change: grid search takes project CSS classes from search.style / boxStyle / inputStyle / iconStyle /\r\n buttonStyle; the app and design canvas share this template. Search/filter behavior stays the same.\r\n - fix: the clear action is a keyboard-accessible button with a translated accessible name. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - new: the end of the table asks for the next page when it pages by scrolling (scrollSentinel)\r\n - fix: the page bar is hidden while the table pages by scrolling, like the cards (hotel Reservations)\r\n - fix: the page bar follows pagination.visible (Show pagination off in the editor) - it showed anyway\r\n - fix: \"no records\" only once loading is done - it showed while the rows were on their way (luv2shop Orders)\r\n - fix: a cell stays a table cell (cellStyle) - display: block of an image column pushed every column one to the left -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: every class of a style is set (classNames), not only the first -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - fix: the column filter is no part of the row form (ngModelOptions standalone) - without a name Angular stopped\r\n the whole grid with NG01352 (hotel Reservations stayed empty) -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its grid page here - the same table, cells, footer and\r\n page bar as the app, with sample rows; columns with drag, edit, delete and resize; a data object's field\r\n dropped on the heads becomes a column\r\n - new: the search box (layoutSchema.search), row stripes (layoutSchema.rowStyle) and column sizes\r\n (option.width / option.height) the Designer sets\r\n - change: a cell and the footer stand in templates (gridCell, gridFooter) that the app and the canvas share -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - change: caption and date pattern from the layout - a data object holds names and types only -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - change: the delete icon of a row goes through deleteRow (PageData for a browser list, A4)\r\n - new: editing as the page sets it (layoutSchema.edit.mode): \"row\" - pencil, the unlocked cells of\r\n that row become <vl-control mode=\"edit\"> (every type, checked like the dialog), \u2713 saves, \u2715 cancels;\r\n \"dialog\" - pencil opens the page's dialog with the record; without edit the grid is read only.\r\n The old inputs that wrote text, number and check box cells into the row without saving are gone\r\n - fix: the table takes its style from its page (layoutSchema.style); the menu or header option's style\r\n is the style of that button - luv2shop's cart table got the cart pill's max-width 90px -->\r\n<!-- Shuaib 2026-10-20\r\n - change: the cells that show a value are drawn by the shared <vl-control> in display mode (#166):\r\n the row's value of every type, read only - date, time, drop-down, autocomplete and period cells\r\n were inputs bound to the form's property (the same value in every row); integer and bigdecimal\r\n columns stayed empty\r\n - kept: unlocked text and number cells (typed in, saved by the action column), quantity +/-, multiply,\r\n the check box of the row, action columns, buttons, the footer\r\n - change: a locked check box is shown read only; it could be ticked\r\n - fix: action icons, button and footer labels read style.classes?.[0]; a style without classes (the Designer's default {}) threw -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: date and time in one value (type datetime or control dateTimepicker): field and display (#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: the footer's number field is the one vl-number (#166 step 4.4)\r\n - change: the footer's text field is the one vl-textbox (#166 step 4.4)\r\n - change: cells and footer follow the layout's control (password, textArea, switch, combobox) with the\r\n shared controls, cells read only and compact (#166 step 4.4)\r\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\r\n - change: footer fields: rules only from the layout (vlRules) and the message of the first error (#166 step 4.6)\r\n - change: fields/columns with option.visible false are left out (vlVisible, #166)\r\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\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 - 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: date and time cells use the shared picker markup (picker-field, DateTimePickerService);\r\n their PrimeNG icon opened the calendar together with the system keyboard -->\r\n\r\n<!-- Shuaib 2026-09-24\r\n - change: grid cells render legacy checkbox fields through the boolean control. -->\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: @contract comments on the sorting, on the column filter and on the footer. The filter\r\n reads option.filter and never option.columnFilter, which is the mistake a layout author\r\n makes without being told -->\r\n @if (design) {\r\n <!-- design mode (the Designer's canvas): the table with sample rows, the search box, footer and page bar as the app\r\n shows them; every column - hidden ones faded - with drag, edit, delete and its edges to resize; a data object's\r\n field dropped on the column heads becomes a column there. A click on a head opens the column's settings -->\r\n <div class=\"reservation-container vl-d-root\" (click)=\"selectGrid()\">\r\n <div class=\"vl-d-container-bar\">\r\n <vl-design-bar [actions]=\"['edit']\" [titles]=\"{ edit: dt.editGrid }\" (act)=\"selectGrid()\"></vl-design-bar>\r\n </div>\r\n <ng-container *ngIf=\"showSearch\"><ng-container *ngTemplateOutlet=\"gridSearch\"></ng-container></ng-container>\r\n @if (!tableitemInfo?.layoutSchema?.elements?.length) {\r\n <div class=\"vl-d-empty vl-d-grid-empty\" [id]=\"designListId\" data-vl-design-list\r\n cdkDropList [cdkDropListData]=\"[]\" (cdkDropListDropped)=\"columnDropped($event)\">\r\n {{ dt.emptyGrid }}\r\n </div>\r\n } @else {\r\n <nz-table #designTable [nzScroll]=\"{ x: 'max-content' }\" [nzData]=\"designRows\" [nzBordered]=\"true\" [nzFrontPagination]=\"false\"\r\n [nzShowPagination]=\"false\" [style]=\"getStyleWithoutClasses(tableitemInfo?.layoutSchema?.style).style\">\r\n <thead>\r\n <tr [id]=\"designListId\" data-vl-design-list cdkDropList cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"tableitemInfo.layoutSchema.elements\" (cdkDropListDropped)=\"columnDropped($event)\">\r\n @for (column of tableitemInfo.layoutSchema.elements; track $index; let ci = $index) {\r\n <th class=\"vl-d-th vl-d-item\" cdkDrag cdkDragLockAxis=\"x\" [cdkDragData]=\"{ vlDesign: 'column', index: ci }\"\r\n [ngStyle]=\"columnSize(column)\"\r\n [class.vl-d-hidden]=\"column?.option?.visible === false\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'column', index: ci })\"\r\n (cdkDragStarted)=\"columnDragStarted()\" (click)=\"$event.stopPropagation(); columnAction('edit', ci)\">\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragColumn, edit: dt.editColumn, delete: dt.deleteColumn }\"\r\n (act)=\"columnAction($event, ci)\"></vl-design-bar>\r\n @if (column?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n {{ column?.label?.caption | vlDesignText:designTranslations }}\r\n <span class=\"vl-d-resize vl-d-resize--width\" [attr.title]=\"dt.resizeWidth\"\r\n (mousedown)=\"startResize($event, ci, 'width')\" (click)=\"$event.stopPropagation()\"></span>\r\n <span class=\"vl-d-resize vl-d-resize--height\" [attr.title]=\"dt.resizeHeight\"\r\n (mousedown)=\"startResize($event, ci, 'height')\" (click)=\"$event.stopPropagation()\"></span>\r\n </th>\r\n }\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n <tr *ngIf=\"hasAnyColumnFilter()\" class=\"grid-filter-row\">\r\n @for (column of tableitemInfo.layoutSchema.elements; track $index) {\r\n <th class=\"grid-filter-cell\" [class.vl-d-hidden]=\"column?.option?.visible === false\">\r\n @if (column?.option?.filter?.filtering === true && column?.scope?.reference) {\r\n <div class=\"grid-filter-input-wrapper\">\r\n <input type=\"text\" class=\"grid-filter-input\" disabled [placeholder]=\"getColumnFilterPlaceholder(column)\" />\r\n <button type=\"button\" class=\"grid-filter-operator-button\" disabled><span nz-icon nzType=\"filter\"></span></button>\r\n </div>\r\n }\r\n </th>\r\n }\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (data of designTable.data; track $index; let i = $index) {\r\n <tr [ngStyle]=\"rowStyleOf(i)\">\r\n @for (col of tableitemInfo.layoutSchema.elements; track $index) {\r\n <td [style]=\"cellStyle(col, i)\" [class.vl-d-hidden]=\"col?.option?.visible === false\">\r\n <div class=\"vl-d-body vl-d-cell\">\r\n <ng-container *ngTemplateOutlet=\"gridCell; context: { col: col, data: data, i: i }\"></ng-container>\r\n </div>\r\n </td>\r\n }\r\n <td *ngIf=\"canEdit\" class=\"grid-edit-cell\">\r\n <button type=\"button\" class=\"grid-edit-btn\" disabled>&#9998;</button>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </nz-table>\r\n }\r\n @if (tableitemInfo?.footer?.formFields && designAll.length) {\r\n <div class=\"vl-d-body\"><ng-container *ngTemplateOutlet=\"gridFooter\"></ng-container></div>\r\n }\r\n @if (designAll.length && !designInfo?.layoutSchema?.pagination?.top && designInfo?.layoutSchema?.pagination?.bottom) {\r\n <div>\r\n <vl-pagination [itemInfo]=\"designInfo\" [pageSize]=\"designPageSize\" [currentPage]=\"designPage\"\r\n [pages]=\"designPages\" (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div *ngIf=\"!tableitemInfo.data?.length && !isTableDataLoad && !pageData?.loading\" class=\"alert alert-warning col-md-12\"\r\n role=\"alert\">\r\n {{ noRecordText }}\r\n </div>\r\n <div *ngIf=\"tableitemInfo.data?.length\" class=\"reservation-container pt-5 px-3\">\r\n <ng-container *ngIf=\"showSearch\"><ng-container *ngTemplateOutlet=\"gridSearch\"></ng-container></ng-container>\r\n <!-- the controls of the row being edited join this form, so \u2713 checks them like the dialog does -->\r\n <form #gridForm=\"ngForm\" (ngSubmit)=\"saveRow()\">\r\n <nz-table #basicTable [nzData]=\"gridDisplayData\"\r\n [nzNoResult]=\"'No matching records found'\" [nzBordered]=\"true\"\r\n [nzFrontPagination]=\"currenTableOptions?.pagination?.tabs\"\r\n [style]=\"getStyleWithoutClasses(tableitemInfo?.layoutSchema?.style).style\"\r\n (scroll)=\"onScrollEvent($event)\"\r\n [nzLoading]=\"isTableDataLoad\">\r\n <thead>\r\n <!-- @contract decision: option.sortable is read here\r\n reality: nzSortFn is wired to getColumnSortFn since 2026-09-16; before that\r\n the key was decoration. The column also needs a scope.reference -\r\n without one getColumnSortFn has nothing to sort by.\r\n seen: grid.component.ts:338 -->\r\n <!-- Column headings and sorting -->\r\n <tr>\r\n <th *ngFor=\"let column of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n [ngStyle]=\"columnSize(column)\"\r\n [nzSortFn]=\"\r\n column?.option?.sortable\r\n ? getColumnSortFn(column)\r\n : false\r\n \"\r\n [class.grid-cell--editing]=\"editingRow && editableCol(column)\"\r\n [class.grid-cell--wide]=\"editingRow && editableCol(column) && wideEditCell(column)\">\r\n \r\n {{ column?.label?.caption | vlDesignText:designTranslations }}\r\n </th>\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n \r\n <!-- @contract decision: the column filter reads option.filter, NOT option.columnFilter\r\n reality: option.filter.filtering switches it on, option.filter.defaultOperator\r\n starts the comparison (the renderer falls back to contains), and\r\n option.filter.placeholder labels the input.\r\n failure: option.columnFilter is read nowhere, here or in the runtime app. A\r\n column carrying it looks filterable in the file and is not on screen.\r\n seen: grid.component.ts:450-475; 5 uses of columnFilter across the reference\r\n projects, all of them dead -->\r\n <!-- Column filters -->\r\n <tr *ngIf=\"hasAnyColumnFilter()\" class=\"grid-filter-row\">\r\n \r\n <th *ngFor=\"let column of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n class=\"grid-filter-cell\">\r\n \r\n <ng-container *ngIf=\"\r\n column?.option?.filter?.filtering === true &&\r\n column?.scope?.reference\r\n \">\r\n \r\n <div class=\"grid-filter-input-wrapper\">\r\n <input type=\"text\" class=\"grid-filter-input\" vlCustomKeyboard=\"string\"\r\n [placeholder]=\"getColumnFilterPlaceholder(column)\"\r\n [ngModel]=\"getColumnFilterState(column).value\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"\r\n setColumnFilterValue(column, $event)\r\n \" />\r\n \r\n <!-- Operator selection button -->\r\n <button type=\"button\"\r\n class=\"grid-filter-operator-button\" nz-dropdown\r\n nzTrigger=\"click\"\r\n [nzDropdownMenu]=\"operatorMenu\"\r\n [class.grid-filter-operator-button--active]=\"\r\n hasActiveColumnFilter(column)\r\n \" [title]=\"\r\n 'Operator: ' +\r\n getFilterOperatorLabel(\r\n getColumnFilterState(column).operator\r\n )\r\n \">\r\n \r\n <span nz-icon nzType=\"filter\"></span>\r\n </button>\r\n \r\n <!-- Clear current column filter -->\r\n <button *ngIf=\"hasActiveColumnFilter(column)\"\r\n type=\"button\" class=\"grid-filter-clear-button\"\r\n aria-label=\"Clear column filter\"\r\n title=\"Clear filter\"\r\n (click)=\"clearColumnFilter(column)\">\r\n \r\n <span nz-icon nzType=\"close\"></span>\r\n </button>\r\n </div>\r\n \r\n <!-- Operator dropdown -->\r\n <nz-dropdown-menu #operatorMenu=\"nzDropdownMenu\">\r\n <ul nz-menu class=\"grid-filter-operator-menu\">\r\n <li *ngFor=\"let operator of filterOperators\"\r\n nz-menu-item [nzSelected]=\"\r\n getColumnFilterState(column).operator ===\r\n operator.value\r\n \" (click)=\"\r\n setColumnFilterOperator(\r\n column,\r\n operator.value\r\n )\r\n \">\r\n \r\n <span *ngIf=\"\r\n getColumnFilterState(column).operator ===\r\n operator.value\r\n \" nz-icon nzType=\"check\">\r\n </span>\r\n \r\n {{ operator.label }}\r\n </li>\r\n </ul>\r\n </nz-dropdown-menu>\r\n </ng-container>\r\n </th>\r\n <th *ngIf=\"canEdit\" class=\"grid-edit-cell\"></th>\r\n </tr>\r\n </thead>\r\n <!-- @contract decision: a cell shows the row's value through <vl-control mode=\"display\">\r\n reality: every type is shown (integer, bigdecimal and the credit card stayed empty before);\r\n unlocked text and number cells, quantity, multiply and the check box keep their own\r\n blocks, because they write into the row.\r\n \r\n @contract decision: columns without scope.reference are valid\r\n reality: with option.actionColumn they render save/delete icons, otherwise a\r\n button. That is why the conditions below all guard on the reference. -->\r\n <tbody>\r\n <tr *ngFor=\"let data of basicTable.data; let i = index\" [ngStyle]=\"rowStyleOf(i)\" data-vl-record>\r\n <td *ngFor=\"let col of tableitemInfo.layoutSchema.elements | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(col)\" [attr.data-vl-path]=\"vlFieldPath(col)\"\r\n [style]=\"cellStyle(col, i)\"\r\n [class.grid-cell--editing]=\"cellEditing(col, data)\"\r\n [class.grid-cell--wide]=\"cellEditing(col, data) && wideEditCell(col)\">\r\n <!-- a column without property: action icons or a button. Unlocked text and number cells\r\n are typed in (the row is saved by the action column), a check box ticks the row; every\r\n other cell shows the row's value through the shared <vl-control> in display mode -->\r\n @if (cellEditing(col, data)) {\r\n <!-- inside the form: the controls of the row being edited join it, so \u2713 checks them -->\r\n <vl-control mode=\"edit\" [field]=\"col | vlDesignField:designTranslations\" [propertySchema]=\"rowSchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"rowSaveTried\" [list]=\"remoteData[col.scope.reference]\"\r\n [hideLabel]=\"true\" [compact]=\"true\">\r\n </vl-control>\r\n } @else {\r\n <ng-container *ngTemplateOutlet=\"gridCell; context: { col: col, data: data, i: i }\"></ng-container>\r\n }\r\n </td>\r\n <!-- edit: pencil, or \u2713 save / \u2715 cancel on the row being edited (layoutSchema.edit) -->\r\n <td *ngIf=\"canEdit\" class=\"grid-edit-cell\">\r\n @if (editingRow === data) {\r\n <button type=\"submit\" class=\"grid-edit-btn grid-edit-btn--save\" [attr.aria-label]=\"t('Save')\"\r\n data-vl-action=\"saveRow\">&#10003;</button>\r\n <button type=\"button\" class=\"grid-edit-btn\" [attr.aria-label]=\"t('Cancel')\"\r\n data-vl-action=\"cancelRow\" (click)=\"cancelEdit()\">&#10005;</button>\r\n } @else {\r\n <button type=\"button\" class=\"grid-edit-btn\" [attr.aria-label]=\"t('Edit')\" [disabled]=\"editingRow\"\r\n data-vl-action=\"editRow\" (click)=\"startEdit(data)\">&#9998;</button>\r\n }\r\n </td>\r\n </tr>\r\n </tbody>\r\n </nz-table>\r\n </form>\r\n </div>\r\n \r\n <!-- table footer -->\r\n <ng-container *ngIf=\"tableitemInfo?.footer?.formFields && tableitemInfo.data?.length\">\r\n <ng-container *ngTemplateOutlet=\"gridFooter\"></ng-container>\r\n </ng-container>\r\n \r\n <!-- scrolling: the end of the runtime table asks for the next page -->\r\n @if (scrollPagination) {<div #scrollSentinel class=\"scroll-pagination-sentinel\" aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\"></div>}\r\n \r\n <!-- bottom pagination on grid -->\r\n <div\r\n *ngIf=\"tableitemInfo.data?.length && tableitemInfo?.layoutSchema?.pagination?.visible !== false && !scrollPagination && !tableitemInfo?.layoutSchema?.pagination?.top && tableitemInfo?.layoutSchema?.pagination?.bottom\">\r\n <vl-pagination [itemInfo]=\"tableitemInfo\" [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 <!-- the search box above the table (layoutSchema.search) -->\r\n <ng-template #gridSearch>\r\n <div class=\"grid-toolbar\" [ngClass]=\"[searchPositionClass, classNames(tableitemInfo?.layoutSchema?.search?.style)]\">\r\n <div class=\"grid-search-box\" [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.boxStyle)\">\r\n <span nz-icon nzType=\"search\" class=\"grid-search-icon\" aria-hidden=\"true\"\r\n [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.iconStyle)\"></span>\r\n <input type=\"text\" class=\"grid-search-input\" [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.inputStyle)\" vlCustomKeyboard=\"string\" [placeholder]=\"searchPlaceholder()\"\r\n [ngModel]=\"searchText\" (ngModelChange)=\"searchText = $event\" [ngModelOptions]=\"{ standalone: true }\" />\r\n <button *ngIf=\"searchText\" type=\"button\" class=\"grid-search-clear\"\r\n [ngClass]=\"classNames(tableitemInfo?.layoutSchema?.search?.buttonStyle)\"\r\n [attr.aria-label]=\"t('Clear search')\" (click)=\"searchText = ''\">\r\n <span nz-icon nzType=\"close-circle\" aria-hidden=\"true\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- one cell that is not edited: action icons or a button, quantity, a product, or the row's value (the app and the\r\n canvas); the cell of the row being edited stays in the app's form above -->\r\n <ng-template #gridCell let-col=\"col\" let-data=\"data\" let-i=\"i\">\r\n @if (!col?.scope?.reference) {\r\n <span *ngIf=\"col.option?.actionColumn\">\r\n <span nz-icon\r\n *ngIf=\"setActionColumn(col.option?.save, data)\"\r\n [nzType]=\"col.option?.save?.icon\"\r\n [nzTheme]=\"'twotone'\"\r\n [style]=\"col.option?.save?.style\"\r\n [nzTwotoneColor]=\"'#52c41a'\"\r\n [class]=\"classNames(col.option?.save?.style)\" data-vl-action=\"save\" [attr.data-vl-writes]=\"rowWrites(col.option?.save)\"\r\n (click)=\"upsertAction(col.option?.save, data)\">\r\n </span>\r\n <span nz-icon\r\n *ngIf=\"setActionColumn(col.option?.delete, data)\"\r\n [nzType]=\"col.option?.delete?.icon\"\r\n [nzTheme]=\"'twotone'\"\r\n [style]=\"col.option?.delete?.style\"\r\n [nzTwotoneColor]=\"'#FF0000'\"\r\n [class]=\"classNames(col.option?.delete?.style)\" data-vl-action=\"delete\" data-vl-writes=\"true\"\r\n (click)=\"deleteRow(col.option?.delete, data)\"></span>\r\n \r\n </span>\r\n <span *ngIf=\"!col.option?.actionColumn\">\r\n <button type=\"submit\"\r\n [attr.data-vl-action]=\"vlAction(col.option)\" [attr.data-vl-writes]=\"vlWrites(col.option)\"\r\n [style]=\"getStyleWithoutClasses(col?.label?.style).style\"\r\n (click)=\"invokeRowBtnClick(col.option, data)\"\r\n [class]=\"classNames(col?.label?.style)\">\r\n {{ col.label?.caption | vlDesignText:designTranslations }}\r\n </button>\r\n </span>\r\n } @else if (cellType(col) === 'quantity') {\r\n <div style=\"display: flex; align-items: center;\">\r\n <button pButton icon=\"pi pi-minus\"\r\n (click)=\"decrementQuantity(i,col.scope?.reference.split('/').pop(), col.option)\"\r\n [disabled]=\"data.quantity <= 0\"\r\n style=\"margin-right: 8px; height: 10px; width: 10px;\"></button>\r\n <span>{{ data[col.scope?.reference.split('/').pop()]\r\n }}</span>\r\n <button pButton icon=\"pi pi-plus\"\r\n (click)=\"incrementQuantity(i, col.scope?.reference.split('/').pop(), col.option)\"\r\n style=\"margin-left: 8px; height: 10px; width: 10px;\"></button>\r\n </div>\r\n } @else if (cellType(col) === 'number' && isCalculated(col)) {\r\n <span>{{ calculatedValue(col, data) | number:'1.2-2' }}</span>\r\n } @else {\r\n <vl-control mode=\"display\" [field]=\"col | vlDesignField:designTranslations\" [record]=\"data\"\r\n [propertySchema]=\"tableitemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [list]=\"remoteData[col.scope.reference]\"\r\n [hideLabel]=\"true\" [styleValue]=\"false\" [compact]=\"true\"\r\n (linkClicked)=\"showLinkDetails(col.option, data)\"\r\n (mediaClicked)=\"invokeTableImageClick(col, data)\">\r\n </vl-control>\r\n }\r\n </ng-template>\r\n <!-- the table's footer -->\r\n <ng-template #gridFooter>\r\n <div class=\"table-footer flex flex-column align-items-end gap-2 pt-2 mx-4 border-top-1 border-cyan-500\">\r\n <!-- every footer field and button is drawn by the shared <vl-control>, like the form and the dialog: the\r\n same controls, protected = a locked input, no * on it, start values, rules (it had its own switch\r\n for text and number with its own protected text - user 2026-10-29: the same pattern everywhere) -->\r\n <div *ngFor=\"let tableField of tableitemInfo?.footer?.formFields | vlVisible\"\r\n [attr.data-vl-field]=\"vlFieldKey(tableField)\" [attr.data-vl-path]=\"vlFieldPath(tableField)\">\r\n <vl-control [field]=\"tableField | vlDesignField:designTranslations\" [propertySchema]=\"tableitemInfo?.propertySchema ?? form?.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [errorMessages]=\"selectedLanguageInfo?.errorMessages || errorMessages\"\r\n [saveTried]=\"false\" container=\"form\" buttonType=\"button\"\r\n [list]=\"remoteData[tableField.scope?.reference]\"\r\n (buttonClick)=\"invokeGridBtnClick($event, tableitemInfo.propertySchema)\">\r\n </vl-control>\r\n </div>\r\n </div>\r\n </ng-template>\r\n ", styles: [".grid-filter-row th{padding:8px;vertical-align:middle;background:var(--vl-color-surface, #fafafa)}.grid-filter-cell{min-width:150px}.grid-filter-input-wrapper{display:flex;align-items:stretch;width:100%}.grid-filter-input{width:100%;min-width:0;min-height:34px;padding:5px 8px;border:1px solid var(--vl-color-border, #d9d9d9);border-right:0;border-radius:4px 0 0 4px;outline:none}.grid-filter-input:focus{border-color:var(--vl-color-primary, #1677ff)}.grid-filter-operator-button,.grid-filter-clear-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:34px;padding:0;cursor:pointer;background:var(--vl-color-surface, #ffffff);border:1px solid var(--vl-color-border, #d9d9d9)}.grid-filter-operator-button{color:var(--vl-color-text-muted, #595959);border-radius:0 4px 4px 0}.grid-filter-operator-button:hover,.grid-filter-operator-button--active{color:var(--vl-color-primary, #1677ff);border-color:var(--vl-color-primary, #1677ff)}.grid-filter-clear-button{margin-left:5px;color:var(--vl-color-danger, #ff4d4f);border-radius:4px}.grid-filter-clear-button:hover{color:var(--vl-color-on-primary, #ffffff);background:var(--vl-color-danger, #ff4d4f);border-color:var(--vl-color-danger, #ff4d4f)}.grid-filter-operator-menu{min-width:190px}:host ::ng-deep .ant-table-content.has-more-right{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent)}:host ::ng-deep .ant-table-content.has-more-left{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent)}:host ::ng-deep .ant-table-content.has-more-left.has-more-right{-webkit-mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent)}::ng-deep :where(.grid-edit-cell){width:1%;white-space:nowrap;text-align:center}::ng-deep :where(.grid-edit-btn){min-width:32px;height:32px;margin:0 2px;border:1px solid var(--vl-color-border, #d1d5db);border-radius:4px;background:var(--vl-color-surface, #ffffff);cursor:pointer;font-size:15px;line-height:1}::ng-deep :where(.grid-edit-btn--save){border-color:var(--vl-color-success, #16a34a);background:var(--vl-color-success, #16a34a);color:var(--vl-color-on-primary, #ffffff)}::ng-deep :where(.grid-edit-btn:disabled){opacity:.4;cursor:default}::ng-deep :where(.grid-cell--editing){min-width:160px}::ng-deep :where(.grid-cell--wide){min-width:240px}.grid-cell--editing ::ng-deep vl-control,.grid-cell--editing ::ng-deep vl-textbox input,.grid-cell--editing ::ng-deep vl-password input,.grid-cell--editing ::ng-deep vl-textarea textarea,.grid-cell--editing ::ng-deep .ant-picker,.grid-cell--editing ::ng-deep .ant-select{display:block;width:100%!important;max-width:100%;box-sizing:border-box}.grid-toolbar{width:100%;display:flex}.grid-toolbar.search-left{justify-content:flex-start}.grid-toolbar.search-center{justify-content:center}.grid-toolbar.search-right{justify-content:flex-end}.vl-d-th{position:relative;cursor:pointer;border-radius:0;outline-offset:-2px}.vl-d-th .vl-d-bar{top:2px;right:4px}.vl-d-resize{position:absolute;z-index:25;opacity:0;transition:opacity .15s ease,background-color .15s ease}.vl-d-th:hover .vl-d-resize{opacity:1}.vl-d-resize--width{top:0;right:-3px;width:6px;height:100%;cursor:col-resize}.vl-d-resize--height{left:0;bottom:-3px;width:100%;height:6px;cursor:row-resize}.vl-d-resize:hover{background:#1890ff59}.vl-d-grid-empty{min-height:120px}.vl-d-cell{cursor:default}th.cdk-drag-preview{display:flex;align-items:center;padding:12px 16px;background:var(--vl-color-surface, #ffffff);border:1px solid var(--vl-color-border, #d0d5dd);box-shadow:0 10px 24px #0f172a29}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
11996
12562
  }], ctorParameters: () => [{ type: RequestService }, { type: UtilityService }, { type: NotificationService }, { type: i4.OktaAuthStateService }], propDecorators: { errorMessages: [{
11997
12563
  type: Input
11998
12564
  }], environment: [{
@@ -12118,6 +12684,13 @@ function moveTreeNode(items, from, parent, destinationIndex, key) {
12118
12684
  return next;
12119
12685
  }
12120
12686
 
12687
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
12688
+ // - new: data-vl-header - an element's place in the header, only in the Designer's preview (designer links, worklist 25)
12689
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
12690
+ // - fix: a header picture (logo) is resolved like every media file (resolveMediaSource) - in the draft preview it
12691
+ // showed a broken image
12692
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
12693
+ // - fix: an element's kind also from option.control; a button without a target does nothing (it emptied the page)
12121
12694
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
12122
12695
  // - change: what an element does is asked of the action catalog (actionName) - action = backend, innerAction = app;
12123
12696
  // older forms (button "get", innerAction saveAll/submit, copy/multiply objects) mean the same (OFFENE-PUNKTE 105/145)
@@ -12133,12 +12706,21 @@ function moveTreeNode(items, from, parent, destinationIndex, key) {
12133
12706
  // - change: design mode emits path selections/layout edits; deletes wait for the editor; no login, image fetch or navigation.
12134
12707
  // - new: app-language captions and editor-resolved media render without changing saved layout values.
12135
12708
  let headerDesignCount = 0;
12709
+ /** Whether a header button leads somewhere: a page, form, table, an action or the sign-in. */
12710
+ function hasHeaderTarget(option) {
12711
+ if (!option || typeof option !== 'object')
12712
+ return false;
12713
+ return ['layout_url', 'form', 'table', 'action', 'innerAction', 'islogin', 'login', 'oktaLogin', 'keycloakLogin', 'url', 'data_url']
12714
+ .some((key) => option[key] !== undefined && option[key] !== null && option[key] !== '');
12715
+ }
12136
12716
  class HeaderMenuComponent {
12137
12717
  oktaAuthService;
12138
12718
  requestService;
12139
12719
  utilityService;
12140
12720
  couchdbService;
12141
12721
  platform;
12722
+ /** In the Designer's preview each element carries its place (data-vl-header) - a right click opens it there (worklist 25). */
12723
+ linksOn = designerLinksOn;
12142
12724
  /** Marks for the app's test runner (#166): field key and button action. */
12143
12725
  vlFieldKey = testFieldKey;
12144
12726
  vlFieldPath = testFieldPath;
@@ -12307,7 +12889,9 @@ class HeaderMenuComponent {
12307
12889
  static KINDS = ['image', 'text', 'title', 'button', 'search', 'cart', 'user', 'group'];
12308
12890
  /** An element's kind: its control, else (older headers) its field name or its cart action; else a button. */
12309
12891
  kindOf(header) {
12310
- const control = String(header?.control ?? '').trim();
12892
+ // the kind stands at the element (control); written under option.control (as an AI did, hey-henry 2026-11-07)
12893
+ // it is taken too - before, such a text was drawn as a button without a target
12894
+ const control = String(header?.control ?? header?.option?.control ?? '').trim();
12311
12895
  if (control === 'logo')
12312
12896
  return 'image';
12313
12897
  if (control === 'link')
@@ -12358,6 +12942,9 @@ class HeaderMenuComponent {
12358
12942
  invokeHeaderButtonClick(option) {
12359
12943
  if (this.design)
12360
12944
  return;
12945
+ // a button without any target (no page, form, table, action, sign-in) does nothing - it emptied the page before
12946
+ if (!hasHeaderTarget(option))
12947
+ return;
12361
12948
  this.buttonClick.emit(option);
12362
12949
  }
12363
12950
  invokeShowtableContent(option) {
@@ -12378,8 +12965,12 @@ class HeaderMenuComponent {
12378
12965
  if (!src || /^(data:|https?:|blob:)/i.test(src))
12379
12966
  continue;
12380
12967
  try {
12381
- const image = await this.couchdbService.getImageSrcFromCouchDb(projectName, src);
12382
- item.option.src = this.utilityService.getMediaSrc(image);
12968
+ // the same way as every media file of the app (vlMedia): the draft in the preview, else CouchDB
12969
+ const url = await this.couchdbService.resolveMediaSource(src.startsWith('Media/') ? src : `Media/${src}`);
12970
+ if (url)
12971
+ item.option.src = url;
12972
+ else
12973
+ item.option.src = this.utilityService.getMediaSrc(await this.couchdbService.getImageSrcFromCouchDb(projectName, src));
12383
12974
  }
12384
12975
  catch (error) {
12385
12976
  console.warn('[header] the picture could not be loaded', src, error);
@@ -12390,14 +12981,14 @@ class HeaderMenuComponent {
12390
12981
  return items;
12391
12982
  }
12392
12983
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: HeaderMenuComponent, deps: [{ token: i4.OktaAuthStateService, optional: true }, { token: RequestService }, { token: UtilityService }, { token: Couchdb }, { token: i1$2.Platform }], target: i0.ɵɵFactoryTarget.Component });
12393
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: HeaderMenuComponent, isStandalone: true, selector: "vl-header-menu", inputs: { headerItems: "headerItems", headerLayout: "headerLayout", environment: "environment", tenantName: "tenantName", projectSeleted: "projectSeleted", userInfo: "userInfo", pageTitle: "pageTitle", cartInfo: "cartInfo", design: "design" }, outputs: { buttonClick: "buttonClick", showTableContent: "showTableContent", searchItems: "searchItems", designChange: "designChange" }, usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\r\n - change: canvas: no pencil on the header - a click on it chooses it -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: one element template draws the app and canvas, including nested groups, classes and page title.\r\n - new: design handles select/move/request deletion by path; runtime actions stay inactive in design mode. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-27\r\n - change: without a currency the cart shows the plain sum - no fixed USD (OFFENE-PUNKTE 116 F) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-27\r\n - new: element kind title (the page shown) (OFFENE-PUNKTE 118) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - new: the cart carries data-vl-action=\"cart\" for the test runners (step cart)\r\n - change: the header is a free container (OFFENE-PUNKTE 117, user: \"any elements - why should I prescribe it to\r\n the customer\"). An element is drawn by its kind (kindOf: control image, text, button, search, cart, user,\r\n group), no longer by a fixed field name; a group holds elements of its own, so any arrangement is possible.\r\n Older headers (scope.reference logo / searchInput, control or action cart, a plain button) are read as\r\n image / search / cart / button. Every part takes its style and its classes (style.classes) - the classes\r\n were left out before, a header could not be styled from style.css -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: a field without a placeholder in the project stays empty; it showed the text \"undefined\" -->\r\n<!-- Existing runtime contract: image/text/title/button/search/cart/user/group, legacy field-name aliases,\r\n data-vl-action/writes markers, project styles, currency and sign-in rules remain supported. -->\r\n<header *ngIf=\"shownItems.length > 0 || design\" [ngStyle]=\"design && !shownItems.length ? {} : getStyle(headerLayout?.style)\" [ngClass]=\"classNames(headerLayout?.style)\"\r\n [class.vl-d-root]=\"!!design\" cdkDropList [cdkDropListDisabled]=\"!design\" cdkDropListOrientation=\"mixed\"\r\n [id]=\"listId([])\" [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"listIds()\" (cdkDropListDropped)=\"elementDropped($event, [])\"\r\n (click)=\"selectHeader()\">\r\n <ng-container *ngTemplateOutlet=\"elementsTpl; context: { $implicit: shownItems, parent: [] }\"></ng-container>\r\n @if (design && !shownItems.length) { <span class=\"vl-d-empty-hint\">{{ dt.emptyHeader }}</span> }\r\n</header>\r\n\r\n<ng-template #elementsTpl let-elements let-parent=\"parent\">\r\n <ng-container *ngFor=\"let header of elements; let index = index\">\r\n @if (isShown(header)) {\r\n <div [ngStyle]=\"getStyle(header?.option?.style)\" [ngClass]=\"classNames(header?.option?.style)\"\r\n [class.vl-d-item]=\"!!design\" [class.vl-d-item--selected]=\"!!design && chosen(path(parent, index))\"\r\n [class.vl-d-hidden]=\"!!design && header?.option?.visible === false\"\r\n cdkDrag [cdkDragDisabled]=\"!design\" [cdkDragData]=\"{vlDesign: 'headerElement', path: path(parent, index)}\"\r\n cdkDropList [cdkDropListDisabled]=\"!design || kindOf(header) !== 'group'\" cdkDropListOrientation=\"mixed\"\r\n [id]=\"listId(path(parent, index))\" [cdkDropListData]=\"path(parent, index)\" [cdkDropListConnectedTo]=\"listIds()\"\r\n (cdkDropListDropped)=\"elementDropped($event, path(parent, index))\"\r\n [attr.data-vl-field]=\"vlFieldKey(header)\" [attr.data-vl-path]=\"vlFieldPath(header)\"\r\n [attr.data-vl-action]=\"kindOf(header) === 'cart' ? 'cart' : null\"\r\n [attr.data-vl-writes]=\"kindOf(header) === 'cart' ? 'false' : null\"\r\n (click)=\"elementClicked(header, path(parent, index), $event)\"\r\n [attr.data-vl-design-path]=\"design ? path(parent, index).join('.') : null\">\r\n @if (design) {\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{drag: dt.dragField, edit: dt.edit, delete: dt.delete}\"\r\n (act)=\"elementAction($event, path(parent, index))\"></vl-design-bar>\r\n }\r\n @switch (kindOf(header)) {\r\n @case ('image') {\r\n <img [src]=\"pictureOf(header)\" [alt]=\"text(header.alt || header.label?.caption || '')\"\r\n [ngStyle]=\"getStyle(header?.scope?.style)\" [ngClass]=\"classNames(header?.scope?.style)\" />\r\n }\r\n @case ('text') {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ captionOf(header) }}</span>\r\n }\r\n @case ('title') {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ text(pageTitle) }}</span>\r\n }\r\n @case ('search') {\r\n <input #search type=\"text\" [readOnly]=\"!!design\" [placeholder]=\"text(header.option?.placeholder ?? '')\"\r\n [vlCustomKeyboard]=\"design ? null : searchKeyboard(header)\" [attr.data-vl-enter-key]=\"searchEnterKey(header)\"\r\n (keyup.enter)=\"invokeSearchedItems(header.option, search)\"\r\n [ngStyle]=\"getStyle(header?.scope?.style)\" [ngClass]=\"classNames(header?.scope?.style)\" />\r\n <button *ngIf=\"header.option?.button !== false\" type=\"button\" (click)=\"invokeSearchedItems(header.option, search)\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">\r\n <ng-container *ngIf=\"!captionOf(header); else searchCaption\">\r\n <i nz-icon [nzType]=\"header.icon || 'search'\" nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #searchCaption>{{ captionOf(header) }}</ng-template>\r\n </button>\r\n }\r\n @case ('cart') {\r\n <span [ngStyle]=\"getStyle(header?.priceStyle)\" [ngClass]=\"classNames(header?.priceStyle)\">\r\n {{ header.option?.currency ? (cartInfo.totalPrice | currency : header.option.currency) : (cartInfo.totalPrice | number : '1.2-2') }}\r\n </span>\r\n <span [ngStyle]=\"getStyle(header?.quantityStyle)\" [ngClass]=\"classNames(header?.quantityStyle)\">{{ cartInfo.quantity }}</span>\r\n <i [class]=\"header.icon\" [ngStyle]=\"getStyle(header?.iconStyle)\" [ngClass]=\"classNames(header?.iconStyle)\"></i>\r\n }\r\n @case ('user') {\r\n @if (signedIn()) {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ userName() }}</span>\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick({ action: 'logout' })\" data-vl-action=\"logout\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">{{ text(header.option?.signOutText || 'Sign out') }}</button>\r\n } @else {\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick({ action: 'login' })\" data-vl-action=\"login\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">{{ text(header.option?.signInText || 'Sign in') }}</button>\r\n }\r\n }\r\n @case ('group') {\r\n <ng-container *ngTemplateOutlet=\"elementsTpl; context: { $implicit: header.elements || [], parent: path(parent, index) }\"></ng-container>\r\n }\r\n @default {\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick(header.option)\" [attr.data-vl-action]=\"vlAction(header.option)\" [attr.data-vl-writes]=\"vlWrites(header.option)\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">\r\n @if (header.icon) {<i nz-icon [nzType]=\"header.icon\" nzTheme=\"outline\"></i>}\r\n @if (captionOf(header)) {<span>{{ captionOf(header) }}</span>}\r\n </button>\r\n }\r\n }\r\n </div>\r\n }\r\n </ng-container>\r\n</ng-template>\r\n", styles: ["header.vl-d-root>.vl-d-container-bar{position:absolute;top:50%;right:4px;margin:0;transform:translateY(-50%);z-index:5}header.vl-d-root{min-height:28px}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ 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: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "directive", type: CustomKeyboardDirective, selector: "[vlCustomKeyboard]", inputs: ["vlCustomKeyboard"] }, { kind: "pipe", type: i9.DecimalPipe, name: "number" }, { kind: "pipe", type: i9.CurrencyPipe, name: "currency" }] });
12984
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: HeaderMenuComponent, isStandalone: true, selector: "vl-header-menu", inputs: { headerItems: "headerItems", headerLayout: "headerLayout", environment: "environment", tenantName: "tenantName", projectSeleted: "projectSeleted", userInfo: "userInfo", pageTitle: "pageTitle", cartInfo: "cartInfo", design: "design" }, outputs: { buttonClick: "buttonClick", showTableContent: "showTableContent", searchItems: "searchItems", designChange: "designChange" }, usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\r\n - fix: a header picture through vlMedia like every media file (draft preview, CouchDB) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\r\n - change: canvas: no pencil on the header - a click on it chooses it -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: one element template draws the app and canvas, including nested groups, classes and page title.\r\n - new: design handles select/move/request deletion by path; runtime actions stay inactive in design mode. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-27\r\n - change: without a currency the cart shows the plain sum - no fixed USD (OFFENE-PUNKTE 116 F) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-27\r\n - new: element kind title (the page shown) (OFFENE-PUNKTE 118) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - new: the cart carries data-vl-action=\"cart\" for the test runners (step cart)\r\n - change: the header is a free container (OFFENE-PUNKTE 117, user: \"any elements - why should I prescribe it to\r\n the customer\"). An element is drawn by its kind (kindOf: control image, text, button, search, cart, user,\r\n group), no longer by a fixed field name; a group holds elements of its own, so any arrangement is possible.\r\n Older headers (scope.reference logo / searchInput, control or action cart, a plain button) are read as\r\n image / search / cart / button. Every part takes its style and its classes (style.classes) - the classes\r\n were left out before, a header could not be styled from style.css -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: a field without a placeholder in the project stays empty; it showed the text \"undefined\" -->\r\n<!-- Existing runtime contract: image/text/title/button/search/cart/user/group, legacy field-name aliases,\r\n data-vl-action/writes markers, project styles, currency and sign-in rules remain supported. -->\r\n<header *ngIf=\"shownItems.length > 0 || design\" [ngStyle]=\"design && !shownItems.length ? {} : getStyle(headerLayout?.style)\" [ngClass]=\"classNames(headerLayout?.style)\"\r\n [class.vl-d-root]=\"!!design\" cdkDropList [cdkDropListDisabled]=\"!design\" cdkDropListOrientation=\"mixed\"\r\n [id]=\"listId([])\" [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"listIds()\" (cdkDropListDropped)=\"elementDropped($event, [])\"\r\n (click)=\"selectHeader()\">\r\n <ng-container *ngTemplateOutlet=\"elementsTpl; context: { $implicit: shownItems, parent: [] }\"></ng-container>\r\n @if (design && !shownItems.length) { <span class=\"vl-d-empty-hint\">{{ dt.emptyHeader }}</span> }\r\n</header>\r\n\r\n<ng-template #elementsTpl let-elements let-parent=\"parent\">\r\n <ng-container *ngFor=\"let header of elements; let index = index\">\r\n @if (isShown(header)) {\r\n <div [ngStyle]=\"getStyle(header?.option?.style)\" [ngClass]=\"classNames(header?.option?.style)\"\r\n [class.vl-d-item]=\"!!design\" [class.vl-d-item--selected]=\"!!design && chosen(path(parent, index))\"\r\n [class.vl-d-hidden]=\"!!design && header?.option?.visible === false\"\r\n cdkDrag [cdkDragDisabled]=\"!design\" [cdkDragData]=\"{vlDesign: 'headerElement', path: path(parent, index)}\"\r\n cdkDropList [cdkDropListDisabled]=\"!design || kindOf(header) !== 'group'\" cdkDropListOrientation=\"mixed\"\r\n [id]=\"listId(path(parent, index))\" [cdkDropListData]=\"path(parent, index)\" [cdkDropListConnectedTo]=\"listIds()\"\r\n (cdkDropListDropped)=\"elementDropped($event, path(parent, index))\"\r\n [attr.data-vl-field]=\"vlFieldKey(header)\" [attr.data-vl-path]=\"vlFieldPath(header)\"\r\n [attr.data-vl-action]=\"kindOf(header) === 'cart' ? 'cart' : null\"\r\n [attr.data-vl-writes]=\"kindOf(header) === 'cart' ? 'false' : null\"\r\n (click)=\"elementClicked(header, path(parent, index), $event)\"\r\n [attr.data-vl-design-path]=\"design ? path(parent, index).join('.') : null\"\r\n [attr.data-vl-header]=\"!design && linksOn() ? path(parent, index).join('.') : null\">\r\n @if (design) {\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{drag: dt.dragField, edit: dt.edit, delete: dt.delete}\"\r\n (act)=\"elementAction($event, path(parent, index))\"></vl-design-bar>\r\n }\r\n @switch (kindOf(header)) {\r\n @case ('image') {\r\n <img [src]=\"(pictureOf(header) | vlMedia | async) || null\" [alt]=\"text(header.alt || header.label?.caption || '')\"\r\n [ngStyle]=\"getStyle(header?.scope?.style)\" [ngClass]=\"classNames(header?.scope?.style)\" />\r\n }\r\n @case ('text') {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ captionOf(header) }}</span>\r\n }\r\n @case ('title') {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ text(pageTitle) }}</span>\r\n }\r\n @case ('search') {\r\n <input #search type=\"text\" [readOnly]=\"!!design\" [placeholder]=\"text(header.option?.placeholder ?? '')\"\r\n [vlCustomKeyboard]=\"design ? null : searchKeyboard(header)\" [attr.data-vl-enter-key]=\"searchEnterKey(header)\"\r\n (keyup.enter)=\"invokeSearchedItems(header.option, search)\"\r\n [ngStyle]=\"getStyle(header?.scope?.style)\" [ngClass]=\"classNames(header?.scope?.style)\" />\r\n <button *ngIf=\"header.option?.button !== false\" type=\"button\" (click)=\"invokeSearchedItems(header.option, search)\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">\r\n <ng-container *ngIf=\"!captionOf(header); else searchCaption\">\r\n <i nz-icon [nzType]=\"header.icon || 'search'\" nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #searchCaption>{{ captionOf(header) }}</ng-template>\r\n </button>\r\n }\r\n @case ('cart') {\r\n <span [ngStyle]=\"getStyle(header?.priceStyle)\" [ngClass]=\"classNames(header?.priceStyle)\">\r\n {{ header.option?.currency ? (cartInfo.totalPrice | currency : header.option.currency) : (cartInfo.totalPrice | number : '1.2-2') }}\r\n </span>\r\n <span [ngStyle]=\"getStyle(header?.quantityStyle)\" [ngClass]=\"classNames(header?.quantityStyle)\">{{ cartInfo.quantity }}</span>\r\n <i [class]=\"header.icon\" [ngStyle]=\"getStyle(header?.iconStyle)\" [ngClass]=\"classNames(header?.iconStyle)\"></i>\r\n }\r\n @case ('user') {\r\n @if (signedIn()) {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ userName() }}</span>\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick({ action: 'logout' })\" data-vl-action=\"logout\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">{{ text(header.option?.signOutText || 'Sign out') }}</button>\r\n } @else {\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick({ action: 'login' })\" data-vl-action=\"login\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">{{ text(header.option?.signInText || 'Sign in') }}</button>\r\n }\r\n }\r\n @case ('group') {\r\n <ng-container *ngTemplateOutlet=\"elementsTpl; context: { $implicit: header.elements || [], parent: path(parent, index) }\"></ng-container>\r\n }\r\n @default {\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick(header.option)\" [attr.data-vl-action]=\"vlAction(header.option)\" [attr.data-vl-writes]=\"vlWrites(header.option)\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">\r\n @if (header.icon) {<i nz-icon [nzType]=\"header.icon\" nzTheme=\"outline\"></i>}\r\n @if (captionOf(header)) {<span>{{ captionOf(header) }}</span>}\r\n </button>\r\n }\r\n }\r\n </div>\r\n }\r\n </ng-container>\r\n</ng-template>\r\n", styles: ["header.vl-d-root>.vl-d-container-bar{position:absolute;top:50%;right:4px;margin:0;transform:translateY(-50%);z-index:5}header.vl-d-root{min-height:28px}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "directive", type: CustomKeyboardDirective, selector: "[vlCustomKeyboard]", inputs: ["vlCustomKeyboard"] }, { kind: "pipe", type: MediaSourcePipe, name: "vlMedia" }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.DecimalPipe, name: "number" }, { kind: "pipe", type: i6.CurrencyPipe, name: "currency" }] });
12394
12985
  }
12395
12986
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: HeaderMenuComponent, decorators: [{
12396
12987
  type: Component,
12397
- args: [{ standalone: true, imports: [
12988
+ args: [{ standalone: true, imports: [MediaSourcePipe,
12398
12989
  CommonModule,
12399
12990
  NzIconModule, DragDropModule, DesignBarComponent, CustomKeyboardDirective
12400
- ], selector: 'vl-header-menu', template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\r\n - change: canvas: no pencil on the header - a click on it chooses it -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: one element template draws the app and canvas, including nested groups, classes and page title.\r\n - new: design handles select/move/request deletion by path; runtime actions stay inactive in design mode. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-27\r\n - change: without a currency the cart shows the plain sum - no fixed USD (OFFENE-PUNKTE 116 F) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-27\r\n - new: element kind title (the page shown) (OFFENE-PUNKTE 118) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - new: the cart carries data-vl-action=\"cart\" for the test runners (step cart)\r\n - change: the header is a free container (OFFENE-PUNKTE 117, user: \"any elements - why should I prescribe it to\r\n the customer\"). An element is drawn by its kind (kindOf: control image, text, button, search, cart, user,\r\n group), no longer by a fixed field name; a group holds elements of its own, so any arrangement is possible.\r\n Older headers (scope.reference logo / searchInput, control or action cart, a plain button) are read as\r\n image / search / cart / button. Every part takes its style and its classes (style.classes) - the classes\r\n were left out before, a header could not be styled from style.css -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: a field without a placeholder in the project stays empty; it showed the text \"undefined\" -->\r\n<!-- Existing runtime contract: image/text/title/button/search/cart/user/group, legacy field-name aliases,\r\n data-vl-action/writes markers, project styles, currency and sign-in rules remain supported. -->\r\n<header *ngIf=\"shownItems.length > 0 || design\" [ngStyle]=\"design && !shownItems.length ? {} : getStyle(headerLayout?.style)\" [ngClass]=\"classNames(headerLayout?.style)\"\r\n [class.vl-d-root]=\"!!design\" cdkDropList [cdkDropListDisabled]=\"!design\" cdkDropListOrientation=\"mixed\"\r\n [id]=\"listId([])\" [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"listIds()\" (cdkDropListDropped)=\"elementDropped($event, [])\"\r\n (click)=\"selectHeader()\">\r\n <ng-container *ngTemplateOutlet=\"elementsTpl; context: { $implicit: shownItems, parent: [] }\"></ng-container>\r\n @if (design && !shownItems.length) { <span class=\"vl-d-empty-hint\">{{ dt.emptyHeader }}</span> }\r\n</header>\r\n\r\n<ng-template #elementsTpl let-elements let-parent=\"parent\">\r\n <ng-container *ngFor=\"let header of elements; let index = index\">\r\n @if (isShown(header)) {\r\n <div [ngStyle]=\"getStyle(header?.option?.style)\" [ngClass]=\"classNames(header?.option?.style)\"\r\n [class.vl-d-item]=\"!!design\" [class.vl-d-item--selected]=\"!!design && chosen(path(parent, index))\"\r\n [class.vl-d-hidden]=\"!!design && header?.option?.visible === false\"\r\n cdkDrag [cdkDragDisabled]=\"!design\" [cdkDragData]=\"{vlDesign: 'headerElement', path: path(parent, index)}\"\r\n cdkDropList [cdkDropListDisabled]=\"!design || kindOf(header) !== 'group'\" cdkDropListOrientation=\"mixed\"\r\n [id]=\"listId(path(parent, index))\" [cdkDropListData]=\"path(parent, index)\" [cdkDropListConnectedTo]=\"listIds()\"\r\n (cdkDropListDropped)=\"elementDropped($event, path(parent, index))\"\r\n [attr.data-vl-field]=\"vlFieldKey(header)\" [attr.data-vl-path]=\"vlFieldPath(header)\"\r\n [attr.data-vl-action]=\"kindOf(header) === 'cart' ? 'cart' : null\"\r\n [attr.data-vl-writes]=\"kindOf(header) === 'cart' ? 'false' : null\"\r\n (click)=\"elementClicked(header, path(parent, index), $event)\"\r\n [attr.data-vl-design-path]=\"design ? path(parent, index).join('.') : null\">\r\n @if (design) {\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{drag: dt.dragField, edit: dt.edit, delete: dt.delete}\"\r\n (act)=\"elementAction($event, path(parent, index))\"></vl-design-bar>\r\n }\r\n @switch (kindOf(header)) {\r\n @case ('image') {\r\n <img [src]=\"pictureOf(header)\" [alt]=\"text(header.alt || header.label?.caption || '')\"\r\n [ngStyle]=\"getStyle(header?.scope?.style)\" [ngClass]=\"classNames(header?.scope?.style)\" />\r\n }\r\n @case ('text') {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ captionOf(header) }}</span>\r\n }\r\n @case ('title') {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ text(pageTitle) }}</span>\r\n }\r\n @case ('search') {\r\n <input #search type=\"text\" [readOnly]=\"!!design\" [placeholder]=\"text(header.option?.placeholder ?? '')\"\r\n [vlCustomKeyboard]=\"design ? null : searchKeyboard(header)\" [attr.data-vl-enter-key]=\"searchEnterKey(header)\"\r\n (keyup.enter)=\"invokeSearchedItems(header.option, search)\"\r\n [ngStyle]=\"getStyle(header?.scope?.style)\" [ngClass]=\"classNames(header?.scope?.style)\" />\r\n <button *ngIf=\"header.option?.button !== false\" type=\"button\" (click)=\"invokeSearchedItems(header.option, search)\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">\r\n <ng-container *ngIf=\"!captionOf(header); else searchCaption\">\r\n <i nz-icon [nzType]=\"header.icon || 'search'\" nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #searchCaption>{{ captionOf(header) }}</ng-template>\r\n </button>\r\n }\r\n @case ('cart') {\r\n <span [ngStyle]=\"getStyle(header?.priceStyle)\" [ngClass]=\"classNames(header?.priceStyle)\">\r\n {{ header.option?.currency ? (cartInfo.totalPrice | currency : header.option.currency) : (cartInfo.totalPrice | number : '1.2-2') }}\r\n </span>\r\n <span [ngStyle]=\"getStyle(header?.quantityStyle)\" [ngClass]=\"classNames(header?.quantityStyle)\">{{ cartInfo.quantity }}</span>\r\n <i [class]=\"header.icon\" [ngStyle]=\"getStyle(header?.iconStyle)\" [ngClass]=\"classNames(header?.iconStyle)\"></i>\r\n }\r\n @case ('user') {\r\n @if (signedIn()) {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ userName() }}</span>\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick({ action: 'logout' })\" data-vl-action=\"logout\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">{{ text(header.option?.signOutText || 'Sign out') }}</button>\r\n } @else {\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick({ action: 'login' })\" data-vl-action=\"login\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">{{ text(header.option?.signInText || 'Sign in') }}</button>\r\n }\r\n }\r\n @case ('group') {\r\n <ng-container *ngTemplateOutlet=\"elementsTpl; context: { $implicit: header.elements || [], parent: path(parent, index) }\"></ng-container>\r\n }\r\n @default {\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick(header.option)\" [attr.data-vl-action]=\"vlAction(header.option)\" [attr.data-vl-writes]=\"vlWrites(header.option)\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">\r\n @if (header.icon) {<i nz-icon [nzType]=\"header.icon\" nzTheme=\"outline\"></i>}\r\n @if (captionOf(header)) {<span>{{ captionOf(header) }}</span>}\r\n </button>\r\n }\r\n }\r\n </div>\r\n }\r\n </ng-container>\r\n</ng-template>\r\n", styles: ["header.vl-d-root>.vl-d-container-bar{position:absolute;top:50%;right:4px;margin:0;transform:translateY(-50%);z-index:5}header.vl-d-root{min-height:28px}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
12991
+ ], selector: 'vl-header-menu', template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\r\n - fix: a header picture through vlMedia like every media file (draft preview, CouchDB) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\r\n - change: canvas: no pencil on the header - a click on it chooses it -->\r\n<!-- Shuaib, 2026-10-30\r\n - change: one element template draws the app and canvas, including nested groups, classes and page title.\r\n - new: design handles select/move/request deletion by path; runtime actions stay inactive in design mode. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-27\r\n - change: without a currency the cart shows the plain sum - no fixed USD (OFFENE-PUNKTE 116 F) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-27\r\n - new: element kind title (the page shown) (OFFENE-PUNKTE 118) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\r\n - new: the cart carries data-vl-action=\"cart\" for the test runners (step cart)\r\n - change: the header is a free container (OFFENE-PUNKTE 117, user: \"any elements - why should I prescribe it to\r\n the customer\"). An element is drawn by its kind (kindOf: control image, text, button, search, cart, user,\r\n group), no longer by a fixed field name; a group holds elements of its own, so any arrangement is possible.\r\n Older headers (scope.reference logo / searchInput, control or action cart, a plain button) are read as\r\n image / search / cart / button. Every part takes its style and its classes (style.classes) - the classes\r\n were left out before, a header could not be styled from style.css -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - fix: a field without a placeholder in the project stays empty; it showed the text \"undefined\" -->\r\n<!-- Existing runtime contract: image/text/title/button/search/cart/user/group, legacy field-name aliases,\r\n data-vl-action/writes markers, project styles, currency and sign-in rules remain supported. -->\r\n<header *ngIf=\"shownItems.length > 0 || design\" [ngStyle]=\"design && !shownItems.length ? {} : getStyle(headerLayout?.style)\" [ngClass]=\"classNames(headerLayout?.style)\"\r\n [class.vl-d-root]=\"!!design\" cdkDropList [cdkDropListDisabled]=\"!design\" cdkDropListOrientation=\"mixed\"\r\n [id]=\"listId([])\" [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"listIds()\" (cdkDropListDropped)=\"elementDropped($event, [])\"\r\n (click)=\"selectHeader()\">\r\n <ng-container *ngTemplateOutlet=\"elementsTpl; context: { $implicit: shownItems, parent: [] }\"></ng-container>\r\n @if (design && !shownItems.length) { <span class=\"vl-d-empty-hint\">{{ dt.emptyHeader }}</span> }\r\n</header>\r\n\r\n<ng-template #elementsTpl let-elements let-parent=\"parent\">\r\n <ng-container *ngFor=\"let header of elements; let index = index\">\r\n @if (isShown(header)) {\r\n <div [ngStyle]=\"getStyle(header?.option?.style)\" [ngClass]=\"classNames(header?.option?.style)\"\r\n [class.vl-d-item]=\"!!design\" [class.vl-d-item--selected]=\"!!design && chosen(path(parent, index))\"\r\n [class.vl-d-hidden]=\"!!design && header?.option?.visible === false\"\r\n cdkDrag [cdkDragDisabled]=\"!design\" [cdkDragData]=\"{vlDesign: 'headerElement', path: path(parent, index)}\"\r\n cdkDropList [cdkDropListDisabled]=\"!design || kindOf(header) !== 'group'\" cdkDropListOrientation=\"mixed\"\r\n [id]=\"listId(path(parent, index))\" [cdkDropListData]=\"path(parent, index)\" [cdkDropListConnectedTo]=\"listIds()\"\r\n (cdkDropListDropped)=\"elementDropped($event, path(parent, index))\"\r\n [attr.data-vl-field]=\"vlFieldKey(header)\" [attr.data-vl-path]=\"vlFieldPath(header)\"\r\n [attr.data-vl-action]=\"kindOf(header) === 'cart' ? 'cart' : null\"\r\n [attr.data-vl-writes]=\"kindOf(header) === 'cart' ? 'false' : null\"\r\n (click)=\"elementClicked(header, path(parent, index), $event)\"\r\n [attr.data-vl-design-path]=\"design ? path(parent, index).join('.') : null\"\r\n [attr.data-vl-header]=\"!design && linksOn() ? path(parent, index).join('.') : null\">\r\n @if (design) {\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{drag: dt.dragField, edit: dt.edit, delete: dt.delete}\"\r\n (act)=\"elementAction($event, path(parent, index))\"></vl-design-bar>\r\n }\r\n @switch (kindOf(header)) {\r\n @case ('image') {\r\n <img [src]=\"(pictureOf(header) | vlMedia | async) || null\" [alt]=\"text(header.alt || header.label?.caption || '')\"\r\n [ngStyle]=\"getStyle(header?.scope?.style)\" [ngClass]=\"classNames(header?.scope?.style)\" />\r\n }\r\n @case ('text') {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ captionOf(header) }}</span>\r\n }\r\n @case ('title') {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ text(pageTitle) }}</span>\r\n }\r\n @case ('search') {\r\n <input #search type=\"text\" [readOnly]=\"!!design\" [placeholder]=\"text(header.option?.placeholder ?? '')\"\r\n [vlCustomKeyboard]=\"design ? null : searchKeyboard(header)\" [attr.data-vl-enter-key]=\"searchEnterKey(header)\"\r\n (keyup.enter)=\"invokeSearchedItems(header.option, search)\"\r\n [ngStyle]=\"getStyle(header?.scope?.style)\" [ngClass]=\"classNames(header?.scope?.style)\" />\r\n <button *ngIf=\"header.option?.button !== false\" type=\"button\" (click)=\"invokeSearchedItems(header.option, search)\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">\r\n <ng-container *ngIf=\"!captionOf(header); else searchCaption\">\r\n <i nz-icon [nzType]=\"header.icon || 'search'\" nzTheme=\"outline\"></i>\r\n </ng-container>\r\n <ng-template #searchCaption>{{ captionOf(header) }}</ng-template>\r\n </button>\r\n }\r\n @case ('cart') {\r\n <span [ngStyle]=\"getStyle(header?.priceStyle)\" [ngClass]=\"classNames(header?.priceStyle)\">\r\n {{ header.option?.currency ? (cartInfo.totalPrice | currency : header.option.currency) : (cartInfo.totalPrice | number : '1.2-2') }}\r\n </span>\r\n <span [ngStyle]=\"getStyle(header?.quantityStyle)\" [ngClass]=\"classNames(header?.quantityStyle)\">{{ cartInfo.quantity }}</span>\r\n <i [class]=\"header.icon\" [ngStyle]=\"getStyle(header?.iconStyle)\" [ngClass]=\"classNames(header?.iconStyle)\"></i>\r\n }\r\n @case ('user') {\r\n @if (signedIn()) {\r\n <span [ngStyle]=\"getStyle(header?.label?.style)\" [ngClass]=\"classNames(header?.label?.style)\">{{ userName() }}</span>\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick({ action: 'logout' })\" data-vl-action=\"logout\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">{{ text(header.option?.signOutText || 'Sign out') }}</button>\r\n } @else {\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick({ action: 'login' })\" data-vl-action=\"login\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">{{ text(header.option?.signInText || 'Sign in') }}</button>\r\n }\r\n }\r\n @case ('group') {\r\n <ng-container *ngTemplateOutlet=\"elementsTpl; context: { $implicit: header.elements || [], parent: path(parent, index) }\"></ng-container>\r\n }\r\n @default {\r\n <button type=\"button\" (click)=\"invokeHeaderButtonClick(header.option)\" [attr.data-vl-action]=\"vlAction(header.option)\" [attr.data-vl-writes]=\"vlWrites(header.option)\"\r\n [ngStyle]=\"getStyle(header?.buttonStyle)\" [ngClass]=\"classNames(header?.buttonStyle)\">\r\n @if (header.icon) {<i nz-icon [nzType]=\"header.icon\" nzTheme=\"outline\"></i>}\r\n @if (captionOf(header)) {<span>{{ captionOf(header) }}</span>}\r\n </button>\r\n }\r\n }\r\n </div>\r\n }\r\n </ng-container>\r\n</ng-template>\r\n", styles: ["header.vl-d-root>.vl-d-container-bar{position:absolute;top:50%;right:4px;margin:0;transform:translateY(-50%);z-index:5}header.vl-d-root{min-height:28px}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
12401
12992
  }], ctorParameters: () => [{ type: i4.OktaAuthStateService, decorators: [{
12402
12993
  type: Optional
12403
12994
  }] }, { type: RequestService }, { type: UtilityService }, { type: Couchdb }, { type: i1$2.Platform }], propDecorators: { headerItems: [{
@@ -12470,7 +13061,7 @@ class LogsComponent {
12470
13061
  this.expandedRow = this.expandedRow === index ? null : index;
12471
13062
  }
12472
13063
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: LogsComponent, deps: [{ token: NetworkLogService }], target: i0.ɵɵFactoryTarget.Component });
12473
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: LogsComponent, isStandalone: true, selector: "vl-logs", ngImport: i0, 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"], 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: "pipe", type: i9.JsonPipe, name: "json" }, { kind: "pipe", type: i9.DecimalPipe, name: "number" }] });
13064
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: LogsComponent, isStandalone: true, selector: "vl-logs", ngImport: i0, 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"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i6.JsonPipe, name: "json" }, { kind: "pipe", type: i6.DecimalPipe, name: "number" }] });
12474
13065
  }
12475
13066
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: LogsComponent, decorators: [{
12476
13067
  type: Component,
@@ -12479,6 +13070,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
12479
13070
  ], 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"] }]
12480
13071
  }], ctorParameters: () => [{ type: NetworkLogService }] });
12481
13072
 
13073
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
13074
+ // - change: a chosen suggestion fills other fields through applyMapping (a missing value no longer empties a field);
13075
+ // autocompFocusOutEvent removed (it was never wired)
13076
+ // - new: data-vl-dialog and data-vl-at - the dialog's file and its fields' places, only in the Designer's preview (worklist 25)
12482
13077
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
12483
13078
  // - fix: a dialog of read-only fields can be saved - its form is DISABLED, form.valid was false; a button's look stays off its wrapper; openUrl (point 184)
12484
13079
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
@@ -12498,6 +13093,11 @@ class ModelComponent {
12498
13093
  dialogRef;
12499
13094
  dialogConfig;
12500
13095
  utilityService;
13096
+ /** In the Designer's preview: the dialog's file and each field's place in it (designer links, worklist 25). */
13097
+ linksOn = designerLinksOn;
13098
+ vlPlace(section, field) {
13099
+ return designerPlace(this.modalItemInfo?.layoutSchema?.formSections, section, field);
13100
+ }
12501
13101
  pdfViewer = inject(PdfViewerService);
12502
13102
  /** Marks for the app's test runner (#166): field key and button action. */
12503
13103
  vlFieldKey = testFieldKey;
@@ -12719,21 +13319,13 @@ class ModelComponent {
12719
13319
  this.matchData = (formField.data ?? []).filter((x) => x[fieldName] && `${x[fieldName]}`.toLowerCase().startsWith(q));
12720
13320
  }
12721
13321
  }
12722
- autocompFocusOutEvent(event, formField) {
12723
- let actualObj = Object.keys(event);
12724
- if (actualObj.length && formField) {
12725
- this.autocompSelectEvent(event, formField);
12726
- }
12727
- }
12728
- autocompSelectEvent(obj, formField) {
12729
- const mapping = formField.option?.onSelect?.mapFields;
12730
- if (!mapping)
12731
- return;
12732
- Object.entries(mapping).forEach(([targetProp, sourceKey]) => {
12733
- const scope = this.getScope(formField.scope.reference);
12734
- if (this.modalItemInfo.propertySchema?.[scope]?.[targetProp]) {
12735
- this.modalItemInfo.propertySchema[scope][targetProp].value = obj[sourceKey] ?? null;
12736
- }
13322
+ /** A suggestion was chosen: option.onSelect.mapFields fills the other fields from it (applyMapping, worklist 47). */
13323
+ autocompSelectEvent(entry, formField) {
13324
+ const scope = this.getScope(formField?.scope?.reference);
13325
+ const fields = this.modalItemInfo?.propertySchema?.[scope];
13326
+ applyMapping(formField?.option?.onSelect?.mapFields, entry, (target, value) => {
13327
+ if (fields?.[target])
13328
+ fields[target].value = value;
12737
13329
  });
12738
13330
  }
12739
13331
  setErroMessage(formField, errorMessages, errorType) {
@@ -12993,8 +13585,8 @@ class ModelComponent {
12993
13585
  showError(control) {
12994
13586
  return !!control?.invalid && ((!!control.dirty && !!control.touched) || this.saveTried);
12995
13587
  }
12996
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ModelComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$4.DynamicDialogRef, optional: true }, { token: i1$4.DynamicDialogConfig, optional: true }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Component });
12997
- 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", design: "design" }, outputs: { designChange: "designChange" }, host: { properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its dialog here - the same sections, field wrappers and\r\n <vl-control> as the app, with drag, edit and delete around each element; the app's markup below is unchanged -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - new: a locked button shows its hint (in a dialog without the sign-in link), a click shows the missing fields\r\n - change: the wrapper of a locked button drops the layout's colour and shadow (vl-dialog-field--locked)\r\n - new: a button is locked by needsLogin / needsValid of its layout (isLocked, field/button-lock.ts) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - new: class vl-dialog-field on every field - on a phone each field takes the whole width with its\r\n label above (model.component.css), whatever columns the page sets for tablet and desktop -->\r\n<!-- Shuaib 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> instead of a switch over types and\r\n controls in this template (#166)\r\n - change: follows the Designer's modal layout: the field's style is its wrapper, scope.style is the\r\n input of every control (dropdown, number and period took the wrapper's style before), all classes\r\n of a style count\r\n - change: a protected field shows its label and value read only; a protected text showed only the\r\n 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@if (design) {\r\n<!-- design mode (the Designer's canvas): every field of the layout - hidden ones faded - with drag, edit and delete;\r\n a field is drawn by the same <vl-control> as below, shown and not typed in; a click opens its settings -->\r\n<div class=\"vl-d-root\" [ngStyle]=\"styleOf(modalItemInfo?.layoutSchema?.style).style\"\r\n [class]=\"'vl-d-root ' + styleOf(modalItemInfo?.layoutSchema?.style).classes\">\r\n <form (submit)=\"$event.preventDefault()\">\r\n <div cdkDropList [cdkDropListData]=\"modalItemInfo?.layoutSchema?.formSections || []\"\r\n (cdkDropListDropped)=\"designer.sectionMoved($event.previousIndex, $event.currentIndex)\">\r\n @for (formSection of modalItemInfo?.layoutSchema?.formSections || []; track $index; let si = $index) {\r\n <div class=\"vl-d-section\" cdkDrag [cdkDragData]=\"formSection\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'section', sectionIndex: si })\"\r\n (cdkDragStarted)=\"designer.sectionDragStarted()\">\r\n <div class=\"vl-d-section-head\">\r\n <span class=\"vl-d-section-name\">{{ formSection?.label?.caption ? '' : dt.section + ' ' + (si + 1) }}</span>\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'add', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragSection, add: dt.addButton, edit: dt.editSection, delete: dt.deleteSection }\"\r\n (act)=\"sectionAction($event, si)\"></vl-design-bar>\r\n </div>\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 | vlDesignText:designTranslations }}\r\n </div>\r\n <div [id]=\"designer.listId(si)\" data-vl-design-list\r\n [class]=\"styleOf(formSection?.style).classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\"\r\n cdkDropList [cdkDropListData]=\"formSection.formFields || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event, si)\"\r\n (cdkDropListEntered)=\"designer.entered(si)\"\r\n (cdkDropListExited)=\"designer.exited()\"\r\n (cdkDropListDropped)=\"designer.dropped($event, si)\">\r\n @if (designer.isEmptyHint(si)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else if (!formSection.formFields?.length) {\r\n <div class=\"vl-d-empty\">{{ dt.emptySection }}</div>\r\n }\r\n @for (formField of formSection.formFields || []; track $index; let fi = $index) {\r\n <div [class]=\"'vl-dialog-field vl-d-item ' + styleOf(formField?.style).classes\"\r\n [attr.data-vl-design-field]=\"fi\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'field', sectionIndex: si, fieldIndex: fi })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(si, fi)\"\r\n (cdkDragStarted)=\"designer.dragStarted(si, fi)\"\r\n (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(si, fi)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragField, edit: dt.editField, delete: dt.deleteField }\"\r\n (act)=\"fieldAction($event, si, fi)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"formField?.option?.visible === false\"\r\n (click)=\"designer.editField(si, fi, 'input')\">\r\n @if (formField?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\" [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" container=\"dialog\"></vl-control>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </form>\r\n <div class=\"vl-d-add\">\r\n <button type=\"button\" class=\"vl-d-add-btn\" (click)=\"designer.addSection()\">{{ dt.addSection }}</button>\r\n </div>\r\n</div>\r\n} @else {\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 | vlDesignText:designTranslations }}\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\" class=\"vl-dialog-field\"\r\n [hidden]=\"noPdf(formField)\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [attr.data-vl-path]=\"vlFieldPath(formField)\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class]=\"'vl-dialog-field ' + styleOf(formField?.style).classes\"\r\n [class.vl-dialog-field--locked]=\"isLocked(formField, dynamicForm)\">\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\"\r\n [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"dialog\"\r\n [locked]=\"isLocked(formField, dynamicForm)\"\r\n [lockHints]=\"lockHintsOf(formField, dynamicForm)\"\r\n (lockedClick)=\"showMissing(dynamicForm)\"\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}\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}@media(max-width:599px){.vl-dialog-field{grid-column:1 / -1!important}.vl-dialog-field ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}}.vl-dialog-field--locked{background:transparent!important;box-shadow:none!important;height:auto!important}:host(.vl-design-mobile) .vl-dialog-field{grid-column:1 / -1!important}:host(.vl-design-mobile) .vl-dialog-field ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\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.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.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", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "component", type: DropMarkerComponent, selector: "vl-drop-marker", inputs: ["type", "text"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }, { kind: "pipe", type: VisiblePipe, name: "vlVisible" }] });
13588
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ModelComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$5.DynamicDialogRef, optional: true }, { token: i1$5.DynamicDialogConfig, optional: true }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Component });
13589
+ 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", design: "design" }, outputs: { designChange: "designChange" }, host: { properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its dialog here - the same sections, field wrappers and\r\n <vl-control> as the app, with drag, edit and delete around each element; the app's markup below is unchanged -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - new: a locked button shows its hint (in a dialog without the sign-in link), a click shows the missing fields\r\n - change: the wrapper of a locked button drops the layout's colour and shadow (vl-dialog-field--locked)\r\n - new: a button is locked by needsLogin / needsValid of its layout (isLocked, field/button-lock.ts) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - new: class vl-dialog-field on every field - on a phone each field takes the whole width with its\r\n label above (model.component.css), whatever columns the page sets for tablet and desktop -->\r\n<!-- Shuaib 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> instead of a switch over types and\r\n controls in this template (#166)\r\n - change: follows the Designer's modal layout: the field's style is its wrapper, scope.style is the\r\n input of every control (dropdown, number and period took the wrapper's style before), all classes\r\n of a style count\r\n - change: a protected field shows its label and value read only; a protected text showed only the\r\n 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@if (design) {\r\n<!-- design mode (the Designer's canvas): every field of the layout - hidden ones faded - with drag, edit and delete;\r\n a field is drawn by the same <vl-control> as below, shown and not typed in; a click opens its settings -->\r\n<div class=\"vl-d-root\" [ngStyle]=\"styleOf(modalItemInfo?.layoutSchema?.style).style\"\r\n [class]=\"'vl-d-root ' + styleOf(modalItemInfo?.layoutSchema?.style).classes\">\r\n <form (submit)=\"$event.preventDefault()\">\r\n <div cdkDropList [cdkDropListData]=\"modalItemInfo?.layoutSchema?.formSections || []\"\r\n (cdkDropListDropped)=\"designer.sectionMoved($event.previousIndex, $event.currentIndex)\">\r\n @for (formSection of modalItemInfo?.layoutSchema?.formSections || []; track $index; let si = $index) {\r\n <div class=\"vl-d-section\" cdkDrag [cdkDragData]=\"formSection\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'section', sectionIndex: si })\"\r\n (cdkDragStarted)=\"designer.sectionDragStarted()\">\r\n <div class=\"vl-d-section-head\">\r\n <span class=\"vl-d-section-name\">{{ formSection?.label?.caption ? '' : dt.section + ' ' + (si + 1) }}</span>\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'add', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragSection, add: dt.addButton, edit: dt.editSection, delete: dt.deleteSection }\"\r\n (act)=\"sectionAction($event, si)\"></vl-design-bar>\r\n </div>\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 | vlDesignText:designTranslations }}\r\n </div>\r\n <div [id]=\"designer.listId(si)\" data-vl-design-list\r\n [class]=\"styleOf(formSection?.style).classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\"\r\n cdkDropList [cdkDropListData]=\"formSection.formFields || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event, si)\"\r\n (cdkDropListEntered)=\"designer.entered(si)\"\r\n (cdkDropListExited)=\"designer.exited()\"\r\n (cdkDropListDropped)=\"designer.dropped($event, si)\">\r\n @if (designer.isEmptyHint(si)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else if (!formSection.formFields?.length) {\r\n <div class=\"vl-d-empty\">{{ dt.emptySection }}</div>\r\n }\r\n @for (formField of formSection.formFields || []; track $index; let fi = $index) {\r\n <div [class]=\"'vl-dialog-field vl-d-item ' + styleOf(formField?.style).classes\"\r\n [attr.data-vl-design-field]=\"fi\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'field', sectionIndex: si, fieldIndex: fi })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(si, fi)\"\r\n (cdkDragStarted)=\"designer.dragStarted(si, fi)\"\r\n (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(si, fi)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragField, edit: dt.editField, delete: dt.deleteField }\"\r\n (act)=\"fieldAction($event, si, fi)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"formField?.option?.visible === false\"\r\n (click)=\"designer.editField(si, fi, 'input')\">\r\n @if (formField?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\" [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" container=\"dialog\"></vl-control>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </form>\r\n <div class=\"vl-d-add\">\r\n <button type=\"button\" class=\"vl-d-add-btn\" (click)=\"designer.addSection()\">{{ dt.addSection }}</button>\r\n </div>\r\n</div>\r\n} @else {\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\" [attr.data-vl-dialog]=\"linksOn() ? (modalItemInfo?.layoutUrl || null) : null\"\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 | vlDesignText:designTranslations }}\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\" class=\"vl-dialog-field\"\r\n [hidden]=\"noPdf(formField)\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [attr.data-vl-path]=\"vlFieldPath(formField)\"\r\n [attr.data-vl-at]=\"vlPlace(formSection, formField)\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class]=\"'vl-dialog-field ' + styleOf(formField?.style).classes\"\r\n [class.vl-dialog-field--locked]=\"isLocked(formField, dynamicForm)\">\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\"\r\n [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"dialog\"\r\n [locked]=\"isLocked(formField, dynamicForm)\"\r\n [lockHints]=\"lockHintsOf(formField, dynamicForm)\"\r\n (lockedClick)=\"showMissing(dynamicForm)\"\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}\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}@media(max-width:599px){.vl-dialog-field{grid-column:1 / -1!important}.vl-dialog-field ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}}.vl-dialog-field--locked{background:transparent!important;box-shadow:none!important;height:auto!important}:host(.vl-design-mobile) .vl-dialog-field{grid-column:1 / -1!important}:host(.vl-design-mobile) .vl-dialog-field ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.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", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "component", type: DropMarkerComponent, selector: "vl-drop-marker", inputs: ["type", "text"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }, { kind: "pipe", type: VisiblePipe, name: "vlVisible" }] });
12998
13590
  }
12999
13591
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ModelComponent, decorators: [{
13000
13592
  type: Component,
@@ -13006,10 +13598,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
13006
13598
  DragDropModule,
13007
13599
  DesignBarComponent,
13008
13600
  DropMarkerComponent,
13009
- ], template: "<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its dialog here - the same sections, field wrappers and\r\n <vl-control> as the app, with drag, edit and delete around each element; the app's markup below is unchanged -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - new: a locked button shows its hint (in a dialog without the sign-in link), a click shows the missing fields\r\n - change: the wrapper of a locked button drops the layout's colour and shadow (vl-dialog-field--locked)\r\n - new: a button is locked by needsLogin / needsValid of its layout (isLocked, field/button-lock.ts) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - new: class vl-dialog-field on every field - on a phone each field takes the whole width with its\r\n label above (model.component.css), whatever columns the page sets for tablet and desktop -->\r\n<!-- Shuaib 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> instead of a switch over types and\r\n controls in this template (#166)\r\n - change: follows the Designer's modal layout: the field's style is its wrapper, scope.style is the\r\n input of every control (dropdown, number and period took the wrapper's style before), all classes\r\n of a style count\r\n - change: a protected field shows its label and value read only; a protected text showed only the\r\n 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@if (design) {\r\n<!-- design mode (the Designer's canvas): every field of the layout - hidden ones faded - with drag, edit and delete;\r\n a field is drawn by the same <vl-control> as below, shown and not typed in; a click opens its settings -->\r\n<div class=\"vl-d-root\" [ngStyle]=\"styleOf(modalItemInfo?.layoutSchema?.style).style\"\r\n [class]=\"'vl-d-root ' + styleOf(modalItemInfo?.layoutSchema?.style).classes\">\r\n <form (submit)=\"$event.preventDefault()\">\r\n <div cdkDropList [cdkDropListData]=\"modalItemInfo?.layoutSchema?.formSections || []\"\r\n (cdkDropListDropped)=\"designer.sectionMoved($event.previousIndex, $event.currentIndex)\">\r\n @for (formSection of modalItemInfo?.layoutSchema?.formSections || []; track $index; let si = $index) {\r\n <div class=\"vl-d-section\" cdkDrag [cdkDragData]=\"formSection\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'section', sectionIndex: si })\"\r\n (cdkDragStarted)=\"designer.sectionDragStarted()\">\r\n <div class=\"vl-d-section-head\">\r\n <span class=\"vl-d-section-name\">{{ formSection?.label?.caption ? '' : dt.section + ' ' + (si + 1) }}</span>\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'add', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragSection, add: dt.addButton, edit: dt.editSection, delete: dt.deleteSection }\"\r\n (act)=\"sectionAction($event, si)\"></vl-design-bar>\r\n </div>\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 | vlDesignText:designTranslations }}\r\n </div>\r\n <div [id]=\"designer.listId(si)\" data-vl-design-list\r\n [class]=\"styleOf(formSection?.style).classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\"\r\n cdkDropList [cdkDropListData]=\"formSection.formFields || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event, si)\"\r\n (cdkDropListEntered)=\"designer.entered(si)\"\r\n (cdkDropListExited)=\"designer.exited()\"\r\n (cdkDropListDropped)=\"designer.dropped($event, si)\">\r\n @if (designer.isEmptyHint(si)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else if (!formSection.formFields?.length) {\r\n <div class=\"vl-d-empty\">{{ dt.emptySection }}</div>\r\n }\r\n @for (formField of formSection.formFields || []; track $index; let fi = $index) {\r\n <div [class]=\"'vl-dialog-field vl-d-item ' + styleOf(formField?.style).classes\"\r\n [attr.data-vl-design-field]=\"fi\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'field', sectionIndex: si, fieldIndex: fi })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(si, fi)\"\r\n (cdkDragStarted)=\"designer.dragStarted(si, fi)\"\r\n (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(si, fi)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragField, edit: dt.editField, delete: dt.deleteField }\"\r\n (act)=\"fieldAction($event, si, fi)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"formField?.option?.visible === false\"\r\n (click)=\"designer.editField(si, fi, 'input')\">\r\n @if (formField?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\" [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" container=\"dialog\"></vl-control>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </form>\r\n <div class=\"vl-d-add\">\r\n <button type=\"button\" class=\"vl-d-add-btn\" (click)=\"designer.addSection()\">{{ dt.addSection }}</button>\r\n </div>\r\n</div>\r\n} @else {\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 | vlDesignText:designTranslations }}\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\" class=\"vl-dialog-field\"\r\n [hidden]=\"noPdf(formField)\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [attr.data-vl-path]=\"vlFieldPath(formField)\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class]=\"'vl-dialog-field ' + styleOf(formField?.style).classes\"\r\n [class.vl-dialog-field--locked]=\"isLocked(formField, dynamicForm)\">\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\"\r\n [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"dialog\"\r\n [locked]=\"isLocked(formField, dynamicForm)\"\r\n [lockHints]=\"lockHintsOf(formField, dynamicForm)\"\r\n (lockedClick)=\"showMissing(dynamicForm)\"\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}\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}@media(max-width:599px){.vl-dialog-field{grid-column:1 / -1!important}.vl-dialog-field ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}}.vl-dialog-field--locked{background:transparent!important;box-shadow:none!important;height:auto!important}:host(.vl-design-mobile) .vl-dialog-field{grid-column:1 / -1!important}:host(.vl-design-mobile) .vl-dialog-field ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
13010
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$4.DynamicDialogRef, decorators: [{
13601
+ ], template: "<!-- Shuaib, 2026-10-30\r\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\r\n<!-- Shuaib 2026-10-26\r\n - new: design mode (design): the Designer's canvas draws its dialog here - the same sections, field wrappers and\r\n <vl-control> as the app, with drag, edit and delete around each element; the app's markup below is unchanged -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\r\n - new: a locked button shows its hint (in a dialog without the sign-in link), a click shows the missing fields\r\n - change: the wrapper of a locked button drops the layout's colour and shadow (vl-dialog-field--locked)\r\n - new: a button is locked by needsLogin / needsValid of its layout (isLocked, field/button-lock.ts) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\r\n - new: class vl-dialog-field on every field - on a phone each field takes the whole width with its\r\n label above (model.component.css), whatever columns the page sets for tablet and desktop -->\r\n<!-- Shuaib 2026-10-20\r\n - change: every field is drawn by the shared <vl-control> instead of a switch over types and\r\n controls in this template (#166)\r\n - change: follows the Designer's modal layout: the field's style is its wrapper, scope.style is the\r\n input of every control (dropdown, number and period took the wrapper's style before), all classes\r\n of a style count\r\n - change: a protected field shows its label and value read only; a protected text showed only the\r\n 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@if (design) {\r\n<!-- design mode (the Designer's canvas): every field of the layout - hidden ones faded - with drag, edit and delete;\r\n a field is drawn by the same <vl-control> as below, shown and not typed in; a click opens its settings -->\r\n<div class=\"vl-d-root\" [ngStyle]=\"styleOf(modalItemInfo?.layoutSchema?.style).style\"\r\n [class]=\"'vl-d-root ' + styleOf(modalItemInfo?.layoutSchema?.style).classes\">\r\n <form (submit)=\"$event.preventDefault()\">\r\n <div cdkDropList [cdkDropListData]=\"modalItemInfo?.layoutSchema?.formSections || []\"\r\n (cdkDropListDropped)=\"designer.sectionMoved($event.previousIndex, $event.currentIndex)\">\r\n @for (formSection of modalItemInfo?.layoutSchema?.formSections || []; track $index; let si = $index) {\r\n <div class=\"vl-d-section\" cdkDrag [cdkDragData]=\"formSection\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'section', sectionIndex: si })\"\r\n (cdkDragStarted)=\"designer.sectionDragStarted()\">\r\n <div class=\"vl-d-section-head\">\r\n <span class=\"vl-d-section-name\">{{ formSection?.label?.caption ? '' : dt.section + ' ' + (si + 1) }}</span>\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'add', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragSection, add: dt.addButton, edit: dt.editSection, delete: dt.deleteSection }\"\r\n (act)=\"sectionAction($event, si)\"></vl-design-bar>\r\n </div>\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 | vlDesignText:designTranslations }}\r\n </div>\r\n <div [id]=\"designer.listId(si)\" data-vl-design-list\r\n [class]=\"styleOf(formSection?.style).classes\"\r\n [ngStyle]=\"getSectionBodyStyle(formSection)\"\r\n cdkDropList [cdkDropListData]=\"formSection.formFields || []\" [cdkDropListSortingDisabled]=\"true\"\r\n [cdkDropListConnectedTo]=\"designer.listIds()\"\r\n (mousemove)=\"designer.pointerMove($event, si)\"\r\n (cdkDropListEntered)=\"designer.entered(si)\"\r\n (cdkDropListExited)=\"designer.exited()\"\r\n (cdkDropListDropped)=\"designer.dropped($event, si)\">\r\n @if (designer.isEmptyHint(si)) {\r\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n } @else if (!formSection.formFields?.length) {\r\n <div class=\"vl-d-empty\">{{ dt.emptySection }}</div>\r\n }\r\n @for (formField of formSection.formFields || []; track $index; let fi = $index) {\r\n <div [class]=\"'vl-dialog-field vl-d-item ' + styleOf(formField?.style).classes\"\r\n [attr.data-vl-design-field]=\"fi\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class.vl-d-item--selected]=\"isSelected({ kind: 'field', sectionIndex: si, fieldIndex: fi })\"\r\n cdkDrag [cdkDragData]=\"designer.dragData(si, fi)\"\r\n (cdkDragStarted)=\"designer.dragStarted(si, fi)\"\r\n (cdkDragMoved)=\"designer.dragMoved($event)\"\r\n (cdkDragEnded)=\"designer.dragEnded()\">\r\n @if (designer.isTargetHint(si, fi)) {\r\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\r\n }\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['drag', 'edit', 'delete']\"\r\n [titles]=\"{ drag: dt.dragField, edit: dt.editField, delete: dt.deleteField }\"\r\n (act)=\"fieldAction($event, si, fi)\"></vl-design-bar>\r\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"formField?.option?.visible === false\"\r\n (click)=\"designer.editField(si, fi, 'input')\">\r\n @if (formField?.option?.visible === false) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\" [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\" container=\"dialog\"></vl-control>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </form>\r\n <div class=\"vl-d-add\">\r\n <button type=\"button\" class=\"vl-d-add-btn\" (click)=\"designer.addSection()\">{{ dt.addSection }}</button>\r\n </div>\r\n</div>\r\n} @else {\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\" [attr.data-vl-dialog]=\"linksOn() ? (modalItemInfo?.layoutUrl || null) : null\"\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 | vlDesignText:designTranslations }}\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\" class=\"vl-dialog-field\"\r\n [hidden]=\"noPdf(formField)\"\r\n [attr.data-vl-field]=\"vlFieldKey(formField)\"\r\n [attr.data-vl-path]=\"vlFieldPath(formField)\"\r\n [attr.data-vl-at]=\"vlPlace(formSection, formField)\"\r\n [ngStyle]=\"getFieldWrapperStyle(formField)\"\r\n [class]=\"'vl-dialog-field ' + styleOf(formField?.style).classes\"\r\n [class.vl-dialog-field--locked]=\"isLocked(formField, dynamicForm)\">\r\n <vl-control [field]=\"formField | vlDesignField:designTranslations\"\r\n [propertySchema]=\"modalItemInfo.propertySchema\"\r\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\r\n [errorMessages]=\"errorMessages\"\r\n [saveTried]=\"saveTried\"\r\n container=\"dialog\"\r\n [locked]=\"isLocked(formField, dynamicForm)\"\r\n [lockHints]=\"lockHintsOf(formField, dynamicForm)\"\r\n (lockedClick)=\"showMissing(dynamicForm)\"\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}\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}@media(max-width:599px){.vl-dialog-field{grid-column:1 / -1!important}.vl-dialog-field ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}}.vl-dialog-field--locked{background:transparent!important;box-shadow:none!important;height:auto!important}:host(.vl-design-mobile) .vl-dialog-field{grid-column:1 / -1!important}:host(.vl-design-mobile) .vl-dialog-field ::ng-deep .vl-control__inner{grid-template-columns:minmax(0,1fr)!important}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
13602
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$5.DynamicDialogRef, decorators: [{
13011
13603
  type: Optional
13012
- }] }, { type: i1$4.DynamicDialogConfig, decorators: [{
13604
+ }] }, { type: i1$5.DynamicDialogConfig, decorators: [{
13013
13605
  type: Optional
13014
13606
  }] }, { type: UtilityService }], propDecorators: { errorMessages: [{
13015
13607
  type: Input
@@ -13124,6 +13716,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
13124
13716
  args: [{ selector: 'vl-time', standalone: true, template: "<p>time works!</p>\r\n" }]
13125
13717
  }] });
13126
13718
 
13719
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08
13720
+ // - change: a document to read opens as a page of the app (its header colours, ← back, the text on a card in the
13721
+ // page's look) - no dialog with ✕ and Close (user 2026-11-08); confirming the terms stays a dialog
13722
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
13723
+ // - change: colors read the design values with today's color as fallback (point 173)
13127
13724
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
13128
13725
  // - change: a PDF document opens in the app's viewer (point 185)
13129
13726
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24
@@ -13169,13 +13766,24 @@ class TermsDialog {
13169
13766
  }
13170
13767
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TermsDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
13171
13768
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: TermsDialog, isStandalone: true, selector: "vl-terms-dialog", inputs: { documents: "documents", confirm: "confirm", translations: "translations" }, outputs: { accepted: "accepted", declined: "declined", closed: "closed" }, ngImport: i0, template: `
13769
+ @if (!confirm) {
13770
+ <div class="vl-terms-page" role="dialog" aria-modal="true" [attr.aria-label]="current?.caption">
13771
+ <div class="vl-terms-page__bar">
13772
+ <button type="button" class="vl-terms-page__back" [attr.aria-label]="t('Back', 'Back')" (click)="closed.emit()">
13773
+ <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 5l-7 7 7 7"/></svg>
13774
+ </button>
13775
+ <span class="vl-terms-page__title">{{ current?.caption }}</span>
13776
+ </div>
13777
+ <div class="vl-terms-page__body">
13778
+ <h1 class="vl-terms-page__heading">{{ current?.caption }}</h1>
13779
+ <div class="vl-terms-page__card">{{ current?.value }}</div>
13780
+ </div>
13781
+ </div>
13782
+ } @else {
13172
13783
  <div class="vl-terms" role="dialog" aria-modal="true" [attr.aria-label]="current?.caption">
13173
13784
  <div class="vl-terms__card">
13174
13785
  <div class="vl-terms__head">
13175
13786
  <h2 class="vl-terms__title">{{ confirm ? t('termsConfirm', 'Please accept the terms') : current?.caption }}</h2>
13176
- @if (!confirm) {
13177
- <button type="button" class="vl-terms__x" [attr.aria-label]="t('Close', 'Close')" (click)="closed.emit()">✕</button>
13178
- }
13179
13787
  </div>
13180
13788
  @if (confirm && current) {
13181
13789
  <div class="vl-terms__sub">{{ current.caption }}</div>
@@ -13195,24 +13803,34 @@ class TermsDialog {
13195
13803
  @if (confirm) {
13196
13804
  <button type="button" class="vl-terms__btn" (click)="declined.emit()">{{ t('Decline', 'Decline') }}</button>
13197
13805
  <button type="button" class="vl-terms__btn vl-terms__btn--primary" (click)="accepted.emit()">{{ t('Accept', 'Accept') }}</button>
13198
- } @else {
13199
- <button type="button" class="vl-terms__btn vl-terms__btn--primary" (click)="closed.emit()">{{ t('Close', 'Close') }}</button>
13200
13806
  }
13201
13807
  </div>
13202
13808
  </div>
13203
13809
  </div>
13204
- `, isInline: true, styles: [".vl-terms{position:fixed;inset:0;z-index:2000;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:16px}.vl-terms__card{background:#fff;border-radius:12px;width:min(560px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 50px #0f172a4d}.vl-terms__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 6px}.vl-terms__title{margin:0;font-size:1.15rem;font-weight:600;color:#0f172a}.vl-terms__sub{padding:0 20px;font-weight:600;color:#334155}.vl-terms__x{border:none;background:none;font-size:1rem;color:#475569;cursor:pointer}.vl-terms__text{padding:12px 20px;overflow-y:auto;white-space:pre-line;line-height:1.5;color:#1e293b}.vl-terms__links{display:flex;flex-wrap:wrap;gap:12px;padding:0 20px 8px}.vl-terms__link{border:none;background:none;padding:0;color:#2563eb;text-decoration:underline;cursor:pointer;font:inherit}.vl-terms__actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px 18px;border-top:1px solid #e2e8f0}.vl-terms__btn{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:8px;padding:8px 16px;cursor:pointer;font:inherit}.vl-terms__btn--primary{background:#2563eb;border-color:#2563eb;color:#fff}\n"] });
13810
+ }
13811
+ `, isInline: true, styles: [".vl-terms-page{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;background:var(--vl-color-background, #f8fafc);padding-top:env(safe-area-inset-top)}.vl-terms-page__bar{flex:none;display:flex;align-items:center;gap:8px;min-height:52px;padding:0 12px;background:var(--vl-header-background, #fff);color:var(--vl-header-text, #0f172a)}.vl-terms-page__back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;background:none;color:inherit;cursor:pointer;border-radius:50%}.vl-terms-page__title{font-family:var(--vl-font-heading-family, inherit);font-weight:600;font-size:1.05rem}.vl-terms-page__body{flex:1;overflow-y:auto;padding:20px 16px calc(24px + env(safe-area-inset-bottom))}.vl-terms-page__heading{margin:0 4px 14px;font-family:var(--vl-font-heading-family, inherit);font-size:1.8rem;line-height:1.15;font-weight:700;text-transform:uppercase;color:var(--vl-color-text, #0f172a)}.vl-terms-page__card{background:var(--vl-color-surface, #fff);border:1px solid var(--vl-color-border, #e2e8f0);border-radius:calc(var(--vl-shape-radius, 8px) * 2);padding:18px;white-space:pre-line;line-height:1.6;color:var(--vl-color-text, #1e293b);max-width:720px}.vl-terms{position:fixed;inset:0;z-index:2000;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:16px}.vl-terms__card{background:var(--vl-color-surface, #fff);border-radius:12px;width:min(560px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 50px #0f172a4d}.vl-terms__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 6px}.vl-terms__title{margin:0;font-size:1.15rem;font-weight:600;color:var(--vl-color-text, #0f172a)}.vl-terms__sub{padding:0 20px;font-weight:600;color:var(--vl-color-text, #334155)}.vl-terms__x{border:none;background:none;font-size:1rem;color:var(--vl-color-text-muted, #475569);cursor:pointer}.vl-terms__text{padding:12px 20px;overflow-y:auto;white-space:pre-line;line-height:1.5;color:var(--vl-color-text, #1e293b)}.vl-terms__links{display:flex;flex-wrap:wrap;gap:12px;padding:0 20px 8px}.vl-terms__link{border:none;background:none;padding:0;color:var(--vl-color-primary, #2563eb);text-decoration:underline;cursor:pointer;font:inherit}.vl-terms__actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px 18px;border-top:1px solid var(--vl-color-border, #e2e8f0)}.vl-terms__btn{border:1px solid var(--vl-color-border, #cbd5e1);background:var(--vl-color-surface, #fff);color:var(--vl-color-text, #0f172a);border-radius:8px;padding:8px 16px;cursor:pointer;font:inherit}.vl-terms__btn--primary{background:var(--vl-color-primary, #2563eb);border-color:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff)}\n"] });
13205
13812
  }
13206
13813
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TermsDialog, decorators: [{
13207
13814
  type: Component,
13208
13815
  args: [{ selector: 'vl-terms-dialog', standalone: true, template: `
13816
+ @if (!confirm) {
13817
+ <div class="vl-terms-page" role="dialog" aria-modal="true" [attr.aria-label]="current?.caption">
13818
+ <div class="vl-terms-page__bar">
13819
+ <button type="button" class="vl-terms-page__back" [attr.aria-label]="t('Back', 'Back')" (click)="closed.emit()">
13820
+ <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 5l-7 7 7 7"/></svg>
13821
+ </button>
13822
+ <span class="vl-terms-page__title">{{ current?.caption }}</span>
13823
+ </div>
13824
+ <div class="vl-terms-page__body">
13825
+ <h1 class="vl-terms-page__heading">{{ current?.caption }}</h1>
13826
+ <div class="vl-terms-page__card">{{ current?.value }}</div>
13827
+ </div>
13828
+ </div>
13829
+ } @else {
13209
13830
  <div class="vl-terms" role="dialog" aria-modal="true" [attr.aria-label]="current?.caption">
13210
13831
  <div class="vl-terms__card">
13211
13832
  <div class="vl-terms__head">
13212
13833
  <h2 class="vl-terms__title">{{ confirm ? t('termsConfirm', 'Please accept the terms') : current?.caption }}</h2>
13213
- @if (!confirm) {
13214
- <button type="button" class="vl-terms__x" [attr.aria-label]="t('Close', 'Close')" (click)="closed.emit()">✕</button>
13215
- }
13216
13834
  </div>
13217
13835
  @if (confirm && current) {
13218
13836
  <div class="vl-terms__sub">{{ current.caption }}</div>
@@ -13232,13 +13850,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
13232
13850
  @if (confirm) {
13233
13851
  <button type="button" class="vl-terms__btn" (click)="declined.emit()">{{ t('Decline', 'Decline') }}</button>
13234
13852
  <button type="button" class="vl-terms__btn vl-terms__btn--primary" (click)="accepted.emit()">{{ t('Accept', 'Accept') }}</button>
13235
- } @else {
13236
- <button type="button" class="vl-terms__btn vl-terms__btn--primary" (click)="closed.emit()">{{ t('Close', 'Close') }}</button>
13237
13853
  }
13238
13854
  </div>
13239
13855
  </div>
13240
13856
  </div>
13241
- `, styles: [".vl-terms{position:fixed;inset:0;z-index:2000;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:16px}.vl-terms__card{background:#fff;border-radius:12px;width:min(560px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 50px #0f172a4d}.vl-terms__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 6px}.vl-terms__title{margin:0;font-size:1.15rem;font-weight:600;color:#0f172a}.vl-terms__sub{padding:0 20px;font-weight:600;color:#334155}.vl-terms__x{border:none;background:none;font-size:1rem;color:#475569;cursor:pointer}.vl-terms__text{padding:12px 20px;overflow-y:auto;white-space:pre-line;line-height:1.5;color:#1e293b}.vl-terms__links{display:flex;flex-wrap:wrap;gap:12px;padding:0 20px 8px}.vl-terms__link{border:none;background:none;padding:0;color:#2563eb;text-decoration:underline;cursor:pointer;font:inherit}.vl-terms__actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px 18px;border-top:1px solid #e2e8f0}.vl-terms__btn{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:8px;padding:8px 16px;cursor:pointer;font:inherit}.vl-terms__btn--primary{background:#2563eb;border-color:#2563eb;color:#fff}\n"] }]
13857
+ }
13858
+ `, styles: [".vl-terms-page{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;background:var(--vl-color-background, #f8fafc);padding-top:env(safe-area-inset-top)}.vl-terms-page__bar{flex:none;display:flex;align-items:center;gap:8px;min-height:52px;padding:0 12px;background:var(--vl-header-background, #fff);color:var(--vl-header-text, #0f172a)}.vl-terms-page__back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;background:none;color:inherit;cursor:pointer;border-radius:50%}.vl-terms-page__title{font-family:var(--vl-font-heading-family, inherit);font-weight:600;font-size:1.05rem}.vl-terms-page__body{flex:1;overflow-y:auto;padding:20px 16px calc(24px + env(safe-area-inset-bottom))}.vl-terms-page__heading{margin:0 4px 14px;font-family:var(--vl-font-heading-family, inherit);font-size:1.8rem;line-height:1.15;font-weight:700;text-transform:uppercase;color:var(--vl-color-text, #0f172a)}.vl-terms-page__card{background:var(--vl-color-surface, #fff);border:1px solid var(--vl-color-border, #e2e8f0);border-radius:calc(var(--vl-shape-radius, 8px) * 2);padding:18px;white-space:pre-line;line-height:1.6;color:var(--vl-color-text, #1e293b);max-width:720px}.vl-terms{position:fixed;inset:0;z-index:2000;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:16px}.vl-terms__card{background:var(--vl-color-surface, #fff);border-radius:12px;width:min(560px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 50px #0f172a4d}.vl-terms__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 6px}.vl-terms__title{margin:0;font-size:1.15rem;font-weight:600;color:var(--vl-color-text, #0f172a)}.vl-terms__sub{padding:0 20px;font-weight:600;color:var(--vl-color-text, #334155)}.vl-terms__x{border:none;background:none;font-size:1rem;color:var(--vl-color-text-muted, #475569);cursor:pointer}.vl-terms__text{padding:12px 20px;overflow-y:auto;white-space:pre-line;line-height:1.5;color:var(--vl-color-text, #1e293b)}.vl-terms__links{display:flex;flex-wrap:wrap;gap:12px;padding:0 20px 8px}.vl-terms__link{border:none;background:none;padding:0;color:var(--vl-color-primary, #2563eb);text-decoration:underline;cursor:pointer;font:inherit}.vl-terms__actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px 18px;border-top:1px solid var(--vl-color-border, #e2e8f0)}.vl-terms__btn{border:1px solid var(--vl-color-border, #cbd5e1);background:var(--vl-color-surface, #fff);color:var(--vl-color-text, #0f172a);border-radius:8px;padding:8px 16px;cursor:pointer;font:inherit}.vl-terms__btn--primary{background:var(--vl-color-primary, #2563eb);border-color:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff)}\n"] }]
13242
13859
  }], propDecorators: { documents: [{
13243
13860
  type: Input
13244
13861
  }], confirm: [{
@@ -13603,6 +14220,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
13603
14220
  }]
13604
14221
  }], ctorParameters: () => [{ type: ConfigService }, { type: i1$1.HttpClient }, { type: UtilityService }, { type: i1$2.Platform }, { type: MobileOidcService }] });
13605
14222
 
14223
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08
14224
+ // - new: the document's language (html lang) follows the app's language
14225
+ // - new: settingsFooter - with appSettings.menu.style footer the languages (buttons), imprint / privacy / terms (links)
14226
+ // and the version stand at the foot of the menu; a tap does what the folder entry did (invokeNavigate)
14227
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07
14228
+ // - fix: on the phone a Terms & Conditions entry (imprint, privacy, terms) closes the menu - it covered the dialog
13606
14229
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
13607
14230
  // - change: the PDF of Terms & Conditions opens in the app's viewer, not in a new tab (point 185)
13608
14231
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
@@ -14009,6 +14632,7 @@ class SideMenuComponent {
14009
14632
  const provider = ['oktaAuth', 'keycloak', 'jwtToken'].includes(this.environment?.login?.type);
14010
14633
  const signedIn = provider ? !!this.loginedUserInfo?.name : isSignedIn(this.userInfo);
14011
14634
  this.menuItems = appSettingsMenu(this.rawMenuItems, this.mainCenter, { languages: this.projectLanguages, signedIn });
14635
+ this.settingsFooter = appSettingsFooter(this.mainCenter, { languages: this.projectLanguages });
14012
14636
  // the mark beside Scroll / Numbered: the user's choice, else Main's default
14013
14637
  if (this.scrollPagination !== true && this.scrollPagination !== false && this.scrollPagination !== 'true' && this.scrollPagination !== 'false') {
14014
14638
  this.scrollPagination = readAppSettings({ center: this.mainCenter }).pagination.default === 'scroll';
@@ -14554,6 +15178,9 @@ class SideMenuComponent {
14554
15178
  return;
14555
15179
  }
14556
15180
  if (option.terms && option.document) {
15181
+ // on the phone the menu closes first - it lay over the imprint dialog (2026-11-07)
15182
+ if (this.mobileMode && !this.isCollapsed)
15183
+ this.toggleCollapsed();
14557
15184
  await this.openTermsDocument({ ...option.document, caption: menu?.label?.caption || '' });
14558
15185
  return;
14559
15186
  }
@@ -14638,6 +15265,12 @@ class SideMenuComponent {
14638
15265
  // a text: the dialog (a notice in the corner was too small and went away by itself)
14639
15266
  this.termsDocument = [{ name: 'doc', caption: document.caption || '', kind: 'text', value: document.value }];
14640
15267
  }
15268
+ /** The foot of the menu with menu.style footer (languages, documents, version); null with the folder. */
15269
+ settingsFooter = null;
15270
+ /** A tap at the foot of the menu: the same as the folder's entry (language, document, version). */
15271
+ async footerTap(option, caption) {
15272
+ await this.invokeNavigate({ label: { caption }, option });
15273
+ }
14641
15274
  /** The text document of Terms & Conditions open now (vl-terms-dialog), null when none. */
14642
15275
  termsDocument = null;
14643
15276
  /** Loads a language of the project; false when the project has no such language file. */
@@ -14674,6 +15307,9 @@ class SideMenuComponent {
14674
15307
  });
14675
15308
  this.setLanguage = true;
14676
15309
  this.activeLanguage = lang;
15310
+ // the document's language: screen readers and the day names of the opening hours (Intl) follow it
15311
+ if (typeof document !== 'undefined')
15312
+ document.documentElement.lang = this.currentLanguageCode() || 'en';
14677
15313
  this.lastMenuTranslations = selectedLanguage;
14678
15314
  this.applyMenuTranslations(selectedLanguage);
14679
15315
  this.applySettingTranslations(selectedLanguage);
@@ -14737,10 +15373,10 @@ class SideMenuComponent {
14737
15373
  originalCaption;
14738
15374
  });
14739
15375
  }
14740
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SideMenuComponent, deps: [{ token: i1$5.NzI18nService }, { token: MobileKeycloakService }, { token: Couchdb }, { token: i7.OAuthService }, { token: i1$2.Platform }, { token: RequestService }, { token: UtilityService }, { token: i1$4.DialogService }, { token: NotificationService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
14741
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SideMenuComponent, isStandalone: true, selector: "vl-side-menu", inputs: { design: "design", menuLayout: "menuLayout", menuItems: "menuItems", userInfo: "userInfo", settings: "settings", projects: "projects", tenantName: "tenantName", environment: "environment", projectSeleted: "projectSeleted", appVersionInfo: "appVersionInfo", startLanguages: "startLanguages", mainCenter: "mainCenter" }, outputs: { designChange: "designChange", languageChange: "languageChange", invokeMenu: "invokeMenu", menuToggle: "menuToggle", invokeProject: "invokeProject", errorMessage: "errorMessage", deleteProject: "deleteProject", paginationType: "paginationType" }, host: { listeners: { "window:resize": "onResizeMobileMode()", "document:click": "onDocumentClick($event)" }, properties: { "class.sidemenu-mobile": "this.mobileClass", "class.vl-menu-design": "this.menuDesignClass" } }, viewQueries: [{ propertyName: "sideMenu", first: true, predicate: ["sideMenu"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the user's actions (the sign-out) carry data-vl-action - the tests' step signOut finds the sign-out by it -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - new: a menu entry that opens a page carries data-vl-page (its folder under pages/) - the same in every language,\r\n tests find an entry by it, not by its translated caption -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\r\n - change: built like the app: the user's place at the top with the sign-out (the logout entry), folders start\r\n closed, own entries show their grip, the app's own Setting entries are paler\r\n - change: no own edit row - a click on the menu's free space chooses it; \"+\" (hover text) adds an entry, a\r\n folder's \"+\" adds into it; the menu folds with the app's handle and every folder opens and closes\r\n - fix: entries indented by their level like the app (all stood at 24px); a sign-out entry without caption shows\r\n \"Logout\" on the canvas (it was an empty line)\r\n - fix: the canvas menu fills its area - the area's width (20% on the canvas) shrank it a second time to 50px -->\r\n<!-- Shuaib, 2026-10-30\r\n - new: recursive design menu shows saved and generated entries with path-based handles; navigation is inert.\r\n Generated settings are selectable, not draggable/deletable; the editor changes them through Main settings. -->\r\n@if (design) {\r\n<div class=\"vl-d-root vl-d-item\" [ngClass]=\"menuClasses(menuLayout?.style)\" [ngStyle]=\"designRootStyle()\"\r\n [class.vl-d-item--selected]=\"designMenuSelected()\" [style.width]=\"designCollapsed ? 'fit-content' : null\" (click)=\"selectDesignMenu()\">\r\n <!-- the same fold handle as the app; a click on the menu's free space chooses the menu, \"+\" adds an entry -->\r\n <div class=\"side-toggle-handle\" [class.collapsed]=\"designCollapsed\" (click)=\"$event.stopPropagation(); designCollapsed = !designCollapsed\">\r\n <span nz-icon [nzType]=\"designCollapsed ? 'caret-right' : 'caret-left'\"></span>\r\n </div>\r\n <!-- where the app shows the signed-in user and the sign-out: a placeholder; its sign-out symbol is the menu's\r\n logout entry (the app shows no logout line in the menu) -->\r\n @if (designSignIn()) {\r\n <div class=\"user-profile vl-menu-design-user\" [class.collapsed]=\"designCollapsed\">\r\n <span class=\"avatar vl-menu-design-avatar\" nz-icon nzType=\"user\"></span>\r\n @if (!designCollapsed) {\r\n <div class=\"details\">\r\n <div class=\"name\">{{ dt.userName }}</div>\r\n @if (designLogoutPath(); as path) {\r\n <button type=\"button\" class=\"vl-menu-design-logout\" [title]=\"menuText(designNode(path))\" (click)=\"selectDesignEntry(path, $event)\">\r\n <span nz-icon nzType=\"logout\"></span></button>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n <ul nz-menu nzMode=\"inline\" nzTheme=\"dark\" [nzInlineCollapsed]=\"designCollapsed\" cdkDropList [id]=\"designListId([])\"\r\n [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designListIds()\" (cdkDropListDropped)=\"designEntryDropped($event, [])\">\r\n <ng-container *ngTemplateOutlet=\"designEntries; context: {$implicit: designMenu, parent: []}\"></ng-container>\r\n<ng-template #designEntries let-items let-parent=\"parent\">\r\n @for (item of items; track $index; let index = $index) {\r\n @if (menuAction(item) === 'logout') {\r\n <!-- shown as the sign-out of the user above, like the app -->\r\n } @else if (item.submenu) {\r\n <li nz-submenu [nzOpen]=\"designOpen(designPath(parent, index))\" [class.vl-menu-design-generated]=\"!designEditable(designPath(parent, index))\" (nzOpenChange)=\"designFold(designPath(parent, index), $event)\"\r\n [nzTitle]=\"designTitle\" [nzPaddingLeft]=\"designIndent(parent)\"\r\n cdkDrag [cdkDragDisabled]=\"!designEditable(designPath(parent, index))\"\r\n [cdkDragData]=\"{vlDesign: 'menuEntry', path: designPath(parent, index)}\">\r\n <ul cdkDropList [id]=\"designListId(designPath(parent, index))\" [cdkDropListData]=\"designPath(parent, index)\"\r\n [cdkDropListDisabled]=\"!designEditable(designPath(parent, index))\" [cdkDropListConnectedTo]=\"designListIds()\"\r\n (cdkDropListDropped)=\"designEntryDropped($event, designPath(parent, index))\">\r\n <ng-container *ngTemplateOutlet=\"designEntries; context: {$implicit: item.submenu, parent: designPath(parent, index)}\"></ng-container>\r\n </ul>\r\n </li>\r\n } @else {\r\n <li nz-menu-item class=\"vl-d-item\" [nzPaddingLeft]=\"designIndent(parent)\" [class.vl-menu-design-generated]=\"!designEditable(designPath(parent, index))\" [class.vl-d-item--selected]=\"designSelected(designPath(parent, index))\"\r\n [class.vl-d-hidden]=\"item?.option?.visible === false\" cdkDrag\r\n [cdkDragDisabled]=\"!designEditable(designPath(parent, index))\"\r\n [cdkDragData]=\"{vlDesign: 'menuEntry', path: designPath(parent, index)}\"\r\n (click)=\"selectDesignEntry(designPath(parent, index), $event)\">\r\n <ng-container *ngTemplateOutlet=\"designLabel\"></ng-container>\r\n </li>\r\n }\r\n <ng-template #designTitle>\r\n <span class=\"vl-d-item\" [class.vl-d-item--selected]=\"designSelected(designPath(parent, index))\"\r\n [class.vl-d-hidden]=\"item?.option?.visible === false\" (click)=\"selectDesignEntry(designPath(parent, index), $event)\">\r\n <ng-container *ngTemplateOutlet=\"designLabel\"></ng-container>\r\n </span>\r\n </ng-template>\r\n <ng-template #designLabel>\r\n @if (designEditable(designPath(parent, index))) { <span class=\"vl-menu-design-grip\" aria-hidden=\"true\">\u22EE\u22EE</span> }\r\n <span *ngIf=\"item.icon\" nz-icon [nzType]=\"item.icon\"></span>\r\n <span [ngClass]=\"menuClasses(item?.label?.style)\" [ngStyle]=\"menuStyle(item?.label?.style)\">{{ menuText(item) }}</span>\r\n @if (designEditable(designPath(parent, index))) {\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"item.submenu ? ['drag', 'add', 'edit', 'delete'] : ['drag', 'edit', 'delete']\"\r\n [titles]=\"{drag: dt.dragField, add: dt.addMenuChild, edit: dt.edit, delete: dt.delete}\"\r\n (act)=\"designEntryAction($event, designPath(parent, index))\"></vl-design-bar>\r\n }\r\n </ng-template>\r\n }\r\n</ng-template>\r\n </ul>\r\n <!-- \"+\" at the end of the menu: a new entry at the top level (hover text) -->\r\n <button type=\"button\" class=\"vl-menu-design-add\" [title]=\"dt.addMenuEntry\" [attr.aria-label]=\"dt.addMenuEntry\"\r\n (click)=\"$event.stopPropagation(); designAdd([])\"><i class=\"pi pi-plus\" aria-hidden=\"true\"></i></button>\r\n</div>\r\n} @else {\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - change: an entry's visibility by itemHidden (sign-in and option.role); the name line only for a name from the token -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-20\r\n - new: a fourth footer row \"App\" with the export of the app (appVersionInfo.appRelease, issue #57) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - new: the active language has a check mark, like the active pagination type\r\n - fix: all check marks (pagination, language) stand in one column at the right edge; the\r\n pagination marks followed their caption at a fixed distance and landed elsewhere on iOS\r\n - change: the version footer has three columns - version, build (source commit) and build\r\n number (appBuildNumber), the three values build.sh and the web Docker build produce -->\r\n<!-- Shuaib 2026-09-24\r\n - change: sign-in visibility checks now include jwtToken alongside keycloak and oktaAuth. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment on the option key, singular since 2026-09-16, and on the sign-in\r\n branches, which know keycloak and oktaAuth but not jwtToken -->\r\n<div class=\"left-wrap sidemenu\" [class.collapsed]=\"isCollapsed\"\r\n [ngStyle]=\"{ 'z-index': !isCollapsed && isMobile ? 999999 : 'auto' }\"\r\n #sideMenu>\r\n <!-- Move toggle button OUTSIDE menu container -->\r\n <div class=\"side-toggle-handle\" id=\"toggle-id\" (click)=\"toggleCollapsed()\"\r\n [class.collapsed]=\"isCollapsed\">\r\n <span id=\"toggle-icon\" nz-icon\r\n [nzType]=\"isCollapsed ? 'caret-right' : 'caret-left'\"></span>\r\n </div>\r\n <div class=\"side-menu\" id=\"sidemenuwrap\"\r\n [ngStyle]=\"{ width: (isMobile && isCollapsed) ? '1px' : isCollapsed ? '60px' : '' }\">\r\n <!-- user content -->\r\n <ng-container *ngIf=\"loginedUserInfo && loginedUserInfo?.name\">\r\n <div class=\"user-profile\" [class.collapsed]=\"isCollapsed\">\r\n <img class=\"avatar\" [src]=\"loginedUserInfo?.image\" alt=\"User\" />\r\n <div [class]=\"isMobile ? '' : 'details'\" *ngIf=\"!isCollapsed\">\r\n <div class=\"name\" *ngIf=\"loginedUserInfo.nameFromToken !== false\">{{ loginedUserInfo.name }}</div>\r\n <div class=\"email\">{{ loginedUserInfo?.email }}</div>\r\n <div class=\"actions\" *ngIf=\"loginedUserInfo?.actions?.length\">\r\n <button *ngFor=\"let action of loginedUserInfo?.actions\" nz-button\r\n nzType=\"link\" nzSize=\"small\" [attr.data-vl-action]=\"menuAction(action) || null\"\r\n (click)=\"invokeNavigate(action)\">\r\n <span>{{ action?.label?.caption }}</span>\r\n <span nz-icon [nzType]=\"action.icon\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <!-- @contract decision: this container reads option (singular), like every other one\r\n reality: it read options (plural) until 2026-09-16. A menu file written for the old\r\n spelling is ignored without an error.\r\n\r\n @contract decision: sign-in visibility supports keycloak, oktaAuth and jwtToken.\r\n A JWT project uses the decoded user's login state, like the other providers.\r\n seen: the login type comparisons in the lines below -->\r\n <!-- dynamic menu -->\r\n <ul nz-menu nzMode=\"inline\" nzTheme=\"dark\"\r\n [nzInlineCollapsed]=\"isCollapsed\">\r\n <ng-container *ngFor=\"let item of menuItems\">\r\n <ng-container\r\n *ngIf=\"!item.submenu && menuAction(item) !== 'logout'; else submenu\">\r\n <span\r\n [class]=\"itemHidden(item) ? 'hidden' : ''\">\r\n <li (click)=\"invokeNavigate(item)\" nz-menu-item nz-tooltip [attr.data-vl-page]=\"vlPage(item)\"\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? item?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"item.icon\"></span>\r\n <span>{{ item?.label?.caption }}</span>\r\n </li>\r\n </span>\r\n </ng-container>\r\n <ng-template #submenu>\r\n <span\r\n [class]=\"itemHidden(item, true) ? 'hidden' : ''\">\r\n <li nz-submenu *ngIf=\"menuAction(item) !== 'logout'\"\r\n [nzTitle]=\"item?.label?.caption\"\r\n [nzIcon]=\"item.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let child of item.submenu\">\r\n <li (click)=\"invokeNavigate(child)\" *ngIf=\"!child.submenu\" [attr.data-vl-page]=\"vlPage(child)\"\r\n nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? child?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"child?.icon\"></span>\r\n <span>{{ child?.label?.caption }}</span>\r\n </li>\r\n <ng-container *ngIf=\"child.submenu\">\r\n <li nz-submenu [nzTitle]=\"child?.label?.caption\"\r\n [nzIcon]=\"child?.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let subChild of child.submenu\">\r\n <li (click)=\"invokeNavigate(subChild)\" nz-menu-item [attr.data-vl-page]=\"vlPage(subChild)\">\r\n <ng-container\r\n *ngIf=\"subChild?.option?.setImageUrl; else antIcon\">\r\n <img *ngIf=\"isUrl(subChild?.icon)\"\r\n [src]=\"subChild?.icon\" alt=\"icon\"\r\n style=\"width: 16px; height: 16px; margin-right: 8px;\" />\r\n </ng-container>\r\n <ng-template #antIcon>\r\n <span nz-icon [nzType]=\"subChild?.icon\"></span>\r\n </ng-template>\r\n <span>{{ subChild?.label?.caption }}</span>\r\n @if(subChild?.option?.numberedPagination &&\r\n !scrollPagination){\r\n <span nz-icon\r\n nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n @if(subChild?.option?.scrollPagination &&\r\n scrollPagination){\r\n <span nz-icon\r\n nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n @if(subChild?.option?.changeLang &&\r\n subChild?.option?.data_url === activeLanguage){\r\n <span nz-icon nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </span>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <!-- separator -->\r\n <li *ngIf=\"settingMenu.submenu\" class=\"menu-separator\"></li>\r\n\r\n <!-- settings menu -->\r\n <ng-container *ngIf=\"!settingMenu.submenu; else settingSubmenu\"\r\n style=\"position: absolute; bottom: 0;\">\r\n <li (click)=\"invokeNavigate(settingMenu)\" nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? settingMenu?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"settingMenu.icon\"></span>\r\n <span>{{ settingMenu?.label?.caption }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #settingSubmenu>\r\n <li nz-submenu [nzTitle]=\"settingMenu?.label?.caption\"\r\n [nzIcon]=\"settingMenu.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let child of settingMenu.submenu\">\r\n <li (click)=\"invokeNavigate(child)\" *ngIf=\"!child.submenu\"\r\n nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? child?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"child?.icon\"></span>\r\n <span>{{ child?.label?.caption }}</span>\r\n </li>\r\n <ng-container *ngIf=\"child.submenu\">\r\n <li nz-submenu [nzTitle]=\"child?.label?.caption\"\r\n [nzIcon]=\"child?.icon\">\r\n <ul style=\"width: 260px;\">\r\n <ng-container\r\n *ngFor=\"let subChild of child.submenu; let i = index\">\r\n <li (click)=\"invokeNavigate(subChild, child)\"\r\n nz-menu-item>\r\n <span\r\n [class]=\"child?.label?.caption === 'Languages' ? '' : 'menu-row'\">\r\n <ng-container\r\n *ngIf=\"subChild?.option?.changeProject; else antIcon\">\r\n <img [src]=\"subChild?.icon\" alt=\"icon\"\r\n style=\"width: 16px; height: 16px; margin-right: 8px;\" />\r\n </ng-container>\r\n <ng-template #antIcon>\r\n <span nz-icon [nzType]=\"subChild?.icon\"></span>\r\n </ng-template>\r\n <span>{{ subChild?.label?.caption }}</span>\r\n <!-- Delete icon (prevent click bubbling) -->\r\n <span *ngIf=\"child?.label?.caption != 'Languages'\"\r\n nz-icon nzType=\"delete\" class=\"delete-icon\"\r\n style=\"padding-left: 5%;\"\r\n (click)=\"deleteMenuItem(subChild, i, $event)\"></span>\r\n </span>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-template>\r\n </ul>\r\n @if (!isCollapsed && appVersionInfo?.appVersion) {\r\n <div class=\"app-version-footer\">\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Version</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appVersion }}</span>\r\n </div>\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Build</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appBuild || '-' }}</span>\r\n </div>\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Build No.</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appBuildNumber || '-' }}</span>\r\n </div>\r\n <!-- the app's own export (issue #57): \"Export 2 \u00B7 41908dd \u00B7 20.10.2026\", only when it has one -->\r\n @if (appVersionInfo.appRelease) {\r\n <div class=\"app-version-footer__item app-version-footer__release\" [title]=\"appVersionInfo.appRelease\">\r\n <span class=\"app-version-footer__label\">App</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appRelease }}</span>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24 - a text document of Terms & Conditions -->\r\n@if (termsDocument) {\r\n<vl-terms-dialog [documents]=\"termsDocument\" [translations]=\"lastMenuTranslations\" (closed)=\"termsDocument = null\"></vl-terms-dialog>\r\n}\r\n\r\n}\r\n", styles: [":host(.vl-menu-design){width:100%;max-width:100%;min-width:0;height:100%}:host(.vl-menu-design)>.vl-d-root{min-height:100%;background:#001529;display:flow-root}:host(.vl-menu-design) ::ng-deep li .vl-d-bar{position:static;margin-left:auto;flex:none;transform:none;display:none}:host(.vl-menu-design) ::ng-deep .ant-menu-title-content,:host(.vl-menu-design) ::ng-deep span.vl-d-item{display:flex;align-items:center;gap:4px;min-width:0;width:100%;outline:none}:host(.vl-menu-design) ::ng-deep .ant-menu-title-content>span:not(.vl-menu-design-grip):not([nz-icon]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}:host(.vl-menu-design) ::ng-deep li{position:relative}:host(.vl-menu-design) ::ng-deep li.ant-menu-item:hover .vl-d-bar,:host(.vl-menu-design) ::ng-deep .ant-menu-submenu-title:hover .vl-d-bar,:host(.vl-menu-design) ::ng-deep .vl-d-item--selected>.ant-menu-title-content .vl-d-bar{display:inline-flex;opacity:1;visibility:visible;transform:none}:host(.vl-menu-design) ::ng-deep li .vl-d-bar{zoom:.8}:host(.vl-menu-design) ::ng-deep .ant-menu-submenu-title{position:relative}:host(.vl-menu-design) .vl-menu-design-add{display:flex;align-items:center;justify-content:center;width:100%;height:40px;margin:0;border:1px dashed rgba(255,255,255,.35);border-radius:6px;background:#001529;color:#ffffffbf;cursor:pointer}:host(.vl-menu-design) .vl-menu-design-add:hover{color:#fff;border-color:#fff}:host(.vl-menu-design) .vl-menu-design-generated{opacity:.6}:host(.vl-menu-design) .vl-menu-design-grip{color:#ffffff73;margin-right:6px;letter-spacing:-3px;cursor:grab}:host(.vl-menu-design) .vl-menu-design-user{background:#001529}:host(.vl-menu-design) .vl-menu-design-avatar{display:inline-flex;align-items:center;justify-content:center;font-size:26px;color:#fff;background:#ffffff1f}:host(.vl-menu-design) .vl-menu-design-logout{margin-top:4px;border:0;background:none;color:#fff;cursor:pointer;padding:0}:host{position:relative;display:block;flex:0 0 auto;width:250px;height:100%;min-height:0;overflow:visible;transition:width .3s ease}.left-wrap.sidemenu{position:relative;width:250px;height:100%;min-height:0;overflow:visible;transition:width .3s ease,transform .3s ease}.side-menu{position:relative;display:flex;flex-direction:column;width:250px;height:100%;min-height:0;color:#fff;background-color:#0d1b2a;overflow:hidden;transition:width .3s ease,box-shadow .3s ease}:host:has(.left-wrap.sidemenu.collapsed){width:64px}.left-wrap.sidemenu.collapsed,.left-wrap.sidemenu.collapsed .side-menu{width:64px}.menu-separator{flex:0 0 auto;height:1px;margin:15px 12px 6px;background-color:#ffffff26;border:0;list-style:none}.user-profile{flex:0 0 auto;padding:20px 10px 16px;margin-top:40px;text-align:center;border-bottom:1px solid rgba(255,255,255,.1);overflow:hidden;transition:padding .25s ease,margin .25s ease,opacity .25s ease,max-height .25s ease}.user-profile .avatar{display:block;width:64px;height:64px;margin:0 auto 8px;object-fit:cover;border:2px solid #ffffff;border-radius:50%;transition:width .25s ease,height .25s ease,margin .25s ease}.user-profile .details{min-width:0;overflow:hidden;transition:opacity .2s ease}.user-profile .name{color:#fff;font-size:14px;font-weight:600;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-profile .email{margin:2px 0 8px;color:#aaa;font-size:12px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word}.user-profile .actions{display:flex;align-items:center;justify-content:center;gap:6px}.user-profile .actions button{margin:0;color:#fff}.left-wrap.sidemenu.collapsed .user-profile{padding:12px 8px}.left-wrap.sidemenu.collapsed .user-profile .avatar{width:40px;height:40px;margin-bottom:0}.left-wrap.sidemenu.collapsed .user-profile .details,.left-wrap.sidemenu.collapsed .user-profile .name,.left-wrap.sidemenu.collapsed .user-profile .email,.left-wrap.sidemenu.collapsed .user-profile .actions{display:none}.side-menu ul[nz-menu]{flex:1 1 auto;width:100%;min-height:0;margin:0;padding:4px 0 8px;overflow-x:hidden;overflow-y:auto;background-color:transparent;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent;scroll-behavior:smooth}.side-menu ul[nz-menu]::-webkit-scrollbar{width:6px}.side-menu ul[nz-menu]::-webkit-scrollbar-track{background:transparent}.side-menu ul[nz-menu]::-webkit-scrollbar-thumb{background-color:#ffffff47;border-radius:999px}.side-menu ul[nz-menu]::-webkit-scrollbar-thumb:hover{background-color:#ffffff6b}.menu-row{display:flex;align-items:center;width:100%;min-width:0}.menu-text{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.delete-icon{flex:0 0 auto;margin-left:auto;color:#ffffffb3;cursor:pointer;transition:color .18s ease,transform .18s ease}.delete-icon:hover{color:#ff7875;transform:scale(1.08)}.projects{position:static;flex:0 0 auto;width:100%;margin-top:auto;background-color:#0d1b2a}.side-toggle-handle{position:absolute;top:24px;right:-14px;z-index:10000;display:flex;align-items:center;justify-content:center;width:28px;height:48px;padding:0;color:#fff;background-color:#0d1b2a;border:0;border-radius:0 6px 6px 0;box-shadow:2px 0 6px #00000040;cursor:pointer;transform:translateY(-50%);transition:background-color .2s ease,box-shadow .2s ease}.side-toggle-handle:hover{background-color:#142a40;box-shadow:3px 0 9px #0000004d}.side-toggle-handle:focus-visible{outline:3px solid rgba(24,144,255,.45);outline-offset:2px}.side-toggle-handle span{color:#fff;font-size:14px;line-height:1;transition:transform .25s ease}.collapse-btn{position:absolute;top:8px;right:8px;z-index:10001}:host(:not(.sidemenu-mobile)) .left-wrap.sidemenu.collapsed:hover{transform:translate(0)}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed{width:64px!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title{display:flex!important;align-items:center!important;justify-content:center!important;width:45px!important;height:32px!important;margin-inline:0!important;padding-inline:0!important;overflow:hidden!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-title-content,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .menu-text,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .delete-icon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-submenu-arrow{display:none!important;width:0!important;min-width:0!important;max-width:0!important;margin:0!important;padding:0!important;visibility:hidden!important;overflow:hidden!important;text-overflow:clip!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item>.anticon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title>.anticon{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;width:auto!important;min-width:18px;margin:0!important;padding:0!important;color:inherit;font-size:18px;line-height:1;visibility:visible!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .menu-row{display:contents}:host(.sidemenu-mobile){position:absolute;top:0;bottom:0;left:0;z-index:9999;width:250px;height:100%}:host(.sidemenu-mobile):has(.left-wrap.sidemenu.collapsed){width:0}:host(.sidemenu-mobile) .left-wrap.sidemenu{width:250px;height:100%}:host(.sidemenu-mobile) .side-menu,:host(.sidemenu-mobile) .side-menu.open{width:250px;height:100%;box-shadow:8px 0 22px #0000003d}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed{width:250px;transform:translate(-250px)}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .side-menu{width:250px;box-shadow:none}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .side-toggle-handle{right:-28px}:host(.sidemenu-mobile) .side-toggle-handle{top:0;right:0;padding:0;transform:none!important}:host(.sidemenu-mobile) .collapse-btn{top:8px;right:8px}:host(.sidemenu-mobile) .user-profile{margin-top:40px}:host(.sidemenu-mobile) .user-profile .avatar{width:48px;height:48px}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .user-profile{max-height:0;padding:0;margin:0;opacity:0;overflow:hidden;border-bottom:0}@media(prefers-reduced-motion:reduce){:host,.left-wrap.sidemenu,.side-menu,.user-profile,.user-profile .avatar,.side-toggle-handle,.side-toggle-handle span{transition:none}.side-menu ul[nz-menu]{scroll-behavior:auto}}.app-version-footer{flex-shrink:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.15);color:#ffffffa6;font-size:11px;line-height:1.4;text-align:center}.app-version-footer__item{display:flex;flex-direction:column;min-width:0}.app-version-footer__label{font-size:10px;opacity:.7}.app-version-footer__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-version-footer__release{grid-column:1 / -1}.pagination-check{position:absolute;top:50%;right:42px;transform:translateY(-50%)}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ 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: "ngmodule", type: PlatformModule }, { kind: "ngmodule", type:
15376
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SideMenuComponent, deps: [{ token: i1$6.NzI18nService }, { token: MobileKeycloakService }, { token: Couchdb }, { token: i7.OAuthService }, { token: i1$2.Platform }, { token: RequestService }, { token: UtilityService }, { token: i1$5.DialogService }, { token: NotificationService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
15377
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SideMenuComponent, isStandalone: true, selector: "vl-side-menu", inputs: { design: "design", menuLayout: "menuLayout", menuItems: "menuItems", userInfo: "userInfo", settings: "settings", projects: "projects", tenantName: "tenantName", environment: "environment", projectSeleted: "projectSeleted", appVersionInfo: "appVersionInfo", startLanguages: "startLanguages", mainCenter: "mainCenter" }, outputs: { designChange: "designChange", languageChange: "languageChange", invokeMenu: "invokeMenu", menuToggle: "menuToggle", invokeProject: "invokeProject", errorMessage: "errorMessage", deleteProject: "deleteProject", paginationType: "paginationType" }, host: { listeners: { "window:resize": "onResizeMobileMode()", "document:click": "onDocumentClick($event)" }, properties: { "class.sidemenu-mobile": "this.mobileClass", "class.vl-menu-design": "this.menuDesignClass" } }, viewQueries: [{ propertyName: "sideMenu", first: true, predicate: ["sideMenu"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\r\n - new: the foot of the menu (appSettings.menu.style footer): language buttons, document links, version -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new 2026-11-09: the Designer's entries carry data-vl-page too - a right click in the preview finds its entry (worklist 25)\r\n - new: the user's actions (the sign-out) carry data-vl-action - the tests' step signOut finds the sign-out by it -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - new: a menu entry that opens a page carries data-vl-page (its folder under pages/) - the same in every language,\r\n tests find an entry by it, not by its translated caption -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\r\n - change: built like the app: the user's place at the top with the sign-out (the logout entry), folders start\r\n closed, own entries show their grip, the app's own Setting entries are paler\r\n - change: no own edit row - a click on the menu's free space chooses it; \"+\" (hover text) adds an entry, a\r\n folder's \"+\" adds into it; the menu folds with the app's handle and every folder opens and closes\r\n - fix: entries indented by their level like the app (all stood at 24px); a sign-out entry without caption shows\r\n \"Logout\" on the canvas (it was an empty line)\r\n - fix: the canvas menu fills its area - the area's width (20% on the canvas) shrank it a second time to 50px -->\r\n<!-- Shuaib, 2026-10-30\r\n - new: recursive design menu shows saved and generated entries with path-based handles; navigation is inert.\r\n Generated settings are selectable, not draggable/deletable; the editor changes them through Main settings. -->\r\n@if (design) {\r\n<div class=\"vl-d-root vl-d-item\" [ngClass]=\"menuClasses(menuLayout?.style)\" [ngStyle]=\"designRootStyle()\"\r\n [class.vl-d-item--selected]=\"designMenuSelected()\" [style.width]=\"designCollapsed ? 'fit-content' : null\" (click)=\"selectDesignMenu()\">\r\n <!-- the same fold handle as the app; a click on the menu's free space chooses the menu, \"+\" adds an entry -->\r\n <div class=\"side-toggle-handle\" [class.collapsed]=\"designCollapsed\" (click)=\"$event.stopPropagation(); designCollapsed = !designCollapsed\">\r\n <span nz-icon [nzType]=\"designCollapsed ? 'caret-right' : 'caret-left'\"></span>\r\n </div>\r\n <!-- where the app shows the signed-in user and the sign-out: a placeholder; its sign-out symbol is the menu's\r\n logout entry (the app shows no logout line in the menu) -->\r\n @if (designSignIn()) {\r\n <div class=\"user-profile vl-menu-design-user\" [class.collapsed]=\"designCollapsed\">\r\n <span class=\"avatar vl-menu-design-avatar\" nz-icon nzType=\"user\"></span>\r\n @if (!designCollapsed) {\r\n <div class=\"details\">\r\n <div class=\"name\">{{ dt.userName }}</div>\r\n @if (designLogoutPath(); as path) {\r\n <button type=\"button\" class=\"vl-menu-design-logout\" [title]=\"menuText(designNode(path))\" (click)=\"selectDesignEntry(path, $event)\">\r\n <span nz-icon nzType=\"logout\"></span></button>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n <ul nz-menu nzMode=\"inline\" nzTheme=\"dark\" [nzInlineCollapsed]=\"designCollapsed\" cdkDropList [id]=\"designListId([])\"\r\n [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designListIds()\" (cdkDropListDropped)=\"designEntryDropped($event, [])\">\r\n <ng-container *ngTemplateOutlet=\"designEntries; context: {$implicit: designMenu, parent: []}\"></ng-container>\r\n<ng-template #designEntries let-items let-parent=\"parent\">\r\n @for (item of items; track $index; let index = $index) {\r\n @if (menuAction(item) === 'logout') {\r\n <!-- shown as the sign-out of the user above, like the app -->\r\n } @else if (item.submenu) {\r\n <li nz-submenu [nzOpen]=\"designOpen(designPath(parent, index))\" [class.vl-menu-design-generated]=\"!designEditable(designPath(parent, index))\" (nzOpenChange)=\"designFold(designPath(parent, index), $event)\"\r\n [nzTitle]=\"designTitle\" [nzPaddingLeft]=\"designIndent(parent)\"\r\n cdkDrag [cdkDragDisabled]=\"!designEditable(designPath(parent, index))\"\r\n [cdkDragData]=\"{vlDesign: 'menuEntry', path: designPath(parent, index)}\">\r\n <ul cdkDropList [id]=\"designListId(designPath(parent, index))\" [cdkDropListData]=\"designPath(parent, index)\"\r\n [cdkDropListDisabled]=\"!designEditable(designPath(parent, index))\" [cdkDropListConnectedTo]=\"designListIds()\"\r\n (cdkDropListDropped)=\"designEntryDropped($event, designPath(parent, index))\">\r\n <ng-container *ngTemplateOutlet=\"designEntries; context: {$implicit: item.submenu, parent: designPath(parent, index)}\"></ng-container>\r\n </ul>\r\n </li>\r\n } @else {\r\n <li nz-menu-item class=\"vl-d-item\" [nzPaddingLeft]=\"designIndent(parent)\" [class.vl-menu-design-generated]=\"!designEditable(designPath(parent, index))\" [class.vl-d-item--selected]=\"designSelected(designPath(parent, index))\"\r\n [class.vl-d-hidden]=\"item?.option?.visible === false\" cdkDrag\r\n [cdkDragDisabled]=\"!designEditable(designPath(parent, index))\"\r\n [cdkDragData]=\"{vlDesign: 'menuEntry', path: designPath(parent, index)}\"\r\n (click)=\"selectDesignEntry(designPath(parent, index), $event)\" [attr.data-vl-page]=\"vlPage(item)\">\r\n <ng-container *ngTemplateOutlet=\"designLabel\"></ng-container>\r\n </li>\r\n }\r\n <ng-template #designTitle>\r\n <span class=\"vl-d-item\" [class.vl-d-item--selected]=\"designSelected(designPath(parent, index))\"\r\n [class.vl-d-hidden]=\"item?.option?.visible === false\" (click)=\"selectDesignEntry(designPath(parent, index), $event)\">\r\n <ng-container *ngTemplateOutlet=\"designLabel\"></ng-container>\r\n </span>\r\n </ng-template>\r\n <ng-template #designLabel>\r\n @if (designEditable(designPath(parent, index))) { <span class=\"vl-menu-design-grip\" aria-hidden=\"true\">\u22EE\u22EE</span> }\r\n <span *ngIf=\"item.icon\" nz-icon [nzType]=\"item.icon\"></span>\r\n <span [ngClass]=\"menuClasses(item?.label?.style)\" [ngStyle]=\"menuStyle(item?.label?.style)\">{{ menuText(item) }}</span>\r\n @if (designEditable(designPath(parent, index))) {\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"item.submenu ? ['drag', 'add', 'edit', 'delete'] : ['drag', 'edit', 'delete']\"\r\n [titles]=\"{drag: dt.dragField, add: dt.addMenuChild, edit: dt.edit, delete: dt.delete}\"\r\n (act)=\"designEntryAction($event, designPath(parent, index))\"></vl-design-bar>\r\n }\r\n </ng-template>\r\n }\r\n</ng-template>\r\n </ul>\r\n <!-- \"+\" at the end of the menu: a new entry at the top level (hover text) -->\r\n <button type=\"button\" class=\"vl-menu-design-add\" [title]=\"dt.addMenuEntry\" [attr.aria-label]=\"dt.addMenuEntry\"\r\n (click)=\"$event.stopPropagation(); designAdd([])\"><i class=\"pi pi-plus\" aria-hidden=\"true\"></i></button>\r\n</div>\r\n} @else {\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - change: an entry's visibility by itemHidden (sign-in and option.role); the name line only for a name from the token -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-20\r\n - new: a fourth footer row \"App\" with the export of the app (appVersionInfo.appRelease, issue #57) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - new: the active language has a check mark, like the active pagination type\r\n - fix: all check marks (pagination, language) stand in one column at the right edge; the\r\n pagination marks followed their caption at a fixed distance and landed elsewhere on iOS\r\n - change: the version footer has three columns - version, build (source commit) and build\r\n number (appBuildNumber), the three values build.sh and the web Docker build produce -->\r\n<!-- Shuaib 2026-09-24\r\n - change: sign-in visibility checks now include jwtToken alongside keycloak and oktaAuth. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment on the option key, singular since 2026-09-16, and on the sign-in\r\n branches, which know keycloak and oktaAuth but not jwtToken -->\r\n<div class=\"left-wrap sidemenu\" [class.collapsed]=\"isCollapsed\"\r\n [ngStyle]=\"{ 'z-index': !isCollapsed && isMobile ? 999999 : 'auto' }\"\r\n #sideMenu>\r\n <!-- Move toggle button OUTSIDE menu container -->\r\n <div class=\"side-toggle-handle\" id=\"toggle-id\" (click)=\"toggleCollapsed()\"\r\n [class.collapsed]=\"isCollapsed\">\r\n <span id=\"toggle-icon\" nz-icon\r\n [nzType]=\"isCollapsed ? 'caret-right' : 'caret-left'\"></span>\r\n </div>\r\n <div class=\"side-menu\" id=\"sidemenuwrap\"\r\n [ngStyle]=\"{ width: (isMobile && isCollapsed) ? '1px' : isCollapsed ? '60px' : '' }\">\r\n <!-- user content -->\r\n <ng-container *ngIf=\"loginedUserInfo && loginedUserInfo?.name\">\r\n <div class=\"user-profile\" [class.collapsed]=\"isCollapsed\">\r\n <img class=\"avatar\" [src]=\"loginedUserInfo?.image\" alt=\"User\" />\r\n <div [class]=\"isMobile ? '' : 'details'\" *ngIf=\"!isCollapsed\">\r\n <div class=\"name\" *ngIf=\"loginedUserInfo.nameFromToken !== false\">{{ loginedUserInfo.name }}</div>\r\n <div class=\"email\">{{ loginedUserInfo?.email }}</div>\r\n <div class=\"actions\" *ngIf=\"loginedUserInfo?.actions?.length\">\r\n <button *ngFor=\"let action of loginedUserInfo?.actions\" nz-button\r\n nzType=\"link\" nzSize=\"small\" [attr.data-vl-action]=\"menuAction(action) || null\"\r\n (click)=\"invokeNavigate(action)\">\r\n <span>{{ action?.label?.caption }}</span>\r\n <span nz-icon [nzType]=\"action.icon\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <!-- @contract decision: this container reads option (singular), like every other one\r\n reality: it read options (plural) until 2026-09-16. A menu file written for the old\r\n spelling is ignored without an error.\r\n\r\n @contract decision: sign-in visibility supports keycloak, oktaAuth and jwtToken.\r\n A JWT project uses the decoded user's login state, like the other providers.\r\n seen: the login type comparisons in the lines below -->\r\n <!-- dynamic menu -->\r\n <ul nz-menu nzMode=\"inline\" nzTheme=\"dark\"\r\n [nzInlineCollapsed]=\"isCollapsed\">\r\n <ng-container *ngFor=\"let item of menuItems\">\r\n <ng-container\r\n *ngIf=\"!item.submenu && menuAction(item) !== 'logout'; else submenu\">\r\n <span\r\n [class]=\"itemHidden(item) ? 'hidden' : ''\">\r\n <li (click)=\"invokeNavigate(item)\" nz-menu-item nz-tooltip [attr.data-vl-page]=\"vlPage(item)\"\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? item?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"item.icon\"></span>\r\n <span>{{ item?.label?.caption }}</span>\r\n </li>\r\n </span>\r\n </ng-container>\r\n <ng-template #submenu>\r\n <span\r\n [class]=\"itemHidden(item, true) ? 'hidden' : ''\">\r\n <li nz-submenu *ngIf=\"menuAction(item) !== 'logout'\"\r\n [nzTitle]=\"item?.label?.caption\"\r\n [nzIcon]=\"item.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let child of item.submenu\">\r\n <li (click)=\"invokeNavigate(child)\" *ngIf=\"!child.submenu\" [attr.data-vl-page]=\"vlPage(child)\"\r\n nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? child?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"child?.icon\"></span>\r\n <span>{{ child?.label?.caption }}</span>\r\n </li>\r\n <ng-container *ngIf=\"child.submenu\">\r\n <li nz-submenu [nzTitle]=\"child?.label?.caption\"\r\n [nzIcon]=\"child?.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let subChild of child.submenu\">\r\n <li (click)=\"invokeNavigate(subChild)\" nz-menu-item [attr.data-vl-page]=\"vlPage(subChild)\">\r\n <ng-container\r\n *ngIf=\"subChild?.option?.setImageUrl; else antIcon\">\r\n <img *ngIf=\"isUrl(subChild?.icon)\"\r\n [src]=\"subChild?.icon\" alt=\"icon\"\r\n style=\"width: 16px; height: 16px; margin-right: 8px;\" />\r\n </ng-container>\r\n <ng-template #antIcon>\r\n <span nz-icon [nzType]=\"subChild?.icon\"></span>\r\n </ng-template>\r\n <span>{{ subChild?.label?.caption }}</span>\r\n @if(subChild?.option?.numberedPagination &&\r\n !scrollPagination){\r\n <span nz-icon\r\n nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n @if(subChild?.option?.scrollPagination &&\r\n scrollPagination){\r\n <span nz-icon\r\n nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n @if(subChild?.option?.changeLang &&\r\n subChild?.option?.data_url === activeLanguage){\r\n <span nz-icon nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </span>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <!-- separator -->\r\n <li *ngIf=\"settingMenu.submenu\" class=\"menu-separator\"></li>\r\n\r\n <!-- settings menu -->\r\n <ng-container *ngIf=\"!settingMenu.submenu; else settingSubmenu\"\r\n style=\"position: absolute; bottom: 0;\">\r\n <li (click)=\"invokeNavigate(settingMenu)\" nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? settingMenu?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"settingMenu.icon\"></span>\r\n <span>{{ settingMenu?.label?.caption }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #settingSubmenu>\r\n <li nz-submenu [nzTitle]=\"settingMenu?.label?.caption\"\r\n [nzIcon]=\"settingMenu.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let child of settingMenu.submenu\">\r\n <li (click)=\"invokeNavigate(child)\" *ngIf=\"!child.submenu\"\r\n nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? child?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"child?.icon\"></span>\r\n <span>{{ child?.label?.caption }}</span>\r\n </li>\r\n <ng-container *ngIf=\"child.submenu\">\r\n <li nz-submenu [nzTitle]=\"child?.label?.caption\"\r\n [nzIcon]=\"child?.icon\">\r\n <ul style=\"width: 260px;\">\r\n <ng-container\r\n *ngFor=\"let subChild of child.submenu; let i = index\">\r\n <li (click)=\"invokeNavigate(subChild, child)\"\r\n nz-menu-item>\r\n <span\r\n [class]=\"child?.label?.caption === 'Languages' ? '' : 'menu-row'\">\r\n <ng-container\r\n *ngIf=\"subChild?.option?.changeProject; else antIcon\">\r\n <img [src]=\"subChild?.icon\" alt=\"icon\"\r\n style=\"width: 16px; height: 16px; margin-right: 8px;\" />\r\n </ng-container>\r\n <ng-template #antIcon>\r\n <span nz-icon [nzType]=\"subChild?.icon\"></span>\r\n </ng-template>\r\n <span>{{ subChild?.label?.caption }}</span>\r\n <!-- Delete icon (prevent click bubbling) -->\r\n <span *ngIf=\"child?.label?.caption != 'Languages'\"\r\n nz-icon nzType=\"delete\" class=\"delete-icon\"\r\n style=\"padding-left: 5%;\"\r\n (click)=\"deleteMenuItem(subChild, i, $event)\"></span>\r\n </span>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-template>\r\n </ul>\r\n @if (!isCollapsed && settingsFooter) {\r\n <div class=\"vl-menu-foot\">\r\n @if (settingsFooter.languages.length) {\r\n <div class=\"vl-menu-foot__langs\" role=\"group\" [attr.aria-label]=\"lastMenuTranslations?.['Languages'] || 'Languages'\">\r\n <span class=\"vl-menu-foot__label\">{{ lastMenuTranslations?.['Languages'] || 'Languages' }}</span>\r\n @for (lang of settingsFooter.languages; track lang.code) {\r\n <button type=\"button\" class=\"vl-menu-foot__lang\" [class.vl-menu-foot__lang--on]=\"currentLanguageCode() === lang.code\"\r\n [attr.aria-pressed]=\"currentLanguageCode() === lang.code\" [title]=\"lang.name\" (click)=\"footerTap(lang.option, lang.name)\">{{ lang.code.toUpperCase() }}</button>\r\n }\r\n </div>\r\n }\r\n @if (settingsFooter.documents.length) {\r\n <div class=\"vl-menu-foot__docs\">\r\n @for (doc of settingsFooter.documents; track doc.name) {\r\n <button type=\"button\" class=\"vl-menu-foot__doc\" (click)=\"footerTap(doc.option, lastMenuTranslations?.[doc.caption] || doc.caption)\">{{ lastMenuTranslations?.[doc.caption] || doc.caption }}</button>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n @if (!isCollapsed && appVersionInfo?.appVersion && (!settingsFooter || settingsFooter.version)) {\r\n <div class=\"app-version-footer\">\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Version</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appVersion }}</span>\r\n </div>\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Build</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appBuild || '-' }}</span>\r\n </div>\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Build No.</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appBuildNumber || '-' }}</span>\r\n </div>\r\n <!-- the app's own export (issue #57): \"Export 2 \u00B7 41908dd \u00B7 20.10.2026\", only when it has one -->\r\n @if (appVersionInfo.appRelease) {\r\n <div class=\"app-version-footer__item app-version-footer__release\" [title]=\"appVersionInfo.appRelease\">\r\n <span class=\"app-version-footer__label\">App</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appRelease }}</span>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24 - a text document of Terms & Conditions -->\r\n@if (termsDocument) {\r\n<vl-terms-dialog [documents]=\"termsDocument\" [translations]=\"lastMenuTranslations\" (closed)=\"termsDocument = null\"></vl-terms-dialog>\r\n}\r\n\r\n}\r\n", styles: [":host(.vl-menu-design){width:100%;max-width:100%;min-width:0;height:100%}:host(.vl-menu-design)>.vl-d-root{min-height:100%;background:#001529;display:flow-root}:host(.vl-menu-design) ::ng-deep li .vl-d-bar{position:static;margin-left:auto;flex:none;transform:none;display:none}:host(.vl-menu-design) ::ng-deep .ant-menu-title-content,:host(.vl-menu-design) ::ng-deep span.vl-d-item{display:flex;align-items:center;gap:4px;min-width:0;width:100%;outline:none}:host(.vl-menu-design) ::ng-deep .ant-menu-title-content>span:not(.vl-menu-design-grip):not([nz-icon]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}:host(.vl-menu-design) ::ng-deep li{position:relative}:host(.vl-menu-design) ::ng-deep li.ant-menu-item:hover .vl-d-bar,:host(.vl-menu-design) ::ng-deep .ant-menu-submenu-title:hover .vl-d-bar,:host(.vl-menu-design) ::ng-deep .vl-d-item--selected>.ant-menu-title-content .vl-d-bar{display:inline-flex;opacity:1;visibility:visible;transform:none}:host(.vl-menu-design) ::ng-deep li .vl-d-bar{zoom:.8}:host(.vl-menu-design) ::ng-deep .ant-menu-submenu-title{position:relative}:host(.vl-menu-design) .vl-menu-design-add{display:flex;align-items:center;justify-content:center;width:100%;height:40px;margin:0;border:1px dashed rgba(255,255,255,.35);border-radius:var(--vl-shape-button-radius, 6px);background:#001529;color:#ffffffbf;cursor:pointer}:host(.vl-menu-design) .vl-menu-design-add:hover{color:#fff;border-color:#fff}:host(.vl-menu-design) .vl-menu-design-generated{opacity:.6}:host(.vl-menu-design) .vl-menu-design-grip{color:#ffffff73;margin-right:6px;letter-spacing:-3px;cursor:grab}:host(.vl-menu-design) .vl-menu-design-user{background:#001529}:host(.vl-menu-design) .vl-menu-design-avatar{display:inline-flex;align-items:center;justify-content:center;font-size:26px;color:#fff;background:#ffffff1f}:host(.vl-menu-design) .vl-menu-design-logout{margin-top:4px;border:0;background:none;color:#fff;cursor:pointer;padding:0}:host{position:relative;display:block;flex:0 0 auto;width:250px;height:100%;min-height:0;overflow:visible;transition:width .3s ease}.left-wrap.sidemenu{position:relative;width:250px;height:100%;min-height:0;overflow:visible;transition:width .3s ease,transform .3s ease}.side-menu{position:relative;display:flex;flex-direction:column;width:250px;height:100%;min-height:0;color:var(--vl-menu-text, #ffffff);background-color:var(--vl-menu-background, #0d1b2a);overflow:hidden;transition:width .3s ease,box-shadow .3s ease}:host:has(.left-wrap.sidemenu.collapsed){width:64px}.left-wrap.sidemenu.collapsed,.left-wrap.sidemenu.collapsed .side-menu{width:64px}.menu-separator{flex:0 0 auto;height:1px;margin:15px 12px 6px;background-color:var(--vl-menu-divider, rgba(255, 255, 255, .15));border:0;list-style:none}.user-profile{flex:0 0 auto;padding:20px 10px 16px;margin-top:40px;text-align:center;border-bottom:1px solid var(--vl-menu-divider, rgba(255, 255, 255, .1));overflow:hidden;transition:padding .25s ease,margin .25s ease,opacity .25s ease,max-height .25s ease}.user-profile .avatar{display:block;width:64px;height:64px;margin:0 auto 8px;object-fit:cover;border:2px solid var(--vl-menu-text, #ffffff);border-radius:50%;transition:width .25s ease,height .25s ease,margin .25s ease}.user-profile .details{min-width:0;overflow:hidden;transition:opacity .2s ease}.user-profile .name{color:var(--vl-menu-text, #ffffff);font-size:14px;font-weight:600;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-profile .email{margin:2px 0 8px;color:var(--vl-menu-text-muted, #aaaaaa);font-size:12px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word}.user-profile .actions{display:flex;align-items:center;justify-content:center;gap:6px}.user-profile .actions button{margin:0;color:var(--vl-menu-text, #ffffff)}.left-wrap.sidemenu.collapsed .user-profile{padding:12px 8px}.left-wrap.sidemenu.collapsed .user-profile .avatar{width:40px;height:40px;margin-bottom:0}.left-wrap.sidemenu.collapsed .user-profile .details,.left-wrap.sidemenu.collapsed .user-profile .name,.left-wrap.sidemenu.collapsed .user-profile .email,.left-wrap.sidemenu.collapsed .user-profile .actions{display:none}.side-menu ul[nz-menu]{flex:1 1 auto;width:100%;min-height:0;margin:0;padding:4px 0 8px;overflow-x:hidden;overflow-y:auto;background-color:transparent;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent;scroll-behavior:smooth}.side-menu ul[nz-menu]::-webkit-scrollbar{width:6px}.side-menu ul[nz-menu]::-webkit-scrollbar-track{background:transparent}.side-menu ul[nz-menu]::-webkit-scrollbar-thumb{background-color:#ffffff47;border-radius:999px}.side-menu ul[nz-menu]::-webkit-scrollbar-thumb:hover{background-color:#ffffff6b}.menu-row{display:flex;align-items:center;width:100%;min-width:0}.menu-text{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.delete-icon{flex:0 0 auto;margin-left:auto;color:var(--vl-menu-text-muted, rgba(255, 255, 255, .7));cursor:pointer;transition:color .18s ease,transform .18s ease}.delete-icon:hover{color:var(--vl-color-danger, #ff7875);transform:scale(1.08)}.projects{position:static;flex:0 0 auto;width:100%;margin-top:auto;background-color:var(--vl-menu-background, #0d1b2a)}.side-toggle-handle{position:absolute;top:24px;right:-14px;z-index:10000;display:flex;align-items:center;justify-content:center;width:28px;height:48px;padding:0;color:var(--vl-menu-text, #ffffff);background-color:var(--vl-menu-background, #0d1b2a);border:0;border-radius:0 6px 6px 0;box-shadow:2px 0 6px #00000040;cursor:pointer;transform:translateY(-50%);transition:background-color .2s ease,box-shadow .2s ease}.side-toggle-handle:hover{background-color:var(--vl-menu-hover, #142a40);box-shadow:3px 0 9px #0000004d}.side-toggle-handle:focus-visible{outline:3px solid rgba(24,144,255,.45);outline-offset:2px}.side-toggle-handle span{color:var(--vl-menu-text, #ffffff);font-size:14px;line-height:1;transition:transform .25s ease}.collapse-btn{position:absolute;top:8px;right:8px;z-index:10001}:host(:not(.sidemenu-mobile)) .left-wrap.sidemenu.collapsed:hover{transform:translate(0)}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed{width:64px!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title{display:flex!important;align-items:center!important;justify-content:center!important;width:45px!important;height:32px!important;margin-inline:0!important;padding-inline:0!important;overflow:hidden!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-title-content,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .menu-text,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .delete-icon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-submenu-arrow{display:none!important;width:0!important;min-width:0!important;max-width:0!important;margin:0!important;padding:0!important;visibility:hidden!important;overflow:hidden!important;text-overflow:clip!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item>.anticon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title>.anticon{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;width:auto!important;min-width:18px;margin:0!important;padding:0!important;color:inherit;font-size:18px;line-height:1;visibility:visible!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .menu-row{display:contents}:host(.sidemenu-mobile){position:absolute;top:0;bottom:0;left:0;z-index:9999;width:250px;height:100%}:host(.sidemenu-mobile):has(.left-wrap.sidemenu.collapsed){width:0}:host(.sidemenu-mobile) .left-wrap.sidemenu{width:250px;height:100%}:host(.sidemenu-mobile) .side-menu,:host(.sidemenu-mobile) .side-menu.open{width:250px;height:100%;box-shadow:8px 0 22px #0000003d}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed{width:250px;transform:translate(-250px)}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .side-menu{width:250px;box-shadow:none}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .side-toggle-handle{right:-28px}:host(.sidemenu-mobile) .side-toggle-handle{top:0;right:0;padding:0;transform:none!important}:host(.sidemenu-mobile) .collapse-btn{top:8px;right:8px}:host(.sidemenu-mobile) .user-profile{margin-top:40px}:host(.sidemenu-mobile) .user-profile .avatar{width:48px;height:48px}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .user-profile{max-height:0;padding:0;margin:0;opacity:0;overflow:hidden;border-bottom:0}@media(prefers-reduced-motion:reduce){:host,.left-wrap.sidemenu,.side-menu,.user-profile,.user-profile .avatar,.side-toggle-handle,.side-toggle-handle span{transition:none}.side-menu ul[nz-menu]{scroll-behavior:auto}}.app-version-footer{flex-shrink:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px 12px;border-top:1px solid var(--vl-menu-divider, rgba(255, 255, 255, .15));color:var(--vl-menu-text-muted, rgba(255, 255, 255, .65));font-size:11px;line-height:1.4;text-align:center}.app-version-footer__item{display:flex;flex-direction:column;min-width:0}.app-version-footer__label{font-size:10px;opacity:.7}.app-version-footer__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-version-footer__release{grid-column:1 / -1}.pagination-check{position:absolute;top:50%;right:42px;transform:translateY(-50%)}.vl-menu-foot{flex-shrink:0;display:flex;flex-direction:column;gap:14px;margin-top:auto;padding:14px 16px;border-top:1px solid var(--vl-menu-divider, rgba(255, 255, 255, .15));color:var(--vl-menu-text, #fff)}.vl-menu-foot__langs{display:flex;align-items:center;gap:8px}.vl-menu-foot__label{flex:1;font-size:13px;color:var(--vl-menu-text-muted, rgba(255, 255, 255, .7))}.vl-menu-foot__lang{min-width:44px;height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--vl-menu-divider, rgba(255, 255, 255, .3));background:transparent;color:var(--vl-menu-text, #fff);font-weight:600;cursor:pointer}.vl-menu-foot__lang--on{background:var(--vl-color-primary, #2563eb);border-color:var(--vl-color-primary, #2563eb);color:var(--vl-menu-background, #111)}.vl-menu-foot__docs{display:flex;flex-wrap:wrap;gap:6px 18px}.vl-menu-foot__doc{border:0;background:none;padding:4px 0;min-height:32px;color:var(--vl-menu-text-muted, rgba(255, 255, 255, .8));font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}:host ::ng-deep .ant-menu.ant-menu-dark,:host ::ng-deep .ant-menu-dark .ant-menu-sub,:host ::ng-deep .ant-menu-dark .ant-menu-inline.ant-menu-sub{background:var(--vl-menu-background, #001529)}:host ::ng-deep .ant-menu-dark .ant-menu-item,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-title,:host ::ng-deep .ant-menu-dark .ant-menu-item .anticon,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-title .anticon,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-arrow{color:var(--vl-menu-text, rgba(255, 255, 255, .65))}:host ::ng-deep .ant-menu-dark .ant-menu-submenu-arrow:before,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-arrow:after{background:var(--vl-menu-text, #fff)}:host ::ng-deep .ant-menu-dark .ant-menu-item:hover,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-title:hover{background:var(--vl-menu-hover, transparent);color:var(--vl-menu-text, #fff)}:host ::ng-deep .ant-menu-dark .ant-menu-item-selected,:host ::ng-deep .ant-menu-dark.ant-menu-inline .ant-menu-item-selected{background:var(--vl-color-primary, #1890ff);color:var(--vl-color-on-primary, #fff)}:host ::ng-deep .ant-menu-dark .ant-menu-item-selected .anticon{color:var(--vl-color-on-primary, #fff)}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: PlatformModule }, { kind: "ngmodule", type:
14742
15378
  // NG-ZORRO
14743
- NzMenuModule }, { kind: "directive", type: i11$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i11$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i11$1.NzSubMenuComponent, selector: "[nz-submenu]", inputs: ["nzMenuClassName", "nzPaddingLeft", "nzTitle", "nzIcon", "nzTriggerSubMenuAction", "nzOpen", "nzDisabled", "nzPlacement"], outputs: ["nzOpenChange"], exportAs: ["nzSubmenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i13$1.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i11.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i12.ɵ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: "ngmodule", type:
15379
+ NzMenuModule }, { kind: "directive", type: i11$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i11$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i11$1.NzSubMenuComponent, selector: "[nz-submenu]", inputs: ["nzMenuClassName", "nzPaddingLeft", "nzTitle", "nzIcon", "nzTriggerSubMenuAction", "nzOpen", "nzDisabled", "nzPlacement"], outputs: ["nzOpenChange"], exportAs: ["nzSubmenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTooltipModule }, { kind: "directive", type: i13$1.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i11.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i12.ɵ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: "ngmodule", type:
14744
15380
  // PrimeNG
14745
15381
  DynamicDialogModule }, { kind: "component", type: TermsDialog, selector: "vl-terms-dialog", inputs: ["documents", "confirm", "translations"], outputs: ["accepted", "declined", "closed"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }] });
14746
15382
  }
@@ -14757,8 +15393,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
14757
15393
  // PrimeNG
14758
15394
  DynamicDialogModule,
14759
15395
  TermsDialog, DragDropModule, DesignBarComponent
14760
- ], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: the user's actions (the sign-out) carry data-vl-action - the tests' step signOut finds the sign-out by it -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - new: a menu entry that opens a page carries data-vl-page (its folder under pages/) - the same in every language,\r\n tests find an entry by it, not by its translated caption -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\r\n - change: built like the app: the user's place at the top with the sign-out (the logout entry), folders start\r\n closed, own entries show their grip, the app's own Setting entries are paler\r\n - change: no own edit row - a click on the menu's free space chooses it; \"+\" (hover text) adds an entry, a\r\n folder's \"+\" adds into it; the menu folds with the app's handle and every folder opens and closes\r\n - fix: entries indented by their level like the app (all stood at 24px); a sign-out entry without caption shows\r\n \"Logout\" on the canvas (it was an empty line)\r\n - fix: the canvas menu fills its area - the area's width (20% on the canvas) shrank it a second time to 50px -->\r\n<!-- Shuaib, 2026-10-30\r\n - new: recursive design menu shows saved and generated entries with path-based handles; navigation is inert.\r\n Generated settings are selectable, not draggable/deletable; the editor changes them through Main settings. -->\r\n@if (design) {\r\n<div class=\"vl-d-root vl-d-item\" [ngClass]=\"menuClasses(menuLayout?.style)\" [ngStyle]=\"designRootStyle()\"\r\n [class.vl-d-item--selected]=\"designMenuSelected()\" [style.width]=\"designCollapsed ? 'fit-content' : null\" (click)=\"selectDesignMenu()\">\r\n <!-- the same fold handle as the app; a click on the menu's free space chooses the menu, \"+\" adds an entry -->\r\n <div class=\"side-toggle-handle\" [class.collapsed]=\"designCollapsed\" (click)=\"$event.stopPropagation(); designCollapsed = !designCollapsed\">\r\n <span nz-icon [nzType]=\"designCollapsed ? 'caret-right' : 'caret-left'\"></span>\r\n </div>\r\n <!-- where the app shows the signed-in user and the sign-out: a placeholder; its sign-out symbol is the menu's\r\n logout entry (the app shows no logout line in the menu) -->\r\n @if (designSignIn()) {\r\n <div class=\"user-profile vl-menu-design-user\" [class.collapsed]=\"designCollapsed\">\r\n <span class=\"avatar vl-menu-design-avatar\" nz-icon nzType=\"user\"></span>\r\n @if (!designCollapsed) {\r\n <div class=\"details\">\r\n <div class=\"name\">{{ dt.userName }}</div>\r\n @if (designLogoutPath(); as path) {\r\n <button type=\"button\" class=\"vl-menu-design-logout\" [title]=\"menuText(designNode(path))\" (click)=\"selectDesignEntry(path, $event)\">\r\n <span nz-icon nzType=\"logout\"></span></button>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n <ul nz-menu nzMode=\"inline\" nzTheme=\"dark\" [nzInlineCollapsed]=\"designCollapsed\" cdkDropList [id]=\"designListId([])\"\r\n [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designListIds()\" (cdkDropListDropped)=\"designEntryDropped($event, [])\">\r\n <ng-container *ngTemplateOutlet=\"designEntries; context: {$implicit: designMenu, parent: []}\"></ng-container>\r\n<ng-template #designEntries let-items let-parent=\"parent\">\r\n @for (item of items; track $index; let index = $index) {\r\n @if (menuAction(item) === 'logout') {\r\n <!-- shown as the sign-out of the user above, like the app -->\r\n } @else if (item.submenu) {\r\n <li nz-submenu [nzOpen]=\"designOpen(designPath(parent, index))\" [class.vl-menu-design-generated]=\"!designEditable(designPath(parent, index))\" (nzOpenChange)=\"designFold(designPath(parent, index), $event)\"\r\n [nzTitle]=\"designTitle\" [nzPaddingLeft]=\"designIndent(parent)\"\r\n cdkDrag [cdkDragDisabled]=\"!designEditable(designPath(parent, index))\"\r\n [cdkDragData]=\"{vlDesign: 'menuEntry', path: designPath(parent, index)}\">\r\n <ul cdkDropList [id]=\"designListId(designPath(parent, index))\" [cdkDropListData]=\"designPath(parent, index)\"\r\n [cdkDropListDisabled]=\"!designEditable(designPath(parent, index))\" [cdkDropListConnectedTo]=\"designListIds()\"\r\n (cdkDropListDropped)=\"designEntryDropped($event, designPath(parent, index))\">\r\n <ng-container *ngTemplateOutlet=\"designEntries; context: {$implicit: item.submenu, parent: designPath(parent, index)}\"></ng-container>\r\n </ul>\r\n </li>\r\n } @else {\r\n <li nz-menu-item class=\"vl-d-item\" [nzPaddingLeft]=\"designIndent(parent)\" [class.vl-menu-design-generated]=\"!designEditable(designPath(parent, index))\" [class.vl-d-item--selected]=\"designSelected(designPath(parent, index))\"\r\n [class.vl-d-hidden]=\"item?.option?.visible === false\" cdkDrag\r\n [cdkDragDisabled]=\"!designEditable(designPath(parent, index))\"\r\n [cdkDragData]=\"{vlDesign: 'menuEntry', path: designPath(parent, index)}\"\r\n (click)=\"selectDesignEntry(designPath(parent, index), $event)\">\r\n <ng-container *ngTemplateOutlet=\"designLabel\"></ng-container>\r\n </li>\r\n }\r\n <ng-template #designTitle>\r\n <span class=\"vl-d-item\" [class.vl-d-item--selected]=\"designSelected(designPath(parent, index))\"\r\n [class.vl-d-hidden]=\"item?.option?.visible === false\" (click)=\"selectDesignEntry(designPath(parent, index), $event)\">\r\n <ng-container *ngTemplateOutlet=\"designLabel\"></ng-container>\r\n </span>\r\n </ng-template>\r\n <ng-template #designLabel>\r\n @if (designEditable(designPath(parent, index))) { <span class=\"vl-menu-design-grip\" aria-hidden=\"true\">\u22EE\u22EE</span> }\r\n <span *ngIf=\"item.icon\" nz-icon [nzType]=\"item.icon\"></span>\r\n <span [ngClass]=\"menuClasses(item?.label?.style)\" [ngStyle]=\"menuStyle(item?.label?.style)\">{{ menuText(item) }}</span>\r\n @if (designEditable(designPath(parent, index))) {\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"item.submenu ? ['drag', 'add', 'edit', 'delete'] : ['drag', 'edit', 'delete']\"\r\n [titles]=\"{drag: dt.dragField, add: dt.addMenuChild, edit: dt.edit, delete: dt.delete}\"\r\n (act)=\"designEntryAction($event, designPath(parent, index))\"></vl-design-bar>\r\n }\r\n </ng-template>\r\n }\r\n</ng-template>\r\n </ul>\r\n <!-- \"+\" at the end of the menu: a new entry at the top level (hover text) -->\r\n <button type=\"button\" class=\"vl-menu-design-add\" [title]=\"dt.addMenuEntry\" [attr.aria-label]=\"dt.addMenuEntry\"\r\n (click)=\"$event.stopPropagation(); designAdd([])\"><i class=\"pi pi-plus\" aria-hidden=\"true\"></i></button>\r\n</div>\r\n} @else {\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - change: an entry's visibility by itemHidden (sign-in and option.role); the name line only for a name from the token -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-20\r\n - new: a fourth footer row \"App\" with the export of the app (appVersionInfo.appRelease, issue #57) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - new: the active language has a check mark, like the active pagination type\r\n - fix: all check marks (pagination, language) stand in one column at the right edge; the\r\n pagination marks followed their caption at a fixed distance and landed elsewhere on iOS\r\n - change: the version footer has three columns - version, build (source commit) and build\r\n number (appBuildNumber), the three values build.sh and the web Docker build produce -->\r\n<!-- Shuaib 2026-09-24\r\n - change: sign-in visibility checks now include jwtToken alongside keycloak and oktaAuth. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment on the option key, singular since 2026-09-16, and on the sign-in\r\n branches, which know keycloak and oktaAuth but not jwtToken -->\r\n<div class=\"left-wrap sidemenu\" [class.collapsed]=\"isCollapsed\"\r\n [ngStyle]=\"{ 'z-index': !isCollapsed && isMobile ? 999999 : 'auto' }\"\r\n #sideMenu>\r\n <!-- Move toggle button OUTSIDE menu container -->\r\n <div class=\"side-toggle-handle\" id=\"toggle-id\" (click)=\"toggleCollapsed()\"\r\n [class.collapsed]=\"isCollapsed\">\r\n <span id=\"toggle-icon\" nz-icon\r\n [nzType]=\"isCollapsed ? 'caret-right' : 'caret-left'\"></span>\r\n </div>\r\n <div class=\"side-menu\" id=\"sidemenuwrap\"\r\n [ngStyle]=\"{ width: (isMobile && isCollapsed) ? '1px' : isCollapsed ? '60px' : '' }\">\r\n <!-- user content -->\r\n <ng-container *ngIf=\"loginedUserInfo && loginedUserInfo?.name\">\r\n <div class=\"user-profile\" [class.collapsed]=\"isCollapsed\">\r\n <img class=\"avatar\" [src]=\"loginedUserInfo?.image\" alt=\"User\" />\r\n <div [class]=\"isMobile ? '' : 'details'\" *ngIf=\"!isCollapsed\">\r\n <div class=\"name\" *ngIf=\"loginedUserInfo.nameFromToken !== false\">{{ loginedUserInfo.name }}</div>\r\n <div class=\"email\">{{ loginedUserInfo?.email }}</div>\r\n <div class=\"actions\" *ngIf=\"loginedUserInfo?.actions?.length\">\r\n <button *ngFor=\"let action of loginedUserInfo?.actions\" nz-button\r\n nzType=\"link\" nzSize=\"small\" [attr.data-vl-action]=\"menuAction(action) || null\"\r\n (click)=\"invokeNavigate(action)\">\r\n <span>{{ action?.label?.caption }}</span>\r\n <span nz-icon [nzType]=\"action.icon\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <!-- @contract decision: this container reads option (singular), like every other one\r\n reality: it read options (plural) until 2026-09-16. A menu file written for the old\r\n spelling is ignored without an error.\r\n\r\n @contract decision: sign-in visibility supports keycloak, oktaAuth and jwtToken.\r\n A JWT project uses the decoded user's login state, like the other providers.\r\n seen: the login type comparisons in the lines below -->\r\n <!-- dynamic menu -->\r\n <ul nz-menu nzMode=\"inline\" nzTheme=\"dark\"\r\n [nzInlineCollapsed]=\"isCollapsed\">\r\n <ng-container *ngFor=\"let item of menuItems\">\r\n <ng-container\r\n *ngIf=\"!item.submenu && menuAction(item) !== 'logout'; else submenu\">\r\n <span\r\n [class]=\"itemHidden(item) ? 'hidden' : ''\">\r\n <li (click)=\"invokeNavigate(item)\" nz-menu-item nz-tooltip [attr.data-vl-page]=\"vlPage(item)\"\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? item?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"item.icon\"></span>\r\n <span>{{ item?.label?.caption }}</span>\r\n </li>\r\n </span>\r\n </ng-container>\r\n <ng-template #submenu>\r\n <span\r\n [class]=\"itemHidden(item, true) ? 'hidden' : ''\">\r\n <li nz-submenu *ngIf=\"menuAction(item) !== 'logout'\"\r\n [nzTitle]=\"item?.label?.caption\"\r\n [nzIcon]=\"item.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let child of item.submenu\">\r\n <li (click)=\"invokeNavigate(child)\" *ngIf=\"!child.submenu\" [attr.data-vl-page]=\"vlPage(child)\"\r\n nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? child?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"child?.icon\"></span>\r\n <span>{{ child?.label?.caption }}</span>\r\n </li>\r\n <ng-container *ngIf=\"child.submenu\">\r\n <li nz-submenu [nzTitle]=\"child?.label?.caption\"\r\n [nzIcon]=\"child?.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let subChild of child.submenu\">\r\n <li (click)=\"invokeNavigate(subChild)\" nz-menu-item [attr.data-vl-page]=\"vlPage(subChild)\">\r\n <ng-container\r\n *ngIf=\"subChild?.option?.setImageUrl; else antIcon\">\r\n <img *ngIf=\"isUrl(subChild?.icon)\"\r\n [src]=\"subChild?.icon\" alt=\"icon\"\r\n style=\"width: 16px; height: 16px; margin-right: 8px;\" />\r\n </ng-container>\r\n <ng-template #antIcon>\r\n <span nz-icon [nzType]=\"subChild?.icon\"></span>\r\n </ng-template>\r\n <span>{{ subChild?.label?.caption }}</span>\r\n @if(subChild?.option?.numberedPagination &&\r\n !scrollPagination){\r\n <span nz-icon\r\n nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n @if(subChild?.option?.scrollPagination &&\r\n scrollPagination){\r\n <span nz-icon\r\n nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n @if(subChild?.option?.changeLang &&\r\n subChild?.option?.data_url === activeLanguage){\r\n <span nz-icon nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </span>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <!-- separator -->\r\n <li *ngIf=\"settingMenu.submenu\" class=\"menu-separator\"></li>\r\n\r\n <!-- settings menu -->\r\n <ng-container *ngIf=\"!settingMenu.submenu; else settingSubmenu\"\r\n style=\"position: absolute; bottom: 0;\">\r\n <li (click)=\"invokeNavigate(settingMenu)\" nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? settingMenu?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"settingMenu.icon\"></span>\r\n <span>{{ settingMenu?.label?.caption }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #settingSubmenu>\r\n <li nz-submenu [nzTitle]=\"settingMenu?.label?.caption\"\r\n [nzIcon]=\"settingMenu.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let child of settingMenu.submenu\">\r\n <li (click)=\"invokeNavigate(child)\" *ngIf=\"!child.submenu\"\r\n nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? child?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"child?.icon\"></span>\r\n <span>{{ child?.label?.caption }}</span>\r\n </li>\r\n <ng-container *ngIf=\"child.submenu\">\r\n <li nz-submenu [nzTitle]=\"child?.label?.caption\"\r\n [nzIcon]=\"child?.icon\">\r\n <ul style=\"width: 260px;\">\r\n <ng-container\r\n *ngFor=\"let subChild of child.submenu; let i = index\">\r\n <li (click)=\"invokeNavigate(subChild, child)\"\r\n nz-menu-item>\r\n <span\r\n [class]=\"child?.label?.caption === 'Languages' ? '' : 'menu-row'\">\r\n <ng-container\r\n *ngIf=\"subChild?.option?.changeProject; else antIcon\">\r\n <img [src]=\"subChild?.icon\" alt=\"icon\"\r\n style=\"width: 16px; height: 16px; margin-right: 8px;\" />\r\n </ng-container>\r\n <ng-template #antIcon>\r\n <span nz-icon [nzType]=\"subChild?.icon\"></span>\r\n </ng-template>\r\n <span>{{ subChild?.label?.caption }}</span>\r\n <!-- Delete icon (prevent click bubbling) -->\r\n <span *ngIf=\"child?.label?.caption != 'Languages'\"\r\n nz-icon nzType=\"delete\" class=\"delete-icon\"\r\n style=\"padding-left: 5%;\"\r\n (click)=\"deleteMenuItem(subChild, i, $event)\"></span>\r\n </span>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-template>\r\n </ul>\r\n @if (!isCollapsed && appVersionInfo?.appVersion) {\r\n <div class=\"app-version-footer\">\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Version</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appVersion }}</span>\r\n </div>\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Build</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appBuild || '-' }}</span>\r\n </div>\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Build No.</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appBuildNumber || '-' }}</span>\r\n </div>\r\n <!-- the app's own export (issue #57): \"Export 2 \u00B7 41908dd \u00B7 20.10.2026\", only when it has one -->\r\n @if (appVersionInfo.appRelease) {\r\n <div class=\"app-version-footer__item app-version-footer__release\" [title]=\"appVersionInfo.appRelease\">\r\n <span class=\"app-version-footer__label\">App</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appRelease }}</span>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24 - a text document of Terms & Conditions -->\r\n@if (termsDocument) {\r\n<vl-terms-dialog [documents]=\"termsDocument\" [translations]=\"lastMenuTranslations\" (closed)=\"termsDocument = null\"></vl-terms-dialog>\r\n}\r\n\r\n}\r\n", styles: [":host(.vl-menu-design){width:100%;max-width:100%;min-width:0;height:100%}:host(.vl-menu-design)>.vl-d-root{min-height:100%;background:#001529;display:flow-root}:host(.vl-menu-design) ::ng-deep li .vl-d-bar{position:static;margin-left:auto;flex:none;transform:none;display:none}:host(.vl-menu-design) ::ng-deep .ant-menu-title-content,:host(.vl-menu-design) ::ng-deep span.vl-d-item{display:flex;align-items:center;gap:4px;min-width:0;width:100%;outline:none}:host(.vl-menu-design) ::ng-deep .ant-menu-title-content>span:not(.vl-menu-design-grip):not([nz-icon]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}:host(.vl-menu-design) ::ng-deep li{position:relative}:host(.vl-menu-design) ::ng-deep li.ant-menu-item:hover .vl-d-bar,:host(.vl-menu-design) ::ng-deep .ant-menu-submenu-title:hover .vl-d-bar,:host(.vl-menu-design) ::ng-deep .vl-d-item--selected>.ant-menu-title-content .vl-d-bar{display:inline-flex;opacity:1;visibility:visible;transform:none}:host(.vl-menu-design) ::ng-deep li .vl-d-bar{zoom:.8}:host(.vl-menu-design) ::ng-deep .ant-menu-submenu-title{position:relative}:host(.vl-menu-design) .vl-menu-design-add{display:flex;align-items:center;justify-content:center;width:100%;height:40px;margin:0;border:1px dashed rgba(255,255,255,.35);border-radius:6px;background:#001529;color:#ffffffbf;cursor:pointer}:host(.vl-menu-design) .vl-menu-design-add:hover{color:#fff;border-color:#fff}:host(.vl-menu-design) .vl-menu-design-generated{opacity:.6}:host(.vl-menu-design) .vl-menu-design-grip{color:#ffffff73;margin-right:6px;letter-spacing:-3px;cursor:grab}:host(.vl-menu-design) .vl-menu-design-user{background:#001529}:host(.vl-menu-design) .vl-menu-design-avatar{display:inline-flex;align-items:center;justify-content:center;font-size:26px;color:#fff;background:#ffffff1f}:host(.vl-menu-design) .vl-menu-design-logout{margin-top:4px;border:0;background:none;color:#fff;cursor:pointer;padding:0}:host{position:relative;display:block;flex:0 0 auto;width:250px;height:100%;min-height:0;overflow:visible;transition:width .3s ease}.left-wrap.sidemenu{position:relative;width:250px;height:100%;min-height:0;overflow:visible;transition:width .3s ease,transform .3s ease}.side-menu{position:relative;display:flex;flex-direction:column;width:250px;height:100%;min-height:0;color:#fff;background-color:#0d1b2a;overflow:hidden;transition:width .3s ease,box-shadow .3s ease}:host:has(.left-wrap.sidemenu.collapsed){width:64px}.left-wrap.sidemenu.collapsed,.left-wrap.sidemenu.collapsed .side-menu{width:64px}.menu-separator{flex:0 0 auto;height:1px;margin:15px 12px 6px;background-color:#ffffff26;border:0;list-style:none}.user-profile{flex:0 0 auto;padding:20px 10px 16px;margin-top:40px;text-align:center;border-bottom:1px solid rgba(255,255,255,.1);overflow:hidden;transition:padding .25s ease,margin .25s ease,opacity .25s ease,max-height .25s ease}.user-profile .avatar{display:block;width:64px;height:64px;margin:0 auto 8px;object-fit:cover;border:2px solid #ffffff;border-radius:50%;transition:width .25s ease,height .25s ease,margin .25s ease}.user-profile .details{min-width:0;overflow:hidden;transition:opacity .2s ease}.user-profile .name{color:#fff;font-size:14px;font-weight:600;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-profile .email{margin:2px 0 8px;color:#aaa;font-size:12px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word}.user-profile .actions{display:flex;align-items:center;justify-content:center;gap:6px}.user-profile .actions button{margin:0;color:#fff}.left-wrap.sidemenu.collapsed .user-profile{padding:12px 8px}.left-wrap.sidemenu.collapsed .user-profile .avatar{width:40px;height:40px;margin-bottom:0}.left-wrap.sidemenu.collapsed .user-profile .details,.left-wrap.sidemenu.collapsed .user-profile .name,.left-wrap.sidemenu.collapsed .user-profile .email,.left-wrap.sidemenu.collapsed .user-profile .actions{display:none}.side-menu ul[nz-menu]{flex:1 1 auto;width:100%;min-height:0;margin:0;padding:4px 0 8px;overflow-x:hidden;overflow-y:auto;background-color:transparent;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent;scroll-behavior:smooth}.side-menu ul[nz-menu]::-webkit-scrollbar{width:6px}.side-menu ul[nz-menu]::-webkit-scrollbar-track{background:transparent}.side-menu ul[nz-menu]::-webkit-scrollbar-thumb{background-color:#ffffff47;border-radius:999px}.side-menu ul[nz-menu]::-webkit-scrollbar-thumb:hover{background-color:#ffffff6b}.menu-row{display:flex;align-items:center;width:100%;min-width:0}.menu-text{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.delete-icon{flex:0 0 auto;margin-left:auto;color:#ffffffb3;cursor:pointer;transition:color .18s ease,transform .18s ease}.delete-icon:hover{color:#ff7875;transform:scale(1.08)}.projects{position:static;flex:0 0 auto;width:100%;margin-top:auto;background-color:#0d1b2a}.side-toggle-handle{position:absolute;top:24px;right:-14px;z-index:10000;display:flex;align-items:center;justify-content:center;width:28px;height:48px;padding:0;color:#fff;background-color:#0d1b2a;border:0;border-radius:0 6px 6px 0;box-shadow:2px 0 6px #00000040;cursor:pointer;transform:translateY(-50%);transition:background-color .2s ease,box-shadow .2s ease}.side-toggle-handle:hover{background-color:#142a40;box-shadow:3px 0 9px #0000004d}.side-toggle-handle:focus-visible{outline:3px solid rgba(24,144,255,.45);outline-offset:2px}.side-toggle-handle span{color:#fff;font-size:14px;line-height:1;transition:transform .25s ease}.collapse-btn{position:absolute;top:8px;right:8px;z-index:10001}:host(:not(.sidemenu-mobile)) .left-wrap.sidemenu.collapsed:hover{transform:translate(0)}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed{width:64px!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title{display:flex!important;align-items:center!important;justify-content:center!important;width:45px!important;height:32px!important;margin-inline:0!important;padding-inline:0!important;overflow:hidden!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-title-content,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .menu-text,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .delete-icon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-submenu-arrow{display:none!important;width:0!important;min-width:0!important;max-width:0!important;margin:0!important;padding:0!important;visibility:hidden!important;overflow:hidden!important;text-overflow:clip!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item>.anticon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title>.anticon{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;width:auto!important;min-width:18px;margin:0!important;padding:0!important;color:inherit;font-size:18px;line-height:1;visibility:visible!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .menu-row{display:contents}:host(.sidemenu-mobile){position:absolute;top:0;bottom:0;left:0;z-index:9999;width:250px;height:100%}:host(.sidemenu-mobile):has(.left-wrap.sidemenu.collapsed){width:0}:host(.sidemenu-mobile) .left-wrap.sidemenu{width:250px;height:100%}:host(.sidemenu-mobile) .side-menu,:host(.sidemenu-mobile) .side-menu.open{width:250px;height:100%;box-shadow:8px 0 22px #0000003d}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed{width:250px;transform:translate(-250px)}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .side-menu{width:250px;box-shadow:none}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .side-toggle-handle{right:-28px}:host(.sidemenu-mobile) .side-toggle-handle{top:0;right:0;padding:0;transform:none!important}:host(.sidemenu-mobile) .collapse-btn{top:8px;right:8px}:host(.sidemenu-mobile) .user-profile{margin-top:40px}:host(.sidemenu-mobile) .user-profile .avatar{width:48px;height:48px}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .user-profile{max-height:0;padding:0;margin:0;opacity:0;overflow:hidden;border-bottom:0}@media(prefers-reduced-motion:reduce){:host,.left-wrap.sidemenu,.side-menu,.user-profile,.user-profile .avatar,.side-toggle-handle,.side-toggle-handle span{transition:none}.side-menu ul[nz-menu]{scroll-behavior:auto}}.app-version-footer{flex-shrink:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.15);color:#ffffffa6;font-size:11px;line-height:1.4;text-align:center}.app-version-footer__item{display:flex;flex-direction:column;min-width:0}.app-version-footer__label{font-size:10px;opacity:.7}.app-version-footer__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-version-footer__release{grid-column:1 / -1}.pagination-check{position:absolute;top:50%;right:42px;transform:translateY(-50%)}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
14761
- }], ctorParameters: () => [{ type: i1$5.NzI18nService }, { type: MobileKeycloakService }, { type: Couchdb }, { type: i7.OAuthService }, { type: i1$2.Platform }, { type: RequestService }, { type: UtilityService }, { type: i1$4.DialogService }, { type: NotificationService }, { type: i0.Injector }], propDecorators: { design: [{
15396
+ ], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\r\n - new: the foot of the menu (appSettings.menu.style footer): language buttons, document links, version -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new 2026-11-09: the Designer's entries carry data-vl-page too - a right click in the preview finds its entry (worklist 25)\r\n - new: the user's actions (the sign-out) carry data-vl-action - the tests' step signOut finds the sign-out by it -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - new: a menu entry that opens a page carries data-vl-page (its folder under pages/) - the same in every language,\r\n tests find an entry by it, not by its translated caption -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\r\n - change: built like the app: the user's place at the top with the sign-out (the logout entry), folders start\r\n closed, own entries show their grip, the app's own Setting entries are paler\r\n - change: no own edit row - a click on the menu's free space chooses it; \"+\" (hover text) adds an entry, a\r\n folder's \"+\" adds into it; the menu folds with the app's handle and every folder opens and closes\r\n - fix: entries indented by their level like the app (all stood at 24px); a sign-out entry without caption shows\r\n \"Logout\" on the canvas (it was an empty line)\r\n - fix: the canvas menu fills its area - the area's width (20% on the canvas) shrank it a second time to 50px -->\r\n<!-- Shuaib, 2026-10-30\r\n - new: recursive design menu shows saved and generated entries with path-based handles; navigation is inert.\r\n Generated settings are selectable, not draggable/deletable; the editor changes them through Main settings. -->\r\n@if (design) {\r\n<div class=\"vl-d-root vl-d-item\" [ngClass]=\"menuClasses(menuLayout?.style)\" [ngStyle]=\"designRootStyle()\"\r\n [class.vl-d-item--selected]=\"designMenuSelected()\" [style.width]=\"designCollapsed ? 'fit-content' : null\" (click)=\"selectDesignMenu()\">\r\n <!-- the same fold handle as the app; a click on the menu's free space chooses the menu, \"+\" adds an entry -->\r\n <div class=\"side-toggle-handle\" [class.collapsed]=\"designCollapsed\" (click)=\"$event.stopPropagation(); designCollapsed = !designCollapsed\">\r\n <span nz-icon [nzType]=\"designCollapsed ? 'caret-right' : 'caret-left'\"></span>\r\n </div>\r\n <!-- where the app shows the signed-in user and the sign-out: a placeholder; its sign-out symbol is the menu's\r\n logout entry (the app shows no logout line in the menu) -->\r\n @if (designSignIn()) {\r\n <div class=\"user-profile vl-menu-design-user\" [class.collapsed]=\"designCollapsed\">\r\n <span class=\"avatar vl-menu-design-avatar\" nz-icon nzType=\"user\"></span>\r\n @if (!designCollapsed) {\r\n <div class=\"details\">\r\n <div class=\"name\">{{ dt.userName }}</div>\r\n @if (designLogoutPath(); as path) {\r\n <button type=\"button\" class=\"vl-menu-design-logout\" [title]=\"menuText(designNode(path))\" (click)=\"selectDesignEntry(path, $event)\">\r\n <span nz-icon nzType=\"logout\"></span></button>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n <ul nz-menu nzMode=\"inline\" nzTheme=\"dark\" [nzInlineCollapsed]=\"designCollapsed\" cdkDropList [id]=\"designListId([])\"\r\n [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designListIds()\" (cdkDropListDropped)=\"designEntryDropped($event, [])\">\r\n <ng-container *ngTemplateOutlet=\"designEntries; context: {$implicit: designMenu, parent: []}\"></ng-container>\r\n<ng-template #designEntries let-items let-parent=\"parent\">\r\n @for (item of items; track $index; let index = $index) {\r\n @if (menuAction(item) === 'logout') {\r\n <!-- shown as the sign-out of the user above, like the app -->\r\n } @else if (item.submenu) {\r\n <li nz-submenu [nzOpen]=\"designOpen(designPath(parent, index))\" [class.vl-menu-design-generated]=\"!designEditable(designPath(parent, index))\" (nzOpenChange)=\"designFold(designPath(parent, index), $event)\"\r\n [nzTitle]=\"designTitle\" [nzPaddingLeft]=\"designIndent(parent)\"\r\n cdkDrag [cdkDragDisabled]=\"!designEditable(designPath(parent, index))\"\r\n [cdkDragData]=\"{vlDesign: 'menuEntry', path: designPath(parent, index)}\">\r\n <ul cdkDropList [id]=\"designListId(designPath(parent, index))\" [cdkDropListData]=\"designPath(parent, index)\"\r\n [cdkDropListDisabled]=\"!designEditable(designPath(parent, index))\" [cdkDropListConnectedTo]=\"designListIds()\"\r\n (cdkDropListDropped)=\"designEntryDropped($event, designPath(parent, index))\">\r\n <ng-container *ngTemplateOutlet=\"designEntries; context: {$implicit: item.submenu, parent: designPath(parent, index)}\"></ng-container>\r\n </ul>\r\n </li>\r\n } @else {\r\n <li nz-menu-item class=\"vl-d-item\" [nzPaddingLeft]=\"designIndent(parent)\" [class.vl-menu-design-generated]=\"!designEditable(designPath(parent, index))\" [class.vl-d-item--selected]=\"designSelected(designPath(parent, index))\"\r\n [class.vl-d-hidden]=\"item?.option?.visible === false\" cdkDrag\r\n [cdkDragDisabled]=\"!designEditable(designPath(parent, index))\"\r\n [cdkDragData]=\"{vlDesign: 'menuEntry', path: designPath(parent, index)}\"\r\n (click)=\"selectDesignEntry(designPath(parent, index), $event)\" [attr.data-vl-page]=\"vlPage(item)\">\r\n <ng-container *ngTemplateOutlet=\"designLabel\"></ng-container>\r\n </li>\r\n }\r\n <ng-template #designTitle>\r\n <span class=\"vl-d-item\" [class.vl-d-item--selected]=\"designSelected(designPath(parent, index))\"\r\n [class.vl-d-hidden]=\"item?.option?.visible === false\" (click)=\"selectDesignEntry(designPath(parent, index), $event)\">\r\n <ng-container *ngTemplateOutlet=\"designLabel\"></ng-container>\r\n </span>\r\n </ng-template>\r\n <ng-template #designLabel>\r\n @if (designEditable(designPath(parent, index))) { <span class=\"vl-menu-design-grip\" aria-hidden=\"true\">\u22EE\u22EE</span> }\r\n <span *ngIf=\"item.icon\" nz-icon [nzType]=\"item.icon\"></span>\r\n <span [ngClass]=\"menuClasses(item?.label?.style)\" [ngStyle]=\"menuStyle(item?.label?.style)\">{{ menuText(item) }}</span>\r\n @if (designEditable(designPath(parent, index))) {\r\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"item.submenu ? ['drag', 'add', 'edit', 'delete'] : ['drag', 'edit', 'delete']\"\r\n [titles]=\"{drag: dt.dragField, add: dt.addMenuChild, edit: dt.edit, delete: dt.delete}\"\r\n (act)=\"designEntryAction($event, designPath(parent, index))\"></vl-design-bar>\r\n }\r\n </ng-template>\r\n }\r\n</ng-template>\r\n </ul>\r\n <!-- \"+\" at the end of the menu: a new entry at the top level (hover text) -->\r\n <button type=\"button\" class=\"vl-menu-design-add\" [title]=\"dt.addMenuEntry\" [attr.aria-label]=\"dt.addMenuEntry\"\r\n (click)=\"$event.stopPropagation(); designAdd([])\"><i class=\"pi pi-plus\" aria-hidden=\"true\"></i></button>\r\n</div>\r\n} @else {\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\r\n - change: an entry's visibility by itemHidden (sign-in and option.role); the name line only for a name from the token -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-20\r\n - new: a fourth footer row \"App\" with the export of the app (appVersionInfo.appRelease, issue #57) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - new: the active language has a check mark, like the active pagination type\r\n - fix: all check marks (pagination, language) stand in one column at the right edge; the\r\n pagination marks followed their caption at a fixed distance and landed elsewhere on iOS\r\n - change: the version footer has three columns - version, build (source commit) and build\r\n number (appBuildNumber), the three values build.sh and the web Docker build produce -->\r\n<!-- Shuaib 2026-09-24\r\n - change: sign-in visibility checks now include jwtToken alongside keycloak and oktaAuth. -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\r\n - new: a @contract comment on the option key, singular since 2026-09-16, and on the sign-in\r\n branches, which know keycloak and oktaAuth but not jwtToken -->\r\n<div class=\"left-wrap sidemenu\" [class.collapsed]=\"isCollapsed\"\r\n [ngStyle]=\"{ 'z-index': !isCollapsed && isMobile ? 999999 : 'auto' }\"\r\n #sideMenu>\r\n <!-- Move toggle button OUTSIDE menu container -->\r\n <div class=\"side-toggle-handle\" id=\"toggle-id\" (click)=\"toggleCollapsed()\"\r\n [class.collapsed]=\"isCollapsed\">\r\n <span id=\"toggle-icon\" nz-icon\r\n [nzType]=\"isCollapsed ? 'caret-right' : 'caret-left'\"></span>\r\n </div>\r\n <div class=\"side-menu\" id=\"sidemenuwrap\"\r\n [ngStyle]=\"{ width: (isMobile && isCollapsed) ? '1px' : isCollapsed ? '60px' : '' }\">\r\n <!-- user content -->\r\n <ng-container *ngIf=\"loginedUserInfo && loginedUserInfo?.name\">\r\n <div class=\"user-profile\" [class.collapsed]=\"isCollapsed\">\r\n <img class=\"avatar\" [src]=\"loginedUserInfo?.image\" alt=\"User\" />\r\n <div [class]=\"isMobile ? '' : 'details'\" *ngIf=\"!isCollapsed\">\r\n <div class=\"name\" *ngIf=\"loginedUserInfo.nameFromToken !== false\">{{ loginedUserInfo.name }}</div>\r\n <div class=\"email\">{{ loginedUserInfo?.email }}</div>\r\n <div class=\"actions\" *ngIf=\"loginedUserInfo?.actions?.length\">\r\n <button *ngFor=\"let action of loginedUserInfo?.actions\" nz-button\r\n nzType=\"link\" nzSize=\"small\" [attr.data-vl-action]=\"menuAction(action) || null\"\r\n (click)=\"invokeNavigate(action)\">\r\n <span>{{ action?.label?.caption }}</span>\r\n <span nz-icon [nzType]=\"action.icon\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <!-- @contract decision: this container reads option (singular), like every other one\r\n reality: it read options (plural) until 2026-09-16. A menu file written for the old\r\n spelling is ignored without an error.\r\n\r\n @contract decision: sign-in visibility supports keycloak, oktaAuth and jwtToken.\r\n A JWT project uses the decoded user's login state, like the other providers.\r\n seen: the login type comparisons in the lines below -->\r\n <!-- dynamic menu -->\r\n <ul nz-menu nzMode=\"inline\" nzTheme=\"dark\"\r\n [nzInlineCollapsed]=\"isCollapsed\">\r\n <ng-container *ngFor=\"let item of menuItems\">\r\n <ng-container\r\n *ngIf=\"!item.submenu && menuAction(item) !== 'logout'; else submenu\">\r\n <span\r\n [class]=\"itemHidden(item) ? 'hidden' : ''\">\r\n <li (click)=\"invokeNavigate(item)\" nz-menu-item nz-tooltip [attr.data-vl-page]=\"vlPage(item)\"\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? item?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"item.icon\"></span>\r\n <span>{{ item?.label?.caption }}</span>\r\n </li>\r\n </span>\r\n </ng-container>\r\n <ng-template #submenu>\r\n <span\r\n [class]=\"itemHidden(item, true) ? 'hidden' : ''\">\r\n <li nz-submenu *ngIf=\"menuAction(item) !== 'logout'\"\r\n [nzTitle]=\"item?.label?.caption\"\r\n [nzIcon]=\"item.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let child of item.submenu\">\r\n <li (click)=\"invokeNavigate(child)\" *ngIf=\"!child.submenu\" [attr.data-vl-page]=\"vlPage(child)\"\r\n nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? child?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"child?.icon\"></span>\r\n <span>{{ child?.label?.caption }}</span>\r\n </li>\r\n <ng-container *ngIf=\"child.submenu\">\r\n <li nz-submenu [nzTitle]=\"child?.label?.caption\"\r\n [nzIcon]=\"child?.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let subChild of child.submenu\">\r\n <li (click)=\"invokeNavigate(subChild)\" nz-menu-item [attr.data-vl-page]=\"vlPage(subChild)\">\r\n <ng-container\r\n *ngIf=\"subChild?.option?.setImageUrl; else antIcon\">\r\n <img *ngIf=\"isUrl(subChild?.icon)\"\r\n [src]=\"subChild?.icon\" alt=\"icon\"\r\n style=\"width: 16px; height: 16px; margin-right: 8px;\" />\r\n </ng-container>\r\n <ng-template #antIcon>\r\n <span nz-icon [nzType]=\"subChild?.icon\"></span>\r\n </ng-template>\r\n <span>{{ subChild?.label?.caption }}</span>\r\n @if(subChild?.option?.numberedPagination &&\r\n !scrollPagination){\r\n <span nz-icon\r\n nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n @if(subChild?.option?.scrollPagination &&\r\n scrollPagination){\r\n <span nz-icon\r\n nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n @if(subChild?.option?.changeLang &&\r\n subChild?.option?.data_url === activeLanguage){\r\n <span nz-icon nzType=\"check\" nzTheme=\"outline\"\r\n class=\"pagination-check\">\r\n </span>\r\n }\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </span>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <!-- separator -->\r\n <li *ngIf=\"settingMenu.submenu\" class=\"menu-separator\"></li>\r\n\r\n <!-- settings menu -->\r\n <ng-container *ngIf=\"!settingMenu.submenu; else settingSubmenu\"\r\n style=\"position: absolute; bottom: 0;\">\r\n <li (click)=\"invokeNavigate(settingMenu)\" nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? settingMenu?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"settingMenu.icon\"></span>\r\n <span>{{ settingMenu?.label?.caption }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #settingSubmenu>\r\n <li nz-submenu [nzTitle]=\"settingMenu?.label?.caption\"\r\n [nzIcon]=\"settingMenu.icon\">\r\n <ul>\r\n <ng-container *ngFor=\"let child of settingMenu.submenu\">\r\n <li (click)=\"invokeNavigate(child)\" *ngIf=\"!child.submenu\"\r\n nz-menu-item nz-tooltip\r\n nzTooltipPlacement=\"right\"\r\n [nzTooltipTitle]=\"isCollapsed && !isMobile ? child?.label?.caption : ''\">\r\n <span nz-icon [nzType]=\"child?.icon\"></span>\r\n <span>{{ child?.label?.caption }}</span>\r\n </li>\r\n <ng-container *ngIf=\"child.submenu\">\r\n <li nz-submenu [nzTitle]=\"child?.label?.caption\"\r\n [nzIcon]=\"child?.icon\">\r\n <ul style=\"width: 260px;\">\r\n <ng-container\r\n *ngFor=\"let subChild of child.submenu; let i = index\">\r\n <li (click)=\"invokeNavigate(subChild, child)\"\r\n nz-menu-item>\r\n <span\r\n [class]=\"child?.label?.caption === 'Languages' ? '' : 'menu-row'\">\r\n <ng-container\r\n *ngIf=\"subChild?.option?.changeProject; else antIcon\">\r\n <img [src]=\"subChild?.icon\" alt=\"icon\"\r\n style=\"width: 16px; height: 16px; margin-right: 8px;\" />\r\n </ng-container>\r\n <ng-template #antIcon>\r\n <span nz-icon [nzType]=\"subChild?.icon\"></span>\r\n </ng-template>\r\n <span>{{ subChild?.label?.caption }}</span>\r\n <!-- Delete icon (prevent click bubbling) -->\r\n <span *ngIf=\"child?.label?.caption != 'Languages'\"\r\n nz-icon nzType=\"delete\" class=\"delete-icon\"\r\n style=\"padding-left: 5%;\"\r\n (click)=\"deleteMenuItem(subChild, i, $event)\"></span>\r\n </span>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-template>\r\n </ul>\r\n @if (!isCollapsed && settingsFooter) {\r\n <div class=\"vl-menu-foot\">\r\n @if (settingsFooter.languages.length) {\r\n <div class=\"vl-menu-foot__langs\" role=\"group\" [attr.aria-label]=\"lastMenuTranslations?.['Languages'] || 'Languages'\">\r\n <span class=\"vl-menu-foot__label\">{{ lastMenuTranslations?.['Languages'] || 'Languages' }}</span>\r\n @for (lang of settingsFooter.languages; track lang.code) {\r\n <button type=\"button\" class=\"vl-menu-foot__lang\" [class.vl-menu-foot__lang--on]=\"currentLanguageCode() === lang.code\"\r\n [attr.aria-pressed]=\"currentLanguageCode() === lang.code\" [title]=\"lang.name\" (click)=\"footerTap(lang.option, lang.name)\">{{ lang.code.toUpperCase() }}</button>\r\n }\r\n </div>\r\n }\r\n @if (settingsFooter.documents.length) {\r\n <div class=\"vl-menu-foot__docs\">\r\n @for (doc of settingsFooter.documents; track doc.name) {\r\n <button type=\"button\" class=\"vl-menu-foot__doc\" (click)=\"footerTap(doc.option, lastMenuTranslations?.[doc.caption] || doc.caption)\">{{ lastMenuTranslations?.[doc.caption] || doc.caption }}</button>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n @if (!isCollapsed && appVersionInfo?.appVersion && (!settingsFooter || settingsFooter.version)) {\r\n <div class=\"app-version-footer\">\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Version</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appVersion }}</span>\r\n </div>\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Build</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appBuild || '-' }}</span>\r\n </div>\r\n <div class=\"app-version-footer__item\">\r\n <span class=\"app-version-footer__label\">Build No.</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appBuildNumber || '-' }}</span>\r\n </div>\r\n <!-- the app's own export (issue #57): \"Export 2 \u00B7 41908dd \u00B7 20.10.2026\", only when it has one -->\r\n @if (appVersionInfo.appRelease) {\r\n <div class=\"app-version-footer__item app-version-footer__release\" [title]=\"appVersionInfo.appRelease\">\r\n <span class=\"app-version-footer__label\">App</span>\r\n <span class=\"app-version-footer__value\">{{ appVersionInfo.appRelease }}</span>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24 - a text document of Terms & Conditions -->\r\n@if (termsDocument) {\r\n<vl-terms-dialog [documents]=\"termsDocument\" [translations]=\"lastMenuTranslations\" (closed)=\"termsDocument = null\"></vl-terms-dialog>\r\n}\r\n\r\n}\r\n", styles: [":host(.vl-menu-design){width:100%;max-width:100%;min-width:0;height:100%}:host(.vl-menu-design)>.vl-d-root{min-height:100%;background:#001529;display:flow-root}:host(.vl-menu-design) ::ng-deep li .vl-d-bar{position:static;margin-left:auto;flex:none;transform:none;display:none}:host(.vl-menu-design) ::ng-deep .ant-menu-title-content,:host(.vl-menu-design) ::ng-deep span.vl-d-item{display:flex;align-items:center;gap:4px;min-width:0;width:100%;outline:none}:host(.vl-menu-design) ::ng-deep .ant-menu-title-content>span:not(.vl-menu-design-grip):not([nz-icon]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}:host(.vl-menu-design) ::ng-deep li{position:relative}:host(.vl-menu-design) ::ng-deep li.ant-menu-item:hover .vl-d-bar,:host(.vl-menu-design) ::ng-deep .ant-menu-submenu-title:hover .vl-d-bar,:host(.vl-menu-design) ::ng-deep .vl-d-item--selected>.ant-menu-title-content .vl-d-bar{display:inline-flex;opacity:1;visibility:visible;transform:none}:host(.vl-menu-design) ::ng-deep li .vl-d-bar{zoom:.8}:host(.vl-menu-design) ::ng-deep .ant-menu-submenu-title{position:relative}:host(.vl-menu-design) .vl-menu-design-add{display:flex;align-items:center;justify-content:center;width:100%;height:40px;margin:0;border:1px dashed rgba(255,255,255,.35);border-radius:var(--vl-shape-button-radius, 6px);background:#001529;color:#ffffffbf;cursor:pointer}:host(.vl-menu-design) .vl-menu-design-add:hover{color:#fff;border-color:#fff}:host(.vl-menu-design) .vl-menu-design-generated{opacity:.6}:host(.vl-menu-design) .vl-menu-design-grip{color:#ffffff73;margin-right:6px;letter-spacing:-3px;cursor:grab}:host(.vl-menu-design) .vl-menu-design-user{background:#001529}:host(.vl-menu-design) .vl-menu-design-avatar{display:inline-flex;align-items:center;justify-content:center;font-size:26px;color:#fff;background:#ffffff1f}:host(.vl-menu-design) .vl-menu-design-logout{margin-top:4px;border:0;background:none;color:#fff;cursor:pointer;padding:0}:host{position:relative;display:block;flex:0 0 auto;width:250px;height:100%;min-height:0;overflow:visible;transition:width .3s ease}.left-wrap.sidemenu{position:relative;width:250px;height:100%;min-height:0;overflow:visible;transition:width .3s ease,transform .3s ease}.side-menu{position:relative;display:flex;flex-direction:column;width:250px;height:100%;min-height:0;color:var(--vl-menu-text, #ffffff);background-color:var(--vl-menu-background, #0d1b2a);overflow:hidden;transition:width .3s ease,box-shadow .3s ease}:host:has(.left-wrap.sidemenu.collapsed){width:64px}.left-wrap.sidemenu.collapsed,.left-wrap.sidemenu.collapsed .side-menu{width:64px}.menu-separator{flex:0 0 auto;height:1px;margin:15px 12px 6px;background-color:var(--vl-menu-divider, rgba(255, 255, 255, .15));border:0;list-style:none}.user-profile{flex:0 0 auto;padding:20px 10px 16px;margin-top:40px;text-align:center;border-bottom:1px solid var(--vl-menu-divider, rgba(255, 255, 255, .1));overflow:hidden;transition:padding .25s ease,margin .25s ease,opacity .25s ease,max-height .25s ease}.user-profile .avatar{display:block;width:64px;height:64px;margin:0 auto 8px;object-fit:cover;border:2px solid var(--vl-menu-text, #ffffff);border-radius:50%;transition:width .25s ease,height .25s ease,margin .25s ease}.user-profile .details{min-width:0;overflow:hidden;transition:opacity .2s ease}.user-profile .name{color:var(--vl-menu-text, #ffffff);font-size:14px;font-weight:600;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-profile .email{margin:2px 0 8px;color:var(--vl-menu-text-muted, #aaaaaa);font-size:12px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word}.user-profile .actions{display:flex;align-items:center;justify-content:center;gap:6px}.user-profile .actions button{margin:0;color:var(--vl-menu-text, #ffffff)}.left-wrap.sidemenu.collapsed .user-profile{padding:12px 8px}.left-wrap.sidemenu.collapsed .user-profile .avatar{width:40px;height:40px;margin-bottom:0}.left-wrap.sidemenu.collapsed .user-profile .details,.left-wrap.sidemenu.collapsed .user-profile .name,.left-wrap.sidemenu.collapsed .user-profile .email,.left-wrap.sidemenu.collapsed .user-profile .actions{display:none}.side-menu ul[nz-menu]{flex:1 1 auto;width:100%;min-height:0;margin:0;padding:4px 0 8px;overflow-x:hidden;overflow-y:auto;background-color:transparent;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent;scroll-behavior:smooth}.side-menu ul[nz-menu]::-webkit-scrollbar{width:6px}.side-menu ul[nz-menu]::-webkit-scrollbar-track{background:transparent}.side-menu ul[nz-menu]::-webkit-scrollbar-thumb{background-color:#ffffff47;border-radius:999px}.side-menu ul[nz-menu]::-webkit-scrollbar-thumb:hover{background-color:#ffffff6b}.menu-row{display:flex;align-items:center;width:100%;min-width:0}.menu-text{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.delete-icon{flex:0 0 auto;margin-left:auto;color:var(--vl-menu-text-muted, rgba(255, 255, 255, .7));cursor:pointer;transition:color .18s ease,transform .18s ease}.delete-icon:hover{color:var(--vl-color-danger, #ff7875);transform:scale(1.08)}.projects{position:static;flex:0 0 auto;width:100%;margin-top:auto;background-color:var(--vl-menu-background, #0d1b2a)}.side-toggle-handle{position:absolute;top:24px;right:-14px;z-index:10000;display:flex;align-items:center;justify-content:center;width:28px;height:48px;padding:0;color:var(--vl-menu-text, #ffffff);background-color:var(--vl-menu-background, #0d1b2a);border:0;border-radius:0 6px 6px 0;box-shadow:2px 0 6px #00000040;cursor:pointer;transform:translateY(-50%);transition:background-color .2s ease,box-shadow .2s ease}.side-toggle-handle:hover{background-color:var(--vl-menu-hover, #142a40);box-shadow:3px 0 9px #0000004d}.side-toggle-handle:focus-visible{outline:3px solid rgba(24,144,255,.45);outline-offset:2px}.side-toggle-handle span{color:var(--vl-menu-text, #ffffff);font-size:14px;line-height:1;transition:transform .25s ease}.collapse-btn{position:absolute;top:8px;right:8px;z-index:10001}:host(:not(.sidemenu-mobile)) .left-wrap.sidemenu.collapsed:hover{transform:translate(0)}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed{width:64px!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title{display:flex!important;align-items:center!important;justify-content:center!important;width:45px!important;height:32px!important;margin-inline:0!important;padding-inline:0!important;overflow:hidden!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-title-content,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .menu-text,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .delete-icon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-submenu-arrow{display:none!important;width:0!important;min-width:0!important;max-width:0!important;margin:0!important;padding:0!important;visibility:hidden!important;overflow:hidden!important;text-overflow:clip!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-item>.anticon,:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title>.anticon{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;width:auto!important;min-width:18px;margin:0!important;padding:0!important;color:inherit;font-size:18px;line-height:1;visibility:visible!important}:host(:not(.sidemenu-mobile)) ::ng-deep .ant-menu.ant-menu-inline-collapsed .menu-row{display:contents}:host(.sidemenu-mobile){position:absolute;top:0;bottom:0;left:0;z-index:9999;width:250px;height:100%}:host(.sidemenu-mobile):has(.left-wrap.sidemenu.collapsed){width:0}:host(.sidemenu-mobile) .left-wrap.sidemenu{width:250px;height:100%}:host(.sidemenu-mobile) .side-menu,:host(.sidemenu-mobile) .side-menu.open{width:250px;height:100%;box-shadow:8px 0 22px #0000003d}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed{width:250px;transform:translate(-250px)}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .side-menu{width:250px;box-shadow:none}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .side-toggle-handle{right:-28px}:host(.sidemenu-mobile) .side-toggle-handle{top:0;right:0;padding:0;transform:none!important}:host(.sidemenu-mobile) .collapse-btn{top:8px;right:8px}:host(.sidemenu-mobile) .user-profile{margin-top:40px}:host(.sidemenu-mobile) .user-profile .avatar{width:48px;height:48px}:host(.sidemenu-mobile) .left-wrap.sidemenu.collapsed .user-profile{max-height:0;padding:0;margin:0;opacity:0;overflow:hidden;border-bottom:0}@media(prefers-reduced-motion:reduce){:host,.left-wrap.sidemenu,.side-menu,.user-profile,.user-profile .avatar,.side-toggle-handle,.side-toggle-handle span{transition:none}.side-menu ul[nz-menu]{scroll-behavior:auto}}.app-version-footer{flex-shrink:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px 12px;border-top:1px solid var(--vl-menu-divider, rgba(255, 255, 255, .15));color:var(--vl-menu-text-muted, rgba(255, 255, 255, .65));font-size:11px;line-height:1.4;text-align:center}.app-version-footer__item{display:flex;flex-direction:column;min-width:0}.app-version-footer__label{font-size:10px;opacity:.7}.app-version-footer__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-version-footer__release{grid-column:1 / -1}.pagination-check{position:absolute;top:50%;right:42px;transform:translateY(-50%)}.vl-menu-foot{flex-shrink:0;display:flex;flex-direction:column;gap:14px;margin-top:auto;padding:14px 16px;border-top:1px solid var(--vl-menu-divider, rgba(255, 255, 255, .15));color:var(--vl-menu-text, #fff)}.vl-menu-foot__langs{display:flex;align-items:center;gap:8px}.vl-menu-foot__label{flex:1;font-size:13px;color:var(--vl-menu-text-muted, rgba(255, 255, 255, .7))}.vl-menu-foot__lang{min-width:44px;height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--vl-menu-divider, rgba(255, 255, 255, .3));background:transparent;color:var(--vl-menu-text, #fff);font-weight:600;cursor:pointer}.vl-menu-foot__lang--on{background:var(--vl-color-primary, #2563eb);border-color:var(--vl-color-primary, #2563eb);color:var(--vl-menu-background, #111)}.vl-menu-foot__docs{display:flex;flex-wrap:wrap;gap:6px 18px}.vl-menu-foot__doc{border:0;background:none;padding:4px 0;min-height:32px;color:var(--vl-menu-text-muted, rgba(255, 255, 255, .8));font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}:host ::ng-deep .ant-menu.ant-menu-dark,:host ::ng-deep .ant-menu-dark .ant-menu-sub,:host ::ng-deep .ant-menu-dark .ant-menu-inline.ant-menu-sub{background:var(--vl-menu-background, #001529)}:host ::ng-deep .ant-menu-dark .ant-menu-item,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-title,:host ::ng-deep .ant-menu-dark .ant-menu-item .anticon,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-title .anticon,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-arrow{color:var(--vl-menu-text, rgba(255, 255, 255, .65))}:host ::ng-deep .ant-menu-dark .ant-menu-submenu-arrow:before,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-arrow:after{background:var(--vl-menu-text, #fff)}:host ::ng-deep .ant-menu-dark .ant-menu-item:hover,:host ::ng-deep .ant-menu-dark .ant-menu-submenu-title:hover{background:var(--vl-menu-hover, transparent);color:var(--vl-menu-text, #fff)}:host ::ng-deep .ant-menu-dark .ant-menu-item-selected,:host ::ng-deep .ant-menu-dark.ant-menu-inline .ant-menu-item-selected{background:var(--vl-color-primary, #1890ff);color:var(--vl-color-on-primary, #fff)}:host ::ng-deep .ant-menu-dark .ant-menu-item-selected .anticon{color:var(--vl-color-on-primary, #fff)}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
15397
+ }], ctorParameters: () => [{ type: i1$6.NzI18nService }, { type: MobileKeycloakService }, { type: Couchdb }, { type: i7.OAuthService }, { type: i1$2.Platform }, { type: RequestService }, { type: UtilityService }, { type: i1$5.DialogService }, { type: NotificationService }, { type: i0.Injector }], propDecorators: { design: [{
14762
15398
  type: Input
14763
15399
  }], menuLayout: [{
14764
15400
  type: Input
@@ -14960,6 +15596,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
14960
15596
  }]
14961
15597
  }], ctorParameters: () => [{ type: i1$2.Platform }] });
14962
15598
 
15599
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-06
15600
+ // - fix: the redirect address is read as the project files name it (redirectUri), the old redirectUrl still works
14963
15601
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-14
14964
15602
  // - change: login, refresh and logout run through MobileOidcService - the same OpenID Connect flow
14965
15603
  // as Keycloak; the endpoints come from the issuer's discovery document instead of login.mobile.
@@ -14994,7 +15632,7 @@ class MobileOktaService {
14994
15632
  return {
14995
15633
  issuer,
14996
15634
  clientId: mobile.clientId,
14997
- redirectUri: mobile.redirectUrl,
15635
+ redirectUri: mobile.redirectUri || mobile.redirectUrl,
14998
15636
  scope: mobile.scope,
14999
15637
  // Always: the refresh token keeps the sign-in beyond the access token's lifetime.
15000
15638
  offlineAccess: true
@@ -15206,11 +15844,11 @@ class CustomKeyboardComponent {
15206
15844
  this.symbols.update(value => !value);
15207
15845
  }
15208
15846
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CustomKeyboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15209
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CustomKeyboardComponent, isStandalone: true, selector: "vl-custom-keyboard", ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: a paste key for text fields (OFFENE-PUNKTE 18) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - new: a search field gets a Search key instead of Done (the same place and look) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: an AM/PM key on the keyboard of a 12-hour time field (#166 step 4.9) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: a new-line key on the text keyboard of a multi-line field (textArea, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - change: the space key has no label (it said \"Space\" in every language); a label per language\r\n would have to be maintained for each new project language -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - new: a ?123 / ABC key switches string keyboards between letters and the symbol page -->\r\n@if (keyboard.activeSession(); as session) {\r\n<section class=\"custom-keyboard\" data-vl-custom-keyboard [class.custom-keyboard--numeric]=\"\r\n session.type === 'numeric' ||\r\n session.type === 'date' ||\r\n session.type === 'time'\" [class.custom-keyboard--opening]=\"keyboard.interactionBlocked()\"\r\n [attr.aria-label]=\"session.type + ' keyboard'\" (pointerdown)=\"$event.preventDefault()\">\r\n\r\n @for (row of rows; track $index) {\r\n <div class=\"custom-keyboard__row\">\r\n @for (key of row; track key) {\r\n <button type=\"button\" class=\"custom-keyboard__key\" (click)=\"enterKey(key)\">\r\n {{ key }}\r\n </button>\r\n }\r\n </div>\r\n }\r\n\r\n <!-- One mobile-style action row for every keyboard type -->\r\n <div class=\"custom-keyboard__actions\" [class.custom-keyboard__actions--compact]=\"\r\n session.type !== 'alpha' &&\r\n session.type !== 'string'\r\n \" [class.custom-keyboard__actions--symbols]=\"hasSymbolPage\">\r\n\r\n @if (\r\n session.type === 'alpha' ||\r\n session.type === 'string'\r\n ) {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__shift\" [class.active]=\"uppercase()\"\r\n [disabled]=\"symbols()\" aria-label=\"Change letter case\" title=\"Shift\" (click)=\"toggleCase()\">\r\n <i class=\"pi pi-arrow-up\"></i>\r\n </button>\r\n\r\n @if (hasSymbolPage) {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__page\"\r\n [attr.aria-label]=\"symbols() ? 'Letters' : 'Digits and symbols'\" (click)=\"toggleSymbols()\">\r\n {{ symbols() ? 'ABC' : '?123' }}\r\n </button>\r\n }\r\n\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__space\" aria-label=\"Space\" (click)=\"enterSpace()\">\r\n </button>\r\n\r\n @if (multiLine) {\r\n <!-- new line: only in a multi-line field (textArea), #166 step 4.4 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__newline\"\r\n aria-label=\"New line\" title=\"New line\" (click)=\"enterNewLine()\">\r\n <i class=\"pi pi-arrow-down-left\"></i>\r\n </button>\r\n }\r\n }\r\n\r\n @if (session.type === 'time' && keyboard.twelveHours(session.target)) {\r\n <!-- AM/PM: a time field typed with 12 hours (English), #166 step 4.9 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__meridiem\"\r\n aria-label=\"AM or PM\" title=\"AM/PM\" (click)=\"keyboard.toggleMeridiem()\">AM/PM</button>\r\n }\r\n\r\n @if (session.type === 'alpha' || session.type === 'string') {\r\n <!-- paste: the clipboard's text at the cursor (the field is read-only for the system keyboard), OFFENE-PUNKTE 18 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__paste\"\r\n aria-label=\"Paste\" title=\"Paste\" (click)=\"keyboard.paste()\">\r\n <i class=\"pi pi-clipboard\"></i>\r\n </button>\r\n }\r\n\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__delete\"\r\n aria-label=\"Delete previous character\" title=\"Delete\" (click)=\"keyboard.backspace()\">\r\n <i class=\"pi pi-delete-left\"></i>\r\n </button>\r\n\r\n <!-- the key at the bottom right, as set in the Designer (enterKey): Done, Search or Next - same place and look -->\r\n @switch (keyboard.enterKey()) {\r\n @case ('search') {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Search\"\r\n title=\"Search\" data-vl-key=\"search\" (click)=\"keyboard.submit()\">\r\n <i class=\"pi pi-search\"></i>\r\n </button>\r\n }\r\n @case ('next') {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Next\"\r\n title=\"Next\" data-vl-key=\"next\" (click)=\"keyboard.next()\">\r\n <i class=\"pi pi-arrow-right\"></i>\r\n </button>\r\n }\r\n @default {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Done\"\r\n title=\"Done\" data-vl-key=\"done\" (click)=\"keyboard.close()\">\r\n <i class=\"pi pi-check\"></i>\r\n </button>\r\n }\r\n }\r\n </div>\r\n</section>\r\n}\r\n", styles: [":host{display:contents}.custom-keyboard{position:fixed;right:0;bottom:0;left:0;z-index:200000;display:block;width:100%;max-height:min(52dvh,390px);padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));background:var(--vl-keyboard-background, var(--vl-page-background, #ffffff));box-shadow:0 -6px 20px #0f172a38;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;user-select:none;-webkit-user-select:none;touch-action:manipulation;-webkit-overflow-scrolling:touch}.custom-keyboard__row{display:flex;justify-content:center;gap:4px;width:100%;margin-bottom:6px}.custom-keyboard__key{display:flex;flex:1 1 0;width:auto;max-width:52px;min-width:0;height:42px;align-items:center;justify-content:center;padding:0;color:#111827;font-size:16px;font-weight:700;line-height:1;background:#fff;border:1px solid #d1d5db;border-radius:5px;box-shadow:0 1px 2px #0f172a47;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform 80ms ease,background-color 80ms ease}.custom-keyboard__key:active{background:#e6f4ff;transform:scale(.96)}.custom-keyboard--numeric .custom-keyboard__key{max-width:92px;height:46px;font-size:18px}.custom-keyboard__actions{display:grid;grid-template-columns:46px minmax(90px,1fr) 46px 46px 54px;grid-auto-flow:column;grid-auto-columns:46px;gap:6px;width:100%;margin-top:4px;padding:0 4px}.custom-keyboard__actions--compact{grid-template-columns:minmax(52px,1fr) minmax(52px,1fr)}.custom-keyboard__actions--symbols{grid-template-columns:46px 54px minmax(70px,1fr) 46px 46px 54px}.custom-keyboard__action-button{display:flex;width:100%;min-width:0;height:42px;align-items:center;justify-content:center;padding:0 8px;color:#172033;font-size:15px;font-weight:700;line-height:1;border:0;border-radius:6px;box-shadow:0 1px 2px #0f172a40;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform 80ms ease,background-color 80ms ease}.custom-keyboard__action-button i{font-size:17px;line-height:1;pointer-events:none}.custom-keyboard__action-button:active{transform:scale(.96)}.custom-keyboard__shift{color:#172033;background:#aeb6c2}.custom-keyboard__shift.active{color:#fff;background:#64748b}.custom-keyboard__space{color:#172033;background:#fff}.custom-keyboard__delete{color:#172033;background:#aeb6c2}.custom-keyboard__done{color:#fff;background:#1890ff}.custom-keyboard__page{color:#172033;font-size:14px;background:#aeb6c2}.custom-keyboard__shift:disabled{opacity:.45}.custom-keyboard__key:focus-visible,.custom-keyboard__action-button:focus-visible{outline:3px solid rgba(24,144,255,.35);outline-offset:1px}@media(max-height:650px){.custom-keyboard{max-height:58dvh;padding-top:6px}.custom-keyboard__row{gap:3px;margin-bottom:4px}.custom-keyboard__key{height:35px;font-size:14px}.custom-keyboard--numeric .custom-keyboard__key{height:38px;font-size:16px}.custom-keyboard__action-button{height:36px}}@media(max-width:360px){.custom-keyboard{padding-right:4px;padding-left:4px}.custom-keyboard__row{gap:3px}.custom-keyboard__key{font-size:14px}.custom-keyboard__actions{grid-template-columns:42px minmax(70px,1fr) 40px 42px 48px;grid-auto-columns:40px;gap:4px;padding-right:2px;padding-left:2px}.custom-keyboard__actions--compact{grid-template-columns:minmax(48px,1fr) minmax(48px,1fr)}.custom-keyboard__actions--symbols{grid-template-columns:40px 48px minmax(56px,1fr) 38px 40px 46px}}.custom-keyboard--opening .custom-keyboard__key,.custom-keyboard--opening .custom-keyboard__action-button{pointer-events:none}.custom-keyboard--opening{cursor:default}::ng-deep .p-overlay:has(.p-autocomplete-overlay),::ng-deep .p-overlay:has(.p-select-overlay){width:0!important}::ng-deep .p-autocomplete-overlay .p-autocomplete-option,::ng-deep .p-select-overlay .p-select-option{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}::ng-deep .p-autocomplete-overlay .p-autocomplete-list-container,::ng-deep .p-select-overlay .p-select-list-container{overflow-x:hidden!important}::ng-deep .vl-option-full-text{position:fixed;z-index:2147483000;transform:translateY(-100%);padding:8px 10px;border-radius:8px;background:#1f2328;color:#fff;font-size:14px;line-height:1.4;box-shadow:0 6px 18px #1f232840;pointer-events:none;white-space:normal}::ng-deep .p-datepicker-panel.model-datepicker-panel--docked,::ng-deep .model-datepicker-panel--docked{position:fixed!important;background:var(--vl-keyboard-background, var(--vl-page-background, #ffffff))!important;inset:auto 0 0!important;width:100%!important;min-width:100%!important;max-width:100%!important;max-height:min(52dvh,420px)!important;margin:0!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;overflow-y:auto!important;transform:none!important;border-radius:12px 12px 0 0!important;box-shadow:0 -6px 20px #0f172a38!important;box-sizing:border-box!important}::ng-deep .model-timepicker-panel.p-datepicker-panel:not(.model-datepicker-panel--docked){width:auto!important;min-width:0!important;padding:4px 8px!important;border-radius:8px!important}::ng-deep .model-timepicker-panel .p-datepicker-time-picker{gap:4px!important;padding:0!important;border:0!important}::ng-deep .model-timepicker-panel .p-datepicker-hour-picker,::ng-deep .model-timepicker-panel .p-datepicker-minute-picker{gap:0!important}::ng-deep .model-timepicker-panel .p-datepicker-hour-picker span,::ng-deep .model-timepicker-panel .p-datepicker-minute-picker span,::ng-deep .model-timepicker-panel .p-datepicker-separator{font-size:1rem!important;line-height:1.2!important}::ng-deep .model-timepicker-panel .p-datepicker-increment-button,::ng-deep .model-timepicker-panel .p-datepicker-decrement-button{width:2rem!important;height:1.75rem!important}::ng-deep body.vl-side-dock .model-datepicker-panel--docked{inset:0 0 0 auto!important;width:var(--vl-side-dock-width, 50vw)!important;min-width:0!important;max-width:var(--vl-side-dock-width, 50vw)!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding-top:env(safe-area-inset-top,0px)!important;padding-right:env(safe-area-inset-right,0px)!important;border-left:1px solid #e5e7eb!important;box-shadow:-6px 0 20px #0f172a2e!important}.custom-keyboard__key{height:clamp(26px,5.2dvh,42px)}.custom-keyboard--numeric .custom-keyboard__key{height:clamp(28px,5.6dvh,46px)}.custom-keyboard__action-button{height:clamp(28px,5.2dvh,42px)}.custom-keyboard__row{margin-bottom:clamp(3px,.8dvh,6px)}::ng-deep body.vl-side-dock .custom-keyboard{inset:0 0 0 auto;width:var(--vl-side-dock-width, 50vw);max-height:none;height:100dvh;display:flex;flex-direction:column;justify-content:flex-start;padding-top:env(safe-area-inset-top,0px);padding-right:max(6px,env(safe-area-inset-right,0px));box-shadow:-6px 0 20px #0f172a2e}.custom-keyboard,::ng-deep .model-datepicker-panel--docked{border-top-left-radius:var(--p-dialog-border-radius, 12px)!important;border-top-right-radius:var(--p-dialog-border-radius, 12px)!important;overflow:hidden}::ng-deep .model-datepicker-panel--docked .p-datepicker-header{padding-top:clamp(2px,.6dvh,8px)!important;padding-bottom:clamp(2px,.6dvh,8px)!important}::ng-deep .model-datepicker-panel--docked .p-datepicker-day-cell,::ng-deep .model-datepicker-panel--docked .p-datepicker-weekday-cell{padding:1px!important}::ng-deep .model-datepicker-panel--docked .p-datepicker-day{width:var(--vl-day-size, clamp(28px, 4.4dvh, 40px))!important;height:var(--vl-day-size, clamp(28px, 4.4dvh, 40px))!important}::ng-deep body.vl-side-dock .model-datepicker-panel--docked,::ng-deep body.vl-side-dock .custom-keyboard{top:var(--vl-side-dock-top, max(8px, env(safe-area-inset-top, 0px)))!important;bottom:var(--vl-side-dock-bottom, max(8px, env(safe-area-inset-bottom, 0px)))!important;right:max(8px,env(safe-area-inset-right,0px))!important;left:auto!important;width:calc(var(--vl-side-dock-width, 50vw) - max(8px,env(safe-area-inset-right,0px)))!important;max-width:none!important;height:auto!important;max-height:none!important;padding-top:6px!important;padding-right:6px!important;border-radius:var(--p-dialog-border-radius, 12px)!important;overflow:hidden!important;box-shadow:var(--p-dialog-shadow, 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1))!important}::ng-deep body.vl-custom-keyboard-open .custom-keyboard,::ng-deep body.vl-custom-keyboard-open .model-datepicker-panel--docked{left:var(--vl-dock-left, 0px)!important;right:var(--vl-dock-right, 0px)!important;width:auto!important;min-width:0!important;max-width:none!important;bottom:var(--vl-dock-bottom-gap)!important;padding-bottom:8px!important;border-radius:var(--p-dialog-border-radius, 12px)!important;box-shadow:var(--p-dialog-shadow, 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1))!important}::ng-deep body{--vl-dock-bottom-gap: max(8px, env(safe-area-inset-bottom, 0px))}::ng-deep .vl-field-active,::ng-deep .picker-field--active input{border-color:var(--modal-field-focus-color, var(--p-primary-color, #10b981))!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--modal-field-focus-color, var(--p-primary-color, #10b981)) 30%,transparent)!important;outline:none!important}\n"] });
15847
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CustomKeyboardComponent, isStandalone: true, selector: "vl-custom-keyboard", ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: a paste key for text fields (OFFENE-PUNKTE 18) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - new: a search field gets a Search key instead of Done (the same place and look) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: an AM/PM key on the keyboard of a 12-hour time field (#166 step 4.9) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: a new-line key on the text keyboard of a multi-line field (textArea, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - change: the space key has no label (it said \"Space\" in every language); a label per language\r\n would have to be maintained for each new project language -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - new: a ?123 / ABC key switches string keyboards between letters and the symbol page -->\r\n@if (keyboard.activeSession(); as session) {\r\n<section class=\"custom-keyboard\" data-vl-custom-keyboard [class.custom-keyboard--numeric]=\"\r\n session.type === 'numeric' ||\r\n session.type === 'date' ||\r\n session.type === 'time'\" [class.custom-keyboard--opening]=\"keyboard.interactionBlocked()\"\r\n [attr.aria-label]=\"session.type + ' keyboard'\" (pointerdown)=\"$event.preventDefault()\">\r\n\r\n @for (row of rows; track $index) {\r\n <div class=\"custom-keyboard__row\">\r\n @for (key of row; track key) {\r\n <button type=\"button\" class=\"custom-keyboard__key\" (click)=\"enterKey(key)\">\r\n {{ key }}\r\n </button>\r\n }\r\n </div>\r\n }\r\n\r\n <!-- One mobile-style action row for every keyboard type -->\r\n <div class=\"custom-keyboard__actions\" [class.custom-keyboard__actions--compact]=\"\r\n session.type !== 'alpha' &&\r\n session.type !== 'string'\r\n \" [class.custom-keyboard__actions--symbols]=\"hasSymbolPage\">\r\n\r\n @if (\r\n session.type === 'alpha' ||\r\n session.type === 'string'\r\n ) {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__shift\" [class.active]=\"uppercase()\"\r\n [disabled]=\"symbols()\" aria-label=\"Change letter case\" title=\"Shift\" (click)=\"toggleCase()\">\r\n <i class=\"pi pi-arrow-up\"></i>\r\n </button>\r\n\r\n @if (hasSymbolPage) {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__page\"\r\n [attr.aria-label]=\"symbols() ? 'Letters' : 'Digits and symbols'\" (click)=\"toggleSymbols()\">\r\n {{ symbols() ? 'ABC' : '?123' }}\r\n </button>\r\n }\r\n\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__space\" aria-label=\"Space\" (click)=\"enterSpace()\">\r\n </button>\r\n\r\n @if (multiLine) {\r\n <!-- new line: only in a multi-line field (textArea), #166 step 4.4 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__newline\"\r\n aria-label=\"New line\" title=\"New line\" (click)=\"enterNewLine()\">\r\n <i class=\"pi pi-arrow-down-left\"></i>\r\n </button>\r\n }\r\n }\r\n\r\n @if (session.type === 'time' && keyboard.twelveHours(session.target)) {\r\n <!-- AM/PM: a time field typed with 12 hours (English), #166 step 4.9 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__meridiem\"\r\n aria-label=\"AM or PM\" title=\"AM/PM\" (click)=\"keyboard.toggleMeridiem()\">AM/PM</button>\r\n }\r\n\r\n @if (session.type === 'alpha' || session.type === 'string') {\r\n <!-- paste: the clipboard's text at the cursor (the field is read-only for the system keyboard), OFFENE-PUNKTE 18 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__paste\"\r\n aria-label=\"Paste\" title=\"Paste\" (click)=\"keyboard.paste()\">\r\n <i class=\"pi pi-clipboard\"></i>\r\n </button>\r\n }\r\n\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__delete\"\r\n aria-label=\"Delete previous character\" title=\"Delete\" (click)=\"keyboard.backspace()\">\r\n <i class=\"pi pi-delete-left\"></i>\r\n </button>\r\n\r\n <!-- the key at the bottom right, as set in the Designer (enterKey): Done, Search or Next - same place and look -->\r\n @switch (keyboard.enterKey()) {\r\n @case ('search') {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Search\"\r\n title=\"Search\" data-vl-key=\"search\" (click)=\"keyboard.submit()\">\r\n <i class=\"pi pi-search\"></i>\r\n </button>\r\n }\r\n @case ('next') {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Next\"\r\n title=\"Next\" data-vl-key=\"next\" (click)=\"keyboard.next()\">\r\n <i class=\"pi pi-arrow-right\"></i>\r\n </button>\r\n }\r\n @default {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Done\"\r\n title=\"Done\" data-vl-key=\"done\" (click)=\"keyboard.close()\">\r\n <i class=\"pi pi-check\"></i>\r\n </button>\r\n }\r\n }\r\n </div>\r\n</section>\r\n}\r\n", styles: [":host{display:contents}.custom-keyboard{position:fixed;right:0;bottom:0;left:0;z-index:200000;display:block;width:100%;max-height:min(52dvh,390px);padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));background:var(--vl-keyboard-background, var(--vl-page-background, #ffffff));box-shadow:0 -6px 20px #0f172a38;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;user-select:none;-webkit-user-select:none;touch-action:manipulation;-webkit-overflow-scrolling:touch}.custom-keyboard__row{display:flex;justify-content:center;gap:4px;width:100%;margin-bottom:6px}.custom-keyboard__key{display:flex;flex:1 1 0;width:auto;max-width:52px;min-width:0;height:42px;align-items:center;justify-content:center;padding:0;color:var(--vl-color-text, #111827);font-size:16px;font-weight:700;line-height:1;background:var(--vl-color-surface, #ffffff);border:1px solid var(--vl-color-border, #d1d5db);border-radius:5px;box-shadow:0 1px 2px #0f172a47;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform 80ms ease,background-color 80ms ease}.custom-keyboard__key:active{background:var(--vl-color-surface, #e6f4ff);transform:scale(.96)}.custom-keyboard--numeric .custom-keyboard__key{max-width:92px;height:46px;font-size:18px}.custom-keyboard__actions{display:grid;grid-template-columns:46px minmax(90px,1fr) 46px 46px 54px;grid-auto-flow:column;grid-auto-columns:46px;gap:6px;width:100%;margin-top:4px;padding:0 4px}.custom-keyboard__actions--compact{grid-template-columns:minmax(52px,1fr) minmax(52px,1fr)}.custom-keyboard__actions--symbols{grid-template-columns:46px 54px minmax(70px,1fr) 46px 46px 54px}.custom-keyboard__action-button{display:flex;width:100%;min-width:0;height:42px;align-items:center;justify-content:center;padding:0 8px;color:var(--vl-color-text, #172033);font-size:15px;font-weight:700;line-height:1;border:0;border-radius:6px;box-shadow:0 1px 2px #0f172a40;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform 80ms ease,background-color 80ms ease}.custom-keyboard__action-button i{font-size:17px;line-height:1;pointer-events:none}.custom-keyboard__action-button:active{transform:scale(.96)}.custom-keyboard__shift{color:var(--vl-color-text, #172033);background:#aeb6c2}.custom-keyboard__shift.active{color:var(--vl-color-on-primary, #ffffff);background:var(--vl-color-primary, #64748b)}.custom-keyboard__space{color:var(--vl-color-text, #172033);background:var(--vl-color-surface, #ffffff)}.custom-keyboard__delete{color:var(--vl-color-text, #172033);background:#aeb6c2}.custom-keyboard__done{color:var(--vl-color-on-primary, #ffffff);background:var(--vl-color-primary, #1890ff)}.custom-keyboard__page{color:var(--vl-color-text, #172033);font-size:14px;background:#aeb6c2}.custom-keyboard__shift:disabled{opacity:.45}.custom-keyboard__key:focus-visible,.custom-keyboard__action-button:focus-visible{outline:3px solid rgba(24,144,255,.35);outline-offset:1px}@media(max-height:650px){.custom-keyboard{max-height:58dvh;padding-top:6px}.custom-keyboard__row{gap:3px;margin-bottom:4px}.custom-keyboard__key{height:35px;font-size:14px}.custom-keyboard--numeric .custom-keyboard__key{height:38px;font-size:16px}.custom-keyboard__action-button{height:36px}}@media(max-width:360px){.custom-keyboard{padding-right:4px;padding-left:4px}.custom-keyboard__row{gap:3px}.custom-keyboard__key{font-size:14px}.custom-keyboard__actions{grid-template-columns:42px minmax(70px,1fr) 40px 42px 48px;grid-auto-columns:40px;gap:4px;padding-right:2px;padding-left:2px}.custom-keyboard__actions--compact{grid-template-columns:minmax(48px,1fr) minmax(48px,1fr)}.custom-keyboard__actions--symbols{grid-template-columns:40px 48px minmax(56px,1fr) 38px 40px 46px}}.custom-keyboard--opening .custom-keyboard__key,.custom-keyboard--opening .custom-keyboard__action-button{pointer-events:none}.custom-keyboard--opening{cursor:default}::ng-deep .p-overlay:has(.p-autocomplete-overlay),::ng-deep .p-overlay:has(.p-select-overlay){width:0!important}::ng-deep .p-autocomplete-overlay .p-autocomplete-option,::ng-deep .p-select-overlay .p-select-option{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}::ng-deep .p-autocomplete-overlay .p-autocomplete-list-container,::ng-deep .p-select-overlay .p-select-list-container{overflow-x:hidden!important}::ng-deep .vl-option-full-text{position:fixed;z-index:2147483000;transform:translateY(-100%);padding:8px 10px;border-radius:8px;background:#1f2328;color:var(--vl-color-on-primary, #fff);font-size:14px;line-height:1.4;box-shadow:0 6px 18px #1f232840;pointer-events:none;white-space:normal}::ng-deep .p-datepicker-panel.model-datepicker-panel--docked,::ng-deep .model-datepicker-panel--docked{position:fixed!important;background:var(--vl-keyboard-background, var(--vl-page-background, #ffffff))!important;inset:auto 0 0!important;width:100%!important;min-width:100%!important;max-width:100%!important;max-height:min(52dvh,420px)!important;margin:0!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;overflow-y:auto!important;transform:none!important;border-radius:12px 12px 0 0!important;box-shadow:0 -6px 20px #0f172a38!important;box-sizing:border-box!important}::ng-deep .model-timepicker-panel.p-datepicker-panel:not(.model-datepicker-panel--docked){width:auto!important;min-width:0!important;padding:4px 8px!important;border-radius:8px!important}::ng-deep .model-timepicker-panel .p-datepicker-time-picker{gap:4px!important;padding:0!important;border:0!important}::ng-deep .model-timepicker-panel .p-datepicker-hour-picker,::ng-deep .model-timepicker-panel .p-datepicker-minute-picker{gap:0!important}::ng-deep .model-timepicker-panel .p-datepicker-hour-picker span,::ng-deep .model-timepicker-panel .p-datepicker-minute-picker span,::ng-deep .model-timepicker-panel .p-datepicker-separator{font-size:1rem!important;line-height:1.2!important}::ng-deep .model-timepicker-panel .p-datepicker-increment-button,::ng-deep .model-timepicker-panel .p-datepicker-decrement-button{width:2rem!important;height:1.75rem!important}::ng-deep body.vl-side-dock .model-datepicker-panel--docked{inset:0 0 0 auto!important;width:var(--vl-side-dock-width, 50vw)!important;min-width:0!important;max-width:var(--vl-side-dock-width, 50vw)!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding-top:env(safe-area-inset-top,0px)!important;padding-right:env(safe-area-inset-right,0px)!important;border-left:1px solid var(--vl-color-border, #e5e7eb)!important;box-shadow:-6px 0 20px #0f172a2e!important}.custom-keyboard__key{height:clamp(26px,5.2dvh,42px)}.custom-keyboard--numeric .custom-keyboard__key{height:clamp(28px,5.6dvh,46px)}.custom-keyboard__action-button{height:clamp(28px,5.2dvh,42px)}.custom-keyboard__row{margin-bottom:clamp(3px,.8dvh,6px)}::ng-deep body.vl-side-dock .custom-keyboard{inset:0 0 0 auto;width:var(--vl-side-dock-width, 50vw);max-height:none;height:100dvh;display:flex;flex-direction:column;justify-content:flex-start;padding-top:env(safe-area-inset-top,0px);padding-right:max(6px,env(safe-area-inset-right,0px));box-shadow:-6px 0 20px #0f172a2e}.custom-keyboard,::ng-deep .model-datepicker-panel--docked{border-top-left-radius:var(--p-dialog-border-radius, 12px)!important;border-top-right-radius:var(--p-dialog-border-radius, 12px)!important;overflow:hidden}::ng-deep .model-datepicker-panel--docked .p-datepicker-header{padding-top:clamp(2px,.6dvh,8px)!important;padding-bottom:clamp(2px,.6dvh,8px)!important}::ng-deep .model-datepicker-panel--docked .p-datepicker-day-cell,::ng-deep .model-datepicker-panel--docked .p-datepicker-weekday-cell{padding:1px!important}::ng-deep .model-datepicker-panel--docked .p-datepicker-day{width:var(--vl-day-size, clamp(28px, 4.4dvh, 40px))!important;height:var(--vl-day-size, clamp(28px, 4.4dvh, 40px))!important}::ng-deep body.vl-side-dock .model-datepicker-panel--docked,::ng-deep body.vl-side-dock .custom-keyboard{top:var(--vl-side-dock-top, max(8px, env(safe-area-inset-top, 0px)))!important;bottom:var(--vl-side-dock-bottom, max(8px, env(safe-area-inset-bottom, 0px)))!important;right:max(8px,env(safe-area-inset-right,0px))!important;left:auto!important;width:calc(var(--vl-side-dock-width, 50vw) - max(8px,env(safe-area-inset-right,0px)))!important;max-width:none!important;height:auto!important;max-height:none!important;padding-top:6px!important;padding-right:6px!important;border-radius:var(--p-dialog-border-radius, 12px)!important;overflow:hidden!important;box-shadow:var(--p-dialog-shadow, 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1))!important}::ng-deep body.vl-custom-keyboard-open .custom-keyboard,::ng-deep body.vl-custom-keyboard-open .model-datepicker-panel--docked{left:var(--vl-dock-left, 0px)!important;right:var(--vl-dock-right, 0px)!important;width:auto!important;min-width:0!important;max-width:none!important;bottom:var(--vl-dock-bottom-gap)!important;padding-bottom:8px!important;border-radius:var(--p-dialog-border-radius, 12px)!important;box-shadow:var(--p-dialog-shadow, 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1))!important}::ng-deep body{--vl-dock-bottom-gap: max(8px, env(safe-area-inset-bottom, 0px))}::ng-deep .vl-field-active,::ng-deep .picker-field--active input{border-color:var(--modal-field-focus-color, var(--p-primary-color, #10b981))!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--modal-field-focus-color, var(--p-primary-color, #10b981)) 30%,transparent)!important;outline:none!important}\n"] });
15210
15848
  }
15211
15849
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CustomKeyboardComponent, decorators: [{
15212
15850
  type: Component,
15213
- args: [{ selector: 'vl-custom-keyboard', standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: a paste key for text fields (OFFENE-PUNKTE 18) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - new: a search field gets a Search key instead of Done (the same place and look) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: an AM/PM key on the keyboard of a 12-hour time field (#166 step 4.9) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: a new-line key on the text keyboard of a multi-line field (textArea, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - change: the space key has no label (it said \"Space\" in every language); a label per language\r\n would have to be maintained for each new project language -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - new: a ?123 / ABC key switches string keyboards between letters and the symbol page -->\r\n@if (keyboard.activeSession(); as session) {\r\n<section class=\"custom-keyboard\" data-vl-custom-keyboard [class.custom-keyboard--numeric]=\"\r\n session.type === 'numeric' ||\r\n session.type === 'date' ||\r\n session.type === 'time'\" [class.custom-keyboard--opening]=\"keyboard.interactionBlocked()\"\r\n [attr.aria-label]=\"session.type + ' keyboard'\" (pointerdown)=\"$event.preventDefault()\">\r\n\r\n @for (row of rows; track $index) {\r\n <div class=\"custom-keyboard__row\">\r\n @for (key of row; track key) {\r\n <button type=\"button\" class=\"custom-keyboard__key\" (click)=\"enterKey(key)\">\r\n {{ key }}\r\n </button>\r\n }\r\n </div>\r\n }\r\n\r\n <!-- One mobile-style action row for every keyboard type -->\r\n <div class=\"custom-keyboard__actions\" [class.custom-keyboard__actions--compact]=\"\r\n session.type !== 'alpha' &&\r\n session.type !== 'string'\r\n \" [class.custom-keyboard__actions--symbols]=\"hasSymbolPage\">\r\n\r\n @if (\r\n session.type === 'alpha' ||\r\n session.type === 'string'\r\n ) {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__shift\" [class.active]=\"uppercase()\"\r\n [disabled]=\"symbols()\" aria-label=\"Change letter case\" title=\"Shift\" (click)=\"toggleCase()\">\r\n <i class=\"pi pi-arrow-up\"></i>\r\n </button>\r\n\r\n @if (hasSymbolPage) {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__page\"\r\n [attr.aria-label]=\"symbols() ? 'Letters' : 'Digits and symbols'\" (click)=\"toggleSymbols()\">\r\n {{ symbols() ? 'ABC' : '?123' }}\r\n </button>\r\n }\r\n\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__space\" aria-label=\"Space\" (click)=\"enterSpace()\">\r\n </button>\r\n\r\n @if (multiLine) {\r\n <!-- new line: only in a multi-line field (textArea), #166 step 4.4 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__newline\"\r\n aria-label=\"New line\" title=\"New line\" (click)=\"enterNewLine()\">\r\n <i class=\"pi pi-arrow-down-left\"></i>\r\n </button>\r\n }\r\n }\r\n\r\n @if (session.type === 'time' && keyboard.twelveHours(session.target)) {\r\n <!-- AM/PM: a time field typed with 12 hours (English), #166 step 4.9 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__meridiem\"\r\n aria-label=\"AM or PM\" title=\"AM/PM\" (click)=\"keyboard.toggleMeridiem()\">AM/PM</button>\r\n }\r\n\r\n @if (session.type === 'alpha' || session.type === 'string') {\r\n <!-- paste: the clipboard's text at the cursor (the field is read-only for the system keyboard), OFFENE-PUNKTE 18 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__paste\"\r\n aria-label=\"Paste\" title=\"Paste\" (click)=\"keyboard.paste()\">\r\n <i class=\"pi pi-clipboard\"></i>\r\n </button>\r\n }\r\n\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__delete\"\r\n aria-label=\"Delete previous character\" title=\"Delete\" (click)=\"keyboard.backspace()\">\r\n <i class=\"pi pi-delete-left\"></i>\r\n </button>\r\n\r\n <!-- the key at the bottom right, as set in the Designer (enterKey): Done, Search or Next - same place and look -->\r\n @switch (keyboard.enterKey()) {\r\n @case ('search') {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Search\"\r\n title=\"Search\" data-vl-key=\"search\" (click)=\"keyboard.submit()\">\r\n <i class=\"pi pi-search\"></i>\r\n </button>\r\n }\r\n @case ('next') {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Next\"\r\n title=\"Next\" data-vl-key=\"next\" (click)=\"keyboard.next()\">\r\n <i class=\"pi pi-arrow-right\"></i>\r\n </button>\r\n }\r\n @default {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Done\"\r\n title=\"Done\" data-vl-key=\"done\" (click)=\"keyboard.close()\">\r\n <i class=\"pi pi-check\"></i>\r\n </button>\r\n }\r\n }\r\n </div>\r\n</section>\r\n}\r\n", styles: [":host{display:contents}.custom-keyboard{position:fixed;right:0;bottom:0;left:0;z-index:200000;display:block;width:100%;max-height:min(52dvh,390px);padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));background:var(--vl-keyboard-background, var(--vl-page-background, #ffffff));box-shadow:0 -6px 20px #0f172a38;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;user-select:none;-webkit-user-select:none;touch-action:manipulation;-webkit-overflow-scrolling:touch}.custom-keyboard__row{display:flex;justify-content:center;gap:4px;width:100%;margin-bottom:6px}.custom-keyboard__key{display:flex;flex:1 1 0;width:auto;max-width:52px;min-width:0;height:42px;align-items:center;justify-content:center;padding:0;color:#111827;font-size:16px;font-weight:700;line-height:1;background:#fff;border:1px solid #d1d5db;border-radius:5px;box-shadow:0 1px 2px #0f172a47;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform 80ms ease,background-color 80ms ease}.custom-keyboard__key:active{background:#e6f4ff;transform:scale(.96)}.custom-keyboard--numeric .custom-keyboard__key{max-width:92px;height:46px;font-size:18px}.custom-keyboard__actions{display:grid;grid-template-columns:46px minmax(90px,1fr) 46px 46px 54px;grid-auto-flow:column;grid-auto-columns:46px;gap:6px;width:100%;margin-top:4px;padding:0 4px}.custom-keyboard__actions--compact{grid-template-columns:minmax(52px,1fr) minmax(52px,1fr)}.custom-keyboard__actions--symbols{grid-template-columns:46px 54px minmax(70px,1fr) 46px 46px 54px}.custom-keyboard__action-button{display:flex;width:100%;min-width:0;height:42px;align-items:center;justify-content:center;padding:0 8px;color:#172033;font-size:15px;font-weight:700;line-height:1;border:0;border-radius:6px;box-shadow:0 1px 2px #0f172a40;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform 80ms ease,background-color 80ms ease}.custom-keyboard__action-button i{font-size:17px;line-height:1;pointer-events:none}.custom-keyboard__action-button:active{transform:scale(.96)}.custom-keyboard__shift{color:#172033;background:#aeb6c2}.custom-keyboard__shift.active{color:#fff;background:#64748b}.custom-keyboard__space{color:#172033;background:#fff}.custom-keyboard__delete{color:#172033;background:#aeb6c2}.custom-keyboard__done{color:#fff;background:#1890ff}.custom-keyboard__page{color:#172033;font-size:14px;background:#aeb6c2}.custom-keyboard__shift:disabled{opacity:.45}.custom-keyboard__key:focus-visible,.custom-keyboard__action-button:focus-visible{outline:3px solid rgba(24,144,255,.35);outline-offset:1px}@media(max-height:650px){.custom-keyboard{max-height:58dvh;padding-top:6px}.custom-keyboard__row{gap:3px;margin-bottom:4px}.custom-keyboard__key{height:35px;font-size:14px}.custom-keyboard--numeric .custom-keyboard__key{height:38px;font-size:16px}.custom-keyboard__action-button{height:36px}}@media(max-width:360px){.custom-keyboard{padding-right:4px;padding-left:4px}.custom-keyboard__row{gap:3px}.custom-keyboard__key{font-size:14px}.custom-keyboard__actions{grid-template-columns:42px minmax(70px,1fr) 40px 42px 48px;grid-auto-columns:40px;gap:4px;padding-right:2px;padding-left:2px}.custom-keyboard__actions--compact{grid-template-columns:minmax(48px,1fr) minmax(48px,1fr)}.custom-keyboard__actions--symbols{grid-template-columns:40px 48px minmax(56px,1fr) 38px 40px 46px}}.custom-keyboard--opening .custom-keyboard__key,.custom-keyboard--opening .custom-keyboard__action-button{pointer-events:none}.custom-keyboard--opening{cursor:default}::ng-deep .p-overlay:has(.p-autocomplete-overlay),::ng-deep .p-overlay:has(.p-select-overlay){width:0!important}::ng-deep .p-autocomplete-overlay .p-autocomplete-option,::ng-deep .p-select-overlay .p-select-option{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}::ng-deep .p-autocomplete-overlay .p-autocomplete-list-container,::ng-deep .p-select-overlay .p-select-list-container{overflow-x:hidden!important}::ng-deep .vl-option-full-text{position:fixed;z-index:2147483000;transform:translateY(-100%);padding:8px 10px;border-radius:8px;background:#1f2328;color:#fff;font-size:14px;line-height:1.4;box-shadow:0 6px 18px #1f232840;pointer-events:none;white-space:normal}::ng-deep .p-datepicker-panel.model-datepicker-panel--docked,::ng-deep .model-datepicker-panel--docked{position:fixed!important;background:var(--vl-keyboard-background, var(--vl-page-background, #ffffff))!important;inset:auto 0 0!important;width:100%!important;min-width:100%!important;max-width:100%!important;max-height:min(52dvh,420px)!important;margin:0!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;overflow-y:auto!important;transform:none!important;border-radius:12px 12px 0 0!important;box-shadow:0 -6px 20px #0f172a38!important;box-sizing:border-box!important}::ng-deep .model-timepicker-panel.p-datepicker-panel:not(.model-datepicker-panel--docked){width:auto!important;min-width:0!important;padding:4px 8px!important;border-radius:8px!important}::ng-deep .model-timepicker-panel .p-datepicker-time-picker{gap:4px!important;padding:0!important;border:0!important}::ng-deep .model-timepicker-panel .p-datepicker-hour-picker,::ng-deep .model-timepicker-panel .p-datepicker-minute-picker{gap:0!important}::ng-deep .model-timepicker-panel .p-datepicker-hour-picker span,::ng-deep .model-timepicker-panel .p-datepicker-minute-picker span,::ng-deep .model-timepicker-panel .p-datepicker-separator{font-size:1rem!important;line-height:1.2!important}::ng-deep .model-timepicker-panel .p-datepicker-increment-button,::ng-deep .model-timepicker-panel .p-datepicker-decrement-button{width:2rem!important;height:1.75rem!important}::ng-deep body.vl-side-dock .model-datepicker-panel--docked{inset:0 0 0 auto!important;width:var(--vl-side-dock-width, 50vw)!important;min-width:0!important;max-width:var(--vl-side-dock-width, 50vw)!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding-top:env(safe-area-inset-top,0px)!important;padding-right:env(safe-area-inset-right,0px)!important;border-left:1px solid #e5e7eb!important;box-shadow:-6px 0 20px #0f172a2e!important}.custom-keyboard__key{height:clamp(26px,5.2dvh,42px)}.custom-keyboard--numeric .custom-keyboard__key{height:clamp(28px,5.6dvh,46px)}.custom-keyboard__action-button{height:clamp(28px,5.2dvh,42px)}.custom-keyboard__row{margin-bottom:clamp(3px,.8dvh,6px)}::ng-deep body.vl-side-dock .custom-keyboard{inset:0 0 0 auto;width:var(--vl-side-dock-width, 50vw);max-height:none;height:100dvh;display:flex;flex-direction:column;justify-content:flex-start;padding-top:env(safe-area-inset-top,0px);padding-right:max(6px,env(safe-area-inset-right,0px));box-shadow:-6px 0 20px #0f172a2e}.custom-keyboard,::ng-deep .model-datepicker-panel--docked{border-top-left-radius:var(--p-dialog-border-radius, 12px)!important;border-top-right-radius:var(--p-dialog-border-radius, 12px)!important;overflow:hidden}::ng-deep .model-datepicker-panel--docked .p-datepicker-header{padding-top:clamp(2px,.6dvh,8px)!important;padding-bottom:clamp(2px,.6dvh,8px)!important}::ng-deep .model-datepicker-panel--docked .p-datepicker-day-cell,::ng-deep .model-datepicker-panel--docked .p-datepicker-weekday-cell{padding:1px!important}::ng-deep .model-datepicker-panel--docked .p-datepicker-day{width:var(--vl-day-size, clamp(28px, 4.4dvh, 40px))!important;height:var(--vl-day-size, clamp(28px, 4.4dvh, 40px))!important}::ng-deep body.vl-side-dock .model-datepicker-panel--docked,::ng-deep body.vl-side-dock .custom-keyboard{top:var(--vl-side-dock-top, max(8px, env(safe-area-inset-top, 0px)))!important;bottom:var(--vl-side-dock-bottom, max(8px, env(safe-area-inset-bottom, 0px)))!important;right:max(8px,env(safe-area-inset-right,0px))!important;left:auto!important;width:calc(var(--vl-side-dock-width, 50vw) - max(8px,env(safe-area-inset-right,0px)))!important;max-width:none!important;height:auto!important;max-height:none!important;padding-top:6px!important;padding-right:6px!important;border-radius:var(--p-dialog-border-radius, 12px)!important;overflow:hidden!important;box-shadow:var(--p-dialog-shadow, 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1))!important}::ng-deep body.vl-custom-keyboard-open .custom-keyboard,::ng-deep body.vl-custom-keyboard-open .model-datepicker-panel--docked{left:var(--vl-dock-left, 0px)!important;right:var(--vl-dock-right, 0px)!important;width:auto!important;min-width:0!important;max-width:none!important;bottom:var(--vl-dock-bottom-gap)!important;padding-bottom:8px!important;border-radius:var(--p-dialog-border-radius, 12px)!important;box-shadow:var(--p-dialog-shadow, 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1))!important}::ng-deep body{--vl-dock-bottom-gap: max(8px, env(safe-area-inset-bottom, 0px))}::ng-deep .vl-field-active,::ng-deep .picker-field--active input{border-color:var(--modal-field-focus-color, var(--p-primary-color, #10b981))!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--modal-field-focus-color, var(--p-primary-color, #10b981)) 30%,transparent)!important;outline:none!important}\n"] }]
15851
+ args: [{ selector: 'vl-custom-keyboard', standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\r\n - new: a paste key for text fields (OFFENE-PUNKTE 18) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\r\n - new: a search field gets a Search key instead of Done (the same place and look) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: an AM/PM key on the keyboard of a 12-hour time field (#166 step 4.9) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\r\n - new: a new-line key on the text keyboard of a multi-line field (textArea, #166) -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\r\n - change: the space key has no label (it said \"Space\" in every language); a label per language\r\n would have to be maintained for each new project language -->\r\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\r\n - new: a ?123 / ABC key switches string keyboards between letters and the symbol page -->\r\n@if (keyboard.activeSession(); as session) {\r\n<section class=\"custom-keyboard\" data-vl-custom-keyboard [class.custom-keyboard--numeric]=\"\r\n session.type === 'numeric' ||\r\n session.type === 'date' ||\r\n session.type === 'time'\" [class.custom-keyboard--opening]=\"keyboard.interactionBlocked()\"\r\n [attr.aria-label]=\"session.type + ' keyboard'\" (pointerdown)=\"$event.preventDefault()\">\r\n\r\n @for (row of rows; track $index) {\r\n <div class=\"custom-keyboard__row\">\r\n @for (key of row; track key) {\r\n <button type=\"button\" class=\"custom-keyboard__key\" (click)=\"enterKey(key)\">\r\n {{ key }}\r\n </button>\r\n }\r\n </div>\r\n }\r\n\r\n <!-- One mobile-style action row for every keyboard type -->\r\n <div class=\"custom-keyboard__actions\" [class.custom-keyboard__actions--compact]=\"\r\n session.type !== 'alpha' &&\r\n session.type !== 'string'\r\n \" [class.custom-keyboard__actions--symbols]=\"hasSymbolPage\">\r\n\r\n @if (\r\n session.type === 'alpha' ||\r\n session.type === 'string'\r\n ) {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__shift\" [class.active]=\"uppercase()\"\r\n [disabled]=\"symbols()\" aria-label=\"Change letter case\" title=\"Shift\" (click)=\"toggleCase()\">\r\n <i class=\"pi pi-arrow-up\"></i>\r\n </button>\r\n\r\n @if (hasSymbolPage) {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__page\"\r\n [attr.aria-label]=\"symbols() ? 'Letters' : 'Digits and symbols'\" (click)=\"toggleSymbols()\">\r\n {{ symbols() ? 'ABC' : '?123' }}\r\n </button>\r\n }\r\n\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__space\" aria-label=\"Space\" (click)=\"enterSpace()\">\r\n </button>\r\n\r\n @if (multiLine) {\r\n <!-- new line: only in a multi-line field (textArea), #166 step 4.4 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__newline\"\r\n aria-label=\"New line\" title=\"New line\" (click)=\"enterNewLine()\">\r\n <i class=\"pi pi-arrow-down-left\"></i>\r\n </button>\r\n }\r\n }\r\n\r\n @if (session.type === 'time' && keyboard.twelveHours(session.target)) {\r\n <!-- AM/PM: a time field typed with 12 hours (English), #166 step 4.9 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__meridiem\"\r\n aria-label=\"AM or PM\" title=\"AM/PM\" (click)=\"keyboard.toggleMeridiem()\">AM/PM</button>\r\n }\r\n\r\n @if (session.type === 'alpha' || session.type === 'string') {\r\n <!-- paste: the clipboard's text at the cursor (the field is read-only for the system keyboard), OFFENE-PUNKTE 18 -->\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__paste\"\r\n aria-label=\"Paste\" title=\"Paste\" (click)=\"keyboard.paste()\">\r\n <i class=\"pi pi-clipboard\"></i>\r\n </button>\r\n }\r\n\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__delete\"\r\n aria-label=\"Delete previous character\" title=\"Delete\" (click)=\"keyboard.backspace()\">\r\n <i class=\"pi pi-delete-left\"></i>\r\n </button>\r\n\r\n <!-- the key at the bottom right, as set in the Designer (enterKey): Done, Search or Next - same place and look -->\r\n @switch (keyboard.enterKey()) {\r\n @case ('search') {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Search\"\r\n title=\"Search\" data-vl-key=\"search\" (click)=\"keyboard.submit()\">\r\n <i class=\"pi pi-search\"></i>\r\n </button>\r\n }\r\n @case ('next') {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Next\"\r\n title=\"Next\" data-vl-key=\"next\" (click)=\"keyboard.next()\">\r\n <i class=\"pi pi-arrow-right\"></i>\r\n </button>\r\n }\r\n @default {\r\n <button type=\"button\" class=\"custom-keyboard__action-button custom-keyboard__done\" aria-label=\"Done\"\r\n title=\"Done\" data-vl-key=\"done\" (click)=\"keyboard.close()\">\r\n <i class=\"pi pi-check\"></i>\r\n </button>\r\n }\r\n }\r\n </div>\r\n</section>\r\n}\r\n", styles: [":host{display:contents}.custom-keyboard{position:fixed;right:0;bottom:0;left:0;z-index:200000;display:block;width:100%;max-height:min(52dvh,390px);padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));background:var(--vl-keyboard-background, var(--vl-page-background, #ffffff));box-shadow:0 -6px 20px #0f172a38;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;user-select:none;-webkit-user-select:none;touch-action:manipulation;-webkit-overflow-scrolling:touch}.custom-keyboard__row{display:flex;justify-content:center;gap:4px;width:100%;margin-bottom:6px}.custom-keyboard__key{display:flex;flex:1 1 0;width:auto;max-width:52px;min-width:0;height:42px;align-items:center;justify-content:center;padding:0;color:var(--vl-color-text, #111827);font-size:16px;font-weight:700;line-height:1;background:var(--vl-color-surface, #ffffff);border:1px solid var(--vl-color-border, #d1d5db);border-radius:5px;box-shadow:0 1px 2px #0f172a47;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform 80ms ease,background-color 80ms ease}.custom-keyboard__key:active{background:var(--vl-color-surface, #e6f4ff);transform:scale(.96)}.custom-keyboard--numeric .custom-keyboard__key{max-width:92px;height:46px;font-size:18px}.custom-keyboard__actions{display:grid;grid-template-columns:46px minmax(90px,1fr) 46px 46px 54px;grid-auto-flow:column;grid-auto-columns:46px;gap:6px;width:100%;margin-top:4px;padding:0 4px}.custom-keyboard__actions--compact{grid-template-columns:minmax(52px,1fr) minmax(52px,1fr)}.custom-keyboard__actions--symbols{grid-template-columns:46px 54px minmax(70px,1fr) 46px 46px 54px}.custom-keyboard__action-button{display:flex;width:100%;min-width:0;height:42px;align-items:center;justify-content:center;padding:0 8px;color:var(--vl-color-text, #172033);font-size:15px;font-weight:700;line-height:1;border:0;border-radius:6px;box-shadow:0 1px 2px #0f172a40;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform 80ms ease,background-color 80ms ease}.custom-keyboard__action-button i{font-size:17px;line-height:1;pointer-events:none}.custom-keyboard__action-button:active{transform:scale(.96)}.custom-keyboard__shift{color:var(--vl-color-text, #172033);background:#aeb6c2}.custom-keyboard__shift.active{color:var(--vl-color-on-primary, #ffffff);background:var(--vl-color-primary, #64748b)}.custom-keyboard__space{color:var(--vl-color-text, #172033);background:var(--vl-color-surface, #ffffff)}.custom-keyboard__delete{color:var(--vl-color-text, #172033);background:#aeb6c2}.custom-keyboard__done{color:var(--vl-color-on-primary, #ffffff);background:var(--vl-color-primary, #1890ff)}.custom-keyboard__page{color:var(--vl-color-text, #172033);font-size:14px;background:#aeb6c2}.custom-keyboard__shift:disabled{opacity:.45}.custom-keyboard__key:focus-visible,.custom-keyboard__action-button:focus-visible{outline:3px solid rgba(24,144,255,.35);outline-offset:1px}@media(max-height:650px){.custom-keyboard{max-height:58dvh;padding-top:6px}.custom-keyboard__row{gap:3px;margin-bottom:4px}.custom-keyboard__key{height:35px;font-size:14px}.custom-keyboard--numeric .custom-keyboard__key{height:38px;font-size:16px}.custom-keyboard__action-button{height:36px}}@media(max-width:360px){.custom-keyboard{padding-right:4px;padding-left:4px}.custom-keyboard__row{gap:3px}.custom-keyboard__key{font-size:14px}.custom-keyboard__actions{grid-template-columns:42px minmax(70px,1fr) 40px 42px 48px;grid-auto-columns:40px;gap:4px;padding-right:2px;padding-left:2px}.custom-keyboard__actions--compact{grid-template-columns:minmax(48px,1fr) minmax(48px,1fr)}.custom-keyboard__actions--symbols{grid-template-columns:40px 48px minmax(56px,1fr) 38px 40px 46px}}.custom-keyboard--opening .custom-keyboard__key,.custom-keyboard--opening .custom-keyboard__action-button{pointer-events:none}.custom-keyboard--opening{cursor:default}::ng-deep .p-overlay:has(.p-autocomplete-overlay),::ng-deep .p-overlay:has(.p-select-overlay){width:0!important}::ng-deep .p-autocomplete-overlay .p-autocomplete-option,::ng-deep .p-select-overlay .p-select-option{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}::ng-deep .p-autocomplete-overlay .p-autocomplete-list-container,::ng-deep .p-select-overlay .p-select-list-container{overflow-x:hidden!important}::ng-deep .vl-option-full-text{position:fixed;z-index:2147483000;transform:translateY(-100%);padding:8px 10px;border-radius:8px;background:#1f2328;color:var(--vl-color-on-primary, #fff);font-size:14px;line-height:1.4;box-shadow:0 6px 18px #1f232840;pointer-events:none;white-space:normal}::ng-deep .p-datepicker-panel.model-datepicker-panel--docked,::ng-deep .model-datepicker-panel--docked{position:fixed!important;background:var(--vl-keyboard-background, var(--vl-page-background, #ffffff))!important;inset:auto 0 0!important;width:100%!important;min-width:100%!important;max-width:100%!important;max-height:min(52dvh,420px)!important;margin:0!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;overflow-y:auto!important;transform:none!important;border-radius:12px 12px 0 0!important;box-shadow:0 -6px 20px #0f172a38!important;box-sizing:border-box!important}::ng-deep .model-timepicker-panel.p-datepicker-panel:not(.model-datepicker-panel--docked){width:auto!important;min-width:0!important;padding:4px 8px!important;border-radius:8px!important}::ng-deep .model-timepicker-panel .p-datepicker-time-picker{gap:4px!important;padding:0!important;border:0!important}::ng-deep .model-timepicker-panel .p-datepicker-hour-picker,::ng-deep .model-timepicker-panel .p-datepicker-minute-picker{gap:0!important}::ng-deep .model-timepicker-panel .p-datepicker-hour-picker span,::ng-deep .model-timepicker-panel .p-datepicker-minute-picker span,::ng-deep .model-timepicker-panel .p-datepicker-separator{font-size:1rem!important;line-height:1.2!important}::ng-deep .model-timepicker-panel .p-datepicker-increment-button,::ng-deep .model-timepicker-panel .p-datepicker-decrement-button{width:2rem!important;height:1.75rem!important}::ng-deep body.vl-side-dock .model-datepicker-panel--docked{inset:0 0 0 auto!important;width:var(--vl-side-dock-width, 50vw)!important;min-width:0!important;max-width:var(--vl-side-dock-width, 50vw)!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding-top:env(safe-area-inset-top,0px)!important;padding-right:env(safe-area-inset-right,0px)!important;border-left:1px solid var(--vl-color-border, #e5e7eb)!important;box-shadow:-6px 0 20px #0f172a2e!important}.custom-keyboard__key{height:clamp(26px,5.2dvh,42px)}.custom-keyboard--numeric .custom-keyboard__key{height:clamp(28px,5.6dvh,46px)}.custom-keyboard__action-button{height:clamp(28px,5.2dvh,42px)}.custom-keyboard__row{margin-bottom:clamp(3px,.8dvh,6px)}::ng-deep body.vl-side-dock .custom-keyboard{inset:0 0 0 auto;width:var(--vl-side-dock-width, 50vw);max-height:none;height:100dvh;display:flex;flex-direction:column;justify-content:flex-start;padding-top:env(safe-area-inset-top,0px);padding-right:max(6px,env(safe-area-inset-right,0px));box-shadow:-6px 0 20px #0f172a2e}.custom-keyboard,::ng-deep .model-datepicker-panel--docked{border-top-left-radius:var(--p-dialog-border-radius, 12px)!important;border-top-right-radius:var(--p-dialog-border-radius, 12px)!important;overflow:hidden}::ng-deep .model-datepicker-panel--docked .p-datepicker-header{padding-top:clamp(2px,.6dvh,8px)!important;padding-bottom:clamp(2px,.6dvh,8px)!important}::ng-deep .model-datepicker-panel--docked .p-datepicker-day-cell,::ng-deep .model-datepicker-panel--docked .p-datepicker-weekday-cell{padding:1px!important}::ng-deep .model-datepicker-panel--docked .p-datepicker-day{width:var(--vl-day-size, clamp(28px, 4.4dvh, 40px))!important;height:var(--vl-day-size, clamp(28px, 4.4dvh, 40px))!important}::ng-deep body.vl-side-dock .model-datepicker-panel--docked,::ng-deep body.vl-side-dock .custom-keyboard{top:var(--vl-side-dock-top, max(8px, env(safe-area-inset-top, 0px)))!important;bottom:var(--vl-side-dock-bottom, max(8px, env(safe-area-inset-bottom, 0px)))!important;right:max(8px,env(safe-area-inset-right,0px))!important;left:auto!important;width:calc(var(--vl-side-dock-width, 50vw) - max(8px,env(safe-area-inset-right,0px)))!important;max-width:none!important;height:auto!important;max-height:none!important;padding-top:6px!important;padding-right:6px!important;border-radius:var(--p-dialog-border-radius, 12px)!important;overflow:hidden!important;box-shadow:var(--p-dialog-shadow, 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1))!important}::ng-deep body.vl-custom-keyboard-open .custom-keyboard,::ng-deep body.vl-custom-keyboard-open .model-datepicker-panel--docked{left:var(--vl-dock-left, 0px)!important;right:var(--vl-dock-right, 0px)!important;width:auto!important;min-width:0!important;max-width:none!important;bottom:var(--vl-dock-bottom-gap)!important;padding-bottom:8px!important;border-radius:var(--p-dialog-border-radius, 12px)!important;box-shadow:var(--p-dialog-shadow, 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1))!important}::ng-deep body{--vl-dock-bottom-gap: max(8px, env(safe-area-inset-bottom, 0px))}::ng-deep .vl-field-active,::ng-deep .picker-field--active input{border-color:var(--modal-field-focus-color, var(--p-primary-color, #10b981))!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--modal-field-focus-color, var(--p-primary-color, #10b981)) 30%,transparent)!important;outline:none!important}\n"] }]
15214
15852
  }], ctorParameters: () => [] });
15215
15853
 
15216
15854
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21
@@ -15897,6 +16535,8 @@ async function runAddonTests(files, timeoutMs = 15000) {
15897
16535
  return results;
15898
16536
  }
15899
16537
 
16538
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
16539
+ // - change: no named conversion of an app in the library any more, a conversion is the add-on's (OFFENE-PUNKTE 91)
15900
16540
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05
15901
16541
  // - new: loadData asks the add-on first for an address of addon.json routes (point 182)
15902
16542
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28
@@ -15914,9 +16554,6 @@ async function runAddonTests(files, timeoutMs = 15000) {
15914
16554
  // token when the option says passToken, on the devices directly, in the web through the app's own
15915
16555
  // origin (backendUrl), under the waiting rule of every request. saveData / loadData replace the
15916
16556
  // fixed P5 time-recording calls of card and request service (A2)
15917
- const TRANSFORMS = {
15918
- dailyLogs: (records, utility) => records.flatMap(record => utility.convertToDailyLogs(record) || []),
15919
- };
15920
16557
  class BackendCallService {
15921
16558
  remoteLists = inject(RemoteListService);
15922
16559
  utilityService = inject(UtilityService);
@@ -15931,16 +16568,10 @@ class BackendCallService {
15931
16568
  ? await this.utilityService.getLocalStorage('KeycloakInfo')
15932
16569
  : await this.utilityService.getLocalStorage('loginedUser');
15933
16570
  }
15934
- /**
15935
- * The records after the option's conversion: "addon:<name>" runs the project's add-on (addon.json transforms,
15936
- * OFFENE-PUNKTE 92), another name a conversion of the library; unknown names change nothing.
15937
- */
16571
+ /** The records after the option's conversion: "addon:<name>" runs the project's add-on (addon.json transforms). */
15938
16572
  async transform(option, records) {
15939
16573
  const name = String(option?.transform ?? '').trim();
15940
- if (name.startsWith('addon:'))
15941
- return this.addons.transform(name.slice('addon:'.length).trim(), records, option?.transformParams ?? {});
15942
- const convert = name ? TRANSFORMS[name] : undefined;
15943
- return convert ? convert(records, this.utilityService) : records;
16574
+ return name.startsWith('addon:') ? this.addons.transform(name.slice('addon:'.length).trim(), records, option?.transformParams) : records;
15944
16575
  }
15945
16576
  /** Sends the records to the option's backend; true on success. */
15946
16577
  async saveData(option, records, extra = {}) {
@@ -16085,6 +16716,8 @@ class PageData {
16085
16716
  pageCount = 0;
16086
16717
  totalItems = 0;
16087
16718
  loading = false;
16719
+ /** the last load of the backend failed (a test tells an empty list from a broken one) */
16720
+ loadFailed = false;
16088
16721
  filter = {};
16089
16722
  /** The last backend answer as it came (its paging fields). */
16090
16723
  lastAnswer = null;
@@ -16300,6 +16933,7 @@ class PageData {
16300
16933
  const filter = {};
16301
16934
  for (const [key, value] of Object.entries(this.filter))
16302
16935
  filter[key] = this.filterValue(value);
16936
+ this.loadFailed = false;
16303
16937
  const data = await this.deps.loadBackend(this.source, { filter, pageNumber: this.page, pageSize: this.pageSize });
16304
16938
  // a fresh load started meanwhile: this answer is old
16305
16939
  if (generation !== this.generation)
@@ -16329,6 +16963,7 @@ class PageData {
16329
16963
  this.deps.notice?.(empty);
16330
16964
  }
16331
16965
  catch (error) {
16966
+ this.loadFailed = true;
16332
16967
  this.deps.failed('loadFailed', error, messageOf(this.source, 'errorMessage'));
16333
16968
  this.setRecords([]);
16334
16969
  }
@@ -16391,6 +17026,26 @@ class PageData {
16391
17026
  }
16392
17027
  }
16393
17028
 
17029
+ // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
17030
+ // - new: the signed-in user as a data object (point 220, user decision B): environment.login.user names the data
17031
+ // object and maps the values of the sign-in onto its fields ({ object: "user", mapFields: { resourceNo:
17032
+ // "p5_resource_no", company: "{{p5_group}}/{{p5_client}}/{{p5_plant}}" } }). The record goes along as
17033
+ // userInfo.user, so pages use {{user.resourceNo}} everywhere a placeholder works. The library knows no field of an
17034
+ // app - the mapping is the project's. The old placeholders ({{p5_backend_url}}, {{userInfo.x}}) keep working.
17035
+ /** The user record of a sign-in answer by environment.login.user; null without a mapping or without a sign-in. */
17036
+ function userRecord(userInfo, login) {
17037
+ const mapping = login?.user?.mapFields;
17038
+ if (!userInfo || typeof userInfo !== 'object' || !mapping || typeof mapping !== 'object')
17039
+ return null;
17040
+ const { user: _old, ...source } = userInfo;
17041
+ return mappedValues(mapping, source);
17042
+ }
17043
+ /** The sign-in answer with its user record as .user (a new object); unchanged without a mapping. */
17044
+ function withUserRecord(userInfo, login) {
17045
+ const record = userRecord(userInfo, login);
17046
+ return record ? { ...userInfo, user: record } : userInfo;
17047
+ }
17048
+
16394
17049
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25
16395
17050
  // - change: termsUrl fills {{userInfo.x}} too (fillPlaceholders) - {{user}} stays for old apps
16396
17051
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24
@@ -16475,5 +17130,5 @@ function termsUser(userInfo) {
16475
17130
  * Generated bundle index. Do not edit.
16476
17131
  */
16477
17132
 
16478
- export { ADDON_API_VERSION, ADDON_TEST_KIT, AddonHostService, AppVersionResetService, Autocomplete, BACKEND_PROXY_PREFIX, BackendCallService, CardComponent, CardDesigner, CheckboxControl, ConfigService, ControlComponent, Couchdb, CustomKeyboardComponent, CustomKeyboardDirective, CustomKeyboardService, DATA_KEY_ANSWER, DATA_KEY_NONE, DEFAULT_DATE_FORMAT, DESIGN_TEXTS, DateFormatPipe, DateHintPipe, DateRangeControl, DateTextPipe, DateTimeControl, DesignBarComponent, DesignFieldPipe, DesignTextPipe, DropMarkerComponent, DropdownControl, FormComponent, GRID_COLUMNS, GridComponent, HeaderMenuComponent, LogsComponent, MAX_FIELDS_PER_ROW, MAX_ROW_COLUMNS, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PLACEHOLDER_SOURCES, PageData, PaginationComponent, PasswordControl, PdfViewerComponent, PdfViewerService, PlaceholderPipe, READ_ATTEMPT_TIMEOUT, REQUEST_STAGES, RETRY_PAUSES, RETRY_STATUSES, RadioControl, RecordStore, RemoteListService, RequestService, RequestTimeoutError, RequestTimeoutService, RulesPipe, SEND_ERROR_KEY, SIDE_DOCK_CLASS, STORAGE_DATE_FORMAT, SectionDesigner, SideMenuComponent, SwitchControl, TermsDialog, TextareaControl, Textbox, UtilityService, ViewToolkitModule, VisiblePipe, acceptedLocally, addButton, addCardButton, addSection, addonHostAllowed, addonImports, addonLimits, addonManifestProblem, applyLayoutDefaults, backendTermsState, backendUrl, blankComments, buildBackendCall, buttonLocked, bytesOfBase64, cardButton, checkRouteResult, checkTransformResult, clearHeader, cloneLayout, columnFromProperty, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, dependsOnForm, designDropIds, designField, designText, designTexts, displayDateValue, displayNumber, dropCardProperty, dropGridProperty, dropObjectName, dropProperty, dropTypeAt, elementFromProperty, fieldFromProperty, fieldInnerLayoutStyle, fieldModel, fieldRules, fieldSpan, fillFromUser, fillPlaceholders, fixedTimeText, formValuesGiven, formatDate, formatDates, fromStorageValue, gridColumnCount, hasBackendCall, headerButton, inputFormatHint, insertField, isAddonCode, isAddonTestFile, isBrowserSource, isIsoDate, isNativeMobile, isNativePhone, isPropertyDrop, isSignedIn, isTarget, languageDatePattern, layoutPlaceholder, linkAddonModules, linkOfRecord, lockHint, lockReason, lockReasons, mediaKind, moveCardElement, moveColumn, moveField, moveSection, moveTreeNode, newButton, newSection, nextZoom, normalizeCard, normalizeCustomKeyboardType, normalizeSections, numberShape, numberStep, numberSuffix, parseRecords, parseStorageDate, parseTimeText, primeDatePattern, proxyFor, rebalanceRow, recordOf, recordsFrom, removeCardElement, removeColumn, removeField, removeHeaderElement, removeSection, removeTreeNode, replaceCardElement, replaceColumn, replaceField, replaceSection, replaceTreeNode, requestDesignDelete, resizeColumn, resolveAddonPath, resolveCustomKeyboardType, resolvePlaceholder, resolveTemplate, routeOf, ruleMessage, runAddonTests, sampleRecords, sampleValue, sectionSpan, sectionSticky, sectionTabletSpan, sectionVisible, sendErrorText, sendsForm, setDateLanguage, setInputHintLanguage, setProxyEnvironment, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storageKind, storageValue, storedToTyped, styleParts, termsStamp, termsStorageKey, termsToConfirm, termsUrl, termsUser, testAction, testFieldKey, testFieldPath, testWrites, timeHourFormat, toggleMeridiem, toggleRecord, toolkitKeyboardActive, transformHandler, treeNode, treePaths, typedMeridiem, typedToStored, usesTwelveHours, validTreePath, visibleFields, whenOnline, withAppPagination, withoutMarks, wrapperStyleOf };
17133
+ export { ADDON_API_VERSION, ADDON_TEST_KIT, AddonHostService, AppVersionResetService, Autocomplete, BACKEND_PROXY_PREFIX, BackendCallService, CardComponent, CardDesigner, CheckboxControl, ConfigService, ControlComponent, Couchdb, CustomKeyboardComponent, CustomKeyboardDirective, CustomKeyboardService, DATA_KEY_ANSWER, DATA_KEY_NONE, DEFAULT_DATE_FORMAT, DESIGN_TEXTS, DateFormatPipe, DateHintPipe, DateRangeControl, DateTextPipe, DateTimeControl, DesignBarComponent, DesignFieldPipe, DesignTextPipe, DropMarkerComponent, DropdownControl, FormComponent, GRID_COLUMNS, GridComponent, HeaderMenuComponent, LogsComponent, MAX_FIELDS_PER_ROW, MAX_ROW_COLUMNS, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PLACEHOLDER_SOURCES, PageData, PaginationComponent, PasswordControl, PdfViewerComponent, PdfViewerService, PlaceholderPipe, READ_ATTEMPT_TIMEOUT, REQUEST_STAGES, RETRY_PAUSES, RETRY_STATUSES, RadioControl, RecordStore, RemoteListService, RequestService, RequestTimeoutError, RequestTimeoutService, RulesPipe, SEND_ERROR_KEY, SIDE_DOCK_CLASS, STORAGE_DATE_FORMAT, SectionDesigner, SideMenuComponent, SlideshowComponent, SwitchControl, TermsDialog, TextareaControl, Textbox, UtilityService, VL_MEDIA_RESOLVER, ViewToolkitModule, VisiblePipe, acceptedLocally, addButton, addCardButton, addSection, addonHostAllowed, addonImports, addonLimits, addonManifestProblem, applyLayoutDefaults, applyMapping, backendTermsState, backendUrl, blankComments, buildBackendCall, buttonLocked, bytesOfBase64, cardButton, checkRouteResult, checkTransformResult, clearHeader, cloneLayout, columnFromProperty, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, dependsOnForm, designDropIds, designField, designText, designTexts, designerLinksOn, designerPlace, displayDateValue, displayNumber, dropCardProperty, dropGridProperty, dropObjectName, dropProperty, dropTypeAt, elementFromProperty, fieldFromProperty, fieldInnerLayoutStyle, fieldModel, fieldRules, fieldSpan, fillFromUser, fillPlaceholders, fixedTimeText, formValuesGiven, formatDate, formatDates, fromStorageValue, gridColumnCount, hasBackendCall, hasHeaderTarget, headerButton, inputFormatHint, insertField, isAddonCode, isAddonTestFile, isBrowserSource, isIsoDate, isNativeMobile, isNativePhone, isPropertyDrop, isSignedIn, isTarget, languageDatePattern, layoutPlaceholder, linkAddonModules, linkOfRecord, lockHint, lockReason, lockReasons, mappedValues, mediaKind, moveCardElement, moveColumn, moveField, moveSection, moveTreeNode, newButton, newSection, nextZoom, normalizeCard, normalizeCustomKeyboardType, normalizeSections, numberShape, numberStep, numberSuffix, parseRecords, parseStorageDate, parseTimeText, primeDatePattern, proxyFor, rebalanceRow, recordOf, recordsFrom, removeCardElement, removeColumn, removeField, removeHeaderElement, removeSection, removeTreeNode, replaceCardElement, replaceColumn, replaceField, replaceSection, replaceTreeNode, requestDesignDelete, resizeColumn, resolveAddonPath, resolveCustomKeyboardType, resolvePlaceholder, resolveTemplate, routeOf, ruleMessage, runAddonTests, sampleRecords, sampleValue, sectionPlain, sectionSpan, sectionSticky, sectionTabletSpan, sectionVisible, sendErrorText, sendsForm, setDateLanguage, setInputHintLanguage, setProxyEnvironment, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storageKind, storageValue, storedToTyped, styleParts, termsStamp, termsStorageKey, termsToConfirm, termsUrl, termsUser, testAction, testFieldKey, testFieldPath, testWrites, timeHourFormat, toggleMeridiem, toggleRecord, toolkitKeyboardActive, transformHandler, treeNode, treePaths, typedMeridiem, typedToStored, useDesignerLinks, useDraftSource, userRecord, usesTwelveHours, validTreePath, valueAt, visibleFields, whenOnline, withAppPagination, withUserRecord, withoutMarks, wrapperStyleOf };
16479
17134
  //# sourceMappingURL=yomotech-view-toolkit.mjs.map