@vaadin/component-base 24.2.0-alpha6 → 24.2.0-alpha7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/component-base",
3
- "version": "24.2.0-alpha6",
3
+ "version": "24.2.0-alpha7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,5 +42,5 @@
42
42
  "@vaadin/testing-helpers": "^0.4.3",
43
43
  "sinon": "^13.0.2"
44
44
  },
45
- "gitHead": "3ef6e6cd66919b3ef7637e42916e4c54656beb51"
45
+ "gitHead": "81ecf12d2d59a3e5b467273c37a391e31932dc9c"
46
46
  }
@@ -45,7 +45,7 @@ const registered = new Set();
45
45
  export const ElementMixin = (superClass) =>
46
46
  class VaadinElementMixin extends DirMixin(superClass) {
47
47
  static get version() {
48
- return '24.2.0-alpha6';
48
+ return '24.2.0-alpha7';
49
49
  }
50
50
 
51
51
  /** @protected */
@@ -103,6 +103,24 @@ const PolylitMixinImplementation = (superclass) => {
103
103
  });
104
104
  }
105
105
 
106
+ if (options.sync) {
107
+ result = {
108
+ get: defaultDescriptor.get,
109
+ set(value) {
110
+ const oldValue = this[name];
111
+ this[key] = value;
112
+ this.requestUpdate(name, oldValue, options);
113
+
114
+ // Enforce synchronous update
115
+ if (this.hasUpdated) {
116
+ this.performUpdate();
117
+ }
118
+ },
119
+ configurable: true,
120
+ enumerable: true,
121
+ };
122
+ }
123
+
106
124
  if (options.readOnly) {
107
125
  const setter = defaultDescriptor.set;
108
126
 
@@ -202,8 +220,8 @@ const PolylitMixinImplementation = (superclass) => {
202
220
  }
203
221
 
204
222
  if (!this.__isReadyInvoked) {
205
- this.ready();
206
223
  this.__isReadyInvoked = true;
224
+ this.ready();
207
225
  }
208
226
  }
209
227