@viasat/beam-web-components 2.62.0 → 2.64.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.d.ts +1 -1
- package/Accordion/AccordionGroup.d.ts +1 -1
- package/Alert/Alert.d.ts +1 -1
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/AvatarGroup.d.ts +1 -1
- package/Badge/Badge.d.ts +1 -1
- package/BadgeDot/BadgeDot.d.ts +1 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/Breadcrumbs/BreadcrumbsItem.d.ts +1 -1
- package/Button/Button.d.ts +1 -1
- package/CloseButton/CloseButton.d.ts +1 -1
- package/EmptyState/EmptyState.d.ts +1 -1
- package/HelperText/HelperText.d.ts +1 -1
- package/Icon/Icon.d.ts +1 -1
- package/InputChoiceGroup/InputChoiceGroup.d.ts +1 -1
- package/Label/Label.d.ts +1 -1
- package/Link/Link.d.ts +1 -1
- package/List/List.d.ts +1 -1
- package/List/ListItem.d.ts +1 -1
- package/ProgressBar/ProgressBar.d.ts +1 -1
- package/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/SegmentedControl/SegmentedControlItem.d.ts +1 -1
- package/SegmentedControl/SegmentedControlList.d.ts +1 -1
- package/SegmentedControl/SegmentedControlPanel.d.ts +1 -1
- package/Spinner/Spinner.d.ts +1 -1
- package/Text/Text.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +2 -2
- package/custom-elements.json +592 -583
- package/local/wip/Form/Form.decorator.js +55 -54
- package/package.json +6 -6
- package/vscode.html-custom-data.json +134 -134
- package/wip/Checkbox/Checkbox.d.ts +1 -1
- package/wip/FileUpload/FileUpload.Button.d.ts +1 -1
- package/wip/FileUpload/FileUpload.Dropzone.d.ts +1 -1
- package/wip/FileUpload/FileUpload.List.Item.d.ts +1 -1
- package/wip/FileUpload/FileUpload.List.d.ts +1 -1
- package/wip/FileUpload/FileUpload.d.ts +2 -2
- package/wip/Form/Form.d.ts +2 -2
- package/wip/Form/Form.decorator.d.ts +2 -2
- package/wip/Form/Form.decorator.js +53 -52
- package/wip/RadioButton/RadioButton.d.ts +2 -2
- package/wip/Switch/Switch.d.ts +2 -2
- package/wip/TextArea/TextArea.d.ts +1 -1
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var V = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { c as
|
|
7
|
-
import { a as
|
|
8
|
-
import { n as
|
|
9
|
-
import { r as
|
|
10
|
-
import { e as
|
|
11
|
-
import { b as
|
|
12
|
-
import { bmFormInitials as
|
|
13
|
-
import { createId as
|
|
4
|
+
var y = (r, a, t) => a.has(r) || V("Cannot " + t);
|
|
5
|
+
var f = (r, a, t) => (y(r, a, "read from private field"), t ? t.call(r) : a.get(r)), b = (r, a, t) => a.has(r) ? V("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(r) : a.set(r, t), m = (r, a, t, e) => (y(r, a, "write to private field"), e ? e.call(r, t) : a.set(r, t), t);
|
|
6
|
+
import { c as E } from "../../chunks/consume.Ce9k1-wN.js";
|
|
7
|
+
import { a as k, E as v, x } from "../../chunks/lit-element.CJtt9wj5.js";
|
|
8
|
+
import { n as d } from "../../chunks/register-custom-element.AOEv8hcs.js";
|
|
9
|
+
import { r as A } from "../../chunks/state.Dr3yBpId.js";
|
|
10
|
+
import { e as F } from "../../chunks/ref.B7e1Hu4F.js";
|
|
11
|
+
import { b as I } from "../../chunks/tokens.CTW8Tt94.js";
|
|
12
|
+
import { bmFormInitials as u, bmFormContext as S } from "./Form.context.js";
|
|
13
|
+
import { createId as p } from "./Form.utils.js";
|
|
14
14
|
import "../../chunks/index.BoeGm2HZ.js";
|
|
15
|
-
var
|
|
16
|
-
for (var i = void 0, s =
|
|
17
|
-
(
|
|
18
|
-
return i &&
|
|
19
|
-
},
|
|
20
|
-
const
|
|
15
|
+
var R = Object.defineProperty, l = (r, a, t, e) => {
|
|
16
|
+
for (var i = void 0, s = r.length - 1, c; s >= 0; s--)
|
|
17
|
+
(c = r[s]) && (i = c(a, t, i) || i);
|
|
18
|
+
return i && R(a, t, i), i;
|
|
19
|
+
}, n, h;
|
|
20
|
+
const C = class C extends k {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
b(this, n);
|
|
24
|
+
b(this, h);
|
|
25
|
+
this.labelId = p(), this.errorId = p(), this.helperTextId = p(), this.validationErrorsId = p(), this.internals = this.attachInternals(), this.formFieldRef = F(), this.id = "", this.name = "", this.value = "", this.validationRules = [], this._validationErrors = [], this.validationErrors = () => this._validationErrors, m(this, n, !1), this.setValidationErrors = (t) => {
|
|
25
26
|
this._validationErrors = t;
|
|
26
|
-
}, this.validationErrorShown = () => this.validationErrors().some((t) => !!(t != null && t.length)),
|
|
27
|
+
}, this.validationErrorShown = () => this.validationErrors().some((t) => !!(t != null && t.length)), m(this, h, /* @__PURE__ */ new WeakMap()), this.submitFormByEnter = ({ key: t }) => {
|
|
27
28
|
t === "Enter" && this.requestAssociatedSubmit();
|
|
28
29
|
}, this.forwardLabelFocus = () => {
|
|
29
30
|
const { value: t } = this.formFieldRef;
|
|
30
31
|
t.focus();
|
|
31
32
|
}, this.validateFieldOnBlur = (t) => {
|
|
32
|
-
const { formBlurHandler: e } = this.formContext ||
|
|
33
|
+
const { formBlurHandler: e } = this.formContext || u;
|
|
33
34
|
e(t);
|
|
34
35
|
}, this.validateFieldOnChange = (t) => {
|
|
35
|
-
const { value: e } = t.target, { formChangeHandler: i } = this.formContext ||
|
|
36
|
+
const { value: e } = t.target, { formChangeHandler: i } = this.formContext || u;
|
|
36
37
|
i(t), this.setAssociatedValue(e);
|
|
37
38
|
}, this.getContextValue = () => {
|
|
38
|
-
const { initialValues: t } = this.formContext ||
|
|
39
|
+
const { initialValues: t } = this.formContext || u;
|
|
39
40
|
return (t == null ? void 0 : t[this.name]) || this.value;
|
|
40
41
|
}, this.setContextValue = () => {
|
|
41
42
|
const { value: t } = this.formFieldRef, { ctxValue: e, finalizeCallback: i = () => {
|
|
42
43
|
} } = this.finalizeAssociatedCallback(this.getContextValue()), s = t;
|
|
43
44
|
s.value !== e && (s.value = e), this.setAssociatedValue(e), i();
|
|
44
45
|
}, this.setContextValidation = () => {
|
|
45
|
-
const { value: t } = this.formFieldRef, { registerField: e } = this.formContext ||
|
|
46
|
+
const { value: t } = this.formFieldRef, { registerField: e } = this.formContext || u;
|
|
46
47
|
e({
|
|
47
48
|
field: t,
|
|
48
49
|
validators: this.validationRules,
|
|
@@ -50,16 +51,16 @@ const b = class b extends E {
|
|
|
50
51
|
errorSetter: this.setValidationErrors
|
|
51
52
|
});
|
|
52
53
|
}, this.contextInitialsChanged = () => {
|
|
53
|
-
const { initialValues: t } = this.formContext ||
|
|
54
|
+
const { initialValues: t } = this.formContext || u, e = t == null ? void 0 : t[this.name], i = e !== this.contextInitialValue;
|
|
54
55
|
return i && (this.contextInitialValue = e), i;
|
|
55
|
-
}, this.renderError = (t, e) => t ?
|
|
56
|
+
}, this.renderError = (t, e) => t ? x`
|
|
56
57
|
<bm-helper-text
|
|
57
58
|
text="${t}"
|
|
58
59
|
id="${this.errorId}"
|
|
59
60
|
appearance="negative"
|
|
60
61
|
.disabled="${e}"
|
|
61
62
|
></bm-helper-text>
|
|
62
|
-
` :
|
|
63
|
+
` : v, this.renderValidationErrors = () => this.validationErrorShown() ? x`
|
|
63
64
|
<div
|
|
64
65
|
role="log"
|
|
65
66
|
aria-live="polite"
|
|
@@ -68,20 +69,20 @@ const b = class b extends E {
|
|
|
68
69
|
id="${this.validationErrorsId}"
|
|
69
70
|
>
|
|
70
71
|
${this.validationErrors().map(
|
|
71
|
-
(t) => t ?
|
|
72
|
+
(t) => t ? x`
|
|
72
73
|
<bm-helper-text
|
|
73
74
|
text="${t}"
|
|
74
75
|
appearance="negative"
|
|
75
|
-
style="display: block; margin-top: ${
|
|
76
|
+
style="display: block; margin-top: ${I};"
|
|
76
77
|
></bm-helper-text>
|
|
77
|
-
` :
|
|
78
|
+
` : v
|
|
78
79
|
)}
|
|
79
80
|
</div>
|
|
80
|
-
` :
|
|
81
|
+
` : v;
|
|
81
82
|
}
|
|
82
83
|
setAssociatedValue(t) {
|
|
83
84
|
if (typeof t == "string") {
|
|
84
|
-
if (this.value === t) return;
|
|
85
|
+
if (this.value === t && f(this, n)) return;
|
|
85
86
|
this.value = t;
|
|
86
87
|
}
|
|
87
88
|
let e = null;
|
|
@@ -94,7 +95,7 @@ const b = class b extends E {
|
|
|
94
95
|
t.forEach((s) => i.append(this.name, s.toString())), e = i;
|
|
95
96
|
} else
|
|
96
97
|
e = t;
|
|
97
|
-
this.internals.form && this.internals.setFormValue(e);
|
|
98
|
+
m(this, n, !0), this.internals.form && this.internals.setFormValue(e);
|
|
98
99
|
}
|
|
99
100
|
requestAssociatedSubmit() {
|
|
100
101
|
this.internals.form && this.internals.form.requestSubmit();
|
|
@@ -103,14 +104,14 @@ const b = class b extends E {
|
|
|
103
104
|
super.connectedCallback(), this.addEventListener("bm-label-click", this.forwardLabelFocus);
|
|
104
105
|
}
|
|
105
106
|
ctxValueChanged(t, e) {
|
|
106
|
-
const { value: i } = e, s =
|
|
107
|
-
return
|
|
107
|
+
const { value: i } = e, s = f(this, h).get(i), { initialValues: { [this.name]: c } = {} } = t, g = c !== s;
|
|
108
|
+
return g && f(this, h).set(i, c), g;
|
|
108
109
|
}
|
|
109
110
|
disconnectedCallback() {
|
|
110
111
|
super.disconnectedCallback(), this.removeEventListener("bm-label-click", this.forwardLabelFocus);
|
|
111
112
|
}
|
|
112
113
|
formAssociatedCallback() {
|
|
113
|
-
this.setAssociatedValue(this.value);
|
|
114
|
+
m(this, n, !1), this.setAssociatedValue(this.value);
|
|
114
115
|
}
|
|
115
116
|
formResetCallback() {
|
|
116
117
|
this.setContextValue();
|
|
@@ -120,29 +121,29 @@ const b = class b extends E {
|
|
|
120
121
|
} };
|
|
121
122
|
}
|
|
122
123
|
};
|
|
123
|
-
|
|
124
|
-
let o =
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
n = new WeakMap(), h = new WeakMap(), C.formAssociated = !0;
|
|
125
|
+
let o = C;
|
|
126
|
+
l([
|
|
127
|
+
d({ type: String })
|
|
127
128
|
], o.prototype, "id");
|
|
128
|
-
|
|
129
|
-
|
|
129
|
+
l([
|
|
130
|
+
d({ type: String, reflect: !0 })
|
|
130
131
|
], o.prototype, "name");
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
l([
|
|
133
|
+
d({ type: String })
|
|
133
134
|
], o.prototype, "value");
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
l([
|
|
136
|
+
d({ type: Array })
|
|
136
137
|
], o.prototype, "validationRules");
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
l([
|
|
139
|
+
d({ type: String, attribute: "input-aria-label" })
|
|
139
140
|
], o.prototype, "inputAriaLabel");
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
l([
|
|
142
|
+
E({ context: S, subscribe: !0 }),
|
|
143
|
+
d({ attribute: !1 })
|
|
143
144
|
], o.prototype, "formContext");
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
l([
|
|
146
|
+
A()
|
|
146
147
|
], o.prototype, "_validationErrors");
|
|
147
148
|
export {
|
|
148
149
|
o as FormField
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viasat/beam-web-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.0",
|
|
4
4
|
"description": "Framework-agnostic web components for the Beam Design System built with Lit, compatible with Angular, Vue, Svelte, and vanilla JavaScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Viasat",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@viasat/beam-fonts": "2.
|
|
68
|
-
"@viasat/beam-shared": "2.
|
|
69
|
-
"@viasat/beam-styles": "2.
|
|
70
|
-
"@viasat/beam-tokens": "2.
|
|
71
|
-
"@viasat/beam-icons": "2.
|
|
67
|
+
"@viasat/beam-fonts": "2.64.0",
|
|
68
|
+
"@viasat/beam-shared": "2.64.0",
|
|
69
|
+
"@viasat/beam-styles": "2.64.0",
|
|
70
|
+
"@viasat/beam-tokens": "2.64.0",
|
|
71
|
+
"@viasat/beam-icons": "2.64.0",
|
|
72
72
|
"clsx": "^1.2.1",
|
|
73
73
|
"lit": "^3.1.0",
|
|
74
74
|
"@lit/context": "^1.1.1",
|
|
@@ -62,37 +62,60 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
"name": "bm-
|
|
66
|
-
"description": "`bm-
|
|
65
|
+
"name": "bm-badge",
|
|
66
|
+
"description": "`bm-badge`\n\n### Attributes:\n- **appearance** - Specify the appearance of the Badge\n- **theme** - Theme of the Badge\n- **size** - Specify the size of the Badge\n- **emphasis** - Specify the emphasis of the Badge\n- **hideIcon** - Hides Badge icon\n---\n\n\n### **Slots:**\n - **default** - Provide text for the Badge\n- **icon** - Specify a different icon for the Badge",
|
|
67
67
|
"attributes": [
|
|
68
68
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"description": "Specify the
|
|
71
|
-
"values": [
|
|
69
|
+
"name": "appearance",
|
|
70
|
+
"description": "Specify the appearance of the Badge",
|
|
71
|
+
"values": [
|
|
72
|
+
{ "name": "infoPrimary" },
|
|
73
|
+
{ "name": "infoSecondary" },
|
|
74
|
+
{ "name": "positive" },
|
|
75
|
+
{ "name": "warning" },
|
|
76
|
+
{ "name": "negative" }
|
|
77
|
+
]
|
|
72
78
|
},
|
|
73
79
|
{
|
|
74
|
-
"name": "
|
|
75
|
-
"description": "
|
|
76
|
-
"values": []
|
|
80
|
+
"name": "theme",
|
|
81
|
+
"description": "Theme of the Badge",
|
|
82
|
+
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
77
83
|
},
|
|
78
84
|
{
|
|
79
85
|
"name": "size",
|
|
80
|
-
"description": "Specify the size of the
|
|
86
|
+
"description": "Specify the size of the Badge",
|
|
81
87
|
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
82
88
|
},
|
|
83
89
|
{
|
|
84
|
-
"name": "
|
|
85
|
-
"description": "Specify
|
|
86
|
-
"values": [
|
|
90
|
+
"name": "emphasis",
|
|
91
|
+
"description": "Specify the emphasis of the Badge",
|
|
92
|
+
"values": [
|
|
93
|
+
{ "name": "strong" },
|
|
94
|
+
{ "name": "medium" },
|
|
95
|
+
{ "name": "subtle" }
|
|
96
|
+
]
|
|
87
97
|
},
|
|
98
|
+
{ "name": "hideIcon", "description": "Hides Badge icon", "values": [] }
|
|
99
|
+
],
|
|
100
|
+
"references": [
|
|
101
|
+
{
|
|
102
|
+
"name": "Storybook",
|
|
103
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/components-badge"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "bm-badge-dot",
|
|
109
|
+
"description": "`bm-badge-dot`\n\n### Attributes:\n- **theme** - Specify the theme of the BadgeDot. By default it inherits the theme from the parent\n- **appearance** - Specify the appearance of the BadgeDot\n- **emphasis** - Specify the emphasis of the BadgeDot\n- **overrideDotColor** - Overrides default dot color\n---\n\n\n### **Slots:**\n - **default** - Provide text for the BadgeDot",
|
|
110
|
+
"attributes": [
|
|
88
111
|
{
|
|
89
112
|
"name": "theme",
|
|
90
|
-
"description": "Specify the theme of the
|
|
113
|
+
"description": "Specify the theme of the BadgeDot. By default it inherits the theme from the parent",
|
|
91
114
|
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
92
115
|
},
|
|
93
116
|
{
|
|
94
117
|
"name": "appearance",
|
|
95
|
-
"description": "Specify the appearance of the
|
|
118
|
+
"description": "Specify the appearance of the BadgeDot",
|
|
96
119
|
"values": [
|
|
97
120
|
{ "name": "infoPrimary" },
|
|
98
121
|
{ "name": "infoSecondary" },
|
|
@@ -102,35 +125,20 @@
|
|
|
102
125
|
]
|
|
103
126
|
},
|
|
104
127
|
{
|
|
105
|
-
"name": "
|
|
106
|
-
"description": "Specify
|
|
107
|
-
"values": []
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "hideIcon",
|
|
111
|
-
"description": "Specify if the icon displays on the Alert",
|
|
112
|
-
"values": []
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "dismissible",
|
|
116
|
-
"description": "Specify if the Alert can be dismissed",
|
|
117
|
-
"values": []
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "disableAutoFocus",
|
|
121
|
-
"description": "Prevent autofocus on show",
|
|
122
|
-
"values": []
|
|
128
|
+
"name": "emphasis",
|
|
129
|
+
"description": "Specify the emphasis of the BadgeDot",
|
|
130
|
+
"values": [{ "name": "strong" }, { "name": "subtle" }]
|
|
123
131
|
},
|
|
124
132
|
{
|
|
125
|
-
"name": "
|
|
126
|
-
"description": "
|
|
133
|
+
"name": "overrideDotColor",
|
|
134
|
+
"description": "Overrides default dot color",
|
|
127
135
|
"values": []
|
|
128
136
|
}
|
|
129
137
|
],
|
|
130
138
|
"references": [
|
|
131
139
|
{
|
|
132
140
|
"name": "Storybook",
|
|
133
|
-
"url": "https://web-components.beam.viasat.com/?path=/docs/components-
|
|
141
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/components-badgedot"
|
|
134
142
|
}
|
|
135
143
|
]
|
|
136
144
|
},
|
|
@@ -233,50 +241,37 @@
|
|
|
233
241
|
]
|
|
234
242
|
},
|
|
235
243
|
{
|
|
236
|
-
"name": "bm-
|
|
237
|
-
"description": "`bm-
|
|
244
|
+
"name": "bm-alert",
|
|
245
|
+
"description": "`bm-alert`\n\n### Attributes:\n- **heading** - Specify the heading text for Alert\n- **body** - Specify the body text for Alert\n- **size** - Specify the size of the Alert\n- **fullWidth** - Specify if the Alert has no border radius\n- **theme** - Specify the theme of the Alert. By default it inherits the theme from the parent\n- **appearance** - Specify the appearance of the Alert\n- **hidden** - Specify if the Alert is hidden\n- **hideIcon** - Specify if the icon displays on the Alert\n- **dismissible** - Specify if the Alert can be dismissed\n- **disableAutoFocus** - Prevent autofocus on show\n- **disableCloseOnEscape** - Prevent Escape from closing\n---\n\n\n### **Events:**\n - **bm-dismiss** - Dispatched when the Alert has been dismissed\n\n### **Slots:**\n - **icon** - Specify a different icon for the Alert\n- **heading** - Specify the heading text for Alert or pass the `heading` attribute to set the heading\n- **body** - Specify the body text for Alert or pass the `body` attribute to set the body\n- **actions** - Specify if actions display on the Alert",
|
|
238
246
|
"attributes": [
|
|
239
247
|
{
|
|
240
|
-
"name": "
|
|
241
|
-
"description": "Specify the
|
|
242
|
-
"values": [
|
|
248
|
+
"name": "heading",
|
|
249
|
+
"description": "Specify the heading text for Alert",
|
|
250
|
+
"values": []
|
|
243
251
|
},
|
|
244
252
|
{
|
|
245
|
-
"name": "
|
|
246
|
-
"description": "Specify the
|
|
247
|
-
"values": [
|
|
248
|
-
{ "name": "infoPrimary" },
|
|
249
|
-
{ "name": "infoSecondary" },
|
|
250
|
-
{ "name": "positive" },
|
|
251
|
-
{ "name": "warning" },
|
|
252
|
-
{ "name": "negative" }
|
|
253
|
-
]
|
|
253
|
+
"name": "body",
|
|
254
|
+
"description": "Specify the body text for Alert",
|
|
255
|
+
"values": []
|
|
254
256
|
},
|
|
255
257
|
{
|
|
256
|
-
"name": "
|
|
257
|
-
"description": "Specify the
|
|
258
|
-
"values": [{ "name": "
|
|
258
|
+
"name": "size",
|
|
259
|
+
"description": "Specify the size of the Alert",
|
|
260
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
259
261
|
},
|
|
260
262
|
{
|
|
261
|
-
"name": "
|
|
262
|
-
"description": "
|
|
263
|
+
"name": "fullWidth",
|
|
264
|
+
"description": "Specify if the Alert has no border radius",
|
|
263
265
|
"values": []
|
|
264
|
-
}
|
|
265
|
-
],
|
|
266
|
-
"references": [
|
|
266
|
+
},
|
|
267
267
|
{
|
|
268
|
-
"name": "
|
|
269
|
-
"
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"name": "bm-badge",
|
|
275
|
-
"description": "`bm-badge`\n\n### Attributes:\n- **appearance** - Specify the appearance of the Badge\n- **theme** - Theme of the Badge\n- **size** - Specify the size of the Badge\n- **emphasis** - Specify the emphasis of the Badge\n- **hideIcon** - Hides Badge icon\n---\n\n\n### **Slots:**\n - **default** - Provide text for the Badge\n- **icon** - Specify a different icon for the Badge",
|
|
276
|
-
"attributes": [
|
|
268
|
+
"name": "theme",
|
|
269
|
+
"description": "Specify the theme of the Alert. By default it inherits the theme from the parent",
|
|
270
|
+
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
271
|
+
},
|
|
277
272
|
{
|
|
278
273
|
"name": "appearance",
|
|
279
|
-
"description": "Specify the appearance of the
|
|
274
|
+
"description": "Specify the appearance of the Alert",
|
|
280
275
|
"values": [
|
|
281
276
|
{ "name": "infoPrimary" },
|
|
282
277
|
{ "name": "infoSecondary" },
|
|
@@ -286,30 +281,35 @@
|
|
|
286
281
|
]
|
|
287
282
|
},
|
|
288
283
|
{
|
|
289
|
-
"name": "
|
|
290
|
-
"description": "
|
|
291
|
-
"values": [
|
|
284
|
+
"name": "hidden",
|
|
285
|
+
"description": "Specify if the Alert is hidden",
|
|
286
|
+
"values": []
|
|
292
287
|
},
|
|
293
288
|
{
|
|
294
|
-
"name": "
|
|
295
|
-
"description": "Specify the
|
|
296
|
-
"values": [
|
|
289
|
+
"name": "hideIcon",
|
|
290
|
+
"description": "Specify if the icon displays on the Alert",
|
|
291
|
+
"values": []
|
|
297
292
|
},
|
|
298
293
|
{
|
|
299
|
-
"name": "
|
|
300
|
-
"description": "Specify the
|
|
301
|
-
"values": [
|
|
302
|
-
{ "name": "strong" },
|
|
303
|
-
{ "name": "medium" },
|
|
304
|
-
{ "name": "subtle" }
|
|
305
|
-
]
|
|
294
|
+
"name": "dismissible",
|
|
295
|
+
"description": "Specify if the Alert can be dismissed",
|
|
296
|
+
"values": []
|
|
306
297
|
},
|
|
307
|
-
{
|
|
298
|
+
{
|
|
299
|
+
"name": "disableAutoFocus",
|
|
300
|
+
"description": "Prevent autofocus on show",
|
|
301
|
+
"values": []
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "disableCloseOnEscape",
|
|
305
|
+
"description": "Prevent Escape from closing",
|
|
306
|
+
"values": []
|
|
307
|
+
}
|
|
308
308
|
],
|
|
309
309
|
"references": [
|
|
310
310
|
{
|
|
311
311
|
"name": "Storybook",
|
|
312
|
-
"url": "https://web-components.beam.viasat.com/?path=/docs/components-
|
|
312
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/components-alert"
|
|
313
313
|
}
|
|
314
314
|
]
|
|
315
315
|
},
|
|
@@ -2261,58 +2261,6 @@
|
|
|
2261
2261
|
}
|
|
2262
2262
|
]
|
|
2263
2263
|
},
|
|
2264
|
-
{
|
|
2265
|
-
"name": "bm-radio-button",
|
|
2266
|
-
"description": "`bm-radio-button`\n\n### Attributes:\n- **label** - Specify the text for the label\n- **error** - Specify error text and display error state of a RadioButton\n- **readOnly** - Specify if RadioButton displays in a read-only state\n- **disabled** - Specify if RadioButton displays in a disabled state\n- **theme** - Specify the theme of the RadioButton. By default it inherits the theme from the parent\n- **value** - The value attribute for the input element\n- **checked** - The checked attribute for the input element\n- **onKeyDown** - A user-defined function to handle keydown events\n---\n",
|
|
2267
|
-
"attributes": [
|
|
2268
|
-
{
|
|
2269
|
-
"name": "label",
|
|
2270
|
-
"description": "Specify the text for the label",
|
|
2271
|
-
"values": []
|
|
2272
|
-
},
|
|
2273
|
-
{
|
|
2274
|
-
"name": "error",
|
|
2275
|
-
"description": "Specify error text and display error state of a RadioButton",
|
|
2276
|
-
"values": []
|
|
2277
|
-
},
|
|
2278
|
-
{
|
|
2279
|
-
"name": "readOnly",
|
|
2280
|
-
"description": "Specify if RadioButton displays in a read-only state",
|
|
2281
|
-
"values": []
|
|
2282
|
-
},
|
|
2283
|
-
{
|
|
2284
|
-
"name": "disabled",
|
|
2285
|
-
"description": "Specify if RadioButton displays in a disabled state",
|
|
2286
|
-
"values": []
|
|
2287
|
-
},
|
|
2288
|
-
{
|
|
2289
|
-
"name": "theme",
|
|
2290
|
-
"description": "Specify the theme of the RadioButton. By default it inherits the theme from the parent",
|
|
2291
|
-
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
2292
|
-
},
|
|
2293
|
-
{
|
|
2294
|
-
"name": "value",
|
|
2295
|
-
"description": "The value attribute for the input element",
|
|
2296
|
-
"values": []
|
|
2297
|
-
},
|
|
2298
|
-
{
|
|
2299
|
-
"name": "checked",
|
|
2300
|
-
"description": "The checked attribute for the input element",
|
|
2301
|
-
"values": []
|
|
2302
|
-
},
|
|
2303
|
-
{
|
|
2304
|
-
"name": "onKeyDown",
|
|
2305
|
-
"description": "A user-defined function to handle keydown events",
|
|
2306
|
-
"values": [{ "name": "(event: KeyboardEvent) => void" }]
|
|
2307
|
-
}
|
|
2308
|
-
],
|
|
2309
|
-
"references": [
|
|
2310
|
-
{
|
|
2311
|
-
"name": "Storybook",
|
|
2312
|
-
"url": "https://web-components.beam.viasat.com/?path=/docs/forms-radiobutton"
|
|
2313
|
-
}
|
|
2314
|
-
]
|
|
2315
|
-
},
|
|
2316
2264
|
{
|
|
2317
2265
|
"name": "bm-native-select",
|
|
2318
2266
|
"description": "`bm-native-select`\n---\n\n\n### **Slots:**\n - **slot** - Specify Options for NativeSelect\n- **label** - Specify Label for NativeSelect\n- **helper-text** - Specify HelperText for NativeSelect",
|
|
@@ -2383,6 +2331,58 @@
|
|
|
2383
2331
|
}
|
|
2384
2332
|
]
|
|
2385
2333
|
},
|
|
2334
|
+
{
|
|
2335
|
+
"name": "bm-radio-button",
|
|
2336
|
+
"description": "`bm-radio-button`\n\n### Attributes:\n- **label** - Specify the text for the label\n- **error** - Specify error text and display error state of a RadioButton\n- **readOnly** - Specify if RadioButton displays in a read-only state\n- **disabled** - Specify if RadioButton displays in a disabled state\n- **theme** - Specify the theme of the RadioButton. By default it inherits the theme from the parent\n- **value** - The value attribute for the input element\n- **checked** - The checked attribute for the input element\n- **onKeyDown** - A user-defined function to handle keydown events\n---\n",
|
|
2337
|
+
"attributes": [
|
|
2338
|
+
{
|
|
2339
|
+
"name": "label",
|
|
2340
|
+
"description": "Specify the text for the label",
|
|
2341
|
+
"values": []
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
"name": "error",
|
|
2345
|
+
"description": "Specify error text and display error state of a RadioButton",
|
|
2346
|
+
"values": []
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
"name": "readOnly",
|
|
2350
|
+
"description": "Specify if RadioButton displays in a read-only state",
|
|
2351
|
+
"values": []
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"name": "disabled",
|
|
2355
|
+
"description": "Specify if RadioButton displays in a disabled state",
|
|
2356
|
+
"values": []
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"name": "theme",
|
|
2360
|
+
"description": "Specify the theme of the RadioButton. By default it inherits the theme from the parent",
|
|
2361
|
+
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
"name": "value",
|
|
2365
|
+
"description": "The value attribute for the input element",
|
|
2366
|
+
"values": []
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
"name": "checked",
|
|
2370
|
+
"description": "The checked attribute for the input element",
|
|
2371
|
+
"values": []
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"name": "onKeyDown",
|
|
2375
|
+
"description": "A user-defined function to handle keydown events",
|
|
2376
|
+
"values": [{ "name": "(event: KeyboardEvent) => void" }]
|
|
2377
|
+
}
|
|
2378
|
+
],
|
|
2379
|
+
"references": [
|
|
2380
|
+
{
|
|
2381
|
+
"name": "Storybook",
|
|
2382
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/forms-radiobutton"
|
|
2383
|
+
}
|
|
2384
|
+
]
|
|
2385
|
+
},
|
|
2386
2386
|
{
|
|
2387
2387
|
"name": "bm-switch",
|
|
2388
2388
|
"description": "`bm-switch`\n\n### Attributes:\n- **onText** - Specify a side label for the “on” position. If onText is not specified, side label defaults to offText value.\n- **offText** - Specify a side label for the “off” position. If offText is not specified, side label defaults to onText value.\n- **textPosition** - Specify the position of the side label\n- **readOnly** - Specify if Switch displays in a read-only state\n- **disabled** - Specify if Switch displays in a disabled state\n- **checked** \n- **value** - The value attribute for the input element\n---\n\n\n### **Slots:**\n - **onText** - Specify a side label for the “on” position. If onText is not specified, side label defaults to offText value.\n- **offText** - Specify a side label for the “off” position. If offText is not specified, side label defaults to onText value.",
|
|
@@ -45,7 +45,7 @@ export declare class BmCheckbox extends LitElement {
|
|
|
45
45
|
checked?: boolean;
|
|
46
46
|
inputChoiceGroupContext?: InputChoiceGroupContextProps;
|
|
47
47
|
clickHandler(event: Event): void;
|
|
48
|
-
render(): import('lit
|
|
48
|
+
render(): import('lit').TemplateResult<1>;
|
|
49
49
|
}
|
|
50
50
|
declare global {
|
|
51
51
|
interface HTMLElementTagNameMap {
|
|
@@ -26,7 +26,7 @@ export declare class BmFileUploadButton extends BmButton {
|
|
|
26
26
|
constructor();
|
|
27
27
|
protected willUpdate(changedProperties: PropertyValues): void;
|
|
28
28
|
private renderBmButtonWithAdditionalClassName;
|
|
29
|
-
render(): import('lit
|
|
29
|
+
render(): import('lit').TemplateResult<1>;
|
|
30
30
|
}
|
|
31
31
|
declare global {
|
|
32
32
|
interface HTMLElementTagNameMap {
|
|
@@ -45,7 +45,7 @@ export declare class BmFileUploadDropzone extends LitElement {
|
|
|
45
45
|
private handleDragEnter;
|
|
46
46
|
private handleDragLeave;
|
|
47
47
|
private handleDragOver;
|
|
48
|
-
render(): import('lit
|
|
48
|
+
render(): import('lit').TemplateResult<1>;
|
|
49
49
|
}
|
|
50
50
|
declare global {
|
|
51
51
|
interface HTMLElementTagNameMap {
|
|
@@ -52,7 +52,7 @@ export declare class BmFileUploadListItem extends LitElement {
|
|
|
52
52
|
private listContext?;
|
|
53
53
|
private tooltipRef;
|
|
54
54
|
private fileNameRef;
|
|
55
|
-
render(): import('lit
|
|
55
|
+
render(): import('lit').TemplateResult<1>;
|
|
56
56
|
}
|
|
57
57
|
declare global {
|
|
58
58
|
interface HTMLElementTagNameMap {
|
|
@@ -36,7 +36,7 @@ export declare class BmFileUploadList extends LitElement {
|
|
|
36
36
|
willUpdate(): void;
|
|
37
37
|
private internalRenderItem;
|
|
38
38
|
private handleSlotChange;
|
|
39
|
-
render(): import('lit
|
|
39
|
+
render(): import('lit').TemplateResult<1>;
|
|
40
40
|
}
|
|
41
41
|
declare global {
|
|
42
42
|
interface HTMLElementTagNameMap {
|
|
@@ -80,7 +80,7 @@ export declare class BmFileUpload extends FormField {
|
|
|
80
80
|
theme?: ThemeTypes;
|
|
81
81
|
formContext: BmFormContext;
|
|
82
82
|
private fileUploadContext;
|
|
83
|
-
pickerRef: import('lit
|
|
83
|
+
pickerRef: import('lit/directives/ref.js').Ref<BmFileUploadButton | BmFileUploadDropzone>;
|
|
84
84
|
private _textFieldLabel;
|
|
85
85
|
private _textFieldHelperText;
|
|
86
86
|
private filesState;
|
|
@@ -91,7 +91,7 @@ export declare class BmFileUpload extends FormField {
|
|
|
91
91
|
formResetCallback(): void;
|
|
92
92
|
private _hasPickerSlot;
|
|
93
93
|
private _hasFilesListSlot;
|
|
94
|
-
render(): import('lit
|
|
94
|
+
render(): import('lit').TemplateResult<1>;
|
|
95
95
|
}
|
|
96
96
|
declare global {
|
|
97
97
|
interface HTMLElementTagNameMap {
|