|
@@ -48,7 +48,12 @@ export default class AutoCompleteComponent extends CustomElement {
|
|
'getAutoCompleteList': { type: Function },
|
|
'getAutoCompleteList': { type: Function },
|
|
'list': { type: Array },
|
|
'list': { type: Array },
|
|
'auto_evaluate': { type: Boolean },
|
|
'auto_evaluate': { type: Boolean },
|
|
|
|
+<<<<<<< HEAD
|
|
'auto_first': { type: Boolean },
|
|
'auto_first': { type: Boolean },
|
|
|
|
+=======
|
|
|
|
+ 'dataMap': { type: Function },
|
|
|
|
+ 'auto_first': { type: Boolean }, // Should the first element be automatically selected?
|
|
|
|
+>>>>>>> a8e66ff20 (commit to be deleted)
|
|
'filter': { type: String },
|
|
'filter': { type: String },
|
|
'include_triggers': { type: String },
|
|
'include_triggers': { type: String },
|
|
'min_chars': { type: Number },
|
|
'min_chars': { type: Number },
|
|
@@ -65,7 +70,12 @@ export default class AutoCompleteComponent extends CustomElement {
|
|
this.auto_evaluate = true;
|
|
this.auto_evaluate = true;
|
|
this.auto_first = false;
|
|
this.auto_first = false;
|
|
this.filter = 'contains';
|
|
this.filter = 'contains';
|
|
|
|
+<<<<<<< HEAD
|
|
this.include_triggers = '';
|
|
this.include_triggers = '';
|
|
|
|
+=======
|
|
|
|
+ this.dataMap = a => a; // Function that maps user provided input to a suggestion value
|
|
|
|
+ this.include_triggers = ''; // Space separated chars which should be included in the returned value
|
|
|
|
+>>>>>>> a8e66ff20 (commit to be deleted)
|
|
this.match_current_word = false; // Match only the current word, otherwise all input is matched
|
|
this.match_current_word = false; // Match only the current word, otherwise all input is matched
|
|
this.max_items = 10;
|
|
this.max_items = 10;
|
|
this.min_chars = 1;
|
|
this.min_chars = 1;
|
|
@@ -105,7 +115,12 @@ export default class AutoCompleteComponent extends CustomElement {
|
|
'auto_first': this.auto_first,
|
|
'auto_first': this.auto_first,
|
|
'filter': this.filter == 'contains' ? FILTER_CONTAINS : FILTER_STARTSWITH,
|
|
'filter': this.filter == 'contains' ? FILTER_CONTAINS : FILTER_STARTSWITH,
|
|
'include_triggers': [],
|
|
'include_triggers': [],
|
|
|
|
+<<<<<<< HEAD
|
|
'list': this.list ?? ((q) => this.getAutoCompleteList(q)),
|
|
'list': this.list ?? ((q) => this.getAutoCompleteList(q)),
|
|
|
|
+=======
|
|
|
|
+ 'list': () => this.getAutoCompleteList(),
|
|
|
|
+ 'data': (a) => this.dataMap(a),
|
|
|
|
+>>>>>>> a8e66ff20 (commit to be deleted)
|
|
'match_current_word': true,
|
|
'match_current_word': true,
|
|
'max_items': this.max_items,
|
|
'max_items': this.max_items,
|
|
'min_chars': this.min_chars,
|
|
'min_chars': this.min_chars,
|