@dile/ui 2.1.35 → 2.1.36

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 DileEmmitChange(LitElement) {
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" : ""}">
@@ -115,7 +108,7 @@ export class DileInputSearch extends DileEmmitChange(LitElement) {
115
108
  }
116
109
 
117
110
  dispatchSearch(key) {
118
- this.dispatchEvent(new CustomEvent('dile-input-search', {
111
+ this.dispatchEvent(new CustomEvent('@dile-input-search=${this.hideErrorOnInteraction}', {
119
112
  bubbles: true,
120
113
  composed: true,
121
114
  detail: {
@@ -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' : ''}">
@@ -294,11 +294,6 @@ export class DileSelectAjax extends DileEmmitChange(LitElement) {
294
294
  this.hideErrorOnInteraction();
295
295
  }
296
296
 
297
- inputSearchChanged(e) {
298
- e.stopPropagation();
299
- this.hideErrorOnInteraction();
300
- }
301
-
302
297
  hideErrorOnInteraction() {
303
298
  if (this.hideErrorOnInput && this.errored) {
304
299
  this.clearError();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/ui",
3
- "version": "2.1.35",
3
+ "version": "2.1.36",
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": "c46fe754ac1cd5dd2a0fd628915066d651b02549"
29
+ "gitHead": "6ea2ac2779d56aa2edf23147fa8a173eed9db29b"
30
30
  }