Skip to content

Commit 00cf0b1

Browse files
committed
revert(protosearch): drop multiselect custom_values shim
1 parent 2183bfd commit 00cf0b1

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

src/app/components/widgets/protosearch-widget/protosearch-widget.component.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ interface SearchFieldItem {
4747
selector?: Array<any>;
4848
type: string;
4949
value?: string;
50-
/** Copied from mapping fields_mapping when present (multiselect + free-text). */
51-
custom_values?: boolean;
5250
}
5351

5452
@Component({
@@ -677,14 +675,6 @@ export class ProtosearchWidgetComponent implements IWidget, OnInit, OnDestroy, A
677675

678676
return 'input-multi-select-with-chips';
679677
}
680-
// multiselect in mapping + custom_values → same chip UI as input_multi_select (mat-select multiple has no custom tag).
681-
if (
682-
item.form_type === 'multiselect' &&
683-
item.form_default &&
684-
(item.custom_values || item.__mapping?.custom_values)
685-
) {
686-
return 'input-multi-select-with-chips';
687-
}
688678
if (item.type === 'array_string' && !this.isMulti(item.field_name) && !this.isAliasField(item.field_name)) {
689679
return 'chip-list-array-string';
690680
}
@@ -761,12 +751,6 @@ export class ProtosearchWidgetComponent implements IWidget, OnInit, OnDestroy, A
761751

762752
i.__mapping = f;
763753

764-
if (f && 'custom_values' in f) {
765-
i.custom_values = !!(f as { custom_values?: boolean }).custom_values;
766-
} else {
767-
delete i.custom_values;
768-
}
769-
770754
if (f?.type) {
771755
i.type = f.type;
772756
}

src/app/models/preference-mapping-field.model.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,4 @@ export interface PreferenceMappingFieldModel {
3131
vdata?:string;
3232
grid?:string;
3333
transform?:string;
34-
/** When form_type is multiselect, use chip widget with free-text entries (Homer UI). */
35-
custom_values?: boolean;
3634
}

0 commit comments

Comments
 (0)