diff --git a/core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/content/dot-edit-content.component.ts b/core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/content/dot-edit-content.component.ts index e3a3f2f83a56..4484bebc6876 100644 --- a/core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/content/dot-edit-content.component.ts +++ b/core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/content/dot-edit-content.component.ts @@ -2,7 +2,7 @@ import { fromEvent, merge, Observable, of, Subject } from 'rxjs'; import { Component, ElementRef, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; -import { ActivatedRoute, NavigationEnd, NavigationStart, Router } from '@angular/router'; +import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; import { DialogService } from 'primeng/dynamicdialog'; @@ -194,7 +194,7 @@ browse from the page internal links takeUntil(this.destroy$), filter((event) => event instanceof NavigationEnd) ) - .subscribe((_event: NavigationStart) => { + .subscribe(() => { this.getExperimentResolverData(); }); diff --git a/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/components/dot-content-aside-information/dot-content-aside-information.component.html b/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/components/dot-content-aside-information/dot-content-aside-information.component.html index 15356991f411..3567c36a0454 100644 --- a/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/components/dot-content-aside-information/dot-content-aside-information.component.html +++ b/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/components/dot-content-aside-information/dot-content-aside-information.component.html @@ -1,16 +1,16 @@
- - + @if (contentlet | contentletStatus; as status) { + + } + @if (contentlet?.inode; as inode) { + + }
{{ 'Published' | dm }} - - {{ contentlet?.publishUserName }} - + @if (contentlet?.publishUserName) { + + {{ contentlet?.publishUserName }} + + } {{ contentlet?.publishDate | dotRelativeDate: 'MM/dd/yyyy' : null }} diff --git a/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/dot-edit-content-aside.component.ts b/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/dot-edit-content-aside.component.ts index c6d3764824ce..cb22bd647cde 100644 --- a/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/dot-edit-content-aside.component.ts +++ b/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/dot-edit-content-aside.component.ts @@ -1,4 +1,3 @@ -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { DotCMSContentType, DotCMSContentlet } from '@dotcms/dotcms-models'; @@ -13,12 +12,7 @@ import { DotContentAsideWorkflowComponent } from './components/dot-content-aside templateUrl: './dot-edit-content-aside.component.html', styleUrls: ['./dot-edit-content-aside.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, - imports: [ - CommonModule, - DotMessagePipe, - DotContentAsideInformationComponent, - DotContentAsideWorkflowComponent - ] + imports: [DotMessagePipe, DotContentAsideInformationComponent, DotContentAsideWorkflowComponent] }) export class DotEditContentAsideComponent { @Input() contentlet!: DotCMSContentlet; diff --git a/core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.html b/core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.html index 98db75e9a5ca..a03abfbc7ebe 100644 --- a/core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.html +++ b/core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.html @@ -1,28 +1,34 @@ -
- - - - - - - - - - - - - -
-
-
- -
+@if (form) { + + @if (areMultipleTabs) { + + @for (tab of tabs; track tab) { + + + + } + + } @else { + + } + +
+ @for (row of tab.layout; track row) { +
+ @for (column of row.columns; track column) { +
+ @for (field of column.fields; track field) { + + } +
+ } +
+ }
-
- - + + +} diff --git a/core-web/libs/edit-content/src/lib/edit-content.shell.component.html b/core-web/libs/edit-content/src/lib/edit-content.shell.component.html deleted file mode 100644 index 0680b43f9c6a..000000000000 --- a/core-web/libs/edit-content/src/lib/edit-content.shell.component.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/core-web/libs/edit-content/src/lib/edit-content.shell.component.ts b/core-web/libs/edit-content/src/lib/edit-content.shell.component.ts index 7fa0e9de2fe3..9ffab13c2ba9 100644 --- a/core-web/libs/edit-content/src/lib/edit-content.shell.component.ts +++ b/core-web/libs/edit-content/src/lib/edit-content.shell.component.ts @@ -1,12 +1,11 @@ -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component } from '@angular/core'; import { RouterModule } from '@angular/router'; @Component({ selector: 'dot-edit-content', standalone: true, - imports: [CommonModule, RouterModule], - templateUrl: './edit-content.shell.component.html', + imports: [RouterModule], + template: '', styleUrls: ['./edit-content.shell.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush }) diff --git a/core-web/libs/edit-content/src/lib/feature/edit-content/edit-content.layout.component.html b/core-web/libs/edit-content/src/lib/feature/edit-content/edit-content.layout.component.html index 3a45cc62bbea..dcf7eb6bcb1a 100644 --- a/core-web/libs/edit-content/src/lib/feature/edit-content/edit-content.layout.component.html +++ b/core-web/libs/edit-content/src/lib/feature/edit-content/edit-content.layout.component.html @@ -1,24 +1,24 @@ - - - - -
- - - {{ 'edit.content.layout.beta.message.switch' | dm }} - - {{ ' ' }}{{ 'edit.content.layout.beta.message.needed' | dm }} -
- - - +@if (vm$ | async; as vm) { + @if (vm?.contentType?.metadata?.[featuredFlagContentKEY]) { + + + +
+ + + {{ 'edit.content.layout.beta.message.switch' | dm }} + + {{ ' ' }}{{ 'edit.content.layout.beta.message.needed' | dm }} +
+
+
+ } - - -{{ 'edit.content.layout.no.content.to.show ' | dm }} +} @else { + {{ 'edit.content.layout.no.content.to.show ' | dm }} +} diff --git a/core-web/libs/edit-content/src/lib/feature/edit-content/edit-content.layout.component.ts b/core-web/libs/edit-content/src/lib/feature/edit-content/edit-content.layout.component.ts index 7eec5b524838..f7b4fa69169c 100644 --- a/core-web/libs/edit-content/src/lib/feature/edit-content/edit-content.layout.component.ts +++ b/core-web/libs/edit-content/src/lib/feature/edit-content/edit-content.layout.component.ts @@ -1,6 +1,6 @@ import { Observable, forkJoin, of } from 'rxjs'; -import { AsyncPipe, JsonPipe, NgIf } from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core'; import { ActivatedRoute, RouterLink } from '@angular/router'; @@ -31,8 +31,6 @@ import { DotEditContentService } from '../../services/dot-edit-content.service'; selector: 'dot-edit-content-form-layout', standalone: true, imports: [ - NgIf, - JsonPipe, AsyncPipe, DotMessagePipe, ButtonModule, diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.spec.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.spec.ts index 40125e6f7cd9..d28bc249a453 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.spec.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.spec.ts @@ -141,7 +141,7 @@ describe('DotBinaryFieldUrlModeComponent', () => { describe('template', () => { it('should show error message when url is invalid', () => { - const input = spectator.query(byTestId('url-input')) as HTMLInputElement; + const input = spectator.query(byTestId('url-input')); input.focus(); // to trigger touched input.value = 'Not a url'; // to trigger invalid diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.ts index 157f94443e84..be2f2cecb424 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.ts @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { CommonModule } from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -34,13 +34,13 @@ import { DotBinaryFieldValidatorService } from '../../service/dot-binary-field-v selector: 'dot-binary-field-url-mode', standalone: true, imports: [ - CommonModule, FormsModule, ReactiveFormsModule, ButtonModule, InputTextModule, DotMessagePipe, - DotFieldValidationMessageComponent + DotFieldValidationMessageComponent, + AsyncPipe ], providers: [DotBinaryFieldUrlModeStore], templateUrl: './dot-binary-field-url-mode.component.html', diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component.html b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component.html index 0f4647dc1693..0cb192c08e01 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component.html +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component.html @@ -6,4 +6,4 @@ [inputId]="field.variable" [attr.data-testId]="field.variable" [showIcon]="true" - [icon]="calendarOptions[field.fieldType].icon"> + [icon]="calendarOptions[field.fieldType].icon" /> diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component.ts index bccffd3b71e4..eaa3b060f6f7 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component.ts @@ -1,4 +1,3 @@ -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, Input, inject } from '@angular/core'; import { ControlContainer, ReactiveFormsModule } from '@angular/forms'; @@ -11,7 +10,7 @@ import { CALENDAR_OPTIONS_PER_TYPE } from './utils'; @Component({ selector: 'dot-edit-content-calendar-field', standalone: true, - imports: [CommonModule, CalendarModule, ReactiveFormsModule], + imports: [CalendarModule, ReactiveFormsModule], templateUrl: 'dot-edit-content-calendar-field.component.html', styleUrls: ['./dot-edit-content-calendar-field.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-list-skeleton/dot-category-field-list-skeleton.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-list-skeleton/dot-category-field-list-skeleton.component.ts index 7c9ece11580e..21bab2062c8b 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-list-skeleton/dot-category-field-list-skeleton.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-list-skeleton/dot-category-field-list-skeleton.component.ts @@ -1,4 +1,3 @@ -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core'; import { SkeletonModule } from 'primeng/skeleton'; @@ -6,7 +5,7 @@ import { SkeletonModule } from 'primeng/skeleton'; @Component({ selector: 'dot-category-field-list-skeleton', standalone: true, - imports: [CommonModule, SkeletonModule], + imports: [SkeletonModule], template: `
    @for (_ of $rows(); track $index) { diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search-list/dot-category-field-search-list.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search-list/dot-category-field-search-list.component.ts index 79ae508a05de..598912e3cd50 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search-list/dot-category-field-search-list.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search-list/dot-category-field-search-list.component.ts @@ -1,6 +1,5 @@ import { Subject } from 'rxjs'; -import { CommonModule } from '@angular/common'; import { AfterViewInit, ChangeDetectionStrategy, @@ -42,7 +41,6 @@ import { DotTableSkeletonComponent } from '../dot-table-skeleton/dot-table-skele selector: 'dot-category-field-search-list', standalone: true, imports: [ - CommonModule, TableModule, SkeletonModule, DotTableSkeletonComponent, diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search/dot-category-field-search.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search/dot-category-field-search.component.ts index e0ed112814cf..03952b256893 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search/dot-category-field-search.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search/dot-category-field-search.component.ts @@ -1,4 +1,3 @@ -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, EventEmitter, input, Output } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { FormControl, ReactiveFormsModule } from '@angular/forms'; @@ -18,7 +17,7 @@ const MINIMUM_CHARACTERS = 3; @Component({ selector: 'dot-category-field-search', standalone: true, - imports: [CommonModule, DotMessagePipe, InputTextModule, ReactiveFormsModule], + imports: [DotMessagePipe, InputTextModule, ReactiveFormsModule], templateUrl: './dot-category-field-search.component.html', styleUrl: './dot-category-field-search.component.scss', changeDetection: ChangeDetectionStrategy.OnPush diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-selected/dot-category-field-selected.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-selected/dot-category-field-selected.component.ts index 09aad2fd0689..e27dbe389480 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-selected/dot-category-field-selected.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-selected/dot-category-field-selected.component.ts @@ -1,5 +1,4 @@ import { animate, state, style, transition, trigger } from '@angular/animations'; -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, EventEmitter, input, Output } from '@angular/core'; import { ButtonModule } from 'primeng/button'; @@ -21,7 +20,6 @@ import { DotCategoryFieldSearchListComponent } from '../dot-category-field-searc selector: 'dot-category-field-selected', standalone: true, imports: [ - CommonModule, ButtonModule, DotMessagePipe, DotCategoryFieldSearchListComponent, diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-table-skeleton/dot-table-skeleton.component.html b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-table-skeleton/dot-table-skeleton.component.html index 7b1343515842..6c81c0f5b7a6 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-table-skeleton/dot-table-skeleton.component.html +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-table-skeleton/dot-table-skeleton.component.html @@ -16,9 +16,9 @@ @for (col of columns; track $index) { @if (col === '') { - + } @else { - + } } diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-table-skeleton/dot-table-skeleton.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-table-skeleton/dot-table-skeleton.component.ts index 0d64e9c33987..2ed4a221e75d 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-table-skeleton/dot-table-skeleton.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-table-skeleton/dot-table-skeleton.component.ts @@ -1,4 +1,3 @@ -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core'; import { SkeletonModule } from 'primeng/skeleton'; @@ -12,7 +11,7 @@ import { TableModule } from 'primeng/table'; @Component({ selector: 'dot-table-skeleton', standalone: true, - imports: [CommonModule, SkeletonModule, TableModule], + imports: [SkeletonModule, TableModule], templateUrl: './dot-table-skeleton.component.html', styleUrl: './dot-table-skeleton.component.scss', changeDetection: ChangeDetectionStrategy.OnPush diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component.html b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component.html index d0ff576bcf44..da908d6f2fc9 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component.html +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component.html @@ -1,7 +1,8 @@ - +@for (option of options; track $index) { + +} diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component.ts index 26076974f710..c8a345e94948 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component.ts @@ -1,4 +1,3 @@ -import { NgFor } from '@angular/common'; import { ChangeDetectionStrategy, Component, Input, OnInit, inject } from '@angular/core'; import { ControlContainer, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms'; @@ -10,7 +9,7 @@ import { getSingleSelectableFieldOptions } from '../../utils/functions.util'; @Component({ selector: 'dot-edit-content-checkbox-field', standalone: true, - imports: [NgFor, CheckboxModule, ReactiveFormsModule, FormsModule], + imports: [CheckboxModule, ReactiveFormsModule, FormsModule], templateUrl: './dot-edit-content-checkbox-field.component.html', styleUrls: ['./dot-edit-content-checkbox-field.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component.html b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component.html index a48d47f757f5..622ec49c91d1 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component.html +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component.html @@ -9,8 +9,9 @@ data-testId="iframe" frameborder="0"> - +@if (isFullscreen) { + +} diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component.ts index a7ca67d4464d..7bfe0b860563 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component.ts @@ -1,4 +1,4 @@ -import { NgClass, NgIf, NgStyle } from '@angular/common'; +import { NgClass, NgStyle } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -22,7 +22,7 @@ import { WINDOW } from '@dotcms/utils'; @Component({ selector: 'dot-edit-content-custom-field', standalone: true, - imports: [SafeUrlPipe, NgStyle, NgClass, DotIconModule, NgIf, ButtonModule], + imports: [SafeUrlPipe, NgStyle, NgClass, DotIconModule, ButtonModule], templateUrl: './dot-edit-content-custom-field.component.html', styleUrls: ['./dot-edit-content-custom-field.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-host-folder-field/componentes/treeselect.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-host-folder-field/componentes/treeselect.component.ts index 42b916a0a0e7..20b79944c17c 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-host-folder-field/componentes/treeselect.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-host-folder-field/componentes/treeselect.component.ts @@ -80,47 +80,49 @@ export const TREESELECT_VALUE_ACCESSOR = {
- + @if (valueTemplate) { - - - + } @else { + @if (display === 'comma') { {{ label || 'empty' }} - - -
- {{ node.label }} -
- + } @else { + @for (node of value; track node) { +
+ {{ node.label }} +
+ } + @if (emptyValue) { {{ placeholder || 'empty' }} -
-
-
+ } + } + }
- - - - - - + @if (checkValue() && !disabled && showClear) { + @if (!clearIconTemplate) { + + } + @if (clearIconTemplate) { + + + + } + }
- - - - + @if (!triggerIconTemplate) { + + } + @if (triggerIconTemplate) { + + + + }
-
-
- - - - - + @if (filter) { +
+
+ + @if (!filterIconTemplate) { + + } + @if (filterIconTemplate) { + + + + } +
+
- -
+ }
@@ -202,34 +212,37 @@ export const TREESELECT_VALUE_ACCESSOR = { [lazy]="true" [loading]="loading" #tree> - + @if (emptyTemplate) { - - - - - - - - - - + } + @if (itemTogglerIconTemplate; as expanded) { + + + + } + @if (itemCheckboxIconTemplate) { + + + + } + @if (itemLoadingIconTemplate) { + + + + }
- +@for (option of options; track option; let i = $index) { + +} diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-radio-field/dot-edit-content-radio-field.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-radio-field/dot-edit-content-radio-field.component.ts index 3a970a9f9c6a..bb748cce9779 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-radio-field/dot-edit-content-radio-field.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-radio-field/dot-edit-content-radio-field.component.ts @@ -1,4 +1,3 @@ -import { NgFor } from '@angular/common'; import { ChangeDetectionStrategy, Component, Input, OnInit, inject } from '@angular/core'; import { ControlContainer, ReactiveFormsModule } from '@angular/forms'; @@ -12,7 +11,7 @@ import { getSingleSelectableFieldOptions } from '../../utils/functions.util'; @Component({ selector: 'dot-edit-content-radio-field', standalone: true, - imports: [NgFor, RadioButtonModule, ReactiveFormsModule, DotFieldRequiredDirective], + imports: [RadioButtonModule, ReactiveFormsModule, DotFieldRequiredDirective], templateUrl: './dot-edit-content-radio-field.component.html', styleUrls: ['./dot-edit-content-radio-field.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush,