@if (visible()) { @if (xUiComponent() !== 'checkbox' || arrayItem()) {
@if (xUiComponent() !== 'checkbox' && label(); as title) {
@if (required()) { * } {{ title | i18n }}
} @else if (arrayItem()) {
{{ 'XP.KEY_WORDS.ArrayItemTitle' | translate: arrayItemTitleParams() }}
} @if (hasCustomWidget()) { @if (propertyDescription(); as desc) { } } @if (xUiHelp(); as helpUrl) { }
@if (type() === 'array' && !enum() && !hasCustomWidget()) { } @if (collapsibleObject()) { @let collapseLabel = objectCollapsed() ? ('XP.KEY_WORDS.Expand' | translate: { Default: 'Expand' }) : ('XP.KEY_WORDS.Collapse' | translate: { Default: 'Collapse' }); } @if (arrayItem() && !readonly()) { @let deleteLabel = 'XP.KEY_WORDS.DELETE' | translate: { Default: 'Delete' }; }
} @if (variants().length) { @for (variant of variants(); track variant) { {{ variantLabel(variant, $index) }} } } @if (jsonEditor()) { @if (jsonError()) { } } @else if (hasCustomWidget()) { } @else { @switch (xUiComponent()) { @case ('slider') {
{{ value$() }}
} @case ('checkbox') { @if (required()) { * } {{ label() | i18n }} @if (propertyDescription(); as desc) { } } @case ('remoteSelect') { } @default { @if (enum()) { @for (option of enumOptions(); track option.label + ':' + $index) { {{ option.label }} } } @else { @switch (type()) { @case ('string') { @switch (xUiComponent()) { @case ('jsonValue') { } @case ('textarea') { } @default { @if (variables()) { } @else { } } } } @case ('textarea') { } @case ('number') { } @case ('integer') { } @case ('array') {
@for (item of value$(); track i; let i = $index) {
} @empty {
{{ 'XP.KEY_WORDS.AddItem' | translate: { Default: 'Add Item' } }}
}
} @case ('boolean') { @if (propertyDescription(); as desc) { } } @case ('object') {
@for (param of properties(); track param.name) { }
} @default { @if (type()) {
Unsupported type: {{ type() }} for '{{ name() }}'
} @else { @if (variables()) { } @else { } } } } } } } } }