@dile/ui 2.14.0 → 2.14.2

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.
@@ -86,7 +86,7 @@ export const DileSelectable = (SuperClass) =>
86
86
  this._onHashChange();
87
87
  this.setSelectedItem();
88
88
  if(this.selected !== undefined) {
89
- setTimeout( () => this.dispatchSelectedChanged(), 500);
89
+ setTimeout( () => this.dispatchSelectedChanged(true), 500);
90
90
  }
91
91
  }
92
92
 
@@ -136,19 +136,23 @@ export const DileSelectable = (SuperClass) =>
136
136
  this.dispatchSelectedChanged();
137
137
  }
138
138
 
139
- dispatchSelectedChanged() {
139
+ dispatchSelectedChanged(initializationEvent = false) {
140
140
  this.dispatchEvent(new CustomEvent('dile-selected-changed', {
141
141
  bubbles: true,
142
142
  composed: true,
143
143
  detail: {
144
144
  selected: this.selected,
145
145
  selectorId: this.selectorId,
146
+ initializationEvent,
146
147
  }
147
148
  }));
148
149
  }
149
150
 
150
151
  updated(changedProperties) {
151
152
  this.setSelectedItem();
153
+ if(changedProperties.has('selected')) {
154
+ this.dispatchSelectedChanged();
155
+ }
152
156
  }
153
157
 
154
158
  getItems() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/ui",
3
- "version": "2.14.0",
3
+ "version": "2.14.2",
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": "f7a66b88507409901e09b5ca7852358237a7559c"
29
+ "gitHead": "7043cb3237acf07b8c4bae726742ed390883d21a"
30
30
  }