@ni/nimble-components 30.0.7 → 30.1.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.
Files changed (133) hide show
  1. package/dist/all-components-bundle.js +133 -97
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +1291 -1272
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/anchor-menu-item/index.js.map +1 -1
  6. package/dist/esm/anchor-tabs/index.js.map +1 -1
  7. package/dist/esm/anchor-tree-item/index.js.map +1 -1
  8. package/dist/esm/combobox/index.js +4 -4
  9. package/dist/esm/combobox/index.js.map +1 -1
  10. package/dist/esm/combobox/styles.js +0 -4
  11. package/dist/esm/combobox/styles.js.map +1 -1
  12. package/dist/esm/combobox/template.js +13 -2
  13. package/dist/esm/combobox/template.js.map +1 -1
  14. package/dist/esm/combobox/testing/combobox.pageobject.d.ts +8 -0
  15. package/dist/esm/combobox/testing/combobox.pageobject.js +15 -0
  16. package/dist/esm/combobox/testing/combobox.pageobject.js.map +1 -1
  17. package/dist/esm/dialog/index.js.map +1 -1
  18. package/dist/esm/drawer/index.js.map +1 -1
  19. package/dist/esm/label-provider/base/index.js.map +1 -1
  20. package/dist/esm/list-option/index.js.map +1 -1
  21. package/dist/esm/list-option-group/index.js.map +1 -1
  22. package/dist/esm/mapping/icon/index.js.map +1 -1
  23. package/dist/esm/menu-button/index.js.map +1 -1
  24. package/dist/esm/menu-button/testing/menu-button.pageobject.js.map +1 -1
  25. package/dist/esm/patterns/dropdown/styles.js +68 -51
  26. package/dist/esm/patterns/dropdown/styles.js.map +1 -1
  27. package/dist/esm/rich-text/base/index.js.map +1 -1
  28. package/dist/esm/rich-text/editor/index.js.map +1 -1
  29. package/dist/esm/rich-text/editor/models/create-tiptap-editor.js.map +1 -1
  30. package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.js.map +1 -1
  31. package/dist/esm/rich-text/mention-listbox/index.js +3 -0
  32. package/dist/esm/rich-text/mention-listbox/index.js.map +1 -1
  33. package/dist/esm/rich-text/mention-listbox/template.js +18 -3
  34. package/dist/esm/rich-text/mention-listbox/template.js.map +1 -1
  35. package/dist/esm/rich-text/models/markdown-parser.js +12 -12
  36. package/dist/esm/rich-text/models/markdown-parser.js.map +1 -1
  37. package/dist/esm/rich-text/models/rich-text-tracker.js.map +1 -1
  38. package/dist/esm/rich-text/models/testing/markdown-parser-utils.js.map +1 -1
  39. package/dist/esm/rich-text/viewer/index.js.map +1 -1
  40. package/dist/esm/rich-text/viewer/testing/rich-text-viewer.pageobject.js.map +1 -1
  41. package/dist/esm/rich-text-mention/base/index.js.map +1 -1
  42. package/dist/esm/rich-text-mention/base/models/mention-validator.js.map +1 -1
  43. package/dist/esm/rich-text-mention/users/index.js.map +1 -1
  44. package/dist/esm/select/index.js.map +1 -1
  45. package/dist/esm/select/models/select-form-associated.js +1 -0
  46. package/dist/esm/select/models/select-form-associated.js.map +1 -1
  47. package/dist/esm/select/styles.js +0 -16
  48. package/dist/esm/select/styles.js.map +1 -1
  49. package/dist/esm/select/template.js +7 -6
  50. package/dist/esm/select/template.js.map +1 -1
  51. package/dist/esm/select/testing/select.pageobject.js.map +1 -1
  52. package/dist/esm/spinner/template.js +1 -0
  53. package/dist/esm/spinner/template.js.map +1 -1
  54. package/dist/esm/table/components/group-row/index.js.map +1 -1
  55. package/dist/esm/table/components/group-row/template.js +1 -0
  56. package/dist/esm/table/components/group-row/template.js.map +1 -1
  57. package/dist/esm/table/components/header/index.js.map +1 -1
  58. package/dist/esm/table/components/row/index.js.map +1 -1
  59. package/dist/esm/table/index.js.map +1 -1
  60. package/dist/esm/table/models/array-to-tree.js.map +1 -1
  61. package/dist/esm/table/models/data-hierarchy-manager.js.map +1 -1
  62. package/dist/esm/table/models/expansion-manager.js.map +1 -1
  63. package/dist/esm/table/models/interactive-selection-manager.js.map +1 -1
  64. package/dist/esm/table/models/keyboard-navigation-manager.js.map +1 -1
  65. package/dist/esm/table/models/selection-managers/multi-selection-manager.js.map +1 -1
  66. package/dist/esm/table/models/selection-managers/selection-manager-base.js.map +1 -1
  67. package/dist/esm/table/models/sort-operations.js.map +1 -1
  68. package/dist/esm/table/models/table-layout-manager.js.map +1 -1
  69. package/dist/esm/table/models/table-update-tracker.js.map +1 -1
  70. package/dist/esm/table/models/table-validator.js.map +1 -1
  71. package/dist/esm/table/models/virtualizer.js.map +1 -1
  72. package/dist/esm/table/testing/table.pageobject.js.map +1 -1
  73. package/dist/esm/table-column/anchor/cell-view/index.js.map +1 -1
  74. package/dist/esm/table-column/anchor/cell-view/template.js +1 -0
  75. package/dist/esm/table-column/anchor/cell-view/template.js.map +1 -1
  76. package/dist/esm/table-column/base/cell-view/index.js.map +1 -1
  77. package/dist/esm/table-column/base/cell-view/template.js.map +1 -1
  78. package/dist/esm/table-column/base/group-header-view/template.js.map +1 -1
  79. package/dist/esm/table-column/base/models/column-internals.js.map +1 -1
  80. package/dist/esm/table-column/base/models/column-validator.js.map +1 -1
  81. package/dist/esm/table-column/date-text/cell-view/index.js.map +1 -1
  82. package/dist/esm/table-column/date-text/group-header-view/index.js.map +1 -1
  83. package/dist/esm/table-column/date-text/index.js.map +1 -1
  84. package/dist/esm/table-column/date-text/models/format-helper.js.map +1 -1
  85. package/dist/esm/table-column/date-text/testing/table-column-date-text.pageobject.js.map +1 -1
  86. package/dist/esm/table-column/duration-text/group-header-view/index.js.map +1 -1
  87. package/dist/esm/table-column/duration-text/models/duration-formatter.js.map +1 -1
  88. package/dist/esm/table-column/duration-text/testing/table-column-duration-text.pageobject.js.map +1 -1
  89. package/dist/esm/table-column/enum-base/index.js.map +1 -1
  90. package/dist/esm/table-column/enum-base/models/mapping-key-resolver.js.map +1 -1
  91. package/dist/esm/table-column/mapping/cell-view/index.js.map +1 -1
  92. package/dist/esm/table-column/mapping/group-header-view/index.js.map +1 -1
  93. package/dist/esm/table-column/mapping/index.js.map +1 -1
  94. package/dist/esm/table-column/mapping/testing/table-column-mapping.pageobject.js.map +1 -1
  95. package/dist/esm/table-column/menu-button/cell-view/index.js.map +1 -1
  96. package/dist/esm/table-column/menu-button/index.js.map +1 -1
  97. package/dist/esm/table-column/mixins/custom-sort-order.js.map +1 -1
  98. package/dist/esm/table-column/mixins/sortable-column.js.map +1 -1
  99. package/dist/esm/table-column/number-text/index.js.map +1 -1
  100. package/dist/esm/table-column/number-text/models/number-text-unit-format.js.map +1 -1
  101. package/dist/esm/table-column/text-base/cell-view/index.js.map +1 -1
  102. package/dist/esm/table-column/text-base/group-header-view/index.js.map +1 -1
  103. package/dist/esm/text-area/index.js.map +1 -1
  104. package/dist/esm/theme-provider/design-tokens.js.map +1 -1
  105. package/dist/esm/theme-provider/index.js.map +1 -1
  106. package/dist/esm/tree-view/index.js.map +1 -1
  107. package/dist/esm/utilities/models/converter.js.map +1 -1
  108. package/dist/esm/utilities/models/document-element-lang.js.map +1 -1
  109. package/dist/esm/utilities/models/tracker.js.map +1 -1
  110. package/dist/esm/utilities/style/direction.js.map +1 -1
  111. package/dist/esm/utilities/style/multivalue-property-stylesheet-behavior.js.map +1 -1
  112. package/dist/esm/utilities/style/theme.js +1 -0
  113. package/dist/esm/utilities/style/theme.js.map +1 -1
  114. package/dist/esm/utilities/testing/component.js.map +1 -1
  115. package/dist/esm/utilities/unit-format/decimal-unit-format.js.map +1 -1
  116. package/dist/esm/utilities/unit-format/default-unit-format.js.map +1 -1
  117. package/dist/esm/utilities/unit-format/scaled-unit-format/manually-translated-scaled-unit-format.js +1 -0
  118. package/dist/esm/utilities/unit-format/scaled-unit-format/manually-translated-scaled-unit-format.js.map +1 -1
  119. package/dist/esm/utilities/unit-format/unit-format.js.map +1 -1
  120. package/dist/esm/utilities/unit-format/unit-scale/unit-scale.js.map +1 -1
  121. package/dist/esm/wafer-map/experimental/computations.js.map +1 -1
  122. package/dist/esm/wafer-map/experimental/hover-handler.js.map +1 -1
  123. package/dist/esm/wafer-map/experimental/worker-renderer.js.map +1 -1
  124. package/dist/esm/wafer-map/index.js.map +1 -1
  125. package/dist/esm/wafer-map/modules/computations.js.map +1 -1
  126. package/dist/esm/wafer-map/modules/create-matrix-renderer.js.map +1 -1
  127. package/dist/esm/wafer-map/modules/hover-handler.js.map +1 -1
  128. package/dist/esm/wafer-map/modules/prerendering.js.map +1 -1
  129. package/dist/esm/wafer-map/modules/rendering.js.map +1 -1
  130. package/dist/esm/wafer-map/modules/wafer-map-update-tracker.js.map +1 -1
  131. package/dist/esm/wafer-map/modules/wafer-map-validator.js.map +1 -1
  132. package/dist/esm/wafer-map/modules/zoom-handler.js.map +1 -1
  133. package/package.json +4 -4
