@dile/ui 2.1.33 → 2.1.34
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,8 +1,9 @@
|
|
|
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';
|
|
4
5
|
|
|
5
|
-
export class DileInputSearch extends LitElement {
|
|
6
|
+
export class DileInputSearch extends DileEmmitChange(LitElement) {
|
|
6
7
|
static styles = [
|
|
7
8
|
css`
|
|
8
9
|
:host {
|
|
@@ -53,6 +54,8 @@ export class DileInputSearch extends LitElement {
|
|
|
53
54
|
disabled: { type: Boolean },
|
|
54
55
|
readOnly: { type: Boolean },
|
|
55
56
|
errored: { type: Boolean },
|
|
57
|
+
/** Name for this input field */
|
|
58
|
+
name: { type: String },
|
|
56
59
|
};
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -69,6 +72,12 @@ export class DileInputSearch extends LitElement {
|
|
|
69
72
|
this.input = this.shadowRoot.getElementById('elinput');
|
|
70
73
|
}
|
|
71
74
|
|
|
75
|
+
updated(changedProperties) {
|
|
76
|
+
if(changedProperties.has('value')) {
|
|
77
|
+
this.emmitChange();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
72
81
|
render() {
|
|
73
82
|
return html`
|
|
74
83
|
<div class="${this.errored ? "errored" : ""}">
|
|
@@ -212,6 +212,7 @@ export class DileSelectAjax extends DileEmmitChange(LitElement) {
|
|
|
212
212
|
@focus=${this.onFocus}
|
|
213
213
|
@dile-input-search=${this.onTextInput}
|
|
214
214
|
delay="${this.delay}"
|
|
215
|
+
@element-changed=${this.hideErrorOnInteraction}
|
|
215
216
|
></dile-input-search>
|
|
216
217
|
<div class="anchor">
|
|
217
218
|
<section class="${this.opened && this.keyword.length > 0 ? 'opened' : ''}">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.34",
|
|
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": "e3f1c5d2850016066910a97ca26eee78543bb247"
|
|
30
30
|
}
|