@yomotech/view-toolkit 1.0.84 → 1.0.85

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.
@@ -9076,7 +9076,7 @@ class ControlComponent {
9076
9076
  return { classes: parts.classes, style };
9077
9077
  }
9078
9078
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9079
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: ControlComponent, isStandalone: true, selector: "vl-control", inputs: { field: "field", propertySchema: "propertySchema", selectedLanguageInfo: "selectedLanguageInfo", errorMessages: "errorMessages", saveTried: "saveTried", container: "container", buttonType: "buttonType", locked: "locked", lockHints: "lockHints", mode: "mode", record: "record", hideLabel: "hideLabel", styleValue: "styleValue", compact: "compact", list: "list", listLoading: "listLoading", creditCardError: "creditCardError" }, outputs: { picked: "picked", changed: "changed", opened: "opened", toggled: "toggled", linkClicked: "linkClicked", mediaClicked: "mediaClicked", buttonClick: "buttonClick", lockedClick: "lockedClick", signIn: "signIn" }, host: { properties: { "attr.data-vl-field": "this.hostFieldKey", "attr.data-vl-path": "this.hostFieldPath", "class.vl-control--clamped": "this.clamped", "style.--vl-max-lines": "this.maxLines", "attr.data-vl-enter-key": "this.hostEnterKey" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n - new: kind price - a price as data (213/36)\n - new: kind map - the place on a map, loaded after a tap (point 213 worklist 42)\n - new: kind openingHours - the week's times and whether it is open now -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\n - change: every button with an icon shows it (buttonIcon), not only a contact button -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n - new: textBlock - caption and value as a paragraph, no label, no box (point 213 worklist 15a) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - new: the card field in one, two or three rows (option.cardLayout); every part carries the field's input style -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - fix: the card field (creditCard) shows its label and the red * of a required field like every other field,\n in the same frame (vl-control__inner): label above, the card below -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: no list of the missing fields under the button (user 2026-10-24: too many red lines) - the fields show\n their own messages on a click\n - change: every reason under a locked button\n - new: a locked button stays clickable (onButton: lockedClick instead of buttonClick); its hint stands under it,\n a link to the sign-in when the sign-in is missing\n - new: a red * after the label of a required field\n - change: a locked button is grey (vl-control__button--locked), not the layout's colour half transparent -\n the blue looked clickable\n - new: a locked button is disabled, half transparent and takes no click (needsLogin / needsValid) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - fix: the text field gets ruleField like every other building block - the data object's rules\n (required ...) did not count for a text field -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\n - fix: the building blocks get ruleField - the field with its data object's rules -->\n<!-- Shuaib 2026-10-20\n - new: one field of a layout with the library's building blocks, as the Designer's canvas shows it;\n every control gets the project's translated messages (messages) (#166)\n - the button carries only the layout's classes and style - no Bootstrap classes, the app does not\n load Bootstrap -->\n@if (kind === 'button') {\n<button [attr.type]=\"buttonType\"\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\n [class]=\"buttonStyle().classes\"\n [ngStyle]=\"buttonStyle().style\"\n [attr.aria-disabled]=\"locked || null\" [class.vl-control__button--locked]=\"locked\"\n [attr.data-vl-contact]=\"contactKind || null\"\n (click)=\"onButton($event)\">\n @if (buttonIcon) {<span nz-icon [nzType]=\"buttonIcon\" nzTheme=\"outline\" aria-hidden=\"true\"></span>}\n {{ label }}\n</button>\n@if (locked) {\n@for (hint of lockHints; track hint.reason) {\n@if (hint.reason === 'login' && hint.text) {\n<p class=\"vl-control__lock-hint vl-control__lock-hint--link\" role=\"link\" tabindex=\"0\"\n (click)=\"signIn.emit()\" (keydown.enter)=\"signIn.emit()\">{{ hint.text }}</p>\n} @else if (hint.text) {\n<p class=\"vl-control__lock-hint\" role=\"status\">{{ hint.text }}</p>\n}\n}\n}\n} @else if (kind === 'openingHours') {\n<!-- opening hours as data (2026-11-09): option.hours [{ day, from, to }], option.timeZone - status and week -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-opening-hours [hours]=\"field?.option?.hours || []\" [timeZone]=\"field?.option?.timeZone || 'Europe/Berlin'\"\n [translations]=\"translations\"></vl-opening-hours>\n} @else if (kind === 'price') {\n<!-- a price as data (2026-11-09): option.amount, option.currency, option.from - written in the app's language -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-price [amount]=\"field?.option?.amount\" [currency]=\"field?.option?.currency || 'EUR'\" [from]=\"field?.option?.from\" [translations]=\"translations\"></vl-price>\n} @else if (kind === 'map') {\n<!-- the place on a map (2026-11-09): option.lat, option.lon, option.address, option.zoom - loads after a tap -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-map [place]=\"field?.option\" [translations]=\"translations\"></vl-map>\n} @else if (kind === 'slideshow') {\n<!-- a slideshow (2026-11-07): the media field's pictures change by themselves; a caption stays above it -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-slideshow [images]=\"slideshowImages()\" [placeholders]=\"field?.option?.placeholders ?? 3\" [interval]=\"field?.option?.interval ?? 5000\"\n [aspect]=\"field?.option?.aspect || '16 / 9'\" [label]=\"label || 'Picture'\"></vl-slideshow>\n} @else if (kind === 'textBlock') {\n<!-- a text block (2026-11-07): the caption is the text (translated like every caption), a value follows it; no\n label, no box - for info pages: welcome, opening hours, an about text -->\n<div [class]=\"'vl-text-block ' + valueStyle().classes\" [ngStyle]=\"valueStyle().style\">\n @if (label) {<p [class]=\"'vl-text-block__text ' + labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</p>}\n @if (value !== undefined && value !== null && value !== '') {<p class=\"vl-text-block__value\">{{ value }}</p>}\n</div>\n} @else if (kind === 'creditCard') {\n<!-- the card field has its label and the red * like every other field (it had none - user 2026-10-28) -->\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\n @if (label || required) {\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\n }\n <div class=\"vl-control__card\">\n @if (cardLayout === 'oneRow') {\n <div id=\"card-element\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\">\n <!-- a Stripe element will be inserted here -->\n </div>\n } @else {\n <!-- number, expiry and CVC as Stripe's three elements, in two or three rows (OFFENE-PUNKTE 103) -->\n <div class=\"vl-control__card-parts\" [class]=\"'vl-control__card-parts vl-control__card-parts--' + cardLayout\" data-vl-card-parts>\n <div id=\"card-number\" class=\"vl-control__card-part--number\" [class]=\"'vl-control__card-part--number ' + inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"number\"></div>\n <div id=\"card-expiry\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"expiry\"></div>\n <div id=\"card-cvc\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"cvc\"></div>\n </div>\n }\n <div id=\"card-errors\" [class]=\"creditCardError?.textContent ? 'text-red-400 m-0' : ''\"></div>\n </div>\n</div>\n} @else if (display) {\n<!-- a list (card, grid): the record's value, read only; scope.style styles the value -->\n@if (showLabel) {\n<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>\n}\n@if (kind === 'media') {\n<vl-media [field]=\"ruleField\" [compact]=\"true\" [property]=\"property\" [value]=\"value\"\n [mediaClass]=\"valueStyle().classes\" [mediaStyle]=\"valueStyle().style\"\n (clicked)=\"mediaClicked.emit(field?.option)\"></vl-media>\n} @else {\n<div [class]=\"'vl-control__value ' + valueStyle().classes\"\n [class.vl-control__value--number]=\"kind === 'number'\"\n [class.vl-control__value--link]=\"isLink\"\n [ngStyle]=\"valueStyle().style\" (click)=\"openLink()\">\n @switch (kind) {\n @case ('number') {\n <vl-number style=\"display:inline-block\" [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\n [property]=\"property\" [row]=\"numberRow\" [translations]=\"translations\"></vl-number>\n }\n @case ('password') { <vl-password [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"></vl-password> }\n @case ('textarea') { <vl-textarea [field]=\"ruleField\" [readonly]=\"true\" [compact]=\"compact\" [value]=\"value\"></vl-textarea> }\n @case ('radio') {\n <vl-radio [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\" [translations]=\"translations\"></vl-radio>\n }\n @case ('dropdown') {\n <vl-dropdown [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [items]=\"property?.data\"\n [translations]=\"translations\"></vl-dropdown>\n }\n @case ('switch') {\n <vl-switch [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"\n [translations]=\"translations\"></vl-switch>\n }\n @case ('checkbox') {\n <vl-checkbox [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"></vl-checkbox>\n }\n @case ('autocomplete') {\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\"\n [translations]=\"translations\"></vl-autocomplete>\n }\n @case ('combobox') {\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\" [combobox]=\"true\"\n [translations]=\"translations\"></vl-autocomplete>\n }\n @case ('date') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('time') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('datetime') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('daterange') {\n <vl-daterange [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [translations]=\"translations\"></vl-daterange>\n }\n @default { {{ text }} }\n }\n</div>\n}\n} @else {\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\n @if (showLabel) {\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\n }\n @switch (kind) {\n @case ('media') {\n <vl-media [field]=\"ruleField\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\n }\n @case ('password') {\n <vl-password [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-password>\n }\n @case ('textarea') {\n <vl-textarea [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-textarea>\n }\n @case ('autocomplete') {\n <vl-autocomplete [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [list]=\"selectionList\" [loading]=\"selectionLoading\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\n }\n @case ('combobox') {\n <vl-autocomplete [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [list]=\"selectionList\" [loading]=\"selectionLoading\" [combobox]=\"true\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\n }\n @case ('dropdown') {\n <vl-dropdown [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [items]=\"property?.data\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-dropdown>\n }\n @case ('radio') {\n <vl-radio [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n (chosen)=\"toggled.emit($event)\"></vl-radio>\n }\n @case ('checkbox') {\n <vl-checkbox [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType\" [caption]=\"label\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\"\n (toggled)=\"toggled.emit($event)\"></vl-checkbox>\n }\n @case ('switch') {\n <vl-switch [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType\" [translations]=\"translations\"\n (switched)=\"toggled.emit($event)\"></vl-switch>\n }\n @case ('number') {\n <vl-number [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"property?.type || 'number'\" [property]=\"property\" [row]=\"row\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-number>\n }\n @case ('date') {\n <vl-datetime kind=\"date\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-datetime>\n }\n @case ('time') {\n <vl-datetime kind=\"time\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\" (opened)=\"opened.emit()\"></vl-datetime>\n }\n @case ('datetime') {\n <vl-datetime kind=\"datetime\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-datetime>\n }\n @case ('daterange') {\n <vl-daterange [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-daterange>\n }\n @default {\n <!-- textInput, email and every other text control -->\n <vl-textbox [formField]=\"ruleField\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\"></vl-textbox>\n }\n }\n</div>\n}\n", styles: [":host{display:block;min-width:0}.vl-text-block{margin:0;color:var(--vl-color-text, inherit)}.vl-text-block__text,.vl-text-block__value{margin:0 0 .5em;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.vl-text-block__value:last-child,.vl-text-block__text:last-child{margin-bottom:0}.vl-control__value{margin:0;min-width:0;overflow-wrap:anywhere}:host(.vl-control--clamped) .vl-control__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vl-max-lines);line-clamp:var(--vl-max-lines);overflow:hidden}.vl-control__value--number{font-size:1.17em;font-weight:700}.vl-control__value--link{cursor:pointer;text-decoration:underline}.vl-control__required{color:var(--vl-color-danger, #dc2626);margin-left:2px}.vl-control__card-parts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.vl-control__card-parts--twoRows{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.vl-control__card-parts--twoRows .vl-control__card-part--number{grid-column:1 / -1}.vl-control__lock-hint{margin:6px 0 0;font-size:.85em;color:var(--vl-color-danger, #b91c1c);text-align:center}.vl-control__lock-hint--link{cursor:pointer;text-decoration:underline}.vl-control__button--locked{background:#e5e7eb!important;border-color:var(--vl-color-border, #d1d5db)!important;color:var(--vl-color-text-muted, #6b7280)!important;box-shadow:none!important;cursor:not-allowed!important;filter:none!important}\n"], dependencies: [{ kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Autocomplete, selector: "vl-autocomplete", inputs: ["field", "target", "value", "readonly", "list", "loading", "combobox", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["picked"] }, { kind: "component", type: CheckboxControl, selector: "vl-checkbox", inputs: ["field", "target", "key", "value", "readonly", "type", "caption", "saveTried", "errorMessages", "translations", "inputStyle"], outputs: ["toggled"] }, { kind: "component", type: DateRangeControl, selector: "vl-daterange", inputs: ["field", "target", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed"] }, { kind: "component", type: DateTimeControl, selector: "vl-datetime", inputs: ["field", "target", "property", "kind", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed", "opened"] }, { kind: "component", type: DropdownControl, selector: "vl-dropdown", inputs: ["field", "target", "value", "readonly", "items", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["chosen"] }, { kind: "component", type: MediaControl, selector: "vl-media", inputs: ["field", "value", "property", "compact", "mediaStyle", "mediaClass"], outputs: ["clicked"] }, { kind: "component", type: SlideshowComponent, selector: "vl-slideshow", inputs: ["images", "interval", "aspect", "label", "placeholders"] }, { kind: "component", type: OpeningHoursComponent, selector: "vl-opening-hours", inputs: ["hours", "timeZone", "translations"] }, { kind: "component", type: MapComponent, selector: "vl-map", inputs: ["place", "translations"] }, { kind: "component", type: PriceComponent, selector: "vl-price", inputs: ["amount", "currency", "from", "translations"] }, { kind: "component", type: NumberControl, selector: "vl-number", inputs: ["field", "target", "value", "readonly", "type", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass", "property", "row"], outputs: ["changed"] }, { kind: "component", type: PasswordControl, selector: "vl-password", inputs: ["field", "target", "value", "readonly", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: RadioControl, selector: "vl-radio", inputs: ["field", "target", "value", "readonly", "type", "saveTried", "errorMessages", "translations"], outputs: ["chosen"] }, { kind: "component", type: SwitchControl, selector: "vl-switch", inputs: ["field", "target", "value", "readonly", "type", "translations"], outputs: ["switched"] }, { kind: "component", type: TextareaControl, selector: "vl-textarea", inputs: ["field", "target", "value", "readonly", "compact", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: Textbox, selector: "vl-textbox", inputs: ["formField", "modalItemInfo", "saveTried", "errorMessages", "readonly", "value"], outputs: ["linkClicked"] }, { kind: "pipe", type: DatePipe, name: "date" }] });
9079
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: ControlComponent, isStandalone: true, selector: "vl-control", inputs: { field: "field", propertySchema: "propertySchema", selectedLanguageInfo: "selectedLanguageInfo", errorMessages: "errorMessages", saveTried: "saveTried", container: "container", buttonType: "buttonType", locked: "locked", lockHints: "lockHints", mode: "mode", record: "record", hideLabel: "hideLabel", styleValue: "styleValue", compact: "compact", list: "list", listLoading: "listLoading", creditCardError: "creditCardError" }, outputs: { picked: "picked", changed: "changed", opened: "opened", toggled: "toggled", linkClicked: "linkClicked", mediaClicked: "mediaClicked", buttonClick: "buttonClick", lockedClick: "lockedClick", signIn: "signIn" }, host: { properties: { "attr.data-vl-field": "this.hostFieldKey", "attr.data-vl-path": "this.hostFieldPath", "class.vl-control--clamped": "this.clamped", "style.--vl-max-lines": "this.maxLines", "attr.data-vl-enter-key": "this.hostEnterKey" } }, usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18\n - new: a list's label carries vl-control__label - the theme's font role \"label\" finds it (point 173 step 4b) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n - new: kind price - a price as data (213/36)\n - new: kind map - the place on a map, loaded after a tap (point 213 worklist 42)\n - new: kind openingHours - the week's times and whether it is open now -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\n - change: every button with an icon shows it (buttonIcon), not only a contact button -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n - new: textBlock - caption and value as a paragraph, no label, no box (point 213 worklist 15a) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - new: the card field in one, two or three rows (option.cardLayout); every part carries the field's input style -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - fix: the card field (creditCard) shows its label and the red * of a required field like every other field,\n in the same frame (vl-control__inner): label above, the card below -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: no list of the missing fields under the button (user 2026-10-24: too many red lines) - the fields show\n their own messages on a click\n - change: every reason under a locked button\n - new: a locked button stays clickable (onButton: lockedClick instead of buttonClick); its hint stands under it,\n a link to the sign-in when the sign-in is missing\n - new: a red * after the label of a required field\n - change: a locked button is grey (vl-control__button--locked), not the layout's colour half transparent -\n the blue looked clickable\n - new: a locked button is disabled, half transparent and takes no click (needsLogin / needsValid) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - fix: the text field gets ruleField like every other building block - the data object's rules\n (required ...) did not count for a text field -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\n - fix: the building blocks get ruleField - the field with its data object's rules -->\n<!-- Shuaib 2026-10-20\n - new: one field of a layout with the library's building blocks, as the Designer's canvas shows it;\n every control gets the project's translated messages (messages) (#166)\n - the button carries only the layout's classes and style - no Bootstrap classes, the app does not\n load Bootstrap -->\n@if (kind === 'button') {\n<button [attr.type]=\"buttonType\"\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\n [class]=\"buttonStyle().classes\"\n [ngStyle]=\"buttonStyle().style\"\n [attr.aria-disabled]=\"locked || null\" [class.vl-control__button--locked]=\"locked\"\n [attr.data-vl-contact]=\"contactKind || null\"\n (click)=\"onButton($event)\">\n @if (buttonIcon) {<span nz-icon [nzType]=\"buttonIcon\" nzTheme=\"outline\" aria-hidden=\"true\"></span>}\n {{ label }}\n</button>\n@if (locked) {\n@for (hint of lockHints; track hint.reason) {\n@if (hint.reason === 'login' && hint.text) {\n<p class=\"vl-control__lock-hint vl-control__lock-hint--link\" role=\"link\" tabindex=\"0\"\n (click)=\"signIn.emit()\" (keydown.enter)=\"signIn.emit()\">{{ hint.text }}</p>\n} @else if (hint.text) {\n<p class=\"vl-control__lock-hint\" role=\"status\">{{ hint.text }}</p>\n}\n}\n}\n} @else if (kind === 'openingHours') {\n<!-- opening hours as data (2026-11-09): option.hours [{ day, from, to }], option.timeZone - status and week -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-opening-hours [hours]=\"field?.option?.hours || []\" [timeZone]=\"field?.option?.timeZone || 'Europe/Berlin'\"\n [translations]=\"translations\"></vl-opening-hours>\n} @else if (kind === 'price') {\n<!-- a price as data (2026-11-09): option.amount, option.currency, option.from - written in the app's language -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-price [amount]=\"field?.option?.amount\" [currency]=\"field?.option?.currency || 'EUR'\" [from]=\"field?.option?.from\" [translations]=\"translations\"></vl-price>\n} @else if (kind === 'map') {\n<!-- the place on a map (2026-11-09): option.lat, option.lon, option.address, option.zoom - loads after a tap -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-map [place]=\"field?.option\" [translations]=\"translations\"></vl-map>\n} @else if (kind === 'slideshow') {\n<!-- a slideshow (2026-11-07): the media field's pictures change by themselves; a caption stays above it -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-slideshow [images]=\"slideshowImages()\" [placeholders]=\"field?.option?.placeholders ?? 3\" [interval]=\"field?.option?.interval ?? 5000\"\n [aspect]=\"field?.option?.aspect || '16 / 9'\" [label]=\"label || 'Picture'\"></vl-slideshow>\n} @else if (kind === 'textBlock') {\n<!-- a text block (2026-11-07): the caption is the text (translated like every caption), a value follows it; no\n label, no box - for info pages: welcome, opening hours, an about text -->\n<div [class]=\"'vl-text-block ' + valueStyle().classes\" [ngStyle]=\"valueStyle().style\">\n @if (label) {<p [class]=\"'vl-text-block__text ' + labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</p>}\n @if (value !== undefined && value !== null && value !== '') {<p class=\"vl-text-block__value\">{{ value }}</p>}\n</div>\n} @else if (kind === 'creditCard') {\n<!-- the card field has its label and the red * like every other field (it had none - user 2026-10-28) -->\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\n @if (label || required) {\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\n }\n <div class=\"vl-control__card\">\n @if (cardLayout === 'oneRow') {\n <div id=\"card-element\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\">\n <!-- a Stripe element will be inserted here -->\n </div>\n } @else {\n <!-- number, expiry and CVC as Stripe's three elements, in two or three rows (OFFENE-PUNKTE 103) -->\n <div class=\"vl-control__card-parts\" [class]=\"'vl-control__card-parts vl-control__card-parts--' + cardLayout\" data-vl-card-parts>\n <div id=\"card-number\" class=\"vl-control__card-part--number\" [class]=\"'vl-control__card-part--number ' + inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"number\"></div>\n <div id=\"card-expiry\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"expiry\"></div>\n <div id=\"card-cvc\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"cvc\"></div>\n </div>\n }\n <div id=\"card-errors\" [class]=\"creditCardError?.textContent ? 'text-red-400 m-0' : ''\"></div>\n </div>\n</div>\n} @else if (display) {\n<!-- a list (card, grid): the record's value, read only; scope.style styles the value -->\n@if (showLabel) {\n<span [class]=\"'vl-control__label ' + labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>\n}\n@if (kind === 'media') {\n<vl-media [field]=\"ruleField\" [compact]=\"true\" [property]=\"property\" [value]=\"value\"\n [mediaClass]=\"valueStyle().classes\" [mediaStyle]=\"valueStyle().style\"\n (clicked)=\"mediaClicked.emit(field?.option)\"></vl-media>\n} @else {\n<div [class]=\"'vl-control__value ' + valueStyle().classes\"\n [class.vl-control__value--number]=\"kind === 'number'\"\n [class.vl-control__value--link]=\"isLink\"\n [ngStyle]=\"valueStyle().style\" (click)=\"openLink()\">\n @switch (kind) {\n @case ('number') {\n <vl-number style=\"display:inline-block\" [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\n [property]=\"property\" [row]=\"numberRow\" [translations]=\"translations\"></vl-number>\n }\n @case ('password') { <vl-password [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"></vl-password> }\n @case ('textarea') { <vl-textarea [field]=\"ruleField\" [readonly]=\"true\" [compact]=\"compact\" [value]=\"value\"></vl-textarea> }\n @case ('radio') {\n <vl-radio [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\" [translations]=\"translations\"></vl-radio>\n }\n @case ('dropdown') {\n <vl-dropdown [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [items]=\"property?.data\"\n [translations]=\"translations\"></vl-dropdown>\n }\n @case ('switch') {\n <vl-switch [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"\n [translations]=\"translations\"></vl-switch>\n }\n @case ('checkbox') {\n <vl-checkbox [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"></vl-checkbox>\n }\n @case ('autocomplete') {\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\"\n [translations]=\"translations\"></vl-autocomplete>\n }\n @case ('combobox') {\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\" [combobox]=\"true\"\n [translations]=\"translations\"></vl-autocomplete>\n }\n @case ('date') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('time') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('datetime') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('daterange') {\n <vl-daterange [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [translations]=\"translations\"></vl-daterange>\n }\n @default { {{ text }} }\n }\n</div>\n}\n} @else {\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\n @if (showLabel) {\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\n }\n @switch (kind) {\n @case ('media') {\n <vl-media [field]=\"ruleField\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\n }\n @case ('password') {\n <vl-password [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-password>\n }\n @case ('textarea') {\n <vl-textarea [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-textarea>\n }\n @case ('autocomplete') {\n <vl-autocomplete [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [list]=\"selectionList\" [loading]=\"selectionLoading\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\n }\n @case ('combobox') {\n <vl-autocomplete [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [list]=\"selectionList\" [loading]=\"selectionLoading\" [combobox]=\"true\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\n }\n @case ('dropdown') {\n <vl-dropdown [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [items]=\"property?.data\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-dropdown>\n }\n @case ('radio') {\n <vl-radio [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n (chosen)=\"toggled.emit($event)\"></vl-radio>\n }\n @case ('checkbox') {\n <vl-checkbox [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType\" [caption]=\"label\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\"\n (toggled)=\"toggled.emit($event)\"></vl-checkbox>\n }\n @case ('switch') {\n <vl-switch [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType\" [translations]=\"translations\"\n (switched)=\"toggled.emit($event)\"></vl-switch>\n }\n @case ('number') {\n <vl-number [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"property?.type || 'number'\" [property]=\"property\" [row]=\"row\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-number>\n }\n @case ('date') {\n <vl-datetime kind=\"date\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-datetime>\n }\n @case ('time') {\n <vl-datetime kind=\"time\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\" (opened)=\"opened.emit()\"></vl-datetime>\n }\n @case ('datetime') {\n <vl-datetime kind=\"datetime\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-datetime>\n }\n @case ('daterange') {\n <vl-daterange [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-daterange>\n }\n @default {\n <!-- textInput, email and every other text control -->\n <vl-textbox [formField]=\"ruleField\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\"></vl-textbox>\n }\n }\n</div>\n}\n", styles: [":host{display:block;min-width:0}.vl-text-block{margin:0;color:var(--vl-color-text, inherit)}.vl-text-block__text,.vl-text-block__value{margin:0 0 .5em;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.vl-text-block__value:last-child,.vl-text-block__text:last-child{margin-bottom:0}.vl-control__value{margin:0;min-width:0;overflow-wrap:anywhere}:host(.vl-control--clamped) .vl-control__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vl-max-lines);line-clamp:var(--vl-max-lines);overflow:hidden}.vl-control__value--number{font-size:1.17em;font-weight:700}.vl-control__value--link{cursor:pointer;text-decoration:underline}.vl-control__required{color:var(--vl-color-danger, #dc2626);margin-left:2px}.vl-control__card-parts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.vl-control__card-parts--twoRows{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.vl-control__card-parts--twoRows .vl-control__card-part--number{grid-column:1 / -1}.vl-control__lock-hint{margin:6px 0 0;font-size:.85em;color:var(--vl-color-danger, #b91c1c);text-align:center}.vl-control__lock-hint--link{cursor:pointer;text-decoration:underline}.vl-control__button--locked{background:#e5e7eb!important;border-color:var(--vl-color-border, #d1d5db)!important;color:var(--vl-color-text-muted, #6b7280)!important;box-shadow:none!important;cursor:not-allowed!important;filter:none!important}\n"], dependencies: [{ kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$4.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Autocomplete, selector: "vl-autocomplete", inputs: ["field", "target", "value", "readonly", "list", "loading", "combobox", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["picked"] }, { kind: "component", type: CheckboxControl, selector: "vl-checkbox", inputs: ["field", "target", "key", "value", "readonly", "type", "caption", "saveTried", "errorMessages", "translations", "inputStyle"], outputs: ["toggled"] }, { kind: "component", type: DateRangeControl, selector: "vl-daterange", inputs: ["field", "target", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed"] }, { kind: "component", type: DateTimeControl, selector: "vl-datetime", inputs: ["field", "target", "property", "kind", "value", "readonly", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["changed", "opened"] }, { kind: "component", type: DropdownControl, selector: "vl-dropdown", inputs: ["field", "target", "value", "readonly", "items", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"], outputs: ["chosen"] }, { kind: "component", type: MediaControl, selector: "vl-media", inputs: ["field", "value", "property", "compact", "mediaStyle", "mediaClass"], outputs: ["clicked"] }, { kind: "component", type: SlideshowComponent, selector: "vl-slideshow", inputs: ["images", "interval", "aspect", "label", "placeholders"] }, { kind: "component", type: OpeningHoursComponent, selector: "vl-opening-hours", inputs: ["hours", "timeZone", "translations"] }, { kind: "component", type: MapComponent, selector: "vl-map", inputs: ["place", "translations"] }, { kind: "component", type: PriceComponent, selector: "vl-price", inputs: ["amount", "currency", "from", "translations"] }, { kind: "component", type: NumberControl, selector: "vl-number", inputs: ["field", "target", "value", "readonly", "type", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass", "property", "row"], outputs: ["changed"] }, { kind: "component", type: PasswordControl, selector: "vl-password", inputs: ["field", "target", "value", "readonly", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: RadioControl, selector: "vl-radio", inputs: ["field", "target", "value", "readonly", "type", "saveTried", "errorMessages", "translations"], outputs: ["chosen"] }, { kind: "component", type: SwitchControl, selector: "vl-switch", inputs: ["field", "target", "value", "readonly", "type", "translations"], outputs: ["switched"] }, { kind: "component", type: TextareaControl, selector: "vl-textarea", inputs: ["field", "target", "value", "readonly", "compact", "keyboard", "saveTried", "errorMessages", "translations", "inputStyle", "inputClass"] }, { kind: "component", type: Textbox, selector: "vl-textbox", inputs: ["formField", "modalItemInfo", "saveTried", "errorMessages", "readonly", "value"], outputs: ["linkClicked"] }, { kind: "pipe", type: DatePipe, name: "date" }] });
9080
9080
  }
9081
9081
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ControlComponent, decorators: [{
9082
9082
  type: Component,
@@ -9097,7 +9097,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
9097
9097
  SwitchControl,
9098
9098
  TextareaControl,
9099
9099
  Textbox,
9100
- ], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n - new: kind price - a price as data (213/36)\n - new: kind map - the place on a map, loaded after a tap (point 213 worklist 42)\n - new: kind openingHours - the week's times and whether it is open now -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\n - change: every button with an icon shows it (buttonIcon), not only a contact button -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n - new: textBlock - caption and value as a paragraph, no label, no box (point 213 worklist 15a) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - new: the card field in one, two or three rows (option.cardLayout); every part carries the field's input style -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - fix: the card field (creditCard) shows its label and the red * of a required field like every other field,\n in the same frame (vl-control__inner): label above, the card below -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: no list of the missing fields under the button (user 2026-10-24: too many red lines) - the fields show\n their own messages on a click\n - change: every reason under a locked button\n - new: a locked button stays clickable (onButton: lockedClick instead of buttonClick); its hint stands under it,\n a link to the sign-in when the sign-in is missing\n - new: a red * after the label of a required field\n - change: a locked button is grey (vl-control__button--locked), not the layout's colour half transparent -\n the blue looked clickable\n - new: a locked button is disabled, half transparent and takes no click (needsLogin / needsValid) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - fix: the text field gets ruleField like every other building block - the data object's rules\n (required ...) did not count for a text field -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\n - fix: the building blocks get ruleField - the field with its data object's rules -->\n<!-- Shuaib 2026-10-20\n - new: one field of a layout with the library's building blocks, as the Designer's canvas shows it;\n every control gets the project's translated messages (messages) (#166)\n - the button carries only the layout's classes and style - no Bootstrap classes, the app does not\n load Bootstrap -->\n@if (kind === 'button') {\n<button [attr.type]=\"buttonType\"\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\n [class]=\"buttonStyle().classes\"\n [ngStyle]=\"buttonStyle().style\"\n [attr.aria-disabled]=\"locked || null\" [class.vl-control__button--locked]=\"locked\"\n [attr.data-vl-contact]=\"contactKind || null\"\n (click)=\"onButton($event)\">\n @if (buttonIcon) {<span nz-icon [nzType]=\"buttonIcon\" nzTheme=\"outline\" aria-hidden=\"true\"></span>}\n {{ label }}\n</button>\n@if (locked) {\n@for (hint of lockHints; track hint.reason) {\n@if (hint.reason === 'login' && hint.text) {\n<p class=\"vl-control__lock-hint vl-control__lock-hint--link\" role=\"link\" tabindex=\"0\"\n (click)=\"signIn.emit()\" (keydown.enter)=\"signIn.emit()\">{{ hint.text }}</p>\n} @else if (hint.text) {\n<p class=\"vl-control__lock-hint\" role=\"status\">{{ hint.text }}</p>\n}\n}\n}\n} @else if (kind === 'openingHours') {\n<!-- opening hours as data (2026-11-09): option.hours [{ day, from, to }], option.timeZone - status and week -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-opening-hours [hours]=\"field?.option?.hours || []\" [timeZone]=\"field?.option?.timeZone || 'Europe/Berlin'\"\n [translations]=\"translations\"></vl-opening-hours>\n} @else if (kind === 'price') {\n<!-- a price as data (2026-11-09): option.amount, option.currency, option.from - written in the app's language -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-price [amount]=\"field?.option?.amount\" [currency]=\"field?.option?.currency || 'EUR'\" [from]=\"field?.option?.from\" [translations]=\"translations\"></vl-price>\n} @else if (kind === 'map') {\n<!-- the place on a map (2026-11-09): option.lat, option.lon, option.address, option.zoom - loads after a tap -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-map [place]=\"field?.option\" [translations]=\"translations\"></vl-map>\n} @else if (kind === 'slideshow') {\n<!-- a slideshow (2026-11-07): the media field's pictures change by themselves; a caption stays above it -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-slideshow [images]=\"slideshowImages()\" [placeholders]=\"field?.option?.placeholders ?? 3\" [interval]=\"field?.option?.interval ?? 5000\"\n [aspect]=\"field?.option?.aspect || '16 / 9'\" [label]=\"label || 'Picture'\"></vl-slideshow>\n} @else if (kind === 'textBlock') {\n<!-- a text block (2026-11-07): the caption is the text (translated like every caption), a value follows it; no\n label, no box - for info pages: welcome, opening hours, an about text -->\n<div [class]=\"'vl-text-block ' + valueStyle().classes\" [ngStyle]=\"valueStyle().style\">\n @if (label) {<p [class]=\"'vl-text-block__text ' + labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</p>}\n @if (value !== undefined && value !== null && value !== '') {<p class=\"vl-text-block__value\">{{ value }}</p>}\n</div>\n} @else if (kind === 'creditCard') {\n<!-- the card field has its label and the red * like every other field (it had none - user 2026-10-28) -->\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\n @if (label || required) {\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\n }\n <div class=\"vl-control__card\">\n @if (cardLayout === 'oneRow') {\n <div id=\"card-element\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\">\n <!-- a Stripe element will be inserted here -->\n </div>\n } @else {\n <!-- number, expiry and CVC as Stripe's three elements, in two or three rows (OFFENE-PUNKTE 103) -->\n <div class=\"vl-control__card-parts\" [class]=\"'vl-control__card-parts vl-control__card-parts--' + cardLayout\" data-vl-card-parts>\n <div id=\"card-number\" class=\"vl-control__card-part--number\" [class]=\"'vl-control__card-part--number ' + inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"number\"></div>\n <div id=\"card-expiry\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"expiry\"></div>\n <div id=\"card-cvc\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"cvc\"></div>\n </div>\n }\n <div id=\"card-errors\" [class]=\"creditCardError?.textContent ? 'text-red-400 m-0' : ''\"></div>\n </div>\n</div>\n} @else if (display) {\n<!-- a list (card, grid): the record's value, read only; scope.style styles the value -->\n@if (showLabel) {\n<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>\n}\n@if (kind === 'media') {\n<vl-media [field]=\"ruleField\" [compact]=\"true\" [property]=\"property\" [value]=\"value\"\n [mediaClass]=\"valueStyle().classes\" [mediaStyle]=\"valueStyle().style\"\n (clicked)=\"mediaClicked.emit(field?.option)\"></vl-media>\n} @else {\n<div [class]=\"'vl-control__value ' + valueStyle().classes\"\n [class.vl-control__value--number]=\"kind === 'number'\"\n [class.vl-control__value--link]=\"isLink\"\n [ngStyle]=\"valueStyle().style\" (click)=\"openLink()\">\n @switch (kind) {\n @case ('number') {\n <vl-number style=\"display:inline-block\" [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\n [property]=\"property\" [row]=\"numberRow\" [translations]=\"translations\"></vl-number>\n }\n @case ('password') { <vl-password [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"></vl-password> }\n @case ('textarea') { <vl-textarea [field]=\"ruleField\" [readonly]=\"true\" [compact]=\"compact\" [value]=\"value\"></vl-textarea> }\n @case ('radio') {\n <vl-radio [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\" [translations]=\"translations\"></vl-radio>\n }\n @case ('dropdown') {\n <vl-dropdown [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [items]=\"property?.data\"\n [translations]=\"translations\"></vl-dropdown>\n }\n @case ('switch') {\n <vl-switch [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"\n [translations]=\"translations\"></vl-switch>\n }\n @case ('checkbox') {\n <vl-checkbox [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"></vl-checkbox>\n }\n @case ('autocomplete') {\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\"\n [translations]=\"translations\"></vl-autocomplete>\n }\n @case ('combobox') {\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\" [combobox]=\"true\"\n [translations]=\"translations\"></vl-autocomplete>\n }\n @case ('date') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('time') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('datetime') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('daterange') {\n <vl-daterange [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [translations]=\"translations\"></vl-daterange>\n }\n @default { {{ text }} }\n }\n</div>\n}\n} @else {\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\n @if (showLabel) {\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\n }\n @switch (kind) {\n @case ('media') {\n <vl-media [field]=\"ruleField\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\n }\n @case ('password') {\n <vl-password [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-password>\n }\n @case ('textarea') {\n <vl-textarea [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-textarea>\n }\n @case ('autocomplete') {\n <vl-autocomplete [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [list]=\"selectionList\" [loading]=\"selectionLoading\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\n }\n @case ('combobox') {\n <vl-autocomplete [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [list]=\"selectionList\" [loading]=\"selectionLoading\" [combobox]=\"true\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\n }\n @case ('dropdown') {\n <vl-dropdown [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [items]=\"property?.data\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-dropdown>\n }\n @case ('radio') {\n <vl-radio [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n (chosen)=\"toggled.emit($event)\"></vl-radio>\n }\n @case ('checkbox') {\n <vl-checkbox [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType\" [caption]=\"label\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\"\n (toggled)=\"toggled.emit($event)\"></vl-checkbox>\n }\n @case ('switch') {\n <vl-switch [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType\" [translations]=\"translations\"\n (switched)=\"toggled.emit($event)\"></vl-switch>\n }\n @case ('number') {\n <vl-number [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"property?.type || 'number'\" [property]=\"property\" [row]=\"row\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-number>\n }\n @case ('date') {\n <vl-datetime kind=\"date\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-datetime>\n }\n @case ('time') {\n <vl-datetime kind=\"time\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\" (opened)=\"opened.emit()\"></vl-datetime>\n }\n @case ('datetime') {\n <vl-datetime kind=\"datetime\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-datetime>\n }\n @case ('daterange') {\n <vl-daterange [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-daterange>\n }\n @default {\n <!-- textInput, email and every other text control -->\n <vl-textbox [formField]=\"ruleField\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\"></vl-textbox>\n }\n }\n</div>\n}\n", styles: [":host{display:block;min-width:0}.vl-text-block{margin:0;color:var(--vl-color-text, inherit)}.vl-text-block__text,.vl-text-block__value{margin:0 0 .5em;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.vl-text-block__value:last-child,.vl-text-block__text:last-child{margin-bottom:0}.vl-control__value{margin:0;min-width:0;overflow-wrap:anywhere}:host(.vl-control--clamped) .vl-control__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vl-max-lines);line-clamp:var(--vl-max-lines);overflow:hidden}.vl-control__value--number{font-size:1.17em;font-weight:700}.vl-control__value--link{cursor:pointer;text-decoration:underline}.vl-control__required{color:var(--vl-color-danger, #dc2626);margin-left:2px}.vl-control__card-parts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.vl-control__card-parts--twoRows{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.vl-control__card-parts--twoRows .vl-control__card-part--number{grid-column:1 / -1}.vl-control__lock-hint{margin:6px 0 0;font-size:.85em;color:var(--vl-color-danger, #b91c1c);text-align:center}.vl-control__lock-hint--link{cursor:pointer;text-decoration:underline}.vl-control__button--locked{background:#e5e7eb!important;border-color:var(--vl-color-border, #d1d5db)!important;color:var(--vl-color-text-muted, #6b7280)!important;box-shadow:none!important;cursor:not-allowed!important;filter:none!important}\n"] }]
9100
+ ], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18\n - new: a list's label carries vl-control__label - the theme's font role \"label\" finds it (point 173 step 4b) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n - new: kind price - a price as data (213/36)\n - new: kind map - the place on a map, loaded after a tap (point 213 worklist 42)\n - new: kind openingHours - the week's times and whether it is open now -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\n - change: every button with an icon shows it (buttonIcon), not only a contact button -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n - new: textBlock - caption and value as a paragraph, no label, no box (point 213 worklist 15a) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n - new: the card field in one, two or three rows (option.cardLayout); every part carries the field's input style -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - fix: the card field (creditCard) shows its label and the red * of a required field like every other field,\n in the same frame (vl-control__inner): label above, the card below -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - change: no list of the missing fields under the button (user 2026-10-24: too many red lines) - the fields show\n their own messages on a click\n - change: every reason under a locked button\n - new: a locked button stays clickable (onButton: lockedClick instead of buttonClick); its hint stands under it,\n a link to the sign-in when the sign-in is missing\n - new: a red * after the label of a required field\n - change: a locked button is grey (vl-control__button--locked), not the layout's colour half transparent -\n the blue looked clickable\n - new: a locked button is disabled, half transparent and takes no click (needsLogin / needsValid) -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n - fix: the text field gets ruleField like every other building block - the data object's rules\n (required ...) did not count for a text field -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-22\n - fix: the building blocks get ruleField - the field with its data object's rules -->\n<!-- Shuaib 2026-10-20\n - new: one field of a layout with the library's building blocks, as the Designer's canvas shows it;\n every control gets the project's translated messages (messages) (#166)\n - the button carries only the layout's classes and style - no Bootstrap classes, the app does not\n load Bootstrap -->\n@if (kind === 'button') {\n<button [attr.type]=\"buttonType\"\n [attr.data-vl-action]=\"vlAction(field?.option)\" [attr.data-vl-writes]=\"vlWrites(field?.option)\"\n [class]=\"buttonStyle().classes\"\n [ngStyle]=\"buttonStyle().style\"\n [attr.aria-disabled]=\"locked || null\" [class.vl-control__button--locked]=\"locked\"\n [attr.data-vl-contact]=\"contactKind || null\"\n (click)=\"onButton($event)\">\n @if (buttonIcon) {<span nz-icon [nzType]=\"buttonIcon\" nzTheme=\"outline\" aria-hidden=\"true\"></span>}\n {{ label }}\n</button>\n@if (locked) {\n@for (hint of lockHints; track hint.reason) {\n@if (hint.reason === 'login' && hint.text) {\n<p class=\"vl-control__lock-hint vl-control__lock-hint--link\" role=\"link\" tabindex=\"0\"\n (click)=\"signIn.emit()\" (keydown.enter)=\"signIn.emit()\">{{ hint.text }}</p>\n} @else if (hint.text) {\n<p class=\"vl-control__lock-hint\" role=\"status\">{{ hint.text }}</p>\n}\n}\n}\n} @else if (kind === 'openingHours') {\n<!-- opening hours as data (2026-11-09): option.hours [{ day, from, to }], option.timeZone - status and week -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-opening-hours [hours]=\"field?.option?.hours || []\" [timeZone]=\"field?.option?.timeZone || 'Europe/Berlin'\"\n [translations]=\"translations\"></vl-opening-hours>\n} @else if (kind === 'price') {\n<!-- a price as data (2026-11-09): option.amount, option.currency, option.from - written in the app's language -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-price [amount]=\"field?.option?.amount\" [currency]=\"field?.option?.currency || 'EUR'\" [from]=\"field?.option?.from\" [translations]=\"translations\"></vl-price>\n} @else if (kind === 'map') {\n<!-- the place on a map (2026-11-09): option.lat, option.lon, option.address, option.zoom - loads after a tap -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-map [place]=\"field?.option\" [translations]=\"translations\"></vl-map>\n} @else if (kind === 'slideshow') {\n<!-- a slideshow (2026-11-07): the media field's pictures change by themselves; a caption stays above it -->\n@if (label && showLabel) {<span [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>}\n<vl-slideshow [images]=\"slideshowImages()\" [placeholders]=\"field?.option?.placeholders ?? 3\" [interval]=\"field?.option?.interval ?? 5000\"\n [aspect]=\"field?.option?.aspect || '16 / 9'\" [label]=\"label || 'Picture'\"></vl-slideshow>\n} @else if (kind === 'textBlock') {\n<!-- a text block (2026-11-07): the caption is the text (translated like every caption), a value follows it; no\n label, no box - for info pages: welcome, opening hours, an about text -->\n<div [class]=\"'vl-text-block ' + valueStyle().classes\" [ngStyle]=\"valueStyle().style\">\n @if (label) {<p [class]=\"'vl-text-block__text ' + labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</p>}\n @if (value !== undefined && value !== null && value !== '') {<p class=\"vl-text-block__value\">{{ value }}</p>}\n</div>\n} @else if (kind === 'creditCard') {\n<!-- the card field has its label and the red * like every other field (it had none - user 2026-10-28) -->\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\n @if (label || required) {\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\n }\n <div class=\"vl-control__card\">\n @if (cardLayout === 'oneRow') {\n <div id=\"card-element\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\">\n <!-- a Stripe element will be inserted here -->\n </div>\n } @else {\n <!-- number, expiry and CVC as Stripe's three elements, in two or three rows (OFFENE-PUNKTE 103) -->\n <div class=\"vl-control__card-parts\" [class]=\"'vl-control__card-parts vl-control__card-parts--' + cardLayout\" data-vl-card-parts>\n <div id=\"card-number\" class=\"vl-control__card-part--number\" [class]=\"'vl-control__card-part--number ' + inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"number\"></div>\n <div id=\"card-expiry\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"expiry\"></div>\n <div id=\"card-cvc\" [class]=\"inputStyle().classes\" [ngStyle]=\"inputStyle().style\" data-vl-card-part=\"cvc\"></div>\n </div>\n }\n <div id=\"card-errors\" [class]=\"creditCardError?.textContent ? 'text-red-400 m-0' : ''\"></div>\n </div>\n</div>\n} @else if (display) {\n<!-- a list (card, grid): the record's value, read only; scope.style styles the value -->\n@if (showLabel) {\n<span [class]=\"'vl-control__label ' + labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}</span>\n}\n@if (kind === 'media') {\n<vl-media [field]=\"ruleField\" [compact]=\"true\" [property]=\"property\" [value]=\"value\"\n [mediaClass]=\"valueStyle().classes\" [mediaStyle]=\"valueStyle().style\"\n (clicked)=\"mediaClicked.emit(field?.option)\"></vl-media>\n} @else {\n<div [class]=\"'vl-control__value ' + valueStyle().classes\"\n [class.vl-control__value--number]=\"kind === 'number'\"\n [class.vl-control__value--link]=\"isLink\"\n [ngStyle]=\"valueStyle().style\" (click)=\"openLink()\">\n @switch (kind) {\n @case ('number') {\n <vl-number style=\"display:inline-block\" [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\n [property]=\"property\" [row]=\"numberRow\" [translations]=\"translations\"></vl-number>\n }\n @case ('password') { <vl-password [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"></vl-password> }\n @case ('textarea') { <vl-textarea [field]=\"ruleField\" [readonly]=\"true\" [compact]=\"compact\" [value]=\"value\"></vl-textarea> }\n @case ('radio') {\n <vl-radio [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\"\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\" [translations]=\"translations\"></vl-radio>\n }\n @case ('dropdown') {\n <vl-dropdown [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [items]=\"property?.data\"\n [translations]=\"translations\"></vl-dropdown>\n }\n @case ('switch') {\n <vl-switch [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"\n [translations]=\"translations\"></vl-switch>\n }\n @case ('checkbox') {\n <vl-checkbox [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [type]=\"toggleType\"></vl-checkbox>\n }\n @case ('autocomplete') {\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\"\n [translations]=\"translations\"></vl-autocomplete>\n }\n @case ('combobox') {\n <vl-autocomplete [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [list]=\"selectionList\" [combobox]=\"true\"\n [translations]=\"translations\"></vl-autocomplete>\n }\n @case ('date') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('time') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('datetime') { {{ legacyDateFormat && value ? (value | date: legacyDateFormat) : dateText }} }\n @case ('daterange') {\n <vl-daterange [field]=\"ruleField\" [readonly]=\"true\" [value]=\"value\" [translations]=\"translations\"></vl-daterange>\n }\n @default { {{ text }} }\n }\n</div>\n}\n} @else {\n<div class=\"vl-control__inner\" [ngStyle]=\"innerStyle()\">\n @if (showLabel) {\n <label [class]=\"labelStyle().classes\" [ngStyle]=\"labelStyle().style\">{{ label }}@if (required) {<span class=\"vl-control__required\" aria-hidden=\"true\">*</span>}</label>\n }\n @switch (kind) {\n @case ('media') {\n <vl-media [field]=\"ruleField\" [property]=\"property\" [value]=\"property?.value\"></vl-media>\n }\n @case ('password') {\n <vl-password [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-password>\n }\n @case ('textarea') {\n <vl-textarea [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-textarea>\n }\n @case ('autocomplete') {\n <vl-autocomplete [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [list]=\"selectionList\" [loading]=\"selectionLoading\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\n }\n @case ('combobox') {\n <vl-autocomplete [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [list]=\"selectionList\" [loading]=\"selectionLoading\" [combobox]=\"true\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (picked)=\"picked.emit($event)\"></vl-autocomplete>\n }\n @case ('dropdown') {\n <vl-dropdown [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [items]=\"property?.data\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-dropdown>\n }\n @case ('radio') {\n <vl-radio [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType === 'boolean' ? 'boolean' : 'string'\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n (chosen)=\"toggled.emit($event)\"></vl-radio>\n }\n @case ('checkbox') {\n <vl-checkbox [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType\" [caption]=\"label\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\"\n (toggled)=\"toggled.emit($event)\"></vl-checkbox>\n }\n @case ('switch') {\n <vl-switch [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"toggleType\" [translations]=\"translations\"\n (switched)=\"toggled.emit($event)\"></vl-switch>\n }\n @case ('number') {\n <vl-number [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [type]=\"property?.type || 'number'\" [property]=\"property\" [row]=\"row\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"></vl-number>\n }\n @case ('date') {\n <vl-datetime kind=\"date\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-datetime>\n }\n @case ('time') {\n <vl-datetime kind=\"time\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\" (opened)=\"opened.emit()\"></vl-datetime>\n }\n @case ('datetime') {\n <vl-datetime kind=\"datetime\" [field]=\"ruleField\" [target]=\"target\" [property]=\"property\" [readonly]=\"readonly\"\n [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-datetime>\n }\n @case ('daterange') {\n <vl-daterange [field]=\"ruleField\" [target]=\"target\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [keyboard]=\"keyboard\" [saveTried]=\"saveTried\" [errorMessages]=\"messages\" [translations]=\"translations\"\n [inputStyle]=\"inputStyle().style\" [inputClass]=\"inputStyle().classes\"\n (changed)=\"changed.emit($event)\"></vl-daterange>\n }\n @default {\n <!-- textInput, email and every other text control -->\n <vl-textbox [formField]=\"ruleField\" [modalItemInfo]=\"textboxInfo\" [readonly]=\"readonly\" [value]=\"property?.value\"\n [saveTried]=\"saveTried\" [errorMessages]=\"messages\"></vl-textbox>\n }\n }\n</div>\n}\n", styles: [":host{display:block;min-width:0}.vl-text-block{margin:0;color:var(--vl-color-text, inherit)}.vl-text-block__text,.vl-text-block__value{margin:0 0 .5em;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.vl-text-block__value:last-child,.vl-text-block__text:last-child{margin-bottom:0}.vl-control__value{margin:0;min-width:0;overflow-wrap:anywhere}:host(.vl-control--clamped) .vl-control__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vl-max-lines);line-clamp:var(--vl-max-lines);overflow:hidden}.vl-control__value--number{font-size:1.17em;font-weight:700}.vl-control__value--link{cursor:pointer;text-decoration:underline}.vl-control__required{color:var(--vl-color-danger, #dc2626);margin-left:2px}.vl-control__card-parts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.vl-control__card-parts--twoRows{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.vl-control__card-parts--twoRows .vl-control__card-part--number{grid-column:1 / -1}.vl-control__lock-hint{margin:6px 0 0;font-size:.85em;color:var(--vl-color-danger, #b91c1c);text-align:center}.vl-control__lock-hint--link{cursor:pointer;text-decoration:underline}.vl-control__button--locked{background:#e5e7eb!important;border-color:var(--vl-color-border, #d1d5db)!important;color:var(--vl-color-text-muted, #6b7280)!important;box-shadow:none!important;cursor:not-allowed!important;filter:none!important}\n"] }]
9101
9101
  }], propDecorators: { field: [{
9102
9102
  type: Input
9103
9103
  }], propertySchema: [{