@yomotech/view-toolkit 1.0.82 → 1.0.84
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.
- package/fesm2022/yomotech-view-toolkit-catalog.mjs +53 -12
- package/fesm2022/yomotech-view-toolkit-catalog.mjs.map +1 -1
- package/fesm2022/yomotech-view-toolkit.mjs +4 -3
- package/fesm2022/yomotech-view-toolkit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yomotech-view-toolkit-catalog.d.ts +15 -3
|
@@ -9856,6 +9856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
9856
9856
|
}], ctorParameters: () => [{ type: Couchdb }, { type: UtilityService }, { type: i1$2.Platform }] });
|
|
9857
9857
|
|
|
9858
9858
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
9859
|
+
// - change: the gap between cards reads space.card-gap (16 px without a theme value) - point 173 step 4b
|
|
9859
9860
|
// - fix: the button column on the right only with center.option.buttonsColumn - the library moved every row's buttons
|
|
9860
9861
|
// there by itself (luv2shop "Add to cart" squeezed to a circle, OFFENE-PUNKTE 238)
|
|
9861
9862
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
@@ -10676,7 +10677,7 @@ class CardComponent {
|
|
|
10676
10677
|
...responsiveStyle,
|
|
10677
10678
|
display: 'grid',
|
|
10678
10679
|
gridTemplateColumns: `repeat(${Math.max(1, cardsPerRow)}, minmax(0, 1fr))`,
|
|
10679
|
-
gap: layout.gap || baseStyle.gap || '16px',
|
|
10680
|
+
gap: layout.gap || baseStyle.gap || 'var(--vl-space-card-gap, 16px)',
|
|
10680
10681
|
padding: '0px 10px 0px 10px',
|
|
10681
10682
|
width: '100%',
|
|
10682
10683
|
minWidth: '0',
|
|
@@ -10836,7 +10837,7 @@ class CardComponent {
|
|
|
10836
10837
|
return resolveCustomKeyboardType(field?.option, property);
|
|
10837
10838
|
}
|
|
10838
10839
|
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 });
|
|
10839
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CardComponent, isStandalone: true, selector: "vl-card", inputs: { itemInfo: "itemInfo", pageData: "pageData", currentPage: "currentPage", pageSize: "pageSize", selectedLanguageInfo: "selectedLanguageInfo", mobileDisplay: "mobileDisplay", scrollPagination: "scrollPagination", pages: "pages", paginationMode: "paginationMode", paginationLoading: "paginationLoading", design: "design" }, outputs: { cardButtonClick: "cardButtonClick", cardHeaderButtonClick: "cardHeaderButtonClick", linkDetails: "linkDetails", imageDetails: "imageDetails", onPageSizeChange: "onPageSizeChange", onPageChange: "onPageChange", designChange: "designChange" }, host: { listeners: { "window:resize": "onWindowResize()" }, properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, viewQueries: [{ propertyName: "scrollPaginationSentinel", first: true, predicate: ["scrollPaginationSentinel"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n - new: option.hideEmpty - an empty field of the record takes no room (hiddenEmpty)\n - new: the buttons of card rows with fields stand in one narrow column on the right, one below the other -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-16\n - new: the card's header area in design mode is marked vl-d-head - its elements keep their bar inside (#171) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n - fix: a card button with icon and caption had its frame round the icon only - ng-zorro took the one wrapper span\n for an icon-only button; icon and caption now stand straight in the button (class schema-btn-content on it)\n Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n - new: a header element with control \"text\" shows its caption without a data field (a page title; worklist 47)\n - new: a header element with option.filter is a filter the page names (dataSource.filters), without a data field\n - new: an empty list shows why (vl-list-empty): fill in the filters, or no entries\n - new: an example record of the sketch is marked (vl-record--sample, vl-record__sample)\n - new: an icon-only button names itself for screen readers (aria-label from its tooltip or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: an element's handles in the order pencil, plus, bin (user) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\n<!-- Shuaib, 2026-10-30\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\n the buttons there keep their own markup (icon or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\n Mouse pad showed \"2 / 5\" while scrolling) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\n - fix: every class of a style is set (classNames), not only the first -->\n<!-- Shuaib 2026-10-26\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\n cardFooter) that the app and the canvas share; the app draws the same as before -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: caption and date pattern from the layout - a data object holds names and types only -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\n - change: the loader also shows while the page's PageData loads or sends (A4)\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\n<!-- Shuaib 2026-10-20\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\n an input writing into the property schema; a text, date or time that was not locked showed only\n its label; an autocomplete showed only with a currency format; the period showed nothing\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\n record's tick), numbers with their label (#166, tests F8-F11)\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\n - change: media fields are the one vl-media (#166 step 4.4)\n - change: the date filter is the one vl-datetime (#166 step 4.4)\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\n - change: check boxes with vl-checkbox (#166 step 4.4)\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\n card without texts)\n - fix: the price fields read ...?.format.currency; a property without format threw the same\n way (luv2shop: no prices, cards cut off) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\n project defines none; it showed the text \"undefined\" -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\n names another one ('native' keeps the system keyboard)\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\n\n<!-- shuaib 2026-09-24\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\n\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\n - new: a @contract comment naming the types this container does not render. It carries four\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\n\n<!-- @contract the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\n their own blocks (date filter, buttons). -->\n\n @if (design) {\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\n settings -->\n <div class=\"vl-card-runtime vl-d-root\">\n <div class=\"vl-d-container-bar\">\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\n (act)=\"containerAction($event)\"></vl-design-bar>\n </div>\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n @if (itemInfo?.header?.elements?.length) {\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item vl-d-head ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n }\n </div>\n }\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\n @if (!itemInfo?.layoutSchema?.cards?.length) {\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n } @else {\n <div>\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\n <div>{{ dt.emptyCardText }}</div>\n </div>\n }\n </div>\n } @else {\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\n @for (record of designRecords; track $index; let k = $index) {\n <div class=\"card-grid-item vl-d-item\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\n @if (k === 0 && designPage === 0) {\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\n [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\n <div [attr.data-vl-design-element]=\"li\"\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(li, null)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\n [id]=\"designer.innerListId(li)\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(li)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (inner of layout.elements || []; track $index; let ii = $index) {\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(ii, li)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\n </ng-container>\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <!-- the other sample cards are drawn like the app's -->\n <div class=\"vl-d-body\">\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (itemInfo?.footer?.elements && designAll.length) {\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n }\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n </div>\n } @else {\n <!-- Loader Spinner -->\n \n <div *ngIf=\"isLoading || pageData?.loading\" class=\"loader-overlay\">\n <div class=\"spinner\"></div>\n </div>\n <div class=\"vl-card-runtime\">\n <!-- top pagination on card -->\n <div *ngIf=\"\n itemInfo?.layoutSchema?.pagination?.visible &&\n itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.header?.style\n ).classes\">\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index; trackBy: trackHeaderElement\"\n [attr.data-vl-field]=\"vlFieldKey(element)\"\n [attr.data-vl-path]=\"vlFieldPath(element)\"\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.layoutSchema?.style\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\n <!-- an empty list says why: its filters are still open, or there is nothing (fixed texts, the app's language) -->\n <p *ngIf=\"emptyText() as text\" class=\"vl-list-empty\" role=\"status\" [attr.data-vl-empty]=\"pageData?.waitingForFilter ? 'filter' : 'none'\">{{ text }}</p>\n <div *ngFor=\"let record of displayedRecords; let k = index\"\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\n [class.vl-record--send-error]=\"!!record?._vlSendError\" [class.vl-record--sample]=\"!!record?._vlSample\">\n <!-- an example record of the sketch (only in the Designer's preview): marked as such -->\n <span *ngIf=\"record?._vlSample\" class=\"vl-record__sample\">{{ fixedText('Example') }}</span>\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n </ng-container>\n <!-- bottom pagination on card -->\n <div *ngIf=\"\n itemInfo?.data?.length && \n itemInfo?.layoutSchema?.pagination?.visible &&\n !itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n \n @if (scrollPagination) {\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\n aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\n </div>\n }\n </div>\n }\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\n @if (element?.scope?.reference) {\n <div [ngClass]=\"[element?.option?.visible && !hiddenEmpty(element, record) ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\n [propertySchema]=\"itemInfo.propertySchema\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [list]=\"remoteData[element.scope.reference]\"\n (linkClicked)=\"showLinkDetails(element.option, record)\"\n (mediaClicked)=\"showImageDetails(element.option, record)\">\n </vl-control>\n </div>\n } @else if (inner) {\n <div>\n <button nz-button class=\"schema-btn-content\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(getHorizontalLayoutTooltip(element) || element.caption || element.icon) | vlDesignText:designTranslations\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <!-- icon and caption straight in the button: ng-zorro takes a button with ONE child element holding an icon\n for icon-only (ant-btn-icon-only, 32 px) - with a wrapper the frame went round the icon only (hotel Book) -->\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\n </button>\n </div>\n } @else {\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\n <button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <ng-container *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n }\n </ng-template>\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\n <ng-template #headerElement let-element=\"element\">\n <ng-container\n [ngSwitch]=\"element.option?.filter ? 'pageFilter' : element.control === 'text' ? 'text' : renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a text without a data field: the page's title (control \"text\") -->\n <div *ngSwitchCase=\"'text'\" [class]=\"element.option?.visible === false ? 'hidden' : 'card-field-wrapper'\">\n <span role=\"heading\" aria-level=\"1\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label?.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n\n <!-- String Control -->\n <div *ngSwitchCase=\"'string'\"\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\n \n <!-- LABEL -->\n <span *ngIf=\"element.label?.caption\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n \n <!-- a filter the page names itself (dataSource.filters): no field of the data object, its value goes to\n {{filter.<name>}} -->\n <div *ngSwitchCase=\"'pageFilter'\" class=\"mb-3\" [attr.data-vl-field]=\"element.option.filter\" [attr.data-vl-filter]=\"element.option.filter\">\n <vl-control [field]=\"filterField(element) | vlDesignField:designTranslations\" [propertySchema]=\"filterSchema()\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"pageFilterChange(element, $event)\"></vl-control>\n </div>\n\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardHeader(element)\">\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"element?.option?.tooltip || ''\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(element?.option?.tooltip || element.caption || element.icon) | vlDesignText:designTranslations\"\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else headerTextContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #headerTextContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n </ng-container>\n </ng-template>\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\n <ng-template #cardBody let-record=\"record\">\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"'vl-card-body ' + (cardActionButtons().length ? 'vl-card-body--actions ' : '') + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [ngStyle]=\"\n layout?.type === 'HorizontalLayout'\n ? {}\n : getStyleWithoutClasses(layout?.style).style\n \" [class]=\"\n layout?.type === 'HorizontalLayout'\n ? ''\n : getStyleWithoutClasses(layout?.style).classes\n \">\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout' && rowHasFieldsAndButtons(layout)) {\n <!-- fields and buttons in one row: the fields share the room, the buttons stand together on the right -->\n <div class=\"card-horizontal-layout card-horizontal-layout--actions\"\n [class]=\"'card-horizontal-layout card-horizontal-layout--actions ' + getStyleWithoutClasses(layout?.style).classes\">\n <div class=\"card-row-fields\" [style.grid-template-columns]=\"'repeat(' + rowFields(layout).length + ', minmax(0, 1fr))'\">\n <ng-container *ngFor=\"let innerLayout of rowFields(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n } @else if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div class=\"card-horizontal-layout\"\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n }\n </div>\n @if (cardActionButtons().length) {\n <!-- the buttons of rows with fields: one narrow column on the right, one below the other -->\n <div class=\"card-actions-column\" [style.grid-row]=\"'1 / span ' + (itemInfo?.layoutSchema?.cards?.length || 1)\">\n <ng-container *ngFor=\"let button of cardActionButtons()\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: button, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n }\n </div>\n </ng-template>\n <!-- the card page's footer -->\n <ng-template #cardFooter>\n <div [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\n <span\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\n <ng-container\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardFooter(element)\">\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>\n {{ element.caption | vlDesignText:designTranslations }}\n </ng-template>\n </button>\n </div>\n </ng-container>\n </span>\n </div>\n </ng-template>\n ", styles: [".vl-cards--aligned>.card-grid-item{display:flex;flex-direction:column}.vl-cards--aligned>.card-grid-item>.vl-card-body{flex:1 1 auto;display:flex;flex-direction:column}.vl-cards--aligned .vl-card-body>:not(.card-layout-item--action)+.card-layout-item--action{margin-top:auto}:host{display:block;width:100%;min-width:0}.vl-card-runtime{min-width:0;box-sizing:border-box}.card-responsive-grid{width:100%;min-width:0;box-sizing:border-box}.scroll-pagination-sentinel{width:100%;height:1px}.card-grid-item,.card-layout-item,.card-horizontal-layout,.card-field-wrapper{width:100%;min-width:0;box-sizing:border-box}.card-grid-item>div{margin-left:auto;margin-right:auto}.card-field-wrapper{overflow-wrap:anywhere}.card-field-wrapper p,.card-field-wrapper h3{margin:0;min-width:0}.card-layout-item img{display:block;max-width:100%;height:auto}.card-layout-item button{max-width:100%;box-sizing:border-box}.schema-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hidden{display:none!important}.card-pagination-wrapper{width:100%;min-width:0;box-sizing:border-box;padding:0 10px}.vl-d-body.vl-d-hidden .hidden{display:revert!important}.vl-d-card-empty{min-height:160px;flex-direction:column;gap:4px}.vl-d-card-empty__icon{font-size:28px;color:var(--vl-color-text-muted, #94a3b8);margin-bottom:6px}.vl-d-card-empty__title{font-weight:600;color:var(--vl-color-text, #334155)}.card-grid-item.vl-d-item{padding-top:4px}.vl-list-empty{grid-column:1 / -1;margin:24px 0;padding:16px;text-align:center;color:var(--vl-color-text-muted, #6b7280);font-size:.95rem}.card-grid-item.vl-record--sample{position:relative}.vl-record__sample{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);pointer-events:none}.vl-card-body .card-horizontal-layout.card-horizontal-layout--actions{display:block!important;grid-template-columns:none!important}.vl-card-body .card-horizontal-layout--actions>.card-row-fields{min-width:0;display:grid;gap:8px}.vl-card-body.vl-card-body--actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}.vl-card-body.vl-card-body--actions>.card-layout-item{grid-column:1}.vl-card-body.vl-card-body--actions>.card-actions-column{grid-column:2;display:flex;flex-direction:column;gap:4px;align-items:center}.vl-card-body .card-actions-column>div{width:auto}.vl-card-body .card-actions-column button{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-head .vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}.vl-d-head .vl-d-item:hover>.vl-d-bar,.vl-d-head .vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "component", type: ControlComponent, selector: "vl-control", inputs: ["field", "propertySchema", "selectedLanguageInfo", "errorMessages", "saveTried", "container", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i11.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i12.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i13.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: PaginationComponent, selector: "vl-pagination", inputs: ["itemInfo", "pageSize", "currentPage", "selectedLanguageInfo", "pages"], outputs: ["pageSizeChange", "onGoToPage"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i14.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "component", type: DropMarkerComponent, selector: "vl-drop-marker", inputs: ["type", "text"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }] });
|
|
10840
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CardComponent, isStandalone: true, selector: "vl-card", inputs: { itemInfo: "itemInfo", pageData: "pageData", currentPage: "currentPage", pageSize: "pageSize", selectedLanguageInfo: "selectedLanguageInfo", mobileDisplay: "mobileDisplay", scrollPagination: "scrollPagination", pages: "pages", paginationMode: "paginationMode", paginationLoading: "paginationLoading", design: "design" }, outputs: { cardButtonClick: "cardButtonClick", cardHeaderButtonClick: "cardHeaderButtonClick", linkDetails: "linkDetails", imageDetails: "imageDetails", onPageSizeChange: "onPageSizeChange", onPageChange: "onPageChange", designChange: "designChange" }, host: { listeners: { "window:resize": "onWindowResize()" }, properties: { "class.vl-design-mobile": "this.designMobile", "class.vl-design-tablet": "this.designTablet" } }, viewQueries: [{ propertyName: "scrollPaginationSentinel", first: true, predicate: ["scrollPaginationSentinel"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n - new: option.hideEmpty - an empty field of the record takes no room (hiddenEmpty)\n - new: the buttons of card rows with fields stand in one narrow column on the right, one below the other -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-16\n - new: the card's header area in design mode is marked vl-d-head - its elements keep their bar inside (#171) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n - fix: a card button with icon and caption had its frame round the icon only - ng-zorro took the one wrapper span\n for an icon-only button; icon and caption now stand straight in the button (class schema-btn-content on it)\n Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n - new: a header element with control \"text\" shows its caption without a data field (a page title; worklist 47)\n - new: a header element with option.filter is a filter the page names (dataSource.filters), without a data field\n - new: an empty list shows why (vl-list-empty): fill in the filters, or no entries\n - new: an example record of the sketch is marked (vl-record--sample, vl-record__sample)\n - new: an icon-only button names itself for screen readers (aria-label from its tooltip or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: an element's handles in the order pencil, plus, bin (user) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\n<!-- Shuaib, 2026-10-30\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\n the buttons there keep their own markup (icon or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\n Mouse pad showed \"2 / 5\" while scrolling) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\n - fix: every class of a style is set (classNames), not only the first -->\n<!-- Shuaib 2026-10-26\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\n cardFooter) that the app and the canvas share; the app draws the same as before -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: caption and date pattern from the layout - a data object holds names and types only -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\n - change: the loader also shows while the page's PageData loads or sends (A4)\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\n<!-- Shuaib 2026-10-20\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\n an input writing into the property schema; a text, date or time that was not locked showed only\n its label; an autocomplete showed only with a currency format; the period showed nothing\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\n record's tick), numbers with their label (#166, tests F8-F11)\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\n - change: media fields are the one vl-media (#166 step 4.4)\n - change: the date filter is the one vl-datetime (#166 step 4.4)\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\n - change: check boxes with vl-checkbox (#166 step 4.4)\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\n card without texts)\n - fix: the price fields read ...?.format.currency; a property without format threw the same\n way (luv2shop: no prices, cards cut off) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\n project defines none; it showed the text \"undefined\" -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\n names another one ('native' keeps the system keyboard)\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\n\n<!-- shuaib 2026-09-24\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\n\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\n - new: a @contract comment naming the types this container does not render. It carries four\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\n\n<!-- @contract the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\n their own blocks (date filter, buttons). -->\n\n @if (design) {\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\n settings -->\n <div class=\"vl-card-runtime vl-d-root\">\n <div class=\"vl-d-container-bar\">\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\n (act)=\"containerAction($event)\"></vl-design-bar>\n </div>\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n @if (itemInfo?.header?.elements?.length) {\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item vl-d-head ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n }\n </div>\n }\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\n @if (!itemInfo?.layoutSchema?.cards?.length) {\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n } @else {\n <div>\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\n <div>{{ dt.emptyCardText }}</div>\n </div>\n }\n </div>\n } @else {\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\n @for (record of designRecords; track $index; let k = $index) {\n <div class=\"card-grid-item vl-d-item\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\n @if (k === 0 && designPage === 0) {\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\n [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\n <div [attr.data-vl-design-element]=\"li\"\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(li, null)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\n [id]=\"designer.innerListId(li)\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(li)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (inner of layout.elements || []; track $index; let ii = $index) {\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(ii, li)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\n </ng-container>\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <!-- the other sample cards are drawn like the app's -->\n <div class=\"vl-d-body\">\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (itemInfo?.footer?.elements && designAll.length) {\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n }\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n </div>\n } @else {\n <!-- Loader Spinner -->\n \n <div *ngIf=\"isLoading || pageData?.loading\" class=\"loader-overlay\">\n <div class=\"spinner\"></div>\n </div>\n <div class=\"vl-card-runtime\">\n <!-- top pagination on card -->\n <div *ngIf=\"\n itemInfo?.layoutSchema?.pagination?.visible &&\n itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.header?.style\n ).classes\">\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index; trackBy: trackHeaderElement\"\n [attr.data-vl-field]=\"vlFieldKey(element)\"\n [attr.data-vl-path]=\"vlFieldPath(element)\"\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.layoutSchema?.style\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\n <!-- an empty list says why: its filters are still open, or there is nothing (fixed texts, the app's language) -->\n <p *ngIf=\"emptyText() as text\" class=\"vl-list-empty\" role=\"status\" [attr.data-vl-empty]=\"pageData?.waitingForFilter ? 'filter' : 'none'\">{{ text }}</p>\n <div *ngFor=\"let record of displayedRecords; let k = index\"\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\n [class.vl-record--send-error]=\"!!record?._vlSendError\" [class.vl-record--sample]=\"!!record?._vlSample\">\n <!-- an example record of the sketch (only in the Designer's preview): marked as such -->\n <span *ngIf=\"record?._vlSample\" class=\"vl-record__sample\">{{ fixedText('Example') }}</span>\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n </ng-container>\n <!-- bottom pagination on card -->\n <div *ngIf=\"\n itemInfo?.data?.length && \n itemInfo?.layoutSchema?.pagination?.visible &&\n !itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n \n @if (scrollPagination) {\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\n aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\n </div>\n }\n </div>\n }\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\n @if (element?.scope?.reference) {\n <div [ngClass]=\"[element?.option?.visible && !hiddenEmpty(element, record) ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\n [propertySchema]=\"itemInfo.propertySchema\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [list]=\"remoteData[element.scope.reference]\"\n (linkClicked)=\"showLinkDetails(element.option, record)\"\n (mediaClicked)=\"showImageDetails(element.option, record)\">\n </vl-control>\n </div>\n } @else if (inner) {\n <div>\n <button nz-button class=\"schema-btn-content\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(getHorizontalLayoutTooltip(element) || element.caption || element.icon) | vlDesignText:designTranslations\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <!-- icon and caption straight in the button: ng-zorro takes a button with ONE child element holding an icon\n for icon-only (ant-btn-icon-only, 32 px) - with a wrapper the frame went round the icon only (hotel Book) -->\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\n </button>\n </div>\n } @else {\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\n <button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <ng-container *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n }\n </ng-template>\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\n <ng-template #headerElement let-element=\"element\">\n <ng-container\n [ngSwitch]=\"element.option?.filter ? 'pageFilter' : element.control === 'text' ? 'text' : renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a text without a data field: the page's title (control \"text\") -->\n <div *ngSwitchCase=\"'text'\" [class]=\"element.option?.visible === false ? 'hidden' : 'card-field-wrapper'\">\n <span role=\"heading\" aria-level=\"1\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label?.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n\n <!-- String Control -->\n <div *ngSwitchCase=\"'string'\"\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\n \n <!-- LABEL -->\n <span *ngIf=\"element.label?.caption\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n \n <!-- a filter the page names itself (dataSource.filters): no field of the data object, its value goes to\n {{filter.<name>}} -->\n <div *ngSwitchCase=\"'pageFilter'\" class=\"mb-3\" [attr.data-vl-field]=\"element.option.filter\" [attr.data-vl-filter]=\"element.option.filter\">\n <vl-control [field]=\"filterField(element) | vlDesignField:designTranslations\" [propertySchema]=\"filterSchema()\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"pageFilterChange(element, $event)\"></vl-control>\n </div>\n\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardHeader(element)\">\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"element?.option?.tooltip || ''\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(element?.option?.tooltip || element.caption || element.icon) | vlDesignText:designTranslations\"\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else headerTextContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #headerTextContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n </ng-container>\n </ng-template>\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\n <ng-template #cardBody let-record=\"record\">\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"'vl-card-body ' + (cardActionButtons().length ? 'vl-card-body--actions ' : '') + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [ngStyle]=\"\n layout?.type === 'HorizontalLayout'\n ? {}\n : getStyleWithoutClasses(layout?.style).style\n \" [class]=\"\n layout?.type === 'HorizontalLayout'\n ? ''\n : getStyleWithoutClasses(layout?.style).classes\n \">\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout' && rowHasFieldsAndButtons(layout)) {\n <!-- fields and buttons in one row: the fields share the room, the buttons stand together on the right -->\n <div class=\"card-horizontal-layout card-horizontal-layout--actions\"\n [class]=\"'card-horizontal-layout card-horizontal-layout--actions ' + getStyleWithoutClasses(layout?.style).classes\">\n <div class=\"card-row-fields\" [style.grid-template-columns]=\"'repeat(' + rowFields(layout).length + ', minmax(0, 1fr))'\">\n <ng-container *ngFor=\"let innerLayout of rowFields(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n } @else if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div class=\"card-horizontal-layout\"\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n }\n </div>\n @if (cardActionButtons().length) {\n <!-- the buttons of rows with fields: one narrow column on the right, one below the other -->\n <div class=\"card-actions-column\" [style.grid-row]=\"'1 / span ' + (itemInfo?.layoutSchema?.cards?.length || 1)\">\n <ng-container *ngFor=\"let button of cardActionButtons()\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: button, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n }\n </div>\n </ng-template>\n <!-- the card page's footer -->\n <ng-template #cardFooter>\n <div [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\n <span\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\n <ng-container\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardFooter(element)\">\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>\n {{ element.caption | vlDesignText:designTranslations }}\n </ng-template>\n </button>\n </div>\n </ng-container>\n </span>\n </div>\n </ng-template>\n ", styles: [".vl-cards--aligned>.card-grid-item{display:flex;flex-direction:column}.vl-cards--aligned>.card-grid-item>.vl-card-body{flex:1 1 auto;display:flex;flex-direction:column}.vl-cards--aligned .vl-card-body>:not(.card-layout-item--action)+.card-layout-item--action{margin-top:auto}:host{display:block;width:100%;min-width:0}.vl-card-runtime{min-width:0;box-sizing:border-box}.card-responsive-grid{width:100%;min-width:0;box-sizing:border-box}.scroll-pagination-sentinel{width:100%;height:1px}.card-grid-item,.card-layout-item,.card-horizontal-layout,.card-field-wrapper{width:100%;min-width:0;box-sizing:border-box}.card-grid-item>div{margin-left:auto;margin-right:auto}.card-field-wrapper{overflow-wrap:anywhere}.card-field-wrapper p,.card-field-wrapper h3{margin:0;min-width:0}.card-layout-item img{display:block;max-width:100%;height:auto}.card-layout-item button{max-width:100%;box-sizing:border-box}.schema-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hidden{display:none!important}.card-pagination-wrapper{width:100%;min-width:0;box-sizing:border-box;padding:0 10px}.vl-d-body.vl-d-hidden .hidden{display:revert!important}.vl-d-card-empty{min-height:160px;flex-direction:column;gap:4px}.vl-d-card-empty__icon{font-size:28px;color:var(--vl-color-text-muted, #94a3b8);margin-bottom:6px}.vl-d-card-empty__title{font-weight:600;color:var(--vl-color-text, #334155)}.card-grid-item.vl-d-item{padding-top:4px}.vl-list-empty{grid-column:1 / -1;margin:24px 0;padding:16px;text-align:center;color:var(--vl-color-text-muted, #6b7280);font-size:.95rem}.card-grid-item.vl-record--sample{position:relative}.vl-record__sample{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);pointer-events:none}.vl-card-body .card-horizontal-layout.card-horizontal-layout--actions{display:block!important;grid-template-columns:none!important}.vl-card-body .card-horizontal-layout--actions>.card-row-fields{min-width:0;display:grid;gap:8px}.vl-card-body.vl-card-body--actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}.vl-card-body.vl-card-body--actions>.card-layout-item{grid-column:1}.vl-card-body.vl-card-body--actions>.card-actions-column{grid-column:2;display:flex;flex-direction:column;gap:4px;align-items:center}.vl-card-body .card-actions-column>div{width:auto}.vl-card-body .card-actions-column button{width:var(--vl-size-icon-button, 36px)!important;height:var(--vl-size-icon-button, 36px)!important;min-height:var(--vl-size-icon-button, 36px)!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-head .vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}.vl-d-head .vl-d-item:hover>.vl-d-bar,.vl-d-head .vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"], dependencies: [{ kind: "component", type: ControlComponent, selector: "vl-control", inputs: ["field", "propertySchema", "selectedLanguageInfo", "errorMessages", "saveTried", "container", "buttonType", "locked", "lockHints", "mode", "record", "hideLabel", "styleValue", "compact", "list", "listLoading", "creditCardError"], outputs: ["picked", "changed", "opened", "toggled", "linkClicked", "mediaClicked", "buttonClick", "lockedClick", "signIn"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i11.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i12.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i13.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: PaginationComponent, selector: "vl-pagination", inputs: ["itemInfo", "pageSize", "currentPage", "selectedLanguageInfo", "pages"], outputs: ["pageSizeChange", "onGoToPage"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i14.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i15.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i15.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: DesignBarComponent, selector: "vl-design-bar", inputs: ["actions", "titles"], outputs: ["act"] }, { kind: "component", type: DropMarkerComponent, selector: "vl-drop-marker", inputs: ["type", "text"] }, { kind: "pipe", type: DesignFieldPipe, name: "vlDesignField" }, { kind: "pipe", type: DesignTextPipe, name: "vlDesignText" }] });
|
|
10840
10841
|
}
|
|
10841
10842
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CardComponent, decorators: [{
|
|
10842
10843
|
type: Component,
|
|
@@ -10855,7 +10856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
10855
10856
|
DragDropModule,
|
|
10856
10857
|
DesignBarComponent,
|
|
10857
10858
|
DropMarkerComponent,
|
|
10858
|
-
], standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n - new: option.hideEmpty - an empty field of the record takes no room (hiddenEmpty)\n - new: the buttons of card rows with fields stand in one narrow column on the right, one below the other -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-16\n - new: the card's header area in design mode is marked vl-d-head - its elements keep their bar inside (#171) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n - fix: a card button with icon and caption had its frame round the icon only - ng-zorro took the one wrapper span\n for an icon-only button; icon and caption now stand straight in the button (class schema-btn-content on it)\n Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n - new: a header element with control \"text\" shows its caption without a data field (a page title; worklist 47)\n - new: a header element with option.filter is a filter the page names (dataSource.filters), without a data field\n - new: an empty list shows why (vl-list-empty): fill in the filters, or no entries\n - new: an example record of the sketch is marked (vl-record--sample, vl-record__sample)\n - new: an icon-only button names itself for screen readers (aria-label from its tooltip or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: an element's handles in the order pencil, plus, bin (user) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\n<!-- Shuaib, 2026-10-30\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\n the buttons there keep their own markup (icon or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\n Mouse pad showed \"2 / 5\" while scrolling) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\n - fix: every class of a style is set (classNames), not only the first -->\n<!-- Shuaib 2026-10-26\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\n cardFooter) that the app and the canvas share; the app draws the same as before -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: caption and date pattern from the layout - a data object holds names and types only -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\n - change: the loader also shows while the page's PageData loads or sends (A4)\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\n<!-- Shuaib 2026-10-20\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\n an input writing into the property schema; a text, date or time that was not locked showed only\n its label; an autocomplete showed only with a currency format; the period showed nothing\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\n record's tick), numbers with their label (#166, tests F8-F11)\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\n - change: media fields are the one vl-media (#166 step 4.4)\n - change: the date filter is the one vl-datetime (#166 step 4.4)\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\n - change: check boxes with vl-checkbox (#166 step 4.4)\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\n card without texts)\n - fix: the price fields read ...?.format.currency; a property without format threw the same\n way (luv2shop: no prices, cards cut off) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\n project defines none; it showed the text \"undefined\" -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\n names another one ('native' keeps the system keyboard)\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\n\n<!-- shuaib 2026-09-24\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\n\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\n - new: a @contract comment naming the types this container does not render. It carries four\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\n\n<!-- @contract the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\n their own blocks (date filter, buttons). -->\n\n @if (design) {\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\n settings -->\n <div class=\"vl-card-runtime vl-d-root\">\n <div class=\"vl-d-container-bar\">\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\n (act)=\"containerAction($event)\"></vl-design-bar>\n </div>\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n @if (itemInfo?.header?.elements?.length) {\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item vl-d-head ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n }\n </div>\n }\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\n @if (!itemInfo?.layoutSchema?.cards?.length) {\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n } @else {\n <div>\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\n <div>{{ dt.emptyCardText }}</div>\n </div>\n }\n </div>\n } @else {\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\n @for (record of designRecords; track $index; let k = $index) {\n <div class=\"card-grid-item vl-d-item\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\n @if (k === 0 && designPage === 0) {\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\n [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\n <div [attr.data-vl-design-element]=\"li\"\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(li, null)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\n [id]=\"designer.innerListId(li)\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(li)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (inner of layout.elements || []; track $index; let ii = $index) {\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(ii, li)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\n </ng-container>\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <!-- the other sample cards are drawn like the app's -->\n <div class=\"vl-d-body\">\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (itemInfo?.footer?.elements && designAll.length) {\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n }\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n </div>\n } @else {\n <!-- Loader Spinner -->\n \n <div *ngIf=\"isLoading || pageData?.loading\" class=\"loader-overlay\">\n <div class=\"spinner\"></div>\n </div>\n <div class=\"vl-card-runtime\">\n <!-- top pagination on card -->\n <div *ngIf=\"\n itemInfo?.layoutSchema?.pagination?.visible &&\n itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.header?.style\n ).classes\">\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index; trackBy: trackHeaderElement\"\n [attr.data-vl-field]=\"vlFieldKey(element)\"\n [attr.data-vl-path]=\"vlFieldPath(element)\"\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.layoutSchema?.style\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\n <!-- an empty list says why: its filters are still open, or there is nothing (fixed texts, the app's language) -->\n <p *ngIf=\"emptyText() as text\" class=\"vl-list-empty\" role=\"status\" [attr.data-vl-empty]=\"pageData?.waitingForFilter ? 'filter' : 'none'\">{{ text }}</p>\n <div *ngFor=\"let record of displayedRecords; let k = index\"\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\n [class.vl-record--send-error]=\"!!record?._vlSendError\" [class.vl-record--sample]=\"!!record?._vlSample\">\n <!-- an example record of the sketch (only in the Designer's preview): marked as such -->\n <span *ngIf=\"record?._vlSample\" class=\"vl-record__sample\">{{ fixedText('Example') }}</span>\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n </ng-container>\n <!-- bottom pagination on card -->\n <div *ngIf=\"\n itemInfo?.data?.length && \n itemInfo?.layoutSchema?.pagination?.visible &&\n !itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n \n @if (scrollPagination) {\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\n aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\n </div>\n }\n </div>\n }\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\n @if (element?.scope?.reference) {\n <div [ngClass]=\"[element?.option?.visible && !hiddenEmpty(element, record) ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\n [propertySchema]=\"itemInfo.propertySchema\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [list]=\"remoteData[element.scope.reference]\"\n (linkClicked)=\"showLinkDetails(element.option, record)\"\n (mediaClicked)=\"showImageDetails(element.option, record)\">\n </vl-control>\n </div>\n } @else if (inner) {\n <div>\n <button nz-button class=\"schema-btn-content\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(getHorizontalLayoutTooltip(element) || element.caption || element.icon) | vlDesignText:designTranslations\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <!-- icon and caption straight in the button: ng-zorro takes a button with ONE child element holding an icon\n for icon-only (ant-btn-icon-only, 32 px) - with a wrapper the frame went round the icon only (hotel Book) -->\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\n </button>\n </div>\n } @else {\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\n <button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <ng-container *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n }\n </ng-template>\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\n <ng-template #headerElement let-element=\"element\">\n <ng-container\n [ngSwitch]=\"element.option?.filter ? 'pageFilter' : element.control === 'text' ? 'text' : renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a text without a data field: the page's title (control \"text\") -->\n <div *ngSwitchCase=\"'text'\" [class]=\"element.option?.visible === false ? 'hidden' : 'card-field-wrapper'\">\n <span role=\"heading\" aria-level=\"1\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label?.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n\n <!-- String Control -->\n <div *ngSwitchCase=\"'string'\"\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\n \n <!-- LABEL -->\n <span *ngIf=\"element.label?.caption\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n \n <!-- a filter the page names itself (dataSource.filters): no field of the data object, its value goes to\n {{filter.<name>}} -->\n <div *ngSwitchCase=\"'pageFilter'\" class=\"mb-3\" [attr.data-vl-field]=\"element.option.filter\" [attr.data-vl-filter]=\"element.option.filter\">\n <vl-control [field]=\"filterField(element) | vlDesignField:designTranslations\" [propertySchema]=\"filterSchema()\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"pageFilterChange(element, $event)\"></vl-control>\n </div>\n\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardHeader(element)\">\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"element?.option?.tooltip || ''\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(element?.option?.tooltip || element.caption || element.icon) | vlDesignText:designTranslations\"\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else headerTextContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #headerTextContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n </ng-container>\n </ng-template>\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\n <ng-template #cardBody let-record=\"record\">\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"'vl-card-body ' + (cardActionButtons().length ? 'vl-card-body--actions ' : '') + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [ngStyle]=\"\n layout?.type === 'HorizontalLayout'\n ? {}\n : getStyleWithoutClasses(layout?.style).style\n \" [class]=\"\n layout?.type === 'HorizontalLayout'\n ? ''\n : getStyleWithoutClasses(layout?.style).classes\n \">\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout' && rowHasFieldsAndButtons(layout)) {\n <!-- fields and buttons in one row: the fields share the room, the buttons stand together on the right -->\n <div class=\"card-horizontal-layout card-horizontal-layout--actions\"\n [class]=\"'card-horizontal-layout card-horizontal-layout--actions ' + getStyleWithoutClasses(layout?.style).classes\">\n <div class=\"card-row-fields\" [style.grid-template-columns]=\"'repeat(' + rowFields(layout).length + ', minmax(0, 1fr))'\">\n <ng-container *ngFor=\"let innerLayout of rowFields(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n } @else if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div class=\"card-horizontal-layout\"\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n }\n </div>\n @if (cardActionButtons().length) {\n <!-- the buttons of rows with fields: one narrow column on the right, one below the other -->\n <div class=\"card-actions-column\" [style.grid-row]=\"'1 / span ' + (itemInfo?.layoutSchema?.cards?.length || 1)\">\n <ng-container *ngFor=\"let button of cardActionButtons()\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: button, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n }\n </div>\n </ng-template>\n <!-- the card page's footer -->\n <ng-template #cardFooter>\n <div [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\n <span\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\n <ng-container\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardFooter(element)\">\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>\n {{ element.caption | vlDesignText:designTranslations }}\n </ng-template>\n </button>\n </div>\n </ng-container>\n </span>\n </div>\n </ng-template>\n ", styles: [".vl-cards--aligned>.card-grid-item{display:flex;flex-direction:column}.vl-cards--aligned>.card-grid-item>.vl-card-body{flex:1 1 auto;display:flex;flex-direction:column}.vl-cards--aligned .vl-card-body>:not(.card-layout-item--action)+.card-layout-item--action{margin-top:auto}:host{display:block;width:100%;min-width:0}.vl-card-runtime{min-width:0;box-sizing:border-box}.card-responsive-grid{width:100%;min-width:0;box-sizing:border-box}.scroll-pagination-sentinel{width:100%;height:1px}.card-grid-item,.card-layout-item,.card-horizontal-layout,.card-field-wrapper{width:100%;min-width:0;box-sizing:border-box}.card-grid-item>div{margin-left:auto;margin-right:auto}.card-field-wrapper{overflow-wrap:anywhere}.card-field-wrapper p,.card-field-wrapper h3{margin:0;min-width:0}.card-layout-item img{display:block;max-width:100%;height:auto}.card-layout-item button{max-width:100%;box-sizing:border-box}.schema-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hidden{display:none!important}.card-pagination-wrapper{width:100%;min-width:0;box-sizing:border-box;padding:0 10px}.vl-d-body.vl-d-hidden .hidden{display:revert!important}.vl-d-card-empty{min-height:160px;flex-direction:column;gap:4px}.vl-d-card-empty__icon{font-size:28px;color:var(--vl-color-text-muted, #94a3b8);margin-bottom:6px}.vl-d-card-empty__title{font-weight:600;color:var(--vl-color-text, #334155)}.card-grid-item.vl-d-item{padding-top:4px}.vl-list-empty{grid-column:1 / -1;margin:24px 0;padding:16px;text-align:center;color:var(--vl-color-text-muted, #6b7280);font-size:.95rem}.card-grid-item.vl-record--sample{position:relative}.vl-record__sample{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);pointer-events:none}.vl-card-body .card-horizontal-layout.card-horizontal-layout--actions{display:block!important;grid-template-columns:none!important}.vl-card-body .card-horizontal-layout--actions>.card-row-fields{min-width:0;display:grid;gap:8px}.vl-card-body.vl-card-body--actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}.vl-card-body.vl-card-body--actions>.card-layout-item{grid-column:1}.vl-card-body.vl-card-body--actions>.card-actions-column{grid-column:2;display:flex;flex-direction:column;gap:4px;align-items:center}.vl-card-body .card-actions-column>div{width:auto}.vl-card-body .card-actions-column button{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-head .vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}.vl-d-head .vl-d-item:hover>.vl-d-bar,.vl-d-head .vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
|
|
10859
|
+
], standalone: true, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n - new: option.hideEmpty - an empty field of the record takes no room (hiddenEmpty)\n - new: the buttons of card rows with fields stand in one narrow column on the right, one below the other -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-16\n - new: the card's header area in design mode is marked vl-d-head - its elements keep their bar inside (#171) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n - fix: a card button with icon and caption had its frame round the icon only - ng-zorro took the one wrapper span\n for an icon-only button; icon and caption now stand straight in the button (class schema-btn-content on it)\n Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n - new: a header element with control \"text\" shows its caption without a data field (a page title; worklist 47)\n - new: a header element with option.filter is a filter the page names (dataSource.filters), without a data field\n - new: an empty list shows why (vl-list-empty): fill in the filters, or no entries\n - new: an example record of the sketch is marked (vl-record--sample, vl-record__sample)\n - new: an icon-only button names itself for screen readers (aria-label from its tooltip or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: an element's handles in the order pencil, plus, bin (user) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - change: what an element does comes from the action catalog (actionName / menuAction / calcOf) - older forms mean the same -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n - new: the list's end marks itself (data-vl-list-end) when no further page exists - a test's scroll stops there -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n - new: aligned rows (center.option.alignRows): vl-cards--aligned, vl-card-body, card-layout-item--action -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n - fix: date fields carry data-vl-field and data-vl-path like the other fields -->\n<!-- Shuaib, 2026-10-30\n - change: design-mode field captions/placeholders use the app dictionary on display copies only. -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - change: the date fields of the card page's header and footer are drawn by <vl-control> like form and dialog;\n the buttons there keep their own markup (icon or caption) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - new: a waiting record the backend refused shows the reason above it (vl-record__send-error, OFFENE-PUNKTE 131) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n - fix: the page bar above the cards is hidden while the list pages by scrolling, like the one below (luv2shop\n Mouse pad showed \"2 / 5\" while scrolling) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-25\n - fix: every class of a style is set (classNames), not only the first -->\n<!-- Shuaib 2026-10-26\n - new: design mode (design): the Designer's canvas draws its card page here - the same header, cards, elements,\n footer and page bar as the app, with sample records and drag, add, edit and delete around each element\n - change: the header's button, one card and the footer stand in templates (headerElement, cardBody,\n cardFooter) that the app and the canvas share; the app draws the same as before -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: caption and date pattern from the layout - a data object holds names and types only -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-21\n - change: the loader also shows while the page's PageData loads or sends (A4)\n - fix: a grid page draws no card area - an empty gap stood between filter fields and table -->\n<!-- Shuaib 2026-10-20\n - change: the card's fields (top level and in a horizontal layout) show the record's value through the\n shared <vl-control> in display mode instead of four switch blocks over types and controls (#166)\n - change: every field shows its value read only - a combobox, autocomplete or drop-down in a card was\n an input writing into the property schema; a text, date or time that was not locked showed only\n its label; an autocomplete showed only with a currency format; the period showed nothing\n - change: the value is styled by scope.style only (it was on the wrapper and on the value) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - fix: locked fields through the read-only building blocks (password as dots, radio text, the\n record's tick), numbers with their label (#166, tests F8-F11)\n - fix: a text field (textInput) that is not locked shows its value; only the label showed (#166)\n - new: a value with date and time is shown with its time (cardDateKind) (#166 E5)\n - change: protected numbers and amounts are shown by vl-number (currency, percent, unit) (#166 step 4.8)\n - change: media fields are the one vl-media (#166 step 4.4)\n - change: the date filter is the one vl-datetime (#166 step 4.4)\n - change: every drop-down is the one vl-dropdown (#166 step 4.4)\n - change: check boxes with vl-checkbox (#166 step 4.4)\n - new: spinner/slider shown with vl-number instead of \"not Implemented yet\" (#166 step 4.4)\n - new: radiobutton shown with vl-radio (caption of the chosen value) (#166 step 4.4)\n - new: switch shown with vl-switch (locked, caption) instead of \"not supported\" (#166 step 4.4)\n - change: every selection list (autocomplete, combobox) is the one vl-autocomplete (#166 step 4.4)\n - change: every input field gets the toolkit keyboard of its field/attribute (keyboardTypeFor, #166)\n - new: combobox = the autocomplete list, values outside the list only with allowCustom (#166 step 4.4)\n - new: textArea shown with vl-textarea (line breaks kept) instead of \"not supported\" (#166 step 4.4)\n - new: password shown with vl-password (dots, eye) instead of \"not supported\" (#166 step 4.4)\n - change: placeholders from the layout first (vlPlaceholder with the field's option, #166)\n - new: date and time fields: input pattern, hint and display in the app language, year with four digits (vlDateFormat, vlDateHint, vlDateText - services/date-display.ts, #166) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the bottom pagination read itemInfo?.data.length; before the records arrive data is\n undefined, the template threw and the cards stayed half drawn (luv2shop start page: one\n card without texts)\n - fix: the price fields read ...?.format.currency; a property without format threw the same\n way (luv2shop: no prices, cards cut off) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - new: autocompletes get their suggestions from RemoteListService (completeRemote) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-13\n - fix: the placeholder comes from vlPlaceholder (pipes/placeholder.pipe.ts) - empty where the\n project defines none; it showed the text \"undefined\" -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-10-07\n - change: autocomplete fields take the toolkit string keyboard unless option.keyboardType\n names another one ('native' keeps the system keyboard)\n - change: the date filter uses the shared picker markup (picker-field, DateTimePickerService) -->\n\n<!-- shuaib 2026-09-24\n - change: card field switches use renderFieldType so legacy checkbox fields render as boolean. -->\n\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5) 2026-09-19\n - new: a @contract comment naming the types this container does not render. It carries four\n ngSwitch blocks, so the gap belongs to the container and not to one of them -->\n\n<!-- @contract the card's fields are drawn by <vl-control mode=\"display\"> (controls/control.ts): every\n type shows the record's value read only, the period (dateRange) included. Header and footer keep\n their own blocks (date filter, buttons). -->\n\n @if (design) {\n <!-- design mode (the Designer's canvas): the page header, the cards with sample records, the footer and the page bar\n as the app shows them. The first card carries the handles: every element - hidden ones faded - with drag, add,\n edit and delete; a data object's field dropped on it becomes an element. A click on an element opens its\n settings -->\n <div class=\"vl-card-runtime vl-d-root\">\n <div class=\"vl-d-container-bar\">\n <vl-design-bar [actions]=\"['add', 'edit']\" [titles]=\"{ add: dt.addHeaderButton, edit: dt.editLayout }\"\n (act)=\"containerAction($event)\"></vl-design-bar>\n </div>\n @if (designInfo?.layoutSchema?.pagination?.visible && designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n @if (itemInfo?.header?.elements?.length) {\n <div [ngStyle]=\"getHeaderStyle()\" [class]=\"'vl-d-item vl-d-head ' + getStyleWithoutClasses(itemInfo?.header?.style).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'header' })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeader, delete: dt.clearHeader }\" (act)=\"headerAction($event)\"></vl-design-bar>\n @for (element of itemInfo.header.elements; track $index; let c = $index) {\n <div [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"'vl-d-item ' + getStyleWithoutClasses(element?.wrapperStyle).classes\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'headerElement', index: c })\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'delete']\"\n [titles]=\"{ edit: dt.editHeaderButton, delete: dt.deleteHeaderButton }\"\n (act)=\"headerElementAction($event, c)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(element)\" (click)=\"headerElementAction('edit', c)\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n }\n </div>\n }\n @if (itemInfo?.layoutSchema?.container !== 'grid') {\n @if (!itemInfo?.layoutSchema?.cards?.length) {\n <div class=\"vl-d-empty vl-d-card-empty\" [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"[]\" [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n } @else {\n <div>\n <i class=\"pi pi-clone vl-d-card-empty__icon\"></i>\n <div class=\"vl-d-card-empty__title\">{{ dt.emptyCardTitle }}</div>\n <div>{{ dt.emptyCardText }}</div>\n </div>\n }\n </div>\n } @else {\n <div class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.style).classes\">\n @for (record of designRecords; track $index; let k = $index) {\n <div class=\"card-grid-item vl-d-item\">\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"designAll.length > 1 ? ['add', 'delete'] : ['add']\"\n [titles]=\"{ add: dt.addCard, delete: dt.deleteCard }\" (act)=\"cardAction($event)\"></vl-design-bar>\n @if (k === 0 && designPage === 0) {\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\"\n [id]=\"designer.listId()\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"itemInfo.layoutSchema.cards\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(null)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (layout of itemInfo.layoutSchema.cards; track $index; let li = $index) {\n <div [attr.data-vl-design-element]=\"li\"\n [ngStyle]=\"layout?.type === 'HorizontalLayout' ? {} : getStyleWithoutClasses(layout?.style).style\"\n [class]=\"'card-layout-item vl-d-item ' + (layout?.type === 'HorizontalLayout' ? '' : getStyleWithoutClasses(layout?.style).classes)\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: li, parentIndex: null })\"\n cdkDrag [cdkDragData]=\"designer.dragData(li, null)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(li, null)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, li, null)\"></vl-design-bar>\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div [class]=\"'card-horizontal-layout ' + getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\"\n [id]=\"designer.innerListId(li)\" data-vl-design-list\n cdkDropList [cdkDropListData]=\"layout.elements || []\" [cdkDropListSortingDisabled]=\"true\"\n [cdkDropListConnectedTo]=\"designer.listIds()\"\n (mousemove)=\"designer.pointerMove($event)\" (cdkDropListEntered)=\"designer.entered()\"\n (cdkDropListExited)=\"designer.exited()\" (cdkDropListDropped)=\"designer.dropped($event, dt.button)\">\n @if (designer.isEmptyHint(li)) {\n <vl-drop-marker type=\"empty\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n @for (inner of layout.elements || []; track $index; let ii = $index) {\n <div class=\"vl-d-item\" [attr.data-vl-design-element]=\"ii\"\n [class.vl-d-item--selected]=\"isSelected({ kind: 'element', index: ii, parentIndex: li })\"\n cdkDrag [cdkDragData]=\"designer.dragData(ii, li)\"\n (cdkDragStarted)=\"designer.dragStarted()\" (cdkDragMoved)=\"designer.dragMoved($event)\"\n (cdkDragEnded)=\"designer.dragEnded()\">\n @if (designer.isTargetHint(ii, li)) {\n <vl-drop-marker [type]=\"designer.hint!.type\" [text]=\"designer.hintText(dt)\"></vl-drop-marker>\n }\n <vl-design-bar class=\"vl-d-bar\" [actions]=\"['edit', 'add', 'delete']\"\n [titles]=\"{ add: dt.addButton, edit: dt.edit, delete: dt.delete }\"\n (act)=\"elementAction($event, ii, li)\"></vl-design-bar>\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(inner)\" (click)=\"designer.edit(ii, li)\">\n @if (hiddenInApp(inner)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: inner, record: record, inner: true }\">\n </ng-container>\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"vl-d-body\" [class.vl-d-hidden]=\"hiddenInApp(layout)\" (click)=\"designer.edit(li, null)\">\n @if (hiddenInApp(layout)) { <span class=\"vl-d-hidden-tag\">{{ dt.hiddenInApp }}</span> }\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <!-- the other sample cards are drawn like the app's -->\n <div class=\"vl-d-body\">\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (itemInfo?.footer?.elements && designAll.length) {\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n }\n @if (designAll.length && designInfo?.layoutSchema?.pagination?.visible && !designInfo?.layoutSchema?.pagination?.top) {\n <div class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"designInfo\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"designPageSize\" [currentPage]=\"designPage\" [pages]=\"designPages\"\n (onGoToPage)=\"designGoToPage($event)\"></vl-pagination>\n </div>\n }\n </div>\n } @else {\n <!-- Loader Spinner -->\n \n <div *ngIf=\"isLoading || pageData?.loading\" class=\"loader-overlay\">\n <div class=\"spinner\"></div>\n </div>\n <div class=\"vl-card-runtime\">\n <!-- top pagination on card -->\n <div *ngIf=\"\n itemInfo?.layoutSchema?.pagination?.visible &&\n itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\" [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n <div *ngIf=\"itemInfo?.header?.elements?.length\" [ngStyle]=\"getHeaderStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.header?.style\n ).classes\">\n <div *ngFor=\"let element of itemInfo.header?.elements; let c = index; trackBy: trackHeaderElement\"\n [attr.data-vl-field]=\"vlFieldKey(element)\"\n [attr.data-vl-path]=\"vlFieldPath(element)\"\n [ngStyle]=\"getHeaderElementWrapperStyle(element)\"\n [class]=\"actionOf(element.option) === 'saveAll' && !displayedRecords?.length ? \n 'hidden' :getStyleWithoutClasses(element?.wrapperStyle).classes\">\n <ng-container *ngTemplateOutlet=\"headerElement; context: { element: element }\"></ng-container>\n </div>\n </div>\n <!-- a grid page (container grid): the card draws only the header, the app shows vl-grid below (A4) -->\n <div *ngIf=\"itemInfo?.layoutSchema?.container !== 'grid'\" class=\"card-responsive-grid\" [ngStyle]=\"getCardContainerStyle()\"\n [class]=\"getStyleWithoutClasses(\n itemInfo?.layoutSchema?.style\n ).classes + (alignRows() ? ' vl-cards--aligned' : '')\">\n <!-- an empty list says why: its filters are still open, or there is nothing (fixed texts, the app's language) -->\n <p *ngIf=\"emptyText() as text\" class=\"vl-list-empty\" role=\"status\" [attr.data-vl-empty]=\"pageData?.waitingForFilter ? 'filter' : 'none'\">{{ text }}</p>\n <div *ngFor=\"let record of displayedRecords; let k = index\"\n class=\"card-grid-item\" [attr.data-vl-record]=\"k\"\n [class.vl-record--send-error]=\"!!record?._vlSendError\" [class.vl-record--sample]=\"!!record?._vlSample\">\n <!-- an example record of the sketch (only in the Designer's preview): marked as such -->\n <span *ngIf=\"record?._vlSample\" class=\"vl-record__sample\">{{ fixedText('Example') }}</span>\n <!-- a waiting record the backend refused: the reason, until it is sent (OFFENE-PUNKTE 131); the look\n comes from the app's classes (vl-record--send-error, vl-record__send-error) -->\n <p *ngIf=\"record?._vlSendError\" class=\"vl-record__send-error\" role=\"alert\">\u26A0 {{ sendErrorText(record) }}</p>\n <ng-container *ngTemplateOutlet=\"cardBody; context: { record: record }\"></ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"itemInfo?.footer?.elements && itemInfo?.data && itemInfo?.data.length\">\n <ng-container *ngTemplateOutlet=\"cardFooter\"></ng-container>\n </ng-container>\n <!-- bottom pagination on card -->\n <div *ngIf=\"\n itemInfo?.data?.length && \n itemInfo?.layoutSchema?.pagination?.visible &&\n !itemInfo?.layoutSchema?.pagination?.top &&\n !scrollPagination\n \" class=\"card-pagination-wrapper\">\n <vl-pagination [itemInfo]=\"itemInfo\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [pageSize]=\"pageSize\"\n [currentPage]=\"currentPage\" [pages]=\"pages\"\n (pageSizeChange)=\"invokeOnPageSizeChange($event)\"\n (onGoToPage)=\"invokeGoToPage($event)\">\n </vl-pagination>\n </div>\n \n @if (scrollPagination) {\n <div #scrollPaginationSentinel class=\"scroll-pagination-sentinel\"\n aria-hidden=\"true\" [attr.data-vl-list-end]=\"listEnd() ? 'true' : null\">\n </div>\n }\n </div>\n }\n <!-- one element of a card: a field shows the record's value through the shared <vl-control> in display\n mode; an element without a property is a button. A field the layout does not mark visible is hidden -->\n <ng-template #cardElement let-element=\"element\" let-record=\"record\" let-inner=\"inner\">\n @if (element?.scope?.reference) {\n <div [ngClass]=\"[element?.option?.visible && !hiddenEmpty(element, record) ? 'card-field-wrapper' : 'hidden', inner ? getStyleWithoutClasses(element?.style).classes : '']\"\n [ngStyle]=\"inner ? getStyleWithoutClasses(element?.style).style : {}\">\n <vl-control mode=\"display\" [field]=\"element | vlDesignField:designTranslations\" [record]=\"record\"\n [propertySchema]=\"itemInfo.propertySchema\"\n [selectedLanguageInfo]=\"selectedLanguageInfo\"\n [list]=\"remoteData[element.scope.reference]\"\n (linkClicked)=\"showLinkDetails(element.option, record)\"\n (mediaClicked)=\"showImageDetails(element.option, record)\">\n </vl-control>\n </div>\n } @else if (inner) {\n <div>\n <button nz-button class=\"schema-btn-content\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"getHorizontalLayoutTooltip(element)\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(getHorizontalLayoutTooltip(element) || element.caption || element.icon) | vlDesignText:designTranslations\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option?.visible ? element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes : 'hidden'\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <!-- icon and caption straight in the button: ng-zorro takes a button with ONE child element holding an icon\n for icon-only (ant-btn-icon-only, 32 px) - with a wrapper the frame went round the icon only (hotel Book) -->\n <i *ngIf=\"showButtonIcon(element)\" nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n <span *ngIf=\"showButtonCaption(element)\">{{ element.caption | vlDesignText:designTranslations }}</span>\n <span *ngIf=\"!showButtonIcon(element) && !showButtonCaption(element)\">Button</span>\n </button>\n </div>\n } @else {\n <div [class]=\"element.option?.visible ? 'row' : 'hidden'\">\n <button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element?.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element?.style).classes\"\n (click)=\"invokeButtonClick(element, record, getRecordIndex(record))\">\n <ng-container *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\" nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n }\n </ng-template>\n <!-- a button or date filter of the page header the card shows (the app and the Designer's canvas) -->\n <ng-template #headerElement let-element=\"element\">\n <ng-container\n [ngSwitch]=\"element.option?.filter ? 'pageFilter' : element.control === 'text' ? 'text' : renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a text without a data field: the page's title (control \"text\") -->\n <div *ngSwitchCase=\"'text'\" [class]=\"element.option?.visible === false ? 'hidden' : 'card-field-wrapper'\">\n <span role=\"heading\" aria-level=\"1\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label?.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n\n <!-- String Control -->\n <div *ngSwitchCase=\"'string'\"\n [class]=\"element.option?.visible ? 'card-field-wrapper' : 'hidden'\">\n \n <!-- LABEL -->\n <span *ngIf=\"element.label?.caption\"\n [style]=\"getStyleWithoutClasses(element.label?.style).style\"\n [class]=\"classNames(element.label?.style)\">\n {{ element.label.caption | vlDesignText:designTranslations }}\n </span>\n </div>\n \n <!-- a filter the page names itself (dataSource.filters): no field of the data object, its value goes to\n {{filter.<name>}} -->\n <div *ngSwitchCase=\"'pageFilter'\" class=\"mb-3\" [attr.data-vl-field]=\"element.option.filter\" [attr.data-vl-filter]=\"element.option.filter\">\n <vl-control [field]=\"filterField(element) | vlDesignField:designTranslations\" [propertySchema]=\"filterSchema()\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"pageFilterChange(element, $event)\"></vl-control>\n </div>\n\n <!-- a date filter: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardHeader(element)\">\n <button nz-button type=\"button\" [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [matTooltip]=\"element?.option?.tooltip || ''\"\n [matTooltipTouchGestures]=\"'auto'\"\n [attr.aria-label]=\"(element?.option?.tooltip || element.caption || element.icon) | vlDesignText:designTranslations\"\n [ngStyle]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else headerTextContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #headerTextContent>{{ element.caption | vlDesignText:designTranslations }}</ng-template>\n </button>\n </div>\n </ng-container>\n </ng-template>\n <!-- one card: its elements, a horizontal layout's side by side (the app and the canvas' other sample cards) -->\n <ng-template #cardBody let-record=\"record\">\n <div [ngStyle]=\"getSingleCardStyle()\"\n [class]=\"'vl-card-body ' + (cardActionButtons().length ? 'vl-card-body--actions ' : '') + getStyleWithoutClasses(itemInfo?.layoutSchema?.stylePerCard).classes\">\n <div *ngFor=\"let layout of itemInfo?.layoutSchema?.cards || []\"\n class=\"card-layout-item\" [class.card-layout-item--action]=\"isActionLayout(layout)\" [ngStyle]=\"\n layout?.type === 'HorizontalLayout'\n ? {}\n : getStyleWithoutClasses(layout?.style).style\n \" [class]=\"\n layout?.type === 'HorizontalLayout'\n ? ''\n : getStyleWithoutClasses(layout?.style).classes\n \">\n @if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout' && rowHasFieldsAndButtons(layout)) {\n <!-- fields and buttons in one row: the fields share the room, the buttons stand together on the right -->\n <div class=\"card-horizontal-layout card-horizontal-layout--actions\"\n [class]=\"'card-horizontal-layout card-horizontal-layout--actions ' + getStyleWithoutClasses(layout?.style).classes\">\n <div class=\"card-row-fields\" [style.grid-template-columns]=\"'repeat(' + rowFields(layout).length + ', minmax(0, 1fr))'\">\n <ng-container *ngFor=\"let innerLayout of rowFields(layout)\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n } @else if (!layout?.scope?.reference && layout?.type === 'HorizontalLayout') {\n <div class=\"card-horizontal-layout\"\n [class]=\"getStyleWithoutClasses(layout?.style).classes\"\n [ngStyle]=\"getHorizontalLayoutStyle(layout)\">\n <ng-container *ngFor=\"let innerLayout of layout.elements\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: innerLayout, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: layout, record: record, inner: false }\">\n </ng-container>\n }\n </div>\n @if (cardActionButtons().length) {\n <!-- the buttons of rows with fields: one narrow column on the right, one below the other -->\n <div class=\"card-actions-column\" [style.grid-row]=\"'1 / span ' + (itemInfo?.layoutSchema?.cards?.length || 1)\">\n <ng-container *ngFor=\"let button of cardActionButtons()\">\n <ng-container\n *ngTemplateOutlet=\"cardElement; context: { element: button, record: record, inner: true }\">\n </ng-container>\n </ng-container>\n </div>\n }\n </div>\n </ng-template>\n <!-- the card page's footer -->\n <ng-template #cardFooter>\n <div [class]=\"getStyleWithoutClasses(itemInfo?.footer?.style).classes\">\n <span\n *ngFor=\"let element of itemInfo.footer?.elements; let c = index\">\n <ng-container\n [ngSwitch]=\"renderFieldType(element.scope?.reference && itemInfo.propertySchema[getScope(element.scope?.reference)] ? itemInfo.propertySchema[getScope(element.scope?.reference)][element.scope?.reference.split('/').pop()]?.type : 'default')\">\n \n <!-- a date field: the shared <vl-control> like form and dialog (protected = locked input) -->\n <div *ngSwitchCase=\"'date'\" class=\"form-group mb-3\" [attr.data-vl-field]=\"vlFieldKey(element)\" [attr.data-vl-path]=\"vlFieldPath(element)\">\n <vl-control [field]=\"element | vlDesignField:designTranslations\" [propertySchema]=\"itemInfo.propertySchema\" [selectedLanguageInfo]=\"selectedLanguageInfo\"\n container=\"form\" (changed)=\"dateChangeEvent(element, $event)\"></vl-control>\n </div>\n\n <!-- Button Control -->\n <div *ngSwitchCase=\"'default'\"\n [class]=\"element.option?.visible ? 'row' : 'hidden'\"\n (click)=\"invokeOnCardFooter(element)\">\n <button nz-button [attr.data-vl-action]=\"vlAction(element?.option)\" [attr.data-vl-writes]=\"vlWrites(element?.option)\"\n [style]=\"getStyleWithoutClasses(element.style).style\"\n [class]=\"element.option.protected ? 'disabled-button' : getStyleWithoutClasses(element.style).classes\">\n <ng-container\n *ngIf=\"!element.caption; else textContent\">\n <i nz-icon [nzType]=\"element.icon\"\n nzTheme=\"outline\"></i>\n </ng-container>\n <ng-template #textContent>\n {{ element.caption | vlDesignText:designTranslations }}\n </ng-template>\n </button>\n </div>\n </ng-container>\n </span>\n </div>\n </ng-template>\n ", styles: [".vl-cards--aligned>.card-grid-item{display:flex;flex-direction:column}.vl-cards--aligned>.card-grid-item>.vl-card-body{flex:1 1 auto;display:flex;flex-direction:column}.vl-cards--aligned .vl-card-body>:not(.card-layout-item--action)+.card-layout-item--action{margin-top:auto}:host{display:block;width:100%;min-width:0}.vl-card-runtime{min-width:0;box-sizing:border-box}.card-responsive-grid{width:100%;min-width:0;box-sizing:border-box}.scroll-pagination-sentinel{width:100%;height:1px}.card-grid-item,.card-layout-item,.card-horizontal-layout,.card-field-wrapper{width:100%;min-width:0;box-sizing:border-box}.card-grid-item>div{margin-left:auto;margin-right:auto}.card-field-wrapper{overflow-wrap:anywhere}.card-field-wrapper p,.card-field-wrapper h3{margin:0;min-width:0}.card-layout-item img{display:block;max-width:100%;height:auto}.card-layout-item button{max-width:100%;box-sizing:border-box}.schema-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}.hidden{display:none!important}.card-pagination-wrapper{width:100%;min-width:0;box-sizing:border-box;padding:0 10px}.vl-d-body.vl-d-hidden .hidden{display:revert!important}.vl-d-card-empty{min-height:160px;flex-direction:column;gap:4px}.vl-d-card-empty__icon{font-size:28px;color:var(--vl-color-text-muted, #94a3b8);margin-bottom:6px}.vl-d-card-empty__title{font-weight:600;color:var(--vl-color-text, #334155)}.card-grid-item.vl-d-item{padding-top:4px}.vl-list-empty{grid-column:1 / -1;margin:24px 0;padding:16px;text-align:center;color:var(--vl-color-text-muted, #6b7280);font-size:.95rem}.card-grid-item.vl-record--sample{position:relative}.vl-record__sample{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--vl-color-primary, #2563eb);color:var(--vl-color-on-primary, #fff);pointer-events:none}.vl-card-body .card-horizontal-layout.card-horizontal-layout--actions{display:block!important;grid-template-columns:none!important}.vl-card-body .card-horizontal-layout--actions>.card-row-fields{min-width:0;display:grid;gap:8px}.vl-card-body.vl-card-body--actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}.vl-card-body.vl-card-body--actions>.card-layout-item{grid-column:1}.vl-card-body.vl-card-body--actions>.card-actions-column{grid-column:2;display:flex;flex-direction:column;gap:4px;align-items:center}.vl-card-body .card-actions-column>div{width:auto}.vl-card-body .card-actions-column button{width:var(--vl-size-icon-button, 36px)!important;height:var(--vl-size-icon-button, 36px)!important;min-height:var(--vl-size-icon-button, 36px)!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}\n", ".vl-d-root{position:relative;min-width:0;max-width:100%;min-height:40px}.vl-d-bar{position:absolute;top:-13px;right:8px;z-index:20;opacity:0;visibility:hidden;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}.vl-d-item{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:3px;transition:outline-color .12s ease,box-shadow .12s ease}.vl-d-item:hover{outline-color:#93c5fd}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{opacity:1;visibility:visible;transform:translateY(0)}.vl-d-item--selected{outline:2px solid #3b82f6;outline-offset:3px;box-shadow:0 0 0 5px #3b82f614}.vl-d-item--target{outline-color:#2563eb}.vl-d-section{position:relative;min-width:0;border-radius:6px;outline:1px dashed transparent;outline-offset:4px}.vl-d-section:hover{outline-color:#c7d2fe}.vl-d-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:6px}.vl-d-section-head .vl-d-bar{position:static;opacity:0;visibility:hidden;transform:none}.vl-d-section:hover>.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible}.vl-d-section-name{font-size:12px;font-weight:600;color:#64748b}.vl-d-section--sticky{border-left:3px solid #6366f1;padding-left:6px}.vl-d-section--conditional{outline-style:dashed;outline-color:#a5b4fc}.vl-d-body{cursor:pointer;min-width:0}.vl-d-body>*{pointer-events:none}.vl-d-hidden{opacity:.5;outline:1px dashed #94a3b8;outline-offset:2px}.vl-d-hidden-tag{display:inline-block;float:right;margin-bottom:2px;font-size:.7rem;color:#475569;background:#e2e8f0;border-radius:4px;padding:0 .4rem}.vl-d-empty{grid-column:1 / -1;min-height:56px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;font-size:13px;text-align:center;background:#f8fafc}.vl-d-add{display:flex;justify-content:center;padding:10px 0 4px}.vl-d-add-btn{border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}.vl-d-add-btn:hover{background:#dbeafe}.vl-d-container-bar{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.cdk-drag-preview.vl-d-item,.cdk-drag-preview.vl-d-section{box-shadow:0 12px 28px #0f172a2e;border-radius:8px;background:#fff;opacity:.95}.cdk-drag-placeholder.vl-d-item,.cdk-drag-placeholder.vl-d-section{opacity:.35}.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}@media(max-width:768px){.vl-d-bar,.vl-d-section-head .vl-d-bar{opacity:1;visibility:visible;transform:none}}@media(prefers-reduced-motion:reduce){.vl-d-bar,.vl-d-item{transition:none}}.vl-d-empty-hint{display:block;width:100%;color:#64748b;font-size:12px;padding:4px 8px 4px 22px}.vl-d-bar{box-sizing:border-box;height:fit-content;min-height:0;padding:1px;border-radius:7px;border:1.5px solid #2563eb;background:#fff;line-height:0}.vl-d-item:has(.vl-d-item)>.vl-d-bar,.vl-d-section-head .vl-d-bar{border:1.5px dashed #b45309}.vl-d-bar{top:0;left:50%;right:auto;transform:translate(-50%,calc(-80% + 2px))}.vl-d-item:hover>.vl-d-bar,.vl-d-item--selected>.vl-d-bar{transform:translate(-50%,-80%)}.vl-d-item:has(.vl-d-item)>.vl-d-bar{top:-3px;transform:translate(-50%,calc(-50% + 2px))}.vl-d-item:has(.vl-d-item):hover>.vl-d-bar,.vl-d-item--selected:has(.vl-d-item)>.vl-d-bar{transform:translate(-50%,-50%)}.vl-d-section-head .vl-d-bar{position:absolute;top:-4px;left:50%;transform:translate(-50%,-50%);z-index:20}th.vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}th.vl-d-item:hover>.vl-d-bar,th.vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-head .vl-d-item>.vl-d-bar{top:3px;transform:translate(-50%,2px)}.vl-d-head .vl-d-item:hover>.vl-d-bar,.vl-d-head .vl-d-item.vl-d-item--selected>.vl-d-bar{transform:translate(-50%)}.vl-d-bar{width:max-content}vl-side-menu .vl-d-item>.vl-d-bar,vl-side-menu .vl-d-item:hover>.vl-d-bar,vl-side-menu .vl-d-item.vl-d-item--selected>.vl-d-bar{top:50%;left:auto;right:8px;transform:translateY(-50%)}header .vl-d-item>.vl-d-bar,header .vl-d-item:hover>.vl-d-bar,header .vl-d-item.vl-d-item--selected>.vl-d-bar{top:2px;left:auto;right:2px;transform:none}\n"] }]
|
|
10859
10860
|
}], 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: [{
|
|
10860
10861
|
type: Input
|
|
10861
10862
|
}], pageData: [{
|