@marimo-team/islands 0.24.1-dev79 → 0.24.1-dev80
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/{chat-ui-DM12Y9is.js → chat-ui-Dcb8pQhM.js} +8 -8
- package/dist/click-outside-container-D_URcm3D.js +167 -0
- package/dist/{common-DuuFqqGa.js → common-C8LWIius.js} +571 -571
- package/dist/{data-grid-overlay-editor-D-p0q7YM.js → data-grid-overlay-editor-DZM4BAaI.js} +49 -48
- package/dist/{click-outside-container-CVJZE0x6.js → data-grid-types-BnZwWG8z.js} +150 -312
- package/dist/{dropdown-menu-C8N-kZzD.js → dropdown-menu-B39I9ARA.js} +20 -31
- package/dist/{glide-data-editor-64-L_DON.js → glide-data-editor-DEJqXbly.js} +2598 -2780
- package/dist/glide-utils-C0dRuWI_.js +201 -0
- package/dist/{html-to-image-B7RQgQQy.js → html-to-image-CvCnIqTI.js} +4476 -4465
- package/dist/main.js +5971 -5913
- package/dist/{process-output-BCqcNNll.js → process-output-C2joqP7d.js} +1 -1
- package/dist/{reveal-component-BDQwrD89.js → reveal-component-CdEcs6WV.js} +3 -3
- package/package.json +1 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +38 -70
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +152 -1
- package/src/plugins/impl/data-editor/__tests__/data-utils.test.ts +73 -78
- package/src/plugins/impl/data-editor/__tests__/editor-state.test.ts +113 -0
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +49 -13
- package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +44 -64
- package/src/plugins/impl/data-editor/data-utils.ts +76 -53
- package/src/plugins/impl/data-editor/editor-state.ts +108 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +40 -223
- package/src/plugins/impl/data-editor/glide-utils.ts +71 -31
- package/src/plugins/impl/data-editor/types.ts +30 -16
- package/dist/types-eyYyHvz7.js +0 -72
|
@@ -1,82 +1,81 @@
|
|
|
1
1
|
import { a as e, t } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t as n } from "./react-DMWcHin-.js";
|
|
3
2
|
//#region ../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHas.js
|
|
4
|
-
var
|
|
3
|
+
var n = /* @__PURE__ */ t(((e, t) => {
|
|
5
4
|
var n = Object.prototype.hasOwnProperty;
|
|
6
5
|
function r(e, t) {
|
|
7
6
|
return e != null && n.call(e, t);
|
|
8
7
|
}
|
|
9
8
|
t.exports = r;
|
|
10
|
-
})),
|
|
9
|
+
})), r = /* @__PURE__ */ t(((e, t) => {
|
|
11
10
|
t.exports = Array.isArray;
|
|
12
|
-
})),
|
|
11
|
+
})), i = /* @__PURE__ */ t(((e, t) => {
|
|
13
12
|
t.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
14
|
-
})),
|
|
15
|
-
var n =
|
|
13
|
+
})), a = /* @__PURE__ */ t(((e, t) => {
|
|
14
|
+
var n = i(), r = typeof self == "object" && self && self.Object === Object && self;
|
|
16
15
|
t.exports = n || r || Function("return this")();
|
|
16
|
+
})), o = /* @__PURE__ */ t(((e, t) => {
|
|
17
|
+
t.exports = a().Symbol;
|
|
17
18
|
})), s = /* @__PURE__ */ t(((e, t) => {
|
|
18
|
-
|
|
19
|
-
})), c = /* @__PURE__ */ t(((e, t) => {
|
|
20
|
-
var n = s(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, o = n ? n.toStringTag : void 0;
|
|
19
|
+
var n = o(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, s = n ? n.toStringTag : void 0;
|
|
21
20
|
function c(e) {
|
|
22
|
-
var t = i.call(e,
|
|
21
|
+
var t = i.call(e, s), n = e[s];
|
|
23
22
|
try {
|
|
24
|
-
e[
|
|
23
|
+
e[s] = void 0;
|
|
25
24
|
var r = !0;
|
|
26
25
|
} catch {}
|
|
27
|
-
var
|
|
28
|
-
return r && (t ? e[
|
|
26
|
+
var o = a.call(e);
|
|
27
|
+
return r && (t ? e[s] = n : delete e[s]), o;
|
|
29
28
|
}
|
|
30
29
|
t.exports = c;
|
|
31
|
-
})),
|
|
30
|
+
})), c = /* @__PURE__ */ t(((e, t) => {
|
|
32
31
|
var n = Object.prototype.toString;
|
|
33
32
|
function r(e) {
|
|
34
33
|
return n.call(e);
|
|
35
34
|
}
|
|
36
35
|
t.exports = r;
|
|
37
|
-
})),
|
|
38
|
-
var n =
|
|
36
|
+
})), l = /* @__PURE__ */ t(((e, t) => {
|
|
37
|
+
var n = o(), r = s(), i = c(), a = "[object Null]", l = "[object Undefined]", u = n ? n.toStringTag : void 0;
|
|
39
38
|
function d(e) {
|
|
40
|
-
return e == null ? e === void 0 ?
|
|
39
|
+
return e == null ? e === void 0 ? l : a : u && u in Object(e) ? r(e) : i(e);
|
|
41
40
|
}
|
|
42
41
|
t.exports = d;
|
|
43
|
-
})),
|
|
42
|
+
})), u = /* @__PURE__ */ t(((e, t) => {
|
|
44
43
|
function n(e) {
|
|
45
44
|
return typeof e == "object" && !!e;
|
|
46
45
|
}
|
|
47
46
|
t.exports = n;
|
|
48
|
-
})),
|
|
49
|
-
var n =
|
|
47
|
+
})), d = /* @__PURE__ */ t(((e, t) => {
|
|
48
|
+
var n = l(), r = u(), i = "[object Symbol]";
|
|
50
49
|
function a(e) {
|
|
51
50
|
return typeof e == "symbol" || r(e) && n(e) == i;
|
|
52
51
|
}
|
|
53
52
|
t.exports = a;
|
|
54
|
-
})),
|
|
55
|
-
var n =
|
|
53
|
+
})), f = /* @__PURE__ */ t(((e, t) => {
|
|
54
|
+
var n = r(), i = d(), a = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, o = /^\w*$/;
|
|
56
55
|
function s(e, t) {
|
|
57
56
|
if (n(e)) return !1;
|
|
58
|
-
var
|
|
59
|
-
return
|
|
57
|
+
var r = typeof e;
|
|
58
|
+
return r == "number" || r == "symbol" || r == "boolean" || e == null || i(e) ? !0 : o.test(e) || !a.test(e) || t != null && e in Object(t);
|
|
60
59
|
}
|
|
61
60
|
t.exports = s;
|
|
62
|
-
})),
|
|
61
|
+
})), p = /* @__PURE__ */ t(((e, t) => {
|
|
63
62
|
function n(e) {
|
|
64
63
|
var t = typeof e;
|
|
65
64
|
return e != null && (t == "object" || t == "function");
|
|
66
65
|
}
|
|
67
66
|
t.exports = n;
|
|
68
|
-
})),
|
|
69
|
-
var n =
|
|
67
|
+
})), m = /* @__PURE__ */ t(((e, t) => {
|
|
68
|
+
var n = l(), r = p(), i = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", s = "[object Proxy]";
|
|
70
69
|
function c(e) {
|
|
71
70
|
if (!r(e)) return !1;
|
|
72
71
|
var t = n(e);
|
|
73
72
|
return t == a || t == o || t == i || t == s;
|
|
74
73
|
}
|
|
75
74
|
t.exports = c;
|
|
76
|
-
})),
|
|
77
|
-
t.exports =
|
|
78
|
-
})),
|
|
79
|
-
var n =
|
|
75
|
+
})), h = /* @__PURE__ */ t(((e, t) => {
|
|
76
|
+
t.exports = a()["__core-js_shared__"];
|
|
77
|
+
})), g = /* @__PURE__ */ t(((e, t) => {
|
|
78
|
+
var n = h(), r = function() {
|
|
80
79
|
var e = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "");
|
|
81
80
|
return e ? "Symbol(src)_1." + e : "";
|
|
82
81
|
}();
|
|
@@ -84,7 +83,7 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
84
83
|
return !!r && r in e;
|
|
85
84
|
}
|
|
86
85
|
t.exports = i;
|
|
87
|
-
})),
|
|
86
|
+
})), _ = /* @__PURE__ */ t(((e, t) => {
|
|
88
87
|
var n = Function.prototype.toString;
|
|
89
88
|
function r(e) {
|
|
90
89
|
if (e != null) {
|
|
@@ -98,28 +97,28 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
98
97
|
return "";
|
|
99
98
|
}
|
|
100
99
|
t.exports = r;
|
|
101
|
-
})),
|
|
102
|
-
var n =
|
|
103
|
-
function
|
|
100
|
+
})), ee = /* @__PURE__ */ t(((e, t) => {
|
|
101
|
+
var n = m(), r = g(), i = p(), a = _(), o = /[\\^$.*+?()[\]{}|]/g, s = /^\[object .+?Constructor\]$/, c = Function.prototype, l = Object.prototype, u = c.toString, d = l.hasOwnProperty, f = RegExp("^" + u.call(d).replace(o, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
102
|
+
function h(e) {
|
|
104
103
|
return !i(e) || r(e) ? !1 : (n(e) ? f : s).test(a(e));
|
|
105
104
|
}
|
|
106
|
-
t.exports =
|
|
107
|
-
})),
|
|
105
|
+
t.exports = h;
|
|
106
|
+
})), te = /* @__PURE__ */ t(((e, t) => {
|
|
108
107
|
function n(e, t) {
|
|
109
108
|
return e?.[t];
|
|
110
109
|
}
|
|
111
110
|
t.exports = n;
|
|
112
|
-
})),
|
|
113
|
-
var n =
|
|
111
|
+
})), v = /* @__PURE__ */ t(((e, t) => {
|
|
112
|
+
var n = ee(), r = te();
|
|
114
113
|
function i(e, t) {
|
|
115
114
|
var i = r(e, t);
|
|
116
115
|
return n(i) ? i : void 0;
|
|
117
116
|
}
|
|
118
117
|
t.exports = i;
|
|
119
|
-
})),
|
|
120
|
-
t.exports =
|
|
118
|
+
})), y = /* @__PURE__ */ t(((e, t) => {
|
|
119
|
+
t.exports = v()(Object, "create");
|
|
121
120
|
})), ne = /* @__PURE__ */ t(((e, t) => {
|
|
122
|
-
var n =
|
|
121
|
+
var n = y();
|
|
123
122
|
function r() {
|
|
124
123
|
this.__data__ = n ? n(null) : {}, this.size = 0;
|
|
125
124
|
}
|
|
@@ -131,7 +130,7 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
131
130
|
}
|
|
132
131
|
t.exports = n;
|
|
133
132
|
})), ie = /* @__PURE__ */ t(((e, t) => {
|
|
134
|
-
var n =
|
|
133
|
+
var n = y(), r = "__lodash_hash_undefined__", i = Object.prototype.hasOwnProperty;
|
|
135
134
|
function a(e) {
|
|
136
135
|
var t = this.__data__;
|
|
137
136
|
if (n) {
|
|
@@ -141,22 +140,22 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
141
140
|
return i.call(t, e) ? t[e] : void 0;
|
|
142
141
|
}
|
|
143
142
|
t.exports = a;
|
|
144
|
-
})),
|
|
145
|
-
var n =
|
|
143
|
+
})), b = /* @__PURE__ */ t(((e, t) => {
|
|
144
|
+
var n = y(), r = Object.prototype.hasOwnProperty;
|
|
146
145
|
function i(e) {
|
|
147
146
|
var t = this.__data__;
|
|
148
147
|
return n ? t[e] !== void 0 : r.call(t, e);
|
|
149
148
|
}
|
|
150
149
|
t.exports = i;
|
|
151
|
-
})),
|
|
152
|
-
var n =
|
|
150
|
+
})), ae = /* @__PURE__ */ t(((e, t) => {
|
|
151
|
+
var n = y(), r = "__lodash_hash_undefined__";
|
|
153
152
|
function i(e, t) {
|
|
154
153
|
var i = this.__data__;
|
|
155
154
|
return this.size += +!this.has(e), i[e] = n && t === void 0 ? r : t, this;
|
|
156
155
|
}
|
|
157
156
|
t.exports = i;
|
|
158
|
-
})),
|
|
159
|
-
var n = ne(), r = re(), i = ie(), a =
|
|
157
|
+
})), oe = /* @__PURE__ */ t(((e, t) => {
|
|
158
|
+
var n = ne(), r = re(), i = ie(), a = b(), o = ae();
|
|
160
159
|
function s(e) {
|
|
161
160
|
var t = -1, n = e == null ? 0 : e.length;
|
|
162
161
|
for (this.clear(); ++t < n;) {
|
|
@@ -165,7 +164,7 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
166
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
168
|
-
})),
|
|
167
|
+
})), se = /* @__PURE__ */ t(((e, t) => {
|
|
169
168
|
function n() {
|
|
170
169
|
this.__data__ = [], this.size = 0;
|
|
171
170
|
}
|
|
@@ -182,35 +181,35 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
182
181
|
return -1;
|
|
183
182
|
}
|
|
184
183
|
t.exports = r;
|
|
185
|
-
})),
|
|
184
|
+
})), C = /* @__PURE__ */ t(((e, t) => {
|
|
186
185
|
var n = S(), r = Array.prototype.splice;
|
|
187
186
|
function i(e) {
|
|
188
187
|
var t = this.__data__, i = n(t, e);
|
|
189
188
|
return i < 0 ? !1 : (i == t.length - 1 ? t.pop() : r.call(t, i, 1), --this.size, !0);
|
|
190
189
|
}
|
|
191
190
|
t.exports = i;
|
|
192
|
-
})),
|
|
191
|
+
})), w = /* @__PURE__ */ t(((e, t) => {
|
|
193
192
|
var n = S();
|
|
194
193
|
function r(e) {
|
|
195
194
|
var t = this.__data__, r = n(t, e);
|
|
196
195
|
return r < 0 ? void 0 : t[r][1];
|
|
197
196
|
}
|
|
198
197
|
t.exports = r;
|
|
199
|
-
})),
|
|
198
|
+
})), ce = /* @__PURE__ */ t(((e, t) => {
|
|
200
199
|
var n = S();
|
|
201
200
|
function r(e) {
|
|
202
201
|
return n(this.__data__, e) > -1;
|
|
203
202
|
}
|
|
204
203
|
t.exports = r;
|
|
205
|
-
})),
|
|
204
|
+
})), le = /* @__PURE__ */ t(((e, t) => {
|
|
206
205
|
var n = S();
|
|
207
206
|
function r(e, t) {
|
|
208
207
|
var r = this.__data__, i = n(r, e);
|
|
209
208
|
return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this;
|
|
210
209
|
}
|
|
211
210
|
t.exports = r;
|
|
212
|
-
})),
|
|
213
|
-
var n =
|
|
211
|
+
})), T = /* @__PURE__ */ t(((e, t) => {
|
|
212
|
+
var n = se(), r = C(), i = w(), a = ce(), o = le();
|
|
214
213
|
function s(e) {
|
|
215
214
|
var t = -1, n = e == null ? 0 : e.length;
|
|
216
215
|
for (this.clear(); ++t < n;) {
|
|
@@ -219,10 +218,10 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
220
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
222
|
-
})),
|
|
223
|
-
t.exports =
|
|
224
|
-
})),
|
|
225
|
-
var n =
|
|
221
|
+
})), E = /* @__PURE__ */ t(((e, t) => {
|
|
222
|
+
t.exports = v()(a(), "Map");
|
|
223
|
+
})), ue = /* @__PURE__ */ t(((e, t) => {
|
|
224
|
+
var n = oe(), r = T(), i = E();
|
|
226
225
|
function a() {
|
|
227
226
|
this.size = 0, this.__data__ = {
|
|
228
227
|
hash: new n(),
|
|
@@ -231,47 +230,47 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
231
230
|
};
|
|
232
231
|
}
|
|
233
232
|
t.exports = a;
|
|
234
|
-
})),
|
|
233
|
+
})), de = /* @__PURE__ */ t(((e, t) => {
|
|
235
234
|
function n(e) {
|
|
236
235
|
var t = typeof e;
|
|
237
236
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
238
237
|
}
|
|
239
238
|
t.exports = n;
|
|
240
|
-
})),
|
|
241
|
-
var n =
|
|
239
|
+
})), D = /* @__PURE__ */ t(((e, t) => {
|
|
240
|
+
var n = de();
|
|
242
241
|
function r(e, t) {
|
|
243
242
|
var r = e.__data__;
|
|
244
243
|
return n(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
245
244
|
}
|
|
246
245
|
t.exports = r;
|
|
247
|
-
})),
|
|
248
|
-
var n =
|
|
246
|
+
})), fe = /* @__PURE__ */ t(((e, t) => {
|
|
247
|
+
var n = D();
|
|
249
248
|
function r(e) {
|
|
250
249
|
var t = n(this, e).delete(e);
|
|
251
250
|
return this.size -= +!!t, t;
|
|
252
251
|
}
|
|
253
252
|
t.exports = r;
|
|
254
|
-
})),
|
|
255
|
-
var n =
|
|
253
|
+
})), pe = /* @__PURE__ */ t(((e, t) => {
|
|
254
|
+
var n = D();
|
|
256
255
|
function r(e) {
|
|
257
256
|
return n(this, e).get(e);
|
|
258
257
|
}
|
|
259
258
|
t.exports = r;
|
|
260
|
-
})),
|
|
261
|
-
var n =
|
|
259
|
+
})), me = /* @__PURE__ */ t(((e, t) => {
|
|
260
|
+
var n = D();
|
|
262
261
|
function r(e) {
|
|
263
262
|
return n(this, e).has(e);
|
|
264
263
|
}
|
|
265
264
|
t.exports = r;
|
|
266
|
-
})),
|
|
267
|
-
var n =
|
|
265
|
+
})), O = /* @__PURE__ */ t(((e, t) => {
|
|
266
|
+
var n = D();
|
|
268
267
|
function r(e, t) {
|
|
269
268
|
var r = n(this, e), i = r.size;
|
|
270
269
|
return r.set(e, t), this.size += r.size == i ? 0 : 1, this;
|
|
271
270
|
}
|
|
272
271
|
t.exports = r;
|
|
273
|
-
})),
|
|
274
|
-
var n =
|
|
272
|
+
})), k = /* @__PURE__ */ t(((e, t) => {
|
|
273
|
+
var n = ue(), r = fe(), i = pe(), a = me(), o = O();
|
|
275
274
|
function s(e) {
|
|
276
275
|
var t = -1, n = e == null ? 0 : e.length;
|
|
277
276
|
for (this.clear(); ++t < n;) {
|
|
@@ -280,8 +279,8 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
280
279
|
}
|
|
281
280
|
}
|
|
282
281
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
283
|
-
})),
|
|
284
|
-
var n =
|
|
282
|
+
})), A = /* @__PURE__ */ t(((e, t) => {
|
|
283
|
+
var n = k(), r = "Expected a function";
|
|
285
284
|
function i(e, t) {
|
|
286
285
|
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(r);
|
|
287
286
|
var a = function() {
|
|
@@ -293,8 +292,8 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
293
292
|
return a.cache = new (i.Cache || n)(), a;
|
|
294
293
|
}
|
|
295
294
|
i.Cache = n, t.exports = i;
|
|
296
|
-
})),
|
|
297
|
-
var n =
|
|
295
|
+
})), j = /* @__PURE__ */ t(((e, t) => {
|
|
296
|
+
var n = A(), r = 500;
|
|
298
297
|
function i(e) {
|
|
299
298
|
var t = n(e, function(e) {
|
|
300
299
|
return i.size === r && i.clear(), e;
|
|
@@ -302,123 +301,123 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
302
301
|
return t;
|
|
303
302
|
}
|
|
304
303
|
t.exports = i;
|
|
305
|
-
})),
|
|
306
|
-
var n =
|
|
304
|
+
})), M = /* @__PURE__ */ t(((e, t) => {
|
|
305
|
+
var n = j(), r = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, i = /\\(\\)?/g;
|
|
307
306
|
t.exports = n(function(e) {
|
|
308
307
|
var t = [];
|
|
309
308
|
return e.charCodeAt(0) === 46 && t.push(""), e.replace(r, function(e, n, r, a) {
|
|
310
309
|
t.push(r ? a.replace(i, "$1") : n || e);
|
|
311
310
|
}), t;
|
|
312
311
|
});
|
|
313
|
-
})),
|
|
312
|
+
})), N = /* @__PURE__ */ t(((e, t) => {
|
|
314
313
|
function n(e, t) {
|
|
315
314
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
316
315
|
return i;
|
|
317
316
|
}
|
|
318
317
|
t.exports = n;
|
|
319
|
-
})),
|
|
320
|
-
var n =
|
|
321
|
-
function
|
|
318
|
+
})), P = /* @__PURE__ */ t(((e, t) => {
|
|
319
|
+
var n = o(), i = N(), a = r(), s = d(), c = 1 / 0, l = n ? n.prototype : void 0, u = l ? l.toString : void 0;
|
|
320
|
+
function f(e) {
|
|
322
321
|
if (typeof e == "string") return e;
|
|
323
|
-
if (a(e)) return
|
|
324
|
-
if (
|
|
322
|
+
if (a(e)) return i(e, f) + "";
|
|
323
|
+
if (s(e)) return u ? u.call(e) : "";
|
|
325
324
|
var t = e + "";
|
|
326
325
|
return t == "0" && 1 / e == -c ? "-0" : t;
|
|
327
326
|
}
|
|
328
|
-
t.exports =
|
|
329
|
-
})),
|
|
330
|
-
var n =
|
|
327
|
+
t.exports = f;
|
|
328
|
+
})), F = /* @__PURE__ */ t(((e, t) => {
|
|
329
|
+
var n = P();
|
|
331
330
|
function r(e) {
|
|
332
331
|
return e == null ? "" : n(e);
|
|
333
332
|
}
|
|
334
333
|
t.exports = r;
|
|
335
|
-
})),
|
|
336
|
-
var n =
|
|
334
|
+
})), I = /* @__PURE__ */ t(((e, t) => {
|
|
335
|
+
var n = r(), i = f(), a = M(), o = F();
|
|
337
336
|
function s(e, t) {
|
|
338
|
-
return n(e) ? e :
|
|
337
|
+
return n(e) ? e : i(e, t) ? [e] : a(o(e));
|
|
339
338
|
}
|
|
340
339
|
t.exports = s;
|
|
341
|
-
})),
|
|
342
|
-
var n =
|
|
340
|
+
})), L = /* @__PURE__ */ t(((e, t) => {
|
|
341
|
+
var n = l(), r = u(), i = "[object Arguments]";
|
|
343
342
|
function a(e) {
|
|
344
343
|
return r(e) && n(e) == i;
|
|
345
344
|
}
|
|
346
345
|
t.exports = a;
|
|
347
|
-
})),
|
|
348
|
-
var n =
|
|
346
|
+
})), R = /* @__PURE__ */ t(((e, t) => {
|
|
347
|
+
var n = L(), r = u(), i = Object.prototype, a = i.hasOwnProperty, o = i.propertyIsEnumerable;
|
|
349
348
|
t.exports = n(function() {
|
|
350
349
|
return arguments;
|
|
351
350
|
}()) ? n : function(e) {
|
|
352
351
|
return r(e) && a.call(e, "callee") && !o.call(e, "callee");
|
|
353
352
|
};
|
|
354
|
-
})),
|
|
353
|
+
})), z = /* @__PURE__ */ t(((e, t) => {
|
|
355
354
|
var n = /^(?:0|[1-9]\d*)$/;
|
|
356
355
|
function r(e, t) {
|
|
357
356
|
var r = typeof e;
|
|
358
357
|
return t ??= 9007199254740991, !!t && (r == "number" || r != "symbol" && n.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
359
358
|
}
|
|
360
359
|
t.exports = r;
|
|
361
|
-
})),
|
|
360
|
+
})), B = /* @__PURE__ */ t(((e, t) => {
|
|
362
361
|
function n(e) {
|
|
363
362
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= 9007199254740991;
|
|
364
363
|
}
|
|
365
364
|
t.exports = n;
|
|
366
|
-
})),
|
|
367
|
-
var n =
|
|
365
|
+
})), V = /* @__PURE__ */ t(((e, t) => {
|
|
366
|
+
var n = d(), r = 1 / 0;
|
|
368
367
|
function i(e) {
|
|
369
368
|
if (typeof e == "string" || n(e)) return e;
|
|
370
369
|
var t = e + "";
|
|
371
370
|
return t == "0" && 1 / e == -r ? "-0" : t;
|
|
372
371
|
}
|
|
373
372
|
t.exports = i;
|
|
374
|
-
})),
|
|
375
|
-
var n =
|
|
376
|
-
function l(e, t,
|
|
373
|
+
})), H = /* @__PURE__ */ t(((e, t) => {
|
|
374
|
+
var n = I(), i = R(), a = r(), o = z(), s = B(), c = V();
|
|
375
|
+
function l(e, t, r) {
|
|
377
376
|
t = n(t, e);
|
|
378
377
|
for (var l = -1, u = t.length, d = !1; ++l < u;) {
|
|
379
378
|
var f = c(t[l]);
|
|
380
|
-
if (!(d = e != null &&
|
|
379
|
+
if (!(d = e != null && r(e, f))) break;
|
|
381
380
|
e = e[f];
|
|
382
381
|
}
|
|
383
|
-
return d || ++l != u ? d : (u = e == null ? 0 : e.length, !!u && s(u) && o(f, u) && (a(e) ||
|
|
382
|
+
return d || ++l != u ? d : (u = e == null ? 0 : e.length, !!u && s(u) && o(f, u) && (a(e) || i(e)));
|
|
384
383
|
}
|
|
385
384
|
t.exports = l;
|
|
386
|
-
})),
|
|
387
|
-
var
|
|
385
|
+
})), he = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
386
|
+
var r = n(), i = H();
|
|
388
387
|
function a(e, t) {
|
|
389
|
-
return e != null && i(e, t,
|
|
388
|
+
return e != null && i(e, t, r);
|
|
390
389
|
}
|
|
391
390
|
t.exports = a;
|
|
392
391
|
})))(), 1);
|
|
393
|
-
function
|
|
392
|
+
function U(e = "This should not happen") {
|
|
394
393
|
throw Error(e);
|
|
395
394
|
}
|
|
396
|
-
function
|
|
397
|
-
if (!e) return
|
|
395
|
+
function ge(e, t = "Assertion failed") {
|
|
396
|
+
if (!e) return U(t);
|
|
398
397
|
}
|
|
399
|
-
function
|
|
400
|
-
return
|
|
398
|
+
function W(e, t) {
|
|
399
|
+
return U(t ?? "Hell froze over");
|
|
401
400
|
}
|
|
402
|
-
function
|
|
401
|
+
function _e(e, t) {
|
|
403
402
|
try {
|
|
404
403
|
return e();
|
|
405
404
|
} catch {
|
|
406
405
|
return t;
|
|
407
406
|
}
|
|
408
407
|
}
|
|
409
|
-
var
|
|
410
|
-
function
|
|
408
|
+
var G = Object.prototype.hasOwnProperty;
|
|
409
|
+
function K(e, t) {
|
|
411
410
|
let n, r;
|
|
412
411
|
if (e === t) return !0;
|
|
413
412
|
if (e && t && (n = e.constructor) === t.constructor) {
|
|
414
413
|
if (n === Date) return e.getTime() === t.getTime();
|
|
415
414
|
if (n === RegExp) return e.toString() === t.toString();
|
|
416
415
|
if (n === Array) {
|
|
417
|
-
if ((r = e.length) === t.length) for (; r-- &&
|
|
416
|
+
if ((r = e.length) === t.length) for (; r-- && K(e[r], t[r]););
|
|
418
417
|
return r === -1;
|
|
419
418
|
}
|
|
420
419
|
if (!n || typeof e == "object") {
|
|
421
|
-
for (n in r = 0, e) if (
|
|
420
|
+
for (n in r = 0, e) if (G.call(e, n) && ++r && !G.call(t, n) || !(n in t) || !K(e[n], t[n])) return !1;
|
|
422
421
|
return Object.keys(t).length === r;
|
|
423
422
|
}
|
|
424
423
|
}
|
|
@@ -426,60 +425,60 @@ function B(e, t) {
|
|
|
426
425
|
}
|
|
427
426
|
//#endregion
|
|
428
427
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.4_4b66885481293829737255dc19981073/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid/data-grid-types.js
|
|
429
|
-
var
|
|
428
|
+
var q;
|
|
430
429
|
(function(e) {
|
|
431
430
|
e.Uri = "uri", e.Text = "text", e.Image = "image", e.RowID = "row-id", e.Number = "number", e.Bubble = "bubble", e.Boolean = "boolean", e.Loading = "loading", e.Markdown = "markdown", e.Drilldown = "drilldown", e.Protected = "protected", e.Custom = "custom";
|
|
432
|
-
})(
|
|
433
|
-
var
|
|
431
|
+
})(q ||= {});
|
|
432
|
+
var J;
|
|
434
433
|
(function(e) {
|
|
435
434
|
e.HeaderRowID = "headerRowID", e.HeaderCode = "headerCode", e.HeaderNumber = "headerNumber", e.HeaderString = "headerString", e.HeaderBoolean = "headerBoolean", e.HeaderAudioUri = "headerAudioUri", e.HeaderVideoUri = "headerVideoUri", e.HeaderEmoji = "headerEmoji", e.HeaderImage = "headerImage", e.HeaderUri = "headerUri", e.HeaderPhone = "headerPhone", e.HeaderMarkdown = "headerMarkdown", e.HeaderDate = "headerDate", e.HeaderTime = "headerTime", e.HeaderEmail = "headerEmail", e.HeaderReference = "headerReference", e.HeaderIfThenElse = "headerIfThenElse", e.HeaderSingleValue = "headerSingleValue", e.HeaderLookup = "headerLookup", e.HeaderTextTemplate = "headerTextTemplate", e.HeaderMath = "headerMath", e.HeaderRollup = "headerRollup", e.HeaderJoinStrings = "headerJoinStrings", e.HeaderSplitString = "headerSplitString", e.HeaderGeoDistance = "headerGeoDistance", e.HeaderArray = "headerArray", e.RowOwnerOverlay = "rowOwnerOverlay", e.ProtectedColumnOverlay = "protectedColumnOverlay";
|
|
436
|
-
})(
|
|
437
|
-
var
|
|
435
|
+
})(J ||= {});
|
|
436
|
+
var Y;
|
|
438
437
|
(function(e) {
|
|
439
438
|
e.Triangle = "triangle", e.Dots = "dots";
|
|
440
|
-
})(
|
|
441
|
-
function
|
|
439
|
+
})(Y ||= {});
|
|
440
|
+
function ve(e) {
|
|
442
441
|
return "width" in e && typeof e.width == "number";
|
|
443
442
|
}
|
|
444
|
-
async function
|
|
443
|
+
async function ye(e) {
|
|
445
444
|
return typeof e == "object" ? e : await e();
|
|
446
445
|
}
|
|
447
|
-
function
|
|
448
|
-
return e.kind !==
|
|
446
|
+
function X(e) {
|
|
447
|
+
return e.kind !== q.Loading && e.kind !== q.Bubble && e.kind !== q.RowID && e.kind !== q.Protected && e.kind !== q.Drilldown;
|
|
449
448
|
}
|
|
450
|
-
function
|
|
451
|
-
return e.kind ===
|
|
449
|
+
function be(e) {
|
|
450
|
+
return e.kind === Q.Marker || e.kind === Q.NewRow;
|
|
452
451
|
}
|
|
453
|
-
function
|
|
454
|
-
if (!
|
|
452
|
+
function Z(e) {
|
|
453
|
+
if (!X(e) || e.kind === q.Image) return !1;
|
|
455
454
|
switch (e.kind) {
|
|
456
|
-
case
|
|
457
|
-
case
|
|
458
|
-
case
|
|
459
|
-
case
|
|
460
|
-
case
|
|
461
|
-
case
|
|
462
|
-
default:
|
|
455
|
+
case q.Text:
|
|
456
|
+
case q.Number:
|
|
457
|
+
case q.Markdown:
|
|
458
|
+
case q.Uri:
|
|
459
|
+
case q.Custom:
|
|
460
|
+
case q.Boolean: return e.readonly !== !0;
|
|
461
|
+
default: W(e, "A cell was passed with an invalid kind");
|
|
463
462
|
}
|
|
464
463
|
}
|
|
465
|
-
function
|
|
466
|
-
return (0,
|
|
464
|
+
function xe(e) {
|
|
465
|
+
return (0, he.default)(e, "editor");
|
|
467
466
|
}
|
|
468
|
-
function
|
|
467
|
+
function Se(e) {
|
|
469
468
|
return !(e.readonly ?? !1);
|
|
470
469
|
}
|
|
471
|
-
var
|
|
470
|
+
var Q;
|
|
472
471
|
(function(e) {
|
|
473
472
|
e.NewRow = "new-row", e.Marker = "marker";
|
|
474
|
-
})(
|
|
475
|
-
var
|
|
473
|
+
})(Q ||= {});
|
|
474
|
+
var Ce = {
|
|
476
475
|
shape: "square",
|
|
477
476
|
size: 4,
|
|
478
477
|
offsetX: -2,
|
|
479
478
|
offsetY: -2,
|
|
480
479
|
outline: 0
|
|
481
480
|
};
|
|
482
|
-
function
|
|
481
|
+
function $(e) {
|
|
483
482
|
if (e.length === 0) return [];
|
|
484
483
|
let t = [...e], n = [];
|
|
485
484
|
t.sort(function(e, t) {
|
|
@@ -491,17 +490,17 @@ function K(e) {
|
|
|
491
490
|
}
|
|
492
491
|
return n;
|
|
493
492
|
}
|
|
494
|
-
var
|
|
493
|
+
var we, Te = class e {
|
|
495
494
|
items;
|
|
496
495
|
constructor(e) {
|
|
497
496
|
this.items = e;
|
|
498
497
|
}
|
|
499
|
-
static create = (t) => new e(
|
|
500
|
-
static empty = () =>
|
|
498
|
+
static create = (t) => new e($(t));
|
|
499
|
+
static empty = () => we ??= new e([]);
|
|
501
500
|
static fromSingleSelection = (t) => e.empty().add(t);
|
|
502
501
|
static fromArray = (t) => {
|
|
503
502
|
if (t.length === 0) return e.empty();
|
|
504
|
-
let n =
|
|
503
|
+
let n = $(t.map((e) => [e, e + 1]));
|
|
505
504
|
return new e(n);
|
|
506
505
|
};
|
|
507
506
|
offset(t) {
|
|
@@ -510,7 +509,7 @@ var Me, Ne = class e {
|
|
|
510
509
|
return new e(n);
|
|
511
510
|
}
|
|
512
511
|
add(t) {
|
|
513
|
-
let n = typeof t == "number" ? [t, t + 1] : t, r =
|
|
512
|
+
let n = typeof t == "number" ? [t, t + 1] : t, r = $([...this.items, n]);
|
|
514
513
|
return new e(r);
|
|
515
514
|
}
|
|
516
515
|
remove(t) {
|
|
@@ -567,167 +566,6 @@ var Me, Ne = class e {
|
|
|
567
566
|
*[Symbol.iterator]() {
|
|
568
567
|
for (let [e, t] of this.items) for (let n = e; n < t; n++) yield n;
|
|
569
568
|
}
|
|
570
|
-
}, q = /* @__PURE__ */ e(n(), 1), J = {}, Y = null;
|
|
571
|
-
function Pe() {
|
|
572
|
-
let e = document.createElement("div");
|
|
573
|
-
return e.style.opacity = "0", e.style.pointerEvents = "none", e.style.position = "fixed", document.body.append(e), e;
|
|
574
|
-
}
|
|
575
|
-
function X(e) {
|
|
576
|
-
let t = e.toLowerCase().trim();
|
|
577
|
-
if (J[t] !== void 0) return J[t];
|
|
578
|
-
Y ||= Pe(), Y.style.color = "#000", Y.style.color = t;
|
|
579
|
-
let n = getComputedStyle(Y).color;
|
|
580
|
-
Y.style.color = "#fff", Y.style.color = t;
|
|
581
|
-
let r = getComputedStyle(Y).color;
|
|
582
|
-
if (r !== n) return [
|
|
583
|
-
0,
|
|
584
|
-
0,
|
|
585
|
-
0,
|
|
586
|
-
1
|
|
587
|
-
];
|
|
588
|
-
let i = r.replace(/[^\d.,]/g, "").split(",").map(Number.parseFloat);
|
|
589
|
-
return i.length < 4 && i.push(1), i = i.map((e) => Number.isNaN(e) ? 0 : e), J[t] = i, i;
|
|
590
|
-
}
|
|
591
|
-
function Fe(e, t) {
|
|
592
|
-
let [n, r, i] = X(e);
|
|
593
|
-
return `rgba(${n}, ${r}, ${i}, ${t})`;
|
|
594
|
-
}
|
|
595
|
-
var Z = /* @__PURE__ */ new Map();
|
|
596
|
-
function Ie(e, t) {
|
|
597
|
-
let n = `${e}-${t}`, r = Z.get(n);
|
|
598
|
-
if (r !== void 0) return r;
|
|
599
|
-
let i = Q(e, t);
|
|
600
|
-
return Z.set(n, i), i;
|
|
601
|
-
}
|
|
602
|
-
function Q(e, t) {
|
|
603
|
-
if (t === void 0) return e;
|
|
604
|
-
let [n, r, i, a] = X(e);
|
|
605
|
-
if (a === 1) return e;
|
|
606
|
-
let [o, s, c, l] = X(t), u = a + l * (1 - a);
|
|
607
|
-
return `rgba(${(a * n + l * o * (1 - a)) / u}, ${(a * r + l * s * (1 - a)) / u}, ${(a * i + l * c * (1 - a)) / u}, ${u})`;
|
|
608
|
-
}
|
|
609
|
-
//#endregion
|
|
610
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.4_4b66885481293829737255dc19981073/node_modules/@glideapps/glide-data-grid/dist/esm/common/styles.js
|
|
611
|
-
function Le(e) {
|
|
612
|
-
return {
|
|
613
|
-
"--gdg-accent-color": e.accentColor,
|
|
614
|
-
"--gdg-accent-fg": e.accentFg,
|
|
615
|
-
"--gdg-accent-light": e.accentLight,
|
|
616
|
-
"--gdg-text-dark": e.textDark,
|
|
617
|
-
"--gdg-text-medium": e.textMedium,
|
|
618
|
-
"--gdg-text-light": e.textLight,
|
|
619
|
-
"--gdg-text-bubble": e.textBubble,
|
|
620
|
-
"--gdg-bg-icon-header": e.bgIconHeader,
|
|
621
|
-
"--gdg-fg-icon-header": e.fgIconHeader,
|
|
622
|
-
"--gdg-text-header": e.textHeader,
|
|
623
|
-
"--gdg-text-group-header": e.textGroupHeader ?? e.textHeader,
|
|
624
|
-
"--gdg-bg-group-header": e.bgGroupHeader ?? e.bgHeader,
|
|
625
|
-
"--gdg-bg-group-header-hovered": e.bgGroupHeaderHovered ?? e.bgHeaderHovered,
|
|
626
|
-
"--gdg-text-header-selected": e.textHeaderSelected,
|
|
627
|
-
"--gdg-bg-cell": e.bgCell,
|
|
628
|
-
"--gdg-bg-cell-medium": e.bgCellMedium,
|
|
629
|
-
"--gdg-bg-header": e.bgHeader,
|
|
630
|
-
"--gdg-bg-header-has-focus": e.bgHeaderHasFocus,
|
|
631
|
-
"--gdg-bg-header-hovered": e.bgHeaderHovered,
|
|
632
|
-
"--gdg-bg-bubble": e.bgBubble,
|
|
633
|
-
"--gdg-bg-bubble-selected": e.bgBubbleSelected,
|
|
634
|
-
"--gdg-bubble-height": `${e.bubbleHeight}px`,
|
|
635
|
-
"--gdg-bubble-padding": `${e.bubblePadding}px`,
|
|
636
|
-
"--gdg-bubble-margin": `${e.bubbleMargin}px`,
|
|
637
|
-
"--gdg-bg-search-result": e.bgSearchResult,
|
|
638
|
-
"--gdg-border-color": e.borderColor,
|
|
639
|
-
"--gdg-horizontal-border-color": e.horizontalBorderColor ?? e.borderColor,
|
|
640
|
-
"--gdg-drilldown-border": e.drilldownBorder,
|
|
641
|
-
"--gdg-link-color": e.linkColor,
|
|
642
|
-
"--gdg-cell-horizontal-padding": `${e.cellHorizontalPadding}px`,
|
|
643
|
-
"--gdg-cell-vertical-padding": `${e.cellVerticalPadding}px`,
|
|
644
|
-
"--gdg-header-font-style": e.headerFontStyle,
|
|
645
|
-
"--gdg-base-font-style": e.baseFontStyle,
|
|
646
|
-
"--gdg-marker-font-style": e.markerFontStyle,
|
|
647
|
-
"--gdg-font-family": e.fontFamily,
|
|
648
|
-
"--gdg-editor-font-size": e.editorFontSize,
|
|
649
|
-
"--gdg-checkbox-max-size": `${e.checkboxMaxSize}px`,
|
|
650
|
-
...e.resizeIndicatorColor === void 0 ? {} : { "--gdg-resize-indicator-color": e.resizeIndicatorColor },
|
|
651
|
-
...e.headerBottomBorderColor === void 0 ? {} : { "--gdg-header-bottom-border-color": e.headerBottomBorderColor },
|
|
652
|
-
...e.roundingRadius === void 0 ? {} : { "--gdg-rounding-radius": `${e.roundingRadius}px` }
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
var $ = {
|
|
656
|
-
accentColor: "#4F5DFF",
|
|
657
|
-
accentFg: "#FFFFFF",
|
|
658
|
-
accentLight: "rgba(62, 116, 253, 0.1)",
|
|
659
|
-
textDark: "#313139",
|
|
660
|
-
textMedium: "#737383",
|
|
661
|
-
textLight: "#B2B2C0",
|
|
662
|
-
textBubble: "#313139",
|
|
663
|
-
bgIconHeader: "#737383",
|
|
664
|
-
fgIconHeader: "#FFFFFF",
|
|
665
|
-
textHeader: "#313139",
|
|
666
|
-
textGroupHeader: "#313139BB",
|
|
667
|
-
textHeaderSelected: "#FFFFFF",
|
|
668
|
-
bgCell: "#FFFFFF",
|
|
669
|
-
bgCellMedium: "#FAFAFB",
|
|
670
|
-
bgHeader: "#F7F7F8",
|
|
671
|
-
bgHeaderHasFocus: "#E9E9EB",
|
|
672
|
-
bgHeaderHovered: "#EFEFF1",
|
|
673
|
-
bgBubble: "#EDEDF3",
|
|
674
|
-
bgBubbleSelected: "#FFFFFF",
|
|
675
|
-
bubbleHeight: 20,
|
|
676
|
-
bubblePadding: 6,
|
|
677
|
-
bubbleMargin: 4,
|
|
678
|
-
bgSearchResult: "#fff9e3",
|
|
679
|
-
borderColor: "rgba(115, 116, 131, 0.16)",
|
|
680
|
-
drilldownBorder: "rgba(0, 0, 0, 0)",
|
|
681
|
-
linkColor: "#353fb5",
|
|
682
|
-
cellHorizontalPadding: 8,
|
|
683
|
-
cellVerticalPadding: 3,
|
|
684
|
-
headerIconSize: 18,
|
|
685
|
-
headerFontStyle: "600 13px",
|
|
686
|
-
baseFontStyle: "13px",
|
|
687
|
-
markerFontStyle: "9px",
|
|
688
|
-
fontFamily: "Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",
|
|
689
|
-
editorFontSize: "13px",
|
|
690
|
-
lineHeight: 1.4,
|
|
691
|
-
checkboxMaxSize: 18
|
|
692
|
-
};
|
|
693
|
-
function Re() {
|
|
694
|
-
return $;
|
|
695
|
-
}
|
|
696
|
-
var ze = q.createContext($);
|
|
697
|
-
function Be(e, ...t) {
|
|
698
|
-
let n = { ...e };
|
|
699
|
-
for (let e of t) if (e !== void 0) for (let t in e) e.hasOwnProperty(t) && (n[t] = t === "bgCell" ? Q(e[t], n[t]) : e[t]);
|
|
700
|
-
return (n.headerFontFull === void 0 || e.fontFamily !== n.fontFamily || e.headerFontStyle !== n.headerFontStyle) && (n.headerFontFull = `${n.headerFontStyle} ${n.fontFamily}`), (n.baseFontFull === void 0 || e.fontFamily !== n.fontFamily || e.baseFontStyle !== n.baseFontStyle) && (n.baseFontFull = `${n.baseFontStyle} ${n.fontFamily}`), (n.markerFontFull === void 0 || e.fontFamily !== n.fontFamily || e.markerFontStyle !== n.markerFontStyle) && (n.markerFontFull = `${n.markerFontStyle} ${n.fontFamily}`), n;
|
|
701
|
-
}
|
|
702
|
-
//#endregion
|
|
703
|
-
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.4_4b66885481293829737255dc19981073/node_modules/@glideapps/glide-data-grid/dist/esm/internal/click-outside-container/click-outside-container.js
|
|
704
|
-
var Ve = class extends q.PureComponent {
|
|
705
|
-
wrapperRef = q.createRef();
|
|
706
|
-
componentDidMount() {
|
|
707
|
-
let e = this.props.customEventTarget ?? document;
|
|
708
|
-
e.addEventListener("pointerdown", this.clickOutside, !0), e.addEventListener("contextmenu", this.clickOutside, !0);
|
|
709
|
-
}
|
|
710
|
-
componentWillUnmount() {
|
|
711
|
-
let e = this.props.customEventTarget ?? document;
|
|
712
|
-
e.removeEventListener("pointerdown", this.clickOutside, !0), e.removeEventListener("contextmenu", this.clickOutside, !0);
|
|
713
|
-
}
|
|
714
|
-
clickOutside = (e) => {
|
|
715
|
-
if (!(this.props.isOutsideClick && !this.props.isOutsideClick(e)) && this.wrapperRef.current !== null && !this.wrapperRef.current.contains(e.target)) {
|
|
716
|
-
let t = e.target;
|
|
717
|
-
for (; t !== null;) {
|
|
718
|
-
if (t.classList.contains("click-outside-ignore")) return;
|
|
719
|
-
t = t.parentElement;
|
|
720
|
-
}
|
|
721
|
-
this.props.onClickOutside();
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
|
-
render() {
|
|
725
|
-
let { onClickOutside: e, isOutsideClick: t, customEventTarget: n, ...r } = this.props;
|
|
726
|
-
return q.createElement("div", {
|
|
727
|
-
...r,
|
|
728
|
-
ref: this.wrapperRef
|
|
729
|
-
}, this.props.children);
|
|
730
|
-
}
|
|
731
569
|
};
|
|
732
570
|
//#endregion
|
|
733
|
-
export {
|
|
571
|
+
export { m as A, I as C, x as D, T as E, l as F, o as I, a as L, f as M, d as N, v as O, u as P, i as R, R as S, E as T, _e as _, Y as a, B as b, X as c, Z as d, ve as f, K as g, W as h, J as i, p as j, _ as k, be as l, ge as m, Ce as n, Q as o, ye as p, q as r, Se as s, Te as t, xe as u, H as v, k as w, z as x, V as y, r as z };
|