@katlux/providers 0.1.1-alpha.129 → 0.1.1-alpha.130
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.cjs +8 -6
- package/dist/index.d.cts +360 -353
- package/dist/index.d.mts +360 -353
- package/dist/index.d.ts +360 -353
- package/dist/index.mjs +8 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18,8 +18,6 @@ function _interopNamespaceCompat(e) {
|
|
|
18
18
|
|
|
19
19
|
const crypto__namespace = /*#__PURE__*/_interopNamespaceCompat(crypto$1);
|
|
20
20
|
|
|
21
|
-
const DECRYPT_ERROR_SENTINEL = Symbol.for("katlux.decrypt_error");
|
|
22
|
-
|
|
23
21
|
var EDataFilterOperator = /* @__PURE__ */ ((EDataFilterOperator2) => {
|
|
24
22
|
EDataFilterOperator2["Equal"] = "==";
|
|
25
23
|
EDataFilterOperator2["NotEqual"] = "!=";
|
|
@@ -35,6 +33,7 @@ var EDataFilterOperator = /* @__PURE__ */ ((EDataFilterOperator2) => {
|
|
|
35
33
|
EDataFilterOperator2["Nor"] = "nor";
|
|
36
34
|
return EDataFilterOperator2;
|
|
37
35
|
})(EDataFilterOperator || {});
|
|
36
|
+
|
|
38
37
|
var ECacheStrategy = /* @__PURE__ */ ((ECacheStrategy2) => {
|
|
39
38
|
ECacheStrategy2["Application"] = "Application";
|
|
40
39
|
ECacheStrategy2["ServerSession"] = "ServerSession";
|
|
@@ -45,6 +44,7 @@ var ECacheStrategy = /* @__PURE__ */ ((ECacheStrategy2) => {
|
|
|
45
44
|
ECacheStrategy2["Cookie"] = "Cookie";
|
|
46
45
|
return ECacheStrategy2;
|
|
47
46
|
})(ECacheStrategy || {});
|
|
47
|
+
|
|
48
48
|
var EQueueStorage = /* @__PURE__ */ ((EQueueStorage2) => {
|
|
49
49
|
EQueueStorage2["Memory"] = "Memory";
|
|
50
50
|
EQueueStorage2["LocalStorage"] = "LocalStorage";
|
|
@@ -52,6 +52,8 @@ var EQueueStorage = /* @__PURE__ */ ((EQueueStorage2) => {
|
|
|
52
52
|
return EQueueStorage2;
|
|
53
53
|
})(EQueueStorage || {});
|
|
54
54
|
|
|
55
|
+
const DECRYPT_ERROR_SENTINEL = Symbol.for("katlux.decrypt_error");
|
|
56
|
+
|
|
55
57
|
const useDebounce = (callback, delay) => {
|
|
56
58
|
let timeoutId = null;
|
|
57
59
|
const debounced = function(...args) {
|
|
@@ -9096,7 +9098,7 @@ class CAPIFlatClientDataProvider extends CFlatClientDataProvider {
|
|
|
9096
9098
|
if (this.refreshOnMutation) {
|
|
9097
9099
|
await this.refresh(true);
|
|
9098
9100
|
} else {
|
|
9099
|
-
if (result && result
|
|
9101
|
+
if (result && typeof result === "object" && "item" in result) {
|
|
9100
9102
|
this.allData = [...this.allData, result.item];
|
|
9101
9103
|
this.loadPageData();
|
|
9102
9104
|
} else {
|
|
@@ -9122,7 +9124,7 @@ class CAPIFlatClientDataProvider extends CFlatClientDataProvider {
|
|
|
9122
9124
|
} else {
|
|
9123
9125
|
const index = this.allData.findIndex((row) => row[this.idKey] === item[this.idKey]);
|
|
9124
9126
|
if (index !== -1) {
|
|
9125
|
-
if (result && result
|
|
9127
|
+
if (result && typeof result === "object" && "item" in result) {
|
|
9126
9128
|
this.allData[index] = result.item;
|
|
9127
9129
|
} else {
|
|
9128
9130
|
if (this.encryption?.enabled) {
|
|
@@ -10350,7 +10352,7 @@ class CAPITreeClientDataProvider extends CTreeClientDataProvider {
|
|
|
10350
10352
|
if (this.refreshOnMutation) {
|
|
10351
10353
|
await this.refresh(true);
|
|
10352
10354
|
} else {
|
|
10353
|
-
if (result && result
|
|
10355
|
+
if (result && typeof result === "object" && "item" in result) {
|
|
10354
10356
|
this.allData.push(result.item);
|
|
10355
10357
|
this.invalidateStaticCache();
|
|
10356
10358
|
this.loadPageData();
|
|
@@ -10377,7 +10379,7 @@ class CAPITreeClientDataProvider extends CTreeClientDataProvider {
|
|
|
10377
10379
|
} else {
|
|
10378
10380
|
const index = this.allData.findIndex((row) => row[this.idKey] === item[this.idKey]);
|
|
10379
10381
|
if (index !== -1) {
|
|
10380
|
-
if (result && result
|
|
10382
|
+
if (result && typeof result === "object" && "item" in result) {
|
|
10381
10383
|
this.allData[index] = result.item;
|
|
10382
10384
|
} else {
|
|
10383
10385
|
if (this.encryption?.enabled) {
|