@if (label(); as title) {
@if (required()) { * } {{ title | i18n }}
} @else if (arrayItem()) {
{{ 'PAC.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() ? ('PAC.KEY_WORDS.Expand' | translate: { Default: 'Expand' }) : ('PAC.KEY_WORDS.Collapse' | translate: { Default: 'Collapse' });
} @if (arrayItem() && !readonly()) { @let deleteLabel = 'PAC.KEY_WORDS.DELETE' | translate: { Default: 'Delete' };
}
@if (hasCustomWidget()) { } @else { @switch (xUiComponent()) { @case ('remoteSelect') { } @default { @if (enum()) { } @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 {
{{ 'PAC.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 { } } } } } } } }