ngx-form-designer 0.0.25 → 0.0.26
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.
|
@@ -12180,7 +12180,10 @@ class DataPanelComponent {
|
|
|
12180
12180
|
return this.sourceType === 'source' && (this.isSelectedSourceEventBacked() || !!this.rowsPathSuggestion || !!this.rowsPath);
|
|
12181
12181
|
}
|
|
12182
12182
|
showScalarMappingControls() {
|
|
12183
|
-
return this.sourceType === 'source' && this.bindingShape === 'scalar';
|
|
12183
|
+
return this.sourceType === 'source' && this.bindingShape === 'scalar' && this.widgetType !== 'search';
|
|
12184
|
+
}
|
|
12185
|
+
showOptionMappingControls() {
|
|
12186
|
+
return this.sourceType === 'source' && this.widgetType !== 'table' && this.usesOptionMapping();
|
|
12184
12187
|
}
|
|
12185
12188
|
rowsPathPreviewRows() {
|
|
12186
12189
|
const effectiveRowsPath = this.effectiveRowsPath();
|
|
@@ -12215,17 +12218,20 @@ class DataPanelComponent {
|
|
|
12215
12218
|
return sample ? collectArrayPaths(sample) : [];
|
|
12216
12219
|
}
|
|
12217
12220
|
shouldPersistStructuredLabelPath() {
|
|
12218
|
-
if (this.
|
|
12221
|
+
if (!this.usesOptionMapping() || !this.labelKey)
|
|
12219
12222
|
return false;
|
|
12220
12223
|
return !!this.normalizedRowsPath() || !!this.childRowsPath || hasPathSyntax$1(this.labelKey);
|
|
12221
12224
|
}
|
|
12222
12225
|
shouldPersistStructuredValuePath() {
|
|
12223
12226
|
if (!this.valueKey)
|
|
12224
12227
|
return false;
|
|
12225
|
-
if (this.
|
|
12228
|
+
if (!this.usesOptionMapping())
|
|
12226
12229
|
return true;
|
|
12227
12230
|
return !!this.normalizedRowsPath() || !!this.childRowsPath || hasPathSyntax$1(this.valueKey);
|
|
12228
12231
|
}
|
|
12232
|
+
usesOptionMapping() {
|
|
12233
|
+
return this.bindingShape === 'list' || this.widgetType === 'search';
|
|
12234
|
+
}
|
|
12229
12235
|
updatePreviewPathState() {
|
|
12230
12236
|
const firstPreviewRow = this.previewRows[0];
|
|
12231
12237
|
this.rootPathOptions = firstPreviewRow ? collectArrayPaths(firstPreviewRow) : [];
|
|
@@ -12499,8 +12505,8 @@ class DataPanelComponent {
|
|
|
12499
12505
|
</div>
|
|
12500
12506
|
</div>
|
|
12501
12507
|
|
|
12502
|
-
<!-- Mapping
|
|
12503
|
-
<div class="flex flex-col gap-2" *ngIf="
|
|
12508
|
+
<!-- Option Mapping -->
|
|
12509
|
+
<div class="flex flex-col gap-2" *ngIf="showOptionMappingControls()">
|
|
12504
12510
|
<div class="flex items-center justify-between">
|
|
12505
12511
|
<span class="text-xs font-semibold text-gray-500 uppercase tracking-wide">Column Mapping</span>
|
|
12506
12512
|
<button (click)="autoMapKeys()" class="text-blue-600 hover:text-blue-700 text-xs font-medium flex items-center gap-1" title="Guess columns based on names">
|
|
@@ -13086,8 +13092,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
13086
13092
|
</div>
|
|
13087
13093
|
</div>
|
|
13088
13094
|
|
|
13089
|
-
<!-- Mapping
|
|
13090
|
-
<div class="flex flex-col gap-2" *ngIf="
|
|
13095
|
+
<!-- Option Mapping -->
|
|
13096
|
+
<div class="flex flex-col gap-2" *ngIf="showOptionMappingControls()">
|
|
13091
13097
|
<div class="flex items-center justify-between">
|
|
13092
13098
|
<span class="text-xs font-semibold text-gray-500 uppercase tracking-wide">Column Mapping</span>
|
|
13093
13099
|
<button (click)="autoMapKeys()" class="text-blue-600 hover:text-blue-700 text-xs font-medium flex items-center gap-1" title="Guess columns based on names">
|