@nvidia-elements/core 0.2.0 → 0.2.1

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.
Files changed (110) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/accordion/accordion2.js +4 -4
  3. package/dist/alert/alert-group2.js +1 -1
  4. package/dist/alert/alert2.js +1 -1
  5. package/dist/avatar/avatar-group2.js +1 -1
  6. package/dist/avatar/avatar2.js +1 -1
  7. package/dist/badge/badge2.js +1 -1
  8. package/dist/breadcrumb/breadcrumb2.js +1 -1
  9. package/dist/bundles/index.js +1 -1
  10. package/dist/button/button2.js +1 -1
  11. package/dist/button-group/button-group2.js +1 -1
  12. package/dist/card/card2.js +4 -4
  13. package/dist/chat-message/chat-message2.js +1 -1
  14. package/dist/checkbox/checkbox-group2.js +1 -1
  15. package/dist/checkbox/checkbox2.js +1 -1
  16. package/dist/color/color2.js +1 -1
  17. package/dist/combobox/combobox2.js +1 -1
  18. package/dist/copy-button/copy-button2.js +1 -1
  19. package/dist/custom-elements.json +5 -0
  20. package/dist/data.snippets.json +9 -9
  21. package/dist/date/date2.js +1 -1
  22. package/dist/datetime/datetime2.js +1 -1
  23. package/dist/dialog/dialog-footer2.js +1 -1
  24. package/dist/dialog/dialog-header2.js +1 -1
  25. package/dist/dialog/dialog2.js +1 -1
  26. package/dist/divider/divider2.js +1 -1
  27. package/dist/dot/dot2.js +1 -1
  28. package/dist/drawer/drawer-content2.js +1 -1
  29. package/dist/drawer/drawer-footer2.js +1 -1
  30. package/dist/drawer/drawer-header2.js +1 -1
  31. package/dist/drawer/drawer2.js +1 -1
  32. package/dist/dropdown/dropdown-footer2.js +1 -1
  33. package/dist/dropdown/dropdown-header2.js +1 -1
  34. package/dist/dropdown/dropdown2.js +1 -1
  35. package/dist/dropdown-group/dropdown-group.js +1 -1
  36. package/dist/dropzone/dropzone2.js +1 -1
  37. package/dist/file/file2.js +1 -1
  38. package/dist/format-datetime/format-datetime2.js +1 -1
  39. package/dist/format-number/format-number2.js +1 -1
  40. package/dist/format-relative-time/format-relative-time2.js +1 -1
  41. package/dist/forms/control/control2.js +1 -1
  42. package/dist/forms/control-group/control-group2.js +1 -1
  43. package/dist/forms/control-message/control-message2.js +1 -1
  44. package/dist/grid/cell/cell2.js +1 -1
  45. package/dist/grid/column/column2.js +1 -1
  46. package/dist/grid/footer/footer2.js +1 -1
  47. package/dist/grid/grid2.js +1 -1
  48. package/dist/grid/header/header2.js +1 -1
  49. package/dist/grid/placeholder/placeholder2.js +1 -1
  50. package/dist/grid/row/row2.js +1 -1
  51. package/dist/icon/icon2.js +2 -2
  52. package/dist/icon-button/icon-button2.js +1 -1
  53. package/dist/index.js +1 -1
  54. package/dist/input/input-group2.js +1 -1
  55. package/dist/input/input2.js +1 -1
  56. package/dist/internal/controllers/type-native-popover.controller.js +18 -15
  57. package/dist/internal/controllers/type-native-popover.controller.js.map +1 -1
  58. package/dist/internal/controllers/type-touch.controller.js +1 -0
  59. package/dist/internal/controllers/type-touch.controller.js.map +1 -1
  60. package/dist/internal/services/global.service.js +1 -1
  61. package/dist/logo/logo2.js +1 -1
  62. package/dist/menu/menu-item2.js +1 -1
  63. package/dist/menu/menu2.js +1 -1
  64. package/dist/month/month2.js +1 -1
  65. package/dist/notification/notification-group2.js +1 -1
  66. package/dist/notification/notification2.js +1 -1
  67. package/dist/page/page-panel/page-panel-content2.js +1 -1
  68. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  69. package/dist/page/page-panel/page-panel-header2.js +1 -1
  70. package/dist/page/page-panel/page-panel2.js +1 -1
  71. package/dist/page/page2.js +1 -1
  72. package/dist/page-header/page-header2.js +1 -1
  73. package/dist/page-loader/page-loader2.js +1 -1
  74. package/dist/pagination/pagination2.js +1 -1
  75. package/dist/panel/panel2.js +4 -4
  76. package/dist/password/password2.js +1 -1
  77. package/dist/preferences-input/preferences-input2.js +2 -1
  78. package/dist/preferences-input/preferences-input2.js.map +1 -1
  79. package/dist/progress-bar/progress-bar2.js +1 -1
  80. package/dist/progress-ring/progress-ring2.js +1 -1
  81. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  82. package/dist/pulse/pulse2.js +1 -1
  83. package/dist/radio/radio-group2.js +1 -1
  84. package/dist/radio/radio2.js +1 -1
  85. package/dist/range/range2.js +1 -1
  86. package/dist/resize-handle/resize-handle2.js +1 -1
  87. package/dist/search/search2.js +1 -1
  88. package/dist/select/select2.js +1 -1
  89. package/dist/skeleton/skeleton2.js +1 -1
  90. package/dist/sort-button/sort-button2.js +1 -1
  91. package/dist/sparkline/sparkline2.js +1 -1
  92. package/dist/star-rating/star-rating2.js +1 -1
  93. package/dist/steps/steps2.js +2 -2
  94. package/dist/switch/switch-group2.js +1 -1
  95. package/dist/switch/switch2.js +1 -1
  96. package/dist/tabs/tabs-group2.js +1 -1
  97. package/dist/tabs/tabs2.js +2 -2
  98. package/dist/tag/tag2.js +1 -1
  99. package/dist/textarea/textarea2.js +1 -1
  100. package/dist/time/time2.js +1 -1
  101. package/dist/toast/toast2.js +1 -1
  102. package/dist/toggletip/toggletip-footer2.js +1 -1
  103. package/dist/toggletip/toggletip-header2.js +1 -1
  104. package/dist/toggletip/toggletip2.js +1 -1
  105. package/dist/toolbar/toolbar2.js +1 -1
  106. package/dist/tooltip/tooltip2.js +1 -1
  107. package/dist/tree/tree-node2.js +1 -1
  108. package/dist/tree/tree2.js +1 -1
  109. package/dist/week/week2.js +1 -1
  110. package/package.json +2 -2
