gyosjs 0.5.1 → 0.5.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.
- package/README.md +1 -1
- package/dist/core/reactive.d.ts.map +1 -1
- package/dist/gyos.auto.esm.js +13 -4
- package/dist/gyos.auto.esm.js.map +1 -1
- package/dist/gyos.auto.js +13 -4
- package/dist/gyos.auto.js.map +1 -1
- package/dist/gyos.auto.min.js +2 -2
- package/dist/gyos.csp.auto.esm.js +13 -4
- package/dist/gyos.csp.auto.esm.js.map +1 -1
- package/dist/gyos.csp.auto.js +13 -4
- package/dist/gyos.csp.auto.js.map +1 -1
- package/dist/gyos.csp.auto.min.js +2 -2
- package/dist/gyos.csp.esm.js +13 -4
- package/dist/gyos.csp.esm.js.map +1 -1
- package/dist/gyos.csp.js +13 -4
- package/dist/gyos.csp.js.map +1 -1
- package/dist/gyos.csp.min.js +2 -2
- package/dist/gyos.esm.js +13 -4
- package/dist/gyos.esm.js.map +1 -1
- package/dist/gyos.js +13 -4
- package/dist/gyos.js.map +1 -1
- package/dist/gyos.min.js +2 -2
- package/package.json +1 -1
package/dist/gyos.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* GyosJS v0.5.
|
|
2
|
+
* GyosJS v0.5.2
|
|
3
3
|
* (c) 2026
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -4127,7 +4127,7 @@
|
|
|
4127
4127
|
// Set initial value (no pipes in v-model)
|
|
4128
4128
|
const initialValue = evaluateExpression(expr, currentScope, false);
|
|
4129
4129
|
if (inputElement.type === 'checkbox') {
|
|
4130
|
-
inputElement.checked = !!initialValue;
|
|
4130
|
+
inputElement.checked = !!unref(initialValue);
|
|
4131
4131
|
}
|
|
4132
4132
|
else if (inputElement.type === 'radio') {
|
|
4133
4133
|
inputElement.checked = String(unref(initialValue)) === inputElement.value;
|
|
@@ -4173,7 +4173,7 @@
|
|
|
4173
4173
|
// No pipes in v-model reactive updates
|
|
4174
4174
|
const newValue = evaluateExpression(expr, currentScope, false);
|
|
4175
4175
|
if (inputElement.type === 'checkbox') {
|
|
4176
|
-
inputElement.checked = !!newValue;
|
|
4176
|
+
inputElement.checked = !!unref(newValue);
|
|
4177
4177
|
}
|
|
4178
4178
|
else if (inputElement.type === 'radio') {
|
|
4179
4179
|
inputElement.checked = String(unref(newValue)) === inputElement.value;
|
|
@@ -4404,6 +4404,15 @@
|
|
|
4404
4404
|
// It's a getter - just return value, getter will track its own dependencies
|
|
4405
4405
|
return value;
|
|
4406
4406
|
}
|
|
4407
|
+
// Callable reactive values are data, not methods. Binding would drop
|
|
4408
|
+
// their identity and metadata used by g-model and the public APIs.
|
|
4409
|
+
if (isSignal(value) || isComputed(value)) {
|
|
4410
|
+
// Track the field as well as reads of its value so replacing the
|
|
4411
|
+
// signal/computed switches effects away from the old source.
|
|
4412
|
+
if (hasCurrentEffect())
|
|
4413
|
+
getFieldSignal(target, key, value).value;
|
|
4414
|
+
return value;
|
|
4415
|
+
}
|
|
4407
4416
|
// function -> bind this = proxy
|
|
4408
4417
|
if (typeof value === "function") {
|
|
4409
4418
|
return value.bind(proxy);
|
|
@@ -8963,7 +8972,7 @@
|
|
|
8963
8972
|
portalCreate,
|
|
8964
8973
|
portalDestroy,
|
|
8965
8974
|
setCspNonce,
|
|
8966
|
-
version: '0.5.
|
|
8975
|
+
version: '0.5.2'
|
|
8967
8976
|
};
|
|
8968
8977
|
|
|
8969
8978
|
setExpressionRuntime(standardExpressionRuntime);
|