-
-
-
+
+
+}
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 @@
-
-
-
-
-
-
-
-
+@if (vm$ | async; as vm) {
+ @if (vm?.contentType?.metadata?.[featuredFlagContentKEY]) {
+
+
+
+
+
+
+ }
-
-
-
{{ '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: `
-
+ @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) {
+
+
+
+ }
+ }