@@ -12,7 +12,7 @@ var o = class extends t {
12
12
  static {
13
13
  this.metadata = {
14
14
  tag: "nve-button",
15
- version: "0.2.0"
15
+ version: "0.2.1"
16
16
  };
17
17
  }
18
18
  render() {
@@ -26,7 +26,7 @@ var f = class extends c {
26
26
  static {
27
27
  this.metadata = {
28
28
  tag: "nve-button-group",
29
- version: "0.2.0",
29
+ version: "0.2.1",
30
30
  children: [
31
31
  "nve-button",
32
32
  "nve-icon-button",
@@ -16,7 +16,7 @@ var d = class extends c {
16
16
  static {
17
17
  this.metadata = {
18
18
  tag: "nve-card",
19
- version: "0.2.0"
19
+ version: "0.2.1"
20
20
  };
21
21
  }
22
22
  render() {
@@ -37,7 +37,7 @@ var f = class extends c {
37
37
  static {
38
38
  this.metadata = {
39
39
  tag: "nve-card-header",
40
- version: "0.2.0",
40
+ version: "0.2.1",
41
41
  parents: ["nve-card"]
42
42
  };
43
43
  }
@@ -53,7 +53,7 @@ var p = class extends c {
53
53
  static {
54
54
  this.metadata = {
55
55
  tag: "nve-card-content",
56
- version: "0.2.0",
56
+ version: "0.2.1",
57
57
  parents: ["nve-card"]
58
58
  };
59
59
  }
@@ -72,7 +72,7 @@ var m = class extends c {
72
72
  static {
73
73
  this.metadata = {
74
74
  tag: "nve-card-footer",
75
- version: "0.2.0",
75
+ version: "0.2.1",
76
76
  parents: ["nve-card"]
77
77
  };
78
78
  }
@@ -13,7 +13,7 @@ var l = class extends o {
13
13
  static {
14
14
  this.metadata = {
15
15
  tag: "nve-chat-message",
16
- version: "0.2.0"
16
+ version: "0.2.1"
17
17
  };
18
18
  }
19
19
  render() {
@@ -12,7 +12,7 @@ var o = class extends i {
12
12
  static {
13
13
  this.metadata = {
14
14
  tag: "nve-checkbox-group",
15
- version: "0.2.0",
15
+ version: "0.2.1",
16
16
  children: [
17
17
  "label",
18
18
  "nve-control-message",
@@ -15,7 +15,7 @@ var o = class extends i {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-checkbox",
18
- version: "0.2.0",
18
+ version: "0.2.1",
19
19
  children: [
20
20
  "label",
21
21
  "input",
@@ -21,7 +21,7 @@ var f = class extends a {
21
21
  static {
22
22
  this.metadata = {
23
23
  tag: "nve-color",
24
- version: "0.2.0"
24
+ version: "0.2.1"
25
25
  };
26
26
  }
27
27
  static {
@@ -31,7 +31,7 @@ var S = class extends l {
31
31
  static {
32
32
  this.metadata = {
33
33
  tag: "nve-combobox",
34
- version: "0.2.0"
34
+ version: "0.2.1"
35
35
  };
36
36
  }
37
37
  static {
@@ -32,7 +32,7 @@ var p = class extends a {
32
32
  static {
33
33
  this.metadata = {
34
34
  tag: "nve-copy-button",
35
- version: "0.2.0"
35
+ version: "0.2.1"
36
36
  };
37
37
  }
38
38
  static {
@@ -31325,6 +31325,11 @@
31325
31325
  "kind": "method",
31326
31326
  "name": "hostDisconnected"
31327
31327
  },
31328
+ {
31329
+ "kind": "method",
31330
+ "name": "#clearInterestTimeout",
31331
+ "privacy": "private"
31332
+ },
31328
31333
  {
31329
31334
  "kind": "method",
31330
31335
  "name": "#parseInterestDelay",
@@ -179,15 +179,6 @@
179
179
  "description": "Dropdown with checkbox select pattern",
180
180
  "body": "<nve-button id=\"btn\" nve-control>test suites <nve-icon name=\"caret\" direction=\"down\" size=\"sm\"></nve-icon></nve-button>\n\n<nve-dropdown anchor=\"btn\">\n <nve-checkbox-group style=\"width: 250px\">\n <label>${1:Test Suites}</label>\n\n <nve-checkbox>\n <label>${2:Local}</label>\n <input type=\"checkbox\">\n </nve-checkbox>\n\n <nve-checkbox>\n <label>${3:Nightly}</label>\n <input type=\"checkbox\" checked>\n </nve-checkbox>\n\n <nve-checkbox>\n <label>${4:Remote}</label>\n <input type=\"checkbox\">\n </nve-checkbox>\n </nve-checkbox-group>\n</nve-dropdown>\n$0\n"
181
181
  },
182
- "Dialog": {
183
- "srcFile": "dialog.snippets.html",
184
- "prefix": [
185
- "dialog"
186
- ],
187
- "type": "pattern",
188
- "description": "Dialog is a component that appears above main content. A modal dialog is used to display critical information that requires users attention.",
189
- "body": "<nve-dialog size=\"${6:md}\" closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">${1:Title}</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">${2:Content}</p>\n <nve-dialog-footer>\n <nve-button>${3:Cancel}</nve-button>\n <nve-button interaction=\"${4:emphasis}\">${5:OK}</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n$0\n"
190
- },
191
182
  "Card": {
192
183
  "srcFile": "card.snippets.html",
193
184
  "prefix": [
@@ -304,5 +295,14 @@
304
295
  "type": "pattern",
305
296
  "description": "Accordion group with two accordion children.",
306
297
  "body": "<nve-accordion-group behavior-expand-single container=\"${1:flat}\">\n <nve-accordion>\n <nve-accordion-header>\n <div slot=\"title\">${2:Title}</div>\n </nve-accordion-header>\n\n <nve-accordion-content> ${3:Content} </nve-accordion-content>\n </nve-accordion>\n\n <nve-accordion>\n <nve-accordion-header>\n <div slot=\"title\">${4:Title}</div>\n </nve-accordion-header>\n\n <nve-accordion-content> ${5:Content} </nve-accordion-content>\n </nve-accordion>\n\n <nve-accordion>\n <nve-accordion-header>\n <div slot=\"title\">${6:Title}</div>\n </nve-accordion-header>\n\n <nve-accordion-content> ${7:Content} </nve-accordion-content>\n </nve-accordion>\n</nve-accordion-group>\n$0\n"
298
+ },
299
+ "Dialog": {
300
+ "srcFile": "dialog.snippets.html",
301
+ "prefix": [
302
+ "dialog"
303
+ ],
304
+ "type": "pattern",
305
+ "description": "Dialog is a component that appears above main content. A modal dialog is used to display critical information that requires users attention.",
306
+ "body": "<nve-dialog size=\"${6:md}\" closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">${1:Title}</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">${2:Content}</p>\n <nve-dialog-footer>\n <nve-button>${3:Cancel}</nve-button>\n <nve-button interaction=\"${4:emphasis}\">${5:OK}</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n$0\n"
307
307
  }
308
308
  }
@@ -19,7 +19,7 @@ var l = class extends r {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-date",
22
- version: "0.2.0"
22
+ version: "0.2.1"
23
23
  };
24
24
  }
25
25
  static {
@@ -19,7 +19,7 @@ var l = class extends r {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-datetime",
22
- version: "0.2.0"
22
+ version: "0.2.1"
23
23
  };
24
24
  }
25
25
  static {
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-dialog-footer",
14
- version: "0.2.0",
14
+ version: "0.2.1",
15
15
  parents: ["nve-dialog"]
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-dialog-header",
14
- version: "0.2.0",
14
+ version: "0.2.1",
15
15
  parents: ["nve-dialog"]
16
16
  };
17
17
  }
@@ -30,7 +30,7 @@ var h = class extends f {
30
30
  static {
31
31
  this.metadata = {
32
32
  tag: "nve-dialog",
33
- version: "0.2.0"
33
+ version: "0.2.1"
34
34
  };
35
35
  }
36
36
  static {
@@ -15,7 +15,7 @@ var s = class extends i {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-divider",
18
- version: "0.2.0"
18
+ version: "0.2.1"
19
19
  };
20
20
  }
21
21
  render() {
package/dist/dot/dot2.js CHANGED
@@ -16,7 +16,7 @@ var l = class extends o {
16
16
  static {
17
17
  this.metadata = {
18
18
  tag: "nve-dot",
19
- version: "0.2.0"
19
+ version: "0.2.1"
20
20
  };
21
21
  }
22
22
  render() {
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-drawer-content",
14
- version: "0.2.0",
14
+ version: "0.2.1",
15
15
  parents: ["nve-drawer"]
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-drawer-footer",
14
- version: "0.2.0",
14
+ version: "0.2.1",
15
15
  parents: ["nve-drawer"]
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-drawer-header",
14
- version: "0.2.0",
14
+ version: "0.2.1",
15
15
  parents: ["nve-drawer"]
16
16
  };
17
17
  }
@@ -30,7 +30,7 @@ var p = class extends u {
30
30
  static {
31
31
  this.metadata = {
32
32
  tag: "nve-drawer",
33
- version: "0.2.0"
33
+ version: "0.2.1"
34
34
  };
35
35
  }
36
36
  static {
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-dropdown-footer",
14
- version: "0.2.0",
14
+ version: "0.2.1",
15
15
  parents: ["nve-dropdown"]
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-dropdown-header",
14
- version: "0.2.0",
14
+ version: "0.2.1",
15
15
  parents: ["nve-dropdown"]
16
16
  };
17
17
  }
@@ -21,7 +21,7 @@ var p = class extends l {
21
21
  static {
22
22
  this.metadata = {
23
23
  tag: "nve-dropdown",
24
- version: "0.2.0"
24
+ version: "0.2.1"
25
25
  };
26
26
  }
27
27
  static {
@@ -14,7 +14,7 @@ var d = class extends c {
14
14
  static {
15
15
  this.metadata = {
16
16
  tag: "nve-dropdown-group",
17
- version: "0.2.0",
17
+ version: "0.2.1",
18
18
  children: ["nve-dropdown"]
19
19
  };
20
20
  }
@@ -20,7 +20,7 @@ var g = class extends h(d) {
20
20
  static {
21
21
  this.metadata = {
22
22
  tag: "nve-dropzone",
23
- version: "0.2.0",
23
+ version: "0.2.1",
24
24
  validators: [l, c],
25
25
  valueSchema: {
26
26
  type: "array",
@@ -11,7 +11,7 @@ var a = class extends n {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-file",
14
- version: "0.2.0"
14
+ version: "0.2.1"
15
15
  };
16
16
  }
17
17
  connectedCallback() {
@@ -13,7 +13,7 @@ var c = class extends a {
13
13
  static {
14
14
  this.metadata = {
15
15
  tag: "nve-format-datetime",
16
- version: "0.2.0"
16
+ version: "0.2.1"
17
17
  };
18
18
  }
19
19
  get #e() {
@@ -29,7 +29,7 @@ var c = [
29
29
  static {
30
30
  this.metadata = {
31
31
  tag: "nve-format-number",
32
- version: "0.2.0"
32
+ version: "0.2.1"
33
33
  };
34
34
  }
35
35
  get #e() {
@@ -53,7 +53,7 @@ var c = {
53
53
  static {
54
54
  this.metadata = {
55
55
  tag: "nve-format-relative-time",
56
- version: "0.2.0"
56
+ version: "0.2.1"
57
57
  };
58
58
  }
59
59
  #e;
@@ -50,7 +50,7 @@ var C = class extends v {
50
50
  static {
51
51
  this.metadata = {
52
52
  tag: "nve-control",
53
- version: "0.2.0"
53
+ version: "0.2.1"
54
54
  };
55
55
  }
56
56
  render() {
@@ -24,7 +24,7 @@ var m = class extends d {
24
24
  static {
25
25
  this.metadata = {
26
26
  tag: "nve-control-group",
27
- version: "0.2.0"
27
+ version: "0.2.1"
28
28
  };
29
29
  }
30
30
  render() {
@@ -23,7 +23,7 @@ var l = {
23
23
  static {
24
24
  this.metadata = {
25
25
  tag: "nve-control-message",
26
- version: "0.2.0"
26
+ version: "0.2.1"
27
27
  };
28
28
  }
29
29
  static {
@@ -10,7 +10,7 @@ var a = class extends r {
10
10
  static {
11
11
  this.metadata = {
12
12
  tag: "nve-grid-cell",
13
- version: "0.2.0"
13
+ version: "0.2.1"
14
14
  };
15
15
  }
16
16
  render() {
@@ -13,7 +13,7 @@ var c = class n extends a {
13
13
  static {
14
14
  this.metadata = {
15
15
  tag: "nve-grid-column",
16
- version: "0.2.0"
16
+ version: "0.2.1"
17
17
  };
18
18
  }
19
19
  get #e() {
@@ -15,7 +15,7 @@ var s = class extends a {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-grid-footer",
18
- version: "0.2.0"
18
+ version: "0.2.1"
19
19
  };
20
20
  }
21
21
  static {
@@ -22,7 +22,7 @@ var v = class extends h {
22
22
  static {
23
23
  this.metadata = {
24
24
  tag: "nve-grid",
25
- version: "0.2.0",
25
+ version: "0.2.1",
26
26
  children: [
27
27
  u.metadata.tag,
28
28
  d.metadata.tag,
@@ -19,7 +19,7 @@ var m = class extends d {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-grid-header",
22
- version: "0.2.0",
22
+ version: "0.2.1",
23
23
  children: [c.metadata.tag]
24
24
  };
25
25
  }
@@ -10,7 +10,7 @@ var a = class extends r {
10
10
  static {
11
11
  this.metadata = {
12
12
  tag: "nve-grid-placeholder",
13
- version: "0.2.0"
13
+ version: "0.2.1"
14
14
  };
15
15
  }
16
16
  render() {
@@ -15,7 +15,7 @@ var u = class extends s {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-grid-row",
18
- version: "0.2.0",
18
+ version: "0.2.1",
19
19
  children: [a.metadata.tag]
20
20
  };
21
21
  }
@@ -16,7 +16,7 @@ var f = class e extends o {
16
16
  static {
17
17
  this.metadata = {
18
18
  tag: "nve-icon",
19
- version: "0.2.0"
19
+ version: "0.2.1"
20
20
  };
21
21
  }
22
22
  static {
@@ -86,7 +86,7 @@ n([l({
86
86
  })], f.prototype, "name", void 0), n([d()], f.prototype, "svg", void 0);
87
87
  function p(t) {
88
88
  if (typeof globalThis.customElements?.get == "function") {
89
- let n = e(t.metadata.version), r = e("0.2.0");
89
+ let n = e(t.metadata.version), r = e("0.2.1");
90
90
  n.minor <= r.minor && n.major <= r.major && (t._icons = {
91
91
  ...t._icons,
92
92
  ...i
@@ -15,7 +15,7 @@ var l = class extends a {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-icon-button",
18
- version: "0.2.0"
18
+ version: "0.2.1"
19
19
  };
20
20
  }
21
21
  static {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { getThemeTokens as e } from "./internal/utils/dom.js";
2
2
  import { I18nService as t } from "./internal/services/i18n.service.js";
3
3
  import { statusIcons as n } from "./internal/types/index.js";
4
4
  //#region src/index.ts
5
- var r = "0.2.0", i = "@nvidia-elements";
5
+ var r = "0.2.1", i = "@nvidia-elements";
6
6
  //#endregion
7
7
  export { t as I18nService, i as SCOPE, r as VERSION, e as getThemeTokens, n as statusIcons };
8
8
 
@@ -11,7 +11,7 @@ var a = class extends n {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-input-group",
14
- version: "0.2.0"
14
+ version: "0.2.1"
15
15
  };
16
16
  }
17
17
  async connectedCallback() {
@@ -14,7 +14,7 @@ var a = r, o = class extends n {
14
14
  static {
15
15
  this.metadata = {
16
16
  tag: "nve-input",
17
- version: "0.2.0"
17
+ version: "0.2.1"
18
18
  };
19
19
  }
20
20
  };
@@ -23,19 +23,19 @@ var c = class {
23
23
  };
24
24
  }
25
25
  async hostConnected() {
26
- i(this.host), this.host.popover = this.host.popoverType ?? null, await this.host.updateComplete, this.host.setAttribute("nve-popover", ""), this.#l(), this.#c(), this.#o(), this.host.inert = this.host.matches(":not(:popover-open)") && !!this.#e.length, this.host.addEventListener("beforetoggle", (e) => {
26
+ i(this.host), this.host.popover = this.host.popoverType ?? null, await this.host.updateComplete, this.host.setAttribute("nve-popover", ""), this.#u(), this.#l(), this.#s(), this.host.inert = this.host.matches(":not(:popover-open)") && !!this.#e.length, this.host.addEventListener("beforetoggle", (e) => {
27
27
  e.newState === "open" && this.host._internals.states.add("transition-start");
28
28
  }), this.host.addEventListener("toggle", (e) => {
29
- this.host.behaviorTrigger && (this.host.hidden = e.newState === "closed"), e.newState === "open" && this.host.closeTimeout && setTimeout(() => this.host.hidePopover(), this.host.closeTimeout), this.host.inert = this.host.matches(":not(:popover-open)"), this.host.modal && this.#u(e.newState === "open", e.target), this.host.dispatchEvent(new CustomEvent(e.newState === "open" && e.oldState !== "open" ? "open" : "close", {
29
+ this.host.behaviorTrigger && (this.host.hidden = e.newState === "closed"), e.newState === "open" && this.host.closeTimeout && setTimeout(() => this.host.hidePopover(), this.host.closeTimeout), e.newState === "closed" && this.#i(), this.host.inert = this.host.matches(":not(:popover-open)"), this.host.modal && this.#d(e.newState === "open", e.target), this.host.dispatchEvent(new CustomEvent(e.newState === "open" && e.oldState !== "open" ? "open" : "close", {
30
30
  bubbles: !0,
31
31
  composed: !0,
32
32
  detail: { trigger: e.source }
33
33
  }));
34
34
  }), this.host.addEventListener("command", ((e) => {
35
- e.command === "toggle-popover" && this.host.togglePopover({ source: e.source }), e.command === "hide-popover" && this.host.hidePopover(), e.command === "show-popover" && this.host.showPopover({ source: e.source });
35
+ e.command === "toggle-popover" && this.host.togglePopover({ source: e.source }), e.command === "hide-popover" && (this.host.hidePopover(), this.#i()), e.command === "show-popover" && this.host.showPopover({ source: e.source });
36
36
  })), this.host.addEventListener("interest", ((e) => {
37
37
  if (e.source?.localName.includes("-")) {
38
- let t = this.host.openDelay ?? this.#i();
38
+ let t = this.host.openDelay ?? this.#a();
39
39
  t ? this.#t = setTimeout(() => {
40
40
  this.host.isConnected && this.host.showPopover({ source: e.source });
41
41
  }, t) : this.host.showPopover({ source: e.source });
@@ -48,38 +48,41 @@ var c = class {
48
48
  #n = [];
49
49
  #r = null;
50
50
  async hostUpdated() {
51
- this.host.popover = this.host.popoverType ?? null, this.#l();
51
+ this.host.popover = this.host.popoverType ?? null, this.#u();
52
52
  }
53
53
  hostDisconnected() {
54
- this.#n.forEach((e) => e.disconnect()), this.#t &&= (clearTimeout(this.#t), null);
54
+ this.#n.forEach((e) => e.disconnect()), this.#i();
55
55
  }
56
56
  #i() {
57
+ this.#t &&= (clearTimeout(this.#t), null);
58
+ }
59
+ #a() {
57
60
  let e = getComputedStyle(this.host).interestDelayStart;
58
61
  if (!e) return 0;
59
62
  let t = parseFloat(e);
60
63
  return e.endsWith("ms") ? t : t * 1e3;
61
64
  }
62
- #a = !1;
63
- #o() {
65
+ #o = !1;
66
+ #s() {
64
67
  this.host.addEventListener("pointerdown", (e) => {
65
- this.host.modal && this.host.matches(":popover-open") && (this.#a = t(e, this.host));
68
+ this.host.modal && this.host.matches(":popover-open") && (this.#o = t(e, this.host));
66
69
  }), this.host.addEventListener("pointerup", (e) => {
67
- this.#a && this.host.popoverDismissible && this.host.modal && this.host.matches(":popover-open") && !s(this.host) && t(e, this.host) && this.host.hidePopover();
70
+ this.#o && this.host.popoverDismissible && this.host.modal && this.host.matches(":popover-open") && !s(this.host) && t(e, this.host) && this.host.hidePopover();
68
71
  });
69
72
  }
70
- get #s() {
73
+ get #c() {
71
74
  return this.host.trigger ? o(this.host, this.host.trigger) : null;
72
75
  }
73
- async #c() {
76
+ async #l() {
74
77
  await new Promise((e) => requestAnimationFrame(e)), this.#n.push(r(this.host, ["hidden"], () => {
75
78
  this.host.isConnected && !this.host.hidden && !this.host.matches(":popover-open") && this.host.showPopover(), this.host.isConnected && this.host.hidden && this.host.matches(":popover-open") && this.host.hidePopover();
76
79
  })), this.host.isConnected && !this.#e.length && !this.host.hidden && !this.host.matches(":popover-open") && (this.host.popover = "manual", this.host.showPopover());
77
80
  }
78
- #l() {
79
- let e = this.#s;
81
+ #u() {
82
+ let e = this.#c;
80
83
  this.#r && this.#r !== e && (this.#r.popoverTargetElement = null, this.#r.removeAttribute("popovertarget")), e && (this.host.popoverType === "hint" ? (e.addEventListener("mouseenter", () => this.host.showPopover({ source: e })), e.addEventListener("mouseleave", () => this.host.hidePopover()), e.addEventListener("focusout", () => this.host.hidePopover())) : (this.host.id = this.host.id ? this.host.id : n(), e.popoverTargetElement = this.host, e.setAttribute("popovertarget", this.host.id)), this.#r = e);
81
84
  }
82
- #u(t, n) {
85
+ #d(t, n) {
83
86
  t ? this.host.getRootNode().activeElement !== this.host && !this.host.shadowRoot.activeElement && e(this.host) : e(n);
84
87
  }
85
88
  };