@dile/ui 2.1.35 → 2.1.37
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.
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { LitElement, html, css } from 'lit';
|
|
2
2
|
import '../../icon/icon.js';
|
|
3
3
|
import { searchIcon, clearIcon } from '@dile/icons/index.js';
|
|
4
|
-
import { DileEmmitChange } from '../../../mixins/form/index.js';
|
|
5
4
|
|
|
6
|
-
export class DileInputSearch extends
|
|
5
|
+
export class DileInputSearch extends LitElement {
|
|
7
6
|
static styles = [
|
|
8
7
|
css`
|
|
9
8
|
:host {
|
|
@@ -72,12 +71,6 @@ export class DileInputSearch extends DileEmmitChange(LitElement) {
|
|
|
72
71
|
this.input = this.shadowRoot.getElementById('elinput');
|
|
73
72
|
}
|
|
74
73
|
|
|
75
|
-
updated(changedProperties) {
|
|
76
|
-
if(changedProperties.has('value')) {
|
|
77
|
-
this.emmitChange();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
74
|
render() {
|
|
82
75
|
return html`
|
|
83
76
|
<div class="${this.errored ? "errored" : ""}">
|
|
@@ -197,6 +197,7 @@ export class DileSelectAjax extends DileEmmitChange(LitElement) {
|
|
|
197
197
|
value="${this.selectedText}"
|
|
198
198
|
readOnly
|
|
199
199
|
@dile-input-search-cleared=${this.onClearSelected}
|
|
200
|
+
@dile-input-search=${this.hideErrorOnInteraction}
|
|
200
201
|
></dile-input-search>
|
|
201
202
|
`;
|
|
202
203
|
}
|
|
@@ -212,7 +213,6 @@ export class DileSelectAjax extends DileEmmitChange(LitElement) {
|
|
|
212
213
|
@focus=${this.onFocus}
|
|
213
214
|
@dile-input-search=${this.onTextInput}
|
|
214
215
|
delay="${this.delay}"
|
|
215
|
-
@element-changed=${this.inputSearchChanged}
|
|
216
216
|
></dile-input-search>
|
|
217
217
|
<div class="anchor">
|
|
218
218
|
<section class="${this.opened && this.keyword.length > 0 ? 'opened' : ''}">
|
|
@@ -289,16 +289,12 @@ export class DileSelectAjax extends DileEmmitChange(LitElement) {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
onTextInput(e) {
|
|
292
|
+
console.log('onTextInput', e);
|
|
292
293
|
this.keyword = e.detail.keyword;
|
|
293
294
|
this.loadData();
|
|
294
295
|
this.hideErrorOnInteraction();
|
|
295
296
|
}
|
|
296
297
|
|
|
297
|
-
inputSearchChanged(e) {
|
|
298
|
-
e.stopPropagation();
|
|
299
|
-
this.hideErrorOnInteraction();
|
|
300
|
-
}
|
|
301
|
-
|
|
302
298
|
hideErrorOnInteraction() {
|
|
303
299
|
if (this.hideErrorOnInput && this.errored) {
|
|
304
300
|
this.clearError();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.37",
|
|
4
4
|
"description": "UI Core components from dile-components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "6440bacb46bfcd2bb4a5ce7016ea9e0ebd0acf4a"
|
|
30
30
|
}
|