@acorex/platform 20.2.4-next.8 → 20.3.0-next.0

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.
@@ -5586,9 +5586,9 @@ class AXPSelectionListWidgetEditComponent extends AXPDataListWidgetComponent {
5586
5586
  this.direction = computed(() => this.options()['direction']?.id ?? 'horizontal', ...(ngDevMode ? [{ debugName: "direction" }] : []));
5587
5587
  this.disabled = computed(() => this.options()['disabled'], ...(ngDevMode ? [{ debugName: "disabled" }] : []));
5588
5588
  this.readonly = computed(() => this.options()['readonly'], ...(ngDevMode ? [{ debugName: "readonly" }] : []));
5589
- this.look = computed(() => this.options()['look'], ...(ngDevMode ? [{ debugName: "look" }] : []));
5590
- this.showControl = computed(() => this.options()['showControl'], ...(ngDevMode ? [{ debugName: "showControl" }] : []));
5591
- this.imageMode = computed(() => this.options()['imageMode'], ...(ngDevMode ? [{ debugName: "imageMode" }] : []));
5589
+ this.look = computed(() => this.options()['look'] ?? 'solid', ...(ngDevMode ? [{ debugName: "look" }] : []));
5590
+ this.showControl = computed(() => this.options()['showControl'] ?? true, ...(ngDevMode ? [{ debugName: "showControl" }] : []));
5591
+ this.imageMode = computed(() => this.options()['imageMode'] ?? false, ...(ngDevMode ? [{ debugName: "imageMode" }] : []));
5592
5592
  this.displayItems = signal([], ...(ngDevMode ? [{ debugName: "displayItems" }] : []));
5593
5593
  this.ef = effect(() => {
5594
5594
  this.dataSource()
@@ -7626,6 +7626,7 @@ class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent {
7626
7626
  <div class="ax-p-2">
7627
7627
  <axp-file-list
7628
7628
  [files]="files()"
7629
+ [readonly]="readonly()"
7629
7630
  [fileEditable]="fileEditable()"
7630
7631
  (onRemove)="handleFileRemove($event)"
7631
7632
  (onRevert)="handleFileRevert($event)"
@@ -7666,6 +7667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
7666
7667
  <div class="ax-p-2">
7667
7668
  <axp-file-list
7668
7669
  [files]="files()"
7670
+ [readonly]="readonly()"
7669
7671
  [fileEditable]="fileEditable()"
7670
7672
  (onRemove)="handleFileRemove($event)"
7671
7673
  (onRevert)="handleFileRevert($event)"
@@ -7778,6 +7780,7 @@ const AXPFileUploaderWidget = {
7778
7780
  AXP_DATA_PATH_PROPERTY,
7779
7781
  AXP_ALLOW_MULTIPLE_PROPERTY,
7780
7782
  AXP_DOWNLOADABLE_PROPERTY,
7783
+ AXP_READONLY_PROPERTY,
7781
7784
  AXP_DESCRIPTION_PROPERTY,
7782
7785
  {
7783
7786
  name: 'accept',
@@ -16711,7 +16714,11 @@ class AXPFieldsetWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {
16711
16714
  constructor() {
16712
16715
  super(...arguments);
16713
16716
  this.title = computed(() => this.options()['title'] || 'Fieldset', ...(ngDevMode ? [{ debugName: "title" }] : []));
16717
+ this.description = computed(() => this.options()['description'], ...(ngDevMode ? [{ debugName: "description" }] : []));
16714
16718
  this.icon = computed(() => this.options()['icon'] || '', ...(ngDevMode ? [{ debugName: "icon" }] : []));
16719
+ this.collapsible = computed(() => this.options()['collapsible'] || false, ...(ngDevMode ? [{ debugName: "collapsible" }] : []));
16720
+ this.isOpen = linkedSignal(() => this.options()['isOpen'] ?? true);
16721
+ this.look = computed(() => this.options()['look'] || 'card', ...(ngDevMode ? [{ debugName: "look" }] : []));
16715
16722
  this.disabled = computed(() => this.options()['disabled'] || false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
16716
16723
  this.showHeader = computed(() => this.options()['showHeader'] ?? true, ...(ngDevMode ? [{ debugName: "showHeader" }] : []));
16717
16724
  }
@@ -16873,7 +16880,10 @@ class AXPFormFieldWidgetViewComponent extends AXPLayoutBaseWidgetComponent {
16873
16880
  super(...arguments);
16874
16881
  this.label = computed(() => this.options()['label'], ...(ngDevMode ? [{ debugName: "label" }] : []));
16875
16882
  this.showLabel = computed(() => this.options()['showLabel'] ?? true, ...(ngDevMode ? [{ debugName: "showLabel" }] : []));
16876
- this.isRequired = computed(() => this.children().some((c) => c.options?.['validations']?.some((v) => v.rule === 'required')), ...(ngDevMode ? [{ debugName: "isRequired" }] : []));
16883
+ this.isRequired = computed(() => this.children().some((c) => {
16884
+ const validations = c.options?.['validations'];
16885
+ return Array.isArray(validations) && validations.some((v) => v.rule === 'required');
16886
+ }), ...(ngDevMode ? [{ debugName: "isRequired" }] : []));
16877
16887
  }
16878
16888
  get __class() {
16879
16889
  const cls = {};