@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 +2 -2
- package/src/element-mixin.js +1 -1
- package/src/polylit-mixin.js +19 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "24.2.0-
|
|
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": "
|
|
45
|
+
"gitHead": "81ecf12d2d59a3e5b467273c37a391e31932dc9c"
|
|
46
46
|
}
|
package/src/element-mixin.js
CHANGED
package/src/polylit-mixin.js
CHANGED
|
@@ -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
|
|