@yomotech/view-toolkit 1.0.73 → 1.0.75
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.
|
@@ -208,6 +208,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
208
208
|
args: [{ name: 'vlDesignText', standalone: true, pure: true }]
|
|
209
209
|
}] });
|
|
210
210
|
|
|
211
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
212
|
+
// - new: completeTimeText - a partly typed time is completed when the field is left ("20" -> "20:00")
|
|
211
213
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
212
214
|
// - new: durationText - data type "duration": hours and minutes, the same in every language, never AM/PM; reads a
|
|
213
215
|
// computed "8:45", a server's date-time ("…T04:55:00…" - the wall time), a Date and a number of minutes; HH:mm by
|
|
@@ -445,6 +447,33 @@ function shapeTimeText(text, twelveHours) {
|
|
|
445
447
|
const time = digits.length <= 2 ? digits : `${digits.slice(0, 2)}:${digits.slice(2)}`;
|
|
446
448
|
return twelveHours && meridiem && time ? `${time} ${meridiem}` : time;
|
|
447
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* A time typed only partly, completed when the field is left: "20" -> "20:00", "8" -> "08:00", "830" -> "08:30",
|
|
452
|
+
* "20:" -> "20:00", "8:5" -> "08:05"; a 12-hour field keeps AM/PM as typed. Anything else comes back unchanged.
|
|
453
|
+
*/
|
|
454
|
+
function completeTimeText(text, twelveHours) {
|
|
455
|
+
const raw = (text ?? '').trim();
|
|
456
|
+
const meridiem = typedMeridiem(raw);
|
|
457
|
+
const core = raw.replace(/\s*(a|p|am|pm)\s*$/i, '');
|
|
458
|
+
let hours, minutes;
|
|
459
|
+
let m = /^(\d{1,2}):?$/.exec(core);
|
|
460
|
+
if (m) {
|
|
461
|
+
hours = m[1];
|
|
462
|
+
minutes = '00';
|
|
463
|
+
}
|
|
464
|
+
else if ((m = /^(\d)(\d{2})$/.exec(core))) {
|
|
465
|
+
hours = m[1];
|
|
466
|
+
minutes = m[2];
|
|
467
|
+
}
|
|
468
|
+
else if ((m = /^(\d{1,2}):(\d)$/.exec(core))) {
|
|
469
|
+
hours = m[1];
|
|
470
|
+
minutes = '0' + m[2];
|
|
471
|
+
}
|
|
472
|
+
else
|
|
473
|
+
return text;
|
|
474
|
+
const time = `${hours.padStart(2, '0')}:${minutes}`;
|
|
475
|
+
return twelveHours ? shapeTimeText(meridiem ? `${time} ${meridiem}` : time, true) : time;
|
|
476
|
+
}
|
|
448
477
|
/**
|
|
449
478
|
* AM or PM as typed after the digits: the last "a" or "p" counts - "0430p", "4:30pm", and "04:30 AMP" (P typed after
|
|
450
479
|
* the AM the field had added) are PM; "" when none. On a laptop PM could not be typed at all (2026-10-28).
|
|
@@ -2351,6 +2380,8 @@ function installOptionFullText() {
|
|
|
2351
2380
|
}, true);
|
|
2352
2381
|
}
|
|
2353
2382
|
|
|
2383
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
2384
|
+
// - new: closing the keyboard completes a partly typed time ("20" -> "20:00", completeTimeText)
|
|
2354
2385
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-15
|
|
2355
2386
|
// - change: the page background for keyboard and calendar is the page area's colour (.center-wrap), no longer that of
|
|
2356
2387
|
// the element in the middle of the screen - a grey table cell made the keyboard grey on a white page (luv2shop)
|
|
@@ -2976,6 +3007,14 @@ class CustomKeyboardService {
|
|
|
2976
3007
|
}
|
|
2977
3008
|
const { blurTarget = true, restoreAccessoryBar = true, keepBottomArea = false } = option;
|
|
2978
3009
|
const { target } = session;
|
|
3010
|
+
// a time typed only partly ("20") is completed before the field is left ("20:00") - it was emptied
|
|
3011
|
+
if (session.type === 'time') {
|
|
3012
|
+
const input = target;
|
|
3013
|
+
const done = typeof input?.value === 'string' && input.value.trim() ? completeTimeText(input.value, this.twelveHours(target)) : null;
|
|
3014
|
+
// through updateTarget: PrimeNG takes an input only after a keydown
|
|
3015
|
+
if (done && done !== input.value)
|
|
3016
|
+
this.updateTarget(target, done, done.length);
|
|
3017
|
+
}
|
|
2979
3018
|
document.removeEventListener('pointerdown', this.documentPointerDownHandler, true);
|
|
2980
3019
|
target.removeEventListener('blur', this.activeTargetBlurHandler);
|
|
2981
3020
|
this.markActiveField(target, false);
|
|
@@ -5749,6 +5788,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
5749
5788
|
}]
|
|
5750
5789
|
}], ctorParameters: () => [{ type: CustomKeyboardService }] });
|
|
5751
5790
|
|
|
5791
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
5792
|
+
// - new: leaveTime - a partly typed time is completed when the field is left ("20" -> "20:00"); it was emptied
|
|
5752
5793
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
5753
5794
|
// - new: data type "duration" - 24 hours in every language, shown as HH:mm (durationText)
|
|
5754
5795
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02
|
|
@@ -5854,6 +5895,19 @@ class DateTimeControl {
|
|
|
5854
5895
|
this.target.value = base;
|
|
5855
5896
|
this.changed.emit(base);
|
|
5856
5897
|
}
|
|
5898
|
+
/** Leaving a time field typed only partly completes it ("20" -> "20:00") - it was emptied before. */
|
|
5899
|
+
leaveTime(event) {
|
|
5900
|
+
if (this.kind !== 'time')
|
|
5901
|
+
return;
|
|
5902
|
+
const input = event.target;
|
|
5903
|
+
if (!(input instanceof HTMLInputElement) || !input.value.trim())
|
|
5904
|
+
return;
|
|
5905
|
+
const done = completeTimeText(input.value, this.hourFormat() === '12');
|
|
5906
|
+
if (done === input.value)
|
|
5907
|
+
return;
|
|
5908
|
+
input.value = done;
|
|
5909
|
+
this.takeTypedTime(done);
|
|
5910
|
+
}
|
|
5857
5911
|
/** In a 12-hour time field the arrow keys up / down switch AM <-> PM (as in usual time fields). */
|
|
5858
5912
|
timeKey(event) {
|
|
5859
5913
|
if (this.kind !== 'time' || this.hourFormat() !== '12' || (event.key !== 'ArrowUp' && event.key !== 'ArrowDown'))
|
|
@@ -5880,7 +5934,7 @@ class DateTimeControl {
|
|
|
5880
5934
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: DateTimeControl, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5881
5935
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: DateTimeControl, isStandalone: true, selector: "vl-datetime", inputs: { field: "field", target: "target", property: "property", kind: "kind", value: "value", readonly: "readonly", keyboard: "keyboard", saveTried: "saveTried", errorMessages: "errorMessages", translations: "translations", inputStyle: "inputStyle", inputClass: "inputClass" }, outputs: { changed: "changed", opened: "opened" }, viewQueries: [{ propertyName: "control", first: true, predicate: ["dt"], descendants: true }], ngImport: i0, template: `
|
|
5882
5936
|
<ng-container *ngIf="!readonly; else shownText">
|
|
5883
|
-
<div class="picker-field" (keydown)="timeKey($event)">
|
|
5937
|
+
<div class="picker-field" (keydown)="timeKey($event)" (focusout)="leaveTime($event)">
|
|
5884
5938
|
<p-datepicker #dp #dt="ngModel" styleClass="custom-datepicker"
|
|
5885
5939
|
[placeholder]="placeholder()" [name]="field?.scope?.reference"
|
|
5886
5940
|
[required]="field?.option?.required === true" [disabled]="field?.option?.disabled"
|
|
@@ -5918,7 +5972,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
5918
5972
|
type: Component,
|
|
5919
5973
|
args: [{ selector: 'vl-datetime', standalone: true, imports: [FormsModule, NgIf, DatePickerModule, CustomKeyboardDirective], viewProviders: [{ provide: ControlContainer, useFactory: (form) => form, deps: [[new Optional(), new SkipSelf(), NgForm]] }], template: `
|
|
5920
5974
|
<ng-container *ngIf="!readonly; else shownText">
|
|
5921
|
-
<div class="picker-field" (keydown)="timeKey($event)">
|
|
5975
|
+
<div class="picker-field" (keydown)="timeKey($event)" (focusout)="leaveTime($event)">
|
|
5922
5976
|
<p-datepicker #dp #dt="ngModel" styleClass="custom-datepicker"
|
|
5923
5977
|
[placeholder]="placeholder()" [name]="field?.scope?.reference"
|
|
5924
5978
|
[required]="field?.option?.required === true" [disabled]="field?.option?.disabled"
|
|
@@ -9790,7 +9844,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
9790
9844
|
|
|
9791
9845
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
9792
9846
|
// - new: option.hideEmpty - an empty field takes no room on the card (hiddenEmpty)
|
|
9793
|
-
// - new:
|
|
9847
|
+
// - new: the buttons of card rows with fields - one narrow column on the right of the card (cardActionButtons)
|
|
9794
9848
|
// - new: dataSource.keepFilter - a filter page opened again shows the filter values typed last and loads its list;
|
|
9795
9849
|
// without it (default) its filters start empty like on the first opening (before: the fields still showed the
|
|
9796
9850
|
// dates while the list waited for them, tm-guided Booked Times)
|
|
@@ -10566,6 +10620,12 @@ class CardComponent {
|
|
|
10566
10620
|
rowButtons(layout) {
|
|
10567
10621
|
return (layout?.elements || []).filter((e) => !e?.scope?.reference);
|
|
10568
10622
|
}
|
|
10623
|
+
/** The buttons of all rows that also hold fields: one column on the right of the card (card.buttonsInRow). */
|
|
10624
|
+
cardActionButtons() {
|
|
10625
|
+
return (this.itemInfo?.layoutSchema?.cards || [])
|
|
10626
|
+
.filter((layout) => layout?.type === 'HorizontalLayout' && this.rowHasFieldsAndButtons(layout))
|
|
10627
|
+
.flatMap((layout) => this.rowButtons(layout));
|
|
10628
|
+
}
|
|
10569
10629
|
/** A row holding fields and buttons: drawn as fields | button group (card.buttonsInRow). */
|
|
10570
10630
|
rowHasFieldsAndButtons(layout) {
|
|
10571
10631
|
return this.rowFields(layout).length > 0 && this.rowButtons(layout).length > 0;
|
|
@@ -10758,7 +10818,7 @@ class CardComponent {
|
|
|
10758
10818
|
return resolveCustomKeyboardType(field?.option, property);
|
|
10759
10819
|
}
|
|
10760
10820
|
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 });
|
|
10761
|
-
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-17\n - new: option.hideEmpty - an empty field of the record takes no room (hiddenEmpty)\n - new: a card row with fields and buttons - the fields share the room, the buttons stand together on the right -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-16\n - new: the card's header area in design mode is marked vl-d-head - its elements keep their bar inside (#171) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n - fix: a card button with icon and caption had its frame round the icon only - ng-zorro took the one wrapper span\n for an icon-only button; icon and caption now stand straight in the button (class schema-btn-content on it)\n Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n - new: a header element with control \"text\" shows its caption without a data field (a page title; worklist 47)\n - new: a header element with option.filter is a filter the page names (dataSource.filters), without a data field\n - new: an empty list shows why (vl-list-empty): fill in the filters, or no entries\n - new: an example record of the sketch is marked (vl-record--sample, vl-record__sample)\n - new: an icon-only button names itself for screen readers (aria-label from its tooltip or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: an element's handles in the order pencil, plus, bin (user) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\n<!-- Shuaib, 2026-10-30\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\n the buttons there keep their own markup (icon or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\n Mouse pad showed \"2 / 5\" while scrolling) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\n - fix: every class of a style is set (classNames), not only the first -->\n<!-- Shuaib 2026-10-26\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\n cardFooter) that the app and the canvas share; the app draws the same as before -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: caption and date pattern from the layout - a data object holds names and types only -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\n - change: the loader also shows while the page's PageData loads or sends (A4)\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\n<!-- Shuaib 2026-10-20\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\n an input writing into the property schema; a text, date or time that was not locked showed only\n its label; an autocomplete showed only with a currency format; the period showed nothing\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\n record's tick), numbers with their label (#166, tests F8-F11)\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\n - change: media fields are the one vl-media (#166 step 4.4)\n - change: the date filter is the one vl-datetime (#166 step 4.4)\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\n - change: check boxes with vl-checkbox (#166 step 4.4)\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\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) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\n card without texts)\n - fix: the price fields read ...?.format.currency; a property without format threw the same\n way (luv2shop: no prices, cards cut off) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\n project defines none; it showed the text \"undefined\" -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\n names another one ('native' keeps the system keyboard)\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\n\n<!-- shuaib 2026-09-24\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\n\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\n - new: a @contract comment naming the types this container does not render. It carries four\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\n\n<!-- @contract the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\n their own blocks (date filter, buttons). -->\n\n @if (design) {\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\n settings -->\n <div class=\"vl-card-runtime vl-d-root\">\n <div class=\"vl-d-container-bar\">\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\n (act)=\"containerAction($event)\"></vl-design-bar>\n </div>\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n @if (itemInfo?.header?.elements?.length) {\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item vl-d-head ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n }\n </div>\n }\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\n @if (!itemInfo?.layoutSchema?.cards?.length) {\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n } @else {\n <div>\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\n <div>{{ dt.emptyCardText }}</div>\n </div>\n }\n </div>\n } @else {\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\n @for (record of designRecords; track $index; let k = $index) {\n <div class=\"card-grid-item vl-d-item\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\n @if (k === 0 && designPage === 0) {\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\n [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\n <div [attr.data-vl-design-element]=\"li\"\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(li, null)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\n [id]=\"designer.innerListId(li)\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(li)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (inner of layout.elements || []; track $index; let ii = $index) {\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(ii, li)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\n </ng-container>\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <!-- the other sample cards are drawn like the app's -->\n <div class=\"vl-d-body\">\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (itemInfo?.footer?.elements && designAll.length) {\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n }\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n </div>\n } @else {\n <!-- Loader Spinner -->\n \n <div *ngIf=\"isLoading || pageData?.loading\" class=\"loader-overlay\">\n <div class=\"spinner\"></div>\n </div>\n <div class=\"vl-card-runtime\">\n <!-- top pagination on card -->\n <div *ngIf=\"\n itemInfo?.layoutSchema?.pagination?.visible &&\n itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.header?.style\n ).classes\">\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index; trackBy: trackHeaderElement\"\n [attr.data-vl-field]=\"vlFieldKey(element)\"\n [attr.data-vl-path]=\"vlFieldPath(element)\"\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.layoutSchema?.style\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\n <!-- an empty list says why: its filters are still open, or there is nothing (fixed texts, the app's language) -->\n <p *ngIf=\"emptyText() as text\" class=\"vl-list-empty\" role=\"status\" [attr.data-vl-empty]=\"pageData?.waitingForFilter ? 'filter' : 'none'\">{{ text }}</p>\n <div *ngFor=\"let record of displayedRecords; let k = index\"\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\n [class.vl-record--send-error]=\"!!record?._vlSendError\" [class.vl-record--sample]=\"!!record?._vlSample\">\n <!-- an example record of the sketch (only in the Designer's preview): marked as such -->\n <span *ngIf=\"record?._vlSample\" class=\"vl-record__sample\">{{ fixedText('Example') }}</span>\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n </ng-container>\n <!-- bottom pagination on card -->\n <div *ngIf=\"\n itemInfo?.data?.length && \n itemInfo?.layoutSchema?.pagination?.visible &&\n !itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n \n @if (scrollPagination) {\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\n aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\n </div>\n }\n </div>\n }\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\n @if (element?.scope?.reference) {\n <div [ngClass]=\"[element?.option?.visible && !hiddenEmpty(element, record) ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\n [propertySchema]=\"itemInfo.propertySchema\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [list]=\"remoteData[element.scope.reference]\"\n (linkClicked)=\"showLinkDetails(element.option, record)\"\n (mediaClicked)=\"showImageDetails(element.option, record)\">\n </vl-control>\n </div>\n } @else if (inner) {\n <div>\n <button nz-button class=\"schema-btn-content\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(getHorizontalLayoutTooltip(element) || element.caption || element.icon) | vlDesignText:designTranslations\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <!-- icon and caption straight in the button: ng-zorro takes a button with ONE child element holding an icon\n for icon-only (ant-btn-icon-only, 32 px) - with a wrapper the frame went round the icon only (hotel Book) -->\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\n </button>\n </div>\n } @else {\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\n <button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <ng-container *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n }\n </ng-template>\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\n <ng-template #headerElement let-element=\"element\">\n <ng-container\n [ngSwitch]=\"element.option?.filter ? 'pageFilter' : element.control === 'text' ? 'text' : renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a text without a data field: the page's title (control \"text\") -->\n <div *ngSwitchCase=\"'text'\" [class]=\"element.option?.visible === false ? 'hidden' : 'card-field-wrapper'\">\n <span role=\"heading\" aria-level=\"1\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label?.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n\n <!-- String Control -->\n <div *ngSwitchCase=\"'string'\"\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\n \n <!-- LABEL -->\n <span *ngIf=\"element.label?.caption\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n \n <!-- a filter the page names itself (dataSource.filters): no field of the data object, its value goes to\n {{filter.<name>}} -->\n <div *ngSwitchCase=\"'pageFilter'\" class=\"mb-3\" [attr.data-vl-field]=\"element.option.filter\" [attr.data-vl-filter]=\"element.option.filter\">\n <vl-control [field]=\"filterField(element) | vlDesignField:designTranslations\" [propertySchema]=\"filterSchema()\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"pageFilterChange(element, $event)\"></vl-control>\n </div>\n\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardHeader(element)\">\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"element?.option?.tooltip || ''\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(element?.option?.tooltip || element.caption || element.icon) | vlDesignText:designTranslations\"\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else headerTextContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #headerTextContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n </ng-container>\n </ng-template>\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\n <ng-template #cardBody let-record=\"record\">\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"'vl-card-body ' + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [ngStyle]=\"\n layout?.type === 'HorizontalLayout'\n ? {}\n : getStyleWithoutClasses(layout?.style).style\n \" [class]=\"\n layout?.type === 'HorizontalLayout'\n ? ''\n : getStyleWithoutClasses(layout?.style).classes\n \">\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout' && rowHasFieldsAndButtons(layout)) {\n <!-- fields and buttons in one row: the fields share the room, the buttons stand together on the right -->\n <div class=\"card-horizontal-layout card-horizontal-layout--actions\"\n [class]=\"'card-horizontal-layout card-horizontal-layout--actions ' + getStyleWithoutClasses(layout?.style).classes\">\n <div class=\"card-row-fields\" [style.grid-template-columns]=\"'repeat(' + rowFields(layout).length + ', minmax(0, 1fr))'\">\n <ng-container *ngFor=\"let innerLayout of rowFields(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n <div class=\"card-row-actions\">\n <ng-container *ngFor=\"let innerLayout of rowButtons(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n } @else if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div class=\"card-horizontal-layout\"\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n }\n </div>\n </div>\n </ng-template>\n <!-- the card page's footer -->\n <ng-template #cardFooter>\n <div [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\n <span\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\n <ng-container\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')\">\n \n <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardFooter(element)\">\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>\n {{ element.caption | vlDesignText:designTranslations }}\n </ng-template>\n </button>\n </div>\n </ng-container>\n </span>\n </div>\n </ng-template>\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}.vl-list-empty{grid-column:1 / -1;margin:24px 0;padding:16px;text-align:center;color:var(--vl-color-text-muted, #6b7280);font-size:.95rem}.card-grid-item.vl-record--sample{position:relative}.vl-record__sample{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);pointer-events:none}.vl-card-body .card-horizontal-layout.card-horizontal-layout--actions{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:8px}.vl-card-body .card-horizontal-layout--actions>.card-row-fields{flex:1 1 auto;min-width:0;display:grid;gap:8px}.vl-card-body .card-horizontal-layout--actions>.card-row-actions{flex:0 0 auto;display:flex;gap:6px;align-items:center}.vl-card-body .card-row-actions>div{width: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-head .vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}.vl-d-head .vl-d-item:hover>.vl-d-bar,.vl-d-head .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" }] });
|
|
10821
|
+
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-17\n - new: option.hideEmpty - an empty field of the record takes no room (hiddenEmpty)\n - new: the buttons of card rows with fields stand in one narrow column on the right, one below the other -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-16\n - new: the card's header area in design mode is marked vl-d-head - its elements keep their bar inside (#171) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n - fix: a card button with icon and caption had its frame round the icon only - ng-zorro took the one wrapper span\n for an icon-only button; icon and caption now stand straight in the button (class schema-btn-content on it)\n Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n - new: a header element with control \"text\" shows its caption without a data field (a page title; worklist 47)\n - new: a header element with option.filter is a filter the page names (dataSource.filters), without a data field\n - new: an empty list shows why (vl-list-empty): fill in the filters, or no entries\n - new: an example record of the sketch is marked (vl-record--sample, vl-record__sample)\n - new: an icon-only button names itself for screen readers (aria-label from its tooltip or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: an element's handles in the order pencil, plus, bin (user) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\n<!-- Shuaib, 2026-10-30\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\n the buttons there keep their own markup (icon or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\n Mouse pad showed \"2 / 5\" while scrolling) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\n - fix: every class of a style is set (classNames), not only the first -->\n<!-- Shuaib 2026-10-26\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\n cardFooter) that the app and the canvas share; the app draws the same as before -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: caption and date pattern from the layout - a data object holds names and types only -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\n - change: the loader also shows while the page's PageData loads or sends (A4)\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\n<!-- Shuaib 2026-10-20\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\n an input writing into the property schema; a text, date or time that was not locked showed only\n its label; an autocomplete showed only with a currency format; the period showed nothing\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\n record's tick), numbers with their label (#166, tests F8-F11)\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\n - change: media fields are the one vl-media (#166 step 4.4)\n - change: the date filter is the one vl-datetime (#166 step 4.4)\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\n - change: check boxes with vl-checkbox (#166 step 4.4)\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\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) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\n card without texts)\n - fix: the price fields read ...?.format.currency; a property without format threw the same\n way (luv2shop: no prices, cards cut off) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\n project defines none; it showed the text \"undefined\" -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\n names another one ('native' keeps the system keyboard)\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\n\n<!-- shuaib 2026-09-24\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\n\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\n - new: a @contract comment naming the types this container does not render. It carries four\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\n\n<!-- @contract the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\n their own blocks (date filter, buttons). -->\n\n @if (design) {\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\n settings -->\n <div class=\"vl-card-runtime vl-d-root\">\n <div class=\"vl-d-container-bar\">\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\n (act)=\"containerAction($event)\"></vl-design-bar>\n </div>\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n @if (itemInfo?.header?.elements?.length) {\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item vl-d-head ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n }\n </div>\n }\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\n @if (!itemInfo?.layoutSchema?.cards?.length) {\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n } @else {\n <div>\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\n <div>{{ dt.emptyCardText }}</div>\n </div>\n }\n </div>\n } @else {\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\n @for (record of designRecords; track $index; let k = $index) {\n <div class=\"card-grid-item vl-d-item\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\n @if (k === 0 && designPage === 0) {\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\n [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\n <div [attr.data-vl-design-element]=\"li\"\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(li, null)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\n [id]=\"designer.innerListId(li)\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(li)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (inner of layout.elements || []; track $index; let ii = $index) {\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(ii, li)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\n </ng-container>\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <!-- the other sample cards are drawn like the app's -->\n <div class=\"vl-d-body\">\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (itemInfo?.footer?.elements && designAll.length) {\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n }\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n </div>\n } @else {\n <!-- Loader Spinner -->\n \n <div *ngIf=\"isLoading || pageData?.loading\" class=\"loader-overlay\">\n <div class=\"spinner\"></div>\n </div>\n <div class=\"vl-card-runtime\">\n <!-- top pagination on card -->\n <div *ngIf=\"\n itemInfo?.layoutSchema?.pagination?.visible &&\n itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.header?.style\n ).classes\">\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index; trackBy: trackHeaderElement\"\n [attr.data-vl-field]=\"vlFieldKey(element)\"\n [attr.data-vl-path]=\"vlFieldPath(element)\"\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.layoutSchema?.style\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\n <!-- an empty list says why: its filters are still open, or there is nothing (fixed texts, the app's language) -->\n <p *ngIf=\"emptyText() as text\" class=\"vl-list-empty\" role=\"status\" [attr.data-vl-empty]=\"pageData?.waitingForFilter ? 'filter' : 'none'\">{{ text }}</p>\n <div *ngFor=\"let record of displayedRecords; let k = index\"\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\n [class.vl-record--send-error]=\"!!record?._vlSendError\" [class.vl-record--sample]=\"!!record?._vlSample\">\n <!-- an example record of the sketch (only in the Designer's preview): marked as such -->\n <span *ngIf=\"record?._vlSample\" class=\"vl-record__sample\">{{ fixedText('Example') }}</span>\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n </ng-container>\n <!-- bottom pagination on card -->\n <div *ngIf=\"\n itemInfo?.data?.length && \n itemInfo?.layoutSchema?.pagination?.visible &&\n !itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n \n @if (scrollPagination) {\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\n aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\n </div>\n }\n </div>\n }\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\n @if (element?.scope?.reference) {\n <div [ngClass]=\"[element?.option?.visible && !hiddenEmpty(element, record) ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\n [propertySchema]=\"itemInfo.propertySchema\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [list]=\"remoteData[element.scope.reference]\"\n (linkClicked)=\"showLinkDetails(element.option, record)\"\n (mediaClicked)=\"showImageDetails(element.option, record)\">\n </vl-control>\n </div>\n } @else if (inner) {\n <div>\n <button nz-button class=\"schema-btn-content\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(getHorizontalLayoutTooltip(element) || element.caption || element.icon) | vlDesignText:designTranslations\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <!-- icon and caption straight in the button: ng-zorro takes a button with ONE child element holding an icon\n for icon-only (ant-btn-icon-only, 32 px) - with a wrapper the frame went round the icon only (hotel Book) -->\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\n </button>\n </div>\n } @else {\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\n <button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <ng-container *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n }\n </ng-template>\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\n <ng-template #headerElement let-element=\"element\">\n <ng-container\n [ngSwitch]=\"element.option?.filter ? 'pageFilter' : element.control === 'text' ? 'text' : renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a text without a data field: the page's title (control \"text\") -->\n <div *ngSwitchCase=\"'text'\" [class]=\"element.option?.visible === false ? 'hidden' : 'card-field-wrapper'\">\n <span role=\"heading\" aria-level=\"1\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label?.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n\n <!-- String Control -->\n <div *ngSwitchCase=\"'string'\"\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\n \n <!-- LABEL -->\n <span *ngIf=\"element.label?.caption\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n \n <!-- a filter the page names itself (dataSource.filters): no field of the data object, its value goes to\n {{filter.<name>}} -->\n <div *ngSwitchCase=\"'pageFilter'\" class=\"mb-3\" [attr.data-vl-field]=\"element.option.filter\" [attr.data-vl-filter]=\"element.option.filter\">\n <vl-control [field]=\"filterField(element) | vlDesignField:designTranslations\" [propertySchema]=\"filterSchema()\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"pageFilterChange(element, $event)\"></vl-control>\n </div>\n\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardHeader(element)\">\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"element?.option?.tooltip || ''\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(element?.option?.tooltip || element.caption || element.icon) | vlDesignText:designTranslations\"\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else headerTextContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #headerTextContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n </ng-container>\n </ng-template>\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\n <ng-template #cardBody let-record=\"record\">\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"'vl-card-body ' + (cardActionButtons().length ? 'vl-card-body--actions ' : '') + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [ngStyle]=\"\n layout?.type === 'HorizontalLayout'\n ? {}\n : getStyleWithoutClasses(layout?.style).style\n \" [class]=\"\n layout?.type === 'HorizontalLayout'\n ? ''\n : getStyleWithoutClasses(layout?.style).classes\n \">\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout' && rowHasFieldsAndButtons(layout)) {\n <!-- fields and buttons in one row: the fields share the room, the buttons stand together on the right -->\n <div class=\"card-horizontal-layout card-horizontal-layout--actions\"\n [class]=\"'card-horizontal-layout card-horizontal-layout--actions ' + getStyleWithoutClasses(layout?.style).classes\">\n <div class=\"card-row-fields\" [style.grid-template-columns]=\"'repeat(' + rowFields(layout).length + ', minmax(0, 1fr))'\">\n <ng-container *ngFor=\"let innerLayout of rowFields(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n } @else if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div class=\"card-horizontal-layout\"\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n }\n </div>\n @if (cardActionButtons().length) {\n <!-- the buttons of rows with fields: one narrow column on the right, one below the other -->\n <div class=\"card-actions-column\" [style.grid-row]=\"'1 / span ' + (itemInfo?.layoutSchema?.cards?.length || 1)\">\n <ng-container *ngFor=\"let button of cardActionButtons()\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: button, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n }\n </div>\n </ng-template>\n <!-- the card page's footer -->\n <ng-template #cardFooter>\n <div [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\n <span\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\n <ng-container\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')\">\n \n <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardFooter(element)\">\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>\n {{ element.caption | vlDesignText:designTranslations }}\n </ng-template>\n </button>\n </div>\n </ng-container>\n </span>\n </div>\n </ng-template>\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}.vl-list-empty{grid-column:1 / -1;margin:24px 0;padding:16px;text-align:center;color:var(--vl-color-text-muted, #6b7280);font-size:.95rem}.card-grid-item.vl-record--sample{position:relative}.vl-record__sample{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);pointer-events:none}.vl-card-body .card-horizontal-layout.card-horizontal-layout--actions{display:block!important;grid-template-columns:none!important}.vl-card-body .card-horizontal-layout--actions>.card-row-fields{min-width:0;display:grid;gap:8px}.vl-card-body.vl-card-body--actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}.vl-card-body.vl-card-body--actions>.card-layout-item{grid-column:1}.vl-card-body.vl-card-body--actions>.card-actions-column{grid-column:2;display:flex;flex-direction:column;gap:4px;align-items:center}.vl-card-body .card-actions-column>div{width:auto}.vl-card-body .card-actions-column button{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}\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-head .vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}.vl-d-head .vl-d-item:hover>.vl-d-bar,.vl-d-head .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" }] });
|
|
10762
10822
|
}
|
|
10763
10823
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CardComponent, decorators: [{
|
|
10764
10824
|
type: Component,
|
|
@@ -10777,7 +10837,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
10777
10837
|
DragDropModule,
|
|
10778
10838
|
DesignBarComponent,
|
|
10779
10839
|
DropMarkerComponent,
|
|
10780
|
-
], standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n - new: option.hideEmpty - an empty field of the record takes no room (hiddenEmpty)\n - new: a card row with fields and buttons - the fields share the room, the buttons stand together on the right -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-16\n - new: the card's header area in design mode is marked vl-d-head - its elements keep their bar inside (#171) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n - fix: a card button with icon and caption had its frame round the icon only - ng-zorro took the one wrapper span\n for an icon-only button; icon and caption now stand straight in the button (class schema-btn-content on it)\n Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n - new: a header element with control \"text\" shows its caption without a data field (a page title; worklist 47)\n - new: a header element with option.filter is a filter the page names (dataSource.filters), without a data field\n - new: an empty list shows why (vl-list-empty): fill in the filters, or no entries\n - new: an example record of the sketch is marked (vl-record--sample, vl-record__sample)\n - new: an icon-only button names itself for screen readers (aria-label from its tooltip or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: an element's handles in the order pencil, plus, bin (user) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\n<!-- Shuaib, 2026-10-30\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\n the buttons there keep their own markup (icon or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\n Mouse pad showed \"2 / 5\" while scrolling) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\n - fix: every class of a style is set (classNames), not only the first -->\n<!-- Shuaib 2026-10-26\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\n cardFooter) that the app and the canvas share; the app draws the same as before -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: caption and date pattern from the layout - a data object holds names and types only -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\n - change: the loader also shows while the page's PageData loads or sends (A4)\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\n<!-- Shuaib 2026-10-20\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\n an input writing into the property schema; a text, date or time that was not locked showed only\n its label; an autocomplete showed only with a currency format; the period showed nothing\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\n record's tick), numbers with their label (#166, tests F8-F11)\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\n - change: media fields are the one vl-media (#166 step 4.4)\n - change: the date filter is the one vl-datetime (#166 step 4.4)\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\n - change: check boxes with vl-checkbox (#166 step 4.4)\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\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) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\n card without texts)\n - fix: the price fields read ...?.format.currency; a property without format threw the same\n way (luv2shop: no prices, cards cut off) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\n project defines none; it showed the text \"undefined\" -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\n names another one ('native' keeps the system keyboard)\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\n\n<!-- shuaib 2026-09-24\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\n\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\n - new: a @contract comment naming the types this container does not render. It carries four\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\n\n<!-- @contract the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\n their own blocks (date filter, buttons). -->\n\n @if (design) {\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\n settings -->\n <div class=\"vl-card-runtime vl-d-root\">\n <div class=\"vl-d-container-bar\">\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\n (act)=\"containerAction($event)\"></vl-design-bar>\n </div>\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n @if (itemInfo?.header?.elements?.length) {\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item vl-d-head ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n }\n </div>\n }\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\n @if (!itemInfo?.layoutSchema?.cards?.length) {\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n } @else {\n <div>\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\n <div>{{ dt.emptyCardText }}</div>\n </div>\n }\n </div>\n } @else {\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\n @for (record of designRecords; track $index; let k = $index) {\n <div class=\"card-grid-item vl-d-item\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\n @if (k === 0 && designPage === 0) {\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\n [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\n <div [attr.data-vl-design-element]=\"li\"\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(li, null)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\n [id]=\"designer.innerListId(li)\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(li)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (inner of layout.elements || []; track $index; let ii = $index) {\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(ii, li)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\n </ng-container>\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <!-- the other sample cards are drawn like the app's -->\n <div class=\"vl-d-body\">\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (itemInfo?.footer?.elements && designAll.length) {\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n }\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n </div>\n } @else {\n <!-- Loader Spinner -->\n \n <div *ngIf=\"isLoading || pageData?.loading\" class=\"loader-overlay\">\n <div class=\"spinner\"></div>\n </div>\n <div class=\"vl-card-runtime\">\n <!-- top pagination on card -->\n <div *ngIf=\"\n itemInfo?.layoutSchema?.pagination?.visible &&\n itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.header?.style\n ).classes\">\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index; trackBy: trackHeaderElement\"\n [attr.data-vl-field]=\"vlFieldKey(element)\"\n [attr.data-vl-path]=\"vlFieldPath(element)\"\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.layoutSchema?.style\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\n <!-- an empty list says why: its filters are still open, or there is nothing (fixed texts, the app's language) -->\n <p *ngIf=\"emptyText() as text\" class=\"vl-list-empty\" role=\"status\" [attr.data-vl-empty]=\"pageData?.waitingForFilter ? 'filter' : 'none'\">{{ text }}</p>\n <div *ngFor=\"let record of displayedRecords; let k = index\"\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\n [class.vl-record--send-error]=\"!!record?._vlSendError\" [class.vl-record--sample]=\"!!record?._vlSample\">\n <!-- an example record of the sketch (only in the Designer's preview): marked as such -->\n <span *ngIf=\"record?._vlSample\" class=\"vl-record__sample\">{{ fixedText('Example') }}</span>\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n </ng-container>\n <!-- bottom pagination on card -->\n <div *ngIf=\"\n itemInfo?.data?.length && \n itemInfo?.layoutSchema?.pagination?.visible &&\n !itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n \n @if (scrollPagination) {\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\n aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\n </div>\n }\n </div>\n }\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\n @if (element?.scope?.reference) {\n <div [ngClass]=\"[element?.option?.visible && !hiddenEmpty(element, record) ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\n [propertySchema]=\"itemInfo.propertySchema\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [list]=\"remoteData[element.scope.reference]\"\n (linkClicked)=\"showLinkDetails(element.option, record)\"\n (mediaClicked)=\"showImageDetails(element.option, record)\">\n </vl-control>\n </div>\n } @else if (inner) {\n <div>\n <button nz-button class=\"schema-btn-content\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(getHorizontalLayoutTooltip(element) || element.caption || element.icon) | vlDesignText:designTranslations\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <!-- icon and caption straight in the button: ng-zorro takes a button with ONE child element holding an icon\n for icon-only (ant-btn-icon-only, 32 px) - with a wrapper the frame went round the icon only (hotel Book) -->\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\n </button>\n </div>\n } @else {\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\n <button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <ng-container *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n }\n </ng-template>\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\n <ng-template #headerElement let-element=\"element\">\n <ng-container\n [ngSwitch]=\"element.option?.filter ? 'pageFilter' : element.control === 'text' ? 'text' : renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a text without a data field: the page's title (control \"text\") -->\n <div *ngSwitchCase=\"'text'\" [class]=\"element.option?.visible === false ? 'hidden' : 'card-field-wrapper'\">\n <span role=\"heading\" aria-level=\"1\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label?.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n\n <!-- String Control -->\n <div *ngSwitchCase=\"'string'\"\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\n \n <!-- LABEL -->\n <span *ngIf=\"element.label?.caption\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n \n <!-- a filter the page names itself (dataSource.filters): no field of the data object, its value goes to\n {{filter.<name>}} -->\n <div *ngSwitchCase=\"'pageFilter'\" class=\"mb-3\" [attr.data-vl-field]=\"element.option.filter\" [attr.data-vl-filter]=\"element.option.filter\">\n <vl-control [field]=\"filterField(element) | vlDesignField:designTranslations\" [propertySchema]=\"filterSchema()\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"pageFilterChange(element, $event)\"></vl-control>\n </div>\n\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardHeader(element)\">\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"element?.option?.tooltip || ''\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(element?.option?.tooltip || element.caption || element.icon) | vlDesignText:designTranslations\"\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else headerTextContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #headerTextContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n </ng-container>\n </ng-template>\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\n <ng-template #cardBody let-record=\"record\">\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"'vl-card-body ' + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [ngStyle]=\"\n layout?.type === 'HorizontalLayout'\n ? {}\n : getStyleWithoutClasses(layout?.style).style\n \" [class]=\"\n layout?.type === 'HorizontalLayout'\n ? ''\n : getStyleWithoutClasses(layout?.style).classes\n \">\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout' && rowHasFieldsAndButtons(layout)) {\n <!-- fields and buttons in one row: the fields share the room, the buttons stand together on the right -->\n <div class=\"card-horizontal-layout card-horizontal-layout--actions\"\n [class]=\"'card-horizontal-layout card-horizontal-layout--actions ' + getStyleWithoutClasses(layout?.style).classes\">\n <div class=\"card-row-fields\" [style.grid-template-columns]=\"'repeat(' + rowFields(layout).length + ', minmax(0, 1fr))'\">\n <ng-container *ngFor=\"let innerLayout of rowFields(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n <div class=\"card-row-actions\">\n <ng-container *ngFor=\"let innerLayout of rowButtons(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n } @else if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div class=\"card-horizontal-layout\"\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n }\n </div>\n </div>\n </ng-template>\n <!-- the card page's footer -->\n <ng-template #cardFooter>\n <div [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\n <span\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\n <ng-container\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')\">\n \n <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardFooter(element)\">\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>\n {{ element.caption | vlDesignText:designTranslations }}\n </ng-template>\n </button>\n </div>\n </ng-container>\n </span>\n </div>\n </ng-template>\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}.vl-list-empty{grid-column:1 / -1;margin:24px 0;padding:16px;text-align:center;color:var(--vl-color-text-muted, #6b7280);font-size:.95rem}.card-grid-item.vl-record--sample{position:relative}.vl-record__sample{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);pointer-events:none}.vl-card-body .card-horizontal-layout.card-horizontal-layout--actions{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:8px}.vl-card-body .card-horizontal-layout--actions>.card-row-fields{flex:1 1 auto;min-width:0;display:grid;gap:8px}.vl-card-body .card-horizontal-layout--actions>.card-row-actions{flex:0 0 auto;display:flex;gap:6px;align-items:center}.vl-card-body .card-row-actions>div{width: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-head .vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}.vl-d-head .vl-d-item:hover>.vl-d-bar,.vl-d-head .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"] }]
|
|
10840
|
+
], standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n - new: option.hideEmpty - an empty field of the record takes no room (hiddenEmpty)\n - new: the buttons of card rows with fields stand in one narrow column on the right, one below the other -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-16\n - new: the card's header area in design mode is marked vl-d-head - its elements keep their bar inside (#171) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n - fix: a card button with icon and caption had its frame round the icon only - ng-zorro took the one wrapper span\n for an icon-only button; icon and caption now stand straight in the button (class schema-btn-content on it)\n Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n - new: a header element with control \"text\" shows its caption without a data field (a page title; worklist 47)\n - new: a header element with option.filter is a filter the page names (dataSource.filters), without a data field\n - new: an empty list shows why (vl-list-empty): fill in the filters, or no entries\n - new: an example record of the sketch is marked (vl-record--sample, vl-record__sample)\n - new: an icon-only button names itself for screen readers (aria-label from its tooltip or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: an element's handles in the order pencil, plus, bin (user) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\n<!-- Shuaib, 2026-10-30\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\n the buttons there keep their own markup (icon or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\n Mouse pad showed \"2 / 5\" while scrolling) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\n - fix: every class of a style is set (classNames), not only the first -->\n<!-- Shuaib 2026-10-26\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\n cardFooter) that the app and the canvas share; the app draws the same as before -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: caption and date pattern from the layout - a data object holds names and types only -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\n - change: the loader also shows while the page's PageData loads or sends (A4)\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\n<!-- Shuaib 2026-10-20\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\n an input writing into the property schema; a text, date or time that was not locked showed only\n its label; an autocomplete showed only with a currency format; the period showed nothing\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\n record's tick), numbers with their label (#166, tests F8-F11)\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\n - change: media fields are the one vl-media (#166 step 4.4)\n - change: the date filter is the one vl-datetime (#166 step 4.4)\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\n - change: check boxes with vl-checkbox (#166 step 4.4)\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\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) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\n card without texts)\n - fix: the price fields read ...?.format.currency; a property without format threw the same\n way (luv2shop: no prices, cards cut off) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\n project defines none; it showed the text \"undefined\" -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\n names another one ('native' keeps the system keyboard)\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\n\n<!-- shuaib 2026-09-24\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\n\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\n - new: a @contract comment naming the types this container does not render. It carries four\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\n\n<!-- @contract the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\n their own blocks (date filter, buttons). -->\n\n @if (design) {\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\n settings -->\n <div class=\"vl-card-runtime vl-d-root\">\n <div class=\"vl-d-container-bar\">\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\n (act)=\"containerAction($event)\"></vl-design-bar>\n </div>\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n @if (itemInfo?.header?.elements?.length) {\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item vl-d-head ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n }\n </div>\n }\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\n @if (!itemInfo?.layoutSchema?.cards?.length) {\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n } @else {\n <div>\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\n <div>{{ dt.emptyCardText }}</div>\n </div>\n }\n </div>\n } @else {\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\n @for (record of designRecords; track $index; let k = $index) {\n <div class=\"card-grid-item vl-d-item\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\n @if (k === 0 && designPage === 0) {\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\n [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\n <div [attr.data-vl-design-element]=\"li\"\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(li, null)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\n [id]=\"designer.innerListId(li)\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(li)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (inner of layout.elements || []; track $index; let ii = $index) {\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(ii, li)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\n </ng-container>\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <!-- the other sample cards are drawn like the app's -->\n <div class=\"vl-d-body\">\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (itemInfo?.footer?.elements && designAll.length) {\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n }\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n </div>\n } @else {\n <!-- Loader Spinner -->\n \n <div *ngIf=\"isLoading || pageData?.loading\" class=\"loader-overlay\">\n <div class=\"spinner\"></div>\n </div>\n <div class=\"vl-card-runtime\">\n <!-- top pagination on card -->\n <div *ngIf=\"\n itemInfo?.layoutSchema?.pagination?.visible &&\n itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.header?.style\n ).classes\">\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index; trackBy: trackHeaderElement\"\n [attr.data-vl-field]=\"vlFieldKey(element)\"\n [attr.data-vl-path]=\"vlFieldPath(element)\"\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.layoutSchema?.style\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\n <!-- an empty list says why: its filters are still open, or there is nothing (fixed texts, the app's language) -->\n <p *ngIf=\"emptyText() as text\" class=\"vl-list-empty\" role=\"status\" [attr.data-vl-empty]=\"pageData?.waitingForFilter ? 'filter' : 'none'\">{{ text }}</p>\n <div *ngFor=\"let record of displayedRecords; let k = index\"\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\n [class.vl-record--send-error]=\"!!record?._vlSendError\" [class.vl-record--sample]=\"!!record?._vlSample\">\n <!-- an example record of the sketch (only in the Designer's preview): marked as such -->\n <span *ngIf=\"record?._vlSample\" class=\"vl-record__sample\">{{ fixedText('Example') }}</span>\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n </ng-container>\n <!-- bottom pagination on card -->\n <div *ngIf=\"\n itemInfo?.data?.length && \n itemInfo?.layoutSchema?.pagination?.visible &&\n !itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n \n @if (scrollPagination) {\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\n aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\n </div>\n }\n </div>\n }\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\n @if (element?.scope?.reference) {\n <div [ngClass]=\"[element?.option?.visible && !hiddenEmpty(element, record) ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\n [propertySchema]=\"itemInfo.propertySchema\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [list]=\"remoteData[element.scope.reference]\"\n (linkClicked)=\"showLinkDetails(element.option, record)\"\n (mediaClicked)=\"showImageDetails(element.option, record)\">\n </vl-control>\n </div>\n } @else if (inner) {\n <div>\n <button nz-button class=\"schema-btn-content\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(getHorizontalLayoutTooltip(element) || element.caption || element.icon) | vlDesignText:designTranslations\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <!-- icon and caption straight in the button: ng-zorro takes a button with ONE child element holding an icon\n for icon-only (ant-btn-icon-only, 32 px) - with a wrapper the frame went round the icon only (hotel Book) -->\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\n </button>\n </div>\n } @else {\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\n <button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <ng-container *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n }\n </ng-template>\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\n <ng-template #headerElement let-element=\"element\">\n <ng-container\n [ngSwitch]=\"element.option?.filter ? 'pageFilter' : element.control === 'text' ? 'text' : renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a text without a data field: the page's title (control \"text\") -->\n <div *ngSwitchCase=\"'text'\" [class]=\"element.option?.visible === false ? 'hidden' : 'card-field-wrapper'\">\n <span role=\"heading\" aria-level=\"1\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label?.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n\n <!-- String Control -->\n <div *ngSwitchCase=\"'string'\"\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\n \n <!-- LABEL -->\n <span *ngIf=\"element.label?.caption\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n \n <!-- a filter the page names itself (dataSource.filters): no field of the data object, its value goes to\n {{filter.<name>}} -->\n <div *ngSwitchCase=\"'pageFilter'\" class=\"mb-3\" [attr.data-vl-field]=\"element.option.filter\" [attr.data-vl-filter]=\"element.option.filter\">\n <vl-control [field]=\"filterField(element) | vlDesignField:designTranslations\" [propertySchema]=\"filterSchema()\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"pageFilterChange(element, $event)\"></vl-control>\n </div>\n\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardHeader(element)\">\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"element?.option?.tooltip || ''\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(element?.option?.tooltip || element.caption || element.icon) | vlDesignText:designTranslations\"\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else headerTextContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #headerTextContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n </ng-container>\n </ng-template>\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\n <ng-template #cardBody let-record=\"record\">\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"'vl-card-body ' + (cardActionButtons().length ? 'vl-card-body--actions ' : '') + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [ngStyle]=\"\n layout?.type === 'HorizontalLayout'\n ? {}\n : getStyleWithoutClasses(layout?.style).style\n \" [class]=\"\n layout?.type === 'HorizontalLayout'\n ? ''\n : getStyleWithoutClasses(layout?.style).classes\n \">\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout' && rowHasFieldsAndButtons(layout)) {\n <!-- fields and buttons in one row: the fields share the room, the buttons stand together on the right -->\n <div class=\"card-horizontal-layout card-horizontal-layout--actions\"\n [class]=\"'card-horizontal-layout card-horizontal-layout--actions ' + getStyleWithoutClasses(layout?.style).classes\">\n <div class=\"card-row-fields\" [style.grid-template-columns]=\"'repeat(' + rowFields(layout).length + ', minmax(0, 1fr))'\">\n <ng-container *ngFor=\"let innerLayout of rowFields(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n } @else if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div class=\"card-horizontal-layout\"\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n }\n </div>\n @if (cardActionButtons().length) {\n <!-- the buttons of rows with fields: one narrow column on the right, one below the other -->\n <div class=\"card-actions-column\" [style.grid-row]=\"'1 / span ' + (itemInfo?.layoutSchema?.cards?.length || 1)\">\n <ng-container *ngFor=\"let button of cardActionButtons()\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: button, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n }\n </div>\n </ng-template>\n <!-- the card page's footer -->\n <ng-template #cardFooter>\n <div [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\n <span\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\n <ng-container\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')\">\n \n <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardFooter(element)\">\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>\n {{ element.caption | vlDesignText:designTranslations }}\n </ng-template>\n </button>\n </div>\n </ng-container>\n </span>\n </div>\n </ng-template>\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}.vl-list-empty{grid-column:1 / -1;margin:24px 0;padding:16px;text-align:center;color:var(--vl-color-text-muted, #6b7280);font-size:.95rem}.card-grid-item.vl-record--sample{position:relative}.vl-record__sample{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);pointer-events:none}.vl-card-body .card-horizontal-layout.card-horizontal-layout--actions{display:block!important;grid-template-columns:none!important}.vl-card-body .card-horizontal-layout--actions>.card-row-fields{min-width:0;display:grid;gap:8px}.vl-card-body.vl-card-body--actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}.vl-card-body.vl-card-body--actions>.card-layout-item{grid-column:1}.vl-card-body.vl-card-body--actions>.card-actions-column{grid-column:2;display:flex;flex-direction:column;gap:4px;align-items:center}.vl-card-body .card-actions-column>div{width:auto}.vl-card-body .card-actions-column button{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}\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-head .vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}.vl-d-head .vl-d-item:hover>.vl-d-bar,.vl-d-head .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"] }]
|
|
10781
10841
|
}], 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: [{
|
|
10782
10842
|
type: Input
|
|
10783
10843
|
}], pageData: [{
|
|
@@ -18287,5 +18347,5 @@ function termsUser(userInfo) {
|
|
|
18287
18347
|
* Generated bundle index. Do not edit.
|
|
18288
18348
|
*/
|
|
18289
18349
|
|
|
18290
|
-
export { ADDON_API_VERSION, ADDON_TEST_KIT, AddonCheckRefused, 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, addonRecords, applyLayoutDefaults, applyMapping, backendTermsState, backendUrl, blankComments, buildBackendCall, buttonLocked, bytesOfBase64, cardButton, checkCheckResult, checkHandler, 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, durationText, 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, loadErrorOf, lockHint, lockReason, lockReasons, mappedValues, mediaKind, moveCardElement, moveColumn, moveField, moveSection, moveTreeNode, newButton, newSection, nextZoom, normalizeCard, normalizeCustomKeyboardType, normalizeSections, numberShape, numberStep, numberSuffix, parseAnswer, parseRecords, parseStorageDate, parseTimeText, perUserField, primeDatePattern, proxyFor, rebalanceRow, recordOf, recordsFrom, removeCardElement, removeColumn, removeField, removeHeaderElement, removeSection, removeTreeNode, renewSignIn, 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, setSignInRenewal, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storageKeyOf, 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 };
|
|
18350
|
+
export { ADDON_API_VERSION, ADDON_TEST_KIT, AddonCheckRefused, 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, addonRecords, applyLayoutDefaults, applyMapping, backendTermsState, backendUrl, blankComments, buildBackendCall, buttonLocked, bytesOfBase64, cardButton, checkCheckResult, checkHandler, checkRouteResult, checkTransformResult, clearHeader, cloneLayout, columnFromProperty, completeTimeText, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, dependsOnForm, designDropIds, designField, designText, designTexts, designerLinksOn, designerPlace, displayDateValue, displayNumber, dropCardProperty, dropGridProperty, dropObjectName, dropProperty, dropTypeAt, durationText, 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, loadErrorOf, lockHint, lockReason, lockReasons, mappedValues, mediaKind, moveCardElement, moveColumn, moveField, moveSection, moveTreeNode, newButton, newSection, nextZoom, normalizeCard, normalizeCustomKeyboardType, normalizeSections, numberShape, numberStep, numberSuffix, parseAnswer, parseRecords, parseStorageDate, parseTimeText, perUserField, primeDatePattern, proxyFor, rebalanceRow, recordOf, recordsFrom, removeCardElement, removeColumn, removeField, removeHeaderElement, removeSection, removeTreeNode, renewSignIn, 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, setSignInRenewal, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storageKeyOf, 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 };
|
|
18291
18351
|
//# sourceMappingURL=yomotech-view-toolkit.mjs.map
|