@@ -16333,7 +16333,7 @@
16333
16333
 
16334
16334
  /**
16335
16335
  * Do not edit directly
16336
- * Generated on Fri, 19 Jul 2024 16:55:43 GMT
16336
+ * Generated on Tue, 23 Jul 2024 20:13:03 GMT
16337
16337
  */
16338
16338
 
16339
16339
  const Information100DarkUi = "#a46eff";
@@ -18773,6 +18773,7 @@
18773
18773
  * ```
18774
18774
  */
18775
18775
  const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
18776
+ /* eslint-enable max-classes-per-file */
18776
18777
 
18777
18778
  const styles$T = css `
18778
18779
  ${display('flex')}
@@ -20862,10 +20863,6 @@ so this becomes the fallback color for the slot */ ''}
20862
20863
  width: 0px;
20863
20864
  }
20864
20865
 
20865
- [part='start'] {
20866
- display: none;
20867
- }
20868
-
20869
20866
  .control {
20870
20867
  align-items: center;
20871
20868
  cursor: pointer;
@@ -20893,10 +20890,59 @@ so this becomes the fallback color for the slot */ ''}
20893
20890
  border-bottom-color: ${failColor};
20894
20891
  }
20895
20892
 
20893
+ [part='start'] {
20894
+ display: none;
20895
+ }
20896
+
20897
+ .selected-value {
20898
+ flex: auto;
20899
+ font-family: inherit;
20900
+ text-align: start;
20901
+ white-space: nowrap;
20902
+ text-overflow: ellipsis;
20903
+ overflow: hidden;
20904
+ padding: 0px;
20905
+ padding-left: ${mediumPadding};
20906
+ }
20907
+
20908
+ .selected-value[disabled]::placeholder {
20909
+ color: ${bodyDisabledFontColor};
20910
+ }
20911
+
20912
+ .indicator {
20913
+ flex: none;
20914
+ margin-left: ${smallPadding};
20915
+ padding-right: 8px;
20916
+ display: flex;
20917
+ justify-content: center;
20918
+ align-items: center;
20919
+ }
20920
+
20921
+ .indicator slot[name='indicator'] svg {
20922
+ width: ${iconSize};
20923
+ height: ${iconSize};
20924
+ fill: ${bodyFontColor};
20925
+ }
20926
+
20927
+ :host([disabled]) .indicator slot[name='indicator'] svg {
20928
+ fill: ${bodyDisabledFontColor};
20929
+ }
20930
+
20931
+ [part='end'] {
20932
+ margin-inline-start: auto;
20933
+ }
20934
+
20935
+ :host([open][position='above']) .anchored-region {
20936
+ padding-bottom: ${smallPadding};
20937
+ }
20938
+
20939
+ :host([open][position='below']) .anchored-region {
20940
+ padding-top: ${smallPadding};
20941
+ }
20942
+
20896
20943
  .listbox {
20897
20944
  display: inline-flex;
20898
20945
  flex-direction: column;
20899
- overflow-y: auto;
20900
20946
  width: 100%;
20901
20947
  --ni-private-listbox-visible-option-count: 10.5;
20902
20948
  --ni-private-listbox-anchor-element-gap: ${smallPadding};
@@ -20930,12 +20976,6 @@ so this becomes the fallback color for the slot */ ''}
20930
20976
  --ni-private-listbox-loading-indicator-height: ${controlHeight};
