@arrai-innovations/reactive-helpers 13.0.0 → 13.0.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/docs/use/loadingError.md
CHANGED
package/package.json
CHANGED
package/use/listInstance.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getListCrud } from "../config/listCrud.js";
|
|
2
2
|
import { assignReactiveObject } from "../utils/assignReactiveObject.js";
|
|
3
3
|
import { getFakeId } from "../utils/getFakeId.js";
|
|
4
|
-
import useLoadingError from "./loadingError.js";
|
|
4
|
+
import { useLoadingError } from "./loadingError.js";
|
|
5
5
|
import inspect from "browser-util-inspect";
|
|
6
6
|
import { computed, effectScope, nextTick, reactive, readonly, ref, toRef, unref, watch } from "vue";
|
|
7
7
|
|
package/use/listSubscription.js
CHANGED
|
@@ -2,7 +2,7 @@ import { loadingCombine } from "../utils/loadingCombine.js";
|
|
|
2
2
|
import { useCancellableIntent } from "./cancellableIntent.js";
|
|
3
3
|
import { useListInstance } from "./listInstance.js";
|
|
4
4
|
import { listInstanceStateKeys } from "./listKeys.js";
|
|
5
|
-
import useLoadingError from "./loadingError.js";
|
|
5
|
+
import { useLoadingError } from "./loadingError.js";
|
|
6
6
|
import inspect from "browser-util-inspect";
|
|
7
7
|
import cloneDeep from "lodash-es/cloneDeep.js";
|
|
8
8
|
import isEmpty from "lodash-es/isEmpty.js";
|
package/use/loadingError.js
CHANGED
|
@@ -16,7 +16,7 @@ import { readonly, ref } from "vue";
|
|
|
16
16
|
* @property {(error) => void} setError - Set the error state.
|
|
17
17
|
* @property {() => void} clearError - Clear the error state.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export function useLoadingError() {
|
|
20
20
|
const loading = ref(undefined);
|
|
21
21
|
const error = ref(null);
|
|
22
22
|
const errored = ref(false);
|
package/use/objectInstance.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getObjectCrud } from "../config/objectCrud.js";
|
|
2
2
|
import { assignReactiveObject } from "../utils/assignReactiveObject.js";
|
|
3
|
-
import useLoadingError from "./loadingError.js";
|
|
3
|
+
import { useLoadingError } from "./loadingError.js";
|
|
4
4
|
import { reactive, toRef } from "vue";
|
|
5
5
|
|
|
6
6
|
/**
|
package/use/objectRelated.js
CHANGED
|
@@ -285,7 +285,7 @@ export function useObjectRelated({ parentState, relatedObjectRules }) {
|
|
|
285
285
|
Object.keys(state.relatedObject)
|
|
286
286
|
));
|
|
287
287
|
} else {
|
|
288
|
-
removedRuleKeys = new Set(Object.keys(state.
|
|
288
|
+
removedRuleKeys = new Set(Object.keys(state.relatedObject));
|
|
289
289
|
addedRuleKeys = new Set();
|
|
290
290
|
}
|
|
291
291
|
for (const removedRuleKey of removedRuleKeys) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assignReactiveObject } from "../utils/assignReactiveObject.js";
|
|
2
2
|
import { loadingCombine } from "../utils/loadingCombine.js";
|
|
3
3
|
import { useCancellableIntent } from "./cancellableIntent.js";
|
|
4
|
-
import useLoadingError from "./loadingError.js";
|
|
4
|
+
import { useLoadingError } from "./loadingError.js";
|
|
5
5
|
import { useObjectInstance, objectInstanceStateKeys } from "./objectInstance.js";
|
|
6
6
|
import { computed, effectScope, reactive, toRef } from "vue";
|
|
7
7
|
|