@spectric/ui 0.0.5 → 0.0.7
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/input.d.ts +3 -1
- package/dist/components/query_bar/QueryBar.d.ts +7 -3
- package/dist/custom-elements.json +7 -3
- package/dist/index.es.js +130 -126
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +22 -22
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/input.ts +19 -2
- package/src/components/query_bar/QueryBar.ts +21 -22
- package/src/stories/QueryBar.stories.ts +7 -0
- package/src/stories/fixtures/data.ts +3 -0
- package/dist/assets/Banner-CZ3qKIQC.js +0 -172
- package/dist/assets/Banner.stories-BMf4MBpI.js +0 -19
- package/dist/assets/BitDisplay.stories-wztXxpxe.js +0 -18
- package/dist/assets/Bits-C_TSTjST.js +0 -1
- package/dist/assets/Button.stories-gHxjWwVf.js +0 -142
- package/dist/assets/Color-F6OSRLHC-AjFOL-zN.js +0 -1
- package/dist/assets/DocsRenderer-CFRXHY34-CvW79YxE.js +0 -761
- package/dist/assets/Header.stories-Bc09U6g1.js +0 -25
- package/dist/assets/Page.stories-DNJKhAFs.js +0 -114
- package/dist/assets/QueryBar.stories-Da5C-SV4.js +0 -17
- package/dist/assets/_commonjsHelpers-Cpj98o6Y.js +0 -1
- package/dist/assets/chunk-L4EGOTBX-AI5g0G5Z.js +0 -2
- package/dist/assets/data-CwENMT7L.js +0 -3
- package/dist/assets/dialog-CFHXbUTQ.js +0 -611
- package/dist/assets/directive-helpers-IbK5tOA8.js +0 -5
- package/dist/assets/entry-preview-Di-j0SPB.js +0 -4
- package/dist/assets/entry-preview-docs-CUBRpM7y.js +0 -1
- package/dist/assets/iframe-BQFuVTVZ.js +0 -2
- package/dist/assets/index-BCiKWbv6.js +0 -1
- package/dist/assets/index-BHYIh-Xd.js +0 -8
- package/dist/assets/index-DBGhiA-l.js +0 -1
- package/dist/assets/index-DrFu-skq.js +0 -6
- package/dist/assets/index-oFsFREWh.js +0 -9
- package/dist/assets/input.stories-Cgdv-5bN.js +0 -58
- package/dist/assets/lit-element-UdLzEcH-.js +0 -19
- package/dist/assets/preview-BWzBA1C2.js +0 -396
- package/dist/assets/preview-CGiTbRot.js +0 -2
- package/dist/assets/preview-D77C14du.js +0 -34
- package/dist/assets/preview-DEMzn_yN.js +0 -1
- package/dist/assets/preview-DFmD0pui.js +0 -1
- package/dist/assets/preview-DGUiP6tS.js +0 -7
- package/dist/assets/preview-DQVTHjv1.js +0 -182
- package/dist/assets/preview-aVwhiz9X.js +0 -1
- package/dist/assets/tiny-invariant-CopsF_GD.js +0 -1
- package/dist/components/input.css.d.ts +0 -2
- package/dist/favicon.svg +0 -1
- package/dist/iframe.html +0 -639
- package/dist/index.html +0 -190
- package/dist/index.json +0 -1
- package/dist/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/nunito-sans-bold.woff2 +0 -0
- package/dist/nunito-sans-italic.woff2 +0 -0
- package/dist/nunito-sans-regular.woff2 +0 -0
- package/dist/project.json +0 -1
- package/dist/sb-addons/chromatic-com-storybook-8/manager-bundle.js +0 -333
- package/dist/sb-addons/chromatic-com-storybook-8/manager-bundle.js.LEGAL.txt +0 -40
- package/dist/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
- package/dist/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/essentials-controls-1/manager-bundle.js +0 -391
- package/dist/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-common-assets/favicon.svg +0 -1
- package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/dist/sb-manager/globals-module-info.js +0 -1028
- package/dist/sb-manager/globals-runtime.js +0 -40861
- package/dist/sb-manager/globals.js +0 -48
- package/dist/sb-manager/runtime.js +0 -13338
- package/dist/sb-preview/globals.js +0 -33
- package/dist/sb-preview/runtime.js +0 -7174
package/dist/index.es.js
CHANGED
|
@@ -761,7 +761,7 @@ opacity:1
|
|
|
761
761
|
* Copyright 2017 Google LLC
|
|
762
762
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
763
763
|
*/
|
|
764
|
-
const
|
|
764
|
+
const I = (s) => (r, o) => {
|
|
765
765
|
o !== void 0 ? o.addInitializer(() => {
|
|
766
766
|
customElements.define(s, r);
|
|
767
767
|
}) : customElements.define(s, r);
|
|
@@ -849,7 +849,7 @@ const on = {
|
|
|
849
849
|
secondary: "spectric-button--secondary",
|
|
850
850
|
text: "spectric-button--text"
|
|
851
851
|
};
|
|
852
|
-
let
|
|
852
|
+
let J = class extends L {
|
|
853
853
|
constructor() {
|
|
854
854
|
super(...arguments), this.variant = "primary", this.disabled = !1, this.size = "large", this.label = "", this.danger = !1, this._onClick = (s) => {
|
|
855
855
|
if (s instanceof CustomEvent)
|
|
@@ -884,28 +884,28 @@ let G = class extends L {
|
|
|
884
884
|
`;
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
|
-
|
|
887
|
+
J.styles = Go;
|
|
888
888
|
ge([
|
|
889
889
|
v({ type: String, reflect: !0 })
|
|
890
|
-
],
|
|
890
|
+
], J.prototype, "variant", 2);
|
|
891
891
|
ge([
|
|
892
892
|
v({ type: Boolean, reflect: !0 })
|
|
893
|
-
],
|
|
893
|
+
], J.prototype, "disabled", 2);
|
|
894
894
|
ge([
|
|
895
895
|
v({ type: String, reflect: !0 })
|
|
896
|
-
],
|
|
896
|
+
], J.prototype, "backgroundColor", 2);
|
|
897
897
|
ge([
|
|
898
898
|
v({ type: String, reflect: !0 })
|
|
899
|
-
],
|
|
899
|
+
], J.prototype, "size", 2);
|
|
900
900
|
ge([
|
|
901
901
|
v({ type: String, reflect: !0 })
|
|
902
|
-
],
|
|
902
|
+
], J.prototype, "label", 2);
|
|
903
903
|
ge([
|
|
904
904
|
v({ type: Boolean, reflect: !0 })
|
|
905
|
-
],
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
],
|
|
905
|
+
], J.prototype, "danger", 2);
|
|
906
|
+
J = ge([
|
|
907
|
+
I("spectric-button")
|
|
908
|
+
], J);
|
|
909
909
|
/**
|
|
910
910
|
* @license
|
|
911
911
|
* Copyright 2020 Google LLC
|
|
@@ -1090,7 +1090,7 @@ var dn = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, ve = (s, r
|
|
|
1090
1090
|
return i && c && dn(r, o, c), c;
|
|
1091
1091
|
};
|
|
1092
1092
|
const hn = ["mousemove", "click", "dblclick", "mousedown", "mouseup", "contextmenu"], at = { width: 200, height: 200 }, bt = { width: 10, height: 10 };
|
|
1093
|
-
let
|
|
1093
|
+
let V = class extends Fs {
|
|
1094
1094
|
constructor() {
|
|
1095
1095
|
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 = {
|
|
1096
1096
|
viewport: ut(),
|
|
@@ -1210,7 +1210,7 @@ let J = class extends Fs {
|
|
|
1210
1210
|
`;
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
|
-
|
|
1213
|
+
V.styles = K`
|
|
1214
1214
|
:host{
|
|
1215
1215
|
position: relative;
|
|
1216
1216
|
--border-radius: var(--spectric-border-radius,4em);
|
|
@@ -1309,25 +1309,25 @@ J.styles = K`
|
|
|
1309
1309
|
`;
|
|
1310
1310
|
ve([
|
|
1311
1311
|
v({ type: Object, attribute: !1 })
|
|
1312
|
-
],
|
|
1312
|
+
], V.prototype, "arrayBuffer", 2);
|
|
1313
1313
|
ve([
|
|
1314
1314
|
v({ type: Number })
|
|
1315
|
-
],
|
|
1315
|
+
], V.prototype, "frameWidth", 2);
|
|
1316
1316
|
ve([
|
|
1317
1317
|
v({ type: Number })
|
|
1318
|
-
],
|
|
1318
|
+
], V.prototype, "scale", 2);
|
|
1319
1319
|
ve([
|
|
1320
1320
|
v({ type: Number })
|
|
1321
|
-
],
|
|
1321
|
+
], V.prototype, "width", 2);
|
|
1322
1322
|
ve([
|
|
1323
1323
|
v({ type: Number })
|
|
1324
|
-
],
|
|
1324
|
+
], V.prototype, "height", 2);
|
|
1325
1325
|
ve([
|
|
1326
1326
|
$t("canvas")
|
|
1327
|
-
],
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
],
|
|
1327
|
+
], V.prototype, "_canvas", 2);
|
|
1328
|
+
V = ve([
|
|
1329
|
+
I("spectric-bit-display")
|
|
1330
|
+
], V);
|
|
1331
1331
|
const bn = K`.spectric-header {
|
|
1332
1332
|
display: flex;
|
|
1333
1333
|
justify-content: space-between;
|
|
@@ -1425,7 +1425,7 @@ _t([
|
|
|
1425
1425
|
v({ type: String, reflect: !0 })
|
|
1426
1426
|
], Ee.prototype, "username", 2);
|
|
1427
1427
|
Ee = _t([
|
|
1428
|
-
|
|
1428
|
+
I("spectric-header")
|
|
1429
1429
|
], Ee);
|
|
1430
1430
|
var yn = Object.defineProperty, mn = Object.getOwnPropertyDescriptor, Te = (s, r, o, i) => {
|
|
1431
1431
|
for (var c = i > 1 ? void 0 : i ? mn(r, o) : r, t = s.length - 1, p; t >= 0; t--)
|
|
@@ -1481,7 +1481,7 @@ Te([
|
|
|
1481
1481
|
v({ state: !0, type: Boolean, attribute: !1 })
|
|
1482
1482
|
], he.prototype, "_dismissed", 2);
|
|
1483
1483
|
he = Te([
|
|
1484
|
-
|
|
1484
|
+
I("spectric-banner")
|
|
1485
1485
|
], he);
|
|
1486
1486
|
const _n = K`
|
|
1487
1487
|
|
|
@@ -1864,7 +1864,7 @@ Z([
|
|
|
1864
1864
|
v({ type: String, reflect: !0 })
|
|
1865
1865
|
], B.prototype, "theme", 2);
|
|
1866
1866
|
B = Z([
|
|
1867
|
-
|
|
1867
|
+
I("spectric-page")
|
|
1868
1868
|
], B);
|
|
1869
1869
|
var kn = Object.defineProperty, Sn = Object.getOwnPropertyDescriptor, O = (s, r, o, i) => {
|
|
1870
1870
|
for (var c = i > 1 ? void 0 : i ? Sn(r, o) : r, t = s.length - 1, p; t >= 0; t--)
|
|
@@ -1885,7 +1885,7 @@ let E = class extends L {
|
|
|
1885
1885
|
return this;
|
|
1886
1886
|
}
|
|
1887
1887
|
get selectionStart() {
|
|
1888
|
-
return this._input.selectionStart;
|
|
1888
|
+
return this._input ? this._input.selectionStart : null;
|
|
1889
1889
|
}
|
|
1890
1890
|
get value() {
|
|
1891
1891
|
return this._input ? this.variant == "number" ? parseFloat(this._input.value) : this._input.value : this._value;
|
|
@@ -1894,8 +1894,14 @@ let E = class extends L {
|
|
|
1894
1894
|
const r = this._value;
|
|
1895
1895
|
this._value = s, this.requestUpdate("value", r), this._input && (this._input.value = String(s));
|
|
1896
1896
|
}
|
|
1897
|
+
blur() {
|
|
1898
|
+
this._input && this._input.blur();
|
|
1899
|
+
}
|
|
1900
|
+
focus(s) {
|
|
1901
|
+
this._input && (this._input.blur(), this._input.focus(s));
|
|
1902
|
+
}
|
|
1897
1903
|
setSelectionRange(s, r, o = "none") {
|
|
1898
|
-
this._input.setSelectionRange(s, r, o);
|
|
1904
|
+
this._input && this._input.setSelectionRange(s, r, o);
|
|
1899
1905
|
}
|
|
1900
1906
|
render() {
|
|
1901
1907
|
switch (this.variant) {
|
|
@@ -2022,7 +2028,7 @@ O([
|
|
|
2022
2028
|
We("input")
|
|
2023
2029
|
], E.prototype, "_input", 2);
|
|
2024
2030
|
E = O([
|
|
2025
|
-
|
|
2031
|
+
I("spectric-input")
|
|
2026
2032
|
], E);
|
|
2027
2033
|
const Ae = (s) => Wt(s === "" ? void 0 : s ?? void 0), En = "end of input", On = {
|
|
2028
2034
|
fieldName: "field name",
|
|
@@ -2082,25 +2088,25 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2082
2088
|
return ko;
|
|
2083
2089
|
}, x = function(e, n) {
|
|
2084
2090
|
const l = [e, n].find((u) => u.type === "cursor");
|
|
2085
|
-
return l ||
|
|
2091
|
+
return l || Y("or", [e, n]);
|
|
2086
2092
|
}, _ = function(e, n) {
|
|
2087
2093
|
const l = [e, n].find((u) => u.type === "cursor");
|
|
2088
|
-
return l ||
|
|
2094
|
+
return l || Y("and", [e, n]);
|
|
2089
2095
|
}, k = function(e) {
|
|
2090
|
-
return e.type === "cursor" ? e :
|
|
2091
|
-
}, S = "(", j = { type: "literal", value: "(", description: '"("' }, Ye = ")", te = { type: "literal", value: ")", description: '")"' },
|
|
2096
|
+
return e.type === "cursor" ? e : Y("not", [e]);
|
|
2097
|
+
}, S = "(", j = { type: "literal", value: "(", description: '"("' }, Ye = ")", te = { type: "literal", value: ")", description: '")"' }, H = function(e, n) {
|
|
2092
2098
|
return n.type === "cursor" ? {
|
|
2093
2099
|
...n,
|
|
2094
2100
|
suggestionTypes: ["conjunction"]
|
|
2095
2101
|
} : e;
|
|
2096
|
-
},
|
|
2102
|
+
}, q = ":", R = { type: "literal", value: ":", description: '":"' }, ye = "{", xt = { type: "literal", value: "{", description: '"{"' }, At = "}", kt = { type: "literal", value: "}", description: '"}"' }, Gs = function(e, n, l) {
|
|
2097
2103
|
return n.type === "cursor" ? {
|
|
2098
2104
|
...n,
|
|
2099
2105
|
nestedPath: n.nestedPath ? `${e.value}.${n.nestedPath}` : e.value
|
|
2100
2106
|
} : l.type === "cursor" ? {
|
|
2101
2107
|
...l,
|
|
2102
2108
|
suggestionTypes: ["conjunction"]
|
|
2103
|
-
} :
|
|
2109
|
+
} : Y("nested", [e, n]);
|
|
2104
2110
|
}, Js = { type: "other", description: "fieldName" }, Vs = function(e, n, l) {
|
|
2105
2111
|
if (l.type === "cursor")
|
|
2106
2112
|
return {
|
|
@@ -2108,7 +2114,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2108
2114
|
suggestionTypes: ["conjunction"]
|
|
2109
2115
|
};
|
|
2110
2116
|
const u = To(n, l);
|
|
2111
|
-
return
|
|
2117
|
+
return Y("range", [e, u]);
|
|
2112
2118
|
}, ei = function(e, n) {
|
|
2113
2119
|
return n.type === "cursor" ? {
|
|
2114
2120
|
...n,
|
|
@@ -2136,27 +2142,27 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2136
2142
|
return l ? {
|
|
2137
2143
|
...l,
|
|
2138
2144
|
suggestionTypes: ["value"]
|
|
2139
|
-
} : (u) =>
|
|
2145
|
+
} : (u) => Y("or", [e(u), n(u)]);
|
|
2140
2146
|
}, ii = function(e, n) {
|
|
2141
2147
|
const l = [e, n].find((u) => u.type === "cursor");
|
|
2142
2148
|
return l ? {
|
|
2143
2149
|
...l,
|
|
2144
2150
|
suggestionTypes: ["value"]
|
|
2145
|
-
} : (u) =>
|
|
2151
|
+
} : (u) => Y("and", [e(u), n(u)]);
|
|
2146
2152
|
}, oi = function(e) {
|
|
2147
2153
|
return e.type === "cursor" ? {
|
|
2148
2154
|
...list,
|
|
2149
2155
|
suggestionTypes: ["value"]
|
|
2150
|
-
} : (n) =>
|
|
2156
|
+
} : (n) => Y("not", [e(n)]);
|
|
2151
2157
|
}, ni = { type: "other", description: "value" }, ai = function(e) {
|
|
2152
2158
|
if (e.type === "cursor") return e;
|
|
2153
2159
|
const n = re(!0);
|
|
2154
|
-
return (l) =>
|
|
2160
|
+
return (l) => Y("is", [l, e, n]);
|
|
2155
2161
|
}, ci = function(e) {
|
|
2156
2162
|
if (e.type === "cursor") return e;
|
|
2157
2163
|
!Eo && e.type === "wildcard" && le.wildcard.hasLeadingWildcard(e) && M("Leading wildcards are disabled. See query:allowLeadingWildcards in Advanced Settings.");
|
|
2158
2164
|
const n = re(!1);
|
|
2159
|
-
return (l) =>
|
|
2165
|
+
return (l) => Y("is", [l, e, n]);
|
|
2160
2166
|
}, li = { type: "other", description: "OR" }, nr = "or", ar = { type: "literal", value: "or", description: '"or"' }, ui = { type: "other", description: "AND" }, cr = "and", lr = { type: "literal", value: "and", description: '"and"' }, pi = { type: "other", description: "NOT" }, ur = "not", pr = { type: "literal", value: "not", description: '"not"' }, di = { type: "other", description: "literal" }, Pe = '"', Le = { type: "literal", value: '"', description: '"\\""' }, St = function(e, n, l) {
|
|
2161
2167
|
const { start: u, end: f } = ro();
|
|
2162
2168
|
return {
|
|
@@ -2221,7 +2227,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2221
2227
|
M("LuceneBoost");
|
|
2222
2228
|
}, Gi = function() {
|
|
2223
2229
|
return char;
|
|
2224
|
-
}, Ji = "=", Vi = { type: "literal", value: "=", description: '"="' }, Fr = "[", Qr = { type: "literal", value: "[", description: '"["' }, Ir = "]", Hr = { type: "literal", value: "]", description: '"]"' }, qr = "TO", eo = { type: "literal", value: "TO", description: '"TO"' }, a = 0, $ = 0, Ge = [{ line: 1, column: 1, seenCR: !1 }],
|
|
2230
|
+
}, Ji = "=", Vi = { type: "literal", value: "=", description: '"="' }, Fr = "[", Qr = { type: "literal", value: "[", description: '"["' }, Ir = "]", Hr = { type: "literal", value: "]", description: '"]"' }, qr = "TO", eo = { type: "literal", value: "TO", description: '"TO"' }, a = 0, $ = 0, Ge = [{ line: 1, column: 1, seenCR: !1 }], W = 0, Pt = [], d = 0, Je;
|
|
2225
2231
|
if ("startRule" in c) {
|
|
2226
2232
|
if (!(c.startRule in p))
|
|
2227
2233
|
throw new Error(`Can't start parsing from rule "` + c.startRule + '".');
|
|
@@ -2272,7 +2278,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2272
2278
|
};
|
|
2273
2279
|
}
|
|
2274
2280
|
function h(e) {
|
|
2275
|
-
a <
|
|
2281
|
+
a < W || (a > W && (W = a, Pt = []), Pt.push(e));
|
|
2276
2282
|
}
|
|
2277
2283
|
function Yr(e, n, l, u) {
|
|
2278
2284
|
function f(T) {
|
|
@@ -2284,17 +2290,17 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2284
2290
|
}
|
|
2285
2291
|
function m(T, P) {
|
|
2286
2292
|
function se(Po) {
|
|
2287
|
-
function nt(
|
|
2288
|
-
return
|
|
2293
|
+
function nt(G) {
|
|
2294
|
+
return G.charCodeAt(0).toString(16).toUpperCase();
|
|
2289
2295
|
}
|
|
2290
|
-
return Po.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\x08/g, "\\b").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\f/g, "\\f").replace(/\r/g, "\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g, function(
|
|
2291
|
-
return "\\x0" + nt(
|
|
2292
|
-
}).replace(/[\x10-\x1F\x80-\xFF]/g, function(
|
|
2293
|
-
return "\\x" + nt(
|
|
2294
|
-
}).replace(/[\u0100-\u0FFF]/g, function(
|
|
2295
|
-
return "\\u0" + nt(
|
|
2296
|
-
}).replace(/[\u1000-\uFFFF]/g, function(
|
|
2297
|
-
return "\\u" + nt(
|
|
2296
|
+
return Po.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\x08/g, "\\b").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\f/g, "\\f").replace(/\r/g, "\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g, function(G) {
|
|
2297
|
+
return "\\x0" + nt(G);
|
|
2298
|
+
}).replace(/[\x10-\x1F\x80-\xFF]/g, function(G) {
|
|
2299
|
+
return "\\x" + nt(G);
|
|
2300
|
+
}).replace(/[\u0100-\u0FFF]/g, function(G) {
|
|
2301
|
+
return "\\u0" + nt(G);
|
|
2302
|
+
}).replace(/[\u1000-\uFFFF]/g, function(G) {
|
|
2303
|
+
return "\\u" + nt(G);
|
|
2298
2304
|
});
|
|
2299
2305
|
}
|
|
2300
2306
|
var z = new Array(T.length), ps, ds, Re;
|
|
@@ -2332,7 +2338,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2332
2338
|
if (e = a, i.charCodeAt(a) === 40 ? (n = S, a++) : (n = t, d === 0 && h(j)), n !== t) {
|
|
2333
2339
|
for (l = [], u = y(); u !== t; )
|
|
2334
2340
|
l.push(u), u = y();
|
|
2335
|
-
l !== t ? (u = et(), u !== t ? (f = it(), f !== t ? (i.charCodeAt(a) === 41 ? (m = Ye, a++) : (m = t, d === 0 && h(te)), m !== t ? ($ = e, n =
|
|
2341
|
+
l !== t ? (u = et(), u !== t ? (f = it(), f !== t ? (i.charCodeAt(a) === 41 ? (m = Ye, a++) : (m = t, d === 0 && h(te)), m !== t ? ($ = e, n = H(u, f), e = n) : (a = e, e = t)) : (a = e, e = t)) : (a = e, e = t)) : (a = e, e = t);
|
|
2336
2342
|
} else
|
|
2337
2343
|
a = e, e = t;
|
|
2338
2344
|
return e === t && (e = so()), e;
|
|
@@ -2343,7 +2349,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2343
2349
|
for (l = [], u = y(); u !== t; )
|
|
2344
2350
|
l.push(u), u = y();
|
|
2345
2351
|
if (l !== t)
|
|
2346
|
-
if (i.charCodeAt(a) === 58 ? (u =
|
|
2352
|
+
if (i.charCodeAt(a) === 58 ? (u = q, a++) : (u = t, d === 0 && h(R)), u !== t) {
|
|
2347
2353
|
for (f = [], m = y(); m !== t; )
|
|
2348
2354
|
f.push(m), m = y();
|
|
2349
2355
|
if (f !== t)
|
|
@@ -2395,7 +2401,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2395
2401
|
for (l = [], u = y(); u !== t; )
|
|
2396
2402
|
l.push(u), u = y();
|
|
2397
2403
|
if (l !== t)
|
|
2398
|
-
if (i.charCodeAt(a) === 58 ? (u =
|
|
2404
|
+
if (i.charCodeAt(a) === 58 ? (u = q, a++) : (u = t, d === 0 && h(R)), u !== t) {
|
|
2399
2405
|
for (f = [], m = y(); m !== t; )
|
|
2400
2406
|
f.push(m), m = y();
|
|
2401
2407
|
f !== t ? (m = Dt(), m !== t ? ($ = e, n = ei(n, m), e = n) : (a = e, e = t)) : (a = e, e = t);
|
|
@@ -2650,7 +2656,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2650
2656
|
for (l = [], u = y(); u !== t; )
|
|
2651
2657
|
l.push(u), u = y();
|
|
2652
2658
|
if (l !== t)
|
|
2653
|
-
if (i.charCodeAt(a) === 58 ? (u =
|
|
2659
|
+
if (i.charCodeAt(a) === 58 ? (u = q, a++) : (u = t, d === 0 && h(R)), u !== t) {
|
|
2654
2660
|
for (f = [], m = y(); m !== t; )
|
|
2655
2661
|
f.push(m), m = y();
|
|
2656
2662
|
f !== t ? (m = ns(), m !== t ? (n = [n, l, u, f, m], e = n) : (a = e, e = t)) : (a = e, e = t);
|
|
@@ -2672,7 +2678,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2672
2678
|
for (l = [], u = y(); u !== t; )
|
|
2673
2679
|
l.push(u), u = y();
|
|
2674
2680
|
if (l !== t)
|
|
2675
|
-
if (i.charCodeAt(a) === 58 ? (u =
|
|
2681
|
+
if (i.charCodeAt(a) === 58 ? (u = q, a++) : (u = t, d === 0 && h(R)), u !== t) {
|
|
2676
2682
|
for (f = [], m = y(); m !== t; )
|
|
2677
2683
|
f.push(m), m = y();
|
|
2678
2684
|
f !== t ? (m = xe(), m !== t ? ($ = e, n = qi(), e = n) : (a = e, e = t)) : (a = e, e = t);
|
|
@@ -2792,7 +2798,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2792
2798
|
}
|
|
2793
2799
|
function cs() {
|
|
2794
2800
|
var e;
|
|
2795
|
-
return i.charCodeAt(a) === 43 ? (e = Sr, a++) : (e = t, d === 0 && h(Cr)), e === t && (i.charCodeAt(a) === 45 ? (e = Er, a++) : (e = t, d === 0 && h(Or)), e === t && (i.charCodeAt(a) === 61 ? (e = Ji, a++) : (e = t, d === 0 && h(Vi)), e === t && (i.charCodeAt(a) === 62 ? (e = $r, a++) : (e = t, d === 0 && h(_r)), e === t && (i.charCodeAt(a) === 60 ? (e = yr, a++) : (e = t, d === 0 && h(mr)), e === t && (i.charCodeAt(a) === 33 ? (e = Pr, a++) : (e = t, d === 0 && h(Lr)), e === t && (i.charCodeAt(a) === 40 ? (e = S, a++) : (e = t, d === 0 && h(j)), e === t && (i.charCodeAt(a) === 41 ? (e = Ye, a++) : (e = t, d === 0 && h(te)), e === t && (i.charCodeAt(a) === 123 ? (e = ye, a++) : (e = t, d === 0 && h(xt)), e === t && (i.charCodeAt(a) === 125 ? (e = At, a++) : (e = t, d === 0 && h(kt)), e === t && (i.charCodeAt(a) === 91 ? (e = Fr, a++) : (e = t, d === 0 && h(Qr)), e === t && (i.charCodeAt(a) === 93 ? (e = Ir, a++) : (e = t, d === 0 && h(Hr)), e === t && (i.charCodeAt(a) === 94 ? (e = Mr, a++) : (e = t, d === 0 && h(zr)), e === t && (i.charCodeAt(a) === 34 ? (e = Pe, a++) : (e = t, d === 0 && h(Le)), e === t && (i.charCodeAt(a) === 126 ? (e = Ot, a++) : (e = t, d === 0 && h(Tt)), e === t && (i.charCodeAt(a) === 42 ? (e = Ze, a++) : (e = t, d === 0 && h(Xe)), e === t && (i.charCodeAt(a) === 63 ? (e = jr, a++) : (e = t, d === 0 && h(Rr)), e === t && (i.charCodeAt(a) === 58 ? (e =
|
|
2801
|
+
return i.charCodeAt(a) === 43 ? (e = Sr, a++) : (e = t, d === 0 && h(Cr)), e === t && (i.charCodeAt(a) === 45 ? (e = Er, a++) : (e = t, d === 0 && h(Or)), e === t && (i.charCodeAt(a) === 61 ? (e = Ji, a++) : (e = t, d === 0 && h(Vi)), e === t && (i.charCodeAt(a) === 62 ? (e = $r, a++) : (e = t, d === 0 && h(_r)), e === t && (i.charCodeAt(a) === 60 ? (e = yr, a++) : (e = t, d === 0 && h(mr)), e === t && (i.charCodeAt(a) === 33 ? (e = Pr, a++) : (e = t, d === 0 && h(Lr)), e === t && (i.charCodeAt(a) === 40 ? (e = S, a++) : (e = t, d === 0 && h(j)), e === t && (i.charCodeAt(a) === 41 ? (e = Ye, a++) : (e = t, d === 0 && h(te)), e === t && (i.charCodeAt(a) === 123 ? (e = ye, a++) : (e = t, d === 0 && h(xt)), e === t && (i.charCodeAt(a) === 125 ? (e = At, a++) : (e = t, d === 0 && h(kt)), e === t && (i.charCodeAt(a) === 91 ? (e = Fr, a++) : (e = t, d === 0 && h(Qr)), e === t && (i.charCodeAt(a) === 93 ? (e = Ir, a++) : (e = t, d === 0 && h(Hr)), e === t && (i.charCodeAt(a) === 94 ? (e = Mr, a++) : (e = t, d === 0 && h(zr)), e === t && (i.charCodeAt(a) === 34 ? (e = Pe, a++) : (e = t, d === 0 && h(Le)), e === t && (i.charCodeAt(a) === 126 ? (e = Ot, a++) : (e = t, d === 0 && h(Tt)), e === t && (i.charCodeAt(a) === 42 ? (e = Ze, a++) : (e = t, d === 0 && h(Xe)), e === t && (i.charCodeAt(a) === 63 ? (e = jr, a++) : (e = t, d === 0 && h(Rr)), e === t && (i.charCodeAt(a) === 58 ? (e = q, a++) : (e = t, d === 0 && h(R)), e === t && (i.charCodeAt(a) === 92 ? (e = Ne, a++) : (e = t, d === 0 && h(De)), e === t && (i.charCodeAt(a) === 47 ? (e = Ct, a++) : (e = t, d === 0 && h(Et))))))))))))))))))))), e;
|
|
2796
2802
|
}
|
|
2797
2803
|
function ls() {
|
|
2798
2804
|
var e, n, l, u, f;
|
|
@@ -2823,14 +2829,14 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2823
2829
|
var e;
|
|
2824
2830
|
return i.charCodeAt(a) === 93 ? (e = Ir, a++) : (e = t, d === 0 && h(Hr)), e === t && (i.charCodeAt(a) === 125 ? (e = At, a++) : (e = t, d === 0 && h(kt))), e;
|
|
2825
2831
|
}
|
|
2826
|
-
const { errorOnLuceneSyntax: ko, parseCursor: So, cursorSymbol: Co, allowLeadingWildcards: Eo = !0, helpers: { nodeTypes: le } } = c,
|
|
2832
|
+
const { errorOnLuceneSyntax: ko, parseCursor: So, cursorSymbol: Co, allowLeadingWildcards: Eo = !0, helpers: { nodeTypes: le } } = c, Y = le.function.buildNodeWithArgumentNodes, re = le.literal.buildNode, Oo = le.wildcard.buildNode, To = le.namedArg.buildNode, { wildcardSymbol: us } = le.wildcard;
|
|
2827
2833
|
if (Je = b(), Je !== t && a === i.length)
|
|
2828
2834
|
return Je;
|
|
2829
2835
|
throw Je !== t && a < i.length && h({ type: "end", description: "end of input" }), Yr(
|
|
2830
2836
|
null,
|
|
2831
2837
|
Pt,
|
|
2832
|
-
|
|
2833
|
-
|
|
2838
|
+
W < i.length ? i.charAt(W) : null,
|
|
2839
|
+
W < i.length ? Ve(W, W + 1) : Ve(W, W)
|
|
2834
2840
|
);
|
|
2835
2841
|
}
|
|
2836
2842
|
return {
|
|
@@ -2860,7 +2866,7 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2860
2866
|
} catch (r) {
|
|
2861
2867
|
return r.message.startsWith("Lucene");
|
|
2862
2868
|
}
|
|
2863
|
-
}, N = (s, r, o, i) => (r = void 0, !s || !s.type || !ne[s.type] ? N(ne.function.buildNode("and", []), r) : ne[s.type].toOpenSearchQuery(s, r, o, i)),
|
|
2869
|
+
}, N = (s, r, o, i) => (r = void 0, !s || !s.type || !ne[s.type] ? N(ne.function.buildNode("and", []), r) : ne[s.type].toOpenSearchQuery(s, r, o, i)), ee = "@kuery-wildcard@";
|
|
2864
2870
|
function Ln(s) {
|
|
2865
2871
|
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2866
2872
|
}
|
|
@@ -2868,26 +2874,26 @@ function Nn(s) {
|
|
|
2868
2874
|
return s.replace(/[+-=&|><!(){}[\]^"~*?:\\/]/g, "\\$&");
|
|
2869
2875
|
}
|
|
2870
2876
|
function Dn(s) {
|
|
2871
|
-
return s.includes(
|
|
2877
|
+
return s.includes(ee) ? {
|
|
2872
2878
|
type: "wildcard",
|
|
2873
2879
|
value: s
|
|
2874
2880
|
} : Oe(s);
|
|
2875
2881
|
}
|
|
2876
2882
|
function Hs(s, r) {
|
|
2877
|
-
const { value: o } = s, i = o.split(
|
|
2883
|
+
const { value: o } = s, i = o.split(ee).map(Ln).join("[\\s\\S]*");
|
|
2878
2884
|
return new RegExp(`^${i}$`).test(r);
|
|
2879
2885
|
}
|
|
2880
2886
|
function jn(s) {
|
|
2881
2887
|
const { value: r } = s;
|
|
2882
|
-
return r.split(
|
|
2888
|
+
return r.split(ee).join("*");
|
|
2883
2889
|
}
|
|
2884
2890
|
function Kt(s) {
|
|
2885
2891
|
const { value: r } = s;
|
|
2886
|
-
return r.split(
|
|
2892
|
+
return r.split(ee).map(Nn).join("*");
|
|
2887
2893
|
}
|
|
2888
2894
|
function Rn(s) {
|
|
2889
2895
|
const { value: r } = s;
|
|
2890
|
-
return r.startsWith(
|
|
2896
|
+
return r.startsWith(ee) && r.replace(ee, "").length > 0;
|
|
2891
2897
|
}
|
|
2892
2898
|
const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2893
2899
|
__proto__: null,
|
|
@@ -2896,7 +2902,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2896
2902
|
test: Hs,
|
|
2897
2903
|
toOpenSearchQuery: jn,
|
|
2898
2904
|
toQueryStringQuery: Kt,
|
|
2899
|
-
wildcardSymbol:
|
|
2905
|
+
wildcardSymbol: ee
|
|
2900
2906
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2901
2907
|
function sr(s, r) {
|
|
2902
2908
|
if (!r) return [];
|
|
@@ -2970,45 +2976,45 @@ function Mn(s, r, o = {}, i = {}) {
|
|
|
2970
2976
|
const k = t.type === "wildcard" && w === "*", S = b.type === "wildcard" && g === "*" || _ && r && _.length === r.fields.length;
|
|
2971
2977
|
return k && S ? { match_all: {} } : {
|
|
2972
2978
|
bool: {
|
|
2973
|
-
should: _.reduce((te,
|
|
2974
|
-
const
|
|
2979
|
+
should: _.reduce((te, H) => {
|
|
2980
|
+
const q = (R) => {
|
|
2975
2981
|
var ye;
|
|
2976
|
-
return b.type !== "wildcard" || !((ye =
|
|
2982
|
+
return b.type !== "wildcard" || !((ye = H.subType) != null && ye.nested) || i != null && i.nested ? R : {
|
|
2977
2983
|
nested: {
|
|
2978
|
-
path:
|
|
2984
|
+
path: H.subType.nested.path,
|
|
2979
2985
|
query: R,
|
|
2980
2986
|
score_mode: "none"
|
|
2981
2987
|
}
|
|
2982
2988
|
};
|
|
2983
2989
|
};
|
|
2984
|
-
if (
|
|
2990
|
+
if (H.scripted)
|
|
2985
2991
|
return [];
|
|
2986
2992
|
if (k)
|
|
2987
2993
|
return [
|
|
2988
2994
|
...te,
|
|
2989
|
-
|
|
2995
|
+
q({
|
|
2990
2996
|
exists: {
|
|
2991
|
-
field:
|
|
2997
|
+
field: H.name
|
|
2992
2998
|
}
|
|
2993
2999
|
})
|
|
2994
3000
|
];
|
|
2995
3001
|
if (t.type === "wildcard")
|
|
2996
3002
|
return [
|
|
2997
3003
|
...te,
|
|
2998
|
-
|
|
3004
|
+
q({
|
|
2999
3005
|
query_string: {
|
|
3000
|
-
fields: [
|
|
3006
|
+
fields: [H.name],
|
|
3001
3007
|
query: Kt(t)
|
|
3002
3008
|
}
|
|
3003
3009
|
})
|
|
3004
3010
|
];
|
|
3005
|
-
if (
|
|
3011
|
+
if (H.type === "date") {
|
|
3006
3012
|
const R = o.dateFormatTZ ? { time_zone: o.dateFormatTZ } : {};
|
|
3007
3013
|
return [
|
|
3008
3014
|
...te,
|
|
3009
|
-
|
|
3015
|
+
q({
|
|
3010
3016
|
range: {
|
|
3011
|
-
[
|
|
3017
|
+
[H.name]: {
|
|
3012
3018
|
gte: w,
|
|
3013
3019
|
lte: w,
|
|
3014
3020
|
...R
|
|
@@ -3020,9 +3026,9 @@ function Mn(s, r, o = {}, i = {}) {
|
|
|
3020
3026
|
const R = x === "phrase" ? "match_phrase" : "match";
|
|
3021
3027
|
return [
|
|
3022
3028
|
...te,
|
|
3023
|
-
|
|
3029
|
+
q({
|
|
3024
3030
|
[R]: {
|
|
3025
|
-
[
|
|
3031
|
+
[H.name]: w
|
|
3026
3032
|
}
|
|
3027
3033
|
})
|
|
3028
3034
|
];
|
|
@@ -3269,7 +3275,7 @@ const fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3269
3275
|
literal: Tn,
|
|
3270
3276
|
namedArg: fa,
|
|
3271
3277
|
wildcard: Bn
|
|
3272
|
-
}, ha =
|
|
3278
|
+
}, ha = ee, ba = (s, r) => "(" + (s.arguments || []).map((i) => be(i, r)).join(" AND ") + ")", ga = (s, r) => {
|
|
3273
3279
|
var {
|
|
3274
3280
|
arguments: [o, i, c]
|
|
3275
3281
|
} = s;
|
|
@@ -3314,7 +3320,7 @@ const fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3314
3320
|
}, be = (s, r) => {
|
|
3315
3321
|
const o = Aa[s.type];
|
|
3316
3322
|
return o(s, r);
|
|
3317
|
-
}, ka =
|
|
3323
|
+
}, ka = ee, Sa = (s) => ({ $and: (s.arguments || []).map((i) => ae(i)) }), Ca = (s) => {
|
|
3318
3324
|
const {
|
|
3319
3325
|
arguments: [r, o]
|
|
3320
3326
|
} = s;
|
|
@@ -3507,9 +3513,9 @@ ce([
|
|
|
3507
3513
|
$t("dialog")
|
|
3508
3514
|
], F.prototype, "dialogElement", 2);
|
|
3509
3515
|
F = ce([
|
|
3510
|
-
|
|
3516
|
+
I(Ys)
|
|
3511
3517
|
], F);
|
|
3512
|
-
var Ma = Object.defineProperty, za = Object.getOwnPropertyDescriptor,
|
|
3518
|
+
var Ma = Object.defineProperty, za = Object.getOwnPropertyDescriptor, X = (s, r, o, i) => {
|
|
3513
3519
|
for (var c = i > 1 ? void 0 : i ? za(r, o) : r, t = s.length - 1, p; t >= 0; t--)
|
|
3514
3520
|
(p = s[t]) && (c = (i ? p(r, o, c) : p(c)) || c);
|
|
3515
3521
|
return i && c && Ma(r, o, c), c;
|
|
@@ -3527,11 +3533,11 @@ const Ks = {
|
|
|
3527
3533
|
{ value: ": true", label: " value is true" },
|
|
3528
3534
|
{ value: ": false", label: "value is false" }
|
|
3529
3535
|
], Ha = Object.fromEntries(Object.entries(Ks).map(([s, r]) => [s, { value: r.value, label: (r.label || "").replace("value", "date-time") }]));
|
|
3530
|
-
let
|
|
3536
|
+
let Q = class extends L {
|
|
3531
3537
|
constructor() {
|
|
3532
|
-
super(), this._value = "", this.outputLanguage = "AST", this.completions = [], this.completionIndex = 0, this.fields = [], this._parseQuery = (s = void 0) => {
|
|
3538
|
+
super(), this.placeholder = "", this._value = "", this.value = "", this.outputLanguage = "AST", this.completions = [], this.completionIndex = 0, this.fields = [], this._parseQuery = (s = void 0) => {
|
|
3533
3539
|
let r;
|
|
3534
|
-
if (this.value == "")
|
|
3540
|
+
if (s && (s != null && s.currentTarget) && s.currentTarget.value && (this.value = s.currentTarget.value), this.value == "")
|
|
3535
3541
|
return;
|
|
3536
3542
|
try {
|
|
3537
3543
|
s && s.data == "(" && (this.value = this.value + " )", this._input.setSelectionRange(this.value.length - 2, this.value.length - 2));
|
|
@@ -3552,7 +3558,9 @@ let Y = class extends L {
|
|
|
3552
3558
|
let s = this.completions[this.completionIndex], r = this.value.substring(0, s.start) + s.value, o = r.length, i = this.value.substring(s.end);
|
|
3553
3559
|
if (s.value.includes(i) ? this.value = r : this.value = r + this.value.substring(s.end), this._input.setSelectionRange(o, o), s.onSelect) {
|
|
3554
3560
|
let c = await s.onSelect();
|
|
3555
|
-
c !== void 0 && (this.value += c)
|
|
3561
|
+
c !== void 0 && (this.value += c, setTimeout(() => {
|
|
3562
|
+
this._input.focus();
|
|
3563
|
+
}));
|
|
3556
3564
|
}
|
|
3557
3565
|
this.completionIndex = 0, this.completions = [], this._parseQuery();
|
|
3558
3566
|
}, this._handleArrows = (s) => {
|
|
@@ -3566,13 +3574,6 @@ let Y = class extends L {
|
|
|
3566
3574
|
createRenderRoot() {
|
|
3567
3575
|
return this;
|
|
3568
3576
|
}
|
|
3569
|
-
get value() {
|
|
3570
|
-
return this._input ? String(this._input.value) : this._value;
|
|
3571
|
-
}
|
|
3572
|
-
set value(s) {
|
|
3573
|
-
const r = this._value;
|
|
3574
|
-
this._value = s, this.requestUpdate("value", r), this._input && (this._input.value = String(s));
|
|
3575
|
-
}
|
|
3576
3577
|
async autoComplete(s) {
|
|
3577
3578
|
if (this.completions = [], s.type !== "cursor")
|
|
3578
3579
|
return;
|
|
@@ -3627,8 +3628,8 @@ let Y = class extends L {
|
|
|
3627
3628
|
}
|
|
3628
3629
|
}
|
|
3629
3630
|
if (this.completions = r, this.completions.length && this._autocomplete) {
|
|
3630
|
-
let { width: c } = this._input.getBoundingClientRect();
|
|
3631
|
-
this._autocomplete.showPopover(), this._autocomplete.style.width = `${c - 15}px`;
|
|
3631
|
+
let { width: c, left: t, bottom: p } = this._input.getBoundingClientRect();
|
|
3632
|
+
this._autocomplete.showPopover(), "anchorName" in document.documentElement.style || (this._autocomplete.style.left = `${t + 3.75}px`, this._autocomplete.style.top = `${p}px`), this._autocomplete.style.width = `${c - 15}px`;
|
|
3632
3633
|
}
|
|
3633
3634
|
}
|
|
3634
3635
|
updated(s) {
|
|
@@ -3636,7 +3637,7 @@ let Y = class extends L {
|
|
|
3636
3637
|
}
|
|
3637
3638
|
render() {
|
|
3638
3639
|
return A`
|
|
3639
|
-
<spectric-input style=${`anchor-name:--${this.uuid};`} autocomplete="off" @input=${this._parseQuery} @keydown=${this._handleArrows}></spectric-input>
|
|
3640
|
+
<spectric-input .value=${this.value} .placeholder=${this.placeholder} style=${`anchor-name:--${this.uuid};`} autocomplete="off" @input=${this._parseQuery} @keydown=${this._handleArrows} @change=${(s) => s.stopPropagation()}></spectric-input>
|
|
3640
3641
|
<div class="autocomplete" popover style=${`position-anchor: --${this.uuid};`}>
|
|
3641
3642
|
${this.completions.map(
|
|
3642
3643
|
(s, r) => A`<div @click=${() => {
|
|
@@ -3646,33 +3647,36 @@ let Y = class extends L {
|
|
|
3646
3647
|
</div>`;
|
|
3647
3648
|
}
|
|
3648
3649
|
};
|
|
3649
|
-
|
|
3650
|
+
X([
|
|
3651
|
+
v({ type: String, reflect: !0 })
|
|
3652
|
+
], Q.prototype, "placeholder", 2);
|
|
3653
|
+
X([
|
|
3650
3654
|
v({ type: String, reflect: !0 })
|
|
3651
|
-
],
|
|
3652
|
-
|
|
3655
|
+
], Q.prototype, "value", 2);
|
|
3656
|
+
X([
|
|
3653
3657
|
v({ type: String, reflect: !0 })
|
|
3654
|
-
],
|
|
3655
|
-
|
|
3658
|
+
], Q.prototype, "outputLanguage", 2);
|
|
3659
|
+
X([
|
|
3656
3660
|
mt()
|
|
3657
|
-
],
|
|
3658
|
-
|
|
3661
|
+
], Q.prototype, "completions", 2);
|
|
3662
|
+
X([
|
|
3659
3663
|
mt()
|
|
3660
|
-
],
|
|
3661
|
-
|
|
3664
|
+
], Q.prototype, "completionIndex", 2);
|
|
3665
|
+
X([
|
|
3662
3666
|
v({ type: Array, reflect: !0 })
|
|
3663
|
-
],
|
|
3664
|
-
|
|
3667
|
+
], Q.prototype, "fields", 2);
|
|
3668
|
+
X([
|
|
3665
3669
|
We(".autocomplete")
|
|
3666
|
-
],
|
|
3667
|
-
|
|
3670
|
+
], Q.prototype, "_autocomplete", 2);
|
|
3671
|
+
X([
|
|
3668
3672
|
$t(".autocomplete")
|
|
3669
|
-
],
|
|
3670
|
-
|
|
3673
|
+
], Q.prototype, "_asyncAutocomplete", 2);
|
|
3674
|
+
X([
|
|
3671
3675
|
We("spectric-input")
|
|
3672
|
-
],
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
],
|
|
3676
|
+
], Q.prototype, "_input", 2);
|
|
3677
|
+
Q = X([
|
|
3678
|
+
I("spectric-query")
|
|
3679
|
+
], Q);
|
|
3676
3680
|
const As = K`
|
|
3677
3681
|
border-color: color-mix(in hsl, var(--panel-color, #0b0b0b), var(--spectric-input-color, #000000) 3%);
|
|
3678
3682
|
background-color: var(--panel-color,#0b0b0b);
|
|
@@ -3754,7 +3758,7 @@ or([
|
|
|
3754
3758
|
v({ attribute: !1 })
|
|
3755
3759
|
], He.prototype, "layers", 2);
|
|
3756
3760
|
He = or([
|
|
3757
|
-
|
|
3761
|
+
I("spectric-panel")
|
|
3758
3762
|
], He);
|
|
3759
3763
|
var Ka = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, Zs = (s, r, o, i) => {
|
|
3760
3764
|
for (var c = i > 1 ? void 0 : i ? Za(r, o) : r, t = s.length - 1, p; t >= 0; t--)
|
|
@@ -3941,7 +3945,7 @@ Zs([
|
|
|
3941
3945
|
v({ reflect: !0 })
|
|
3942
3946
|
], vt.prototype, "theme", 2);
|
|
3943
3947
|
vt = Zs([
|
|
3944
|
-
|
|
3948
|
+
I("spectric-theme")
|
|
3945
3949
|
], vt);
|
|
3946
3950
|
const Ga = K`
|
|
3947
3951
|
:host {
|
|
@@ -4109,10 +4113,10 @@ U([
|
|
|
4109
4113
|
We("slot[name='panel2']")
|
|
4110
4114
|
], D.prototype, "_panel2", 2);
|
|
4111
4115
|
D = U([
|
|
4112
|
-
|
|
4116
|
+
I(tc)
|
|
4113
4117
|
], D);
|
|
4114
4118
|
export {
|
|
4115
|
-
|
|
4119
|
+
V as BitDisplayCanvas,
|
|
4116
4120
|
rn as ButtonSizes,
|
|
4117
4121
|
sn as ButtonVariants,
|
|
4118
4122
|
ac as CSSPropsControls,
|
|
@@ -4122,11 +4126,11 @@ export {
|
|
|
4122
4126
|
Ee as Header,
|
|
4123
4127
|
Cn as InputVariants,
|
|
4124
4128
|
ec as Orientations,
|
|
4125
|
-
|
|
4129
|
+
J as SpectricButton,
|
|
4126
4130
|
E as SpectricInput,
|
|
4127
4131
|
B as SpectricPage,
|
|
4128
4132
|
He as SpectricPanel,
|
|
4129
|
-
|
|
4133
|
+
Q as SpectricQuery,
|
|
4130
4134
|
vt as SpectricThemeProvider,
|
|
4131
4135
|
D as SplitView,
|
|
4132
4136
|
Fa as SupportedLanguages,
|