20931
20977
  }
20932
20978
 
20933
- .listbox slot {
20934
- display: block;
20935
- background: transparent;
20936
- padding: var(--ni-private-listbox-padding);
20937
- }
20938
-
20939
20979
  :host([open][position='above']) .listbox {
20940
20980
  border-bottom-left-radius: 0;
20941
20981
  border-bottom-right-radius: 0;
@@ -20946,55 +20986,33 @@ so this becomes the fallback color for the slot */ ''}
20946
20986
  border-top-right-radius: 0;
20947
20987
  }
20948
20988
 
20949
- :host([open][position='above']) .anchored-region {
20950
- padding-bottom: ${smallPadding};
20989
+ .scrollable-region {
20990
+ overflow-y: auto;
20951
20991
  }
20952
20992
 
20953
- :host([open][position='below']) .anchored-region {
20954
- padding-top: ${smallPadding};
20993
+ .listbox slot {
20994
+ display: block;
20995
+ background: transparent;
20996
+ padding: var(--ni-private-listbox-padding);
20955
20997
  }
20956
20998
 
20957
- .selected-value {
20958
- flex: auto;
20959
- font-family: inherit;
20960
- text-align: start;
20961
- white-space: nowrap;
20962
- text-overflow: ellipsis;
20963
- overflow: hidden;
20964
- padding: 0px;
20965
- padding-left: ${mediumPadding};
20999
+ .listbox.empty slot {
21000
+ display: none;
20966
21001
  }
20967
21002
 
20968
- .selected-value[disabled]::placeholder {
20969
- color: ${bodyDisabledFontColor};
21003
+ ::slotted([role='option']),
21004
+ ::slotted(option) {
21005
+ flex: none;
20970
21006
  }
20971
21007
 
20972
- .indicator {
20973
- flex: none;
20974
- margin-left: ${smallPadding};
20975
- padding-right: 8px;
21008
+ .no-results-label {
21009
+ color: ${placeholderFontColor};
21010
+ height: ${controlHeight};
21011
+ display: inline-flex;
20976
21012
  display: flex;
20977
- justify-content: center;
21013
+ flex: 1 0 auto;
20978
21014
  align-items: center;
20979
- }
20980
-
20981
- .indicator slot[name='indicator'] svg {
20982
- width: ${iconSize};
20983
- height: ${iconSize};
20984
- fill: ${bodyFontColor};
20985
- }
20986
-
20987
- :host([disabled]) .indicator slot[name='indicator'] svg {
20988
- fill: ${bodyDisabledFontColor};
20989
- }
20990
-
20991
- [part='end'] {
20992
- margin-inline-start: auto;
20993
- }
20994
-
20995
- ::slotted([role='option']),
20996
- ::slotted(option) {
20997
- flex: none;
21015
+ padding: ${smallPadding} ${mediumPadding};
20998
21016
  }
20999
21017
  `.withBehaviors(appearanceBehavior(DropdownAppearance.underline, css `
21000
21018
  .control {
@@ -21148,10 +21166,6 @@ so this becomes the fallback color for the slot */ ''}
21148
21166
  :host([disabled]) .dropdown-icon {
21149
21167
  fill: ${bodyDisabledFontColor};
21150
21168
  }
21151
-
21152
- :host(:empty) .listbox {
21153
- display: none;
21154
- }
21155
21169
  `.withBehaviors(appearanceBehavior(DropdownAppearance.block, css `
21156
21170
  :host([error-visible]) .control {
21157
21171
  border-bottom-width: ${borderWidth};
@@ -21214,6 +21228,7 @@ so this becomes the fallback color for the slot */ ''}
21214
21228
  return new AttachedBehaviorHTMLDirective('nimble-overflow', OverflowBehavior, propertyName);
21215
21229
  }
21216
21230
 
21231
+ /* eslint-disable @typescript-eslint/indent */
21217
21232
  // prettier-ignore
21218
21233
  const template$x = (context, definition) => html `
21219
21234
  <template
@@ -21269,7 +21284,11 @@ so this becomes the fallback color for the slot */ ''}
21269
21284
  horizontal-scaling="anchor"
21270
21285
  ?hidden="${x => !x.open}">
21271
21286
  <div
21272
- class="listbox"
21287
+ class="
21288
+ listbox
21289
+ scrollable-region
21290
+ ${x => (x.filteredOptions.length === 0 ? 'empty' : '')}
21291
+ "
21273
21292
  id="${x => x.listboxId}"
21274
21293
  part="listbox"
21275
21294
  role="listbox"
@@ -21284,6 +21303,11 @@ so this becomes the fallback color for the slot */ ''}
21284
21303
  property: 'slottedOptions',
21285
21304
  })}
21286
21305
  ></slot>
21306
+ ${when(x => x.filteredOptions.length === 0, html `
21307
+ <span class="no-results-label">
21308
+ ${x => filterNoResultsLabel.getValueFor(x)}
21309
+ </span>
21310
+ `)}
21287
21311
  </div>
21288
21312
  </${anchoredRegionTag}>
21289
21313
  </template>
@@ -21480,11 +21504,8 @@ so this becomes the fallback color for the slot */ ''}
21480
21504
  this.filter = '';
21481
21505
  }
21482
21506
  const filter = this.filter.toLowerCase();
21483
- this.filteredOptions = this._options.filter(o => o.text.toLowerCase().startsWith(filter));
21507
+ this.filteredOptions = this._options.filter(o => o.text.toLowerCase().startsWith(filter) && !o.hidden);
21484
21508
  if (this.isAutocompleteList) {
21485
- if (!this.filteredOptions.length && !filter) {
21486
- this.filteredOptions = this._options;
21487
- }
21488
21509
  this._options.forEach(o => {
21489
21510
  o.visuallyHidden = !this.filteredOptions.includes(o);
21490
21511
  });
@@ -21906,6 +21927,9 @@ so this becomes the fallback color for the slot */ ''}
21906
21927
  __decorate$1([
21907
21928
  observable
21908
21929
  ], Combobox.prototype, "dropdownButton", void 0);
21930
+ __decorate$1([
21931
+ observable
21932
+ ], Combobox.prototype, "filteredOptions", void 0);
21909
21933
  __decorate$1([
21910
21934
  observable
21911
21935
  ], Combobox.prototype, "hasOverflow", void 0);
@@ -40513,7 +40537,7 @@ so this becomes the fallback color for the slot */ ''}
40513
40537
  }))
40514
40538
  || node.textContent
40515
40539
  || '%leaf%';
40516
- textBefore += chunk.slice(0, Math.max(0, sliceEndPos - pos));
40540
+ textBefore += node.isAtom ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos));
40517
40541
  });
40518
40542
  return textBefore;
40519
40543
  };
@@ -43939,6 +43963,11 @@ img.ProseMirror-separator {
43939
43963
  }
43940
43964
  const state = this.state.apply(transaction);
43941
43965
  const selectionHasChanged = !this.state.selection.eq(state.selection);
43966
+ this.emit('beforeTransaction', {
43967
+ editor: this,
43968
+ transaction,
43969
+ nextState: state,
43970
+ });
43942
43971
  this.view.updateState(state);
43943
43972
  this.emit('transaction', {
43944
43973
  editor: this,
@@ -44521,6 +44550,7 @@ img.ProseMirror-separator {
44521
44550
  }
44522
44551
  `;
44523
44552
 
44553
+ /* eslint-disable @typescript-eslint/indent */
44524
44554
  // prettier-ignore
44525
44555
  const template$q = html `
44526
44556
  <template>
@@ -44536,7 +44566,11 @@ img.ProseMirror-separator {
44536
44566
  horizontal-scaling="anchor"
44537
44567
  ?hidden="${x => !x.open}">
44538
44568
  <div
44539
- class="listbox"
44569
+ class="
44570
+ listbox
44571
+ scrollable-region
44572
+ ${x => (x.filteredOptions.length === 0 ? 'empty' : '')}
44573
+ "
44540
44574
  part="listbox"
44541
44575
  role="listbox"
44542
44576
  @click="${(x, c) => x.clickHandler(c.event)}"
@@ -44545,9 +44579,18 @@ img.ProseMirror-separator {
44545
44579
  ${ref('listbox')}
44546
44580
  >
44547
44581
  <slot name="option"
44548
- ${slotted({ filter: (n) => n instanceof HTMLElement && Listbox.slottedOptionFilter(n), flatten: true, property: 'slottedOptions' })}
44582
+ ${slotted({
44583
+ filter: (n) => n instanceof HTMLElement && Listbox.slottedOptionFilter(n),
44584
+ flatten: true,
44585
+ property: 'slottedOptions'
44586
+ })}
44549
44587
  >
44550
44588
  </slot>
44589
+ ${when(x => x.filteredOptions.length === 0, html `
44590
+ <span class="no-results-label">
44591
+ ${x => filterNoResultsLabel.getValueFor(x)}
44592
+ </span>
44593
+ `)}
44551
44594
  </div>
44552
44595
  </${anchoredRegionTag}>
44553
44596
  </template>
@@ -44789,6 +44832,9 @@ img.ProseMirror-separator {
44789
44832
  __decorate$1([
44790
44833
  observable
44791
44834
  ], RichTextMentionListbox.prototype, "availableViewportHeight", void 0);
44835
+ __decorate$1([
44836
+ observable
44837
+ ], RichTextMentionListbox.prototype, "filteredOptions", void 0);
44792
44838
  __decorate$1([
44793
44839
  observable
44794
44840
  ], RichTextMentionListbox.prototype, "anchorElement", void 0);
@@ -54409,21 +54455,21 @@ img.ProseMirror-separator {
54409
54455
  */
54410
54456
  static parseMarkdownToDOM(value, markdownParserMentionConfig) {
54411
54457
  try {
54412
- RichTextMarkdownParser.setup(markdownParserMentionConfig);
54458
+ _a$4.setup(markdownParserMentionConfig);
54413
54459
  const parsedMarkdownContent = this.markdownParser.parse(value);
54414
54460
  if (parsedMarkdownContent === null) {
54415
54461
  return {
54416
54462
  fragment: document.createDocumentFragment(),
54417
- mentionedHrefs: Array.from(RichTextMarkdownParser.mentionedHrefs)
54463
+ mentionedHrefs: Array.from(_a$4.mentionedHrefs)
54418
54464
  };
54419
54465
  }
54420
54466
  return {
54421
54467
  fragment: this.domSerializer.serializeFragment(parsedMarkdownContent.content),
54422
- mentionedHrefs: Array.from(RichTextMarkdownParser.mentionedHrefs)
54468
+ mentionedHrefs: Array.from(_a$4.mentionedHrefs)
54423
54469
  };
54424
54470
  }
54425
54471
  finally {
54426
- RichTextMarkdownParser.cleanup();
54472
+ _a$4.cleanup();
54427
54473
  }
54428
54474
  }
54429
54475
  static initializeMarkdownParser() {
@@ -54475,10 +54521,10 @@ img.ProseMirror-separator {
54475
54521
  excludes: '_',
54476
54522
  toDOM(node) {
54477
54523
  const href = node.attrs.href;
54478
- const currentMention = RichTextMarkdownParser.mentionConfigs?.find(mention => mention.isValidMentionHref(href));
54524
+ const currentMention = _a$4.mentionConfigs?.find(mention => mention.isValidMentionHref(href));
54479
54525
  const displayName = currentMention?.getDisplayName(href);
54480
54526
  if (currentMention && displayName) {
54481
- RichTextMarkdownParser.mentionedHrefs.add(href);
54527
+ _a$4.mentionedHrefs.add(href);
54482
54528
  return [
54483
54529
  currentMention.viewElement,
54484
54530
  {
@@ -54497,7 +54543,7 @@ img.ProseMirror-separator {
54497
54543
  * scheme and no matching mention pattern will be rendered as plain text (anchor with no href).
54498
54544
  * With this, the user can click the links only when the scheme is HTTP/HTTPS
54499
54545
  */
54500
- href: RichTextMarkdownParser.startsWithHttpOrHttps(href)
54546
+ href: _a$4.startsWithHttpOrHttps(href)
54501
54547
  ? href
54502
54548
  : null,
54503
54549
  rel: node.attrs.rel,
@@ -54505,7 +54551,7 @@ img.ProseMirror-separator {
54505
54551
  // This attribute can be removed when the below issue is resolved
54506
54552
  // https://github.com/ni/nimble/issues/1707
54507
54553
  class: href,
54508
- 'underline-hidden': RichTextMarkdownParser.startsWithHttpOrHttps(href)
54554
+ 'underline-hidden': _a$4.startsWithHttpOrHttps(href)
54509
54555
  ? null
54510
54556
  : true
54511
54557
  }
@@ -54518,12 +54564,12 @@ img.ProseMirror-separator {
54518
54564
  });
54519
54565
  }
54520
54566
  static setup(markdownParserMentionConfig) {
54521
- RichTextMarkdownParser.mentionConfigs = markdownParserMentionConfig;
54522
- RichTextMarkdownParser.mentionedHrefs.clear();
54567
+ _a$4.mentionConfigs = markdownParserMentionConfig;
54568
+ _a$4.mentionedHrefs.clear();
54523
54569
  }
54524
54570
  static cleanup() {
54525
- RichTextMarkdownParser.mentionConfigs = undefined;
54526
- RichTextMarkdownParser.mentionedHrefs.clear();
54571
+ _a$4.mentionConfigs = undefined;
54572
+ _a$4.mentionedHrefs.clear();
54527
54573
  }
54528
54574
  static startsWithHttpOrHttps(href) {
54529
54575
  return /^https?:\/\//i.test(href);
@@ -59826,10 +59872,6 @@ img.ProseMirror-separator {
59826
59872
  overflow-x: clip;
59827
59873
  }
59828
59874
 
59829
- .listbox.empty slot {
59830
- display: none;
59831
- }
59832
-
59833
59875
  .listbox.above {
59834
59876
  flex-flow: column-reverse;
59835
59877
  }
@@ -59889,10 +59931,6 @@ img.ProseMirror-separator {
59889
59931
  outline: 0px;
59890
59932
  }
59891
59933
 
59892
- .scrollable-region {
59893
- overflow: auto;
59894
- }
59895
-
59896
59934
  ::slotted([role='option']) {
59897
59935
  background-color: transparent;
59898
59936
  }
@@ -59909,14 +59947,6 @@ img.ProseMirror-separator {
59909
59947
  background-color: ${fillHoverSelectedColor};
59910
59948
  }
59911
59949
 
59912
- .no-results-label {
59913
- color: ${placeholderFontColor};
59914
- height: ${controlHeight};
59915
- display: inline-flex;
59916
- align-items: center;
59917
- padding: ${smallPadding} ${mediumPadding};
59918
- }
59919
-
59920
59950
  .loading-container {
59921
59951
  padding-left: ${mediumPadding};
59922
59952
  padding-right: ${mediumPadding};
@@ -60147,6 +60177,7 @@ img.ProseMirror-separator {
60147
60177
  </div>
60148
60178
  </template>
60149
60179
  `;
60180
+ /* eslint-enable @typescript-eslint/indent */
60150
60181
 
60151
60182
  /**
60152
60183
  * Types of spinner appearance.
@@ -60262,7 +60293,7 @@ img.ProseMirror-separator {
60262
60293
  <div class="listbox-background">
60263
60294
  <div
60264
60295
  class="
60265
- listbox
60296
+ listbox
60266
60297
  ${x => (x.filteredOptions.length === 0 ? 'empty' : '')}
60267
60298
  ${x => x.positionAttribute}
60268
60299
  "
@@ -60298,12 +60329,12 @@ img.ProseMirror-separator {
60298
60329
  property: 'slottedOptions',
60299
60330
  })}
60300
60331
  ></slot>
60332
+ ${when(x => (x.filterMode !== FilterMode.none && x.filteredOptions.length === 0 && !x.loadingVisible), html `
60333
+ <span class="no-results-label">
60334
+ ${x => filterNoResultsLabel.getValueFor(x)}
60335
+ </span>
60336
+ `)}
60301
60337
  </div>
60302
- ${when(x => (x.filterMode !== FilterMode.none && x.filteredOptions.length === 0 && !x.loadingVisible), html `
60303
- <span class="no-results-label ${x => x.positionAttribute}">
60304
- ${x => filterNoResultsLabel.getValueFor(x)}
60305
- </span>
60306
- `)}
60307
60338
  ${when(x => x.loadingVisible, html `
60308
60339
  <div class="loading-container ${x => x.positionAttribute} ${x => (x.filteredOptions.length === 0 ? 'empty' : '')}"
60309
60340
  @click="${(x, c) => x.ignoreClickHandler(c.event)}">
@@ -60318,6 +60349,7 @@ img.ProseMirror-separator {
60318
60349
  </${anchoredRegionTag}>
60319
60350
  </template>
60320
60351
  `;
60352
+ /* eslint-enable @typescript-eslint/indent */
60321
60353
 
60322
60354
  // Based on: https://github.com/microsoft/fast/blob/%40microsoft/fast-foundation_v2.49.5/packages/web-components/fast-foundation/src/select/select.form-associated.ts
60323
60355
  /* eslint-disable max-classes-per-file */
@@ -60336,6 +60368,7 @@ img.ProseMirror-separator {
60336
60368
  this.proxy = document.createElement('select');
60337
60369
  }
60338
60370
  }
60371
+ /* eslint-enable max-classes-per-file */
60339
60372
 
60340
60373
  const isOptionSelectable = (el) => {
60341
60374
  return !el.visuallyHidden && !el.disabled && !el.hidden;
@@ -66607,6 +66640,7 @@ focus outline in that case.
66607
66640
  </div>
66608
66641
  </template>
66609
66642
  `;
66643
+ /* eslint-enable @typescript-eslint/indent */
66610
66644
 
66611
66645
  /**
66612
66646
  * A styled cell that is used within the nimble-table-row.
@@ -70891,6 +70925,7 @@ focus outline in that case.
70891
70925
  </span>`)}
70892
70926
  </template>
70893
70927
  `;
70928
+ /* eslint-enable @typescript-eslint/indent */
70894
70929
 
70895
70930
  /**
70896
70931
  * A cell view for displaying links
@@ -74693,6 +74728,7 @@ focus outline in that case.
74693
74728
  ?? unitTranslations.get('en'));
74694
74729
  }
74695
74730
  }
74731
+ /* eslint-enable max-classes-per-file */
74696
74732
 
74697
74733
  const unitTranslations$1 = new Map([
74698
74734
  ['en', new UnitTranslation('byte', 'bytes', 'B')],