@nvidia-elements/core 0.2.2 → 0.2.4
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 +26 -0
- package/NOTICE.md +4 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.130.0 → _@oxc-project_runtime@0.132.0}/helpers/decorate.js +1 -1
- package/dist/accordion/accordion-header.js +1 -1
- package/dist/accordion/accordion-header.js.map +1 -1
- package/dist/accordion/accordion.d.ts +4 -7
- package/dist/accordion/accordion.examples.js.map +1 -1
- package/dist/accordion/accordion.examples.json +1 -12
- package/dist/accordion/accordion.js +1 -1
- package/dist/accordion/accordion.js.map +1 -1
- package/dist/accordion/accordion2.js +41 -44
- package/dist/accordion/accordion2.js.map +1 -1
- package/dist/alert/alert-group.d.ts +1 -1
- package/dist/alert/alert-group2.js +14 -14
- package/dist/alert/alert.d.ts +1 -1
- package/dist/alert/alert.js +1 -1
- package/dist/alert/alert.js.map +1 -1
- package/dist/alert/alert2.js +20 -20
- package/dist/avatar/avatar-group.d.ts +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar.d.ts +1 -1
- package/dist/avatar/avatar2.js +6 -6
- package/dist/badge/badge.d.ts +3 -3
- package/dist/badge/badge.js +1 -1
- package/dist/badge/badge.js.map +1 -1
- package/dist/badge/badge2.js +22 -23
- package/dist/badge/badge2.js.map +1 -1
- package/dist/breadcrumb/breadcrumb.d.ts +1 -6
- package/dist/breadcrumb/breadcrumb.js +1 -1
- package/dist/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/breadcrumb/breadcrumb2.js +12 -12
- package/dist/breadcrumb/breadcrumb2.js.map +1 -1
- package/dist/bundle.d.ts +14 -0
- package/dist/bundles/index.d.ts +1229 -1877
- package/dist/bundles/index.js +6 -6
- package/dist/button/button.d.ts +7 -4
- package/dist/button/button.js +1 -1
- package/dist/button/button.js.map +1 -1
- package/dist/button/button2.js +13 -13
- package/dist/button/button2.js.map +1 -1
- package/dist/button-group/button-group.d.ts +1 -1
- package/dist/button-group/button-group2.js +15 -15
- package/dist/card/card-header.js +1 -1
- package/dist/card/card-header.js.map +1 -1
- package/dist/card/card.d.ts +4 -7
- package/dist/card/card2.js +18 -18
- package/dist/card/card2.js.map +1 -1
- package/dist/chat-message/chat-message.d.ts +1 -1
- 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/color.d.ts +1 -1
- package/dist/color/color2.js +7 -7
- package/dist/combobox/combobox.d.ts +2 -8
- package/dist/combobox/combobox.examples.js.map +1 -1
- package/dist/combobox/combobox2.js +10 -13
- package/dist/combobox/combobox2.js.map +1 -1
- package/dist/copy-button/copy-button.d.ts +1 -1
- package/dist/copy-button/copy-button2.js +11 -11
- package/dist/copy-button/copy-button2.js.map +1 -1
- package/dist/custom-elements-jsx.d.ts +374 -646
- package/dist/custom-elements-vue.d.ts +374 -646
- package/dist/custom-elements.json +5999 -15468
- package/dist/data.html.json +322 -191
- package/dist/data.snippets.json +30 -30
- package/dist/date/date.d.ts +1 -1
- package/dist/date/date2.js +7 -7
- package/dist/datetime/datetime.d.ts +1 -1
- package/dist/datetime/datetime2.js +7 -7
- package/dist/dialog/dialog-footer.d.ts +1 -1
- package/dist/dialog/dialog-footer2.js +6 -6
- package/dist/dialog/dialog-header.d.ts +1 -1
- package/dist/dialog/dialog-header2.js +6 -6
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog.examples.js.map +1 -1
- package/dist/dialog/dialog2.js +19 -19
- package/dist/divider/divider.d.ts +1 -1
- package/dist/divider/divider2.js +5 -5
- package/dist/dot/dot.d.ts +1 -1
- package/dist/dot/dot2.js +8 -8
- package/dist/drawer/drawer-content.d.ts +1 -1
- package/dist/drawer/drawer-content2.js +6 -6
- package/dist/drawer/drawer-footer.d.ts +1 -1
- package/dist/drawer/drawer-footer2.js +6 -6
- package/dist/drawer/drawer-header.d.ts +1 -1
- package/dist/drawer/drawer-header2.js +6 -6
- package/dist/drawer/drawer.d.ts +1 -1
- package/dist/drawer/drawer2.js +19 -19
- package/dist/dropdown/dropdown-footer.d.ts +1 -1
- package/dist/dropdown/dropdown-footer2.js +6 -6
- package/dist/dropdown/dropdown-header.d.ts +1 -1
- package/dist/dropdown/dropdown-header2.js +6 -6
- package/dist/dropdown/dropdown.d.ts +1 -1
- package/dist/dropdown/dropdown2.js +16 -16
- package/dist/dropdown-group/dropdown-group.d.ts +1 -1
- package/dist/dropdown-group/dropdown-group.js +16 -16
- package/dist/dropzone/dropzone.d.ts +2 -405
- 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-datetime.d.ts +1 -1
- package/dist/format-datetime/format-datetime2.js +10 -10
- package/dist/format-number/format-number.d.ts +1 -1
- package/dist/format-number/format-number2.js +16 -16
- package/dist/format-relative-time/format-relative-time.d.ts +1 -1
- 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-group.d.ts +1 -1
- package/dist/forms/control-group/control-group.js +1 -1
- package/dist/forms/control-group/control-group.js.map +1 -1
- package/dist/forms/control-group/control-group2.js +6 -6
- package/dist/forms/control-message/control-message.d.ts +1 -1
- package/dist/forms/control-message/control-message2.js +9 -9
- package/dist/grid/cell/cell.d.ts +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column.d.ts +1 -1
- package/dist/grid/column/column2.js +10 -10
- package/dist/grid/footer/footer.d.ts +1 -1
- package/dist/grid/footer/footer2.js +6 -6
- package/dist/grid/grid.d.ts +3 -2
- package/dist/grid/grid.examples.js.map +1 -1
- package/dist/grid/grid2.js +38 -30
- package/dist/grid/grid2.js.map +1 -1
- package/dist/grid/header/header.d.ts +1 -1
- package/dist/grid/header/header2.js +9 -9
- package/dist/grid/placeholder/placeholder.d.ts +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row.d.ts +1 -1
- package/dist/grid/row/row2.js +9 -9
- package/dist/icon/icon.d.ts +1 -1
- package/dist/icon/icon2.js +29 -21
- package/dist/icon/icon2.js.map +1 -1
- package/dist/icon/icons.d.ts +0 -2
- package/dist/icon/icons.js.map +1 -1
- package/dist/icon-button/icon-button.d.ts +1 -1
- package/dist/icon-button/icon-button.js +1 -1
- package/dist/icon-button/icon-button.js.map +1 -1
- package/dist/icon-button/icon-button2.js +9 -9
- package/dist/index.js +4 -4
- package/dist/input/input-group.examples.js.map +1 -1
- package/dist/input/input-group.examples.json +11 -0
- package/dist/input/input-group.js +1 -1
- package/dist/input/input-group.js.map +1 -1
- 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/state-scroll.controller.d.ts +1 -0
- package/dist/internal/controllers/state-scroll.controller.js +25 -8
- package/dist/internal/controllers/state-scroll.controller.js.map +1 -1
- 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 +6 -1
- package/dist/internal/controllers/type-command.controller.js +20 -14
- package/dist/internal/controllers/type-command.controller.js.map +1 -1
- package/dist/internal/controllers/type-native-popover.controller.js +28 -21
- package/dist/internal/controllers/type-native-popover.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/internal/types/index.d.ts +0 -10
- package/dist/internal/types/index.js +0 -3
- package/dist/internal/types/index.js.map +1 -1
- package/dist/logo/logo.d.ts +1 -1
- package/dist/logo/logo2.js +6 -6
- package/dist/menu/menu-item.d.ts +5 -3
- package/dist/menu/menu-item2.js +12 -12
- package/dist/menu/menu-item2.js.map +1 -1
- package/dist/menu/menu.d.ts +1 -1
- package/dist/menu/menu.examples.js.map +1 -1
- package/dist/menu/menu.examples.json +1 -1
- package/dist/menu/menu2.js +10 -10
- package/dist/month/month.d.ts +1 -1
- package/dist/month/month2.js +7 -7
- package/dist/notification/notification-group.d.ts +1 -1
- package/dist/notification/notification-group2.js +11 -11
- package/dist/notification/notification.d.ts +2 -1
- package/dist/notification/notification.examples.js.map +1 -1
- package/dist/notification/notification.examples.json +0 -11
- package/dist/notification/notification2.js +36 -28
- package/dist/notification/notification2.js.map +1 -1
- package/dist/page/page-panel/page-panel-content.d.ts +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer.d.ts +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +6 -6
- package/dist/page/page-panel/page-panel-header.d.ts +1 -1
- package/dist/page/page-panel/page-panel-header2.js +6 -6
- package/dist/page/page-panel/page-panel.d.ts +2 -17
- package/dist/page/page-panel/page-panel.global.js +1 -1
- package/dist/page/page-panel/page-panel.global.js.map +1 -1
- package/dist/page/page-panel/page-panel2.js +21 -44
- package/dist/page/page-panel/page-panel2.js.map +1 -1
- package/dist/page/page.d.ts +1 -1
- package/dist/page/page.examples.js.map +1 -1
- package/dist/page/page.examples.json +0 -32
- package/dist/page/page2.js +9 -9
- package/dist/page-header/page-header.d.ts +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader.d.ts +1 -1
- package/dist/page-loader/page-loader2.js +10 -10
- package/dist/pagination/pagination.d.ts +2 -405
- package/dist/pagination/pagination2.js +17 -17
- package/dist/pagination/pagination2.js.map +1 -1
- package/dist/panel/panel.d.ts +8 -5
- package/dist/panel/panel.examples.js.map +1 -1
- package/dist/panel/panel2.js +21 -21
- package/dist/panel/panel2.js.map +1 -1
- package/dist/password/password.d.ts +1 -1
- package/dist/password/password2.js +7 -7
- package/dist/preferences-input/preferences-input.d.ts +2 -405
- package/dist/preferences-input/preferences-input2.js +9 -9
- package/dist/preferences-input/preferences-input2.js.map +1 -1
- package/dist/progress-bar/progress-bar.d.ts +1 -1
- package/dist/progress-bar/progress-bar2.js +8 -8
- package/dist/progress-ring/progress-ring.d.ts +1 -3
- package/dist/progress-ring/progress-ring2.js +17 -22
- package/dist/progress-ring/progress-ring2.js.map +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip.d.ts +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +15 -15
- package/dist/pulse/pulse.d.ts +1 -1
- 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/range.d.ts +1 -1
- package/dist/range/range2.js +5 -5
- package/dist/resize-handle/resize-handle.d.ts +2 -405
- package/dist/resize-handle/resize-handle2.js +16 -16
- package/dist/resize-handle/resize-handle2.js.map +1 -1
- package/dist/search/search.d.ts +1 -1
- package/dist/search/search2.js +8 -8
- package/dist/select/select.d.ts +2 -2
- package/dist/select/select2.js +18 -18
- package/dist/skeleton/skeleton.d.ts +1 -1
- package/dist/skeleton/skeleton2.js +7 -7
- package/dist/sort-button/sort-button.d.ts +5 -3
- package/dist/sort-button/sort-button2.js +19 -19
- package/dist/sort-button/sort-button2.js.map +1 -1
- package/dist/sparkline/sparkline.d.ts +1 -1
- package/dist/sparkline/sparkline2.js +14 -14
- package/dist/star-rating/star-rating.d.ts +1 -1
- package/dist/star-rating/star-rating2.js +6 -6
- package/dist/steps/steps.d.ts +6 -4
- 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-group.d.ts +1 -1
- package/dist/tabs/tabs-group2.js +21 -21
- package/dist/tabs/tabs-item.js +1 -1
- package/dist/tabs/tabs-item.js.map +1 -1
- package/dist/tabs/tabs.d.ts +6 -8
- package/dist/tabs/tabs.global.js +1 -1
- package/dist/tabs/tabs.global.js.map +1 -1
- package/dist/tabs/tabs.js +1 -1
- package/dist/tabs/tabs.js.map +1 -1
- package/dist/tabs/tabs2.js +30 -30
- package/dist/tabs/tabs2.js.map +1 -1
- package/dist/tag/tag.d.ts +6 -3
- 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/time.d.ts +1 -1
- package/dist/time/time2.js +7 -7
- package/dist/toast/toast.d.ts +3 -4
- package/dist/toast/toast2.js +21 -21
- package/dist/toast/toast2.js.map +1 -1
- package/dist/toggletip/toggletip-footer.d.ts +1 -1
- package/dist/toggletip/toggletip-footer2.js +6 -6
- package/dist/toggletip/toggletip-header.d.ts +1 -1
- package/dist/toggletip/toggletip-header2.js +6 -6
- package/dist/toggletip/toggletip.d.ts +1 -1
- package/dist/toggletip/toggletip.examples.js.map +1 -1
- package/dist/toggletip/toggletip2.js +17 -17
- package/dist/toolbar/toolbar.d.ts +1 -1
- package/dist/toolbar/toolbar2.js +11 -11
- package/dist/tooltip/tooltip.d.ts +1 -1
- package/dist/tooltip/tooltip2.js +16 -16
- package/dist/tree/tree-node.d.ts +1 -1
- package/dist/tree/tree-node2.js +30 -30
- package/dist/tree/tree.d.ts +1 -1
- package/dist/tree/tree2.js +14 -14
- package/dist/week/week.d.ts +1 -1
- package/dist/week/week2.js +7 -7
- package/package.json +15 -15
- 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
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
|
+
import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.132.0/helpers/decorate.js";
|
|
4
4
|
import r from "./drawer-content.js";
|
|
5
5
|
import { LitElement as i, html as a } from "lit";
|
|
6
6
|
//#region src/drawer/drawer-content.ts
|
|
7
7
|
var o = class extends i {
|
|
8
8
|
static {
|
|
9
|
-
this.styles =
|
|
9
|
+
this.styles = t([r]);
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.metadata = {
|
|
13
13
|
tag: "nve-drawer-content",
|
|
14
|
-
version: "0.2.
|
|
14
|
+
version: "0.2.4",
|
|
15
15
|
parents: ["nve-drawer"]
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -19,7 +19,7 @@ var o = class extends i {
|
|
|
19
19
|
return a`<div internal-host><slot></slot></div>`;
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
o =
|
|
22
|
+
o = n([e()], o);
|
|
23
23
|
//#endregion
|
|
24
24
|
export { o as DrawerContent };
|
|
25
25
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
|
+
import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.132.0/helpers/decorate.js";
|
|
4
4
|
import r from "./drawer-footer.js";
|
|
5
5
|
import { LitElement as i, html as a } from "lit";
|
|
6
6
|
//#region src/drawer/drawer-footer.ts
|
|
7
7
|
var o = class extends i {
|
|
8
8
|
static {
|
|
9
|
-
this.styles =
|
|
9
|
+
this.styles = t([r]);
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.metadata = {
|
|
13
13
|
tag: "nve-drawer-footer",
|
|
14
|
-
version: "0.2.
|
|
14
|
+
version: "0.2.4",
|
|
15
15
|
parents: ["nve-drawer"]
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -22,7 +22,7 @@ var o = class extends i {
|
|
|
22
22
|
super.connectedCallback(), this.slot = "footer";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
o =
|
|
25
|
+
o = n([e()], o);
|
|
26
26
|
//#endregion
|
|
27
27
|
export { o as DrawerFooter };
|
|
28
28
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
|
+
import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.132.0/helpers/decorate.js";
|
|
4
4
|
import r from "./drawer-header.js";
|
|
5
5
|
import { LitElement as i, html as a } from "lit";
|
|
6
6
|
//#region src/drawer/drawer-header.ts
|
|
7
7
|
var o = class extends i {
|
|
8
8
|
static {
|
|
9
|
-
this.styles =
|
|
9
|
+
this.styles = t([r]);
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.metadata = {
|
|
13
13
|
tag: "nve-drawer-header",
|
|
14
|
-
version: "0.2.
|
|
14
|
+
version: "0.2.4",
|
|
15
15
|
parents: ["nve-drawer"]
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -22,7 +22,7 @@ var o = class extends i {
|
|
|
22
22
|
super.connectedCallback(), this.slot = "header";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
o =
|
|
25
|
+
o = n([e()], o);
|
|
26
26
|
//#endregion
|
|
27
27
|
export { o as DrawerHeader };
|
|
28
28
|
|
package/dist/drawer/drawer.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare class Drawer extends LitElement {
|
|
|
84
84
|
static elementDefinitions: {
|
|
85
85
|
[IconButton.metadata.tag]: typeof IconButton;
|
|
86
86
|
};
|
|
87
|
-
render(): import('lit
|
|
87
|
+
render(): import('lit').TemplateResult<1>;
|
|
88
88
|
connectedCallback(): void;
|
|
89
89
|
disconnectedCallback(): void;
|
|
90
90
|
}
|
package/dist/drawer/drawer2.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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 { createGhostElement as t } from "../internal/utils/dom.js";
|
|
3
|
+
import { TypeNativePopoverController as n } from "../internal/controllers/type-native-popover.controller.js";
|
|
4
|
+
import { typeSSR as r } from "../internal/controllers/type-ssr.controller.js";
|
|
5
|
+
import { scopedRegistry as i } from "../internal/decorators/scoped-registry.js";
|
|
6
|
+
import { useStyles as a } from "../internal/styles/index.js";
|
|
7
|
+
import { popoverStyles as o } from "../internal/styles/popover2.js";
|
|
8
|
+
import { __decorate as s } from "../_virtual/_@oxc-project_runtime@0.132.0/helpers/decorate.js";
|
|
9
9
|
import { IconButton as c } from "../icon-button/icon-button2.js";
|
|
10
10
|
import l from "./drawer.js";
|
|
11
11
|
import { LitElement as u, html as d } from "lit";
|
|
12
12
|
import { property as f } from "lit/decorators/property.js";
|
|
13
13
|
//#region src/drawer/drawer.ts
|
|
14
14
|
var p = class extends u {
|
|
15
|
-
constructor(...
|
|
16
|
-
super(...
|
|
17
|
-
this.inline && (this.#t &&
|
|
15
|
+
constructor(...r) {
|
|
16
|
+
super(...r), this.position = "left", this.anchor = globalThis.document?.body, this.#e = new e(this), this.i18n = this.#e.i18n, this.typeNativePopoverController = new n(this), this.#n = (e) => {
|
|
17
|
+
this.inline && (this.#t && e.newState === "closed" ? this.#t.remove() : (this.#t = t(this), this.after(this.#t)));
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
#e;
|
|
@@ -25,12 +25,12 @@ var p = class extends u {
|
|
|
25
25
|
return !!this.closable;
|
|
26
26
|
}
|
|
27
27
|
static {
|
|
28
|
-
this.styles =
|
|
28
|
+
this.styles = a([o, l]);
|
|
29
29
|
}
|
|
30
30
|
static {
|
|
31
31
|
this.metadata = {
|
|
32
32
|
tag: "nve-drawer",
|
|
33
|
-
version: "0.2.
|
|
33
|
+
version: "0.2.4"
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
@@ -48,23 +48,23 @@ var p = class extends u {
|
|
|
48
48
|
}
|
|
49
49
|
#n;
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
s([f({
|
|
52
52
|
type: String,
|
|
53
53
|
reflect: !0
|
|
54
|
-
})], p.prototype, "position", void 0),
|
|
54
|
+
})], p.prototype, "position", void 0), s([f({
|
|
55
55
|
type: String,
|
|
56
56
|
reflect: !0
|
|
57
|
-
})], p.prototype, "size", void 0),
|
|
57
|
+
})], p.prototype, "size", void 0), s([f({ type: Boolean })], p.prototype, "closable", void 0), s([f({
|
|
58
58
|
type: Boolean,
|
|
59
59
|
reflect: !0
|
|
60
|
-
})], p.prototype, "modal", void 0),
|
|
60
|
+
})], p.prototype, "modal", void 0), s([f({ type: String })], p.prototype, "anchor", void 0), s([f({ type: String })], p.prototype, "trigger", void 0), s([f({
|
|
61
61
|
type: Boolean,
|
|
62
62
|
reflect: !0
|
|
63
|
-
})], p.prototype, "inline", void 0),
|
|
63
|
+
})], p.prototype, "inline", void 0), s([f({
|
|
64
64
|
type: Boolean,
|
|
65
65
|
reflect: !0,
|
|
66
66
|
attribute: "behavior-trigger"
|
|
67
|
-
})], p.prototype, "behaviorTrigger", void 0),
|
|
67
|
+
})], p.prototype, "behaviorTrigger", void 0), s([f({ type: Object })], p.prototype, "i18n", void 0), p = s([r(), i()], p);
|
|
68
68
|
//#endregion
|
|
69
69
|
export { p as Drawer };
|
|
70
70
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
|
+
import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.132.0/helpers/decorate.js";
|
|
4
4
|
import r from "./dropdown-footer.js";
|
|
5
5
|
import { LitElement as i, html as a } from "lit";
|
|
6
6
|
//#region src/dropdown/dropdown-footer.ts
|
|
7
7
|
var o = class extends i {
|
|
8
8
|
static {
|
|
9
|
-
this.styles =
|
|
9
|
+
this.styles = t([r]);
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.metadata = {
|
|
13
13
|
tag: "nve-dropdown-footer",
|
|
14
|
-
version: "0.2.
|
|
14
|
+
version: "0.2.4",
|
|
15
15
|
parents: ["nve-dropdown"]
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -22,7 +22,7 @@ var o = class extends i {
|
|
|
22
22
|
super.connectedCallback(), this.slot = "footer";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
o =
|
|
25
|
+
o = n([e()], o);
|
|
26
26
|
//#endregion
|
|
27
27
|
export { o as DropdownFooter };
|
|
28
28
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
|
+
import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.132.0/helpers/decorate.js";
|
|
4
4
|
import r from "./dropdown-header.js";
|
|
5
5
|
import { LitElement as i, html as a } from "lit";
|
|
6
6
|
//#region src/dropdown/dropdown-header.ts
|
|
7
7
|
var o = class extends i {
|
|
8
8
|
static {
|
|
9
|
-
this.styles =
|
|
9
|
+
this.styles = t([r]);
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.metadata = {
|
|
13
13
|
tag: "nve-dropdown-header",
|
|
14
|
-
version: "0.2.
|
|
14
|
+
version: "0.2.4",
|
|
15
15
|
parents: ["nve-dropdown"]
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -22,7 +22,7 @@ var o = class extends i {
|
|
|
22
22
|
super.connectedCallback(), this.slot = "header";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
o =
|
|
25
|
+
o = n([e()], o);
|
|
26
26
|
//#endregion
|
|
27
27
|
export { o as DropdownHeader };
|
|
28
28
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
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 { TypeNativePopoverController as n } from "../internal/controllers/type-native-popover.controller.js";
|
|
4
|
+
import { scopedRegistry as r } from "../internal/decorators/scoped-registry.js";
|
|
5
|
+
import { useStyles as i } from "../internal/styles/index.js";
|
|
6
|
+
import { popoverStyles as a } from "../internal/styles/popover2.js";
|
|
7
|
+
import { __decorate as o } from "../_virtual/_@oxc-project_runtime@0.132.0/helpers/decorate.js";
|
|
8
8
|
import { IconButton as s } from "../icon-button/icon-button2.js";
|
|
9
9
|
import c from "./dropdown.js";
|
|
10
10
|
import { LitElement as l, html as u } from "lit";
|
|
@@ -13,15 +13,15 @@ import { query as f } from "lit/decorators/query.js";
|
|
|
13
13
|
//#region src/dropdown/dropdown.ts
|
|
14
14
|
var p = class extends l {
|
|
15
15
|
constructor(...e) {
|
|
16
|
-
super(...e), this.position = "bottom", this.alignment = "start", this.closable = !1, this.arrow = !1, this.modal = !0, this.popoverType = "auto", this.#e = new
|
|
16
|
+
super(...e), this.position = "bottom", this.alignment = "start", this.closable = !1, this.arrow = !1, this.modal = !0, this.popoverType = "auto", this.#e = new t(this), this.typeNativePopoverController = new n(this), this.i18n = this.#e.i18n;
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
this.styles =
|
|
19
|
+
this.styles = i([a, c]);
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.metadata = {
|
|
23
23
|
tag: "nve-dropdown",
|
|
24
|
-
version: "0.2.
|
|
24
|
+
version: "0.2.4"
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
static {
|
|
@@ -35,23 +35,23 @@ var p = class extends l {
|
|
|
35
35
|
return u`<div internal-host><slot name="header"></slot>${this.closable ? u`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${this.hidePopover}" icon-name="cancel" container="flat" size="sm" .ariaLabel="${this.i18n.close}"></nve-icon-button>` : ""}<slot></slot><slot name="footer"></slot>${this.arrow ? u`<div class="arrow"></div>` : ""}</div>`;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
o([d({ type: String })], p.prototype, "anchor", void 0), o([d({ type: String })], p.prototype, "trigger", void 0), o([d({
|
|
39
39
|
type: String,
|
|
40
40
|
reflect: !0
|
|
41
|
-
})], p.prototype, "position", void 0),
|
|
41
|
+
})], p.prototype, "position", void 0), o([d({
|
|
42
42
|
type: String,
|
|
43
43
|
reflect: !0
|
|
44
|
-
})], p.prototype, "alignment", void 0),
|
|
44
|
+
})], p.prototype, "alignment", void 0), o([d({
|
|
45
45
|
type: Boolean,
|
|
46
46
|
reflect: !0,
|
|
47
47
|
attribute: "behavior-trigger"
|
|
48
|
-
})], p.prototype, "behaviorTrigger", void 0),
|
|
48
|
+
})], p.prototype, "behaviorTrigger", void 0), o([d({ type: Boolean })], p.prototype, "closable", void 0), o([d({ type: Boolean })], p.prototype, "arrow", void 0), o([d({
|
|
49
49
|
type: Boolean,
|
|
50
50
|
reflect: !0
|
|
51
|
-
})], p.prototype, "modal", void 0),
|
|
51
|
+
})], p.prototype, "modal", void 0), o([d({
|
|
52
52
|
type: String,
|
|
53
53
|
attribute: "popover-type"
|
|
54
|
-
})], p.prototype, "popoverType", void 0),
|
|
54
|
+
})], p.prototype, "popoverType", void 0), o([f(".arrow")], p.prototype, "popoverArrow", void 0), o([d({ type: Object })], p.prototype, "i18n", void 0), p = o([e({ excessiveInstanceLimit: 50 }), r()], p);
|
|
55
55
|
//#endregion
|
|
56
56
|
export { p as Dropdown };
|
|
57
57
|
|
|
@@ -23,7 +23,7 @@ export declare class DropdownGroup extends LitElement {
|
|
|
23
23
|
children: string[];
|
|
24
24
|
};
|
|
25
25
|
protected dropdowns: Dropdown[];
|
|
26
|
-
render(): import('lit
|
|
26
|
+
render(): import('lit').TemplateResult<1>;
|
|
27
27
|
connectedCallback(): void;
|
|
28
28
|
disconnectedCallback(): void;
|
|
29
29
|
close(): void;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { isSimpleFocusable as t } from "../internal/utils/focus.js";
|
|
3
|
+
import { appendRootNodeStyle as n, clickOutsideElementBounds as r, getFlattenedFocusableItems as i } from "../internal/utils/dom.js";
|
|
4
|
+
import { useStyles as a } from "../internal/styles/index.js";
|
|
5
|
+
import { __decorate as o } from "../_virtual/_@oxc-project_runtime@0.132.0/helpers/decorate.js";
|
|
6
6
|
import s from "./dropdown-group.global.js";
|
|
7
7
|
import { LitElement as c, html as l } from "lit";
|
|
8
8
|
import { queryAssignedElements as u } from "lit/decorators/query-assigned-elements.js";
|
|
9
9
|
//#region src/dropdown-group/dropdown-group.ts
|
|
10
10
|
var d = class extends c {
|
|
11
11
|
static {
|
|
12
|
-
this.styles =
|
|
12
|
+
this.styles = a([]);
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
15
|
this.metadata = {
|
|
16
16
|
tag: "nve-dropdown-group",
|
|
17
|
-
version: "0.2.
|
|
17
|
+
version: "0.2.4",
|
|
18
18
|
children: ["nve-dropdown"]
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -23,7 +23,7 @@ var d = class extends c {
|
|
|
23
23
|
}
|
|
24
24
|
#e = (e) => this.#n(e);
|
|
25
25
|
connectedCallback() {
|
|
26
|
-
super.connectedCallback(),
|
|
26
|
+
super.connectedCallback(), n(this, s), globalThis.document?.addEventListener("pointerup", this.#e), this.addEventListener("keydown", this.#r), this.addEventListener("open", this.#i), this.addEventListener("close", this.#a);
|
|
27
27
|
}
|
|
28
28
|
disconnectedCallback() {
|
|
29
29
|
super.disconnectedCallback(), globalThis.document?.removeEventListener("pointerup", this.#e), this.removeEventListener("keydown", this.#r), this.removeEventListener("open", this.#i), this.removeEventListener("close", this.#a);
|
|
@@ -34,20 +34,20 @@ var d = class extends c {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
#n(e) {
|
|
37
|
-
let t = this.dropdowns.some((e) => e.matches(":popover-open")),
|
|
38
|
-
t &&
|
|
37
|
+
let t = this.dropdowns.some((e) => e.matches(":popover-open")), n = this.dropdowns.every((t) => r(e, t));
|
|
38
|
+
t && n && this.close();
|
|
39
39
|
}
|
|
40
|
-
#r(
|
|
41
|
-
let n =
|
|
42
|
-
if (
|
|
40
|
+
#r(e) {
|
|
41
|
+
let n = e.target;
|
|
42
|
+
if (e.code === "Escape" && this.close(), e.code === "ArrowRight") {
|
|
43
43
|
let e = n.getAttribute("popovertarget");
|
|
44
44
|
this.dropdowns.find((t) => t.id === e)?.showPopover();
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
e.code === "ArrowLeft" && t(e.target) && n.closest("nve-dropdown")?.hidePopover();
|
|
47
47
|
}
|
|
48
48
|
#i(e) {
|
|
49
49
|
let t = e.target;
|
|
50
|
-
t.localName === "nve-dropdown" && this.dropdowns.find((e) => e === t) &&
|
|
50
|
+
t.localName === "nve-dropdown" && this.dropdowns.find((e) => e === t) && i(t)[0]?.focus();
|
|
51
51
|
}
|
|
52
52
|
#a(e) {
|
|
53
53
|
let t = e.target;
|
|
@@ -57,7 +57,7 @@ var d = class extends c {
|
|
|
57
57
|
this.querySelectorAll("nve-dropdown").forEach((e) => e.hidePopover());
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
o([u()], d.prototype, "dropdowns", void 0), d = o([e()], d);
|
|
61
61
|
//#endregion
|
|
62
62
|
export { d as DropdownGroup };
|
|
63
63
|
|