@nvidia-elements/core 0.2.2 → 0.2.3
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/CHANGELOG.md +9 -0
- package/dist/accordion/accordion2.js +39 -39
- package/dist/alert/alert-group2.js +14 -14
- package/dist/alert/alert2.js +20 -20
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +6 -6
- package/dist/badge/badge2.js +21 -21
- package/dist/breadcrumb/breadcrumb2.js +12 -12
- package/dist/bundles/index.d.ts +418 -1802
- package/dist/bundles/index.js +6 -6
- package/dist/button/button.d.ts +5 -2
- package/dist/button/button2.js +13 -13
- package/dist/button/button2.js.map +1 -1
- package/dist/button-group/button-group2.js +15 -15
- package/dist/card/card2.js +17 -17
- package/dist/chat-message/chat-message2.js +7 -7
- package/dist/checkbox/checkbox-group2.js +7 -7
- package/dist/checkbox/checkbox2.js +7 -7
- package/dist/color/color2.js +7 -7
- package/dist/combobox/combobox2.js +10 -10
- package/dist/copy-button/copy-button2.js +10 -10
- package/dist/custom-elements-jsx.d.ts +346 -613
- package/dist/custom-elements-vue.d.ts +346 -613
- package/dist/custom-elements.json +4870 -14220
- package/dist/data.html.json +252 -168
- package/dist/data.snippets.json +42 -42
- package/dist/date/date2.js +7 -7
- package/dist/datetime/datetime2.js +7 -7
- package/dist/dialog/dialog-footer2.js +6 -6
- package/dist/dialog/dialog-header2.js +6 -6
- package/dist/dialog/dialog2.js +19 -19
- package/dist/divider/divider2.js +5 -5
- package/dist/dot/dot2.js +8 -8
- package/dist/drawer/drawer-content2.js +6 -6
- package/dist/drawer/drawer-footer2.js +6 -6
- package/dist/drawer/drawer-header2.js +6 -6
- package/dist/drawer/drawer2.js +19 -19
- package/dist/dropdown/dropdown-footer2.js +6 -6
- package/dist/dropdown/dropdown-header2.js +6 -6
- package/dist/dropdown/dropdown2.js +16 -16
- package/dist/dropdown-group/dropdown-group.js +16 -16
- package/dist/dropzone/dropzone.d.ts +1 -404
- package/dist/dropzone/dropzone2.js +14 -14
- package/dist/dropzone/dropzone2.js.map +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-datetime/format-datetime2.js +10 -10
- package/dist/format-number/format-number2.js +16 -16
- package/dist/format-relative-time/format-relative-time2.js +7 -7
- package/dist/forms/control/control2.js +19 -19
- package/dist/forms/control-group/control-group2.js +6 -6
- package/dist/forms/control-message/control-message2.js +9 -9
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +10 -10
- package/dist/grid/footer/footer2.js +6 -6
- package/dist/grid/grid2.js +12 -12
- package/dist/grid/header/header2.js +9 -9
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +9 -9
- package/dist/icon/icon2.js +15 -15
- package/dist/icon-button/icon-button2.js +9 -9
- package/dist/index.js +4 -4
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +6 -6
- package/dist/internal/controllers/keynav-grid.controller.js +39 -39
- package/dist/internal/controllers/type-button.controller.examples.js.map +1 -1
- package/dist/internal/controllers/type-button.controller.examples.json +1 -1
- package/dist/internal/controllers/type-command.controller.d.ts +10 -1
- package/dist/internal/controllers/type-command.controller.js +23 -14
- package/dist/internal/controllers/type-command.controller.js.map +1 -1
- package/dist/internal/controllers/type-native-popover.utils.js +7 -7
- package/dist/internal/index.d.ts +0 -1
- package/dist/internal/index.js +40 -41
- package/dist/internal/services/global.service.js +1 -1
- package/dist/logo/logo2.js +6 -6
- package/dist/menu/menu-item.d.ts +4 -2
- package/dist/menu/menu-item2.js +12 -12
- package/dist/menu/menu-item2.js.map +1 -1
- package/dist/menu/menu2.js +10 -10
- package/dist/month/month2.js +7 -7
- package/dist/notification/notification-group2.js +11 -11
- package/dist/notification/notification2.js +22 -22
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +6 -6
- package/dist/page/page-panel/page-panel-header2.js +6 -6
- package/dist/page/page-panel/page-panel2.js +14 -14
- package/dist/page/page2.js +9 -9
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +10 -10
- package/dist/pagination/pagination.d.ts +1 -404
- package/dist/pagination/pagination2.js +17 -17
- package/dist/pagination/pagination2.js.map +1 -1
- package/dist/panel/panel2.js +21 -21
- package/dist/password/password2.js +7 -7
- package/dist/preferences-input/preferences-input.d.ts +1 -404
- package/dist/preferences-input/preferences-input2.js +9 -9
- package/dist/preferences-input/preferences-input2.js.map +1 -1
- package/dist/progress-bar/progress-bar2.js +8 -8
- package/dist/progress-ring/progress-ring2.js +15 -15
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +15 -15
- package/dist/pulse/pulse2.js +6 -6
- package/dist/radio/radio-group2.js +7 -7
- package/dist/radio/radio2.js +7 -7
- package/dist/range/range2.js +5 -5
- package/dist/resize-handle/resize-handle.d.ts +1 -404
- package/dist/resize-handle/resize-handle2.js +16 -16
- package/dist/resize-handle/resize-handle2.js.map +1 -1
- package/dist/search/search2.js +8 -8
- package/dist/select/select2.js +18 -18
- package/dist/skeleton/skeleton2.js +7 -7
- package/dist/sort-button/sort-button.d.ts +4 -2
- package/dist/sort-button/sort-button2.js +19 -19
- package/dist/sort-button/sort-button2.js.map +1 -1
- package/dist/sparkline/sparkline2.js +14 -14
- package/dist/star-rating/star-rating2.js +6 -6
- package/dist/steps/steps.d.ts +4 -2
- package/dist/steps/steps2.js +36 -36
- package/dist/steps/steps2.js.map +1 -1
- package/dist/switch/switch-group2.js +6 -6
- package/dist/switch/switch2.js +7 -7
- package/dist/tabs/tabs-group2.js +21 -21
- package/dist/tabs/tabs.d.ts +4 -2
- package/dist/tabs/tabs2.js +30 -30
- package/dist/tabs/tabs2.js.map +1 -1
- package/dist/tag/tag.d.ts +5 -2
- package/dist/tag/tag2.js +20 -20
- package/dist/tag/tag2.js.map +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +7 -7
- package/dist/toast/toast2.js +21 -21
- package/dist/toggletip/toggletip-footer2.js +6 -6
- package/dist/toggletip/toggletip-header2.js +6 -6
- package/dist/toggletip/toggletip2.js +17 -17
- package/dist/toolbar/toolbar2.js +11 -11
- package/dist/tooltip/tooltip2.js +16 -16
- package/dist/tree/tree-node2.js +30 -30
- package/dist/tree/tree2.js +14 -14
- package/dist/week/week2.js +7 -7
- package/package.json +3 -3
- package/dist/internal/base/button.d.ts +0 -114
- package/dist/internal/base/button.js +0 -117
- package/dist/internal/base/button.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## <small>0.2.3 (2026-06-03)</small>
|
|
2
|
+
|
|
3
|
+
* chore(ci): update lighthouse ([f1fb184](https://github.com/NVIDIA/elements/commit/f1fb184))
|
|
4
|
+
* chore(docs): update agent documentation and component creation guidelines ([69e3ed5](https://github.com/NVIDIA/elements/commit/69e3ed5))
|
|
5
|
+
* chore(release): @nvidia-elements/forms-v0.1.0 [skip ci] ([37b0575](https://github.com/NVIDIA/elements/commit/37b0575))
|
|
6
|
+
* fix(core): refactor to use form control mixins ([5e1721d](https://github.com/NVIDIA/elements/commit/5e1721d))
|
|
7
|
+
* fix(monaco): refactor to use form control mixin entrypoint ([05c73b9](https://github.com/NVIDIA/elements/commit/05c73b9))
|
|
8
|
+
* feat(forms): add form control mixins ([fc88b3a](https://github.com/NVIDIA/elements/commit/fc88b3a))
|
|
9
|
+
|
|
1
10
|
## <small>0.2.2 (2026-06-03)</small>
|
|
2
11
|
|
|
3
12
|
* fix(core): chrome scoped registry and popover behavior ([e8bb66c](https://github.com/NVIDIA/elements/commit/e8bb66c))
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { I18nController as t } from "../internal/controllers/i18n.controller.js";
|
|
3
|
+
import { isFocusable as n } from "../internal/utils/focus.js";
|
|
4
|
+
import { generateId as r } from "../internal/utils/dom.js";
|
|
5
|
+
import { attachInternals as i } from "../internal/utils/a11y.js";
|
|
6
|
+
import { stateExpanded as a } from "../internal/controllers/state-expanded.controller.js";
|
|
7
|
+
import { TypeExpandableController as o } from "../internal/controllers/type-expandable.controller.js";
|
|
8
|
+
import { hostAttr as s } from "../internal/decorators/host-attr.js";
|
|
9
|
+
import { scopedRegistry as c } from "../internal/decorators/scoped-registry.js";
|
|
10
|
+
import { useStyles as l } from "../internal/styles/index.js";
|
|
11
|
+
import { __decorate as u } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
12
12
|
import { IconButton as d } from "../icon-button/icon-button2.js";
|
|
13
13
|
import f from "./accordion.js";
|
|
14
14
|
import p from "./accordion-header.js";
|
|
@@ -23,30 +23,30 @@ var b = class extends g {
|
|
|
23
23
|
super(...e), this.slot = "header";
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.styles =
|
|
26
|
+
this.styles = l([p]);
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.metadata = {
|
|
30
30
|
tag: "nve-accordion-header",
|
|
31
|
-
version: "0.2.
|
|
31
|
+
version: "0.2.3"
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
return _`<div internal-host><slot name="prefix"></slot><div id="titles"><slot name="title"></slot><slot name="subtitle"></slot></div><slot></slot><div id="actions"><slot name="actions"></slot></div><slot name="suffix"></slot></div>`;
|
|
36
36
|
}
|
|
37
37
|
connectedCallback() {
|
|
38
|
-
super.connectedCallback(),
|
|
38
|
+
super.connectedCallback(), i(this), this._internals.role = "heading", this._internals.ariaLevel = "2";
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
u([s()], b.prototype, "slot", void 0);
|
|
42
42
|
var x = class extends g {
|
|
43
43
|
static {
|
|
44
|
-
this.styles =
|
|
44
|
+
this.styles = l([m]);
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
47
|
this.metadata = {
|
|
48
48
|
tag: "nve-accordion-content",
|
|
49
|
-
version: "0.2.
|
|
49
|
+
version: "0.2.3"
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
@@ -54,15 +54,15 @@ var x = class extends g {
|
|
|
54
54
|
}
|
|
55
55
|
}, S = class extends g {
|
|
56
56
|
constructor(...e) {
|
|
57
|
-
super(...e), this.#e = new
|
|
57
|
+
super(...e), this.#e = new t(this), this.#t = new o(this), this.i18n = this.#e.i18n, this.expanded = !1, this.disabled = !1, this.behaviorExpand = !1;
|
|
58
58
|
}
|
|
59
59
|
static {
|
|
60
|
-
this.styles =
|
|
60
|
+
this.styles = l([f]);
|
|
61
61
|
}
|
|
62
62
|
static {
|
|
63
63
|
this.metadata = {
|
|
64
64
|
tag: "nve-accordion",
|
|
65
|
-
version: "0.2.
|
|
65
|
+
version: "0.2.3",
|
|
66
66
|
children: [
|
|
67
67
|
b.metadata.tag,
|
|
68
68
|
x.metadata.tag,
|
|
@@ -81,35 +81,35 @@ var x = class extends g {
|
|
|
81
81
|
get #r() {
|
|
82
82
|
return this.shadowRoot?.querySelector("slot[name=header]")?.assignedElements()[0];
|
|
83
83
|
}
|
|
84
|
-
#i(
|
|
85
|
-
!this.disabled && (!e
|
|
84
|
+
#i(e) {
|
|
85
|
+
!this.disabled && (!n(e) || e.id === "internal-trigger") && this.#t.toggle();
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
88
|
return _`<div internal-host class="${this.#n ? "has-action" : ""}"><div id="header" @click="${(e) => this.#i(e.target)}" .ariaLabel="${this.expanded ? this.i18n.close : this.i18n.expand}" .ariaControls="${"content"}"><slot name="header"></slot><slot name="icon-button"><nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" id="internal-trigger" container="inline" icon-name="caret" direction="${this.expanded ? this.#n ? "down" : "up" : this.#n ? "right" : "down"}" ?disabled="${this.disabled}" ?pressed="${this.expanded}" .expanded="${this.expanded}" .ariaLabel="${this.expanded ? this.i18n.close : this.i18n.expand}"></nve-icon-button></slot></div><div id="content" .ariaHidden="${!this.expanded}"><slot></slot></div></div>`;
|
|
89
89
|
}
|
|
90
90
|
connectedCallback() {
|
|
91
|
-
super.connectedCallback(),
|
|
91
|
+
super.connectedCallback(), i(this), this._internals.role = "region";
|
|
92
92
|
}
|
|
93
93
|
async firstUpdated(e) {
|
|
94
|
-
super.firstUpdated(e), this.#r && (this.#r.id ||=
|
|
94
|
+
super.firstUpdated(e), this.#r && (this.#r.id ||= r(), this.setAttribute("aria-labelledby", this.#r.id));
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
u([v({ type: Object })], S.prototype, "i18n", void 0), u([v({
|
|
98
98
|
type: String,
|
|
99
99
|
reflect: !0
|
|
100
|
-
})], S.prototype, "container", void 0),
|
|
100
|
+
})], S.prototype, "container", void 0), u([v({
|
|
101
101
|
type: Boolean,
|
|
102
102
|
reflect: !0
|
|
103
|
-
})], S.prototype, "expanded", void 0),
|
|
103
|
+
})], S.prototype, "expanded", void 0), u([v({
|
|
104
104
|
type: Boolean,
|
|
105
105
|
reflect: !0
|
|
106
|
-
})], S.prototype, "disabled", void 0),
|
|
106
|
+
})], S.prototype, "disabled", void 0), u([v({
|
|
107
107
|
type: Boolean,
|
|
108
108
|
attribute: "behavior-expand"
|
|
109
|
-
})], S.prototype, "behaviorExpand", void 0), S =
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
})], S.prototype, "behaviorExpand", void 0), S = u([
|
|
110
|
+
e(),
|
|
111
|
+
c(),
|
|
112
|
+
a()
|
|
113
113
|
], S);
|
|
114
114
|
var C = class extends g {
|
|
115
115
|
constructor(...e) {
|
|
@@ -118,12 +118,12 @@ var C = class extends g {
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
static {
|
|
121
|
-
this.styles =
|
|
121
|
+
this.styles = l([h]);
|
|
122
122
|
}
|
|
123
123
|
static {
|
|
124
124
|
this.metadata = {
|
|
125
125
|
tag: "nve-accordion-group",
|
|
126
|
-
version: "0.2.
|
|
126
|
+
version: "0.2.3",
|
|
127
127
|
children: [S.metadata.tag]
|
|
128
128
|
};
|
|
129
129
|
}
|
|
@@ -131,7 +131,7 @@ var C = class extends g {
|
|
|
131
131
|
return _`<div internal-host><slot @slotchange="${() => this.#t()}"></slot></div>`;
|
|
132
132
|
}
|
|
133
133
|
connectedCallback() {
|
|
134
|
-
super.connectedCallback(),
|
|
134
|
+
super.connectedCallback(), i(this), this._internals.role = "group", this.addEventListener("open", this.#e);
|
|
135
135
|
}
|
|
136
136
|
disconnectedCallback() {
|
|
137
137
|
super.disconnectedCallback(), this.removeEventListener("open", this.#e);
|
|
@@ -144,16 +144,16 @@ var C = class extends g {
|
|
|
144
144
|
this.accordions.forEach((e) => e.container = this.container), this.accordions.forEach((e) => e.behaviorExpand = this.behaviorExpand || this.behaviorExpandSingle);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
u([v({
|
|
148
148
|
type: Boolean,
|
|
149
149
|
attribute: "behavior-expand"
|
|
150
|
-
})], C.prototype, "behaviorExpand", void 0),
|
|
150
|
+
})], C.prototype, "behaviorExpand", void 0), u([v({
|
|
151
151
|
type: Boolean,
|
|
152
152
|
attribute: "behavior-expand-single"
|
|
153
|
-
})], C.prototype, "behaviorExpandSingle", void 0),
|
|
153
|
+
})], C.prototype, "behaviorExpandSingle", void 0), u([v({
|
|
154
154
|
type: String,
|
|
155
155
|
reflect: !0
|
|
156
|
-
})], C.prototype, "container", void 0),
|
|
156
|
+
})], C.prototype, "container", void 0), u([y()], C.prototype, "accordions", void 0), C = u([e()], C);
|
|
157
157
|
//#endregion
|
|
158
158
|
export { S as Accordion, x as AccordionContent, C as AccordionGroup, b as AccordionHeader };
|
|
159
159
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { attachInternals as t } from "../internal/utils/a11y.js";
|
|
3
|
+
import { colorStateStyles as n, supportStateStyles as r, useStyles as i } from "../internal/styles/index.js";
|
|
4
|
+
import { __decorate as a } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
5
5
|
import { Alert as o } from "./alert2.js";
|
|
6
6
|
import s from "./alert-group.js";
|
|
7
7
|
import { LitElement as c, html as l } from "lit";
|
|
@@ -10,16 +10,16 @@ import { queryAssignedElements as d } from "lit/decorators/query-assigned-elemen
|
|
|
10
10
|
//#region src/alert/alert-group.ts
|
|
11
11
|
var f = class extends c {
|
|
12
12
|
static {
|
|
13
|
-
this.styles =
|
|
13
|
+
this.styles = i([
|
|
14
14
|
s,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
r,
|
|
16
|
+
n
|
|
17
17
|
]);
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
20
|
this.metadata = {
|
|
21
21
|
tag: "nve-alert-group",
|
|
22
|
-
version: "0.2.
|
|
22
|
+
version: "0.2.3",
|
|
23
23
|
children: [o.metadata.tag]
|
|
24
24
|
};
|
|
25
25
|
}
|
|
@@ -27,7 +27,7 @@ var f = class extends c {
|
|
|
27
27
|
return l`<div internal-host><slot @slotchange="${() => this.#e()}"></slot></div>`;
|
|
28
28
|
}
|
|
29
29
|
connectedCallback() {
|
|
30
|
-
super.connectedCallback(),
|
|
30
|
+
super.connectedCallback(), t(this), this._internals.role = "group";
|
|
31
31
|
}
|
|
32
32
|
updated(e) {
|
|
33
33
|
super.updated(e), this.#e();
|
|
@@ -36,19 +36,19 @@ var f = class extends c {
|
|
|
36
36
|
this.alerts.forEach((e) => e.status = this.status);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
a([u({
|
|
40
40
|
type: String,
|
|
41
41
|
reflect: !0
|
|
42
|
-
})], f.prototype, "status", void 0),
|
|
42
|
+
})], f.prototype, "status", void 0), a([u({
|
|
43
43
|
type: String,
|
|
44
44
|
reflect: !0
|
|
45
|
-
})], f.prototype, "prominence", void 0),
|
|
45
|
+
})], f.prototype, "prominence", void 0), a([u({
|
|
46
46
|
type: String,
|
|
47
47
|
reflect: !0
|
|
48
|
-
})], f.prototype, "color", void 0),
|
|
48
|
+
})], f.prototype, "color", void 0), a([u({
|
|
49
49
|
type: String,
|
|
50
50
|
reflect: !0
|
|
51
|
-
})], f.prototype, "container", void 0),
|
|
51
|
+
})], f.prototype, "container", void 0), a([d()], f.prototype, "alerts", void 0), f = a([e()], f);
|
|
52
52
|
//#endregion
|
|
53
53
|
export { f as AlertGroup };
|
|
54
54
|
|
package/dist/alert/alert2.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { I18nController as e } from "../internal/controllers/i18n.controller.js";
|
|
2
|
+
import { appendRootNodeStyle as t } from "../internal/utils/dom.js";
|
|
3
|
+
import { attachInternals as n } from "../internal/utils/a11y.js";
|
|
4
|
+
import { TypeClosableController as r } from "../internal/controllers/type-closable.controller.js";
|
|
5
|
+
import { scopedRegistry as i } from "../internal/decorators/scoped-registry.js";
|
|
6
|
+
import { statusStateStyles as a, supportStateStyles as o, useStyles as s } from "../internal/styles/index.js";
|
|
7
|
+
import { statusIcons as c } from "../internal/types/index.js";
|
|
8
|
+
import { __decorate as l } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
9
9
|
import { Icon as u } from "../icon/icon2.js";
|
|
10
10
|
import { IconButton as d } from "../icon-button/icon-button2.js";
|
|
11
11
|
import f from "./alert.global.js";
|
|
@@ -15,20 +15,20 @@ import { property as g } from "lit/decorators/property.js";
|
|
|
15
15
|
import { queryAssignedElements as _ } from "lit/decorators/query-assigned-elements.js";
|
|
16
16
|
//#region src/alert/alert.ts
|
|
17
17
|
var v = class extends m {
|
|
18
|
-
constructor(...
|
|
19
|
-
super(...
|
|
18
|
+
constructor(...t) {
|
|
19
|
+
super(...t), this.closable = !1, this.#e = new r(this), this.#t = new e(this), this.i18n = this.#t.i18n;
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
this.styles =
|
|
22
|
+
this.styles = s([
|
|
23
23
|
p,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
a,
|
|
25
|
+
o
|
|
26
26
|
]);
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.metadata = {
|
|
30
30
|
tag: "nve-alert",
|
|
31
|
-
version: "0.2.
|
|
31
|
+
version: "0.2.3"
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
static {
|
|
@@ -40,22 +40,22 @@ var v = class extends m {
|
|
|
40
40
|
#e;
|
|
41
41
|
#t;
|
|
42
42
|
render() {
|
|
43
|
-
return h`<div internal-host @slotchange="${() => this.requestUpdate()}"><slot name="icon"><nve-icon part="icon" role="img" .name="${
|
|
43
|
+
return h`<div internal-host @slotchange="${() => this.requestUpdate()}"><slot name="icon"><nve-icon part="icon" role="img" .name="${c[this.status] ?? c[""]}" aria-label="${(this.status ? this.i18n[this.status] : void 0) ?? this.i18n.information ?? "information"}"></nve-icon></slot><slot name="prefix" ?hidden="${!this.prefixItems.length}"></slot><slot></slot><slot name="actions" ?hidden="${!this.actionItems.length}"></slot>${this.closable ? h`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${() => this.#e.close()}" container="flat" icon-name="cancel" size="sm" .ariaLabel="${this.i18n.close}"></nve-icon-button>` : ""}</div><slot name="content" part="_content"></slot>`;
|
|
44
44
|
}
|
|
45
45
|
connectedCallback() {
|
|
46
|
-
super.connectedCallback(),
|
|
46
|
+
super.connectedCallback(), n(this), t(this, f), this._internals.role = "alert";
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
l([g({
|
|
50
50
|
type: String,
|
|
51
51
|
reflect: !0
|
|
52
|
-
})], v.prototype, "status", void 0),
|
|
52
|
+
})], v.prototype, "status", void 0), l([g({ type: Boolean })], v.prototype, "closable", void 0), l([g({ type: Object })], v.prototype, "i18n", void 0), l([_({
|
|
53
53
|
slot: "prefix",
|
|
54
54
|
flatten: !0
|
|
55
|
-
})], v.prototype, "prefixItems", void 0),
|
|
55
|
+
})], v.prototype, "prefixItems", void 0), l([_({
|
|
56
56
|
slot: "actions",
|
|
57
57
|
flatten: !0
|
|
58
|
-
})], v.prototype, "actionItems", void 0), v =
|
|
58
|
+
})], v.prototype, "actionItems", void 0), v = l([i()], v);
|
|
59
59
|
//#endregion
|
|
60
60
|
export { v as Alert };
|
|
61
61
|
|
package/dist/avatar/avatar2.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { colorStateStyles as e, useStyles as t } from "../internal/styles/index.js";
|
|
2
|
+
import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
3
3
|
import r from "./avatar.js";
|
|
4
4
|
import { LitElement as i, html as a } from "lit";
|
|
5
5
|
import { property as o } from "lit/decorators/property.js";
|
|
6
6
|
//#region src/avatar/avatar.ts
|
|
7
7
|
var s = class extends i {
|
|
8
8
|
static {
|
|
9
|
-
this.styles =
|
|
9
|
+
this.styles = t([r, e]);
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.metadata = {
|
|
13
13
|
tag: "nve-avatar",
|
|
14
|
-
version: "0.2.
|
|
14
|
+
version: "0.2.3"
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
return a`<div internal-host><slot></slot></div>`;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
n([o({
|
|
22
22
|
type: String,
|
|
23
23
|
reflect: !0
|
|
24
|
-
})], s.prototype, "size", void 0),
|
|
24
|
+
})], s.prototype, "size", void 0), n([o({
|
|
25
25
|
type: String,
|
|
26
26
|
reflect: !0
|
|
27
27
|
})], s.prototype, "color", void 0);
|
package/dist/badge/badge2.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { I18nController as e } from "../internal/controllers/i18n.controller.js";
|
|
2
|
+
import { attachInternals as t } from "../internal/utils/a11y.js";
|
|
3
|
+
import { typeSSR as n } from "../internal/controllers/type-ssr.controller.js";
|
|
4
|
+
import { scopedRegistry as r } from "../internal/decorators/scoped-registry.js";
|
|
5
|
+
import { colorStateStyles as i, statusStateStyles as a, supportStateStyles as o, useStyles as s } from "../internal/styles/index.js";
|
|
6
|
+
import { statusIcons as c } from "../internal/types/index.js";
|
|
7
|
+
import { __decorate as l } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
8
8
|
import { Icon as u } from "../icon/icon2.js";
|
|
9
9
|
import d from "./badge.js";
|
|
10
10
|
import { LitElement as f, html as p, nothing as m } from "lit";
|
|
11
11
|
import { property as h } from "lit/decorators/property.js";
|
|
12
12
|
//#region src/badge/badge.ts
|
|
13
13
|
var g = class extends f {
|
|
14
|
-
constructor(...
|
|
15
|
-
super(...
|
|
14
|
+
constructor(...t) {
|
|
15
|
+
super(...t), this.#t = new e(this), this.i18n = this.#t.i18n;
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
|
-
this.styles =
|
|
18
|
+
this.styles = s([
|
|
19
19
|
d,
|
|
20
|
+
a,
|
|
20
21
|
o,
|
|
21
|
-
|
|
22
|
-
a
|
|
22
|
+
i
|
|
23
23
|
]);
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
26
|
this.metadata = {
|
|
27
27
|
tag: "nve-badge",
|
|
28
|
-
version: "0.2.
|
|
28
|
+
version: "0.2.3"
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
static {
|
|
32
32
|
this.elementDefinitions = { [u.metadata.tag]: u };
|
|
33
33
|
}
|
|
34
34
|
get #e() {
|
|
35
|
-
return this.status &&
|
|
35
|
+
return this.status && c[this.status] === "dot" ? "sm" : "md";
|
|
36
36
|
}
|
|
37
37
|
#t;
|
|
38
38
|
render() {
|
|
39
|
-
return p`<div internal-host><slot name="prefix-icon">${this.status && !this.status?.includes("trend") ? p`<nve-icon part="_icon" .name="${
|
|
39
|
+
return p`<div internal-host><slot name="prefix-icon">${this.status && !this.status?.includes("trend") ? p`<nve-icon part="_icon" .name="${c[this.status] ?? ""}" .size="${this.#e}" aria-hidden="true"></nve-icon>` : m}</slot><slot @slotchange="${this.#n}"></slot><slot name="suffix-icon">${this.status?.includes("trend") ? p`<nve-icon part="_icon" .name="${c[this.status]}" aria-hidden="true"></nve-icon>` : m}</slot></div>`;
|
|
40
40
|
}
|
|
41
41
|
connectedCallback() {
|
|
42
|
-
super.connectedCallback(),
|
|
42
|
+
super.connectedCallback(), t(this), this._internals.role = "status";
|
|
43
43
|
}
|
|
44
44
|
updated(e) {
|
|
45
45
|
super.updated(e), this.#r();
|
|
@@ -56,19 +56,19 @@ var g = class extends f {
|
|
|
56
56
|
e && (e.slot = "prefix-icon");
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
l([h({
|
|
60
60
|
type: String,
|
|
61
61
|
reflect: !0
|
|
62
|
-
})], g.prototype, "status", void 0),
|
|
62
|
+
})], g.prototype, "status", void 0), l([h({
|
|
63
63
|
type: String,
|
|
64
64
|
reflect: !0
|
|
65
|
-
})], g.prototype, "color", void 0),
|
|
65
|
+
})], g.prototype, "color", void 0), l([h({
|
|
66
66
|
type: String,
|
|
67
67
|
reflect: !0
|
|
68
|
-
})], g.prototype, "container", void 0),
|
|
68
|
+
})], g.prototype, "container", void 0), l([h({
|
|
69
69
|
type: String,
|
|
70
70
|
reflect: !0
|
|
71
|
-
})], g.prototype, "prominence", void 0),
|
|
71
|
+
})], g.prototype, "prominence", void 0), l([h({ type: Object })], g.prototype, "i18n", void 0), g = l([n(), r()], g);
|
|
72
72
|
//#endregion
|
|
73
73
|
export { g as Badge };
|
|
74
74
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isFocusable as e } from "../internal/utils/focus.js";
|
|
2
2
|
import { generateId as t } from "../internal/utils/dom.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { keyNavigationList as n } from "../internal/controllers/keynav-list.controller.js";
|
|
4
|
+
import { attachInternals as r } from "../internal/utils/a11y.js";
|
|
5
|
+
import { typeSSR as i } from "../internal/controllers/type-ssr.controller.js";
|
|
6
|
+
import { scopedRegistry as a } from "../internal/decorators/scoped-registry.js";
|
|
7
|
+
import { useStyles as o } from "../internal/styles/index.js";
|
|
8
|
+
import { __decorate as s } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
9
9
|
import { Icon as c } from "../icon/icon2.js";
|
|
10
10
|
import l from "./breadcrumb.js";
|
|
11
11
|
import { LitElement as u, html as d, nothing as f } from "lit";
|
|
@@ -19,12 +19,12 @@ var m = class extends u {
|
|
|
19
19
|
return { items: Array.from(this.shadowRoot.querySelectorAll("slot")).flatMap((e) => e.assignedElements()).filter((t) => e(t)) };
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
this.styles =
|
|
22
|
+
this.styles = o([l]);
|
|
23
23
|
}
|
|
24
24
|
static {
|
|
25
25
|
this.metadata = {
|
|
26
26
|
tag: "nve-breadcrumb",
|
|
27
|
-
version: "0.2.
|
|
27
|
+
version: "0.2.3"
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
static {
|
|
@@ -34,7 +34,7 @@ var m = class extends u {
|
|
|
34
34
|
return d`<ol internal-host>${this.breadcrumbItems.map((e, t) => d`<li><slot name="${e.slot}" @slotchange="${this.#e}"></slot>${t < this.breadcrumbItems.length - 1 ? d`<nve-icon part="icon" separator aria-hidden="true" name="chevron" direction="right" size="sm"></nve-icon>` : f}</li>`)}</ol><slot ?hidden-slot="${!this.breadcrumbItems.length}" @slotchange="${this.#t}"></slot>`;
|
|
35
35
|
}
|
|
36
36
|
connectedCallback() {
|
|
37
|
-
super.connectedCallback(),
|
|
37
|
+
super.connectedCallback(), r(this), this._internals.role = "navigation";
|
|
38
38
|
}
|
|
39
39
|
#e(e) {
|
|
40
40
|
e.target.assignedElements().length || this.#n();
|
|
@@ -50,10 +50,10 @@ var m = class extends u {
|
|
|
50
50
|
Array.from(this.shadowRoot.querySelectorAll("slot")).flatMap((e) => e.assignedElements()).forEach((e) => e.slot = "");
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
s([p()], m.prototype, "breadcrumbItems", void 0), m = s([
|
|
54
|
+
i(),
|
|
54
55
|
a(),
|
|
55
|
-
|
|
56
|
-
i()
|
|
56
|
+
n()
|
|
57
57
|
], m);
|
|
58
58
|
//#endregion
|
|
59
59
|
export { m as Breadcrumb };
|