@ni/nimble-components 21.6.4 → 21.6.6

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.
@@ -16301,7 +16301,7 @@
16301
16301
 
16302
16302
  /**
16303
16303
  * Do not edit directly
16304
- * Generated on Thu, 22 Feb 2024 23:53:10 GMT
16304
+ * Generated on Fri, 23 Feb 2024 22:02:36 GMT
16305
16305
  */
16306
16306
 
16307
16307
  const Information100DarkUi = "#a46eff";
@@ -20805,7 +20805,7 @@
20805
20805
  color: ${failColor};
20806
20806
  width: 100%;
20807
20807
  position: absolute;
20808
- bottom: calc(-1 * ${errorTextFontLineHeight});
20808
+ bottom: calc(-1 * (${errorTextFontLineHeight} + 2px));
20809
20809
  left: 0px;
20810
20810
  overflow: hidden;
20811
20811
  text-overflow: ellipsis;
@@ -21404,7 +21404,7 @@
21404
21404
  role="dialog"
21405
21405
  part="control"
21406
21406
  @cancel="${(x, c) => x.cancelHandler(c.event)}"
21407
- @close="${x => x.closeHandler()}"
21407
+ @close="${(x, c) => x.closeHandler(c.event)}"
21408
21408
  aria-labelledby="header"
21409
21409
  >
21410
21410
  <header id="header">
@@ -21504,7 +21504,10 @@
21504
21504
  /**
21505
21505
  * @internal
21506
21506
  */
21507
- closeHandler() {
21507
+ closeHandler(event) {
21508
+ if (event.target !== this.dialogElement) {
21509
+ return;
21510
+ }
21508
21511
  if (this.resolveShow) {
21509
21512
  // If
21510
21513
  // - the browser implements dialogs with the CloseWatcher API, and
@@ -21706,7 +21709,7 @@
21706
21709
  ${ref('dialog')}
21707
21710
  aria-label="${x => x.ariaLabel}"
21708
21711
  @cancel="${(x, c) => x.cancelHandler(c.event)}"
21709
- @close="${x => x.closeHandler()}"
21712
+ @close="${(x, c) => x.closeHandler(c.event)}"
21710
21713
  >
21711
21714
  <div class="dialog-contents">
21712
21715
  <slot></slot>
@@ -21780,7 +21783,10 @@
21780
21783
  /**
21781
21784
  * @internal
21782
21785
  */
21783
- closeHandler() {
21786
+ closeHandler(event) {
21787
+ if (event.target !== this.dialog) {
21788
+ return;
21789
+ }
21784
21790
  if (this.resolveShow) {
21785
21791
  // If
21786
21792
  // - the browser implements dialogs with the CloseWatcher API, and