@bfrs/agentic-components 0.8.4 → 0.8.5
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/components/data-display/DataTable/TableSaveView.js +42 -26
- package/dist/components/data-display/DataTable/TableSaveView.js.map +1 -1
- package/dist/components/data-display/DataTable/TableViewSelector.d.ts +1 -3
- package/dist/components/data-display/DataTable/TableViewSelector.js +323 -308
- package/dist/components/data-display/DataTable/TableViewSelector.js.map +1 -1
- package/dist/components/data-display/DataTable/index.d.ts +1 -0
- package/dist/components/data-display/DataTable/useViewDraft.d.ts +86 -0
- package/dist/components/data-display/DataTable/useViewDraft.js +75 -0
- package/dist/components/data-display/DataTable/useViewDraft.js.map +1 -0
- package/dist/components/data-display/DataTable/viewStore.d.ts +4 -1
- package/dist/components/data-display/DataTable/viewStore.js +209 -182
- package/dist/components/data-display/DataTable/viewStore.js.map +1 -1
- package/dist/components/ui/forms/SuggestInput/SuggestInput.js +17 -10
- package/dist/components/ui/forms/SuggestInput/SuggestInput.js.map +1 -1
- package/dist/custom-elements.js +8374 -8309
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,34 +1,56 @@
|
|
|
1
|
-
import { createSaveView as
|
|
2
|
-
import { viewCacheKey as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
1
|
+
import { createSaveView as R, DEFAULT_SAVE_ENDPOINT as Z, deleteView as tt, updateView as et, isUnauthorizedViewApiError as nt, resolveApiToken as it, listViews as rt } from "./saveViewApi.js";
|
|
2
|
+
import { viewCacheKey as st, invalidateViewCache as J, readViewCache as z, evictViewCacheMemory as ot, writeViewCache as at, fingerprintToken as ct } from "./viewCache.js";
|
|
3
|
+
const j = "bfrs.savedViews.", F = 1, dt = "ngStorage-USER", b = "anon";
|
|
4
|
+
function U() {
|
|
5
5
|
try {
|
|
6
6
|
return typeof window < "u" && !!window.localStorage;
|
|
7
7
|
} catch {
|
|
8
8
|
return !1;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
if (!O()) return s;
|
|
11
|
+
function ft() {
|
|
12
|
+
if (!U()) return { userId: b, companyId: b };
|
|
14
13
|
try {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const f = JSON.parse(d);
|
|
18
|
-
return !f || !Array.isArray(f.views) ? s : { version: C, views: f.views, fingerprint: f.fingerprint };
|
|
14
|
+
const t = window.localStorage.getItem(dt), r = t ? JSON.parse(t) : null, a = (f) => (f == null ? "" : String(f).trim()) || b;
|
|
15
|
+
return { userId: a(r == null ? void 0 : r.id), companyId: a(r == null ? void 0 : r.company_id) };
|
|
19
16
|
} catch {
|
|
20
|
-
return
|
|
17
|
+
return { userId: b, companyId: b };
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
const P = (t) => {
|
|
21
|
+
const { userId: r, companyId: a } = ft();
|
|
22
|
+
return `${j}${encodeURIComponent(a)}.${encodeURIComponent(r)}.${encodeURIComponent(t)}`;
|
|
23
|
+
}, ut = (t) => `${j}${encodeURIComponent(t)}`;
|
|
24
|
+
function D(t) {
|
|
25
|
+
if (!t) return null;
|
|
26
|
+
try {
|
|
27
|
+
const r = JSON.parse(t);
|
|
28
|
+
return !r || !Array.isArray(r.views) ? null : { version: F, views: r.views, fingerprint: r.fingerprint };
|
|
29
|
+
} catch {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function k(t) {
|
|
34
|
+
const r = { version: F, views: [] };
|
|
35
|
+
if (!U()) return r;
|
|
36
|
+
try {
|
|
37
|
+
const a = D(window.localStorage.getItem(P(t)));
|
|
38
|
+
if (a) return a;
|
|
39
|
+
const f = ut(t), u = D(window.localStorage.getItem(f));
|
|
40
|
+
return u ? (C(t, u.views, u.fingerprint), window.localStorage.removeItem(f), u) : r;
|
|
41
|
+
} catch {
|
|
42
|
+
return r;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function C(t, r, a) {
|
|
46
|
+
if (U())
|
|
25
47
|
try {
|
|
26
|
-
const f = { version:
|
|
48
|
+
const f = { version: F, views: r, ...a ? { fingerprint: a } : {} };
|
|
27
49
|
window.localStorage.setItem(P(t), JSON.stringify(f));
|
|
28
50
|
} catch {
|
|
29
51
|
}
|
|
30
52
|
}
|
|
31
|
-
function
|
|
53
|
+
function q() {
|
|
32
54
|
try {
|
|
33
55
|
const t = globalThis.crypto;
|
|
34
56
|
if (t && typeof t.randomUUID == "function")
|
|
@@ -37,117 +59,117 @@ function K() {
|
|
|
37
59
|
}
|
|
38
60
|
return `view_${Math.random().toString(36).slice(2)}${Math.random().toString(36).slice(2)}`;
|
|
39
61
|
}
|
|
40
|
-
function
|
|
62
|
+
function $(t, r) {
|
|
41
63
|
return {
|
|
42
|
-
...
|
|
64
|
+
...r,
|
|
43
65
|
...t,
|
|
44
|
-
view_type:
|
|
45
|
-
tab: (t == null ? void 0 : t.tab) ??
|
|
46
|
-
columns: (t == null ? void 0 : t.columns) ??
|
|
47
|
-
filters: (t == null ? void 0 : t.filters) ??
|
|
48
|
-
priority: (t == null ? void 0 : t.priority) ??
|
|
49
|
-
is_default: !!(t != null && t.is_default ||
|
|
50
|
-
is_system_defined: (t == null ? void 0 : t.is_system_defined) ??
|
|
66
|
+
view_type: r.view_type,
|
|
67
|
+
tab: (t == null ? void 0 : t.tab) ?? r.tab,
|
|
68
|
+
columns: (t == null ? void 0 : t.columns) ?? r.columns,
|
|
69
|
+
filters: (t == null ? void 0 : t.filters) ?? r.filters,
|
|
70
|
+
priority: (t == null ? void 0 : t.priority) ?? r.priority,
|
|
71
|
+
is_default: !!(t != null && t.is_default || r.is_default),
|
|
72
|
+
is_system_defined: (t == null ? void 0 : t.is_system_defined) ?? r.is_system_defined
|
|
51
73
|
};
|
|
52
74
|
}
|
|
53
|
-
function
|
|
54
|
-
return JSON.stringify(t) === JSON.stringify(
|
|
75
|
+
function lt(t, r) {
|
|
76
|
+
return JSON.stringify(t) === JSON.stringify(r);
|
|
55
77
|
}
|
|
56
|
-
const
|
|
57
|
-
function
|
|
58
|
-
return
|
|
78
|
+
const yt = /* @__PURE__ */ new Set(["default"]);
|
|
79
|
+
function wt(t) {
|
|
80
|
+
return yt.has(t.trim().toLowerCase());
|
|
59
81
|
}
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
82
|
+
function G(t) {
|
|
83
|
+
if (wt(t))
|
|
62
84
|
throw new Error(`"${t.trim()}" is a reserved view name. Choose a different name.`);
|
|
63
85
|
}
|
|
64
|
-
function
|
|
86
|
+
function pt(t) {
|
|
65
87
|
return !!(t.saveEndpoint || t.endpoint);
|
|
66
88
|
}
|
|
67
|
-
function
|
|
89
|
+
function W(t) {
|
|
68
90
|
return !!(t != null && t.viewType && t.tab);
|
|
69
91
|
}
|
|
70
|
-
const
|
|
71
|
-
let
|
|
72
|
-
const
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
|
|
92
|
+
const h = /* @__PURE__ */ new Map();
|
|
93
|
+
let X = !1;
|
|
94
|
+
const T = /* @__PURE__ */ new Map();
|
|
95
|
+
function _t(t) {
|
|
96
|
+
var r;
|
|
97
|
+
if (ot(t.key), t.key === null) {
|
|
98
|
+
h.forEach((a) => a.forEach((f) => f()));
|
|
77
99
|
return;
|
|
78
100
|
}
|
|
79
|
-
(
|
|
101
|
+
(r = h.get(t.key)) == null || r.forEach((a) => a());
|
|
80
102
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
103
|
+
function mt() {
|
|
104
|
+
X || typeof window > "u" || (window.addEventListener("storage", _t), X = !0);
|
|
83
105
|
}
|
|
84
|
-
function
|
|
85
|
-
var
|
|
86
|
-
(
|
|
106
|
+
function Y(t) {
|
|
107
|
+
var r;
|
|
108
|
+
(r = h.get(t)) == null || r.forEach((a) => a());
|
|
87
109
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
110
|
+
function gt(t, r = {}) {
|
|
111
|
+
return H(t, r, !1);
|
|
90
112
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
113
|
+
function Et(t, r = {}) {
|
|
114
|
+
return H(t, r, !0);
|
|
93
115
|
}
|
|
94
|
-
function
|
|
95
|
-
const f = P(t),
|
|
96
|
-
const
|
|
97
|
-
return !o ||
|
|
98
|
-
},
|
|
116
|
+
function H(t, r = {}, a) {
|
|
117
|
+
const f = () => P(t), u = r.saveApi, o = a && W(u) ? u : void 0, A = r.remoteSave ?? (a && u && (pt(u) || W(u)) ? R({ ...u, saveEndpoint: u.saveEndpoint ?? u.endpoint ?? Z }) : void 0), L = o ? () => rt(o) : void 0, v = o ? (n) => et({ ...o, payload: n }) : void 0, x = o ? (n) => tt({ ...o, viewId: n }) : void 0, m = o ? { viewType: o.viewType, tab: o.tab } : void 0, l = m ? st(m) : void 0, g = () => ct(o ? it(o) : ""), _ = () => {
|
|
118
|
+
const n = k(t);
|
|
119
|
+
return !o || n.fingerprint === void 0 || n.fingerprint === g() ? n.views : (C(t, [], g()), []);
|
|
120
|
+
}, N = () => {
|
|
99
121
|
if (!o) return;
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
},
|
|
122
|
+
const n = k(t);
|
|
123
|
+
n.fingerprint !== void 0 && n.fingerprint !== g() && C(t, [], g());
|
|
124
|
+
}, E = (n, i = !0) => {
|
|
125
|
+
C(t, n, o ? g() : void 0), i && Y(f());
|
|
126
|
+
}, Q = (n) => (
|
|
105
127
|
// No forced primary here: absence of a backend-marked default is a valid,
|
|
106
128
|
// stable state (the selector's "Default"/no-view state), not something to
|
|
107
129
|
// paper over by promoting whichever view happens to come first.
|
|
108
|
-
|
|
109
|
-
(
|
|
110
|
-
view_id:
|
|
111
|
-
name:
|
|
130
|
+
n.map(
|
|
131
|
+
(i, e) => $(i, {
|
|
132
|
+
view_id: i.view_id || q(),
|
|
133
|
+
name: i.name || `View ${e + 1}`,
|
|
112
134
|
view_type: t,
|
|
113
135
|
tab: o == null ? void 0 : o.tab,
|
|
114
|
-
columns:
|
|
115
|
-
filters:
|
|
116
|
-
priority:
|
|
117
|
-
is_default: !!
|
|
118
|
-
is_system_defined: !!
|
|
136
|
+
columns: i.columns ?? [],
|
|
137
|
+
filters: i.filters ?? [],
|
|
138
|
+
priority: i.priority ?? e,
|
|
139
|
+
is_default: !!i.is_default,
|
|
140
|
+
is_system_defined: !!i.is_system_defined
|
|
119
141
|
})
|
|
120
142
|
)
|
|
121
|
-
),
|
|
122
|
-
const e = _(),
|
|
123
|
-
return
|
|
124
|
-
},
|
|
125
|
-
if (!
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
return
|
|
131
|
-
}).catch((
|
|
132
|
-
if (
|
|
133
|
-
throw
|
|
134
|
-
const
|
|
135
|
-
return
|
|
143
|
+
), K = (n, i = !1) => {
|
|
144
|
+
const e = _(), s = Q(n);
|
|
145
|
+
return lt(e, s) || E(s, i), s;
|
|
146
|
+
}, M = () => {
|
|
147
|
+
if (!L || !l || !m) return Promise.resolve(_());
|
|
148
|
+
const n = T.get(l);
|
|
149
|
+
if (n) return n;
|
|
150
|
+
const i = g(), e = L().then((s) => {
|
|
151
|
+
const c = K(s, !0);
|
|
152
|
+
return at(l, { scope: m, fingerprint: i, views: c }), c;
|
|
153
|
+
}).catch((s) => {
|
|
154
|
+
if (nt(s))
|
|
155
|
+
throw J(l), s;
|
|
156
|
+
const c = z(l, m, i);
|
|
157
|
+
return c.status === "miss" ? _() : c.views;
|
|
136
158
|
}).finally(() => {
|
|
137
|
-
|
|
159
|
+
T.get(l) === e && T.delete(l);
|
|
138
160
|
});
|
|
139
|
-
return
|
|
140
|
-
},
|
|
141
|
-
if (
|
|
142
|
-
const
|
|
143
|
-
return
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
const e = (await
|
|
148
|
-
if (!e) throw new Error(`View "${
|
|
149
|
-
if (
|
|
150
|
-
await
|
|
161
|
+
return T.set(l, e), e;
|
|
162
|
+
}, B = () => {
|
|
163
|
+
if (N(), !L || !l || !m) return Promise.resolve(_());
|
|
164
|
+
const n = z(l, m, g());
|
|
165
|
+
return n.status === "hit" ? Promise.resolve(K(n.views, !1)) : M();
|
|
166
|
+
}, S = () => {
|
|
167
|
+
l && J(l);
|
|
168
|
+
}, O = async (n, i) => {
|
|
169
|
+
const e = (await B()).find((d) => d.view_id === n);
|
|
170
|
+
if (!e) throw new Error(`View "${n}" not found for screen "${t}"`);
|
|
171
|
+
if (v) {
|
|
172
|
+
await v({
|
|
151
173
|
view_id: e.view_id,
|
|
152
174
|
view_type: t,
|
|
153
175
|
tab: o == null ? void 0 : o.tab,
|
|
@@ -155,127 +177,132 @@ function R(t, s = {}, d) {
|
|
|
155
177
|
columns: e.columns,
|
|
156
178
|
filters: e.filters,
|
|
157
179
|
priority: e.priority,
|
|
158
|
-
is_default:
|
|
159
|
-
}),
|
|
160
|
-
const
|
|
161
|
-
if (!
|
|
180
|
+
is_default: i
|
|
181
|
+
}), S();
|
|
182
|
+
const y = (await M()).find((w) => w.view_id === n);
|
|
183
|
+
if (!y || y.is_default !== i)
|
|
162
184
|
throw new Error(
|
|
163
|
-
`The backend did not persist is_default=${
|
|
185
|
+
`The backend did not persist is_default=${i} for view "${e.name}". Saved views still show it as ${y ? `is_default=${y.is_default}` : "missing"}.`
|
|
164
186
|
);
|
|
165
|
-
return
|
|
187
|
+
return y;
|
|
166
188
|
}
|
|
167
|
-
const
|
|
168
|
-
return
|
|
189
|
+
const s = _(), c = i ? s.map((d) => ({ ...d, is_default: d.view_id === n })) : s.map((d) => d.view_id === n ? { ...d, is_default: !1 } : d);
|
|
190
|
+
return E(c), { ...e, is_default: i };
|
|
169
191
|
};
|
|
170
192
|
return {
|
|
171
193
|
async list() {
|
|
172
|
-
return
|
|
194
|
+
return B();
|
|
173
195
|
},
|
|
174
|
-
async get(
|
|
175
|
-
return (await this.list()).find((e) => e.view_id ===
|
|
196
|
+
async get(n) {
|
|
197
|
+
return (await this.list()).find((e) => e.view_id === n) ?? null;
|
|
176
198
|
},
|
|
177
199
|
async getActive() {
|
|
178
|
-
return (await this.list()).find((
|
|
200
|
+
return (await this.list()).find((i) => i.is_default) ?? null;
|
|
179
201
|
},
|
|
180
|
-
async save(
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
...
|
|
202
|
+
async save(n) {
|
|
203
|
+
G(n.name);
|
|
204
|
+
const i = {
|
|
205
|
+
...n,
|
|
184
206
|
view_type: t,
|
|
185
|
-
tab: (
|
|
186
|
-
filters:
|
|
187
|
-
}, e =
|
|
188
|
-
(
|
|
207
|
+
tab: (a ? u == null ? void 0 : u.tab : void 0) ?? n.tab,
|
|
208
|
+
filters: n.filters ?? []
|
|
209
|
+
}, e = A ? await A(i) : void 0, s = _(), c = s.findIndex(
|
|
210
|
+
(p) => p.name.trim() === i.name.trim() || (e == null ? void 0 : e.view.view_id) && p.view_id === e.view.view_id
|
|
189
211
|
);
|
|
190
|
-
if (
|
|
191
|
-
const
|
|
192
|
-
...
|
|
193
|
-
name:
|
|
212
|
+
if (c >= 0) {
|
|
213
|
+
const p = {
|
|
214
|
+
...s[c],
|
|
215
|
+
name: i.name,
|
|
194
216
|
view_type: t,
|
|
195
|
-
tab:
|
|
196
|
-
columns:
|
|
197
|
-
filters:
|
|
198
|
-
priority:
|
|
199
|
-
},
|
|
200
|
-
return
|
|
217
|
+
tab: i.tab,
|
|
218
|
+
columns: i.columns,
|
|
219
|
+
filters: i.filters ?? [],
|
|
220
|
+
priority: i.priority ?? s[c].priority
|
|
221
|
+
}, V = $(e == null ? void 0 : e.view, p), I = s.slice();
|
|
222
|
+
return I[c] = V, S(), E(I), { view: V, alreadyExists: (e == null ? void 0 : e.alreadyExists) ?? !0, message: e == null ? void 0 : e.message };
|
|
201
223
|
}
|
|
202
|
-
const
|
|
203
|
-
view_id:
|
|
204
|
-
name:
|
|
224
|
+
const d = s.length === 0, y = {
|
|
225
|
+
view_id: q(),
|
|
226
|
+
name: i.name,
|
|
205
227
|
view_type: t,
|
|
206
|
-
tab:
|
|
207
|
-
columns:
|
|
208
|
-
filters:
|
|
209
|
-
priority:
|
|
210
|
-
|
|
211
|
-
is_default: n.length === 0,
|
|
228
|
+
tab: i.tab,
|
|
229
|
+
columns: i.columns,
|
|
230
|
+
filters: i.filters ?? [],
|
|
231
|
+
priority: i.priority ?? 0,
|
|
232
|
+
is_default: d,
|
|
212
233
|
is_system_defined: !1
|
|
213
|
-
}, w =
|
|
214
|
-
|
|
234
|
+
}, w = $(e == null ? void 0 : e.view, y);
|
|
235
|
+
if (S(), E([...s, w]), d && v)
|
|
236
|
+
try {
|
|
237
|
+
return { view: await O(w.view_id, !0), alreadyExists: (e == null ? void 0 : e.alreadyExists) ?? !1, message: e == null ? void 0 : e.message };
|
|
238
|
+
} catch {
|
|
239
|
+
return { view: w, alreadyExists: (e == null ? void 0 : e.alreadyExists) ?? !1, message: e == null ? void 0 : e.message };
|
|
240
|
+
}
|
|
241
|
+
return { view: w, alreadyExists: (e == null ? void 0 : e.alreadyExists) ?? !1, message: e == null ? void 0 : e.message };
|
|
215
242
|
},
|
|
216
|
-
async rename(
|
|
217
|
-
|
|
218
|
-
const e =
|
|
219
|
-
if (
|
|
220
|
-
const
|
|
221
|
-
let
|
|
222
|
-
|
|
223
|
-
view_id:
|
|
243
|
+
async rename(n, i) {
|
|
244
|
+
G(i);
|
|
245
|
+
const e = v ? await this.get(n) : null, s = _(), c = s.findIndex((I) => I.view_id === n);
|
|
246
|
+
if (c < 0 && !e) throw new Error(`View "${n}" not found for screen "${t}"`);
|
|
247
|
+
const d = e ?? s[c], y = { ...d, name: i };
|
|
248
|
+
let w = null;
|
|
249
|
+
v && (w = await v({
|
|
250
|
+
view_id: d.view_id || n,
|
|
224
251
|
view_type: t,
|
|
225
252
|
tab: o == null ? void 0 : o.tab,
|
|
226
|
-
name:
|
|
227
|
-
columns:
|
|
228
|
-
filters:
|
|
229
|
-
priority:
|
|
230
|
-
is_default:
|
|
253
|
+
name: i,
|
|
254
|
+
columns: d.columns,
|
|
255
|
+
filters: d.filters,
|
|
256
|
+
priority: d.priority,
|
|
257
|
+
is_default: d.is_default
|
|
231
258
|
}));
|
|
232
|
-
const
|
|
233
|
-
return
|
|
259
|
+
const p = $(w ?? void 0, y), V = c >= 0 ? s.slice() : [...s, p];
|
|
260
|
+
return c >= 0 && (V[c] = p), S(), E(V), p;
|
|
234
261
|
},
|
|
235
|
-
async remove(
|
|
236
|
-
const
|
|
262
|
+
async remove(n) {
|
|
263
|
+
const i = _(), e = i.find((c) => c.view_id === n);
|
|
237
264
|
if (!e) return;
|
|
238
|
-
|
|
239
|
-
const
|
|
240
|
-
|
|
265
|
+
x && await x(e.view_id);
|
|
266
|
+
const s = i.filter((c) => c.view_id !== n);
|
|
267
|
+
S(), E(s);
|
|
241
268
|
},
|
|
242
|
-
async setPrimary(
|
|
243
|
-
return
|
|
269
|
+
async setPrimary(n) {
|
|
270
|
+
return O(n, !0);
|
|
244
271
|
},
|
|
245
|
-
async unsetPrimary(
|
|
246
|
-
return
|
|
272
|
+
async unsetPrimary(n) {
|
|
273
|
+
return O(n, !1);
|
|
247
274
|
},
|
|
248
275
|
async reset() {
|
|
249
|
-
if (
|
|
276
|
+
if (x && await x(), S(), U())
|
|
250
277
|
try {
|
|
251
|
-
window.localStorage.removeItem(f);
|
|
278
|
+
window.localStorage.removeItem(f());
|
|
252
279
|
} catch {
|
|
253
280
|
}
|
|
254
|
-
|
|
281
|
+
Y(f());
|
|
255
282
|
},
|
|
256
|
-
subscribe(
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
return
|
|
260
|
-
let
|
|
261
|
-
|
|
283
|
+
subscribe(n) {
|
|
284
|
+
mt();
|
|
285
|
+
const i = l ? [f(), l] : [f()];
|
|
286
|
+
return i.forEach((e) => {
|
|
287
|
+
let s = h.get(e);
|
|
288
|
+
s || (s = /* @__PURE__ */ new Set(), h.set(e, s)), s.add(n);
|
|
262
289
|
}), () => {
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
|
|
290
|
+
i.forEach((e) => {
|
|
291
|
+
const s = h.get(e);
|
|
292
|
+
s && (s.delete(n), s.size === 0 && h.delete(e));
|
|
266
293
|
});
|
|
267
294
|
};
|
|
268
295
|
}
|
|
269
296
|
};
|
|
270
297
|
}
|
|
271
|
-
function
|
|
272
|
-
const
|
|
273
|
-
return (f) =>
|
|
298
|
+
function St(t, r) {
|
|
299
|
+
const a = gt(t, r);
|
|
300
|
+
return (f) => a.save(f);
|
|
274
301
|
}
|
|
275
302
|
export {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
303
|
+
St as createLocalSaveView,
|
|
304
|
+
gt as createLocalViewStore,
|
|
305
|
+
Et as createTableViewSelectorStore,
|
|
306
|
+
wt as isReservedViewName
|
|
280
307
|
};
|
|
281
308
|
//# sourceMappingURL=viewStore.js.map
|