@razaman2/reactive-view 0.1.0-beta.12 → 0.1.0-beta.13
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/dist/index.js +8 -5
- package/dist/index.mjs +8 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -177,7 +177,7 @@ var import_data_manager = __toESM(require("@razaman2/data-manager"));
|
|
|
177
177
|
var import_vue = require("vue");
|
|
178
178
|
|
|
179
179
|
// package.json
|
|
180
|
-
var version = "0.1.0-beta.
|
|
180
|
+
var version = "0.1.0-beta.13";
|
|
181
181
|
var package_default = {
|
|
182
182
|
name: "@razaman2/reactive-view",
|
|
183
183
|
version,
|
|
@@ -400,7 +400,10 @@ var ReactiveView_default = {
|
|
|
400
400
|
}, config2.options));
|
|
401
401
|
}
|
|
402
402
|
const track = (source, options = {}) => {
|
|
403
|
-
var _a3, _b2, _c2, _d
|
|
403
|
+
var _a3, _b2, _c2, _d;
|
|
404
|
+
if (props.debug) {
|
|
405
|
+
console.log(`log props.data:`, source, options);
|
|
406
|
+
}
|
|
404
407
|
subscriptions.push((0, import_vue.watch)(source, async (after, before) => {
|
|
405
408
|
const diff2 = access(component).diff(import_object_manager.default.on(before), import_object_manager.default.on(after));
|
|
406
409
|
const callback = context.attrs["data:callback"];
|
|
@@ -411,8 +414,8 @@ var ReactiveView_default = {
|
|
|
411
414
|
}
|
|
412
415
|
}, {
|
|
413
416
|
immediate: (_b2 = (_a3 = context.attrs["data:immediate"]) != null ? _a3 : options.immediate) != null ? _b2 : true,
|
|
414
|
-
deep: (
|
|
415
|
-
once: (
|
|
417
|
+
deep: (_c2 = context.attrs["data:deep"]) != null ? _c2 : options.deep,
|
|
418
|
+
once: (_d = context.attrs["data:once"]) != null ? _d : options.once
|
|
416
419
|
}));
|
|
417
420
|
};
|
|
418
421
|
setTimeout(async () => {
|
|
@@ -428,7 +431,7 @@ var ReactiveView_default = {
|
|
|
428
431
|
]) : [props.data];
|
|
429
432
|
track(typeof data === "function" ? data : (() => data));
|
|
430
433
|
} else {
|
|
431
|
-
track((0, import_vue.isRef)(props.data) || (0, import_vue.isReactive)(props.data) ? props.data : () => props.data, { immediate: false
|
|
434
|
+
track((0, import_vue.isRef)(props.data) || (0, import_vue.isReactive)(props.data) ? props.data : () => props.data, { immediate: false });
|
|
432
435
|
}
|
|
433
436
|
}
|
|
434
437
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -130,7 +130,7 @@ import DataManager from "@razaman2/data-manager";
|
|
|
130
130
|
import { ref, reactive, watch, unref, isRef, isReactive, createVNode, getCurrentInstance, onBeforeUnmount } from "vue";
|
|
131
131
|
|
|
132
132
|
// package.json
|
|
133
|
-
var version = "0.1.0-beta.
|
|
133
|
+
var version = "0.1.0-beta.13";
|
|
134
134
|
var package_default = {
|
|
135
135
|
name: "@razaman2/reactive-view",
|
|
136
136
|
version,
|
|
@@ -353,7 +353,10 @@ var ReactiveView_default = {
|
|
|
353
353
|
}, config2.options));
|
|
354
354
|
}
|
|
355
355
|
const track = (source, options = {}) => {
|
|
356
|
-
var _a3, _b2, _c2, _d
|
|
356
|
+
var _a3, _b2, _c2, _d;
|
|
357
|
+
if (props.debug) {
|
|
358
|
+
console.log(`log props.data:`, source, options);
|
|
359
|
+
}
|
|
357
360
|
subscriptions.push(watch(source, async (after, before) => {
|
|
358
361
|
const diff2 = access(component).diff(ObjectManager.on(before), ObjectManager.on(after));
|
|
359
362
|
const callback = context.attrs["data:callback"];
|
|
@@ -364,8 +367,8 @@ var ReactiveView_default = {
|
|
|
364
367
|
}
|
|
365
368
|
}, {
|
|
366
369
|
immediate: (_b2 = (_a3 = context.attrs["data:immediate"]) != null ? _a3 : options.immediate) != null ? _b2 : true,
|
|
367
|
-
deep: (
|
|
368
|
-
once: (
|
|
370
|
+
deep: (_c2 = context.attrs["data:deep"]) != null ? _c2 : options.deep,
|
|
371
|
+
once: (_d = context.attrs["data:once"]) != null ? _d : options.once
|
|
369
372
|
}));
|
|
370
373
|
};
|
|
371
374
|
setTimeout(async () => {
|
|
@@ -381,7 +384,7 @@ var ReactiveView_default = {
|
|
|
381
384
|
]) : [props.data];
|
|
382
385
|
track(typeof data === "function" ? data : (() => data));
|
|
383
386
|
} else {
|
|
384
|
-
track(isRef(props.data) || isReactive(props.data) ? props.data : () => props.data, { immediate: false
|
|
387
|
+
track(isRef(props.data) || isReactive(props.data) ? props.data : () => props.data, { immediate: false });
|
|
385
388
|
}
|
|
386
389
|
}
|
|
387
390
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@razaman2/reactive-view",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.13",
|
|
4
4
|
"description": "This library enables you to build vue apps in an object oriented way. It provides a convenient approach to extend and override ui components. It provides a built in eventing system along with component data management.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|