@yomotech/view-toolkit 1.0.71 → 1.0.72
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.
|
@@ -1866,6 +1866,8 @@ function withAppPagination(mainCenter, center) {
|
|
|
1866
1866
|
};
|
|
1867
1867
|
}
|
|
1868
1868
|
|
|
1869
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
1870
|
+
// - new: composeDisplayText - option.displayText, one text from several fields formatted by their types ({{a|ifOtherDay:b}})
|
|
1869
1871
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
1870
1872
|
// - new: displayDurationText - a duration in a list (data type "duration")
|
|
1871
1873
|
// Shuaib 2026-10-21
|
|
@@ -1904,6 +1906,43 @@ function displayDurationText(value, option) {
|
|
|
1904
1906
|
const text = durationText(value, option);
|
|
1905
1907
|
return isEmptyValue(text) ? EMPTY_TEXT : String(text);
|
|
1906
1908
|
}
|
|
1909
|
+
/** The day of a date value (Date or text) as yyyy-mm-dd in local time; '' when there is none. */
|
|
1910
|
+
function dayOf(value) {
|
|
1911
|
+
if (value instanceof Date) {
|
|
1912
|
+
return isNaN(value.getTime()) ? '' : `${value.getFullYear()}-${String(value.getMonth() + 1).padStart(2, '0')}-${String(value.getDate()).padStart(2, '0')}`;
|
|
1913
|
+
}
|
|
1914
|
+
const m = /^(\d{4}-\d{2}-\d{2})/.exec(String(value ?? ''));
|
|
1915
|
+
return m ? m[1] : '';
|
|
1916
|
+
}
|
|
1917
|
+
/** A value of the record as its type shows it in a list (date, time, duration, date and time, other as text). */
|
|
1918
|
+
function shownValue(value, type) {
|
|
1919
|
+
if (isEmptyValue(value))
|
|
1920
|
+
return '';
|
|
1921
|
+
const kind = String(type || '').toLowerCase();
|
|
1922
|
+
if (kind === 'duration')
|
|
1923
|
+
return String(durationText(value) ?? '');
|
|
1924
|
+
if (kind === 'date' || kind === 'time')
|
|
1925
|
+
return String(displayDateValue(value, kind) ?? '');
|
|
1926
|
+
if (['datetime', 'date-time', 'date&time'].includes(kind))
|
|
1927
|
+
return String(displayDateValue(value, 'datetime') ?? '');
|
|
1928
|
+
return String(value);
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* option.displayText: one text built from several fields of the record, each shown as its type shows it -
|
|
1932
|
+
* "{{dateFrom}} {{timeFrom}} – {{dateTo|ifOtherDay:dateFrom}} {{timeTo}}" -> "17.11.2026 08:00 – 09:00" (the second date
|
|
1933
|
+
* only when it is another day). {{name|ifOtherDay:other}} is empty when both are the same day. Spaces left by an empty
|
|
1934
|
+
* value are closed; "--" when nothing is left.
|
|
1935
|
+
*/
|
|
1936
|
+
function composeDisplayText(template, record, properties) {
|
|
1937
|
+
const text = String(template ?? '').replace(/\{\{\s*([A-Za-z0-9_]+)\s*(?:\|\s*ifOtherDay\s*:\s*([A-Za-z0-9_]+)\s*)?\}\}/g, (_all, name, other) => {
|
|
1938
|
+
const value = record?.[name];
|
|
1939
|
+
if (other && dayOf(value) && dayOf(value) === dayOf(record?.[other]))
|
|
1940
|
+
return '';
|
|
1941
|
+
return shownValue(value, properties?.[name]?.type);
|
|
1942
|
+
});
|
|
1943
|
+
const clean = text.replace(/\s+/g, ' ').trim();
|
|
1944
|
+
return clean ? clean : EMPTY_TEXT;
|
|
1945
|
+
}
|
|
1907
1946
|
/**
|
|
1908
1947
|
* The entries of a selection: the Designer's allowed values with their labels
|
|
1909
1948
|
* (option.fieldData.validation.enum, option.labels), or the field's list (the property's data, from
|
|
@@ -8612,6 +8651,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
8612
8651
|
type: Output
|
|
8613
8652
|
}] } });
|
|
8614
8653
|
|
|
8654
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
8655
|
+
// - new: option.displayText - in a list one text from several fields of the record (composeDisplayText)
|
|
8615
8656
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
8616
8657
|
// - new: a field of data type "duration" shows HH:mm in a list (displayDurationText)
|
|
8617
8658
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14
|
|
@@ -8786,8 +8827,12 @@ class ControlComponent {
|
|
|
8786
8827
|
this.row = this.propertySchema?.[splitReference(this.field?.scope?.reference).scope];
|
|
8787
8828
|
this.kind = controlKind(this.field, this.property);
|
|
8788
8829
|
// in a list, older layouts mark a date or time text by its own pattern (option.dateFormat / timeFormat)
|
|
8830
|
+
// option.displayText: one text from several fields of the record (composeDisplayText) - shown as text
|
|
8831
|
+
if (this.mode === 'display' && typeof this.field?.option?.displayText === 'string' && this.field.option.displayText.trim())
|
|
8832
|
+
this.kind = 'text';
|
|
8789
8833
|
if (this.mode === 'display' && this.kind === 'text') {
|
|
8790
|
-
if (this.field?.option?.
|
|
8834
|
+
if (this.field?.option?.displayText) { /* the text decides */ }
|
|
8835
|
+
else if (this.field?.option?.dateFormat)
|
|
8791
8836
|
this.kind = 'date';
|
|
8792
8837
|
else if (this.field?.option?.timeFormat)
|
|
8793
8838
|
this.kind = 'time';
|
|
@@ -8826,6 +8871,9 @@ class ControlComponent {
|
|
|
8826
8871
|
}
|
|
8827
8872
|
/** a plain value of a list as text, "--" when empty */
|
|
8828
8873
|
get text() {
|
|
8874
|
+
const template = this.field?.option?.displayText;
|
|
8875
|
+
if (this.display && typeof template === 'string' && template.trim())
|
|
8876
|
+
return composeDisplayText(template, this.record, this.row);
|
|
8829
8877
|
return displayText(this.value);
|
|
8830
8878
|
}
|
|
8831
8879
|
/** the row a number reads its currency field from: the record in a list */
|
|
@@ -9741,6 +9789,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
9741
9789
|
}], ctorParameters: () => [{ type: Couchdb }, { type: UtilityService }, { type: i1$2.Platform }] });
|
|
9742
9790
|
|
|
9743
9791
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
9792
|
+
// - new: option.hideEmpty - an empty field takes no room on the card (hiddenEmpty)
|
|
9744
9793
|
// - new: dataSource.keepFilter - a filter page opened again shows the filter values typed last and loads its list;
|
|
9745
9794
|
// without it (default) its filters start empty like on the first opening (before: the fields still showed the
|
|
9746
9795
|
// dates while the list waited for them, tm-guided Booked Times)
|
|
@@ -10508,6 +10557,10 @@ class CardComponent {
|
|
|
10508
10557
|
return alignRowsOf(this.itemInfo?.layoutSchema);
|
|
10509
10558
|
}
|
|
10510
10559
|
/** An element of the card that holds buttons (a button, or a row with one) - it goes to the bottom of an aligned card. */
|
|
10560
|
+
/** option.hideEmpty: a field whose value is empty in this record takes no room on the card (no "--" row). */
|
|
10561
|
+
hiddenEmpty(element, record) {
|
|
10562
|
+
return element?.option?.hideEmpty === true && !element?.option?.displayText && isEmptyValue(displayValue(element, record));
|
|
10563
|
+
}
|
|
10511
10564
|
isActionLayout(layout) {
|
|
10512
10565
|
if (layout?.scope?.reference)
|
|
10513
10566
|
return false;
|
|
@@ -10692,7 +10745,7 @@ class CardComponent {
|
|
|
10692
10745
|
return resolveCustomKeyboardType(field?.option, property);
|
|
10693
10746
|
}
|
|
10694
10747
|
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 });
|
|
10695
|
-
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-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 ? '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') {\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}\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" }] });
|
|
10748
|
+
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<!-- 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') {\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}\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" }] });
|
|
10696
10749
|
}
|
|
10697
10750
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CardComponent, decorators: [{
|
|
10698
10751
|
type: Component,
|
|
@@ -10711,7 +10764,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
10711
10764
|
DragDropModule,
|
|
10712
10765
|
DesignBarComponent,
|
|
10713
10766
|
DropMarkerComponent,
|
|
10714
|
-
], standalone: true, template: "<!-- 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 ? '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') {\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}\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"] }]
|
|
10767
|
+
], 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<!-- 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') {\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}\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"] }]
|
|
10715
10768
|
}], 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: [{
|
|
10716
10769
|
type: Input
|
|
10717
10770
|
}], pageData: [{
|