@viasat/beam-web-components 2.49.1 → 2.51.0
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/Accordion/Accordion.js +3 -3
- package/Accordion/AccordionGroup.js +3 -3
- package/Accordion/index.js +1 -1
- package/Alert/Alert.js +5 -5
- package/Avatar/Avatar.js +2 -2
- package/Avatar/AvatarGroup.js +2 -2
- package/Avatar/index.js +1 -1
- package/Badge/Badge.js +2 -2
- package/BadgeDot/BadgeDot.js +2 -2
- package/Box/Box.js +2 -2
- package/Breadcrumbs/Breadcrumbs.js +3 -3
- package/Breadcrumbs/BreadcrumbsItem.js +3 -3
- package/Breadcrumbs/index.js +1 -1
- package/Button/Button.js +2 -2
- package/CloseButton/CloseButton.js +2 -2
- package/Divider/Divider.js +2 -2
- package/EmptyState/EmptyState.js +2 -2
- package/HelperText/HelperText.js +3 -3
- package/HelperText/index.js +1 -1
- package/Icon/Icon.js +2 -2
- package/InputChoiceGroup/InputChoiceGroup.js +2 -2
- package/Label/Label.js +2 -2
- package/Link/Link.js +2 -2
- package/List/List.js +2 -2
- package/List/ListItem.js +2 -2
- package/ProgressBar/ProgressBar.js +2 -2
- package/SegmentedControl/SegmentedControl.js +2 -2
- package/SegmentedControl/SegmentedControlItem.js +10 -10
- package/SegmentedControl/SegmentedControlList.js +2 -2
- package/SegmentedControl/SegmentedControlPanel.js +2 -2
- package/Spinner/Spinner.js +2 -2
- package/Text/Text.js +2 -2
- package/TextField/TextField.js +6 -6
- package/Tooltip/Tooltip.js +9 -9
- package/chunks/{Accordion.BF2pHMSP.js → Accordion.fbo-T2zU.js} +4 -4
- package/chunks/{Avatar.kVWwOxWe.js → Avatar.DkegKDfD.js} +2 -2
- package/chunks/{BreadcrumbsItem.BoIbfnh6.js → BreadcrumbsItem.xWwSJgcO.js} +2 -2
- package/chunks/{HelperText.3YJvB8x0.js → HelperText.Cc_6DlKP.js} +5 -5
- package/chunks/classNames.m6VYRyOu.js +18 -0
- package/chunks/{classNames.BQclmCHG.js → register-custom-element.D_kw6JXe.js} +34 -29
- package/custom-elements.json +3446 -3446
- package/local/Accordion/Accordion.js +4 -4
- package/local/Accordion/AccordionGroup.js +4 -4
- package/local/Accordion/index.js +1 -1
- package/local/Alert/Alert.js +11 -11
- package/local/Avatar/Avatar.js +3 -3
- package/local/Avatar/AvatarGroup.js +3 -3
- package/local/Avatar/index.js +1 -1
- package/local/Badge/Badge.js +2 -2
- package/local/BadgeDot/BadgeDot.js +2 -2
- package/local/Box/Box.js +2 -2
- package/local/Breadcrumbs/Breadcrumbs.js +3 -3
- package/local/Breadcrumbs/BreadcrumbsItem.js +3 -3
- package/local/Breadcrumbs/index.js +1 -1
- package/local/Button/Button.js +3 -3
- package/local/CloseButton/CloseButton.js +2 -2
- package/local/Divider/Divider.js +7 -7
- package/local/EmptyState/EmptyState.js +2 -2
- package/local/HelperText/HelperText.js +3 -3
- package/local/HelperText/index.js +1 -1
- package/local/Icon/Icon.js +2 -2
- package/local/InputChoiceGroup/InputChoiceGroup.js +3 -3
- package/local/Label/Label.js +2 -2
- package/local/Link/Link.js +2 -2
- package/local/List/List.js +3 -3
- package/local/List/ListItem.js +3 -3
- package/local/ProgressBar/ProgressBar.js +2 -2
- package/local/SegmentedControl/SegmentedControl.js +3 -3
- package/local/SegmentedControl/SegmentedControlItem.js +7 -7
- package/local/SegmentedControl/SegmentedControlList.js +2 -2
- package/local/SegmentedControl/SegmentedControlPanel.js +2 -2
- package/local/Spinner/Spinner.js +2 -2
- package/local/Text/Text.js +2 -2
- package/local/TextField/TextField.js +7 -7
- package/local/Tooltip/Tooltip.js +8 -8
- package/local/chunks/{Accordion.DM6Nkgnh.js → Accordion.QupR4x7N.js} +9 -9
- package/local/chunks/{Avatar.BT61pkbV.js → Avatar.D0_A6fGG.js} +2 -2
- package/local/chunks/{BreadcrumbsItem.CsPbcOZ5.js → BreadcrumbsItem.Ds7TtgQn.js} +2 -2
- package/local/chunks/classNames.Ciobzb4w.js +30 -0
- package/local/chunks/{index.CUGawMXL.js → index.BoeGm2HZ.js} +8 -8
- package/local/chunks/register-custom-element.AOEv8hcs.js +133 -0
- package/local/chunks/{state.CqiuSzAl.js → state.Dr3yBpId.js} +1 -1
- package/local/wip/Checkbox/Checkbox.js +2 -2
- package/local/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +1 -1
- package/local/wip/FileUpload/FileUpload.Button.js +2 -2
- package/local/wip/FileUpload/FileUpload.Dropzone.js +3 -3
- package/local/wip/FileUpload/FileUpload.List.Item.js +3 -3
- package/local/wip/FileUpload/FileUpload.List.js +2 -2
- package/local/wip/FileUpload/FileUpload.js +8 -8
- package/local/wip/Form/Form.decorator.js +3 -3
- package/local/wip/Form/Form.js +122 -110
- package/local/wip/NativeSelect/NativeSelect.js +10 -10
- package/local/wip/RadioButton/RadioButton.js +2 -2
- package/local/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/local/wip/Switch/Switch.js +2 -2
- package/local/wip/Switch/SwitchGroup/SwitchGroup.js +1 -1
- package/local/wip/TextArea/TextArea.js +8 -8
- package/package.json +6 -6
- package/vscode.html-custom-data.json +221 -221
- package/wip/Checkbox/Checkbox.js +2 -2
- package/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +1 -1
- package/wip/FileUpload/FileUpload.Button.js +2 -2
- package/wip/FileUpload/FileUpload.Dropzone.js +2 -2
- package/wip/FileUpload/FileUpload.List.Item.js +3 -3
- package/wip/FileUpload/FileUpload.List.js +2 -2
- package/wip/FileUpload/FileUpload.js +12 -12
- package/wip/Form/Form.decorator.js +1 -1
- package/wip/Form/Form.js +124 -112
- package/wip/NativeSelect/NativeSelect.js +9 -9
- package/wip/RadioButton/RadioButton.js +2 -2
- package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/wip/Switch/Switch.js +5 -5
- package/wip/Switch/SwitchGroup/SwitchGroup.js +1 -1
- package/wip/TextArea/TextArea.js +5 -5
- package/chunks/register-custom-element.DHGKOhmA.js +0 -17
- package/local/chunks/classNames.CARKFDmR.js +0 -106
- package/local/chunks/register-custom-element.vod7zfGv.js +0 -51
package/wip/TextArea/TextArea.js
CHANGED
|
@@ -2,10 +2,10 @@ import { unsafeCSS as R, html as _, nothing as D } from "lit";
|
|
|
2
2
|
import { property as a, queryAssignedElements as j } from "lit/decorators.js";
|
|
3
3
|
import { createRef as L, ref as N } from "lit/directives/ref.js";
|
|
4
4
|
import I from "clsx";
|
|
5
|
-
import {
|
|
5
|
+
import { g as W } from "../../chunks/classNames.m6VYRyOu.js";
|
|
6
6
|
import { t as V } from "../../chunks/constants.ZIKMMCJH.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { p as b, e as C, c as G } from "../../chunks/register-custom-element.D_kw6JXe.js";
|
|
8
|
+
import { r as B } from "../../chunks/delegate.baxDQosr.js";
|
|
9
9
|
import { FormField as H } from "../Form/Form.decorator.js";
|
|
10
10
|
const k = /* @__PURE__ */ new WeakMap();
|
|
11
11
|
async function Z(e) {
|
|
@@ -135,7 +135,7 @@ f = /* @__PURE__ */ new WeakMap();
|
|
|
135
135
|
g = /* @__PURE__ */ new WeakMap();
|
|
136
136
|
y = /* @__PURE__ */ new WeakMap();
|
|
137
137
|
w = /* @__PURE__ */ new WeakMap();
|
|
138
|
-
|
|
138
|
+
B(t);
|
|
139
139
|
t.styles = R(O);
|
|
140
140
|
m([
|
|
141
141
|
a({ type: Number })
|
|
@@ -186,7 +186,7 @@ m([
|
|
|
186
186
|
j({ slot: "helper-text" })
|
|
187
187
|
], t.prototype, "_textAreaHelperText", 2);
|
|
188
188
|
t = m([
|
|
189
|
-
|
|
189
|
+
G("bm-text-area")
|
|
190
190
|
], t);
|
|
191
191
|
export {
|
|
192
192
|
t as BmTextArea
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const s = (i) => (d, e) => {
|
|
2
|
-
const n = () => {
|
|
3
|
-
if (!(typeof window > "u" || !("customElements" in window))) {
|
|
4
|
-
if (window.customElements.get(i)) {
|
|
5
|
-
console.warn(
|
|
6
|
-
`Custom element "${i}" already defined. Skipping duplicate registration.`
|
|
7
|
-
);
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
window.customElements.define(i, d);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
e != null && e.addInitializer ? e.addInitializer(n) : n();
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
s as c
|
|
17
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { F as c, p as s } from "./constants.ZIKMMCJH.js";
|
|
2
|
-
function i(e) {
|
|
3
|
-
var t, n, o = "";
|
|
4
|
-
if (typeof e == "string" || typeof e == "number") o += e;
|
|
5
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = i(e[t])) && (o && (o += " "), o += n);
|
|
6
|
-
else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
7
|
-
return o;
|
|
8
|
-
}
|
|
9
|
-
function p() {
|
|
10
|
-
for (var e, t, n = 0, o = ""; n < arguments.length; ) (e = arguments[n++]) && (t = i(e)) && (o && (o += " "), o += t);
|
|
11
|
-
return o;
|
|
12
|
-
}
|
|
13
|
-
const f = (e) => e.charAt(0).toUpperCase() + e.slice(1), l = (e) => Object.entries(e);
|
|
14
|
-
function b(e, t = c) {
|
|
15
|
-
let n;
|
|
16
|
-
const o = (...r) => {
|
|
17
|
-
n !== void 0 && clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
18
|
-
};
|
|
19
|
-
return o.cancel = () => {
|
|
20
|
-
n !== void 0 && clearTimeout(n);
|
|
21
|
-
}, o;
|
|
22
|
-
}
|
|
23
|
-
const m = (e) => {
|
|
24
|
-
var n;
|
|
25
|
-
const t = e.target;
|
|
26
|
-
try {
|
|
27
|
-
return t.assignedNodes().length > 0 || ((n = t.assignedNodes()[0].textContent) == null ? void 0 : n.trim()) !== "";
|
|
28
|
-
} catch {
|
|
29
|
-
return !1;
|
|
30
|
-
}
|
|
31
|
-
}, g = (e) => {
|
|
32
|
-
if (!e || e.length === 0) return !1;
|
|
33
|
-
for (const t of e)
|
|
34
|
-
if (t.nodeType === Node.ELEMENT_NODE || t.nodeType === Node.TEXT_NODE && t.data.trim() !== "") return !0;
|
|
35
|
-
return !1;
|
|
36
|
-
}, h = (e, t = {}) => {
|
|
37
|
-
const n = Object.entries(t).reduce(
|
|
38
|
-
(o, [r, a]) => `${o} ${r}='${a}'`,
|
|
39
|
-
""
|
|
40
|
-
);
|
|
41
|
-
return e.replace("<svg", `<svg ${n}`);
|
|
42
|
-
}, w = (e, t) => t.some((n) => e.has(n)), x = (e) => ({
|
|
43
|
-
decorate: (t) => {
|
|
44
|
-
if (!e) return;
|
|
45
|
-
Object.keys(t).forEach((o) => {
|
|
46
|
-
e[o] = t[o];
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}), y = (e) => {
|
|
50
|
-
const n = e.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [contenteditable]:not([contenteditable="false"])');
|
|
51
|
-
return n || null;
|
|
52
|
-
}, v = (e, t) => !!e.composedPath().find((r) => r === t), E = () => {
|
|
53
|
-
if (typeof window > "u") return !1;
|
|
54
|
-
const e = (navigator == null ? void 0 : navigator.userAgent) || (navigator == null ? void 0 : navigator.vendor) || (window == null ? void 0 : window.opera), t = [
|
|
55
|
-
"(android|bb\\d+|meego).+mobile",
|
|
56
|
-
"avantgo|bada\\/",
|
|
57
|
-
"blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)",
|
|
58
|
-
"iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront",
|
|
59
|
-
"opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/",
|
|
60
|
-
"plucker|pocket|psp|series([46])0|symbian|treo|up\\.(browser|link)",
|
|
61
|
-
"vodafone|wap|windows ce|xda|xiino"
|
|
62
|
-
].join("|"), n = [
|
|
63
|
-
"1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)",
|
|
64
|
-
"ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)",
|
|
65
|
-
"as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)",
|
|
66
|
-
"bl(ac|az)|br([ev])w|bumb|bw-([nu])|c55\\/|capi|ccwa|cdm-",
|
|
67
|
-
"cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi",
|
|
68
|
-
"dica|dmob|do([cp])o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)",
|
|
69
|
-
"esl8|ez([4-7]0|os|wa|ze)|fetc|fly([-_])|g1 u|g560|gene|gf-5|g-mo",
|
|
70
|
-
"go(\\.w|od)|gr(ad|un)|haie|hcit|hd-([mpt])|hei-|hi(pt|ta)",
|
|
71
|
-
"hp( i|ip)|hs-c|ht(c([- _agpst])|tp)|hu(aw|tc)|i-(20|go|ma)",
|
|
72
|
-
"i230|iac([ \\-\\/])"
|
|
73
|
-
].join("|");
|
|
74
|
-
return new RegExp(t, "i").test(e) || new RegExp(n, "i").test(e.substr(0, 4));
|
|
75
|
-
};
|
|
76
|
-
function $(e) {
|
|
77
|
-
return typeof window > "u" ? !1 : window.HTMLElement.prototype.hasOwnProperty(e);
|
|
78
|
-
}
|
|
79
|
-
const d = (e) => e.replace(/^([A-Z])/, (t) => t.toLowerCase()).replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => {
|
|
80
|
-
const t = `${s}${e}`, n = `${t}__`, o = `${t}--`, r = `--${s}comp-${e}`;
|
|
81
|
-
return {
|
|
82
|
-
baseClassNamePrefix: t,
|
|
83
|
-
subElementClassPrefix: n,
|
|
84
|
-
classModifierPrefix: o,
|
|
85
|
-
variablePrefix: r,
|
|
86
|
-
variable(a) {
|
|
87
|
-
return `${r}-${a}`;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
}, T = (e) => l(e).reduce((t, [n, o]) => (o && t.push(`${s}-${d(`${n}`)}-${o}`), t), []);
|
|
91
|
-
export {
|
|
92
|
-
x as a,
|
|
93
|
-
b,
|
|
94
|
-
p as c,
|
|
95
|
-
m as d,
|
|
96
|
-
$ as e,
|
|
97
|
-
v as f,
|
|
98
|
-
C as g,
|
|
99
|
-
f as h,
|
|
100
|
-
E as i,
|
|
101
|
-
h as j,
|
|
102
|
-
T as k,
|
|
103
|
-
y as l,
|
|
104
|
-
g as n,
|
|
105
|
-
w as p
|
|
106
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { f as c, u as l } from "./lit-element.CJtt9wj5.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/
|
|
7
|
-
const u = { attribute: !0, type: String, converter: l, reflect: !1, hasChanged: c }, p = (t = u, n, e) => {
|
|
8
|
-
const { kind: r, metadata: s } = e;
|
|
9
|
-
let o = globalThis.litPropertyMetadata.get(s);
|
|
10
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(e.name, t), r === "accessor") {
|
|
11
|
-
const { name: i } = e;
|
|
12
|
-
return { set(a) {
|
|
13
|
-
const d = n.get.call(this);
|
|
14
|
-
n.set.call(this, a), this.requestUpdate(i, d, t);
|
|
15
|
-
}, init(a) {
|
|
16
|
-
return a !== void 0 && this.P(i, void 0, t), a;
|
|
17
|
-
} };
|
|
18
|
-
}
|
|
19
|
-
if (r === "setter") {
|
|
20
|
-
const { name: i } = e;
|
|
21
|
-
return function(a) {
|
|
22
|
-
const d = this[i];
|
|
23
|
-
n.call(this, a), this.requestUpdate(i, d, t);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
throw Error("Unsupported decorator location: " + r);
|
|
27
|
-
};
|
|
28
|
-
function m(t) {
|
|
29
|
-
return (n, e) => typeof e == "object" ? p(t, n, e) : ((r, s, o) => {
|
|
30
|
-
const i = s.hasOwnProperty(o);
|
|
31
|
-
return s.constructor.createProperty(o, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(s, o) : void 0;
|
|
32
|
-
})(t, n, e);
|
|
33
|
-
}
|
|
34
|
-
const w = (t) => (n, e) => {
|
|
35
|
-
const r = () => {
|
|
36
|
-
if (!(typeof window > "u" || !("customElements" in window))) {
|
|
37
|
-
if (window.customElements.get(t)) {
|
|
38
|
-
console.warn(
|
|
39
|
-
`Custom element "${t}" already defined. Skipping duplicate registration.`
|
|
40
|
-
);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
window.customElements.define(t, n);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
e != null && e.addInitializer ? e.addInitializer(r) : r();
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
w as c,
|
|
50
|
-
m as n
|
|
51
|
-
};
|