@spectric/ui 0.0.19 → 0.0.21
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/Banner.d.ts +1 -1
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/query_bar/QueryBar.d.ts +1 -1
- package/dist/components/table/cell.d.ts +1 -1
- package/dist/components/table/header.d.ts +2 -1
- package/dist/components/table/table.d.ts +10 -7
- package/dist/custom-elements.json +4 -4
- package/dist/index.es.js +876 -741
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +213 -138
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Banner.ts +46 -31
- package/src/components/dialog/dialog.ts +163 -135
- package/src/components/query_bar/QueryBar.ts +7 -2
- package/src/components/table/__tests__/table.spec.ts +143 -55
- package/src/components/table/cell.ts +185 -146
- package/src/components/table/header.ts +162 -152
- package/src/components/table/table.ts +362 -265
- package/src/components/table/virtualBody.ts +165 -115
- package/src/stories/table.stories.ts +10 -5
package/dist/index.es.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const Ht = globalThis,
|
|
6
|
+
const Ht = globalThis, Dr = Ht.ShadowRoot && (Ht.ShadyCSS === void 0 || Ht.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, zr = Symbol(), ts = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let ws = class {
|
|
8
8
|
constructor(t, o, s) {
|
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
|
9
|
+
if (this._$cssResult$ = !0, s !== zr) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = o;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const o = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (Dr && t === void 0) {
|
|
16
16
|
const s = o !== void 0 && o.length === 1;
|
|
17
|
-
s && (t =
|
|
17
|
+
s && (t = ts.get(o)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ts.set(o, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,20 +22,20 @@ let ws = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const Rn = (e) => new ws(typeof e == "string" ? e : e + "", void 0,
|
|
25
|
+
const Rn = (e) => new ws(typeof e == "string" ? e : e + "", void 0, zr), X = (e, ...t) => {
|
|
26
26
|
const o = e.length === 1 ? e[0] : t.reduce((s, n, r) => s + ((c) => {
|
|
27
27
|
if (c._$cssResult$ === !0) return c.cssText;
|
|
28
28
|
if (typeof c == "number") return c;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + c + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(n) + e[r + 1], e[0]);
|
|
31
|
-
return new ws(o, e,
|
|
31
|
+
return new ws(o, e, zr);
|
|
32
32
|
}, Bn = (e, t) => {
|
|
33
|
-
if (
|
|
33
|
+
if (Dr) e.adoptedStyleSheets = t.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
|
|
34
34
|
else for (const o of t) {
|
|
35
35
|
const s = document.createElement("style"), n = Ht.litNonce;
|
|
36
36
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = o.cssText, e.appendChild(s);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, rs = Dr ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let o = "";
|
|
40
40
|
for (const s of t.cssRules) o += s.cssText;
|
|
41
41
|
return Rn(o);
|
|
@@ -45,7 +45,7 @@ const Rn = (e) => new ws(typeof e == "string" ? e : e + "", void 0, Lr), X = (e,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Un, defineProperty: Fn, getOwnPropertyDescriptor: Hn, getOwnPropertyNames: In, getOwnPropertySymbols: qn, getPrototypeOf: Qn } = Object, me = globalThis,
|
|
48
|
+
const { is: Un, defineProperty: Fn, getOwnPropertyDescriptor: Hn, getOwnPropertyNames: In, getOwnPropertySymbols: qn, getPrototypeOf: Qn } = Object, me = globalThis, is = me.trustedTypes, Wn = is ? is.emptyScript : "", mr = me.reactiveElementPolyfillSupport, dt = (e, t) => e, It = { toAttribute(e, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
e = e ? Wn : null;
|
|
@@ -73,16 +73,16 @@ const { is: Un, defineProperty: Fn, getOwnPropertyDescriptor: Hn, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return o;
|
|
76
|
-
} },
|
|
76
|
+
} }, Nr = (e, t) => !Un(e, t), ss = { attribute: !0, type: String, converter: It, reflect: !1, hasChanged: Nr };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), me.litPropertyMetadata ?? (me.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
-
class
|
|
78
|
+
class Ke extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
81
|
}
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(t, o =
|
|
85
|
+
static createProperty(t, o = ss) {
|
|
86
86
|
if (o.state && (o.attribute = !1), this._$Ei(), this.elementProperties.set(t, o), !o.noAccessor) {
|
|
87
87
|
const s = Symbol(), n = this.getPropertyDescriptor(t, s, o);
|
|
88
88
|
n !== void 0 && Fn(this.prototype, t, n);
|
|
@@ -102,16 +102,16 @@ class Ye extends HTMLElement {
|
|
|
102
102
|
}, configurable: !0, enumerable: !0 };
|
|
103
103
|
}
|
|
104
104
|
static getPropertyOptions(t) {
|
|
105
|
-
return this.elementProperties.get(t) ??
|
|
105
|
+
return this.elementProperties.get(t) ?? ss;
|
|
106
106
|
}
|
|
107
107
|
static _$Ei() {
|
|
108
|
-
if (this.hasOwnProperty(
|
|
108
|
+
if (this.hasOwnProperty(dt("elementProperties"))) return;
|
|
109
109
|
const t = Qn(this);
|
|
110
110
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
111
111
|
}
|
|
112
112
|
static finalize() {
|
|
113
|
-
if (this.hasOwnProperty(
|
|
114
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
+
if (this.hasOwnProperty(dt("finalized"))) return;
|
|
114
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(dt("properties"))) {
|
|
115
115
|
const o = this.properties, s = [...In(o), ...qn(o)];
|
|
116
116
|
for (const n of s) this.createProperty(n, o[n]);
|
|
117
117
|
}
|
|
@@ -131,8 +131,8 @@ class Ye extends HTMLElement {
|
|
|
131
131
|
const o = [];
|
|
132
132
|
if (Array.isArray(t)) {
|
|
133
133
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
134
|
-
for (const n of s) o.unshift(
|
|
135
|
-
} else t !== void 0 && o.push(
|
|
134
|
+
for (const n of s) o.unshift(rs(n));
|
|
135
|
+
} else t !== void 0 && o.push(rs(t));
|
|
136
136
|
return o;
|
|
137
137
|
}
|
|
138
138
|
static _$Eu(t, o) {
|
|
@@ -200,7 +200,7 @@ class Ye extends HTMLElement {
|
|
|
200
200
|
}
|
|
201
201
|
requestUpdate(t, o, s) {
|
|
202
202
|
if (t !== void 0) {
|
|
203
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
203
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? Nr)(this[t], o)) return;
|
|
204
204
|
this.P(t, o, s);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -273,56 +273,56 @@ class Ye extends HTMLElement {
|
|
|
273
273
|
firstUpdated(t) {
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
Ke.elementStyles = [], Ke.shadowRootOptions = { mode: "open" }, Ke[dt("elementProperties")] = /* @__PURE__ */ new Map(), Ke[dt("finalized")] = /* @__PURE__ */ new Map(), mr == null || mr({ ReactiveElement: Ke }), (me.reactiveElementVersions ?? (me.reactiveElementVersions = [])).push("2.0.4");
|
|
277
277
|
/**
|
|
278
278
|
* @license
|
|
279
279
|
* Copyright 2017 Google LLC
|
|
280
280
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
281
281
|
*/
|
|
282
|
-
const
|
|
283
|
-
\f\r]`,
|
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
282
|
+
const ft = globalThis, qt = ft.trustedTypes, os = qt ? qt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Mr = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, jr = "?" + he, Yn = `<${jr}>`, Le = document, mt = () => Le.createComment(""), $t = (e) => e === null || typeof e != "object" && typeof e != "function", Rr = Array.isArray, _s = (e) => Rr(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", $r = `[
|
|
283
|
+
\f\r]`, ht = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ns = /-->/g, as = />/g, Ee = RegExp(`>|${$r}(?:([^\\s"'>=/]+)(${$r}*=${$r}*(?:[^
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ls = /'/g, cs = /"/g, xs = /^(?:script|style|textarea|title)$/i, Zn = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), $ = Zn(1), $e = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), ps = /* @__PURE__ */ new WeakMap(), Te = Le.createTreeWalker(Le, 129);
|
|
285
285
|
function Ss(e, t) {
|
|
286
|
-
if (!
|
|
287
|
-
return
|
|
286
|
+
if (!Rr(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
|
+
return os !== void 0 ? os.createHTML(t) : t;
|
|
288
288
|
}
|
|
289
289
|
const As = (e, t) => {
|
|
290
290
|
const o = e.length - 1, s = [];
|
|
291
|
-
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", c =
|
|
291
|
+
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", c = ht;
|
|
292
292
|
for (let h = 0; h < o; h++) {
|
|
293
293
|
const d = e[h];
|
|
294
294
|
let m, A, y = -1, C = 0;
|
|
295
|
-
for (; C < d.length && (c.lastIndex = C, A = c.exec(d), A !== null); ) C = c.lastIndex, c ===
|
|
296
|
-
const S = c ===
|
|
297
|
-
r += c ===
|
|
295
|
+
for (; C < d.length && (c.lastIndex = C, A = c.exec(d), A !== null); ) C = c.lastIndex, c === ht ? A[1] === "!--" ? c = ns : A[1] !== void 0 ? c = as : A[2] !== void 0 ? (xs.test(A[2]) && (n = RegExp("</" + A[2], "g")), c = Ee) : A[3] !== void 0 && (c = Ee) : c === Ee ? A[0] === ">" ? (c = n ?? ht, y = -1) : A[1] === void 0 ? y = -2 : (y = c.lastIndex - A[2].length, m = A[1], c = A[3] === void 0 ? Ee : A[3] === '"' ? cs : ls) : c === cs || c === ls ? c = Ee : c === ns || c === as ? c = ht : (c = Ee, n = void 0);
|
|
296
|
+
const S = c === Ee && e[h + 1].startsWith("/>") ? " " : "";
|
|
297
|
+
r += c === ht ? d + Yn : y >= 0 ? (s.push(m), d.slice(0, y) + Mr + d.slice(y) + he + S) : d + he + (y === -2 ? h : S);
|
|
298
298
|
}
|
|
299
299
|
return [Ss(e, r + (e[o] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
300
300
|
};
|
|
301
|
-
class
|
|
301
|
+
class wt {
|
|
302
302
|
constructor({ strings: t, _$litType$: o }, s) {
|
|
303
303
|
let n;
|
|
304
304
|
this.parts = [];
|
|
305
305
|
let r = 0, c = 0;
|
|
306
306
|
const h = t.length - 1, d = this.parts, [m, A] = As(t, o);
|
|
307
|
-
if (this.el =
|
|
307
|
+
if (this.el = wt.createElement(m, s), Te.currentNode = this.el.content, o === 2 || o === 3) {
|
|
308
308
|
const y = this.el.content.firstChild;
|
|
309
309
|
y.replaceWith(...y.childNodes);
|
|
310
310
|
}
|
|
311
|
-
for (; (n =
|
|
311
|
+
for (; (n = Te.nextNode()) !== null && d.length < h; ) {
|
|
312
312
|
if (n.nodeType === 1) {
|
|
313
|
-
if (n.hasAttributes()) for (const y of n.getAttributeNames()) if (y.endsWith(
|
|
313
|
+
if (n.hasAttributes()) for (const y of n.getAttributeNames()) if (y.endsWith(Mr)) {
|
|
314
314
|
const C = A[c++], S = n.getAttribute(y).split(he), k = /([.?@])?(.*)/.exec(C);
|
|
315
|
-
d.push({ type: 1, index: r, name: k[2], strings: S, ctor: k[1] === "." ? ks : k[1] === "?" ? Es : k[1] === "@" ? Os :
|
|
315
|
+
d.push({ type: 1, index: r, name: k[2], strings: S, ctor: k[1] === "." ? ks : k[1] === "?" ? Es : k[1] === "@" ? Os : St }), n.removeAttribute(y);
|
|
316
316
|
} else y.startsWith(he) && (d.push({ type: 6, index: r }), n.removeAttribute(y));
|
|
317
317
|
if (xs.test(n.tagName)) {
|
|
318
318
|
const y = n.textContent.split(he), C = y.length - 1;
|
|
319
319
|
if (C > 0) {
|
|
320
320
|
n.textContent = qt ? qt.emptyScript : "";
|
|
321
|
-
for (let S = 0; S < C; S++) n.append(y[S],
|
|
322
|
-
n.append(y[C],
|
|
321
|
+
for (let S = 0; S < C; S++) n.append(y[S], mt()), Te.nextNode(), d.push({ type: 2, index: ++r });
|
|
322
|
+
n.append(y[C], mt());
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
325
|
+
} else if (n.nodeType === 8) if (n.data === jr) d.push({ type: 2, index: r });
|
|
326
326
|
else {
|
|
327
327
|
let y = -1;
|
|
328
328
|
for (; (y = n.data.indexOf(he, y + 1)) !== -1; ) d.push({ type: 7, index: r }), y += he.length - 1;
|
|
@@ -331,16 +331,16 @@ class $t {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
static createElement(t, o) {
|
|
334
|
-
const s =
|
|
334
|
+
const s = Le.createElement("template");
|
|
335
335
|
return s.innerHTML = t, s;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function De(e, t, o = e, s) {
|
|
339
339
|
var c, h;
|
|
340
340
|
if (t === $e) return t;
|
|
341
341
|
let n = s !== void 0 ? (c = o._$Co) == null ? void 0 : c[s] : o._$Cl;
|
|
342
|
-
const r =
|
|
343
|
-
return (n == null ? void 0 : n.constructor) !== r && ((h = n == null ? void 0 : n._$AO) == null || h.call(n, !1), r === void 0 ? n = void 0 : (n = new r(e), n._$AT(e, o, s)), s !== void 0 ? (o._$Co ?? (o._$Co = []))[s] = n : o._$Cl = n), n !== void 0 && (t =
|
|
342
|
+
const r = $t(t) ? void 0 : t._$litDirective$;
|
|
343
|
+
return (n == null ? void 0 : n.constructor) !== r && ((h = n == null ? void 0 : n._$AO) == null || h.call(n, !1), r === void 0 ? n = void 0 : (n = new r(e), n._$AT(e, o, s)), s !== void 0 ? (o._$Co ?? (o._$Co = []))[s] = n : o._$Cl = n), n !== void 0 && (t = De(e, n._$AS(e, t.values), n, s)), t;
|
|
344
344
|
}
|
|
345
345
|
let Cs = class {
|
|
346
346
|
constructor(t, o) {
|
|
@@ -353,24 +353,24 @@ let Cs = class {
|
|
|
353
353
|
return this._$AM._$AU;
|
|
354
354
|
}
|
|
355
355
|
u(t) {
|
|
356
|
-
const { el: { content: o }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ??
|
|
357
|
-
|
|
358
|
-
let r =
|
|
356
|
+
const { el: { content: o }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? Le).importNode(o, !0);
|
|
357
|
+
Te.currentNode = n;
|
|
358
|
+
let r = Te.nextNode(), c = 0, h = 0, d = s[0];
|
|
359
359
|
for (; d !== void 0; ) {
|
|
360
360
|
if (c === d.index) {
|
|
361
361
|
let m;
|
|
362
|
-
d.type === 2 ? m = new
|
|
362
|
+
d.type === 2 ? m = new rt(r, r.nextSibling, this, t) : d.type === 1 ? m = new d.ctor(r, d.name, d.strings, this, t) : d.type === 6 && (m = new Ps(r, this, t)), this._$AV.push(m), d = s[++h];
|
|
363
363
|
}
|
|
364
|
-
c !== (d == null ? void 0 : d.index) && (r =
|
|
364
|
+
c !== (d == null ? void 0 : d.index) && (r = Te.nextNode(), c++);
|
|
365
365
|
}
|
|
366
|
-
return
|
|
366
|
+
return Te.currentNode = Le, n;
|
|
367
367
|
}
|
|
368
368
|
p(t) {
|
|
369
369
|
let o = 0;
|
|
370
370
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, o), o += s.strings.length - 2) : s._$AI(t[o])), o++;
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
|
-
class
|
|
373
|
+
class rt {
|
|
374
374
|
get _$AU() {
|
|
375
375
|
var t;
|
|
376
376
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -390,7 +390,7 @@ class tt {
|
|
|
390
390
|
return this._$AB;
|
|
391
391
|
}
|
|
392
392
|
_$AI(t, o = this) {
|
|
393
|
-
t =
|
|
393
|
+
t = De(this, t, o), $t(t) ? t === E || t == null || t === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== $e && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : _s(t) ? this.k(t) : this._(t);
|
|
394
394
|
}
|
|
395
395
|
O(t) {
|
|
396
396
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -399,11 +399,11 @@ class tt {
|
|
|
399
399
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
400
400
|
}
|
|
401
401
|
_(t) {
|
|
402
|
-
this._$AH !== E &&
|
|
402
|
+
this._$AH !== E && $t(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Le.createTextNode(t)), this._$AH = t;
|
|
403
403
|
}
|
|
404
404
|
$(t) {
|
|
405
405
|
var r;
|
|
406
|
-
const { values: o, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
|
406
|
+
const { values: o, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = wt.createElement(Ss(s.h, s.h[0]), this.options)), s);
|
|
407
407
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === n) this._$AH.p(o);
|
|
408
408
|
else {
|
|
409
409
|
const c = new Cs(n, this), h = c.u(this.options);
|
|
@@ -411,14 +411,14 @@ class tt {
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
_$AC(t) {
|
|
414
|
-
let o =
|
|
415
|
-
return o === void 0 &&
|
|
414
|
+
let o = ps.get(t.strings);
|
|
415
|
+
return o === void 0 && ps.set(t.strings, o = new wt(t)), o;
|
|
416
416
|
}
|
|
417
417
|
k(t) {
|
|
418
|
-
|
|
418
|
+
Rr(this._$AH) || (this._$AH = [], this._$AR());
|
|
419
419
|
const o = this._$AH;
|
|
420
420
|
let s, n = 0;
|
|
421
|
-
for (const r of t) n === o.length ? o.push(s = new
|
|
421
|
+
for (const r of t) n === o.length ? o.push(s = new rt(this.O(mt()), this.O(mt()), this, this.options)) : s = o[n], s._$AI(r), n++;
|
|
422
422
|
n < o.length && (this._$AR(s && s._$AB.nextSibling, n), o.length = n);
|
|
423
423
|
}
|
|
424
424
|
_$AR(t = this._$AA.nextSibling, o) {
|
|
@@ -433,7 +433,7 @@ class tt {
|
|
|
433
433
|
this._$AM === void 0 && (this._$Cv = t, (o = this._$AP) == null || o.call(this, t));
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
class
|
|
436
|
+
class St {
|
|
437
437
|
get tagName() {
|
|
438
438
|
return this.element.tagName;
|
|
439
439
|
}
|
|
@@ -446,11 +446,11 @@ class _t {
|
|
|
446
446
|
_$AI(t, o = this, s, n) {
|
|
447
447
|
const r = this.strings;
|
|
448
448
|
let c = !1;
|
|
449
|
-
if (r === void 0) t =
|
|
449
|
+
if (r === void 0) t = De(this, t, o, 0), c = !$t(t) || t !== this._$AH && t !== $e, c && (this._$AH = t);
|
|
450
450
|
else {
|
|
451
451
|
const h = t;
|
|
452
452
|
let d, m;
|
|
453
|
-
for (t = r[0], d = 0; d < r.length - 1; d++) m =
|
|
453
|
+
for (t = r[0], d = 0; d < r.length - 1; d++) m = De(this, h[s + d], o, d), m === $e && (m = this._$AH[d]), c || (c = !$t(m) || m !== this._$AH[d]), m === E ? t = E : t !== E && (t += (m ?? "") + r[d + 1]), this._$AH[d] = m;
|
|
454
454
|
}
|
|
455
455
|
c && !n && this.j(t);
|
|
456
456
|
}
|
|
@@ -458,7 +458,7 @@ class _t {
|
|
|
458
458
|
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
class ks extends
|
|
461
|
+
class ks extends St {
|
|
462
462
|
constructor() {
|
|
463
463
|
super(...arguments), this.type = 3;
|
|
464
464
|
}
|
|
@@ -466,7 +466,7 @@ class ks extends _t {
|
|
|
466
466
|
this.element[this.name] = t === E ? void 0 : t;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
class Es extends
|
|
469
|
+
class Es extends St {
|
|
470
470
|
constructor() {
|
|
471
471
|
super(...arguments), this.type = 4;
|
|
472
472
|
}
|
|
@@ -474,12 +474,12 @@ class Es extends _t {
|
|
|
474
474
|
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
class Os extends
|
|
477
|
+
class Os extends St {
|
|
478
478
|
constructor(t, o, s, n, r) {
|
|
479
479
|
super(t, o, s, n, r), this.type = 5;
|
|
480
480
|
}
|
|
481
481
|
_$AI(t, o = this) {
|
|
482
|
-
if ((t =
|
|
482
|
+
if ((t = De(this, t, o, 0) ?? E) === $e) return;
|
|
483
483
|
const s = this._$AH, n = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== E && (s === E || n);
|
|
484
484
|
n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
485
485
|
}
|
|
@@ -496,17 +496,17 @@ class Ps {
|
|
|
496
496
|
return this._$AM._$AU;
|
|
497
497
|
}
|
|
498
498
|
_$AI(t) {
|
|
499
|
-
|
|
499
|
+
De(this, t);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const Kn = { M:
|
|
503
|
-
|
|
504
|
-
const
|
|
502
|
+
const Kn = { M: Mr, P: he, A: jr, C: 1, L: As, R: Cs, D: _s, V: De, I: rt, H: St, N: Es, U: Os, B: ks, F: Ps }, wr = ft.litHtmlPolyfillSupport;
|
|
503
|
+
wr == null || wr(wt, rt), (ft.litHtmlVersions ?? (ft.litHtmlVersions = [])).push("3.2.1");
|
|
504
|
+
const Xt = (e, t, o) => {
|
|
505
505
|
const s = (o == null ? void 0 : o.renderBefore) ?? t;
|
|
506
506
|
let n = s._$litPart$;
|
|
507
507
|
if (n === void 0) {
|
|
508
508
|
const r = (o == null ? void 0 : o.renderBefore) ?? null;
|
|
509
|
-
s._$litPart$ = n = new
|
|
509
|
+
s._$litPart$ = n = new rt(t.insertBefore(mt(), r), r, void 0, o ?? {});
|
|
510
510
|
}
|
|
511
511
|
return n._$AI(e), n;
|
|
512
512
|
};
|
|
@@ -515,7 +515,7 @@ const xt = (e, t, o) => {
|
|
|
515
515
|
* Copyright 2017 Google LLC
|
|
516
516
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
517
517
|
*/
|
|
518
|
-
let z = class extends
|
|
518
|
+
let z = class extends Ke {
|
|
519
519
|
constructor() {
|
|
520
520
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
521
521
|
}
|
|
@@ -526,7 +526,7 @@ let z = class extends Ye {
|
|
|
526
526
|
}
|
|
527
527
|
update(t) {
|
|
528
528
|
const o = this.render();
|
|
529
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Xt(o, this.renderRoot, this.renderOptions);
|
|
530
530
|
}
|
|
531
531
|
connectedCallback() {
|
|
532
532
|
var t;
|
|
@@ -542,15 +542,15 @@ let z = class extends Ye {
|
|
|
542
542
|
};
|
|
543
543
|
var $s;
|
|
544
544
|
z._$litElement$ = !0, z.finalized = !0, ($s = globalThis.litElementHydrateSupport) == null || $s.call(globalThis, { LitElement: z });
|
|
545
|
-
const
|
|
546
|
-
|
|
545
|
+
const _r = globalThis.litElementPolyfillSupport;
|
|
546
|
+
_r == null || _r({ LitElement: z });
|
|
547
547
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
548
548
|
/**
|
|
549
549
|
* @license
|
|
550
550
|
* Copyright 2017 Google LLC
|
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
552
552
|
*/
|
|
553
|
-
const
|
|
553
|
+
const Br = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, At = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
554
554
|
let Vt = class {
|
|
555
555
|
constructor(t) {
|
|
556
556
|
}
|
|
@@ -572,10 +572,10 @@ let Vt = class {
|
|
|
572
572
|
* Copyright 2018 Google LLC
|
|
573
573
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
574
574
|
*/
|
|
575
|
-
const Ts = "important", Xn = " !" + Ts,
|
|
575
|
+
const Ts = "important", Xn = " !" + Ts, Ur = At(class extends Vt {
|
|
576
576
|
constructor(e) {
|
|
577
577
|
var t;
|
|
578
|
-
if (super(e), e.type !==
|
|
578
|
+
if (super(e), e.type !== Br.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
579
579
|
}
|
|
580
580
|
render(e) {
|
|
581
581
|
return Object.keys(e).reduce((t, o) => {
|
|
@@ -867,7 +867,7 @@ const P = (e) => (t, o) => {
|
|
|
867
867
|
* Copyright 2017 Google LLC
|
|
868
868
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
869
869
|
*/
|
|
870
|
-
const Gn = { attribute: !0, type: String, converter: It, reflect: !1, hasChanged:
|
|
870
|
+
const Gn = { attribute: !0, type: String, converter: It, reflect: !1, hasChanged: Nr }, Jn = (e = Gn, t, o) => {
|
|
871
871
|
const { kind: s, metadata: n } = o;
|
|
872
872
|
let r = globalThis.litPropertyMetadata.get(n);
|
|
873
873
|
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(o.name, e), s === "accessor") {
|
|
@@ -907,7 +907,7 @@ function V(e) {
|
|
|
907
907
|
* Copyright 2017 Google LLC
|
|
908
908
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
909
909
|
*/
|
|
910
|
-
function
|
|
910
|
+
function Re(e) {
|
|
911
911
|
return (t, o) => {
|
|
912
912
|
const s = typeof t == "function" ? t : t[o];
|
|
913
913
|
Object.assign(s, e);
|
|
@@ -924,7 +924,7 @@ const Ls = (e, t, o) => (o.configurable = !0, o.enumerable = !0, Reflect.decorat
|
|
|
924
924
|
* Copyright 2017 Google LLC
|
|
925
925
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
926
926
|
*/
|
|
927
|
-
function
|
|
927
|
+
function Se(e, t) {
|
|
928
928
|
return (o, s, n) => {
|
|
929
929
|
const r = (c) => {
|
|
930
930
|
var h;
|
|
@@ -940,22 +940,22 @@ function xe(e, t) {
|
|
|
940
940
|
* Copyright 2017 Google LLC
|
|
941
941
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
942
942
|
*/
|
|
943
|
-
function
|
|
943
|
+
function Ct(e) {
|
|
944
944
|
return (t, o) => Ls(t, o, { async get() {
|
|
945
945
|
var s;
|
|
946
946
|
return await this.updateComplete, ((s = this.renderRoot) == null ? void 0 : s.querySelector(e)) ?? null;
|
|
947
947
|
} });
|
|
948
948
|
}
|
|
949
|
-
let
|
|
950
|
-
const ea = () =>
|
|
951
|
-
class
|
|
949
|
+
let Cr = 0;
|
|
950
|
+
const ea = () => Cr;
|
|
951
|
+
class us {
|
|
952
952
|
constructor(t, o, s, n) {
|
|
953
953
|
this._handler = s, this._type = o, this._handler = s, this._options = n || !1, t instanceof Promise ? t.then((r) => {
|
|
954
954
|
this._handler && (this._node = r, this._node.addEventListener(this._type, this._handler, this._options));
|
|
955
|
-
}) : typeof t == "function" ? (this._node = t(), this._node.addEventListener(this._type, this._handler, this._options)) : (this._node = t, this._node.addEventListener(this._type, this._handler, this._options)),
|
|
955
|
+
}) : typeof t == "function" ? (this._node = t(), this._node.addEventListener(this._type, this._handler, this._options)) : (this._node = t, this._node.addEventListener(this._type, this._handler, this._options)), Cr += 1;
|
|
956
956
|
}
|
|
957
957
|
dispose() {
|
|
958
|
-
this._handler && (this._node && (
|
|
958
|
+
this._handler && (this._node && (Cr -= 1, this._node.removeEventListener(this._type, this._handler, this._options)), this._node = void 0, this._handler = void 0);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
class ve extends z {
|
|
@@ -967,7 +967,7 @@ class ve extends z {
|
|
|
967
967
|
console.warn("Event handler already exists best practice is to add the this in the constructor");
|
|
968
968
|
return;
|
|
969
969
|
}
|
|
970
|
-
this._disposableListeners.push({ target: t, event: o, handler: s, options: n }), this._connected && this.registerDisposable(new
|
|
970
|
+
this._disposableListeners.push({ target: t, event: o, handler: s, options: n }), this._connected && this.registerDisposable(new us(t, o, s, n));
|
|
971
971
|
}
|
|
972
972
|
registerDisposable(t) {
|
|
973
973
|
if (!t)
|
|
@@ -978,7 +978,7 @@ class ve extends z {
|
|
|
978
978
|
}
|
|
979
979
|
connectedCallback() {
|
|
980
980
|
super.connectedCallback(), this._connected = !0, this._isDisposed = !1, this._disposableListeners.forEach(({ target: t, event: o, handler: s, options: n }) => {
|
|
981
|
-
this.registerDisposable(new
|
|
981
|
+
this.registerDisposable(new us(t, o, s, n));
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
984
|
disconnectedCallback() {
|
|
@@ -1009,7 +1009,7 @@ let I = class extends ve {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
1011
|
updated(e) {
|
|
1012
|
-
this.tooltip && this.tooltip !== "" &&
|
|
1012
|
+
this.tooltip && this.tooltip !== "" && Xt($`<spectric-tooltip slot="tooltip" .text=${this.tooltip} .position=${this.tooltipPosition || "right"}></spectric-tooltip>`, this);
|
|
1013
1013
|
}
|
|
1014
1014
|
render() {
|
|
1015
1015
|
const e = ia[this.variant] || "spectric-button--primary";
|
|
@@ -1019,7 +1019,7 @@ let I = class extends ve {
|
|
|
1019
1019
|
type="button"
|
|
1020
1020
|
?disabled=${this.disabled}
|
|
1021
1021
|
class=${["spectric-button", `spectric-button-danger--${this.danger || !1}`, `spectric-button--${this.size || "medium"}`, e].join(" ")}
|
|
1022
|
-
style=${
|
|
1022
|
+
style=${Ur({ backgroundColor: this.backgroundColor })}
|
|
1023
1023
|
>
|
|
1024
1024
|
<span class="animation"></span>
|
|
1025
1025
|
<slot>${this.label}</slot>
|
|
@@ -1063,14 +1063,14 @@ I = ae([
|
|
|
1063
1063
|
* Copyright 2020 Google LLC
|
|
1064
1064
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1065
1065
|
*/
|
|
1066
|
-
const { I: sa } = Kn,
|
|
1066
|
+
const { I: sa } = Kn, hs = (e, t) => (e == null ? void 0 : e._$litType$) !== void 0, oa = (e) => {
|
|
1067
1067
|
var t;
|
|
1068
1068
|
return ((t = e == null ? void 0 : e._$litType$) == null ? void 0 : t.h) != null;
|
|
1069
|
-
}, na = (e) => e.strings === void 0,
|
|
1069
|
+
}, na = (e) => e.strings === void 0, ds = () => document.createComment(""), Pe = (e, t, o) => {
|
|
1070
1070
|
var r;
|
|
1071
1071
|
const s = e._$AA.parentNode, n = t === void 0 ? e._$AB : t._$AA;
|
|
1072
1072
|
if (o === void 0) {
|
|
1073
|
-
const c = s.insertBefore(
|
|
1073
|
+
const c = s.insertBefore(ds(), n), h = s.insertBefore(ds(), n);
|
|
1074
1074
|
o = new sa(c, h, e, e.options);
|
|
1075
1075
|
} else {
|
|
1076
1076
|
const c = o._$AB.nextSibling, h = o._$AM, d = h !== e;
|
|
@@ -1087,7 +1087,7 @@ const { I: sa } = Kn, us = (e, t) => (e == null ? void 0 : e._$litType$) !== voi
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
return o;
|
|
1090
|
-
},
|
|
1090
|
+
}, Oe = (e, t, o = e) => (e._$AI(t, o), e), aa = {}, kr = (e, t = aa) => e._$AH = t, Er = (e) => e._$AH, xr = (e) => {
|
|
1091
1091
|
var s;
|
|
1092
1092
|
(s = e._$AP) == null || s.call(e, !1, !0);
|
|
1093
1093
|
let t = e._$AA;
|
|
@@ -1104,11 +1104,11 @@ const { I: sa } = Kn, us = (e, t) => (e == null ? void 0 : e._$litType$) !== voi
|
|
|
1104
1104
|
* Copyright 2017 Google LLC
|
|
1105
1105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1106
1106
|
*/
|
|
1107
|
-
const
|
|
1107
|
+
const gt = (e, t) => {
|
|
1108
1108
|
var s;
|
|
1109
1109
|
const o = e._$AN;
|
|
1110
1110
|
if (o === void 0) return !1;
|
|
1111
|
-
for (const n of o) (s = n._$AO) == null || s.call(n, t, !1),
|
|
1111
|
+
for (const n of o) (s = n._$AO) == null || s.call(n, t, !1), gt(n, t);
|
|
1112
1112
|
return !0;
|
|
1113
1113
|
}, Qt = (e) => {
|
|
1114
1114
|
let t, o;
|
|
@@ -1129,12 +1129,12 @@ function ca(e) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
function pa(e, t = !1, o = 0) {
|
|
1131
1131
|
const s = this._$AH, n = this._$AN;
|
|
1132
|
-
if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(s)) for (let r = o; r < s.length; r++)
|
|
1133
|
-
else s != null && (
|
|
1134
|
-
else
|
|
1132
|
+
if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(s)) for (let r = o; r < s.length; r++) gt(s[r], !1), Qt(s[r]);
|
|
1133
|
+
else s != null && (gt(s, !1), Qt(s));
|
|
1134
|
+
else gt(this, e);
|
|
1135
1135
|
}
|
|
1136
1136
|
const ua = (e) => {
|
|
1137
|
-
e.type ==
|
|
1137
|
+
e.type == Br.CHILD && (e._$AP ?? (e._$AP = pa), e._$AQ ?? (e._$AQ = ca));
|
|
1138
1138
|
};
|
|
1139
1139
|
class Ms extends Vt {
|
|
1140
1140
|
constructor() {
|
|
@@ -1145,7 +1145,7 @@ class Ms extends Vt {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
_$AO(t, o = !0) {
|
|
1147
1147
|
var s, n;
|
|
1148
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (n = this.disconnected) == null || n.call(this)), o && (
|
|
1148
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (n = this.disconnected) == null || n.call(this)), o && (gt(this, t), Qt(this));
|
|
1149
1149
|
}
|
|
1150
1150
|
setValue(t) {
|
|
1151
1151
|
if (na(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1164,10 +1164,10 @@ class Ms extends Vt {
|
|
|
1164
1164
|
* Copyright 2020 Google LLC
|
|
1165
1165
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1166
1166
|
*/
|
|
1167
|
-
const
|
|
1167
|
+
const vt = () => new ha();
|
|
1168
1168
|
let ha = class {
|
|
1169
1169
|
};
|
|
1170
|
-
const
|
|
1170
|
+
const Sr = /* @__PURE__ */ new WeakMap(), bt = At(class extends Ms {
|
|
1171
1171
|
render(e) {
|
|
1172
1172
|
return E;
|
|
1173
1173
|
}
|
|
@@ -1179,13 +1179,13 @@ const xr = /* @__PURE__ */ new WeakMap(), vt = St(class extends Ms {
|
|
|
1179
1179
|
rt(e) {
|
|
1180
1180
|
if (this.isConnected || (e = void 0), typeof this.Y == "function") {
|
|
1181
1181
|
const t = this.ht ?? globalThis;
|
|
1182
|
-
let o =
|
|
1183
|
-
o === void 0 && (o = /* @__PURE__ */ new WeakMap(),
|
|
1182
|
+
let o = Sr.get(t);
|
|
1183
|
+
o === void 0 && (o = /* @__PURE__ */ new WeakMap(), Sr.set(t, o)), o.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), o.set(this.Y, e), e !== void 0 && this.Y.call(this.ht, e);
|
|
1184
1184
|
} else this.Y.value = e;
|
|
1185
1185
|
}
|
|
1186
1186
|
get lt() {
|
|
1187
1187
|
var e, t;
|
|
1188
|
-
return typeof this.Y == "function" ? (e =
|
|
1188
|
+
return typeof this.Y == "function" ? (e = Sr.get(this.ht ?? globalThis)) == null ? void 0 : e.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
1189
1189
|
}
|
|
1190
1190
|
disconnected() {
|
|
1191
1191
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1236,7 +1236,7 @@ const xr = /* @__PURE__ */ new WeakMap(), vt = St(class extends Ms {
|
|
|
1236
1236
|
});
|
|
1237
1237
|
};
|
|
1238
1238
|
};
|
|
1239
|
-
var fa = Object.defineProperty, ga = Object.getOwnPropertyDescriptor,
|
|
1239
|
+
var fa = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, Be = (e, t, o, s) => {
|
|
1240
1240
|
for (var n = s > 1 ? void 0 : s ? ga(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
1241
1241
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
1242
1242
|
return s && n && fa(t, o, n), n;
|
|
@@ -1245,9 +1245,9 @@ const va = ["mousemove", "click", "dblclick", "mousedown", "mouseup", "contextme
|
|
|
1245
1245
|
let ne = class extends ve {
|
|
1246
1246
|
constructor() {
|
|
1247
1247
|
super(), this.arrayBuffer = new ArrayBuffer(0), this.frameWidth = 100, this.scale = 1, this.width = 200, this.height = 200, this.state = {}, this.yStart = 0, this.xStart = 0, this.refs = {
|
|
1248
|
-
viewport:
|
|
1249
|
-
canvas:
|
|
1250
|
-
scrollDiv:
|
|
1248
|
+
viewport: vt(),
|
|
1249
|
+
canvas: vt(),
|
|
1250
|
+
scrollDiv: vt()
|
|
1251
1251
|
}, this.color = "#000000", this.onThemeChange = () => {
|
|
1252
1252
|
let o = getComputedStyle(this);
|
|
1253
1253
|
this.color != o.color && (this.color = o.color, this.paint());
|
|
@@ -1344,18 +1344,18 @@ let ne = class extends ve {
|
|
|
1344
1344
|
return $`
|
|
1345
1345
|
<div
|
|
1346
1346
|
id="viewport"
|
|
1347
|
-
${
|
|
1347
|
+
${bt(this.refs.viewport)}
|
|
1348
1348
|
@scroll=${this.handleScroll}
|
|
1349
1349
|
style=${`width:${t + Wt.width}px;height:${e + Wt.height}px;overflow:auto;position:relative`}
|
|
1350
1350
|
>
|
|
1351
1351
|
<div
|
|
1352
1352
|
id="fakescrolldiv"
|
|
1353
|
-
${
|
|
1353
|
+
${bt(this.refs.scrollDiv)}
|
|
1354
1354
|
>
|
|
1355
1355
|
</div>
|
|
1356
1356
|
</div>
|
|
1357
1357
|
<canvas
|
|
1358
|
-
${
|
|
1358
|
+
${bt(this.refs.canvas)}
|
|
1359
1359
|
width=${t}
|
|
1360
1360
|
height=${e}
|
|
1361
1361
|
></canvas>
|
|
@@ -1459,25 +1459,25 @@ ne.styles = X`
|
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
1461
|
`;
|
|
1462
|
-
|
|
1462
|
+
Be([
|
|
1463
1463
|
g({ type: Object, attribute: !1 })
|
|
1464
1464
|
], ne.prototype, "arrayBuffer", 2);
|
|
1465
|
-
|
|
1465
|
+
Be([
|
|
1466
1466
|
g({ type: Number })
|
|
1467
1467
|
], ne.prototype, "frameWidth", 2);
|
|
1468
|
-
|
|
1468
|
+
Be([
|
|
1469
1469
|
g({ type: Number })
|
|
1470
1470
|
], ne.prototype, "scale", 2);
|
|
1471
|
-
|
|
1471
|
+
Be([
|
|
1472
1472
|
g({ type: Number })
|
|
1473
1473
|
], ne.prototype, "width", 2);
|
|
1474
|
-
|
|
1474
|
+
Be([
|
|
1475
1475
|
g({ type: Number })
|
|
1476
1476
|
], ne.prototype, "height", 2);
|
|
1477
|
-
|
|
1478
|
-
|
|
1477
|
+
Be([
|
|
1478
|
+
Ct("canvas")
|
|
1479
1479
|
], ne.prototype, "_canvas", 2);
|
|
1480
|
-
ne =
|
|
1480
|
+
ne = Be([
|
|
1481
1481
|
P("spectric-bit-display")
|
|
1482
1482
|
], ne);
|
|
1483
1483
|
const ba = X`.spectric-header {
|
|
@@ -1521,7 +1521,7 @@ var ya = Object.defineProperty, ma = Object.getOwnPropertyDescriptor, Jt = (e, t
|
|
|
1521
1521
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
1522
1522
|
return s && n && ya(t, o, n), n;
|
|
1523
1523
|
};
|
|
1524
|
-
let
|
|
1524
|
+
let ze = class extends z {
|
|
1525
1525
|
constructor() {
|
|
1526
1526
|
super(...arguments), this.showCreateAccount = !1, this.showLoginButton = !1, this.username = "", this.onLogout = () => {
|
|
1527
1527
|
const e = {
|
|
@@ -1566,20 +1566,20 @@ let De = class extends z {
|
|
|
1566
1566
|
`;
|
|
1567
1567
|
}
|
|
1568
1568
|
};
|
|
1569
|
-
|
|
1569
|
+
ze.styles = ba;
|
|
1570
1570
|
Jt([
|
|
1571
1571
|
g({ type: Boolean, reflect: !0 })
|
|
1572
|
-
],
|
|
1572
|
+
], ze.prototype, "showCreateAccount", 2);
|
|
1573
1573
|
Jt([
|
|
1574
1574
|
g({ type: Boolean, reflect: !0 })
|
|
1575
|
-
],
|
|
1575
|
+
], ze.prototype, "showLoginButton", 2);
|
|
1576
1576
|
Jt([
|
|
1577
1577
|
g({ type: String, reflect: !0 })
|
|
1578
|
-
],
|
|
1579
|
-
|
|
1578
|
+
], ze.prototype, "username", 2);
|
|
1579
|
+
ze = Jt([
|
|
1580
1580
|
P("spectric-header")
|
|
1581
|
-
],
|
|
1582
|
-
var $a = Object.defineProperty, wa = Object.getOwnPropertyDescriptor,
|
|
1581
|
+
], ze);
|
|
1582
|
+
var $a = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, it = (e, t, o, s) => {
|
|
1583
1583
|
for (var n = s > 1 ? void 0 : s ? wa(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
1584
1584
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
1585
1585
|
return s && n && $a(t, o, n), n;
|
|
@@ -1591,7 +1591,7 @@ const _a = {
|
|
|
1591
1591
|
color: "white",
|
|
1592
1592
|
textAlign: "center"
|
|
1593
1593
|
};
|
|
1594
|
-
let
|
|
1594
|
+
let Ne = class extends z {
|
|
1595
1595
|
constructor() {
|
|
1596
1596
|
super(...arguments), this.dismissable = !1, this.text = "", this.bannerId = "", this.headerStyle = {}, this._dismissed = !1, this.onDismiss = (e) => {
|
|
1597
1597
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -1601,40 +1601,46 @@ let ze = class extends z {
|
|
|
1601
1601
|
};
|
|
1602
1602
|
this._dismissed = !0;
|
|
1603
1603
|
let { bannerId: o, text: s, headerStyle: n, dismissable: r } = this;
|
|
1604
|
-
this.dispatchEvent(
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1604
|
+
this.dispatchEvent(
|
|
1605
|
+
new CustomEvent("bannerDismissed", {
|
|
1606
|
+
detail: { bannerId: o, text: s, headerStyle: n, dismissable: r },
|
|
1607
|
+
...t
|
|
1608
|
+
})
|
|
1609
|
+
);
|
|
1608
1610
|
};
|
|
1609
1611
|
}
|
|
1610
1612
|
render() {
|
|
1611
1613
|
if (!this._dismissed)
|
|
1612
1614
|
return $`
|
|
1613
|
-
|
|
1614
|
-
<div style="flex-grow:1"
|
|
1615
|
-
|
|
1616
|
-
</
|
|
1615
|
+
<header style=${Ur({ ..._a, ...this.headerStyle })}>
|
|
1616
|
+
<div style="flex-grow:1">
|
|
1617
|
+
<slot name="text">${this.text}</slot><slot></slot>
|
|
1618
|
+
</div>
|
|
1619
|
+
${this.dismissable ? $`<spectric-button size="small" @click=${this.onDismiss} icon
|
|
1620
|
+
>X</spectric-button
|
|
1621
|
+
>` : null}
|
|
1622
|
+
</header>
|
|
1617
1623
|
`;
|
|
1618
1624
|
}
|
|
1619
1625
|
};
|
|
1620
|
-
|
|
1626
|
+
it([
|
|
1621
1627
|
g({ type: Boolean, reflect: !0 })
|
|
1622
|
-
],
|
|
1623
|
-
|
|
1628
|
+
], Ne.prototype, "dismissable", 2);
|
|
1629
|
+
it([
|
|
1624
1630
|
g({ type: String, reflect: !0 })
|
|
1625
|
-
],
|
|
1626
|
-
|
|
1631
|
+
], Ne.prototype, "text", 2);
|
|
1632
|
+
it([
|
|
1627
1633
|
g({ type: String, reflect: !0 })
|
|
1628
|
-
],
|
|
1629
|
-
|
|
1634
|
+
], Ne.prototype, "bannerId", 2);
|
|
1635
|
+
it([
|
|
1630
1636
|
g({ type: Object })
|
|
1631
|
-
],
|
|
1632
|
-
|
|
1637
|
+
], Ne.prototype, "headerStyle", 2);
|
|
1638
|
+
it([
|
|
1633
1639
|
g({ state: !0, type: Boolean, attribute: !1 })
|
|
1634
|
-
],
|
|
1635
|
-
|
|
1640
|
+
], Ne.prototype, "_dismissed", 2);
|
|
1641
|
+
Ne = it([
|
|
1636
1642
|
P("spectric-banner")
|
|
1637
|
-
],
|
|
1643
|
+
], Ne);
|
|
1638
1644
|
const xa = X`
|
|
1639
1645
|
|
|
1640
1646
|
:host {
|
|
@@ -1797,7 +1803,7 @@ article{
|
|
|
1797
1803
|
* Copyright 2018 Google LLC
|
|
1798
1804
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1799
1805
|
*/
|
|
1800
|
-
const
|
|
1806
|
+
const Or = (e) => e ?? E;
|
|
1801
1807
|
class Rs extends Ms {
|
|
1802
1808
|
constructor() {
|
|
1803
1809
|
super(...arguments), this.prevData = {};
|
|
@@ -1824,8 +1830,8 @@ class Rs extends Ms {
|
|
|
1824
1830
|
(!t || !(n in t) && s[n] === o[n]) && (s[n] = void 0);
|
|
1825
1831
|
}
|
|
1826
1832
|
}
|
|
1827
|
-
const
|
|
1828
|
-
var
|
|
1833
|
+
const Ve = At(Rs);
|
|
1834
|
+
var Pr = /* @__PURE__ */ ((e) => (e.None = "none", e.Uscui = "us.cui", e.Usclassified = "us.classified", e.Usunclassified = "us.unclassified", e.Usconfidential = "us.confidential", e.Ussecret = "us.secret", e.Ustopsecret = "us.topsecret", e.UstopsecretSi = "us.topsecret.si", e.Uknotset = "uk.notset", e.Ukofficial = "uk.official", e.Uksecret = "uk.secret", e.Uktopsecret = "uk.topsecret", e.Caprotected_a = "ca.protected_a", e.Caprotected_b = "ca.protected_b", e.Caprotected_c = "ca.protected_c", e.Caconfidential = "ca.confidential", e.Casecret = "ca.secret", e.Catopsecret = "ca.topsecret", e.Auunofficial = "au.unofficial", e.Auofficial = "au.official", e.Auofficialsensitive = "au.officialsensitive", e.Auconfidential = "au.confidential", e.Ausecret = "au.secret", e.Autopsecret = "au.topsecret", e))(Pr || {});
|
|
1829
1835
|
const Ft = {
|
|
1830
1836
|
none: {},
|
|
1831
1837
|
//US Department of Defense spec CFR-2002-title31-vol1-sec2-7
|
|
@@ -1953,14 +1959,14 @@ var Sa = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, le = (e, t
|
|
|
1953
1959
|
};
|
|
1954
1960
|
let q = class extends z {
|
|
1955
1961
|
constructor() {
|
|
1956
|
-
super(...arguments), this.showHeader = !0, this.headerSticky = !0, this.classificationLevel =
|
|
1962
|
+
super(...arguments), this.showHeader = !0, this.headerSticky = !0, this.classificationLevel = Pr.None, this.classificationText = "", this.notifications = [], this.showCreateAccount = !1, this.showLoginButton = !0, this.username = "";
|
|
1957
1963
|
}
|
|
1958
1964
|
// protected createRenderRoot(): HTMLElement | DocumentFragment {
|
|
1959
1965
|
// return this
|
|
1960
1966
|
// }
|
|
1961
1967
|
render() {
|
|
1962
|
-
this.classificationLevel && !Ft[this.classificationLevel] && (console.warn("Unknown classification", this.classificationLevel), this.classificationLevel =
|
|
1963
|
-
const e = this.classificationLevel ? this.classificationText || Ft[this.classificationLevel].content : "", t = this.showHeader ? $`<spectric-header ?showCreateAccount=${this.showCreateAccount} .showLoginButton=${this.showLoginButton} username=${
|
|
1968
|
+
this.classificationLevel && !Ft[this.classificationLevel] && (console.warn("Unknown classification", this.classificationLevel), this.classificationLevel = Pr.None);
|
|
1969
|
+
const e = this.classificationLevel ? this.classificationText || Ft[this.classificationLevel].content : "", t = this.showHeader ? $`<spectric-header ?showCreateAccount=${this.showCreateAccount} .showLoginButton=${this.showLoginButton} username=${Or(this.username)}>
|
|
1964
1970
|
<slot name="branding" slot="branding"></slot>
|
|
1965
1971
|
<slot name="name" slot="name"></slot>
|
|
1966
1972
|
<slot name="center" slot="center"></slot>
|
|
@@ -1969,10 +1975,10 @@ let q = class extends z {
|
|
|
1969
1975
|
return $`
|
|
1970
1976
|
${this.classificationLevel && e ? $`
|
|
1971
1977
|
<!-- Classification Banner -->
|
|
1972
|
-
<spectric-banner ${
|
|
1978
|
+
<spectric-banner ${Ve({ text: e, headerStyle: Ft[this.classificationLevel] })}></spectric-banner>
|
|
1973
1979
|
` : null}
|
|
1974
|
-
<spectric-theme theme=${
|
|
1975
|
-
${this.notifications ? this.notifications.map((o) => $`<spectric-banner ${
|
|
1980
|
+
<spectric-theme theme=${Or(this.theme)}>
|
|
1981
|
+
${this.notifications ? this.notifications.map((o) => $`<spectric-banner ${Ve(o)} ></spectric-banner>`) : null}
|
|
1976
1982
|
${this.headerSticky ? t : null}
|
|
1977
1983
|
<article>
|
|
1978
1984
|
${this.headerSticky ? null : t}
|
|
@@ -1982,7 +1988,7 @@ let q = class extends z {
|
|
|
1982
1988
|
</section>
|
|
1983
1989
|
</article>
|
|
1984
1990
|
</spectric-theme>
|
|
1985
|
-
${this.classificationLevel && e ? $`<spectric-banner ${
|
|
1991
|
+
${this.classificationLevel && e ? $`<spectric-banner ${Ve({ text: e, headerStyle: Ft[this.classificationLevel] })}></spectric-banner>` : null}
|
|
1986
1992
|
|
|
1987
1993
|
`;
|
|
1988
1994
|
}
|
|
@@ -2095,18 +2101,18 @@ let O = class extends z {
|
|
|
2095
2101
|
?disabled="${this.disabled}"
|
|
2096
2102
|
aria-describedby="helper-text"
|
|
2097
2103
|
id="input"
|
|
2098
|
-
name="${
|
|
2099
|
-
pattern="${
|
|
2100
|
-
placeholder="${
|
|
2101
|
-
autocomplete="${
|
|
2104
|
+
name="${Ze(this.name)}"
|
|
2105
|
+
pattern="${Ze(this.pattern)}"
|
|
2106
|
+
placeholder="${Ze(this.placeholder)}"
|
|
2107
|
+
autocomplete="${Ze(this.autocomplete)}"
|
|
2102
2108
|
?readonly="${this.readonly}"
|
|
2103
2109
|
?required="${this.required}"
|
|
2104
|
-
type="${
|
|
2110
|
+
type="${Ze(
|
|
2105
2111
|
this.variant !== "password" ? this.variant !== "date" ? this.variant : "text" : this._showPassword ? "text" : "password"
|
|
2106
2112
|
/* password */
|
|
2107
2113
|
)}"
|
|
2108
2114
|
.value="${this._value}"
|
|
2109
|
-
maxlength="${
|
|
2115
|
+
maxlength="${Ze(
|
|
2110
2116
|
this.maxCount > 0 ? this.maxCount : void 0
|
|
2111
2117
|
)}"
|
|
2112
2118
|
@input="${this._handleInput}"
|
|
@@ -2242,15 +2248,15 @@ T([
|
|
|
2242
2248
|
g({ reflect: !0 })
|
|
2243
2249
|
], O.prototype, "value", 1);
|
|
2244
2250
|
T([
|
|
2245
|
-
|
|
2251
|
+
Se("input")
|
|
2246
2252
|
], O.prototype, "_input", 2);
|
|
2247
2253
|
T([
|
|
2248
|
-
|
|
2254
|
+
Re({ capture: !0 })
|
|
2249
2255
|
], O.prototype, "_handleChange", 1);
|
|
2250
2256
|
O = T([
|
|
2251
2257
|
P("spectric-input")
|
|
2252
2258
|
], O);
|
|
2253
|
-
const
|
|
2259
|
+
const Ze = (e) => Or(e === "" ? void 0 : e ?? void 0), Ea = "end of input", Oa = {
|
|
2254
2260
|
fieldName: "field name",
|
|
2255
2261
|
value: "value",
|
|
2256
2262
|
literal: "literal",
|
|
@@ -2271,21 +2277,21 @@ class Us extends Error {
|
|
|
2271
2277
|
super(n), this.name = "DQLSyntaxError", this.shortMessage = s;
|
|
2272
2278
|
}
|
|
2273
2279
|
}
|
|
2274
|
-
function
|
|
2280
|
+
function Ge(e) {
|
|
2275
2281
|
return {
|
|
2276
2282
|
type: "literal",
|
|
2277
2283
|
value: e
|
|
2278
2284
|
};
|
|
2279
2285
|
}
|
|
2280
|
-
function
|
|
2286
|
+
function Fr(e) {
|
|
2281
2287
|
return e.value;
|
|
2282
2288
|
}
|
|
2283
2289
|
const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2284
2290
|
__proto__: null,
|
|
2285
|
-
buildNode:
|
|
2286
|
-
toOpenSearchQuery:
|
|
2291
|
+
buildNode: Ge,
|
|
2292
|
+
toOpenSearchQuery: Fr
|
|
2287
2293
|
}, Symbol.toStringTag, { value: "Module" })), {
|
|
2288
|
-
SyntaxError:
|
|
2294
|
+
SyntaxError: Ic,
|
|
2289
2295
|
parse: er
|
|
2290
2296
|
} = function() {
|
|
2291
2297
|
function e(s, n) {
|
|
@@ -2299,11 +2305,11 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2299
2305
|
}
|
|
2300
2306
|
e(t, Error);
|
|
2301
2307
|
function o(s) {
|
|
2302
|
-
var n = arguments.length > 1 ? arguments[1] : {}, r = {}, c = { start:
|
|
2308
|
+
var n = arguments.length > 1 ? arguments[1] : {}, r = {}, c = { start: Mi, Literal: vr }, h = Mi, d = function(i, a) {
|
|
2303
2309
|
return a.type === "cursor" ? {
|
|
2304
2310
|
...a,
|
|
2305
2311
|
suggestionTypes: ["conjunction"]
|
|
2306
|
-
} : i !== null ? i :
|
|
2312
|
+
} : i !== null ? i : ke.function.buildNode("is", "*", "*");
|
|
2307
2313
|
}, m = function() {
|
|
2308
2314
|
return Tn;
|
|
2309
2315
|
}, A = function(i, a) {
|
|
@@ -2319,7 +2325,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2319
2325
|
...a,
|
|
2320
2326
|
suggestionTypes: ["conjunction"]
|
|
2321
2327
|
} : i;
|
|
2322
|
-
}, ie = ":", W = { type: "literal", value: ":", description: '":"' },
|
|
2328
|
+
}, ie = ":", W = { type: "literal", value: ":", description: '":"' }, He = "{", rr = { type: "literal", value: "{", description: '"{"' }, ir = "}", sr = { type: "literal", value: "}", description: '"}"' }, ro = function(i, a, p) {
|
|
2323
2329
|
return a.type === "cursor" ? {
|
|
2324
2330
|
...a,
|
|
2325
2331
|
nestedPath: a.nestedPath ? `${i.value}.${a.nestedPath}` : i.value
|
|
@@ -2380,10 +2386,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2380
2386
|
return (p) => oe("is", [p, i, a]);
|
|
2381
2387
|
}, fo = function(i) {
|
|
2382
2388
|
if (i.type === "cursor") return i;
|
|
2383
|
-
!zn && i.type === "wildcard" &&
|
|
2389
|
+
!zn && i.type === "wildcard" && ke.wildcard.hasLeadingWildcard(i) && J("Leading wildcards are disabled. See query:allowLeadingWildcards in Advanced Settings.");
|
|
2384
2390
|
const a = be(!1);
|
|
2385
2391
|
return (p) => oe("is", [p, i, a]);
|
|
2386
|
-
}, go = { type: "other", description: "OR" },
|
|
2392
|
+
}, go = { type: "other", description: "OR" }, Zr = "or", Kr = { type: "literal", value: "or", description: '"or"' }, vo = { type: "other", description: "AND" }, Xr = "and", Vr = { type: "literal", value: "and", description: '"and"' }, bo = { type: "other", description: "NOT" }, Gr = "not", Jr = { type: "literal", value: "not", description: '"not"' }, yo = { type: "other", description: "literal" }, nt = '"', at = { type: "literal", value: '"', description: '"\\""' }, or = function(i, a, p) {
|
|
2387
2393
|
const { start: u, end: v } = cn();
|
|
2388
2394
|
return {
|
|
2389
2395
|
type: "cursor",
|
|
@@ -2395,59 +2401,59 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2395
2401
|
};
|
|
2396
2402
|
}, mo = function(i) {
|
|
2397
2403
|
return be(i.join(""));
|
|
2398
|
-
},
|
|
2404
|
+
}, lt = "\\", ct = { type: "literal", value: "\\", description: '"\\\\"' }, $o = /^[\\"]/, wo = { type: "class", value: '[\\\\"]', description: '[\\\\"]' }, kt = function(i) {
|
|
2399
2405
|
return i;
|
|
2400
2406
|
}, _o = /^[^"]/, xo = { type: "class", value: '[^"]', description: '[^"]' }, So = function(i) {
|
|
2401
2407
|
const a = i.join("").trim();
|
|
2402
|
-
return a === "null" ? be(null) : a === "true" ? be(!0) : a === "false" ? be(!1) : i.includes(
|
|
2408
|
+
return a === "null" ? be(null) : a === "true" ? be(!0) : a === "false" ? be(!1) : i.includes(Gi) ? Nn(a) : be(
|
|
2403
2409
|
/^(-?[1-9]+\d*([.]\d+)?)$|^(-?0[.]\d*[1-9]+)$|^0$|^0.0$|^[.]\d{1,}$/.test(a) ? isFinite(a) && (a > Number.MAX_SAFE_INTEGER || a < Number.MIN_SAFE_INTEGER) ? BigInt(a) : Number(a) : a
|
|
2404
2410
|
);
|
|
2405
|
-
},
|
|
2406
|
-
return
|
|
2407
|
-
},
|
|
2411
|
+
}, ei = { type: "any", description: "any character" }, Et = "*", Ot = { type: "literal", value: "*", description: '"*"' }, Ao = function() {
|
|
2412
|
+
return Gi;
|
|
2413
|
+
}, ti = "\\t", Co = { type: "literal", value: "\\t", description: '"\\\\t"' }, ko = function() {
|
|
2408
2414
|
return " ";
|
|
2409
|
-
},
|
|
2415
|
+
}, ri = "\\r", Eo = { type: "literal", value: "\\r", description: '"\\\\r"' }, Oo = function() {
|
|
2410
2416
|
return "\r";
|
|
2411
|
-
},
|
|
2417
|
+
}, ii = "\\n", Po = { type: "literal", value: "\\n", description: '"\\\\n"' }, To = function() {
|
|
2412
2418
|
return `
|
|
2413
2419
|
`;
|
|
2414
2420
|
}, Lo = function(i) {
|
|
2415
2421
|
return i;
|
|
2416
|
-
}, Do = /^[\\():<>"*{}]/, zo = { type: "class", value: '[\\\\():<>"*{}]', description: '[\\\\():<>"*{}]' },
|
|
2422
|
+
}, Do = /^[\\():<>"*{}]/, zo = { type: "class", value: '[\\\\():<>"*{}]', description: '[\\\\():<>"*{}]' }, si = "<=", No = { type: "literal", value: "<=", description: '"<="' }, Mo = function() {
|
|
2417
2423
|
return "lte";
|
|
2418
|
-
},
|
|
2424
|
+
}, oi = ">=", jo = { type: "literal", value: ">=", description: '">="' }, Ro = function() {
|
|
2419
2425
|
return "gte";
|
|
2420
|
-
},
|
|
2426
|
+
}, ni = "<", ai = { type: "literal", value: "<", description: '"<"' }, Bo = function() {
|
|
2421
2427
|
return "lt";
|
|
2422
|
-
},
|
|
2428
|
+
}, li = ">", ci = { type: "literal", value: ">", description: '">"' }, Uo = function() {
|
|
2423
2429
|
return "gt";
|
|
2424
2430
|
}, Fo = { type: "other", description: "whitespace" }, Ho = /^[ \t\r\n]/, Io = { type: "class", value: "[\\ \\t\\r\\n]", description: "[\\ \\t\\r\\n]" }, qo = function() {
|
|
2425
2431
|
return Ln;
|
|
2426
|
-
},
|
|
2432
|
+
}, pi = "@kuery-cursor@", Qo = { type: "literal", value: "@kuery-cursor@", description: '"@kuery-cursor@"' }, Wo = function() {
|
|
2427
2433
|
return Dn;
|
|
2428
|
-
},
|
|
2434
|
+
}, ui = "||", Yo = { type: "literal", value: "||", description: '"||"' }, Zo = function() {
|
|
2429
2435
|
J("LuceneOr");
|
|
2430
|
-
},
|
|
2436
|
+
}, hi = "&&", Ko = { type: "literal", value: "&&", description: '"&&"' }, di = function() {
|
|
2431
2437
|
J("LuceneAnd");
|
|
2432
|
-
},
|
|
2438
|
+
}, fi = "+", gi = { type: "literal", value: "+", description: '"+"' }, vi = "-", bi = { type: "literal", value: "-", description: '"-"' }, yi = function() {
|
|
2433
2439
|
J("LuceneNot");
|
|
2434
|
-
},
|
|
2440
|
+
}, mi = "!", $i = { type: "literal", value: "!", description: '"!"' }, wi = "_exists_", Xo = { type: "literal", value: "_exists_", description: '"_exists_"' }, Vo = function() {
|
|
2435
2441
|
J("LuceneExists");
|
|
2436
|
-
},
|
|
2442
|
+
}, _i = function() {
|
|
2437
2443
|
J("LuceneRange");
|
|
2438
|
-
},
|
|
2444
|
+
}, xi = "?", Si = { type: "literal", value: "?", description: '"?"' }, Go = function() {
|
|
2439
2445
|
J("LuceneWildcard");
|
|
2440
|
-
},
|
|
2446
|
+
}, nr = "/", ar = { type: "literal", value: "/", description: '"/"' }, Ai = /^[^\/]/, Ci = { type: "class", value: "[^/]", description: "[^/]" }, Jo = function() {
|
|
2441
2447
|
J("LuceneRegex");
|
|
2442
|
-
},
|
|
2448
|
+
}, lr = "~", cr = { type: "literal", value: "~", description: '"~"' }, Ie = /^[0-9]/, qe = { type: "class", value: "[0-9]", description: "[0-9]" }, en = function() {
|
|
2443
2449
|
J("LuceneFuzzy");
|
|
2444
2450
|
}, tn = function() {
|
|
2445
2451
|
J("LuceneProximity");
|
|
2446
|
-
},
|
|
2452
|
+
}, ki = "^", Ei = { type: "literal", value: "^", description: '"^"' }, rn = function() {
|
|
2447
2453
|
J("LuceneBoost");
|
|
2448
2454
|
}, sn = function() {
|
|
2449
2455
|
return char;
|
|
2450
|
-
}, on = "=", nn = { type: "literal", value: "=", description: '"="' },
|
|
2456
|
+
}, on = "=", nn = { type: "literal", value: "=", description: '"="' }, Oi = "[", Pi = { type: "literal", value: "[", description: '"["' }, Ti = "]", Li = { type: "literal", value: "]", description: '"]"' }, Di = "TO", an = { type: "literal", value: "TO", description: '"TO"' }, l = 0, x = 0, Pt = [{ line: 1, column: 1, seenCR: !1 }], se = 0, pr = [], f = 0, Tt;
|
|
2451
2457
|
if ("startRule" in n) {
|
|
2452
2458
|
if (!(n.startRule in c))
|
|
2453
2459
|
throw new Error(`Can't start parsing from rule "` + n.startRule + '".');
|
|
@@ -2460,14 +2466,14 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2460
2466
|
return Lt(x, l);
|
|
2461
2467
|
}
|
|
2462
2468
|
function J(i) {
|
|
2463
|
-
throw
|
|
2469
|
+
throw Ni(
|
|
2464
2470
|
i,
|
|
2465
2471
|
null,
|
|
2466
2472
|
s.substring(x, l),
|
|
2467
2473
|
Lt(x, l)
|
|
2468
2474
|
);
|
|
2469
2475
|
}
|
|
2470
|
-
function
|
|
2476
|
+
function zi(i) {
|
|
2471
2477
|
var a = Pt[i], p, u;
|
|
2472
2478
|
if (a)
|
|
2473
2479
|
return a;
|
|
@@ -2483,7 +2489,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2483
2489
|
return Pt[i] = a, a;
|
|
2484
2490
|
}
|
|
2485
2491
|
function Lt(i, a) {
|
|
2486
|
-
var p =
|
|
2492
|
+
var p = zi(i), u = zi(a);
|
|
2487
2493
|
return {
|
|
2488
2494
|
start: {
|
|
2489
2495
|
offset: i,
|
|
@@ -2498,9 +2504,9 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2498
2504
|
};
|
|
2499
2505
|
}
|
|
2500
2506
|
function b(i) {
|
|
2501
|
-
l < se || (l > se && (se = l,
|
|
2507
|
+
l < se || (l > se && (se = l, pr = []), pr.push(i));
|
|
2502
2508
|
}
|
|
2503
|
-
function
|
|
2509
|
+
function Ni(i, a, p, u) {
|
|
2504
2510
|
function v(L) {
|
|
2505
2511
|
var N = 1;
|
|
2506
2512
|
for (L.sort(function(ye, ee) {
|
|
@@ -2523,10 +2529,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2523
2529
|
return "\\u" + Bt(ue);
|
|
2524
2530
|
});
|
|
2525
2531
|
}
|
|
2526
|
-
var ee = new Array(L.length),
|
|
2527
|
-
for (
|
|
2528
|
-
ee[
|
|
2529
|
-
return
|
|
2532
|
+
var ee = new Array(L.length), Ji, es, ut;
|
|
2533
|
+
for (ut = 0; ut < L.length; ut++)
|
|
2534
|
+
ee[ut] = L[ut].description;
|
|
2535
|
+
return Ji = L.length > 1 ? ee.slice(0, -1).join(", ") + " or " + ee[L.length - 1] : ee[0], es = N ? '"' + ye(N) + '"' : "end of input", "Expected " + Ji + " but " + es + " found.";
|
|
2530
2536
|
}
|
|
2531
2537
|
return a !== null && v(a), new t(
|
|
2532
2538
|
i !== null ? i : _(a, p),
|
|
@@ -2535,7 +2541,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2535
2541
|
u
|
|
2536
2542
|
);
|
|
2537
2543
|
}
|
|
2538
|
-
function
|
|
2544
|
+
function Mi() {
|
|
2539
2545
|
var i, a, p, u;
|
|
2540
2546
|
for (i = l, a = [], p = w(); p !== r; )
|
|
2541
2547
|
a.push(p), p = w();
|
|
@@ -2543,17 +2549,17 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2543
2549
|
}
|
|
2544
2550
|
function Dt() {
|
|
2545
2551
|
var i, a, p, u;
|
|
2546
|
-
return i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = mn(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = l, a =
|
|
2552
|
+
return i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = mn(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = l, a = ur(), a !== r ? (p = zt(), p !== r ? (u = Dt(), u !== r ? (x = i, a = A(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = ur())), i;
|
|
2547
2553
|
}
|
|
2548
|
-
function
|
|
2554
|
+
function ur() {
|
|
2549
2555
|
var i, a, p, u;
|
|
2550
|
-
return i = l, a =
|
|
2556
|
+
return i = l, a = ji(), a !== r ? (p = Nt(), p !== r ? (u = ur(), u !== r ? (x = i, a = y(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = ji()), i;
|
|
2551
2557
|
}
|
|
2552
|
-
function
|
|
2558
|
+
function ji() {
|
|
2553
2559
|
var i, a, p;
|
|
2554
|
-
return i = l, a =
|
|
2560
|
+
return i = l, a = gr(), a !== r ? (p = Ri(), p !== r ? (x = i, a = C(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = Ri()), i;
|
|
2555
2561
|
}
|
|
2556
|
-
function
|
|
2562
|
+
function Ri() {
|
|
2557
2563
|
var i, a, p, u, v, _;
|
|
2558
2564
|
if (i = l, s.charCodeAt(l) === 40 ? (a = S, l++) : (a = r, f === 0 && b(k)), a !== r) {
|
|
2559
2565
|
for (p = [], u = w(); u !== r; )
|
|
@@ -2565,7 +2571,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2565
2571
|
}
|
|
2566
2572
|
function pn() {
|
|
2567
2573
|
var i, a, p, u, v, _, L, N, ye, ee;
|
|
2568
|
-
if (i = l, a =
|
|
2574
|
+
if (i = l, a = hr(), a !== r) {
|
|
2569
2575
|
for (p = [], u = w(); u !== r; )
|
|
2570
2576
|
p.push(u), u = w();
|
|
2571
2577
|
if (p !== r)
|
|
@@ -2573,10 +2579,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2573
2579
|
for (v = [], _ = w(); _ !== r; )
|
|
2574
2580
|
v.push(_), _ = w();
|
|
2575
2581
|
if (v !== r)
|
|
2576
|
-
if (s.charCodeAt(l) === 123 ? (_ =
|
|
2582
|
+
if (s.charCodeAt(l) === 123 ? (_ = He, l++) : (_ = r, f === 0 && b(rr)), _ !== r) {
|
|
2577
2583
|
for (L = [], N = w(); N !== r; )
|
|
2578
2584
|
L.push(N), N = w();
|
|
2579
|
-
L !== r ? (N = Dt(), N !== r ? (ye = jt(), ye !== r ? (s.charCodeAt(l) === 125 ? (ee =
|
|
2585
|
+
L !== r ? (N = Dt(), N !== r ? (ye = jt(), ye !== r ? (s.charCodeAt(l) === 125 ? (ee = ir, l++) : (ee = r, f === 0 && b(sr)), ee !== r ? (x = i, a = ro(a, N, ye), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
|
|
2580
2586
|
} else
|
|
2581
2587
|
l = i, i = r;
|
|
2582
2588
|
else
|
|
@@ -2593,20 +2599,20 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2593
2599
|
var i;
|
|
2594
2600
|
return i = hn(), i === r && (i = dn(), i === r && (i = fn())), i;
|
|
2595
2601
|
}
|
|
2596
|
-
function
|
|
2602
|
+
function hr() {
|
|
2597
2603
|
var i;
|
|
2598
|
-
return f++, i =
|
|
2604
|
+
return f++, i = vr(), f--, i === r && f === 0 && b(io), i;
|
|
2599
2605
|
}
|
|
2600
2606
|
function hn() {
|
|
2601
2607
|
var i, a, p, u, v, _;
|
|
2602
|
-
if (i = l, a =
|
|
2608
|
+
if (i = l, a = hr(), a !== r) {
|
|
2603
2609
|
for (p = [], u = w(); u !== r; )
|
|
2604
2610
|
p.push(u), u = w();
|
|
2605
2611
|
if (p !== r)
|
|
2606
|
-
if (u =
|
|
2612
|
+
if (u = qi(), u !== r) {
|
|
2607
2613
|
for (v = [], _ = w(); _ !== r; )
|
|
2608
2614
|
v.push(_), _ = w();
|
|
2609
|
-
v !== r ? (_ =
|
|
2615
|
+
v !== r ? (_ = vr(), _ !== r ? (x = i, a = so(a, u, _), i = a) : (l = i, i = r)) : (l = i, i = r);
|
|
2610
2616
|
} else
|
|
2611
2617
|
l = i, i = r;
|
|
2612
2618
|
else
|
|
@@ -2617,14 +2623,14 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2617
2623
|
}
|
|
2618
2624
|
function dn() {
|
|
2619
2625
|
var i, a, p, u, v, _;
|
|
2620
|
-
if (i = l, a =
|
|
2626
|
+
if (i = l, a = hr(), a !== r) {
|
|
2621
2627
|
for (p = [], u = w(); u !== r; )
|
|
2622
2628
|
p.push(u), u = w();
|
|
2623
2629
|
if (p !== r)
|
|
2624
2630
|
if (s.charCodeAt(l) === 58 ? (u = ie, l++) : (u = r, f === 0 && b(W)), u !== r) {
|
|
2625
2631
|
for (v = [], _ = w(); _ !== r; )
|
|
2626
2632
|
v.push(_), _ = w();
|
|
2627
|
-
v !== r ? (_ =
|
|
2633
|
+
v !== r ? (_ = dr(), _ !== r ? (x = i, a = oo(a, _), i = a) : (l = i, i = r)) : (l = i, i = r);
|
|
2628
2634
|
} else
|
|
2629
2635
|
l = i, i = r;
|
|
2630
2636
|
else
|
|
@@ -2635,33 +2641,33 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2635
2641
|
}
|
|
2636
2642
|
function fn() {
|
|
2637
2643
|
var i, a;
|
|
2638
|
-
return i = l, a =
|
|
2644
|
+
return i = l, a = Fi(), a !== r && (x = i, a = no(a)), i = a, i;
|
|
2639
2645
|
}
|
|
2640
|
-
function
|
|
2646
|
+
function dr() {
|
|
2641
2647
|
var i, a, p, u, v, _;
|
|
2642
2648
|
if (i = l, s.charCodeAt(l) === 40 ? (a = S, l++) : (a = r, f === 0 && b(k)), a !== r) {
|
|
2643
2649
|
for (p = [], u = w(); u !== r; )
|
|
2644
2650
|
p.push(u), u = w();
|
|
2645
|
-
p !== r ? (u =
|
|
2651
|
+
p !== r ? (u = Bi(), u !== r ? (v = jt(), v !== r ? (s.charCodeAt(l) === 41 ? (_ = D, l++) : (_ = r, f === 0 && b(j)), _ !== r ? (x = i, a = ao(u, v), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
|
|
2646
2652
|
} else
|
|
2647
2653
|
l = i, i = r;
|
|
2648
|
-
return i === r && (i =
|
|
2654
|
+
return i === r && (i = Fi()), i;
|
|
2649
2655
|
}
|
|
2650
|
-
function
|
|
2656
|
+
function Bi() {
|
|
2651
2657
|
var i, a, p, u;
|
|
2652
|
-
return i = l, a =
|
|
2658
|
+
return i = l, a = fr(), a !== r ? (p = zt(), p !== r ? (u = Bi(), u !== r ? (x = i, a = lo(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = fr()), i;
|
|
2653
2659
|
}
|
|
2654
|
-
function
|
|
2660
|
+
function fr() {
|
|
2655
2661
|
var i, a, p, u;
|
|
2656
|
-
return i = l, a =
|
|
2662
|
+
return i = l, a = Ui(), a !== r ? (p = Nt(), p !== r ? (u = fr(), u !== r ? (x = i, a = co(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = Ui()), i;
|
|
2657
2663
|
}
|
|
2658
|
-
function
|
|
2664
|
+
function Ui() {
|
|
2659
2665
|
var i, a, p;
|
|
2660
|
-
return i = l, a =
|
|
2666
|
+
return i = l, a = gr(), a !== r ? (p = dr(), p !== r ? (x = i, a = po(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = dr()), i;
|
|
2661
2667
|
}
|
|
2662
|
-
function
|
|
2668
|
+
function Fi() {
|
|
2663
2669
|
var i, a;
|
|
2664
|
-
return f++, i = l, a = Mt(), a !== r && (x = i, a = ho(a)), i = a, i === r && (i = l, a =
|
|
2670
|
+
return f++, i = l, a = Mt(), a !== r && (x = i, a = ho(a)), i = a, i === r && (i = l, a = Hi(), a !== r && (x = i, a = fo(a)), i = a), f--, i === r && (a = r, f === 0 && b(uo)), i;
|
|
2665
2671
|
}
|
|
2666
2672
|
function zt() {
|
|
2667
2673
|
var i, a, p, u, v;
|
|
@@ -2671,7 +2677,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2671
2677
|
else
|
|
2672
2678
|
a = r;
|
|
2673
2679
|
if (a !== r)
|
|
2674
|
-
if (s.substr(l, 2).toLowerCase() ===
|
|
2680
|
+
if (s.substr(l, 2).toLowerCase() === Zr ? (p = s.substr(l, 2), l += 2) : (p = r, f === 0 && b(Kr)), p !== r) {
|
|
2675
2681
|
if (u = [], v = w(), v !== r)
|
|
2676
2682
|
for (; v !== r; )
|
|
2677
2683
|
u.push(v), v = w();
|
|
@@ -2682,7 +2688,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2682
2688
|
l = i, i = r;
|
|
2683
2689
|
else
|
|
2684
2690
|
l = i, i = r;
|
|
2685
|
-
return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p =
|
|
2691
|
+
return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = Qi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(go)), i;
|
|
2686
2692
|
}
|
|
2687
2693
|
function Nt() {
|
|
2688
2694
|
var i, a, p, u, v;
|
|
@@ -2692,7 +2698,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2692
2698
|
else
|
|
2693
2699
|
a = r;
|
|
2694
2700
|
if (a !== r)
|
|
2695
|
-
if (s.substr(l, 3).toLowerCase() ===
|
|
2701
|
+
if (s.substr(l, 3).toLowerCase() === Xr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Vr)), p !== r) {
|
|
2696
2702
|
if (u = [], v = w(), v !== r)
|
|
2697
2703
|
for (; v !== r; )
|
|
2698
2704
|
u.push(v), v = w();
|
|
@@ -2703,11 +2709,11 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2703
2709
|
l = i, i = r;
|
|
2704
2710
|
else
|
|
2705
2711
|
l = i, i = r;
|
|
2706
|
-
return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p =
|
|
2712
|
+
return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = Wi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(vo)), i;
|
|
2707
2713
|
}
|
|
2708
|
-
function
|
|
2714
|
+
function gr() {
|
|
2709
2715
|
var i, a, p, u;
|
|
2710
|
-
if (f++, i = l, s.substr(l, 3).toLowerCase() ===
|
|
2716
|
+
if (f++, i = l, s.substr(l, 3).toLowerCase() === Gr ? (a = s.substr(l, 3), l += 3) : (a = r, f === 0 && b(Jr)), a !== r) {
|
|
2711
2717
|
if (p = [], u = w(), u !== r)
|
|
2712
2718
|
for (; u !== r; )
|
|
2713
2719
|
p.push(u), u = w();
|
|
@@ -2716,22 +2722,22 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2716
2722
|
p !== r ? (a = [a, p], i = a) : (l = i, i = r);
|
|
2717
2723
|
} else
|
|
2718
2724
|
l = i, i = r;
|
|
2719
|
-
return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p =
|
|
2725
|
+
return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = Yi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(bo)), i;
|
|
2720
2726
|
}
|
|
2721
|
-
function
|
|
2727
|
+
function vr() {
|
|
2722
2728
|
var i;
|
|
2723
|
-
return f++, i = Mt(), i === r && (i =
|
|
2729
|
+
return f++, i = Mt(), i === r && (i = Hi()), f--, i === r && f === 0 && b(yo), i;
|
|
2724
2730
|
}
|
|
2725
2731
|
function Mt() {
|
|
2726
2732
|
var i, a, p, u, v, _;
|
|
2727
|
-
if (i = l, s.charCodeAt(l) === 34 ? (a =
|
|
2728
|
-
for (p = [], u =
|
|
2729
|
-
p.push(u), u =
|
|
2733
|
+
if (i = l, s.charCodeAt(l) === 34 ? (a = nt, l++) : (a = r, f === 0 && b(at)), a !== r) {
|
|
2734
|
+
for (p = [], u = Qe(); u !== r; )
|
|
2735
|
+
p.push(u), u = Qe();
|
|
2730
2736
|
if (p !== r)
|
|
2731
|
-
if (u =
|
|
2732
|
-
for (v = [], _ =
|
|
2733
|
-
v.push(_), _ =
|
|
2734
|
-
v !== r ? (s.charCodeAt(l) === 34 ? (_ =
|
|
2737
|
+
if (u = pt(), u !== r) {
|
|
2738
|
+
for (v = [], _ = Qe(); _ !== r; )
|
|
2739
|
+
v.push(_), _ = Qe();
|
|
2740
|
+
v !== r ? (s.charCodeAt(l) === 34 ? (_ = nt, l++) : (_ = r, f === 0 && b(at)), _ !== r ? (x = i, a = or(p, u, v), i = a) : (l = i, i = r)) : (l = i, i = r);
|
|
2735
2741
|
} else
|
|
2736
2742
|
l = i, i = r;
|
|
2737
2743
|
else
|
|
@@ -2739,44 +2745,44 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2739
2745
|
} else
|
|
2740
2746
|
l = i, i = r;
|
|
2741
2747
|
if (i === r)
|
|
2742
|
-
if (i = l, s.charCodeAt(l) === 34 ? (a =
|
|
2743
|
-
for (p = [], u =
|
|
2744
|
-
p.push(u), u =
|
|
2745
|
-
p !== r ? (s.charCodeAt(l) === 34 ? (u =
|
|
2748
|
+
if (i = l, s.charCodeAt(l) === 34 ? (a = nt, l++) : (a = r, f === 0 && b(at)), a !== r) {
|
|
2749
|
+
for (p = [], u = Qe(); u !== r; )
|
|
2750
|
+
p.push(u), u = Qe();
|
|
2751
|
+
p !== r ? (s.charCodeAt(l) === 34 ? (u = nt, l++) : (u = r, f === 0 && b(at)), u !== r ? (x = i, a = mo(p), i = a) : (l = i, i = r)) : (l = i, i = r);
|
|
2746
2752
|
} else
|
|
2747
2753
|
l = i, i = r;
|
|
2748
2754
|
return i;
|
|
2749
2755
|
}
|
|
2750
|
-
function
|
|
2756
|
+
function Qe() {
|
|
2751
2757
|
var i, a, p;
|
|
2752
|
-
return i =
|
|
2758
|
+
return i = br(), i === r && (i = l, s.charCodeAt(l) === 92 ? (a = lt, l++) : (a = r, f === 0 && b(ct)), a !== r ? ($o.test(s.charAt(l)) ? (p = s.charAt(l), l++) : (p = r, f === 0 && b(wo)), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = l, a = l, f++, p = pt(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (_o.test(s.charAt(l)) ? (p = s.charAt(l), l++) : (p = r, f === 0 && b(xo)), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r))), i;
|
|
2753
2759
|
}
|
|
2754
|
-
function
|
|
2760
|
+
function Hi() {
|
|
2755
2761
|
var i, a, p, u, v;
|
|
2756
|
-
for (i = l, a = [], p =
|
|
2757
|
-
a.push(p), p =
|
|
2762
|
+
for (i = l, a = [], p = We(); p !== r; )
|
|
2763
|
+
a.push(p), p = We();
|
|
2758
2764
|
if (a !== r)
|
|
2759
|
-
if (p =
|
|
2760
|
-
for (u = [], v =
|
|
2761
|
-
u.push(v), v =
|
|
2762
|
-
u !== r ? (x = i, a =
|
|
2765
|
+
if (p = pt(), p !== r) {
|
|
2766
|
+
for (u = [], v = We(); v !== r; )
|
|
2767
|
+
u.push(v), v = We();
|
|
2768
|
+
u !== r ? (x = i, a = or(a, p, u), i = a) : (l = i, i = r);
|
|
2763
2769
|
} else
|
|
2764
2770
|
l = i, i = r;
|
|
2765
2771
|
else
|
|
2766
2772
|
l = i, i = r;
|
|
2767
2773
|
if (i === r) {
|
|
2768
|
-
if (i = l, a = [], p =
|
|
2774
|
+
if (i = l, a = [], p = We(), p !== r)
|
|
2769
2775
|
for (; p !== r; )
|
|
2770
|
-
a.push(p), p =
|
|
2776
|
+
a.push(p), p = We();
|
|
2771
2777
|
else
|
|
2772
2778
|
a = r;
|
|
2773
2779
|
a !== r && (x = i, a = So(a)), i = a;
|
|
2774
2780
|
}
|
|
2775
2781
|
return i;
|
|
2776
2782
|
}
|
|
2777
|
-
function
|
|
2783
|
+
function We() {
|
|
2778
2784
|
var i, a, p, u, v;
|
|
2779
|
-
return i =
|
|
2785
|
+
return i = br(), i === r && (i = vn(), i === r && (i = bn(), i === r && (i = gn(), i === r && (i = l, a = l, f++, p = Ii(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (p = l, f++, u = yn(), f--, u === r ? p = void 0 : (l = p, p = r), p !== r ? (u = l, f++, v = pt(), f--, v === r ? u = void 0 : (l = u, u = r), u !== r ? (s.length > l ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(ei)), v !== r ? (x = i, a = kt(v), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r))))), i;
|
|
2780
2786
|
}
|
|
2781
2787
|
function gn() {
|
|
2782
2788
|
var i, a;
|
|
@@ -2787,10 +2793,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2787
2793
|
for (i = l, a = [], p = w(); p !== r; )
|
|
2788
2794
|
a.push(p), p = w();
|
|
2789
2795
|
if (a !== r)
|
|
2790
|
-
if (p =
|
|
2796
|
+
if (p = pt(), p !== r) {
|
|
2791
2797
|
for (u = [], v = w(); v !== r; )
|
|
2792
2798
|
u.push(v), v = w();
|
|
2793
|
-
u !== r ? (x = i, a =
|
|
2799
|
+
u !== r ? (x = i, a = or(a, p, u), i = a) : (l = i, i = r);
|
|
2794
2800
|
} else
|
|
2795
2801
|
l = i, i = r;
|
|
2796
2802
|
else
|
|
@@ -2800,44 +2806,44 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2800
2806
|
i.push(a), a = w();
|
|
2801
2807
|
return i;
|
|
2802
2808
|
}
|
|
2803
|
-
function
|
|
2809
|
+
function br() {
|
|
2804
2810
|
var i, a;
|
|
2805
|
-
return i = l, s.substr(l, 2) ===
|
|
2811
|
+
return i = l, s.substr(l, 2) === ti ? (a = ti, l += 2) : (a = r, f === 0 && b(Co)), a !== r && (x = i, a = ko()), i = a, i === r && (i = l, s.substr(l, 2) === ri ? (a = ri, l += 2) : (a = r, f === 0 && b(Eo)), a !== r && (x = i, a = Oo()), i = a, i === r && (i = l, s.substr(l, 2) === ii ? (a = ii, l += 2) : (a = r, f === 0 && b(Po)), a !== r && (x = i, a = To()), i = a)), i;
|
|
2806
2812
|
}
|
|
2807
2813
|
function vn() {
|
|
2808
2814
|
var i, a, p;
|
|
2809
|
-
return i = l, s.charCodeAt(l) === 92 ? (a =
|
|
2815
|
+
return i = l, s.charCodeAt(l) === 92 ? (a = lt, l++) : (a = r, f === 0 && b(ct)), a !== r ? (p = Ii(), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r), i;
|
|
2810
2816
|
}
|
|
2811
2817
|
function bn() {
|
|
2812
2818
|
var i, a, p;
|
|
2813
|
-
return i = l, s.charCodeAt(l) === 92 ? (a =
|
|
2819
|
+
return i = l, s.charCodeAt(l) === 92 ? (a = lt, l++) : (a = r, f === 0 && b(ct)), a !== r ? (s.substr(l, 2).toLowerCase() === Zr ? (p = s.substr(l, 2), l += 2) : (p = r, f === 0 && b(Kr)), p === r && (s.substr(l, 3).toLowerCase() === Xr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Vr)), p === r && (s.substr(l, 3).toLowerCase() === Gr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Jr)))), p !== r ? (x = i, a = Lo(p), i = a) : (l = i, i = r)) : (l = i, i = r), i;
|
|
2814
2820
|
}
|
|
2815
2821
|
function yn() {
|
|
2816
2822
|
var i;
|
|
2817
|
-
return i = zt(), i === r && (i = Nt(), i === r && (i =
|
|
2823
|
+
return i = zt(), i === r && (i = Nt(), i === r && (i = gr())), i;
|
|
2818
2824
|
}
|
|
2819
|
-
function
|
|
2825
|
+
function Ii() {
|
|
2820
2826
|
var i;
|
|
2821
2827
|
return Do.test(s.charAt(l)) ? (i = s.charAt(l), l++) : (i = r, f === 0 && b(zo)), i;
|
|
2822
2828
|
}
|
|
2823
|
-
function
|
|
2829
|
+
function qi() {
|
|
2824
2830
|
var i, a;
|
|
2825
|
-
return i = l, s.substr(l, 2) ===
|
|
2831
|
+
return i = l, s.substr(l, 2) === si ? (a = si, l += 2) : (a = r, f === 0 && b(No)), a !== r && (x = i, a = Mo()), i = a, i === r && (i = l, s.substr(l, 2) === oi ? (a = oi, l += 2) : (a = r, f === 0 && b(jo)), a !== r && (x = i, a = Ro()), i = a, i === r && (i = l, s.charCodeAt(l) === 60 ? (a = ni, l++) : (a = r, f === 0 && b(ai)), a !== r && (x = i, a = Bo()), i = a, i === r && (i = l, s.charCodeAt(l) === 62 ? (a = li, l++) : (a = r, f === 0 && b(ci)), a !== r && (x = i, a = Uo()), i = a))), i;
|
|
2826
2832
|
}
|
|
2827
2833
|
function w() {
|
|
2828
2834
|
var i;
|
|
2829
2835
|
return f++, Ho.test(s.charAt(l)) ? (i = s.charAt(l), l++) : (i = r, f === 0 && b(Io)), f--, i === r && f === 0 && b(Fo), i;
|
|
2830
2836
|
}
|
|
2831
|
-
function
|
|
2837
|
+
function pt() {
|
|
2832
2838
|
var i, a, p;
|
|
2833
|
-
return i = l, x = l, a = qo(), a ? a = void 0 : a = r, a !== r ? (s.substr(l, 14) ===
|
|
2839
|
+
return i = l, x = l, a = qo(), a ? a = void 0 : a = r, a !== r ? (s.substr(l, 14) === pi ? (p = pi, l += 14) : (p = r, f === 0 && b(Qo)), p !== r ? (x = i, a = Wo(), i = a) : (l = i, i = r)) : (l = i, i = r), i;
|
|
2834
2840
|
}
|
|
2835
|
-
function
|
|
2841
|
+
function Qi() {
|
|
2836
2842
|
var i, a, p, u, v;
|
|
2837
2843
|
for (i = l, a = [], p = w(); p !== r; )
|
|
2838
2844
|
a.push(p), p = w();
|
|
2839
2845
|
if (a !== r)
|
|
2840
|
-
if (s.substr(l, 2) ===
|
|
2846
|
+
if (s.substr(l, 2) === ui ? (p = ui, l += 2) : (p = r, f === 0 && b(Yo)), p !== r) {
|
|
2841
2847
|
for (u = [], v = w(); v !== r; )
|
|
2842
2848
|
u.push(v), v = w();
|
|
2843
2849
|
u !== r ? (x = i, a = Zo(), i = a) : (l = i, i = r);
|
|
@@ -2847,39 +2853,39 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2847
2853
|
l = i, i = r;
|
|
2848
2854
|
return i;
|
|
2849
2855
|
}
|
|
2850
|
-
function
|
|
2856
|
+
function Wi() {
|
|
2851
2857
|
var i, a, p, u, v;
|
|
2852
2858
|
for (i = l, a = [], p = w(); p !== r; )
|
|
2853
2859
|
a.push(p), p = w();
|
|
2854
2860
|
if (a !== r)
|
|
2855
|
-
if (s.substr(l, 2) ===
|
|
2861
|
+
if (s.substr(l, 2) === hi ? (p = hi, l += 2) : (p = r, f === 0 && b(Ko)), p !== r) {
|
|
2856
2862
|
for (u = [], v = w(); v !== r; )
|
|
2857
2863
|
u.push(v), v = w();
|
|
2858
|
-
u !== r ? (x = i, a =
|
|
2864
|
+
u !== r ? (x = i, a = di(), i = a) : (l = i, i = r);
|
|
2859
2865
|
} else
|
|
2860
2866
|
l = i, i = r;
|
|
2861
2867
|
else
|
|
2862
2868
|
l = i, i = r;
|
|
2863
|
-
return i === r && (i = l, s.charCodeAt(l) === 43 ? (a =
|
|
2869
|
+
return i === r && (i = l, s.charCodeAt(l) === 43 ? (a = fi, l++) : (a = r, f === 0 && b(gi)), a !== r && (x = i, a = di()), i = a), i;
|
|
2864
2870
|
}
|
|
2865
|
-
function
|
|
2871
|
+
function Yi() {
|
|
2866
2872
|
var i, a;
|
|
2867
|
-
return i = l, s.charCodeAt(l) === 45 ? (a =
|
|
2873
|
+
return i = l, s.charCodeAt(l) === 45 ? (a = vi, l++) : (a = r, f === 0 && b(bi)), a !== r && (x = i, a = yi()), i = a, i === r && (i = l, s.charCodeAt(l) === 33 ? (a = mi, l++) : (a = r, f === 0 && b($i)), a !== r && (x = i, a = yi()), i = a), i;
|
|
2868
2874
|
}
|
|
2869
2875
|
function mn() {
|
|
2870
2876
|
var i;
|
|
2871
|
-
return i = $n(), i === r && (i =
|
|
2877
|
+
return i = $n(), i === r && (i = Zi(), i === r && (i = wn())), i;
|
|
2872
2878
|
}
|
|
2873
2879
|
function $n() {
|
|
2874
2880
|
var i, a, p, u, v, _;
|
|
2875
|
-
if (i = l, a =
|
|
2881
|
+
if (i = l, a = Ye(), a !== r) {
|
|
2876
2882
|
for (p = [], u = w(); u !== r; )
|
|
2877
2883
|
p.push(u), u = w();
|
|
2878
2884
|
if (p !== r)
|
|
2879
2885
|
if (s.charCodeAt(l) === 58 ? (u = ie, l++) : (u = r, f === 0 && b(W)), u !== r) {
|
|
2880
2886
|
for (v = [], _ = w(); _ !== r; )
|
|
2881
2887
|
v.push(_), _ = w();
|
|
2882
|
-
v !== r ? (_ =
|
|
2888
|
+
v !== r ? (_ = Zi(), _ !== r ? (a = [a, p, u, v, _], i = a) : (l = i, i = r)) : (l = i, i = r);
|
|
2883
2889
|
} else
|
|
2884
2890
|
l = i, i = r;
|
|
2885
2891
|
else
|
|
@@ -2888,20 +2894,20 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2888
2894
|
l = i, i = r;
|
|
2889
2895
|
return i;
|
|
2890
2896
|
}
|
|
2891
|
-
function
|
|
2897
|
+
function Zi() {
|
|
2892
2898
|
var i;
|
|
2893
|
-
return i = _n(), i === r && (i =
|
|
2899
|
+
return i = _n(), i === r && (i = yr(), i === r && (i = xn(), i === r && (i = Sn(), i === r && (i = An(), i === r && (i = Cn()))))), i;
|
|
2894
2900
|
}
|
|
2895
2901
|
function wn() {
|
|
2896
2902
|
var i, a, p, u, v, _;
|
|
2897
|
-
if (i = l, s.substr(l, 8) ===
|
|
2903
|
+
if (i = l, s.substr(l, 8) === wi ? (a = wi, l += 8) : (a = r, f === 0 && b(Xo)), a !== r) {
|
|
2898
2904
|
for (p = [], u = w(); u !== r; )
|
|
2899
2905
|
p.push(u), u = w();
|
|
2900
2906
|
if (p !== r)
|
|
2901
2907
|
if (s.charCodeAt(l) === 58 ? (u = ie, l++) : (u = r, f === 0 && b(W)), u !== r) {
|
|
2902
2908
|
for (v = [], _ = w(); _ !== r; )
|
|
2903
2909
|
v.push(_), _ = w();
|
|
2904
|
-
v !== r ? (_ =
|
|
2910
|
+
v !== r ? (_ = Ye(), _ !== r ? (x = i, a = Vo(), i = a) : (l = i, i = r)) : (l = i, i = r);
|
|
2905
2911
|
} else
|
|
2906
2912
|
l = i, i = r;
|
|
2907
2913
|
else
|
|
@@ -2912,29 +2918,29 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2912
2918
|
}
|
|
2913
2919
|
function _n() {
|
|
2914
2920
|
var i, a, p, u, v, _, L;
|
|
2915
|
-
if (i = l, a =
|
|
2921
|
+
if (i = l, a = qi(), a !== r) {
|
|
2916
2922
|
for (p = [], u = w(); u !== r; )
|
|
2917
2923
|
p.push(u), u = w();
|
|
2918
|
-
p !== r ? (u =
|
|
2924
|
+
p !== r ? (u = Ye(), u !== r ? (x = i, a = _i(), i = a) : (l = i, i = r)) : (l = i, i = r);
|
|
2919
2925
|
} else
|
|
2920
2926
|
l = i, i = r;
|
|
2921
2927
|
if (i === r)
|
|
2922
2928
|
if (i = l, a = On(), a !== r) {
|
|
2923
2929
|
for (p = [], u = w(); u !== r; )
|
|
2924
2930
|
p.push(u), u = w();
|
|
2925
|
-
p !== r ? (u =
|
|
2931
|
+
p !== r ? (u = Ye(), u !== r ? (v = Vi(), v !== r ? (_ = Ye(), _ !== r ? (L = Pn(), L !== r ? (x = i, a = _i(), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
|
|
2926
2932
|
} else
|
|
2927
2933
|
l = i, i = r;
|
|
2928
2934
|
return i;
|
|
2929
2935
|
}
|
|
2930
|
-
function
|
|
2936
|
+
function yr() {
|
|
2931
2937
|
var i, a, p, u, v;
|
|
2932
2938
|
for (i = l, a = [], p = Rt(), p === r && (s.charCodeAt(l) === 42 ? (p = Et, l++) : (p = r, f === 0 && b(Ot))); p !== r; )
|
|
2933
2939
|
a.push(p), p = Rt(), p === r && (s.charCodeAt(l) === 42 ? (p = Et, l++) : (p = r, f === 0 && b(Ot)));
|
|
2934
2940
|
if (a !== r)
|
|
2935
|
-
if (s.charCodeAt(l) === 63 ? (p =
|
|
2936
|
-
for (u = [], v =
|
|
2937
|
-
u.push(v), v =
|
|
2941
|
+
if (s.charCodeAt(l) === 63 ? (p = xi, l++) : (p = r, f === 0 && b(Si)), p !== r) {
|
|
2942
|
+
for (u = [], v = yr(); v !== r; )
|
|
2943
|
+
u.push(v), v = yr();
|
|
2938
2944
|
u !== r ? (x = i, a = Go(), i = a) : (l = i, i = r);
|
|
2939
2945
|
} else
|
|
2940
2946
|
l = i, i = r;
|
|
@@ -2944,20 +2950,20 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2944
2950
|
}
|
|
2945
2951
|
function xn() {
|
|
2946
2952
|
var i, a, p, u;
|
|
2947
|
-
if (i = l, s.charCodeAt(l) === 47 ? (a =
|
|
2948
|
-
for (p = [],
|
|
2949
|
-
p.push(u),
|
|
2950
|
-
p !== r ? (s.charCodeAt(l) === 47 ? (u =
|
|
2953
|
+
if (i = l, s.charCodeAt(l) === 47 ? (a = nr, l++) : (a = r, f === 0 && b(ar)), a !== r) {
|
|
2954
|
+
for (p = [], Ai.test(s.charAt(l)) ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(Ci)); u !== r; )
|
|
2955
|
+
p.push(u), Ai.test(s.charAt(l)) ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(Ci));
|
|
2956
|
+
p !== r ? (s.charCodeAt(l) === 47 ? (u = nr, l++) : (u = r, f === 0 && b(ar)), u !== r ? (x = i, a = Jo(), i = a) : (l = i, i = r)) : (l = i, i = r);
|
|
2951
2957
|
} else
|
|
2952
2958
|
l = i, i = r;
|
|
2953
2959
|
return i;
|
|
2954
2960
|
}
|
|
2955
2961
|
function Sn() {
|
|
2956
2962
|
var i, a, p, u, v;
|
|
2957
|
-
if (i = l, a =
|
|
2958
|
-
if (s.charCodeAt(l) === 126 ? (p =
|
|
2959
|
-
for (u = [],
|
|
2960
|
-
u.push(v),
|
|
2963
|
+
if (i = l, a = Ki(), a !== r)
|
|
2964
|
+
if (s.charCodeAt(l) === 126 ? (p = lr, l++) : (p = r, f === 0 && b(cr)), p !== r) {
|
|
2965
|
+
for (u = [], Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe)); v !== r; )
|
|
2966
|
+
u.push(v), Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe));
|
|
2961
2967
|
u !== r ? (x = i, a = en(), i = a) : (l = i, i = r);
|
|
2962
2968
|
} else
|
|
2963
2969
|
l = i, i = r;
|
|
@@ -2968,9 +2974,9 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2968
2974
|
function An() {
|
|
2969
2975
|
var i, a, p, u, v;
|
|
2970
2976
|
if (i = l, a = Mt(), a !== r)
|
|
2971
|
-
if (s.charCodeAt(l) === 126 ? (p =
|
|
2972
|
-
for (u = [],
|
|
2973
|
-
u.push(v),
|
|
2977
|
+
if (s.charCodeAt(l) === 126 ? (p = lr, l++) : (p = r, f === 0 && b(cr)), p !== r) {
|
|
2978
|
+
for (u = [], Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe)); v !== r; )
|
|
2979
|
+
u.push(v), Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe));
|
|
2974
2980
|
u !== r ? (x = i, a = tn(), i = a) : (l = i, i = r);
|
|
2975
2981
|
} else
|
|
2976
2982
|
l = i, i = r;
|
|
@@ -2980,10 +2986,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2980
2986
|
}
|
|
2981
2987
|
function Cn() {
|
|
2982
2988
|
var i, a, p, u, v;
|
|
2983
|
-
if (i = l, a =
|
|
2984
|
-
if (s.charCodeAt(l) === 94 ? (p =
|
|
2985
|
-
for (u = [],
|
|
2986
|
-
u.push(v),
|
|
2989
|
+
if (i = l, a = Ye(), a !== r)
|
|
2990
|
+
if (s.charCodeAt(l) === 94 ? (p = ki, l++) : (p = r, f === 0 && b(Ei)), p !== r) {
|
|
2991
|
+
for (u = [], Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe)); v !== r; )
|
|
2992
|
+
u.push(v), Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe));
|
|
2987
2993
|
u !== r ? (x = i, a = rn(), i = a) : (l = i, i = r);
|
|
2988
2994
|
} else
|
|
2989
2995
|
l = i, i = r;
|
|
@@ -2991,11 +2997,11 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2991
2997
|
l = i, i = r;
|
|
2992
2998
|
return i;
|
|
2993
2999
|
}
|
|
2994
|
-
function
|
|
3000
|
+
function Ye() {
|
|
2995
3001
|
var i;
|
|
2996
|
-
return i = Mt(), i === r && (i =
|
|
3002
|
+
return i = Mt(), i === r && (i = Ki()), i;
|
|
2997
3003
|
}
|
|
2998
|
-
function
|
|
3004
|
+
function Ki() {
|
|
2999
3005
|
var i, a;
|
|
3000
3006
|
if (i = [], a = Rt(), a !== r)
|
|
3001
3007
|
for (; a !== r; )
|
|
@@ -3006,21 +3012,21 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3006
3012
|
}
|
|
3007
3013
|
function Rt() {
|
|
3008
3014
|
var i, a, p, u;
|
|
3009
|
-
return i =
|
|
3015
|
+
return i = br(), i === r && (i = En(), i === r && (i = l, a = l, f++, p = Xi(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (p = l, f++, u = kn(), f--, u === r ? p = void 0 : (l = p, p = r), p !== r ? (s.length > l ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(ei)), u !== r ? (a = [a, p, u], i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r))), i;
|
|
3010
3016
|
}
|
|
3011
3017
|
function kn() {
|
|
3012
3018
|
var i;
|
|
3013
|
-
return i = zt(), i === r && (i = Nt(), i === r && (i =
|
|
3019
|
+
return i = zt(), i === r && (i = Nt(), i === r && (i = Qi(), i === r && (i = Wi(), i === r && (i = Yi(), i === r && (i = Vi()))))), i;
|
|
3014
3020
|
}
|
|
3015
3021
|
function En() {
|
|
3016
3022
|
var i, a, p;
|
|
3017
|
-
return i = l, s.charCodeAt(l) === 92 ? (a =
|
|
3023
|
+
return i = l, s.charCodeAt(l) === 92 ? (a = lt, l++) : (a = r, f === 0 && b(ct)), a !== r ? (p = Xi(), p !== r ? (x = i, a = sn(), i = a) : (l = i, i = r)) : (l = i, i = r), i;
|
|
3018
3024
|
}
|
|
3019
|
-
function
|
|
3025
|
+
function Xi() {
|
|
3020
3026
|
var i;
|
|
3021
|
-
return s.charCodeAt(l) === 43 ? (i =
|
|
3027
|
+
return s.charCodeAt(l) === 43 ? (i = fi, l++) : (i = r, f === 0 && b(gi)), i === r && (s.charCodeAt(l) === 45 ? (i = vi, l++) : (i = r, f === 0 && b(bi)), i === r && (s.charCodeAt(l) === 61 ? (i = on, l++) : (i = r, f === 0 && b(nn)), i === r && (s.charCodeAt(l) === 62 ? (i = li, l++) : (i = r, f === 0 && b(ci)), i === r && (s.charCodeAt(l) === 60 ? (i = ni, l++) : (i = r, f === 0 && b(ai)), i === r && (s.charCodeAt(l) === 33 ? (i = mi, l++) : (i = r, f === 0 && b($i)), i === r && (s.charCodeAt(l) === 40 ? (i = S, l++) : (i = r, f === 0 && b(k)), i === r && (s.charCodeAt(l) === 41 ? (i = D, l++) : (i = r, f === 0 && b(j)), i === r && (s.charCodeAt(l) === 123 ? (i = He, l++) : (i = r, f === 0 && b(rr)), i === r && (s.charCodeAt(l) === 125 ? (i = ir, l++) : (i = r, f === 0 && b(sr)), i === r && (s.charCodeAt(l) === 91 ? (i = Oi, l++) : (i = r, f === 0 && b(Pi)), i === r && (s.charCodeAt(l) === 93 ? (i = Ti, l++) : (i = r, f === 0 && b(Li)), i === r && (s.charCodeAt(l) === 94 ? (i = ki, l++) : (i = r, f === 0 && b(Ei)), i === r && (s.charCodeAt(l) === 34 ? (i = nt, l++) : (i = r, f === 0 && b(at)), i === r && (s.charCodeAt(l) === 126 ? (i = lr, l++) : (i = r, f === 0 && b(cr)), i === r && (s.charCodeAt(l) === 42 ? (i = Et, l++) : (i = r, f === 0 && b(Ot)), i === r && (s.charCodeAt(l) === 63 ? (i = xi, l++) : (i = r, f === 0 && b(Si)), i === r && (s.charCodeAt(l) === 58 ? (i = ie, l++) : (i = r, f === 0 && b(W)), i === r && (s.charCodeAt(l) === 92 ? (i = lt, l++) : (i = r, f === 0 && b(ct)), i === r && (s.charCodeAt(l) === 47 ? (i = nr, l++) : (i = r, f === 0 && b(ar))))))))))))))))))))), i;
|
|
3022
3028
|
}
|
|
3023
|
-
function
|
|
3029
|
+
function Vi() {
|
|
3024
3030
|
var i, a, p, u, v;
|
|
3025
3031
|
if (i = l, a = [], p = w(), p !== r)
|
|
3026
3032
|
for (; p !== r; )
|
|
@@ -3028,7 +3034,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3028
3034
|
else
|
|
3029
3035
|
a = r;
|
|
3030
3036
|
if (a !== r)
|
|
3031
|
-
if (s.substr(l, 2) ===
|
|
3037
|
+
if (s.substr(l, 2) === Di ? (p = Di, l += 2) : (p = r, f === 0 && b(an)), p !== r) {
|
|
3032
3038
|
if (u = [], v = w(), v !== r)
|
|
3033
3039
|
for (; v !== r; )
|
|
3034
3040
|
u.push(v), v = w();
|
|
@@ -3043,18 +3049,18 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3043
3049
|
}
|
|
3044
3050
|
function On() {
|
|
3045
3051
|
var i;
|
|
3046
|
-
return s.charCodeAt(l) === 91 ? (i =
|
|
3052
|
+
return s.charCodeAt(l) === 91 ? (i = Oi, l++) : (i = r, f === 0 && b(Pi)), i === r && (s.charCodeAt(l) === 123 ? (i = He, l++) : (i = r, f === 0 && b(rr))), i;
|
|
3047
3053
|
}
|
|
3048
3054
|
function Pn() {
|
|
3049
3055
|
var i;
|
|
3050
|
-
return s.charCodeAt(l) === 93 ? (i =
|
|
3056
|
+
return s.charCodeAt(l) === 93 ? (i = Ti, l++) : (i = r, f === 0 && b(Li)), i === r && (s.charCodeAt(l) === 125 ? (i = ir, l++) : (i = r, f === 0 && b(sr))), i;
|
|
3051
3057
|
}
|
|
3052
|
-
const { errorOnLuceneSyntax: Tn, parseCursor: Ln, cursorSymbol: Dn, allowLeadingWildcards: zn = !0, helpers: { nodeTypes:
|
|
3058
|
+
const { errorOnLuceneSyntax: Tn, parseCursor: Ln, cursorSymbol: Dn, allowLeadingWildcards: zn = !0, helpers: { nodeTypes: ke } } = n, oe = ke.function.buildNodeWithArgumentNodes, be = ke.literal.buildNode, Nn = ke.wildcard.buildNode, Mn = ke.namedArg.buildNode, { wildcardSymbol: Gi } = ke.wildcard;
|
|
3053
3059
|
if (Tt = h(), Tt !== r && l === s.length)
|
|
3054
3060
|
return Tt;
|
|
3055
|
-
throw Tt !== r && l < s.length && b({ type: "end", description: "end of input" }),
|
|
3061
|
+
throw Tt !== r && l < s.length && b({ type: "end", description: "end of input" }), Ni(
|
|
3056
3062
|
null,
|
|
3057
|
-
|
|
3063
|
+
pr,
|
|
3058
3064
|
se < s.length ? s.charAt(se) : null,
|
|
3059
3065
|
se < s.length ? Lt(se, se + 1) : Lt(se, se)
|
|
3060
3066
|
);
|
|
@@ -3063,11 +3069,11 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3063
3069
|
SyntaxError: t,
|
|
3064
3070
|
parse: o
|
|
3065
3071
|
};
|
|
3066
|
-
}(),
|
|
3072
|
+
}(), Hr = (e, t = {}, o = er) => {
|
|
3067
3073
|
if (typeof e > "u")
|
|
3068
3074
|
throw new Error("expression must be a string, got undefined instead");
|
|
3069
3075
|
return o(e, { ...t, helpers: { nodeTypes: de } });
|
|
3070
|
-
},
|
|
3076
|
+
}, et = (e, t = {}) => Hr(
|
|
3071
3077
|
e,
|
|
3072
3078
|
{
|
|
3073
3079
|
...t,
|
|
@@ -3076,13 +3082,13 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3076
3082
|
er
|
|
3077
3083
|
), Yt = (e, t = {}) => {
|
|
3078
3084
|
try {
|
|
3079
|
-
return
|
|
3085
|
+
return Hr(e, t, er);
|
|
3080
3086
|
} catch (o) {
|
|
3081
3087
|
throw o.name === "SyntaxError" ? new Us(o, e) : o;
|
|
3082
3088
|
}
|
|
3083
3089
|
}, Ta = (e) => {
|
|
3084
3090
|
try {
|
|
3085
|
-
return
|
|
3091
|
+
return Hr(e, { errorOnLuceneSyntax: !0 }, er), !1;
|
|
3086
3092
|
} catch (t) {
|
|
3087
3093
|
return t.message.startsWith("Lucene");
|
|
3088
3094
|
}
|
|
@@ -3097,7 +3103,7 @@ function za(e) {
|
|
|
3097
3103
|
return e.includes(fe) ? {
|
|
3098
3104
|
type: "wildcard",
|
|
3099
3105
|
value: e
|
|
3100
|
-
} :
|
|
3106
|
+
} : et(e);
|
|
3101
3107
|
}
|
|
3102
3108
|
function Fs(e, t) {
|
|
3103
3109
|
const { value: o } = e, s = o.split(fe).map(La).join("[\\s\\S]*");
|
|
@@ -3107,7 +3113,7 @@ function Na(e) {
|
|
|
3107
3113
|
const { value: t } = e;
|
|
3108
3114
|
return t.split(fe).join("*");
|
|
3109
3115
|
}
|
|
3110
|
-
function
|
|
3116
|
+
function Tr(e) {
|
|
3111
3117
|
const { value: t } = e;
|
|
3112
3118
|
return t.split(fe).map(Da).join("*");
|
|
3113
3119
|
}
|
|
@@ -3121,13 +3127,13 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3121
3127
|
hasLeadingWildcard: Ma,
|
|
3122
3128
|
test: Fs,
|
|
3123
3129
|
toOpenSearchQuery: Na,
|
|
3124
|
-
toQueryStringQuery:
|
|
3130
|
+
toQueryStringQuery: Tr,
|
|
3125
3131
|
wildcardSymbol: fe
|
|
3126
3132
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3127
|
-
function
|
|
3133
|
+
function Ir(e, t) {
|
|
3128
3134
|
if (!t) return [];
|
|
3129
3135
|
if (e.type === "literal") {
|
|
3130
|
-
const o =
|
|
3136
|
+
const o = Fr(e), s = t.fields.find((n) => n.name === o);
|
|
3131
3137
|
return s ? [s] : [];
|
|
3132
3138
|
} else if (e.type === "wildcard")
|
|
3133
3139
|
return t.fields.filter((s) => Fs(e, s.name));
|
|
@@ -3139,7 +3145,7 @@ function Hs(e, t, o) {
|
|
|
3139
3145
|
};
|
|
3140
3146
|
if (!t || s.type === "wildcard" && !o)
|
|
3141
3147
|
return s;
|
|
3142
|
-
const r =
|
|
3148
|
+
const r = Ir(s, t).reduce((c, h) => {
|
|
3143
3149
|
const d = h.subType && h.subType.nested ? h.subType.nested.path : void 0;
|
|
3144
3150
|
return o && !d ? [
|
|
3145
3151
|
...c,
|
|
@@ -3162,7 +3168,7 @@ function Ra(e, t, o = !1) {
|
|
|
3162
3168
|
throw new Error("fieldName is a required argument");
|
|
3163
3169
|
if (t === void 0)
|
|
3164
3170
|
throw new Error("value is a required argument");
|
|
3165
|
-
const s = typeof e == "string" ?
|
|
3171
|
+
const s = typeof e == "string" ? et(e) : Ge(e), n = typeof t == "string" ? et(t) : Ge(t), r = Ge(o);
|
|
3166
3172
|
return {
|
|
3167
3173
|
arguments: [s, n, r]
|
|
3168
3174
|
};
|
|
@@ -3178,7 +3184,7 @@ function Ba(e, t, o = {}, s = {}) {
|
|
|
3178
3184
|
if (h.value === null)
|
|
3179
3185
|
return r.type === "wildcard" ? {
|
|
3180
3186
|
query_string: {
|
|
3181
|
-
query:
|
|
3187
|
+
query: Tr(r)
|
|
3182
3188
|
}
|
|
3183
3189
|
} : {
|
|
3184
3190
|
multi_match: {
|
|
@@ -3187,7 +3193,7 @@ function Ba(e, t, o = {}, s = {}) {
|
|
|
3187
3193
|
lenient: !0
|
|
3188
3194
|
}
|
|
3189
3195
|
};
|
|
3190
|
-
const y = t ?
|
|
3196
|
+
const y = t ? Ir(h, t) : [];
|
|
3191
3197
|
y && y.length === 0 && y.push({
|
|
3192
3198
|
name: R(h),
|
|
3193
3199
|
scripted: !1,
|
|
@@ -3198,8 +3204,8 @@ function Ba(e, t, o = {}, s = {}) {
|
|
|
3198
3204
|
bool: {
|
|
3199
3205
|
should: y.reduce((j, F) => {
|
|
3200
3206
|
const ie = (W) => {
|
|
3201
|
-
var
|
|
3202
|
-
return h.type !== "wildcard" || !((
|
|
3207
|
+
var He;
|
|
3208
|
+
return h.type !== "wildcard" || !((He = F.subType) != null && He.nested) || s != null && s.nested ? W : {
|
|
3203
3209
|
nested: {
|
|
3204
3210
|
path: F.subType.nested.path,
|
|
3205
3211
|
query: W,
|
|
@@ -3224,7 +3230,7 @@ function Ba(e, t, o = {}, s = {}) {
|
|
|
3224
3230
|
ie({
|
|
3225
3231
|
query_string: {
|
|
3226
3232
|
fields: [F.name],
|
|
3227
|
-
query:
|
|
3233
|
+
query: Tr(r)
|
|
3228
3234
|
}
|
|
3229
3235
|
})
|
|
3230
3236
|
];
|
|
@@ -3323,7 +3329,7 @@ function Xa(e, ...t) {
|
|
|
3323
3329
|
return o;
|
|
3324
3330
|
}
|
|
3325
3331
|
function Va(e, t) {
|
|
3326
|
-
const o = Xa(t, "gt", "lt", "gte", "lte", "format"), s = typeof e == "string" ?
|
|
3332
|
+
const o = Xa(t, "gt", "lt", "gte", "lte", "format"), s = typeof e == "string" ? et(e) : de.literal.buildNode(e), n = Object.entries(o).map((r) => {
|
|
3327
3333
|
let [c, h] = r;
|
|
3328
3334
|
return de.namedArg.buildNode(c, h);
|
|
3329
3335
|
});
|
|
@@ -3336,7 +3342,7 @@ function Ga(e, t, o = {}, s = {}) {
|
|
|
3336
3342
|
n,
|
|
3337
3343
|
t,
|
|
3338
3344
|
s != null && s.nested ? s.nested.path : void 0
|
|
3339
|
-
), h = t ?
|
|
3345
|
+
), h = t ? Ir(c, t) : [], d = Ja(r), m = Object.fromEntries(Object.entries(d).map(([y, C]) => [y, R(C)]));
|
|
3340
3346
|
return h && h.length === 0 && h.push({
|
|
3341
3347
|
name: R(c),
|
|
3342
3348
|
scripted: !1,
|
|
@@ -3390,7 +3396,7 @@ const el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3390
3396
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3391
3397
|
function tl(e) {
|
|
3392
3398
|
return {
|
|
3393
|
-
arguments: [
|
|
3399
|
+
arguments: [Ge(e)]
|
|
3394
3400
|
};
|
|
3395
3401
|
}
|
|
3396
3402
|
function rl(e, t, o = {}, s = {}) {
|
|
@@ -3399,7 +3405,7 @@ function rl(e, t, o = {}, s = {}) {
|
|
|
3399
3405
|
} = e, r = {
|
|
3400
3406
|
...n,
|
|
3401
3407
|
value: s != null && s.nested ? `${s.nested.path}.${n.value}` : n.value
|
|
3402
|
-
}, c =
|
|
3408
|
+
}, c = Fr(r), h = ((t == null ? void 0 : t.fields) || []).find((d) => d.name === c);
|
|
3403
3409
|
if (h && h.scripted)
|
|
3404
3410
|
throw new Error("Exists query does not support scripted fields");
|
|
3405
3411
|
return {
|
|
@@ -3413,7 +3419,7 @@ const il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3413
3419
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3414
3420
|
function sl(e, t) {
|
|
3415
3421
|
return {
|
|
3416
|
-
arguments: [typeof e == "string" ?
|
|
3422
|
+
arguments: [typeof e == "string" ? et(e) : Ge(e), t]
|
|
3417
3423
|
};
|
|
3418
3424
|
}
|
|
3419
3425
|
function ol(e, t, o = {}, s = {}) {
|
|
@@ -3434,7 +3440,7 @@ const nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3434
3440
|
__proto__: null,
|
|
3435
3441
|
buildNodeParams: sl,
|
|
3436
3442
|
toOpenSearchQuery: ol
|
|
3437
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3443
|
+
}, Symbol.toStringTag, { value: "Module" })), qr = {
|
|
3438
3444
|
is: Ua,
|
|
3439
3445
|
and: Ia,
|
|
3440
3446
|
or: Wa,
|
|
@@ -3444,7 +3450,7 @@ const nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3444
3450
|
nested: nl
|
|
3445
3451
|
};
|
|
3446
3452
|
function al(e, ...t) {
|
|
3447
|
-
const o =
|
|
3453
|
+
const o = qr[e];
|
|
3448
3454
|
if (o === void 0)
|
|
3449
3455
|
throw new Error(`Unknown function "${e}"`);
|
|
3450
3456
|
return {
|
|
@@ -3456,7 +3462,7 @@ function al(e, ...t) {
|
|
|
3456
3462
|
};
|
|
3457
3463
|
}
|
|
3458
3464
|
function ll(e, t) {
|
|
3459
|
-
if (
|
|
3465
|
+
if (qr[e] === void 0)
|
|
3460
3466
|
throw new Error(`Unknown function "${e}"`);
|
|
3461
3467
|
return {
|
|
3462
3468
|
type: "function",
|
|
@@ -3465,7 +3471,7 @@ function ll(e, t) {
|
|
|
3465
3471
|
};
|
|
3466
3472
|
}
|
|
3467
3473
|
function cl(e, t, o, s) {
|
|
3468
|
-
return
|
|
3474
|
+
return qr[e.function].toOpenSearchQuery(e, t, o, s);
|
|
3469
3475
|
}
|
|
3470
3476
|
const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3471
3477
|
__proto__: null,
|
|
@@ -3495,19 +3501,19 @@ const dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3495
3501
|
literal: Pa,
|
|
3496
3502
|
namedArg: dl,
|
|
3497
3503
|
wildcard: ja
|
|
3498
|
-
}, fl = fe, gl = (e, t) => "(" + (e.arguments || []).map((s) =>
|
|
3504
|
+
}, fl = fe, gl = (e, t) => "(" + (e.arguments || []).map((s) => Me(s, t)).join(" AND ") + ")", vl = (e, t) => {
|
|
3499
3505
|
var {
|
|
3500
3506
|
arguments: [o, s, n]
|
|
3501
3507
|
} = e;
|
|
3502
3508
|
let r = "=";
|
|
3503
3509
|
s.type === "wildcard" && (r = "");
|
|
3504
|
-
let c =
|
|
3510
|
+
let c = Me(s);
|
|
3505
3511
|
n = n.value || typeof c == "string", s.type === "literal" && n && (c = `'${c}'`), s.type === "literal" && !n && (c = `${c}`);
|
|
3506
|
-
let h =
|
|
3512
|
+
let h = Me(o);
|
|
3507
3513
|
return h == null ? t && n ? `(${t.filter((d) => d.type === "string").map((d) => `${d.name} ILIKE '%${s.value}%'`).join(" OR ")})` : t && !n && (s.value === !0 || s.value === !1) ? `(${t.filter((d) => d.type === "boolean").map((d) => `${d.name}=${s.value}`).join(" OR ")})` : "" : h + r + c;
|
|
3508
|
-
}, bl = (e, t) => "(" + (e.arguments || []).map((s) =>
|
|
3514
|
+
}, bl = (e, t) => "(" + (e.arguments || []).map((s) => Me(s, t)).join(" OR ") + ")", yl = (e, t) => {
|
|
3509
3515
|
const [o] = e.arguments;
|
|
3510
|
-
return "NOT (" +
|
|
3516
|
+
return "NOT (" + Me(o, t) + ")";
|
|
3511
3517
|
}, ml = {
|
|
3512
3518
|
gt: ">",
|
|
3513
3519
|
lt: "<",
|
|
@@ -3517,7 +3523,7 @@ const dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3517
3523
|
const [t, o] = e.arguments;
|
|
3518
3524
|
let s = o.value;
|
|
3519
3525
|
const n = ml[o.name];
|
|
3520
|
-
let r =
|
|
3526
|
+
let r = Me(s);
|
|
3521
3527
|
return s.type === "literal" && (r = `${r}`), `${t.value} ${n} ${r}`;
|
|
3522
3528
|
}, wl = (e) => {
|
|
3523
3529
|
const [t] = e.arguments;
|
|
@@ -3537,7 +3543,7 @@ const dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3537
3543
|
const { value: t } = e;
|
|
3538
3544
|
return ` LIKE '${t.split(fl).join("%")}'`;
|
|
3539
3545
|
}
|
|
3540
|
-
},
|
|
3546
|
+
}, Me = (e, t) => {
|
|
3541
3547
|
const o = Sl[e.type];
|
|
3542
3548
|
return o(e, t);
|
|
3543
3549
|
}, Al = fe, Cl = (e) => ({ $and: (e.arguments || []).map((s) => we(s)) }), kl = (e) => {
|
|
@@ -3592,10 +3598,10 @@ const dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3592
3598
|
DQLSyntaxError: Us,
|
|
3593
3599
|
doesKueryExpressionHaveLuceneSyntaxError: Ta,
|
|
3594
3600
|
fromKueryExpression: Yt,
|
|
3595
|
-
fromLiteralExpression:
|
|
3601
|
+
fromLiteralExpression: et,
|
|
3596
3602
|
nodeTypes: de,
|
|
3597
3603
|
parse: Yt,
|
|
3598
|
-
toCql:
|
|
3604
|
+
toCql: Me,
|
|
3599
3605
|
toDSL: R,
|
|
3600
3606
|
toMongo: we,
|
|
3601
3607
|
toOpenSearchQuery: R
|
|
@@ -3647,12 +3653,12 @@ spectric-button{
|
|
|
3647
3653
|
top: 0;
|
|
3648
3654
|
}
|
|
3649
3655
|
`;
|
|
3650
|
-
var jl = Object.defineProperty, Rl = Object.getOwnPropertyDescriptor,
|
|
3656
|
+
var jl = Object.defineProperty, Rl = Object.getOwnPropertyDescriptor, Ae = (e, t, o, s) => {
|
|
3651
3657
|
for (var n = s > 1 ? void 0 : s ? Rl(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
3652
3658
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
3653
3659
|
return s && n && jl(t, o, n), n;
|
|
3654
3660
|
};
|
|
3655
|
-
const
|
|
3661
|
+
const Qr = "spectric-dialog";
|
|
3656
3662
|
let Y = class extends z {
|
|
3657
3663
|
constructor() {
|
|
3658
3664
|
super(...arguments), this.open = !1, this.dismissable = !0, this.hideBackdrop = !1, this.title = "", this.closeOnEscape = !0, this.closeOnOutsideClick = !0, this.clickHandler = async (e) => {
|
|
@@ -3661,27 +3667,33 @@ let Y = class extends z {
|
|
|
3661
3667
|
}, this._handleKeyDown = (e) => {
|
|
3662
3668
|
this.closeOnEscape || e.preventDefault(), this.open && this.closeOnEscape && e.key === "Escape" && (this.open = !1);
|
|
3663
3669
|
}, this._onClose = (e) => {
|
|
3664
|
-
e.preventDefault(), e.stopPropagation(), this.open = !1, this.dispatchEvent(
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3670
|
+
e.preventDefault(), e.stopPropagation(), this.open = !1, this.dispatchEvent(
|
|
3671
|
+
new CustomEvent("close", {
|
|
3672
|
+
bubbles: !0,
|
|
3673
|
+
composed: !0
|
|
3674
|
+
})
|
|
3675
|
+
);
|
|
3668
3676
|
};
|
|
3669
3677
|
}
|
|
3670
3678
|
static display(e, t) {
|
|
3671
|
-
let o = document.createElement(
|
|
3679
|
+
let o = document.createElement(Qr);
|
|
3672
3680
|
o.addEventListener("close", () => {
|
|
3673
3681
|
o.remove();
|
|
3674
3682
|
});
|
|
3675
3683
|
for (let n in e)
|
|
3676
3684
|
o[n] = e[n];
|
|
3677
3685
|
let s = document.createDocumentFragment();
|
|
3678
|
-
return
|
|
3686
|
+
return Xt(t, s), o.appendChild(s), o.open = !0, document.body.appendChild(o), o;
|
|
3679
3687
|
}
|
|
3680
3688
|
connectedCallback() {
|
|
3681
|
-
super.connectedCallback(), this.dialogElement.then(
|
|
3689
|
+
super.connectedCallback(), this.dialogElement.then(
|
|
3690
|
+
(e) => e.addEventListener("keydown", this._handleKeyDown)
|
|
3691
|
+
);
|
|
3682
3692
|
}
|
|
3683
3693
|
disconnectedCallback() {
|
|
3684
|
-
super.disconnectedCallback(), this.dialogElement.then(
|
|
3694
|
+
super.disconnectedCallback(), this.dialogElement.then(
|
|
3695
|
+
(e) => e.removeEventListener("keydown", this._handleKeyDown)
|
|
3696
|
+
);
|
|
3685
3697
|
}
|
|
3686
3698
|
updated(e) {
|
|
3687
3699
|
e.has("open") && this.dialogElement.then((t) => {
|
|
@@ -3690,50 +3702,60 @@ let Y = class extends z {
|
|
|
3690
3702
|
}
|
|
3691
3703
|
render() {
|
|
3692
3704
|
return $`
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3705
|
+
<dialog
|
|
3706
|
+
class=${this.hideBackdrop ? "" : "backdrop"}
|
|
3707
|
+
@close=${this._onClose}
|
|
3708
|
+
@click=${this.clickHandler}
|
|
3709
|
+
>
|
|
3710
|
+
<spectric-panel>
|
|
3711
|
+
<div class="modal">
|
|
3712
|
+
${this.dismissable ? $`<spectric-button
|
|
3713
|
+
variant="text"
|
|
3714
|
+
size="small"
|
|
3715
|
+
@click=${() => {
|
|
3697
3716
|
this.open = !1;
|
|
3698
|
-
}}
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3717
|
+
}}
|
|
3718
|
+
icon
|
|
3719
|
+
>X</spectric-button
|
|
3720
|
+
>` : null}
|
|
3721
|
+
<h3>
|
|
3722
|
+
<slot name="title">
|
|
3723
|
+
${this.title.length ? this.title : null}
|
|
3724
|
+
</slot>
|
|
3725
|
+
</h3>
|
|
3704
3726
|
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3727
|
+
<div class="content"><slot></slot></div>
|
|
3728
|
+
<div class="footer"><slot name="footer"></slot></div>
|
|
3729
|
+
</div>
|
|
3730
|
+
</spectric-panel>
|
|
3731
|
+
</dialog>
|
|
3732
|
+
`;
|
|
3711
3733
|
}
|
|
3712
3734
|
};
|
|
3713
3735
|
Y.styles = Ml;
|
|
3714
|
-
|
|
3736
|
+
Ae([
|
|
3715
3737
|
g({ type: Boolean, reflect: !0 })
|
|
3716
3738
|
], Y.prototype, "open", 2);
|
|
3717
|
-
|
|
3739
|
+
Ae([
|
|
3718
3740
|
g({ type: Boolean, reflect: !0 })
|
|
3719
3741
|
], Y.prototype, "dismissable", 2);
|
|
3720
|
-
|
|
3742
|
+
Ae([
|
|
3721
3743
|
g({ type: Boolean, reflect: !0 })
|
|
3722
3744
|
], Y.prototype, "hideBackdrop", 2);
|
|
3723
|
-
|
|
3745
|
+
Ae([
|
|
3724
3746
|
g({ type: String, reflect: !0 })
|
|
3725
3747
|
], Y.prototype, "title", 2);
|
|
3726
|
-
|
|
3748
|
+
Ae([
|
|
3727
3749
|
g({ type: Boolean, reflect: !0 })
|
|
3728
3750
|
], Y.prototype, "closeOnEscape", 2);
|
|
3729
|
-
|
|
3751
|
+
Ae([
|
|
3730
3752
|
g({ type: Boolean, reflect: !0 })
|
|
3731
3753
|
], Y.prototype, "closeOnOutsideClick", 2);
|
|
3732
|
-
|
|
3733
|
-
|
|
3754
|
+
Ae([
|
|
3755
|
+
Ct("dialog")
|
|
3734
3756
|
], Y.prototype, "dialogElement", 2);
|
|
3735
|
-
Y =
|
|
3736
|
-
P(
|
|
3757
|
+
Y = Ae([
|
|
3758
|
+
P(Qr)
|
|
3737
3759
|
], Y);
|
|
3738
3760
|
var Bl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, ce = (e, t, o, s) => {
|
|
3739
3761
|
for (var n = s > 1 ? void 0 : s ? Ul(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
@@ -3747,12 +3769,14 @@ const Qs = {
|
|
|
3747
3769
|
gte: { value: " >= ", label: " is greater than or equal to some value" },
|
|
3748
3770
|
lte: { value: " <= ", label: " is less than or equal to some value" }
|
|
3749
3771
|
}, Fl = {
|
|
3772
|
+
exists: { value: ": *", label: " exists in any form" }
|
|
3773
|
+
}, Hl = {
|
|
3750
3774
|
eq: { value: ": ", label: " equals some value" },
|
|
3751
3775
|
exists: { value: ": *", label: " exists in any form" }
|
|
3752
|
-
},
|
|
3776
|
+
}, Il = [
|
|
3753
3777
|
{ value: ": true", label: " value is true" },
|
|
3754
3778
|
{ value: ": false", label: "value is false" }
|
|
3755
|
-
],
|
|
3779
|
+
], ql = Object.fromEntries(Object.entries(Qs).map(([e, t]) => [e, { value: t.value, label: (t.label || "").replace("value", "date-time") }]));
|
|
3756
3780
|
let Z = class extends z {
|
|
3757
3781
|
constructor() {
|
|
3758
3782
|
super(), this.placeholder = "", this._value = "", this.value = "", this.outputLanguage = "AST", this.completions = [], this.completionIndex = 0, this.fields = [], this._parseQuery = (e = void 0) => {
|
|
@@ -3812,7 +3836,7 @@ let Z = class extends z {
|
|
|
3812
3836
|
}
|
|
3813
3837
|
if (r === "operator") {
|
|
3814
3838
|
let c = this.fields.find((h) => h.name === e.fieldName);
|
|
3815
|
-
c && (c.type === "
|
|
3839
|
+
c && (["number", "integer"].includes(c.type) ? t.push(...Object.values(Qs).map((h) => ({ type: r, ...h, start: s, end: s }))) : c.type === "object" ? t.push(...Object.values(Fl).map((h) => ({ type: r, ...h, start: s, end: s }))) : c.type === "string" ? c.format === "date-time" ? t.push(...Object.values(ql).map((h) => ({
|
|
3816
3840
|
type: r,
|
|
3817
3841
|
...h,
|
|
3818
3842
|
start: s,
|
|
@@ -3820,7 +3844,7 @@ let Z = class extends z {
|
|
|
3820
3844
|
onSelect: async () => {
|
|
3821
3845
|
let d = await this.getValuesForField(e.fieldName, e.prefix);
|
|
3822
3846
|
d.length === 0 && (d = ["now-1m", "now-1d", "now-1M"]);
|
|
3823
|
-
let m, A =
|
|
3847
|
+
let m, A = vt();
|
|
3824
3848
|
return await new Promise((y) => {
|
|
3825
3849
|
let C = Y.display({}, $`
|
|
3826
3850
|
<div class="query-bar-date-quick-select">
|
|
@@ -3833,13 +3857,13 @@ let Z = class extends z {
|
|
|
3833
3857
|
return;
|
|
3834
3858
|
m = `"${(/* @__PURE__ */ new Date(S.target.value + ":00.000Z")).toISOString()}"`, A.value.disabled = m === void 0;
|
|
3835
3859
|
}}></spectric-input>
|
|
3836
|
-
<spectric-button ${
|
|
3860
|
+
<spectric-button ${bt(A)} .disabled=${!0} @click=${() => {
|
|
3837
3861
|
y(m), C.open = !1;
|
|
3838
3862
|
}}>Submit</spectric-button>
|
|
3839
3863
|
`);
|
|
3840
3864
|
}), m;
|
|
3841
3865
|
}
|
|
3842
|
-
}))) : t.push(...Object.values(
|
|
3866
|
+
}))) : t.push(...Object.values(Hl).map((h) => ({ type: r, ...h, start: s, end: s }))) : c.type === "boolean" && t.push(...Il.map((h) => ({ type: r, ...h, start: s, end: s }))));
|
|
3843
3867
|
}
|
|
3844
3868
|
if (r === "value") {
|
|
3845
3869
|
let c = this.fields.find((h) => h.name === e.fieldName);
|
|
@@ -3901,18 +3925,18 @@ ce([
|
|
|
3901
3925
|
g({ type: Array, reflect: !0 })
|
|
3902
3926
|
], Z.prototype, "fields", 2);
|
|
3903
3927
|
ce([
|
|
3904
|
-
|
|
3928
|
+
Se(".autocomplete")
|
|
3905
3929
|
], Z.prototype, "_autocomplete", 2);
|
|
3906
3930
|
ce([
|
|
3907
|
-
|
|
3931
|
+
Ct(".autocomplete")
|
|
3908
3932
|
], Z.prototype, "_asyncAutocomplete", 2);
|
|
3909
3933
|
ce([
|
|
3910
|
-
|
|
3934
|
+
Se("spectric-input")
|
|
3911
3935
|
], Z.prototype, "_input", 2);
|
|
3912
3936
|
Z = ce([
|
|
3913
3937
|
P("spectric-query")
|
|
3914
3938
|
], Z);
|
|
3915
|
-
const
|
|
3939
|
+
const fs = X`
|
|
3916
3940
|
--panel-color: var(--spectric-background,#f4f4f4);
|
|
3917
3941
|
--panel-color-inverse: var(--spectric-background-inverse,#ffffff);
|
|
3918
3942
|
border-color: color-mix(in hsl, var(--panel-color, #0b0b0b), var(--spectric-input-color, #000000) 3%);
|
|
@@ -3922,7 +3946,7 @@ const ds = X`
|
|
|
3922
3946
|
--spectric-text-primary:var(--text-primary,#161616);
|
|
3923
3947
|
--spectric-text-secondary:var(--text-secondary,#525252);
|
|
3924
3948
|
filter: drop-shadow(0px 1px 3px color-mix(in srgb, var(--text-secondary, #3c4c5b), transparent 50%));
|
|
3925
|
-
`,
|
|
3949
|
+
`, gs = X`
|
|
3926
3950
|
border-color: color-mix(in hsl, var(--panel-color-inverse,#f4f4f4), var(--spectric-input-color, #000000) 3%);
|
|
3927
3951
|
background-color: var(--panel-color-inverse,#0b0b0b);
|
|
3928
3952
|
color:var(--text-primary,#3c4c5b);
|
|
@@ -3930,7 +3954,7 @@ const ds = X`
|
|
|
3930
3954
|
--spectric-text-primary:var(--text-secondary,#525252);
|
|
3931
3955
|
--spectric-text-secondary:var(--text-primary,#161616);
|
|
3932
3956
|
filter: drop-shadow(0px 1px 3px color-mix(in srgb, var(--text-primary, #3c4c5b), transparent 70%));
|
|
3933
|
-
`,
|
|
3957
|
+
`, Ql = X`
|
|
3934
3958
|
:host{
|
|
3935
3959
|
display:block;
|
|
3936
3960
|
border:2px solid black;
|
|
@@ -3940,26 +3964,26 @@ const ds = X`
|
|
|
3940
3964
|
|
|
3941
3965
|
}
|
|
3942
3966
|
:host(spectric-panel[level='0']) {
|
|
3943
|
-
${
|
|
3967
|
+
${fs};
|
|
3944
3968
|
}
|
|
3945
3969
|
|
|
3946
3970
|
:host(spectric-panel[level='1']) {
|
|
3947
|
-
${
|
|
3971
|
+
${gs};
|
|
3948
3972
|
}
|
|
3949
3973
|
|
|
3950
3974
|
:host(spectric-panel[level='2']) {
|
|
3951
|
-
${
|
|
3975
|
+
${fs};
|
|
3952
3976
|
}
|
|
3953
3977
|
:host(spectric-panel[level='3']) {
|
|
3954
|
-
${
|
|
3978
|
+
${gs};
|
|
3955
3979
|
}
|
|
3956
3980
|
`;
|
|
3957
|
-
var
|
|
3958
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
3981
|
+
var Wl = Object.defineProperty, Yl = Object.getOwnPropertyDescriptor, Wr = (e, t, o, s) => {
|
|
3982
|
+
for (var n = s > 1 ? void 0 : s ? Yl(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
3959
3983
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
3960
|
-
return s && n &&
|
|
3984
|
+
return s && n && Wl(t, o, n), n;
|
|
3961
3985
|
};
|
|
3962
|
-
let
|
|
3986
|
+
let tt = class extends ve {
|
|
3963
3987
|
constructor() {
|
|
3964
3988
|
super(), this.level = 0, this.addDisposableListener(this, "layer-add", () => {
|
|
3965
3989
|
this.layers = this.querySelectorAll("spectric-panel");
|
|
@@ -3992,22 +4016,22 @@ let Je = class extends ve {
|
|
|
3992
4016
|
return $` <slot></slot> `;
|
|
3993
4017
|
}
|
|
3994
4018
|
};
|
|
3995
|
-
|
|
3996
|
-
|
|
4019
|
+
tt.styles = Ql;
|
|
4020
|
+
Wr([
|
|
3997
4021
|
g({ type: Number, reflect: !0 })
|
|
3998
|
-
],
|
|
3999
|
-
|
|
4022
|
+
], tt.prototype, "level", 2);
|
|
4023
|
+
Wr([
|
|
4000
4024
|
g({ attribute: !1 })
|
|
4001
|
-
],
|
|
4002
|
-
|
|
4025
|
+
], tt.prototype, "layers", 2);
|
|
4026
|
+
tt = Wr([
|
|
4003
4027
|
P("spectric-panel")
|
|
4004
|
-
],
|
|
4005
|
-
var
|
|
4006
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4028
|
+
], tt);
|
|
4029
|
+
var Zl = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Ws = (e, t, o, s) => {
|
|
4030
|
+
for (var n = s > 1 ? void 0 : s ? Kl(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
4007
4031
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
4008
|
-
return s && n &&
|
|
4032
|
+
return s && n && Zl(t, o, n), n;
|
|
4009
4033
|
};
|
|
4010
|
-
const
|
|
4034
|
+
const Xl = {
|
|
4011
4035
|
"--primary": { control: "color" },
|
|
4012
4036
|
"--secondary": { control: "color" },
|
|
4013
4037
|
"--tertiary": { control: "color" },
|
|
@@ -4027,20 +4051,20 @@ const Kl = {
|
|
|
4027
4051
|
"--text-on-color": "#ededed",
|
|
4028
4052
|
"--background": "#181818",
|
|
4029
4053
|
"--background-inverse": "#37373d"
|
|
4030
|
-
},
|
|
4054
|
+
}, vs = {
|
|
4031
4055
|
...Ys,
|
|
4032
4056
|
"--primary": "#ffd45a",
|
|
4033
4057
|
"--text-on-color": "#4f4f4f"
|
|
4034
|
-
},
|
|
4058
|
+
}, Lr = {
|
|
4035
4059
|
undefined: {},
|
|
4036
4060
|
light: {},
|
|
4037
4061
|
dark: Ys,
|
|
4038
|
-
spectric:
|
|
4062
|
+
spectric: vs,
|
|
4039
4063
|
spectricFlat: {
|
|
4040
|
-
...
|
|
4064
|
+
...vs,
|
|
4041
4065
|
"--border-radius": "1px"
|
|
4042
4066
|
}
|
|
4043
|
-
},
|
|
4067
|
+
}, Vl = Object.fromEntries(Object.keys(Lr).map((e) => [e, e])), Gl = [
|
|
4044
4068
|
"--spectric-background",
|
|
4045
4069
|
"--spectric-background-hover",
|
|
4046
4070
|
"--spectric-background-inverse",
|
|
@@ -4075,7 +4099,7 @@ const Kl = {
|
|
|
4075
4099
|
"--spectric-button-secondary-hover",
|
|
4076
4100
|
"--spectric-button-tertiary-hover",
|
|
4077
4101
|
"--spectric-text-on-color-disabled"
|
|
4078
|
-
],
|
|
4102
|
+
], Jl = `
|
|
4079
4103
|
--spectric-background: var(--background,#ffffff);
|
|
4080
4104
|
--spectric-background-hover:var(--background-hover,rgba(141, 141, 141, 0.12));
|
|
4081
4105
|
--spectric-background-inverse: var(--background-inverse,#f4f4f4);
|
|
@@ -4119,7 +4143,7 @@ const Kl = {
|
|
|
4119
4143
|
--spectric-button-disabled: #c6c6c6;
|
|
4120
4144
|
color: var(--spectric-text-primary);
|
|
4121
4145
|
`;
|
|
4122
|
-
let
|
|
4146
|
+
let _t = class extends z {
|
|
4123
4147
|
constructor() {
|
|
4124
4148
|
super(...arguments), this.theme = "undefined";
|
|
4125
4149
|
}
|
|
@@ -4133,15 +4157,15 @@ let wt = class extends z {
|
|
|
4133
4157
|
}
|
|
4134
4158
|
}
|
|
4135
4159
|
render() {
|
|
4136
|
-
let e = Object.keys(
|
|
4137
|
-
|
|
4160
|
+
let e = Object.keys(Lr).includes(this.theme) ? this.theme : "undefined", t = Object.entries(
|
|
4161
|
+
Lr[e]
|
|
4138
4162
|
).map((o) => `${o[0]}:${o[1]};`).join(`
|
|
4139
4163
|
`);
|
|
4140
4164
|
return $`
|
|
4141
4165
|
${this.theme && this.theme !== "light" ? $`
|
|
4142
4166
|
<style>:host{
|
|
4143
4167
|
${t};
|
|
4144
|
-
${
|
|
4168
|
+
${Jl}
|
|
4145
4169
|
}
|
|
4146
4170
|
/* Webkit psudo elements don't pick up variables defined by the host */
|
|
4147
4171
|
::-webkit-scrollbar-thumb {
|
|
@@ -4215,16 +4239,16 @@ let wt = class extends z {
|
|
|
4215
4239
|
`;
|
|
4216
4240
|
}
|
|
4217
4241
|
};
|
|
4218
|
-
|
|
4242
|
+
_t.styles = X`:host{
|
|
4219
4243
|
display:contents;
|
|
4220
4244
|
}`;
|
|
4221
4245
|
Ws([
|
|
4222
4246
|
g({ reflect: !0 })
|
|
4223
|
-
],
|
|
4224
|
-
|
|
4247
|
+
], _t.prototype, "theme", 2);
|
|
4248
|
+
_t = Ws([
|
|
4225
4249
|
P("spectric-theme")
|
|
4226
|
-
],
|
|
4227
|
-
const
|
|
4250
|
+
], _t);
|
|
4251
|
+
const ec = X`
|
|
4228
4252
|
:host {
|
|
4229
4253
|
display: block;
|
|
4230
4254
|
height: 100%;
|
|
@@ -4288,10 +4312,10 @@ const Jl = X`
|
|
|
4288
4312
|
cursor: ew-resize;
|
|
4289
4313
|
}
|
|
4290
4314
|
`;
|
|
4291
|
-
var
|
|
4292
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4315
|
+
var tc = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, G = (e, t, o, s) => {
|
|
4316
|
+
for (var n = s > 1 ? void 0 : s ? rc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
4293
4317
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
4294
|
-
return s && n &&
|
|
4318
|
+
return s && n && tc(t, o, n), n;
|
|
4295
4319
|
}, Zs = /* @__PURE__ */ ((e) => (e.horizontal = "horizontal", e.vertical = "vertical", e))(Zs || {});
|
|
4296
4320
|
const Ks = "spectric-splitview";
|
|
4297
4321
|
let M = class extends ve {
|
|
@@ -4355,7 +4379,7 @@ let M = class extends ve {
|
|
|
4355
4379
|
`;
|
|
4356
4380
|
}
|
|
4357
4381
|
};
|
|
4358
|
-
M.styles =
|
|
4382
|
+
M.styles = ec;
|
|
4359
4383
|
G([
|
|
4360
4384
|
g({ type: String })
|
|
4361
4385
|
], M.prototype, "orientation", 2);
|
|
@@ -4381,21 +4405,21 @@ G([
|
|
|
4381
4405
|
V()
|
|
4382
4406
|
], M.prototype, "_error", 2);
|
|
4383
4407
|
G([
|
|
4384
|
-
|
|
4408
|
+
Ct(".splitter")
|
|
4385
4409
|
], M.prototype, "_splitter", 2);
|
|
4386
4410
|
G([
|
|
4387
|
-
|
|
4411
|
+
Se("slot[name='panel1']")
|
|
4388
4412
|
], M.prototype, "_panel1", 2);
|
|
4389
4413
|
G([
|
|
4390
|
-
|
|
4414
|
+
Se("slot[name='panel2']")
|
|
4391
4415
|
], M.prototype, "_panel2", 2);
|
|
4392
4416
|
M = G([
|
|
4393
4417
|
P(Ks)
|
|
4394
4418
|
], M);
|
|
4395
|
-
var
|
|
4396
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4419
|
+
var ic = Object.defineProperty, sc = Object.getOwnPropertyDescriptor, Ue = (e, t, o, s) => {
|
|
4420
|
+
for (var n = s > 1 ? void 0 : s ? sc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
4397
4421
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
4398
|
-
return s && n &&
|
|
4422
|
+
return s && n && ic(t, o, n), n;
|
|
4399
4423
|
};
|
|
4400
4424
|
const Xs = "spectric-pagination";
|
|
4401
4425
|
let ge = class extends z {
|
|
@@ -4449,40 +4473,40 @@ let ge = class extends z {
|
|
|
4449
4473
|
`;
|
|
4450
4474
|
}
|
|
4451
4475
|
};
|
|
4452
|
-
|
|
4476
|
+
Ue([
|
|
4453
4477
|
g({ type: Number, reflect: !0 })
|
|
4454
4478
|
], ge.prototype, "page", 2);
|
|
4455
|
-
|
|
4479
|
+
Ue([
|
|
4456
4480
|
g({ type: Number, reflect: !0 })
|
|
4457
4481
|
], ge.prototype, "pageSize", 2);
|
|
4458
|
-
|
|
4482
|
+
Ue([
|
|
4459
4483
|
g({ type: Number, reflect: !0 })
|
|
4460
4484
|
], ge.prototype, "totalItems", 2);
|
|
4461
|
-
|
|
4485
|
+
Ue([
|
|
4462
4486
|
g({ type: Array })
|
|
4463
4487
|
], ge.prototype, "pageSizeOptions", 2);
|
|
4464
|
-
|
|
4465
|
-
|
|
4488
|
+
Ue([
|
|
4489
|
+
Se("select")
|
|
4466
4490
|
], ge.prototype, "select", 2);
|
|
4467
|
-
|
|
4491
|
+
Ue([
|
|
4468
4492
|
g({ type: String, reflect: !0 })
|
|
4469
4493
|
], ge.prototype, "size", 2);
|
|
4470
|
-
ge =
|
|
4494
|
+
ge = Ue([
|
|
4471
4495
|
P(Xs)
|
|
4472
4496
|
], ge);
|
|
4473
|
-
const
|
|
4497
|
+
const oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4474
4498
|
__proto__: null,
|
|
4475
4499
|
BitArray: js,
|
|
4476
4500
|
DisposableElement: ve,
|
|
4477
4501
|
getListeners: ea
|
|
4478
4502
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4479
|
-
var
|
|
4480
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4503
|
+
var nc = Object.defineProperty, ac = Object.getOwnPropertyDescriptor, tr = (e, t, o, s) => {
|
|
4504
|
+
for (var n = s > 1 ? void 0 : s ? ac(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
4481
4505
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
4482
|
-
return s && n &&
|
|
4506
|
+
return s && n && nc(t, o, n), n;
|
|
4483
4507
|
};
|
|
4484
|
-
const
|
|
4485
|
-
let
|
|
4508
|
+
const lc = "spectric-table-header";
|
|
4509
|
+
let xt = class extends ve {
|
|
4486
4510
|
constructor() {
|
|
4487
4511
|
super(), this.columns = [], this._handleSortChange = (e) => {
|
|
4488
4512
|
this._resizeStart || (e = JSON.parse(JSON.stringify(e)), e.sortable && (e.sortDirection === H.none || e.sortDirection === void 0 ? e.sortDirection = H.ascending : e.sortDirection === H.ascending ? e.sortDirection = H.descending : e.sortDirection === H.descending && (e.sortDirection = H.none), this.dispatchEvent(
|
|
@@ -4535,39 +4559,42 @@ let Zt = class extends ve {
|
|
|
4535
4559
|
let t = ["header-contents"];
|
|
4536
4560
|
e.filterable, e.sortable && t.push("sortable"), this._resizeStart && t.push("resizing");
|
|
4537
4561
|
let o = e.width ? `min-width:${e.width}px;max-width:${e.width}px;` : "", s = e.sortDirection === H.ascending ? "🠉" : e.sortDirection == H.descending ? "🠋" : "", n = e.sortDirection || H.none, c = e.allowResize || e.allowResize === void 0 ? $`<div
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
this._handleResizeStart(
|
|
4562
|
+
class="header-resize-handle"
|
|
4563
|
+
@mousedown=${(d) => {
|
|
4564
|
+
this._handleResizeStart(d, e);
|
|
4541
4565
|
}}
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
return $` <td
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4566
|
+
@mouseup=${this._handleResizeEnd}
|
|
4567
|
+
></div>` : null, h = e.title || e.key;
|
|
4568
|
+
return typeof h == "function" && (h = h(this.table) || void 0), $` <td
|
|
4569
|
+
@click=${() => this._handleSortChange(e)}
|
|
4570
|
+
style="${o}"
|
|
4571
|
+
>
|
|
4572
|
+
${c}
|
|
4573
|
+
<div class=${t.join(" ")}>
|
|
4574
|
+
${h}
|
|
4575
|
+
<span class="sort-direction ${n}">${s}</span>
|
|
4576
|
+
</div>
|
|
4577
|
+
</td>`;
|
|
4554
4578
|
}
|
|
4555
4579
|
};
|
|
4556
|
-
|
|
4580
|
+
tr([
|
|
4557
4581
|
g({ type: Array, attribute: !1 })
|
|
4558
|
-
],
|
|
4559
|
-
|
|
4582
|
+
], xt.prototype, "columns", 2);
|
|
4583
|
+
tr([
|
|
4560
4584
|
V()
|
|
4561
|
-
],
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
],
|
|
4585
|
+
], xt.prototype, "_resizeStart", 2);
|
|
4586
|
+
tr([
|
|
4587
|
+
g({ type: Object, attribute: !1 })
|
|
4588
|
+
], xt.prototype, "table", 2);
|
|
4589
|
+
xt = tr([
|
|
4590
|
+
P(lc)
|
|
4591
|
+
], xt);
|
|
4565
4592
|
/**
|
|
4566
4593
|
* @license
|
|
4567
4594
|
* Copyright 2017 Google LLC
|
|
4568
4595
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4569
4596
|
*/
|
|
4570
|
-
const
|
|
4597
|
+
const bs = (e) => oa(e) ? e._$litType$.h : e.strings, cc = At(class extends Vt {
|
|
4571
4598
|
constructor(e) {
|
|
4572
4599
|
super(e), this.et = /* @__PURE__ */ new WeakMap();
|
|
4573
4600
|
}
|
|
@@ -4575,22 +4602,22 @@ const vs = (e) => oa(e) ? e._$litType$.h : e.strings, lc = St(class extends Vt {
|
|
|
4575
4602
|
return [e];
|
|
4576
4603
|
}
|
|
4577
4604
|
update(e, [t]) {
|
|
4578
|
-
const o =
|
|
4605
|
+
const o = hs(this.it) ? bs(this.it) : null, s = hs(t) ? bs(t) : null;
|
|
4579
4606
|
if (o !== null && (s === null || o !== s)) {
|
|
4580
|
-
const n =
|
|
4607
|
+
const n = Er(e).pop();
|
|
4581
4608
|
let r = this.et.get(o);
|
|
4582
4609
|
if (r === void 0) {
|
|
4583
4610
|
const c = document.createDocumentFragment();
|
|
4584
|
-
r =
|
|
4611
|
+
r = Xt(E, c), r.setConnected(!1), this.et.set(o, r);
|
|
4585
4612
|
}
|
|
4586
|
-
|
|
4613
|
+
kr(r, [n]), Pe(r, void 0, n);
|
|
4587
4614
|
}
|
|
4588
4615
|
if (s !== null) {
|
|
4589
4616
|
if (o === null || o !== s) {
|
|
4590
4617
|
const n = this.et.get(s);
|
|
4591
4618
|
if (n !== void 0) {
|
|
4592
|
-
const r =
|
|
4593
|
-
la(e),
|
|
4619
|
+
const r = Er(n).pop();
|
|
4620
|
+
la(e), Pe(e, void 0, r), kr(e, [r]);
|
|
4594
4621
|
}
|
|
4595
4622
|
}
|
|
4596
4623
|
this.it = t;
|
|
@@ -4598,17 +4625,17 @@ const vs = (e) => oa(e) ? e._$litType$.h : e.strings, lc = St(class extends Vt {
|
|
|
4598
4625
|
return this.render(t);
|
|
4599
4626
|
}
|
|
4600
4627
|
});
|
|
4601
|
-
var
|
|
4602
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4628
|
+
var pc = Object.defineProperty, uc = Object.getOwnPropertyDescriptor, Fe = (e, t, o, s) => {
|
|
4629
|
+
for (var n = s > 1 ? void 0 : s ? uc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
4603
4630
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
4604
|
-
return s && n &&
|
|
4631
|
+
return s && n && pc(t, o, n), n;
|
|
4605
4632
|
};
|
|
4606
|
-
const
|
|
4607
|
-
let
|
|
4633
|
+
const hc = "spectric-table-cell";
|
|
4634
|
+
let _e = class extends z {
|
|
4608
4635
|
constructor() {
|
|
4609
4636
|
super(...arguments), this.overflow = "", this.styleRules = { whiteSpace: "", width: "" }, this._handleFilterOut = () => {
|
|
4610
4637
|
let e;
|
|
4611
|
-
this.column.key && typeof this.row == "object" && (e =
|
|
4638
|
+
this.column.key && typeof this.row == "object" && (e = Je(this.row, this.column.key)), this._emitFilter({
|
|
4612
4639
|
include: !1,
|
|
4613
4640
|
row: this.row,
|
|
4614
4641
|
value: e,
|
|
@@ -4616,7 +4643,7 @@ let Me = class extends z {
|
|
|
4616
4643
|
});
|
|
4617
4644
|
}, this._handleFilterFor = () => {
|
|
4618
4645
|
let e;
|
|
4619
|
-
this.column.key && typeof this.row == "object" && (e =
|
|
4646
|
+
this.column.key && typeof this.row == "object" && (e = Je(this.row, this.column.key)), this._emitFilter({
|
|
4620
4647
|
include: !0,
|
|
4621
4648
|
row: this.row,
|
|
4622
4649
|
value: e,
|
|
@@ -4626,7 +4653,9 @@ let Me = class extends z {
|
|
|
4626
4653
|
let e = this.querySelector("div.cell-contents"), t = this.querySelector("span");
|
|
4627
4654
|
if (e && t) {
|
|
4628
4655
|
let o = t.getBoundingClientRect(), s = e.getBoundingClientRect();
|
|
4629
|
-
o.width * o.height > s.width * s.height ? (console.log(
|
|
4656
|
+
o.width * o.height > s.width * s.height ? (console.log(
|
|
4657
|
+
"We need to show a tooltip witht he content because we are overflowing"
|
|
4658
|
+
), this.overflow = this.getRenderedValue(), this.updateComplete.then(() => {
|
|
4630
4659
|
let n = this.querySelector("spectric-tooltip");
|
|
4631
4660
|
n && n.showToolTip();
|
|
4632
4661
|
})) : this.overflow = "";
|
|
@@ -4639,69 +4668,94 @@ let Me = class extends z {
|
|
|
4639
4668
|
updated(e) {
|
|
4640
4669
|
}
|
|
4641
4670
|
_emitFilter(e) {
|
|
4642
|
-
this.dispatchEvent(
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4671
|
+
this.dispatchEvent(
|
|
4672
|
+
new CustomEvent("filter", {
|
|
4673
|
+
composed: !0,
|
|
4674
|
+
bubbles: !0,
|
|
4675
|
+
detail: e
|
|
4676
|
+
})
|
|
4677
|
+
);
|
|
4647
4678
|
}
|
|
4648
4679
|
getRenderedValue() {
|
|
4649
4680
|
let e;
|
|
4650
|
-
return this.column.render ? e = this.column.render(this.row, this.index, this.table) : this.column.key && typeof this.row == "object" ? e =
|
|
4681
|
+
return this.column.render ? e = this.column.render(this.row, this.index, this.table) : this.column.key && typeof this.row == "object" ? e = Je(this.row, this.column.key) : e = $`error`, e;
|
|
4651
4682
|
}
|
|
4652
4683
|
render() {
|
|
4653
4684
|
let e = this.getRenderedValue(), t = ["cell-contents"];
|
|
4654
4685
|
this.column.filterable && t.push("filterable");
|
|
4655
|
-
let o =
|
|
4686
|
+
let o = cc(
|
|
4656
4687
|
this.column.filterable ? $`<div class="table-cell-actions">
|
|
4657
|
-
<spectric-button
|
|
4658
|
-
|
|
4688
|
+
<spectric-button
|
|
4689
|
+
@click=${this._handleFilterOut}
|
|
4690
|
+
size="tiny"
|
|
4691
|
+
variant="text"
|
|
4692
|
+
icon
|
|
4693
|
+
tooltip="Filter Out Value"
|
|
4694
|
+
>-</spectric-button
|
|
4695
|
+
>
|
|
4696
|
+
<spectric-button
|
|
4697
|
+
@click=${this._handleFilterFor}
|
|
4698
|
+
size="tiny"
|
|
4699
|
+
variant="text"
|
|
4700
|
+
icon
|
|
4701
|
+
tooltip="Filter For Value"
|
|
4702
|
+
>+</spectric-button
|
|
4703
|
+
>
|
|
4704
|
+
</div>` : null
|
|
4659
4705
|
);
|
|
4660
4706
|
return this.styleRules = {
|
|
4661
4707
|
width: this.column.width ? this.column.width + "px" : null,
|
|
4662
4708
|
whiteSpace: this.column.whiteSpace || null
|
|
4663
4709
|
}, $`
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4710
|
+
<td
|
|
4711
|
+
style=${Ur(this.styleRules)}
|
|
4712
|
+
@mouseenter=${this._displayTooltip}
|
|
4713
|
+
>
|
|
4714
|
+
${o}
|
|
4715
|
+
<div class=${t.join(" ")}>
|
|
4716
|
+
${this.overflow ? $`<spectric-tooltip .text=${this.overflow}></spectric-tooltip>` : null}<span>${e}</span>
|
|
4717
|
+
</div>
|
|
4718
|
+
</td>
|
|
4719
|
+
`;
|
|
4669
4720
|
}
|
|
4670
4721
|
};
|
|
4671
|
-
|
|
4722
|
+
Fe([
|
|
4672
4723
|
g({ type: Object, attribute: !1 })
|
|
4673
|
-
],
|
|
4674
|
-
|
|
4724
|
+
], _e.prototype, "row", 2);
|
|
4725
|
+
Fe([
|
|
4675
4726
|
g({ type: Number, attribute: !1 })
|
|
4676
|
-
],
|
|
4677
|
-
|
|
4727
|
+
], _e.prototype, "index", 2);
|
|
4728
|
+
Fe([
|
|
4678
4729
|
g({ type: Object, attribute: !1 })
|
|
4679
|
-
],
|
|
4680
|
-
|
|
4730
|
+
], _e.prototype, "column", 2);
|
|
4731
|
+
Fe([
|
|
4732
|
+
g({ type: Object, attribute: !1 })
|
|
4733
|
+
], _e.prototype, "table", 2);
|
|
4734
|
+
Fe([
|
|
4681
4735
|
V()
|
|
4682
|
-
],
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
],
|
|
4686
|
-
|
|
4687
|
-
P(
|
|
4688
|
-
],
|
|
4689
|
-
const
|
|
4736
|
+
], _e.prototype, "overflow", 2);
|
|
4737
|
+
Fe([
|
|
4738
|
+
Se("td")
|
|
4739
|
+
], _e.prototype, "td", 2);
|
|
4740
|
+
_e = Fe([
|
|
4741
|
+
P(hc)
|
|
4742
|
+
], _e);
|
|
4743
|
+
const Je = (e, t) => {
|
|
4690
4744
|
let o = t.split("."), s = e[o[0]];
|
|
4691
|
-
return s == null || o.length > 1 && (s =
|
|
4745
|
+
return s == null || o.length > 1 && (s = Je(s, o.slice(1).join("."))), s;
|
|
4692
4746
|
};
|
|
4693
4747
|
/**
|
|
4694
4748
|
* @license
|
|
4695
4749
|
* Copyright 2017 Google LLC
|
|
4696
4750
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4697
4751
|
*/
|
|
4698
|
-
const
|
|
4752
|
+
const ys = (e, t, o) => {
|
|
4699
4753
|
const s = /* @__PURE__ */ new Map();
|
|
4700
4754
|
for (let n = t; n <= o; n++) s.set(e[n], n);
|
|
4701
4755
|
return s;
|
|
4702
|
-
},
|
|
4756
|
+
}, Zt = At(class extends Vt {
|
|
4703
4757
|
constructor(e) {
|
|
4704
|
-
if (super(e), e.type !==
|
|
4758
|
+
if (super(e), e.type !== Br.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
4705
4759
|
}
|
|
4706
4760
|
dt(e, t, o) {
|
|
4707
4761
|
let s;
|
|
@@ -4715,43 +4769,43 @@ const bs = (e, t, o) => {
|
|
|
4715
4769
|
return this.dt(e, t, o).values;
|
|
4716
4770
|
}
|
|
4717
4771
|
update(e, [t, o, s]) {
|
|
4718
|
-
const n =
|
|
4772
|
+
const n = Er(e), { values: r, keys: c } = this.dt(t, o, s);
|
|
4719
4773
|
if (!Array.isArray(n)) return this.ut = c, r;
|
|
4720
4774
|
const h = this.ut ?? (this.ut = []), d = [];
|
|
4721
4775
|
let m, A, y = 0, C = n.length - 1, S = 0, k = r.length - 1;
|
|
4722
4776
|
for (; y <= C && S <= k; ) if (n[y] === null) y++;
|
|
4723
4777
|
else if (n[C] === null) C--;
|
|
4724
|
-
else if (h[y] === c[S]) d[S] =
|
|
4725
|
-
else if (h[C] === c[k]) d[k] =
|
|
4726
|
-
else if (h[y] === c[k]) d[k] =
|
|
4727
|
-
else if (h[C] === c[S]) d[S] =
|
|
4728
|
-
else if (m === void 0 && (m =
|
|
4778
|
+
else if (h[y] === c[S]) d[S] = Oe(n[y], r[S]), y++, S++;
|
|
4779
|
+
else if (h[C] === c[k]) d[k] = Oe(n[C], r[k]), C--, k--;
|
|
4780
|
+
else if (h[y] === c[k]) d[k] = Oe(n[y], r[k]), Pe(e, d[k + 1], n[y]), y++, k--;
|
|
4781
|
+
else if (h[C] === c[S]) d[S] = Oe(n[C], r[S]), Pe(e, n[y], n[C]), C--, S++;
|
|
4782
|
+
else if (m === void 0 && (m = ys(c, S, k), A = ys(h, y, C)), m.has(h[y])) if (m.has(h[C])) {
|
|
4729
4783
|
const D = A.get(c[S]), j = D !== void 0 ? n[D] : null;
|
|
4730
4784
|
if (j === null) {
|
|
4731
|
-
const F =
|
|
4732
|
-
|
|
4733
|
-
} else d[S] =
|
|
4785
|
+
const F = Pe(e, n[y]);
|
|
4786
|
+
Oe(F, r[S]), d[S] = F;
|
|
4787
|
+
} else d[S] = Oe(j, r[S]), Pe(e, n[y], j), n[D] = null;
|
|
4734
4788
|
S++;
|
|
4735
|
-
} else
|
|
4736
|
-
else
|
|
4789
|
+
} else xr(n[C]), C--;
|
|
4790
|
+
else xr(n[y]), y++;
|
|
4737
4791
|
for (; S <= k; ) {
|
|
4738
|
-
const D =
|
|
4739
|
-
|
|
4792
|
+
const D = Pe(e, d[k + 1]);
|
|
4793
|
+
Oe(D, r[S]), d[S++] = D;
|
|
4740
4794
|
}
|
|
4741
4795
|
for (; y <= C; ) {
|
|
4742
4796
|
const D = n[y++];
|
|
4743
|
-
D !== null &&
|
|
4797
|
+
D !== null && xr(D);
|
|
4744
4798
|
}
|
|
4745
|
-
return this.ut = c,
|
|
4799
|
+
return this.ut = c, kr(e, d), $e;
|
|
4746
4800
|
}
|
|
4747
4801
|
});
|
|
4748
|
-
var
|
|
4749
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4802
|
+
var dc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, Yr = (e, t, o, s) => {
|
|
4803
|
+
for (var n = s > 1 ? void 0 : s ? fc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
4750
4804
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
4751
|
-
return s && n &&
|
|
4805
|
+
return s && n && dc(t, o, n), n;
|
|
4752
4806
|
};
|
|
4753
|
-
const
|
|
4754
|
-
let
|
|
4807
|
+
const gc = "spectric-table-body";
|
|
4808
|
+
let Kt = class extends z {
|
|
4755
4809
|
constructor() {
|
|
4756
4810
|
super(...arguments), this.data = [], this.columns = [];
|
|
4757
4811
|
}
|
|
@@ -4764,38 +4818,42 @@ let Xt = class extends z {
|
|
|
4764
4818
|
render() {
|
|
4765
4819
|
return $`
|
|
4766
4820
|
<body>
|
|
4767
|
-
${
|
|
4821
|
+
${Zt(this.data, (e, t) => $`
|
|
4768
4822
|
<tr class="${t % 2 === 0 ? "odd" : ""}">
|
|
4769
|
-
${
|
|
4823
|
+
${Zt(this.columns, (o) => $`<spectric-table-cell .column=${o} .index=${t} .row=${e} .columns=${this.columns}></spectric-table-cell>`)}
|
|
4770
4824
|
</tr>`)}
|
|
4771
4825
|
|
|
4772
4826
|
</body>
|
|
4773
4827
|
`;
|
|
4774
4828
|
}
|
|
4775
4829
|
};
|
|
4776
|
-
|
|
4830
|
+
Yr([
|
|
4777
4831
|
g({ type: Array, attribute: !1 })
|
|
4778
|
-
],
|
|
4779
|
-
|
|
4832
|
+
], Kt.prototype, "data", 2);
|
|
4833
|
+
Yr([
|
|
4780
4834
|
g({ type: Array, attribute: !1 })
|
|
4781
|
-
],
|
|
4782
|
-
|
|
4783
|
-
P(
|
|
4784
|
-
],
|
|
4785
|
-
var
|
|
4786
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4835
|
+
], Kt.prototype, "columns", 2);
|
|
4836
|
+
Kt = Yr([
|
|
4837
|
+
P(gc)
|
|
4838
|
+
], Kt);
|
|
4839
|
+
var vc = Object.defineProperty, bc = Object.getOwnPropertyDescriptor, st = (e, t, o, s) => {
|
|
4840
|
+
for (var n = s > 1 ? void 0 : s ? bc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
4787
4841
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
4788
|
-
return s && n &&
|
|
4842
|
+
return s && n && vc(t, o, n), n;
|
|
4789
4843
|
};
|
|
4790
|
-
const
|
|
4791
|
-
let
|
|
4844
|
+
const yc = "spectric-table-virtual-body";
|
|
4845
|
+
let je = class extends ve {
|
|
4792
4846
|
constructor() {
|
|
4793
|
-
super(), this.data = [], this.columns = [], this.rowHeight = 30, this.startIndex = 0, this.columnsMeasured = !1, this.addDisposableListener(
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4847
|
+
super(), this.data = [], this.columns = [], this.rowHeight = 30, this.startIndex = 0, this.columnsMeasured = !1, this.addDisposableListener(
|
|
4848
|
+
() => this.table.querySelector(".table-wrapper"),
|
|
4849
|
+
"scroll",
|
|
4850
|
+
() => {
|
|
4851
|
+
const e = this.table.querySelector(".table-wrapper").scrollTop;
|
|
4852
|
+
requestAnimationFrame(() => {
|
|
4853
|
+
this.startIndex = Math.floor(e / this.rowHeight);
|
|
4854
|
+
});
|
|
4855
|
+
}
|
|
4856
|
+
);
|
|
4799
4857
|
}
|
|
4800
4858
|
updated() {
|
|
4801
4859
|
if (this.columnsMeasured === !1) {
|
|
@@ -4803,68 +4861,93 @@ let et = class extends ve {
|
|
|
4803
4861
|
e && t && t.length && (this.columns.forEach((o, s) => {
|
|
4804
4862
|
if (!o.width || o.width === 0) {
|
|
4805
4863
|
let n = t[s].getBoundingClientRect();
|
|
4806
|
-
n.width > 0 && (this.columnsMeasured = !0, o.width = n.width -
|
|
4864
|
+
n.width > 0 && (this.columnsMeasured = !0, o.width = n.width - yt);
|
|
4807
4865
|
}
|
|
4808
|
-
}), this.columns = [...this.columns]);
|
|
4866
|
+
}), this.columnsMeasured && (this.columns = [...this.columns]));
|
|
4809
4867
|
}
|
|
4810
4868
|
}
|
|
4811
4869
|
createRenderRoot() {
|
|
4812
4870
|
return this;
|
|
4813
4871
|
}
|
|
4814
4872
|
render() {
|
|
4815
|
-
let e = this.data.length, t = 10, o = this.table.querySelector(
|
|
4816
|
-
|
|
4873
|
+
let e = this.data.length, t = 10, o = this.table.querySelector(
|
|
4874
|
+
"spectric-table-header"
|
|
4875
|
+
).clientHeight, s = this.table.querySelector(".table-wrapper"), n = Math.max(this.startIndex, 0);
|
|
4876
|
+
const r = Math.ceil(
|
|
4877
|
+
(s.clientHeight - o) / this.rowHeight
|
|
4878
|
+
), c = Math.min(n + r + t, e), h = c - n;
|
|
4817
4879
|
let d = e * this.rowHeight, m = n * this.rowHeight + (s.scrollTop - n * this.rowHeight);
|
|
4818
4880
|
c === e && (m = n * this.rowHeight);
|
|
4819
|
-
let A = h * this.rowHeight, y = d - m - A, C =
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4881
|
+
let A = h * this.rowHeight, y = d - m - A, C = n != 0 ? $` <tr
|
|
4882
|
+
style="height:${m}px"
|
|
4883
|
+
class="virtual-scroll-spacer"
|
|
4884
|
+
>
|
|
4885
|
+
<td colspan="${this.columns.length}"></td>
|
|
4886
|
+
</tr>` : null, S = $` <tr
|
|
4887
|
+
style="height:${y}px"
|
|
4888
|
+
class="virtual-scroll-spacer"
|
|
4889
|
+
>
|
|
4890
|
+
<td colspan="${this.columns.length}"></td>
|
|
4891
|
+
</tr>`;
|
|
4824
4892
|
return $`
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4893
|
+
<div
|
|
4894
|
+
style="height:${d}px;position: absolute;overflow-x: hidden;overflow-y: hidden;z-index:-1;width:1px;"
|
|
4895
|
+
></div>
|
|
4896
|
+
<tbody>
|
|
4897
|
+
${C}
|
|
4898
|
+
</tbody>
|
|
4899
|
+
<div
|
|
4900
|
+
style="display:table-row-group;max-height:${A}px; overflow:hidden;"
|
|
4901
|
+
>
|
|
4902
|
+
${Zt(
|
|
4903
|
+
this.data.slice(Math.max(n, 0), c),
|
|
4904
|
+
(k, D) => $` <tr
|
|
4905
|
+
class="${(D + n) % 2 === 0 ? "odd" : ""}"
|
|
4906
|
+
>
|
|
4907
|
+
${Zt(this.columns, (j) => $`<spectric-table-cell
|
|
4908
|
+
.column=${j}
|
|
4909
|
+
.row=${k}
|
|
4910
|
+
.index=${D + n}
|
|
4911
|
+
.columns=${this.columns}
|
|
4912
|
+
.table=${this.table}
|
|
4913
|
+
></spectric-table-cell>`)}
|
|
4914
|
+
</tr>`
|
|
4915
|
+
)}
|
|
4916
|
+
</div>
|
|
4917
|
+
<tbody>
|
|
4918
|
+
${y > 0 ? S : null}
|
|
4919
|
+
</tbody>
|
|
4840
4920
|
`;
|
|
4841
4921
|
}
|
|
4842
4922
|
};
|
|
4843
|
-
|
|
4923
|
+
st([
|
|
4844
4924
|
g({ type: Array, attribute: !1 })
|
|
4845
|
-
],
|
|
4846
|
-
|
|
4925
|
+
], je.prototype, "data", 2);
|
|
4926
|
+
st([
|
|
4847
4927
|
g({ type: Array, attribute: !1 })
|
|
4848
|
-
],
|
|
4849
|
-
|
|
4928
|
+
], je.prototype, "columns", 2);
|
|
4929
|
+
st([
|
|
4850
4930
|
g({ type: Number, attribute: !1 })
|
|
4851
|
-
],
|
|
4852
|
-
|
|
4931
|
+
], je.prototype, "rowHeight", 2);
|
|
4932
|
+
st([
|
|
4853
4933
|
g({ type: Number, state: !0 })
|
|
4854
|
-
],
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
],
|
|
4858
|
-
|
|
4934
|
+
], je.prototype, "startIndex", 2);
|
|
4935
|
+
st([
|
|
4936
|
+
g({ type: Object, attribute: !1 })
|
|
4937
|
+
], je.prototype, "table", 2);
|
|
4938
|
+
je = st([
|
|
4939
|
+
P(yc)
|
|
4940
|
+
], je);
|
|
4941
|
+
function mc(e) {
|
|
4859
4942
|
let t = !1, o;
|
|
4860
4943
|
return function(...s) {
|
|
4861
4944
|
return t || (t = !0, o = e.apply(this, s)), o;
|
|
4862
4945
|
};
|
|
4863
4946
|
}
|
|
4864
|
-
const
|
|
4947
|
+
const $c = (e) => e.map(({ key: t, sortDirection: o, compareFn: s }) => (n, r) => {
|
|
4865
4948
|
if (!t)
|
|
4866
4949
|
return;
|
|
4867
|
-
let c =
|
|
4950
|
+
let c = Je(n, t), h = Je(r, t);
|
|
4868
4951
|
if (s)
|
|
4869
4952
|
return s(n, r);
|
|
4870
4953
|
if (typeof c == "number" || typeof c == "bigint" || typeof c == "boolean") {
|
|
@@ -4873,14 +4956,16 @@ const mc = (e) => e.map(({ key: t, sortDirection: o, compareFn: s }) => (n, r) =
|
|
|
4873
4956
|
} else if (typeof c == "string")
|
|
4874
4957
|
return c.localeCompare(h) * (o === H.descending ? -1 : 1);
|
|
4875
4958
|
});
|
|
4876
|
-
var
|
|
4877
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4959
|
+
var wc = Object.defineProperty, _c = Object.getOwnPropertyDescriptor, pe = (e, t, o, s) => {
|
|
4960
|
+
for (var n = s > 1 ? void 0 : s ? _c(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
4878
4961
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
4879
|
-
return s && n &&
|
|
4962
|
+
return s && n && wc(t, o, n), n;
|
|
4880
4963
|
};
|
|
4881
4964
|
const Vs = "spectric-table";
|
|
4882
4965
|
var Gs = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e.none = "none", e))(Gs || {}), Js = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e))(Js || {}), H = /* @__PURE__ */ ((e) => (e.ascending = "ascending", e.descending = "descending", e.none = "none", e))(H || {});
|
|
4883
|
-
const
|
|
4966
|
+
const yt = 4, Ar = Symbol(
|
|
4967
|
+
"spectric-table-selection-column"
|
|
4968
|
+
);
|
|
4884
4969
|
let K = class extends z {
|
|
4885
4970
|
constructor() {
|
|
4886
4971
|
super(...arguments), this.data = [], this.columns = [], this.select = "none", this.sort = "single", this.sortOrder = [], this.rowHeight = 25, this.fontSize = 16, this._handlePaginationChange = (e) => {
|
|
@@ -4888,7 +4973,11 @@ let K = class extends z {
|
|
|
4888
4973
|
let t = { ...this.pagination, ...e.detail }, { totalItems: o, page: s, pageSize: n } = t;
|
|
4889
4974
|
o && s && n && (s - 1) * n > o && (t.page = 1), this.pagination = t;
|
|
4890
4975
|
}
|
|
4891
|
-
this.dispatchEvent(
|
|
4976
|
+
this.dispatchEvent(
|
|
4977
|
+
new CustomEvent("paginationChange", {
|
|
4978
|
+
detail: e.detail
|
|
4979
|
+
})
|
|
4980
|
+
), this._emitChange();
|
|
4892
4981
|
}, this._handleSortChange = (e) => {
|
|
4893
4982
|
let t = e.detail, o = this.columns.find((s) => s.key == t.key);
|
|
4894
4983
|
if (!o || o.key === void 0) {
|
|
@@ -4908,18 +4997,55 @@ let K = class extends z {
|
|
|
4908
4997
|
this.columns[o] = { ...this.columns[o] }, this.columns = [...this.columns], this._emitChange();
|
|
4909
4998
|
}, this._emitChange = () => {
|
|
4910
4999
|
let { pagination: e, columns: t, sortOrder: o } = this;
|
|
4911
|
-
this.dispatchEvent(
|
|
5000
|
+
this.dispatchEvent(
|
|
5001
|
+
new CustomEvent("change", {
|
|
5002
|
+
detail: { pagination: e, columns: t, sortOrder: o }
|
|
5003
|
+
})
|
|
5004
|
+
);
|
|
4912
5005
|
}, this.__DO_NOT_USE_filter = () => {
|
|
4913
5006
|
this.dispatchEvent(new CustomEvent("filter")), this.dispatchEvent(new CustomEvent("sortChange"));
|
|
4914
5007
|
}, this.selected = [], this._handleSelectAllChange = (e) => {
|
|
4915
5008
|
e.stopPropagation(), e.target.checked ? this.selectAll() : this.deselectAll();
|
|
5009
|
+
}, this.selectColumnConfig = {
|
|
5010
|
+
[Ar]: !0,
|
|
5011
|
+
width: 39,
|
|
5012
|
+
title: (e) => e.select === "multi" ? $`<spectric-input
|
|
5013
|
+
variant="checkbox"
|
|
5014
|
+
@change=${e._handleSelectAllChange}
|
|
5015
|
+
.helperText=${"Select All"}
|
|
5016
|
+
></spectric-input>` : null,
|
|
5017
|
+
render: (e, t, o) => {
|
|
5018
|
+
let s = o.selected.includes(e);
|
|
5019
|
+
return $`<spectric-input
|
|
5020
|
+
variant="checkbox"
|
|
5021
|
+
class="table-checkbox-${o.select}"
|
|
5022
|
+
.helperText=${""}
|
|
5023
|
+
${Ve({ checked: s })}
|
|
5024
|
+
@change=${(r) => {
|
|
5025
|
+
r.stopPropagation();
|
|
5026
|
+
let c = o.selected.findIndex((h) => h === e);
|
|
5027
|
+
if (!(r.target.checked && c !== -1)) {
|
|
5028
|
+
{
|
|
5029
|
+
if (!r.target.checked && c === -1)
|
|
5030
|
+
return;
|
|
5031
|
+
!r.target.checked && c !== -1 && o.selected.splice(c, 1);
|
|
5032
|
+
}
|
|
5033
|
+
r.target.checked && (o.select === "single" && (o.selected = [], o.forceRefreshofSelectionColumn()), o.selected.push(e)), o.dispatchEvent(
|
|
5034
|
+
new CustomEvent("selected", { detail: [...o.selected] })
|
|
5035
|
+
);
|
|
5036
|
+
}
|
|
5037
|
+
}}
|
|
5038
|
+
></spectric-input>`;
|
|
5039
|
+
}
|
|
4916
5040
|
};
|
|
4917
5041
|
}
|
|
4918
5042
|
static getDefaultDataSorterAndPaginatior(e) {
|
|
4919
5043
|
return (t) => {
|
|
4920
|
-
let o = (t.sortOrder || []).map(
|
|
5044
|
+
let o = (t.sortOrder || []).map(
|
|
5045
|
+
(c) => t.columns.find((h) => h.key === c)
|
|
5046
|
+
), s = [...e];
|
|
4921
5047
|
if (o.length) {
|
|
4922
|
-
let c =
|
|
5048
|
+
let c = $c(o);
|
|
4923
5049
|
s.sort((h, d) => {
|
|
4924
5050
|
for (let m of c) {
|
|
4925
5051
|
let A = m(h, d);
|
|
@@ -4938,44 +5064,53 @@ let K = class extends z {
|
|
|
4938
5064
|
createRenderRoot() {
|
|
4939
5065
|
return this;
|
|
4940
5066
|
}
|
|
5067
|
+
forceRefreshofSelectionColumn() {
|
|
5068
|
+
let e = this.columns.findIndex(
|
|
5069
|
+
(t) => t[Ar]
|
|
5070
|
+
);
|
|
5071
|
+
e !== -1 && (this.columns[e] = { ...this.selectColumnConfig });
|
|
5072
|
+
}
|
|
5073
|
+
setSelected(e) {
|
|
5074
|
+
this.selected = e, this.forceRefreshofSelectionColumn();
|
|
5075
|
+
}
|
|
4941
5076
|
deselectAll() {
|
|
4942
|
-
this.selected = [], this.dispatchEvent(new CustomEvent("selected", { detail: this.selected }));
|
|
5077
|
+
this.selected = [], this.forceRefreshofSelectionColumn(), this.dispatchEvent(new CustomEvent("selected", { detail: this.selected }));
|
|
4943
5078
|
}
|
|
4944
5079
|
selectAll() {
|
|
4945
|
-
this.selected = [...this.data], this.dispatchEvent(new CustomEvent("selected", { detail: this.selected }));
|
|
5080
|
+
this.selected = [...this.data], this.forceRefreshofSelectionColumn(), this.dispatchEvent(new CustomEvent("selected", { detail: this.selected }));
|
|
4946
5081
|
}
|
|
4947
5082
|
update(e) {
|
|
4948
|
-
e.has("columns") && this.select !== "none" && (this.columns.find((t) => t[
|
|
4949
|
-
[
|
|
4950
|
-
|
|
4951
|
-
render: (t) => {
|
|
4952
|
-
let o = document.createElement("div"), s = this.selected.includes(t), n = $`<spectric-input variant="checkbox" class="table-checkbox-${this.select}" .helperText=${""} ${Ke({ checked: s })} @change=${(r) => {
|
|
4953
|
-
r.stopPropagation();
|
|
4954
|
-
let c = this.selected.findIndex((h) => h === t);
|
|
4955
|
-
if (!(r.target.checked && c !== -1)) {
|
|
4956
|
-
{
|
|
4957
|
-
if (!r.target.checked && c === -1)
|
|
4958
|
-
return;
|
|
4959
|
-
!r.target.checked && c !== -1 && this.selected.splice(c, 1);
|
|
4960
|
-
}
|
|
4961
|
-
r.target.checked && (this.select === "single" && (this.selected = []), this.selected.push(t)), this.dispatchEvent(new CustomEvent("selected", { detail: [...this.selected] }));
|
|
4962
|
-
}
|
|
4963
|
-
}}></spectric-input>`;
|
|
4964
|
-
return xt(n, o), n;
|
|
4965
|
-
}
|
|
4966
|
-
})), e.has("select") && this.select === "single" && this.selected.length > 1 && (this.selected = [this.selected[0]], this.dispatchEvent(new CustomEvent("selected", { detail: [...this.selected] }))), super.update(e);
|
|
5083
|
+
e.has("columns") && this.select !== "none" && (this.columns.find((t) => t[Ar]) || this.columns.unshift(this.selectColumnConfig)), e.has("select") && this.select === "single" && this.selected.length > 1 && (this.selected = [this.selected[0]], this.dispatchEvent(
|
|
5084
|
+
new CustomEvent("selected", { detail: [...this.selected] })
|
|
5085
|
+
)), super.update(e);
|
|
4967
5086
|
}
|
|
4968
5087
|
render() {
|
|
4969
|
-
let e = this.columns.filter((o) => !o.hidden), t = this.rowHeight -
|
|
4970
|
-
return t < this.fontSize +
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
5088
|
+
let e = this.columns.filter((o) => !o.hidden), t = this.rowHeight - yt;
|
|
5089
|
+
return t < this.fontSize + yt && (t = this.fontSize + yt), $`
|
|
5090
|
+
<div
|
|
5091
|
+
class="table-wrapper"
|
|
5092
|
+
style="--rowHeight:${t}px;--fontSize:${this.fontSize}px;--lineClamp:${Math.floor(t / this.fontSize)}"
|
|
5093
|
+
>
|
|
5094
|
+
<div role="table">
|
|
5095
|
+
<spectric-table-header
|
|
5096
|
+
.columns=${e}
|
|
5097
|
+
.table=${this}
|
|
5098
|
+
@sortChange=${this._handleSortChange}
|
|
5099
|
+
@columnResize=${this._handleColumnResize}
|
|
5100
|
+
></spectric-table-header>
|
|
5101
|
+
<spectric-table-virtual-body
|
|
5102
|
+
.columns=${e}
|
|
5103
|
+
.data=${this.data}
|
|
5104
|
+
.table=${this}
|
|
5105
|
+
.rowHeight=${t}
|
|
5106
|
+
></spectric-table-virtual-body>
|
|
4976
5107
|
</div>
|
|
4977
|
-
|
|
4978
|
-
|
|
5108
|
+
</div>
|
|
5109
|
+
${this.pagination ? $`<spectric-pagination
|
|
5110
|
+
${Ve(this.pagination)}
|
|
5111
|
+
@change=${this._handlePaginationChange}
|
|
5112
|
+
></spectric-pagination>` : null}
|
|
5113
|
+
`;
|
|
4979
5114
|
}
|
|
4980
5115
|
};
|
|
4981
5116
|
pe([
|
|
@@ -5008,12 +5143,12 @@ pe([
|
|
|
5008
5143
|
K = pe([
|
|
5009
5144
|
P(Vs)
|
|
5010
5145
|
], K);
|
|
5011
|
-
var
|
|
5012
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
5146
|
+
var xc = Object.defineProperty, Sc = Object.getOwnPropertyDescriptor, re = (e, t, o, s) => {
|
|
5147
|
+
for (var n = s > 1 ? void 0 : s ? Sc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
5013
5148
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
5014
|
-
return s && n &&
|
|
5149
|
+
return s && n && xc(t, o, n), n;
|
|
5015
5150
|
};
|
|
5016
|
-
const
|
|
5151
|
+
const Ac = "spectric-popover";
|
|
5017
5152
|
let B = class extends ve {
|
|
5018
5153
|
constructor() {
|
|
5019
5154
|
super(), this.delay = 100, this.animationDuration = 0, this.text = "", this.position = "right", this.maxWidth = 300, this.mouseOffsetX = 10, this.mouseOffsetY = 0, this.portalTarget = document.body, this.open = !1, this._getMousePosition = (e) => {
|
|
@@ -5112,7 +5247,7 @@ re([
|
|
|
5112
5247
|
g({ type: Number, reflect: !1 })
|
|
5113
5248
|
], B.prototype, "mouseOffsetY", 2);
|
|
5114
5249
|
re([
|
|
5115
|
-
|
|
5250
|
+
Se(".spectric-popover-portal")
|
|
5116
5251
|
], B.prototype, "portalElement", 2);
|
|
5117
5252
|
re([
|
|
5118
5253
|
g({ attribute: !1 })
|
|
@@ -5121,12 +5256,12 @@ re([
|
|
|
5121
5256
|
g({ attribute: !1 })
|
|
5122
5257
|
], B.prototype, "triggerTarget", 2);
|
|
5123
5258
|
B = re([
|
|
5124
|
-
P(
|
|
5259
|
+
P(Ac)
|
|
5125
5260
|
], B);
|
|
5126
|
-
var
|
|
5127
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
5261
|
+
var Cc = Object.defineProperty, kc = Object.getOwnPropertyDescriptor, Ce = (e, t, o, s) => {
|
|
5262
|
+
for (var n = s > 1 ? void 0 : s ? kc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
5128
5263
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
5129
|
-
return s && n &&
|
|
5264
|
+
return s && n && Cc(t, o, n), n;
|
|
5130
5265
|
};
|
|
5131
5266
|
const eo = "spectric-tooltip";
|
|
5132
5267
|
var to = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.left = "left", e.right = "right", e.mouse = "mouse", e))(to || {});
|
|
@@ -5145,40 +5280,40 @@ te.styles = X`:host{max-height: 0px;
|
|
|
5145
5280
|
max-width: 0px;
|
|
5146
5281
|
display: none;
|
|
5147
5282
|
pointer-events:none;}`;
|
|
5148
|
-
|
|
5283
|
+
Ce([
|
|
5149
5284
|
g({ type: Number, reflect: !0 })
|
|
5150
5285
|
], te.prototype, "delay", 2);
|
|
5151
|
-
|
|
5286
|
+
Ce([
|
|
5152
5287
|
g({ type: Number, reflect: !0 })
|
|
5153
5288
|
], te.prototype, "animationDuration", 2);
|
|
5154
|
-
|
|
5289
|
+
Ce([
|
|
5155
5290
|
g({ type: String, reflect: !1 })
|
|
5156
5291
|
], te.prototype, "text", 2);
|
|
5157
|
-
|
|
5292
|
+
Ce([
|
|
5158
5293
|
g({ type: String, reflect: !0 })
|
|
5159
5294
|
], te.prototype, "position", 2);
|
|
5160
|
-
|
|
5295
|
+
Ce([
|
|
5161
5296
|
g({ type: Number, reflect: !0 })
|
|
5162
5297
|
], te.prototype, "maxWidth", 2);
|
|
5163
|
-
|
|
5298
|
+
Ce([
|
|
5164
5299
|
g({ attribute: !1 })
|
|
5165
5300
|
], te.prototype, "portalTarget", 2);
|
|
5166
|
-
|
|
5301
|
+
Ce([
|
|
5167
5302
|
g({ attribute: !1 })
|
|
5168
5303
|
], te.prototype, "triggerTarget", 2);
|
|
5169
|
-
te =
|
|
5304
|
+
te = Ce([
|
|
5170
5305
|
P(eo)
|
|
5171
5306
|
], te);
|
|
5172
|
-
var
|
|
5173
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
5307
|
+
var Ec = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, Q = (e, t, o, s) => {
|
|
5308
|
+
for (var n = s > 1 ? void 0 : s ? Oc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
5174
5309
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
5175
|
-
return s && n &&
|
|
5310
|
+
return s && n && Ec(t, o, n), n;
|
|
5176
5311
|
};
|
|
5177
|
-
let
|
|
5178
|
-
window.hasOwnProperty("EyeDropper") && (
|
|
5312
|
+
let Xe;
|
|
5313
|
+
window.hasOwnProperty("EyeDropper") && (Xe = new EyeDropper());
|
|
5179
5314
|
let U = class extends z {
|
|
5180
5315
|
constructor() {
|
|
5181
|
-
super(), this.value = "#FF0000FF", this.showAlpha = !0, this.hue = 0, this.alpha = 1, this.saturation = 1, this.lightness = 1, this.canvas =
|
|
5316
|
+
super(), this.value = "#FF0000FF", this.showAlpha = !0, this.hue = 0, this.alpha = 1, this.saturation = 1, this.lightness = 1, this.canvas = vt(), this.sldown = !1, this._handleAlphaChange = this._handleAlphaChange.bind(this), this._handleHueChange = this._handleHueChange.bind(this), this._handleApply = this._handleApply.bind(this), this._cancel = this._cancel.bind(this), this._handleSaturationLightnessClick = this._handleSaturationLightnessClick.bind(this);
|
|
5182
5317
|
}
|
|
5183
5318
|
createRenderRoot() {
|
|
5184
5319
|
return this;
|
|
@@ -5197,7 +5332,7 @@ let U = class extends z {
|
|
|
5197
5332
|
if (!t)
|
|
5198
5333
|
return;
|
|
5199
5334
|
let o = this.canvas.value.width / 100, s = this.canvas.value.height / 100, n = 0, r = 0;
|
|
5200
|
-
for (let c of
|
|
5335
|
+
for (let c of Tc(this.hue))
|
|
5201
5336
|
t.fillStyle = c, t.fillRect(n, r, o, s), n += o, n = n % (o * 101), n || (r += s);
|
|
5202
5337
|
}
|
|
5203
5338
|
_handleSaturationLightnessClick(e) {
|
|
@@ -5210,7 +5345,7 @@ let U = class extends z {
|
|
|
5210
5345
|
e.stopPropagation(), this.hue = parseInt(String(e.target.value)) / 100 * 360, e.target.style.setProperty("accent-color", `hsl(${this.hue}deg 100% 50%)`), this.renderHueSaturationGrid(), this.updateValue();
|
|
5211
5346
|
}
|
|
5212
5347
|
updateValue() {
|
|
5213
|
-
let e =
|
|
5348
|
+
let e = Lc(this.hue, this.saturation * 100, this.lightness * 100) + Math.round(this.alpha * 255).toString(16).padStart(2, "0");
|
|
5214
5349
|
this.value = e;
|
|
5215
5350
|
}
|
|
5216
5351
|
_handleAlphaChange(e) {
|
|
@@ -5236,7 +5371,7 @@ let U = class extends z {
|
|
|
5236
5371
|
getPopover() {
|
|
5237
5372
|
return $`
|
|
5238
5373
|
<spectric-input label="Hue" class="hue-gradient" variant="range" .value=${this.hue || 0} style="accent-color:hsl(${this.hue}deg 100% 50%)" @change=${this._handleHueChange}></spectric-input>
|
|
5239
|
-
<canvas ${
|
|
5374
|
+
<canvas ${bt(this.canvas)} width=200 height=100 class="color-picker-saturation-lightness-grid" @click=${this._handleSaturationLightnessClick}
|
|
5240
5375
|
@mousedown=${(e) => {
|
|
5241
5376
|
this.sldown = !0, e.preventDefault(), e.stopPropagation();
|
|
5242
5377
|
}}
|
|
@@ -5249,12 +5384,12 @@ let U = class extends z {
|
|
|
5249
5384
|
></canvas>
|
|
5250
5385
|
<spectric-input class="alpha-gradient" ?hidden=${!this.showAlpha} label="Opacity" variant="range" .value=${(this.alpha || 1) * 100} @change=${this._handleAlphaChange}></spectric-input>
|
|
5251
5386
|
<div class="color-picker-footer">
|
|
5252
|
-
<spectric-button icon class="color-picker-eyedropper ${
|
|
5253
|
-
if (
|
|
5254
|
-
let e = await (
|
|
5387
|
+
<spectric-button icon class="color-picker-eyedropper ${Xe === void 0 ? "hidden" : ""}" @click=${async () => {
|
|
5388
|
+
if (Xe) {
|
|
5389
|
+
let e = await (Xe == null ? void 0 : Xe.open()), { h: t, s: o, l: s, a: n } = ms(e.sRGBHex);
|
|
5255
5390
|
this.hue = t, this.saturation = o, this.lightness = s, this.alpha = n, this.updateValue();
|
|
5256
5391
|
}
|
|
5257
|
-
}}>${
|
|
5392
|
+
}}>${Pc}</spectric-button>
|
|
5258
5393
|
<spectric-button @click=${this._handleApply}>Apply</spectric-button>
|
|
5259
5394
|
<spectric-button variant="secondary" @click=${this._cancel}>Cancel</spectric-button>
|
|
5260
5395
|
</div>
|
|
@@ -5288,33 +5423,33 @@ Q([
|
|
|
5288
5423
|
V()
|
|
5289
5424
|
], U.prototype, "lightness", 2);
|
|
5290
5425
|
Q([
|
|
5291
|
-
|
|
5426
|
+
Re({ capture: !0 })
|
|
5292
5427
|
], U.prototype, "_handleSaturationLightnessClick", 1);
|
|
5293
5428
|
Q([
|
|
5294
|
-
|
|
5429
|
+
Re({ capture: !0 })
|
|
5295
5430
|
], U.prototype, "_handleHueChange", 1);
|
|
5296
5431
|
Q([
|
|
5297
|
-
|
|
5432
|
+
Re({ capture: !0 })
|
|
5298
5433
|
], U.prototype, "_handleAlphaChange", 1);
|
|
5299
5434
|
Q([
|
|
5300
|
-
|
|
5435
|
+
Re({ capture: !0 })
|
|
5301
5436
|
], U.prototype, "_handleApply", 1);
|
|
5302
5437
|
Q([
|
|
5303
|
-
|
|
5438
|
+
Re({ capture: !0 })
|
|
5304
5439
|
], U.prototype, "_cancel", 1);
|
|
5305
5440
|
Q([
|
|
5306
|
-
|
|
5441
|
+
Re({ capture: !0 })
|
|
5307
5442
|
], U.prototype, "_openPopover", 1);
|
|
5308
5443
|
U = Q([
|
|
5309
5444
|
P("spectric-colorpicker")
|
|
5310
5445
|
], U);
|
|
5311
|
-
const
|
|
5312
|
-
function*
|
|
5446
|
+
const Pc = $`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" height="15" width="15" fill="currentColor"><path d="M222,67.34a33.81,33.81,0,0,0-10.64-24.25C198.12,30.56,176.68,31,163.54,44.18L142.82,65l-.63-.63a22,22,0,0,0-31.11,0l-9,9a14,14,0,0,0,0,19.81l3.47,3.47L53.14,149.1a37.79,37.79,0,0,0-9.84,36.73l-8.31,19a11.68,11.68,0,0,0,2.46,13A13.91,13.91,0,0,0,47.32,222,14.15,14.15,0,0,0,53,220.82L71,212.92a37.92,37.92,0,0,0,35.84-10.07l52.44-52.46,3.47,3.48a14,14,0,0,0,19.8,0l9-9a22,22,0,0,0,0-31.12l-.66-.66L212,91.85A33.76,33.76,0,0,0,222,67.34Zm-123.61,127a26,26,0,0,1-26,6.47,6,6,0,0,0-4.16.24l-20,8.75a2,2,0,0,1-2.09-.31l9.12-20.9a5.94,5.94,0,0,0,.19-4.31,25.88,25.88,0,0,1,6.26-26.72l52.44-52.45,36.76,36.78Zm105.16-111L178.17,108.9a6,6,0,0,0,0,8.47l4.88,4.89a10,10,0,0,1,0,14.15l-9,9a2,2,0,0,1-2.82,0l-60.69-60.7a2,2,0,0,1,0-2.83l9-9a10,10,0,0,1,14.14,0l4.89,4.89a6,6,0,0,0,4.24,1.75h0a6,6,0,0,0,4.25-1.77L172,52.66c8.58-8.58,22.52-9,31.08-.85a22,22,0,0,1,.44,31.57Z"/></svg>`;
|
|
5447
|
+
function* Tc(e) {
|
|
5313
5448
|
for (let t = 100; t >= 0; t--)
|
|
5314
5449
|
for (let o = 0; o <= 100; o++)
|
|
5315
5450
|
yield `hsl(${e}, ${o}%, ${t}%)`;
|
|
5316
5451
|
}
|
|
5317
|
-
function
|
|
5452
|
+
function Lc(e, t, o) {
|
|
5318
5453
|
o /= 100;
|
|
5319
5454
|
const s = t * Math.min(o, 1 - o) / 100, n = (r) => {
|
|
5320
5455
|
const c = (r + e / 30) % 12, h = o - s * Math.max(Math.min(c - 3, 9 - c, 1), -1);
|
|
@@ -5346,20 +5481,20 @@ function ms(e) {
|
|
|
5346
5481
|
}
|
|
5347
5482
|
return h = Math.round(h * 360), { h, s: d, l: m, a: n };
|
|
5348
5483
|
}
|
|
5349
|
-
const
|
|
5484
|
+
const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5350
5485
|
__proto__: null,
|
|
5351
5486
|
SpreadPropsDirective: Rs,
|
|
5352
5487
|
debounce: da,
|
|
5353
5488
|
debounceAnimation: Gt,
|
|
5354
|
-
once:
|
|
5355
|
-
spreadProps:
|
|
5489
|
+
once: mc,
|
|
5490
|
+
spreadProps: Ve
|
|
5356
5491
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5357
|
-
var
|
|
5358
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
5492
|
+
var zc = Object.defineProperty, Nc = Object.getOwnPropertyDescriptor, ot = (e, t, o, s) => {
|
|
5493
|
+
for (var n = s > 1 ? void 0 : s ? Nc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
|
|
5359
5494
|
(c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
|
|
5360
|
-
return s && n &&
|
|
5495
|
+
return s && n && zc(t, o, n), n;
|
|
5361
5496
|
};
|
|
5362
|
-
let
|
|
5497
|
+
let xe = class extends ve {
|
|
5363
5498
|
constructor() {
|
|
5364
5499
|
super(), this.currentDate = /* @__PURE__ */ new Date(), this.date = /* @__PURE__ */ new Date(), this.popup = !1, this.disabled = !1, this.handleMouseMove = Gt(async (e) => {
|
|
5365
5500
|
const t = await this.calendarElement, o = t.getBoundingClientRect(), s = (e.clientX - o.left) / o.width * 100, n = (e.clientY - o.top) / o.height * 100;
|
|
@@ -5508,39 +5643,39 @@ let _e = class extends ve {
|
|
|
5508
5643
|
` : c;
|
|
5509
5644
|
}
|
|
5510
5645
|
};
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
],
|
|
5514
|
-
|
|
5646
|
+
ot([
|
|
5647
|
+
Ct(".days")
|
|
5648
|
+
], xe.prototype, "calendarElement", 2);
|
|
5649
|
+
ot([
|
|
5515
5650
|
g({ attribute: !1 })
|
|
5516
|
-
],
|
|
5517
|
-
|
|
5651
|
+
], xe.prototype, "currentDate", 2);
|
|
5652
|
+
ot([
|
|
5518
5653
|
V()
|
|
5519
|
-
],
|
|
5520
|
-
|
|
5654
|
+
], xe.prototype, "date", 2);
|
|
5655
|
+
ot([
|
|
5521
5656
|
g({ type: Boolean, reflect: !0 })
|
|
5522
|
-
],
|
|
5523
|
-
|
|
5657
|
+
], xe.prototype, "popup", 2);
|
|
5658
|
+
ot([
|
|
5524
5659
|
g({ type: Boolean, reflect: !0 })
|
|
5525
|
-
],
|
|
5526
|
-
|
|
5660
|
+
], xe.prototype, "disabled", 2);
|
|
5661
|
+
xe = ot([
|
|
5527
5662
|
P("spectric-calendar")
|
|
5528
|
-
],
|
|
5529
|
-
const
|
|
5663
|
+
], xe);
|
|
5664
|
+
const Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5530
5665
|
__proto__: null,
|
|
5531
5666
|
get BitDisplayCanvas() {
|
|
5532
5667
|
return ne;
|
|
5533
5668
|
},
|
|
5534
5669
|
ButtonSizes: Ds,
|
|
5535
5670
|
ButtonVariants: zs,
|
|
5536
|
-
CSSPropsControls:
|
|
5671
|
+
CSSPropsControls: Xl,
|
|
5537
5672
|
get DialogElement() {
|
|
5538
5673
|
return Y;
|
|
5539
5674
|
},
|
|
5540
|
-
DialogElementTag:
|
|
5675
|
+
DialogElementTag: Qr,
|
|
5541
5676
|
ElementTag: Ks,
|
|
5542
5677
|
get Header() {
|
|
5543
|
-
return
|
|
5678
|
+
return ze;
|
|
5544
5679
|
},
|
|
5545
5680
|
InputVariants: Bs,
|
|
5546
5681
|
Orientations: Zs,
|
|
@@ -5548,12 +5683,12 @@ const Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5548
5683
|
return ge;
|
|
5549
5684
|
},
|
|
5550
5685
|
PaginationElementTag: Xs,
|
|
5551
|
-
SPECTRIC_CSS_VARIABLES:
|
|
5686
|
+
SPECTRIC_CSS_VARIABLES: Gl,
|
|
5552
5687
|
get SpectricButton() {
|
|
5553
5688
|
return I;
|
|
5554
5689
|
},
|
|
5555
5690
|
get SpectricCalendar() {
|
|
5556
|
-
return
|
|
5691
|
+
return xe;
|
|
5557
5692
|
},
|
|
5558
5693
|
get SpectricInput() {
|
|
5559
5694
|
return O;
|
|
@@ -5562,7 +5697,7 @@ const Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5562
5697
|
return q;
|
|
5563
5698
|
},
|
|
5564
5699
|
get SpectricPanel() {
|
|
5565
|
-
return
|
|
5700
|
+
return tt;
|
|
5566
5701
|
},
|
|
5567
5702
|
get SpectricQuery() {
|
|
5568
5703
|
return Z;
|
|
@@ -5571,67 +5706,67 @@ const Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5571
5706
|
return K;
|
|
5572
5707
|
},
|
|
5573
5708
|
get SpectricThemeProvider() {
|
|
5574
|
-
return
|
|
5709
|
+
return _t;
|
|
5575
5710
|
},
|
|
5576
5711
|
get SplitView() {
|
|
5577
5712
|
return M;
|
|
5578
5713
|
},
|
|
5579
5714
|
SupportedLanguages: qs,
|
|
5580
|
-
TD_BorderAndPadding:
|
|
5715
|
+
TD_BorderAndPadding: yt,
|
|
5581
5716
|
TableElementTag: Vs,
|
|
5582
5717
|
TableSelectOptions: Gs,
|
|
5583
5718
|
TableSortDirection: H,
|
|
5584
5719
|
TableSortOption: Js,
|
|
5585
|
-
ThemeSelections:
|
|
5720
|
+
ThemeSelections: Vl,
|
|
5586
5721
|
get TooltipElement() {
|
|
5587
5722
|
return te;
|
|
5588
5723
|
},
|
|
5589
5724
|
TooltipElementTag: eo,
|
|
5590
5725
|
TooltipPostions: to,
|
|
5591
5726
|
nodeTypes: de
|
|
5592
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5727
|
+
}, Symbol.toStringTag, { value: "Module" })), qc = { ...oc, ...Mc, ...Dc };
|
|
5593
5728
|
export {
|
|
5594
5729
|
js as BitArray,
|
|
5595
5730
|
ne as BitDisplayCanvas,
|
|
5596
5731
|
Ds as ButtonSizes,
|
|
5597
5732
|
zs as ButtonVariants,
|
|
5598
|
-
|
|
5733
|
+
Xl as CSSPropsControls,
|
|
5599
5734
|
Y as DialogElement,
|
|
5600
|
-
|
|
5735
|
+
Qr as DialogElementTag,
|
|
5601
5736
|
ve as DisposableElement,
|
|
5602
5737
|
Ks as ElementTag,
|
|
5603
|
-
|
|
5738
|
+
ze as Header,
|
|
5604
5739
|
Bs as InputVariants,
|
|
5605
5740
|
Zs as Orientations,
|
|
5606
5741
|
ge as PaginationElement,
|
|
5607
5742
|
Xs as PaginationElementTag,
|
|
5608
|
-
|
|
5743
|
+
Gl as SPECTRIC_CSS_VARIABLES,
|
|
5609
5744
|
I as SpectricButton,
|
|
5610
|
-
|
|
5745
|
+
xe as SpectricCalendar,
|
|
5611
5746
|
O as SpectricInput,
|
|
5612
5747
|
q as SpectricPage,
|
|
5613
|
-
|
|
5748
|
+
tt as SpectricPanel,
|
|
5614
5749
|
Z as SpectricQuery,
|
|
5615
5750
|
K as SpectricTableElement,
|
|
5616
|
-
|
|
5751
|
+
_t as SpectricThemeProvider,
|
|
5617
5752
|
M as SplitView,
|
|
5618
5753
|
Rs as SpreadPropsDirective,
|
|
5619
5754
|
qs as SupportedLanguages,
|
|
5620
|
-
|
|
5755
|
+
yt as TD_BorderAndPadding,
|
|
5621
5756
|
Vs as TableElementTag,
|
|
5622
5757
|
Gs as TableSelectOptions,
|
|
5623
5758
|
H as TableSortDirection,
|
|
5624
5759
|
Js as TableSortOption,
|
|
5625
|
-
|
|
5760
|
+
Vl as ThemeSelections,
|
|
5626
5761
|
te as TooltipElement,
|
|
5627
5762
|
eo as TooltipElementTag,
|
|
5628
5763
|
to as TooltipPostions,
|
|
5629
5764
|
da as debounce,
|
|
5630
5765
|
Gt as debounceAnimation,
|
|
5631
|
-
|
|
5766
|
+
qc as default,
|
|
5632
5767
|
ea as getListeners,
|
|
5633
5768
|
de as nodeTypes,
|
|
5634
|
-
|
|
5635
|
-
|
|
5769
|
+
mc as once,
|
|
5770
|
+
Ve as spreadProps
|
|
5636
5771
|
};
|
|
5637
5772
|
//# sourceMappingURL=index.es.js.map
|