@ni/spright-components 6.4.27 → 6.6.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 (43) hide show
  1. package/dist/all-components-bundle.js +603 -330
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +4014 -3852
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/all-components.d.ts +3 -0
  6. package/dist/esm/all-components.js +3 -0
  7. package/dist/esm/all-components.js.map +1 -1
  8. package/dist/esm/chat/message/inbound/index.d.ts +22 -0
  9. package/dist/esm/chat/message/inbound/index.js +33 -0
  10. package/dist/esm/chat/message/inbound/index.js.map +1 -0
  11. package/dist/esm/chat/message/inbound/styles.d.ts +1 -0
  12. package/dist/esm/chat/message/inbound/styles.js +65 -0
  13. package/dist/esm/chat/message/inbound/styles.js.map +1 -0
  14. package/dist/esm/chat/message/inbound/template.d.ts +4 -0
  15. package/dist/esm/chat/message/inbound/template.js +18 -0
  16. package/dist/esm/chat/message/inbound/template.js.map +1 -0
  17. package/dist/esm/chat/message/index.d.ts +1 -0
  18. package/dist/esm/chat/message/index.js +1 -0
  19. package/dist/esm/chat/message/index.js.map +1 -1
  20. package/dist/esm/chat/message/outbound/index.d.ts +12 -0
  21. package/dist/esm/chat/message/outbound/index.js +16 -0
  22. package/dist/esm/chat/message/outbound/index.js.map +1 -0
  23. package/dist/esm/chat/message/outbound/styles.d.ts +1 -0
  24. package/dist/esm/chat/message/outbound/styles.js +37 -0
  25. package/dist/esm/chat/message/outbound/styles.js.map +1 -0
  26. package/dist/esm/chat/message/outbound/template.d.ts +4 -0
  27. package/dist/esm/chat/message/outbound/template.js +10 -0
  28. package/dist/esm/chat/message/outbound/template.js.map +1 -0
  29. package/dist/esm/chat/message/styles.js +2 -2
  30. package/dist/esm/chat/message/styles.js.map +1 -1
  31. package/dist/esm/chat/message/system/index.d.ts +12 -0
  32. package/dist/esm/chat/message/system/index.js +16 -0
  33. package/dist/esm/chat/message/system/index.js.map +1 -0
  34. package/dist/esm/chat/message/system/styles.d.ts +1 -0
  35. package/dist/esm/chat/message/system/styles.js +30 -0
  36. package/dist/esm/chat/message/system/styles.js.map +1 -0
  37. package/dist/esm/chat/message/system/template.d.ts +4 -0
  38. package/dist/esm/chat/message/system/template.js +10 -0
  39. package/dist/esm/chat/message/system/template.js.map +1 -0
  40. package/dist/esm/chat/message/types.d.ts +1 -0
  41. package/dist/esm/chat/message/types.js +1 -0
  42. package/dist/esm/chat/message/types.js.map +1 -1
  43. package/package.json +2 -2
@@ -14919,9 +14919,9 @@
14919
14919
  const prefix = 'ni-nimble';
14920
14920
  const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
14921
14921
 
14922
- const template$S = html `<slot></slot>`;
14922
+ const template$V = html `<slot></slot>`;
14923
14923
 
14924
- const styles$15 = css `
14924
+ const styles$18 = css `
14925
14925
  ${display$1('contents')}
14926
14926
  `;
14927
14927
 
@@ -15036,8 +15036,8 @@
15036
15036
  ], ThemeProvider.prototype, "theme", void 0);
15037
15037
  const nimbleDesignSystemProvider = ThemeProvider.compose({
15038
15038
  baseName: 'theme-provider',
15039
- styles: styles$15,
15040
- template: template$S
15039
+ styles: styles$18,
15040
+ template: template$V
15041
15041
  });
15042
15042
  DesignSystem.getOrCreate()
15043
15043
  .withPrefix('nimble')
@@ -16610,7 +16610,7 @@
16610
16610
  }
16611
16611
  // #endregion
16612
16612
 
16613
- const styles$14 = css `
16613
+ const styles$17 = css `
16614
16614
  @layer base, hover, focusVisible, active, disabled;
16615
16615
 
16616
16616
  @layer base {
@@ -16688,7 +16688,7 @@
16688
16688
  }
16689
16689
  `;
16690
16690
 
16691
- const template$R = (_context, definition) => html `${
16691
+ const template$U = (_context, definition) => html `${
16692
16692
  /* top-container div is necessary because setting contenteditable directly on the native anchor instead
16693
16693
  leaves it focusable, unlike the behavior you get when the anchor is _within_ a contenteditable element.
16694
16694
  */ ''}<div
@@ -16791,8 +16791,8 @@
16791
16791
  const nimbleAnchor = Anchor.compose({
16792
16792
  baseName: 'anchor',
16793
16793
  baseClass: Anchor$1,
16794
- template: template$R,
16795
- styles: styles$14,
16794
+ template: template$U,
16795
+ styles: styles$17,
16796
16796
  shadowOptions: {
16797
16797
  delegatesFocus: true
16798
16798
  }
@@ -16901,7 +16901,7 @@
16901
16901
  padding: 0;
16902
16902
  `;
16903
16903
 
16904
- const styles$13 = css `
16904
+ const styles$16 = css `
16905
16905
  @layer base, checked, hover, focusVisible, active, disabled, top;
16906
16906
 
16907
16907
  @layer base {
@@ -17185,8 +17185,8 @@
17185
17185
  }
17186
17186
  `));
17187
17187
 
17188
- const styles$12 = css `
17189
- ${styles$13}
17188
+ const styles$15 = css `
17189
+ ${styles$16}
17190
17190
  ${buttonAppearanceVariantStyles}
17191
17191
 
17192
17192
  .control {
@@ -17206,7 +17206,7 @@
17206
17206
  }
17207
17207
  `;
17208
17208
 
17209
- const template$Q = (context, definition) => html `
17209
+ const template$T = (context, definition) => html `
17210
17210
  <a
17211
17211
  class="control"
17212
17212
  part="control"
@@ -17288,8 +17288,8 @@
17288
17288
  ], AnchorButton.prototype, "disabled", void 0);
17289
17289
  const nimbleAnchorButton = AnchorButton.compose({
17290
17290
  baseName: 'anchor-button',
17291
- template: template$Q,
17292
- styles: styles$12,
17291
+ template: template$T,
17292
+ styles: styles$15,
17293
17293
  shadowOptions: {
17294
17294
  delegatesFocus: true
17295
17295
  }
@@ -17297,7 +17297,7 @@
17297
17297
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
17298
17298
  const anchorButtonTag = 'nimble-anchor-button';
17299
17299
 
17300
- const styles$11 = css `
17300
+ const styles$14 = css `
17301
17301
  ${display$1('grid')}
17302
17302
 
17303
17303
  :host {
@@ -17380,7 +17380,7 @@
17380
17380
  }
17381
17381
  `;
17382
17382
 
17383
- const template$P = (context, definition) => html `
17383
+ const template$S = (context, definition) => html `
17384
17384
  <template
17385
17385
  role="menuitem"
17386
17386
  class="${x => (typeof x.startColumnCount === 'number'
@@ -17481,8 +17481,8 @@
17481
17481
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
17482
17482
  const nimbleAnchorMenuItem = AnchorMenuItem.compose({
17483
17483
  baseName: 'anchor-menu-item',
17484
- template: template$P,
17485
- styles: styles$11,
17484
+ template: template$S,
17485
+ styles: styles$14,
17486
17486
  shadowOptions: {
17487
17487
  delegatesFocus: true
17488
17488
  }
@@ -17492,7 +17492,7 @@
17492
17492
  .register(nimbleAnchorMenuItem());
17493
17493
  const anchorMenuItemTag = 'nimble-anchor-menu-item';
17494
17494
 
17495
- const styles$10 = css `
17495
+ const styles$13 = css `
17496
17496
  ${display$1('inline-flex')}
17497
17497
 
17498
17498
  :host {
@@ -17609,7 +17609,7 @@
17609
17609
  }
17610
17610
  `;
17611
17611
 
17612
- const template$O = (context, definition) => html `
17612
+ const template$R = (context, definition) => html `
17613
17613
  <template slot="anchortab" role="tab" aria-disabled="${x => x.disabled}">
17614
17614
  <a
17615
17615
  download="${x => x.download}"
@@ -17661,15 +17661,15 @@
17661
17661
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
17662
17662
  const nimbleAnchorTab = AnchorTab.compose({
17663
17663
  baseName: 'anchor-tab',
17664
- template: template$O,
17665
- styles: styles$10,
17664
+ template: template$R,
17665
+ styles: styles$13,
17666
17666
  shadowOptions: {
17667
17667
  delegatesFocus: true
17668
17668
  }
17669
17669
  });
17670
17670
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
17671
17671
 
17672
- const styles$$ = css `
17672
+ const styles$12 = css `
17673
17673
  ${display$1('flex')}
17674
17674
 
17675
17675
  :host {
@@ -17709,12 +17709,12 @@
17709
17709
  }
17710
17710
  `;
17711
17711
 
17712
- const styles$_ = css `
17713
- ${styles$13}
17712
+ const styles$11 = css `
17713
+ ${styles$16}
17714
17714
  ${buttonAppearanceVariantStyles}
17715
17715
  `;
17716
17716
 
17717
- const template$N = (context, definition) => html `
17717
+ const template$Q = (context, definition) => html `
17718
17718
  <button
17719
17719
  class="control"
17720
17720
  part="control"
@@ -17805,8 +17805,8 @@
17805
17805
  const nimbleButton = Button.compose({
17806
17806
  baseName: 'button',
17807
17807
  baseClass: Button$1,
17808
- template: template$N,
17809
- styles: styles$_,
17808
+ template: template$Q,
17809
+ styles: styles$11,
17810
17810
  shadowOptions: {
17811
17811
  delegatesFocus: true
17812
17812
  }
@@ -18291,6 +18291,10 @@
18291
18291
  name: 'folder_open_16_x_16',
18292
18292
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7 3v1.002h6V6h-1V5H3v1H2V3ZM2 13h11l1-6H2Z" class="cls-1"/></svg>`,
18293
18293
  };
18294
+ const forklift16X16 = {
18295
+ name: 'forklift_16_x_16',
18296
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13 11V4c0-.55-.45-1-1-1h-1v4.24l-1.53-3.3C9.24 3.37 8.69 3 8.08 3H4.01l1 1v3h-2v2.19c-.31.35-.5.81-.5 1.31 0 1.1.9 2 2 2 .5 0 .96-.19 1.31-.5h3.04c.39.32.88.52 1.42.52s1.04-.2 1.42-.52H15zm-8.5.25c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75m4.18-2.57L7 7H6V4h2.07c.21 0 .39.12.47.34l1.71 3.68c-.62 0-1.18.25-1.58.66Zm1.59 2.59c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1" class="cls-1"/></svg>`,
18297
+ };
18294
18298
  const forwardSlash16X16 = {
18295
18299
  name: 'forward_slash_16_x_16',
18296
18300
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m6.027 14 2.5-12h1.5l-2.5 12z" class="cls-1"/></svg>`,
@@ -18749,7 +18753,7 @@
18749
18753
  };
18750
18754
 
18751
18755
  // Avoiding any whitespace in the template because this is an inline element
18752
- const template$M = html `<div
18756
+ const template$P = html `<div
18753
18757
  class="icon"
18754
18758
  aria-hidden="true"
18755
18759
  :innerHTML=${x => x.icon.data}
@@ -18764,7 +18768,7 @@
18764
18768
  -webkit-user-select: none;
18765
18769
  `;
18766
18770
 
18767
- const styles$Z = css `
18771
+ const styles$10 = css `
18768
18772
  ${display$1('inline-flex')}
18769
18773
 
18770
18774
  :host {
@@ -18827,8 +18831,8 @@
18827
18831
  const registerIconSvg = (baseName, iconClass) => {
18828
18832
  const composedIcon = iconClass.compose({
18829
18833
  baseName,
18830
- template: template$M,
18831
- styles: styles$Z
18834
+ template: template$P,
18835
+ styles: styles$10
18832
18836
  });
18833
18837
  DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
18834
18838
  };
@@ -18923,7 +18927,7 @@
18923
18927
  cssCustomPropertyName: null
18924
18928
  }).withDefault(coreLabelDefaults.itemRemoveLabel);
18925
18929
 
18926
- const template$L = (context, definition) => html `
18930
+ const template$O = (context, definition) => html `
18927
18931
  <div
18928
18932
  class="tab-bar"
18929
18933
  >
@@ -19222,15 +19226,15 @@
19222
19226
  applyMixins(AnchorTabs, StartEnd);
19223
19227
  const nimbleAnchorTabs = AnchorTabs.compose({
19224
19228
  baseName: 'anchor-tabs',
19225
- template: template$L,
19226
- styles: styles$$,
19229
+ template: template$O,
19230
+ styles: styles$12,
19227
19231
  shadowOptions: {
19228
19232
  delegatesFocus: false
19229
19233
  }
19230
19234
  });
19231
19235
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTabs());
19232
19236
 
19233
- const styles$Y = css `
19237
+ const styles$$ = css `
19234
19238
  ${display$1('block')}
19235
19239
 
19236
19240
  :host {
@@ -19335,7 +19339,7 @@
19335
19339
  }
19336
19340
  `;
19337
19341
 
19338
- const template$K = (context, definition) => html `
19342
+ const template$N = (context, definition) => html `
19339
19343
  <template
19340
19344
  role="treeitem"
19341
19345
  slot="${x => (x.isNestedItem() ? 'item' : null)}"
@@ -19472,8 +19476,8 @@
19472
19476
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
19473
19477
  const nimbleAnchorTreeItem = AnchorTreeItem.compose({
19474
19478
  baseName: 'anchor-tree-item',
19475
- template: template$K,
19476
- styles: styles$Y,
19479
+ template: template$N,
19480
+ styles: styles$$,
19477
19481
  shadowOptions: {
19478
19482
  delegatesFocus: true
19479
19483
  }
@@ -19489,7 +19493,7 @@
19489
19493
  zIndex1000: '1000'
19490
19494
  };
19491
19495
 
19492
- const styles$X = css `
19496
+ const styles$_ = css `
19493
19497
  ${display$1('block')}
19494
19498
 
19495
19499
  :host {
@@ -19520,7 +19524,7 @@
19520
19524
  baseName: 'anchored-region',
19521
19525
  baseClass: AnchoredRegion$1,
19522
19526
  template: anchoredRegionTemplate,
19523
- styles: styles$X
19527
+ styles: styles$_
19524
19528
  });
19525
19529
  DesignSystem.getOrCreate()
19526
19530
  .withPrefix('nimble')
@@ -19601,7 +19605,7 @@
19601
19605
  const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
19602
19606
  /* eslint-enable max-classes-per-file */
19603
19607
 
19604
- const styles$W = css `
19608
+ const styles$Z = css `
19605
19609
  ${display$1('flex')}
19606
19610
 
19607
19611
  :host {
@@ -19779,7 +19783,7 @@
19779
19783
  information: 'information'
19780
19784
  };
19781
19785
 
19782
- const template$J = html `
19786
+ const template$M = html `
19783
19787
  <${themeProviderTag} theme="${Theme.color}">
19784
19788
  <div class="container"
19785
19789
  role="status"
@@ -19897,8 +19901,8 @@
19897
19901
  applyMixins(Banner, ARIAGlobalStatesAndProperties);
19898
19902
  const nimbleBanner = Banner.compose({
19899
19903
  baseName: 'banner',
19900
- template: template$J,
19901
- styles: styles$W
19904
+ template: template$M,
19905
+ styles: styles$Z
19902
19906
  });
19903
19907
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
19904
19908
 
@@ -19939,7 +19943,7 @@
19939
19943
  </template>
19940
19944
  `;
19941
19945
 
19942
- const styles$V = css `
19946
+ const styles$Y = css `
19943
19947
  ${display$1('inline-flex')}
19944
19948
 
19945
19949
  :host {
@@ -20043,11 +20047,11 @@
20043
20047
  baseName: 'breadcrumb',
20044
20048
  baseClass: Breadcrumb$1,
20045
20049
  template: breadcrumbTemplate,
20046
- styles: styles$V
20050
+ styles: styles$Y
20047
20051
  });
20048
20052
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
20049
20053
 
20050
- const styles$U = css `
20054
+ const styles$X = css `
20051
20055
  @layer base, hover, focusVisible, active, disabled;
20052
20056
 
20053
20057
  @layer base {
@@ -20144,14 +20148,14 @@ so this becomes the fallback color for the slot */ ''}
20144
20148
  baseName: 'breadcrumb-item',
20145
20149
  baseClass: BreadcrumbItem$1,
20146
20150
  template: breadcrumbItemTemplate,
20147
- styles: styles$U,
20151
+ styles: styles$X,
20148
20152
  separator: forwardSlash16X16.data
20149
20153
  });
20150
20154
  DesignSystem.getOrCreate()
20151
20155
  .withPrefix('nimble')
20152
20156
  .register(nimbleBreadcrumbItem());
20153
20157
 
20154
- const styles$T = css `
20158
+ const styles$W = css `
20155
20159
  ${display$1('flex')}
20156
20160
 
20157
20161
  :host {
@@ -20175,7 +20179,7 @@ so this becomes the fallback color for the slot */ ''}
20175
20179
  }
20176
20180
  `;
20177
20181
 
20178
- const template$I = html `
20182
+ const template$L = html `
20179
20183
  <section aria-labelledby="title-slot">
20180
20184
  <span id="title-slot"><slot name="title"></slot></span>
20181
20185
  <slot></slot>
@@ -20190,12 +20194,12 @@ so this becomes the fallback color for the slot */ ''}
20190
20194
  const nimbleCard = Card.compose({
20191
20195
  baseName: 'card',
20192
20196
  baseClass: Card$1,
20193
- template: template$I,
20194
- styles: styles$T
20197
+ template: template$L,
20198
+ styles: styles$W
20195
20199
  });
20196
20200
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
20197
20201
 
20198
- const styles$S = css `
20202
+ const styles$V = css `
20199
20203
  ${display$1('inline-flex')}
20200
20204
 
20201
20205
  :host {
@@ -20353,14 +20357,14 @@ so this becomes the fallback color for the slot */ ''}
20353
20357
  const nimbleCardButton = CardButton.compose({
20354
20358
  baseName: 'card-button',
20355
20359
  template: buttonTemplate,
20356
- styles: styles$S,
20360
+ styles: styles$V,
20357
20361
  shadowOptions: {
20358
20362
  delegatesFocus: true
20359
20363
  }
20360
20364
  });
20361
20365
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
20362
20366
 
20363
- const styles$R = css `
20367
+ const styles$U = css `
20364
20368
  .error-icon {
20365
20369
  display: none;
20366
20370
  }
@@ -20394,9 +20398,9 @@ so this becomes the fallback color for the slot */ ''}
20394
20398
  }
20395
20399
  `;
20396
20400
 
20397
- const styles$Q = css `
20401
+ const styles$T = css `
20398
20402
  ${display$1('inline-grid')}
20399
- ${styles$R}
20403
+ ${styles$U}
20400
20404
 
20401
20405
  :host {
20402
20406
  font: ${bodyFont};
@@ -20590,7 +20594,7 @@ so this becomes the fallback color for the slot */ ''}
20590
20594
  </div>
20591
20595
  `;
20592
20596
 
20593
- const template$H = (_context, definition) => html `
20597
+ const template$K = (_context, definition) => html `
20594
20598
  <template
20595
20599
  role="checkbox"
20596
20600
  aria-checked="${x => x.checked}"
@@ -20675,16 +20679,16 @@ so this becomes the fallback color for the slot */ ''}
20675
20679
  const nimbleCheckbox = Checkbox.compose({
20676
20680
  baseName: 'checkbox',
20677
20681
  baseClass: Checkbox$1,
20678
- template: template$H,
20679
- styles: styles$Q,
20682
+ template: template$K,
20683
+ styles: styles$T,
20680
20684
  checkedIndicator: check16X16.data,
20681
20685
  indeterminateIndicator: minus16X16.data
20682
20686
  });
20683
20687
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
20684
20688
  const checkboxTag = 'nimble-checkbox';
20685
20689
 
20686
- const styles$P = css `
20687
- ${styles$13}
20690
+ const styles$S = css `
20691
+ ${styles$16}
20688
20692
  ${buttonAppearanceVariantStyles}
20689
20693
 
20690
20694
  @layer checked {
@@ -20731,7 +20735,7 @@ so this becomes the fallback color for the slot */ ''}
20731
20735
  }
20732
20736
  `));
20733
20737
 
20734
- const template$G = (context, definition) => html `
20738
+ const template$J = (context, definition) => html `
20735
20739
  <div
20736
20740
  role="button"
20737
20741
  part="control"
@@ -20826,8 +20830,8 @@ so this becomes the fallback color for the slot */ ''}
20826
20830
  applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
20827
20831
  const nimbleToggleButton = ToggleButton.compose({
20828
20832
  baseName: 'toggle-button',
20829
- template: template$G,
20830
- styles: styles$P,
20833
+ template: template$J,
20834
+ styles: styles$S,
20831
20835
  shadowOptions: {
20832
20836
  delegatesFocus: true
20833
20837
  }
@@ -20857,7 +20861,7 @@ so this becomes the fallback color for the slot */ ''}
20857
20861
  frameless: 'frameless'
20858
20862
  };
20859
20863
 
20860
- const styles$O = css `
20864
+ const styles$R = css `
20861
20865
  ${display$1('inline-flex')}
20862
20866
 
20863
20867
  :host {
@@ -21147,7 +21151,7 @@ so this becomes the fallback color for the slot */ ''}
21147
21151
  }
21148
21152
  `));
21149
21153
 
21150
- const styles$N = css `
21154
+ const styles$Q = css `
21151
21155
  .annotated-label {
21152
21156
  display: flex;
21153
21157
  flex-direction: row;
@@ -21174,10 +21178,10 @@ so this becomes the fallback color for the slot */ ''}
21174
21178
  none: undefined,
21175
21179
  standard: 'standard'};
21176
21180
 
21177
- const styles$M = css `
21178
- ${styles$O}
21181
+ const styles$P = css `
21179
21182
  ${styles$R}
21180
- ${styles$N}
21183
+ ${styles$U}
21184
+ ${styles$Q}
21181
21185
 
21182
21186
  :host {
21183
21187
  --ni-private-hover-bottom-border-width: 2px;
@@ -21298,7 +21302,7 @@ so this becomes the fallback color for the slot */ ''}
21298
21302
  <slot></slot>
21299
21303
  </label>
21300
21304
  `);
21301
- const template$F = (context, definition) => html `
21305
+ const template$I = (context, definition) => html `
21302
21306
  <template
21303
21307
  aria-disabled="${x => x.ariaDisabled}"
21304
21308
  autocomplete="${x => x.autocomplete}"
@@ -22073,8 +22077,8 @@ so this becomes the fallback color for the slot */ ''}
22073
22077
  const nimbleCombobox = Combobox.compose({
22074
22078
  baseName: 'combobox',
22075
22079
  baseClass: FormAssociatedCombobox,
22076
- template: template$F,
22077
- styles: styles$M,
22080
+ template: template$I,
22081
+ styles: styles$P,
22078
22082
  shadowOptions: {
22079
22083
  delegatesFocus: true
22080
22084
  },
@@ -22118,7 +22122,7 @@ so this becomes the fallback color for the slot */ ''}
22118
22122
  */
22119
22123
  const UserDismissed = Symbol('user dismissed');
22120
22124
 
22121
- const styles$L = css `
22125
+ const styles$O = css `
22122
22126
  ${display$1('grid')}
22123
22127
 
22124
22128
  dialog {
@@ -22211,7 +22215,7 @@ so this becomes the fallback color for the slot */ ''}
22211
22215
  }
22212
22216
  `;
22213
22217
 
22214
- const template$E = html `
22218
+ const template$H = html `
22215
22219
  <template>
22216
22220
  <dialog
22217
22221
  ${ref('dialogElement')}
@@ -22359,13 +22363,13 @@ so this becomes the fallback color for the slot */ ''}
22359
22363
  applyMixins(Dialog, ARIAGlobalStatesAndProperties);
22360
22364
  const nimbleDialog = Dialog.compose({
22361
22365
  baseName: 'dialog',
22362
- template: template$E,
22363
- styles: styles$L,
22366
+ template: template$H,
22367
+ styles: styles$O,
22364
22368
  baseClass: Dialog
22365
22369
  });
22366
22370
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
22367
22371
 
22368
- const styles$K = css `
22372
+ const styles$N = css `
22369
22373
  ${display$1('block')}
22370
22374
 
22371
22375
  :host {
@@ -22508,7 +22512,7 @@ so this becomes the fallback color for the slot */ ''}
22508
22512
  }
22509
22513
  `;
22510
22514
 
22511
- const template$D = html `
22515
+ const template$G = html `
22512
22516
  <dialog
22513
22517
  ${ref('dialog')}
22514
22518
  aria-label="${x => x.ariaLabel}"
@@ -22650,8 +22654,8 @@ so this becomes the fallback color for the slot */ ''}
22650
22654
  applyMixins(Drawer, ARIAGlobalStatesAndProperties);
22651
22655
  const nimbleDrawer = Drawer.compose({
22652
22656
  baseName: 'drawer',
22653
- template: template$D,
22654
- styles: styles$K
22657
+ template: template$G,
22658
+ styles: styles$N
22655
22659
  });
22656
22660
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
22657
22661
 
@@ -24027,6 +24031,18 @@ so this becomes the fallback color for the slot */ ''}
24027
24031
  }
24028
24032
  registerIconSvg('icon-folder-open', IconFolderOpen);
24029
24033
 
24034
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
24035
+ // See generation source in nimble-components/build/generate-icons
24036
+ /**
24037
+ * The icon component for the 'forklift' icon
24038
+ */
24039
+ class IconForklift extends IconSvg {
24040
+ constructor() {
24041
+ super(forklift16X16);
24042
+ }
24043
+ }
24044
+ registerIconSvg('icon-forklift', IconForklift);
24045
+
24030
24046
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
24031
24047
  // See generation source in nimble-components/build/generate-icons
24032
24048
  /**
@@ -25421,7 +25437,7 @@ so this becomes the fallback color for the slot */ ''}
25421
25437
  }
25422
25438
  }
25423
25439
 
25424
- const styles$J = css `
25440
+ const styles$M = css `
25425
25441
  ${display$1('none')}
25426
25442
  `;
25427
25443
 
@@ -25486,7 +25502,7 @@ so this becomes the fallback color for the slot */ ''}
25486
25502
  ], LabelProviderCore.prototype, "itemRemove", void 0);
25487
25503
  const nimbleLabelProviderCore = LabelProviderCore.compose({
25488
25504
  baseName: 'label-provider-core',
25489
- styles: styles$J
25505
+ styles: styles$M
25490
25506
  });
25491
25507
  DesignSystem.getOrCreate()
25492
25508
  .withPrefix('nimble')
@@ -25653,13 +25669,13 @@ so this becomes the fallback color for the slot */ ''}
25653
25669
  ], LabelProviderTable.prototype, "groupRowPlaceholderEmpty", void 0);
25654
25670
  const nimbleLabelProviderTable = LabelProviderTable.compose({
25655
25671
  baseName: 'label-provider-table',
25656
- styles: styles$J
25672
+ styles: styles$M
25657
25673
  });
25658
25674
  DesignSystem.getOrCreate()
25659
25675
  .withPrefix('nimble')
25660
25676
  .register(nimbleLabelProviderTable());
25661
25677
 
25662
- const styles$I = css `
25678
+ const styles$L = css `
25663
25679
  ${display$1('flex')}
25664
25680
 
25665
25681
  :host {
@@ -25735,7 +25751,7 @@ so this becomes the fallback color for the slot */ ''}
25735
25751
  * The template for the {@link @ni/fast-foundation#(ListboxOption:class)} component.
25736
25752
  * @public
25737
25753
  */
25738
- const template$C = (context, definition) => html `
25754
+ const template$F = (context, definition) => html `
25739
25755
  <template
25740
25756
  aria-checked="${x => x.ariaChecked}"
25741
25757
  aria-disabled="${x => x.ariaDisabled}"
@@ -25848,13 +25864,13 @@ so this becomes the fallback color for the slot */ ''}
25848
25864
  const nimbleListOption = ListOption.compose({
25849
25865
  baseName: 'list-option',
25850
25866
  baseClass: ListboxOption,
25851
- template: template$C,
25852
- styles: styles$I
25867
+ template: template$F,
25868
+ styles: styles$L
25853
25869
  });
25854
25870
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
25855
25871
  const listOptionTag = 'nimble-list-option';
25856
25872
 
25857
- const styles$H = css `
25873
+ const styles$K = css `
25858
25874
  ${display$1('flex')}
25859
25875
 
25860
25876
  :host {
@@ -25916,7 +25932,7 @@ so this becomes the fallback color for the slot */ ''}
25916
25932
  const isListOption$1 = (n) => {
25917
25933
  return n instanceof ListOption;
25918
25934
  };
25919
- const template$B = html `
25935
+ const template$E = html `
25920
25936
  <template
25921
25937
  role="group"
25922
25938
  aria-label="${x => x.labelContent}"
@@ -26058,8 +26074,8 @@ so this becomes the fallback color for the slot */ ''}
26058
26074
  const nimbleListOptionGroup = ListOptionGroup.compose({
26059
26075
  baseName: 'list-option-group',
26060
26076
  baseClass: FoundationElement,
26061
- template: template$B,
26062
- styles: styles$H
26077
+ template: template$E,
26078
+ styles: styles$K
26063
26079
  });
26064
26080
  DesignSystem.getOrCreate()
26065
26081
  .withPrefix('nimble')
@@ -26086,9 +26102,9 @@ so this becomes the fallback color for the slot */ ''}
26086
26102
  attr()
26087
26103
  ], Mapping$1.prototype, "key", void 0);
26088
26104
 
26089
- const template$A = html `<template slot="mapping"></template>`;
26105
+ const template$D = html `<template slot="mapping"></template>`;
26090
26106
 
26091
- const styles$G = css `
26107
+ const styles$J = css `
26092
26108
  ${display$1('none')}
26093
26109
  `;
26094
26110
 
@@ -26104,8 +26120,8 @@ so this becomes the fallback color for the slot */ ''}
26104
26120
  ], MappingEmpty.prototype, "text", void 0);
26105
26121
  const emptyMapping = MappingEmpty.compose({
26106
26122
  baseName: 'mapping-empty',
26107
- template: template$A,
26108
- styles: styles$G
26123
+ template: template$D,
26124
+ styles: styles$J
26109
26125
  });
26110
26126
  DesignSystem.getOrCreate().withPrefix('nimble').register(emptyMapping());
26111
26127
 
@@ -26175,8 +26191,8 @@ so this becomes the fallback color for the slot */ ''}
26175
26191
  ], MappingIcon.prototype, "resolvedIcon", void 0);
26176
26192
  const iconMapping = MappingIcon.compose({
26177
26193
  baseName: 'mapping-icon',
26178
- template: template$A,
26179
- styles: styles$G
26194
+ template: template$D,
26195
+ styles: styles$J
26180
26196
  });
26181
26197
  DesignSystem.getOrCreate().withPrefix('nimble').register(iconMapping());
26182
26198
 
@@ -26199,8 +26215,8 @@ so this becomes the fallback color for the slot */ ''}
26199
26215
  ], MappingSpinner.prototype, "textHidden", void 0);
26200
26216
  const spinnerMapping = MappingSpinner.compose({
26201
26217
  baseName: 'mapping-spinner',
26202
- template: template$A,
26203
- styles: styles$G
26218
+ template: template$D,
26219
+ styles: styles$J
26204
26220
  });
26205
26221
  DesignSystem.getOrCreate().withPrefix('nimble').register(spinnerMapping());
26206
26222
 
@@ -26216,8 +26232,8 @@ so this becomes the fallback color for the slot */ ''}
26216
26232
  ], MappingText.prototype, "text", void 0);
26217
26233
  const textMapping = MappingText.compose({
26218
26234
  baseName: 'mapping-text',
26219
- template: template$A,
26220
- styles: styles$G
26235
+ template: template$D,
26236
+ styles: styles$J
26221
26237
  });
26222
26238
  DesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());
26223
26239
 
@@ -26519,7 +26535,7 @@ so this becomes the fallback color for the slot */ ''}
26519
26535
  observable
26520
26536
  ], Menu$1.prototype, "itemIcons", void 0);
26521
26537
 
26522
- const template$z = () => html `
26538
+ const template$C = () => html `
26523
26539
  <template
26524
26540
  slot="${x => {
26525
26541
  if (x.slot) {
@@ -26536,7 +26552,7 @@ so this becomes the fallback color for the slot */ ''}
26536
26552
  </template>
26537
26553
  `;
26538
26554
 
26539
- const styles$F = css `
26555
+ const styles$I = css `
26540
26556
  ${display$1('grid')}
26541
26557
 
26542
26558
  :host {
@@ -26607,8 +26623,8 @@ so this becomes the fallback color for the slot */ ''}
26607
26623
  const nimbleMenu = Menu.compose({
26608
26624
  baseName: 'menu',
26609
26625
  baseClass: Menu$1,
26610
- template: template$z,
26611
- styles: styles$F
26626
+ template: template$C,
26627
+ styles: styles$I
26612
26628
  });
26613
26629
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
26614
26630
 
@@ -26623,7 +26639,7 @@ so this becomes the fallback color for the slot */ ''}
26623
26639
  auto: 'auto'
26624
26640
  };
26625
26641
 
26626
- const styles$E = css `
26642
+ const styles$H = css `
26627
26643
  ${display$1('inline-block')}
26628
26644
 
26629
26645
  :host {
@@ -26641,7 +26657,7 @@ so this becomes the fallback color for the slot */ ''}
26641
26657
  }
26642
26658
  `;
26643
26659
 
26644
- const template$y = html `
26660
+ const template$B = html `
26645
26661
  <template
26646
26662
  ?open="${x => x.open}"
26647
26663
  @focusout="${(x, c) => x.focusoutHandler(c.event)}"
@@ -26891,8 +26907,8 @@ so this becomes the fallback color for the slot */ ''}
26891
26907
  ], MenuButton.prototype, "slottedMenus", void 0);
26892
26908
  const nimbleMenuButton = MenuButton.compose({
26893
26909
  baseName: 'menu-button',
26894
- template: template$y,
26895
- styles: styles$E,
26910
+ template: template$B,
26911
+ styles: styles$H,
26896
26912
  shadowOptions: {
26897
26913
  delegatesFocus: true
26898
26914
  }
@@ -26900,7 +26916,7 @@ so this becomes the fallback color for the slot */ ''}
26900
26916
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
26901
26917
  const menuButtonTag = 'nimble-menu-button';
26902
26918
 
26903
- const styles$D = css `
26919
+ const styles$G = css `
26904
26920
  ${display$1('grid')}
26905
26921
 
26906
26922
  :host {
@@ -26997,7 +27013,7 @@ so this becomes the fallback color for the slot */ ''}
26997
27013
  baseName: 'menu-item',
26998
27014
  baseClass: MenuItem$1,
26999
27015
  template: menuItemTemplate,
27000
- styles: styles$D,
27016
+ styles: styles$G,
27001
27017
  expandCollapseGlyph: arrowExpanderRight16X16.data
27002
27018
  });
27003
27019
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
@@ -27012,10 +27028,10 @@ so this becomes the fallback color for the slot */ ''}
27012
27028
  frameless: 'frameless'
27013
27029
  };
27014
27030
 
27015
- const styles$C = css `
27031
+ const styles$F = css `
27016
27032
  ${display$1('inline-block')}
27017
- ${styles$R}
27018
- ${styles$N}
27033
+ ${styles$U}
27034
+ ${styles$Q}
27019
27035
 
27020
27036
  :host {
27021
27037
  font: ${bodyFont};
@@ -27238,7 +27254,7 @@ so this becomes the fallback color for the slot */ ''}
27238
27254
  * The template for the {@link @ni/fast-foundation#(NumberField:class)} component.
27239
27255
  * @public
27240
27256
  */
27241
- const template$x = (context, definition) => html `
27257
+ const template$A = (context, definition) => html `
27242
27258
  <template class="${x => (x.readOnly ? 'readonly' : '')}">
27243
27259
  ${labelTemplate$4}
27244
27260
  <div class="root" part="root">
@@ -27392,8 +27408,8 @@ so this becomes the fallback color for the slot */ ''}
27392
27408
  const nimbleNumberField = NumberField.compose({
27393
27409
  baseName: 'number-field',
27394
27410
  baseClass: NumberField$1,
27395
- template: template$x,
27396
- styles: styles$C,
27411
+ template: template$A,
27412
+ styles: styles$F,
27397
27413
  shadowOptions: {
27398
27414
  delegatesFocus: true
27399
27415
  },
@@ -27436,7 +27452,7 @@ so this becomes the fallback color for the slot */ ''}
27436
27452
  });
27437
27453
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
27438
27454
 
27439
- const styles$B = css `
27455
+ const styles$E = css `
27440
27456
  ${display$1('inline-flex')}
27441
27457
 
27442
27458
  :host {
@@ -27536,15 +27552,15 @@ so this becomes the fallback color for the slot */ ''}
27536
27552
  baseName: 'radio',
27537
27553
  baseClass: Radio$1,
27538
27554
  template: radioTemplate,
27539
- styles: styles$B,
27555
+ styles: styles$E,
27540
27556
  checkedIndicator: circleFilled16X16.data
27541
27557
  });
27542
27558
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
27543
27559
 
27544
- const styles$A = css `
27560
+ const styles$D = css `
27545
27561
  ${display$1('inline-block')}
27546
- ${styles$R}
27547
- ${styles$N}
27562
+ ${styles$U}
27563
+ ${styles$Q}
27548
27564
 
27549
27565
  .positioning-region {
27550
27566
  display: flex;
@@ -27583,7 +27599,7 @@ so this becomes the fallback color for the slot */ ''}
27583
27599
  `;
27584
27600
 
27585
27601
  const labelTemplate$3 = createRequiredVisibleLabelTemplate(html `<slot name="label"></slot>`);
27586
- const template$w = html `
27602
+ const template$z = html `
27587
27603
  <template
27588
27604
  role="radiogroup"
27589
27605
  aria-disabled="${x => x.disabled}"
@@ -27623,8 +27639,8 @@ so this becomes the fallback color for the slot */ ''}
27623
27639
  const nimbleRadioGroup = RadioGroup.compose({
27624
27640
  baseName: 'radio-group',
27625
27641
  baseClass: RadioGroup$1,
27626
- template: template$w,
27627
- styles: styles$A,
27642
+ template: template$z,
27643
+ styles: styles$D,
27628
27644
  shadowOptions: {
27629
27645
  delegatesFocus: true
27630
27646
  }
@@ -33174,6 +33190,27 @@ so this becomes the fallback color for the slot */ ''}
33174
33190
  return this.steps.length > 0;
33175
33191
  }
33176
33192
  /**
33193
+ Return a single range, in post-transform document positions,
33194
+ that covers all content changed by this transform. Returns null
33195
+ if no replacements are made. Note that this will ignore changes
33196
+ that add/remove marks without replacing the underlying content.
33197
+ */
33198
+ changedRange() {
33199
+ let from = 1e9, to = -1e9;
33200
+ for (let i = 0; i < this.mapping.maps.length; i++) {
33201
+ let map = this.mapping.maps[i];
33202
+ if (i) {
33203
+ from = map.map(from, 1);
33204
+ to = map.map(to, -1);
33205
+ }
33206
+ map.forEach((_f, _t, fromB, toB) => {
33207
+ from = Math.min(from, fromB);
33208
+ to = Math.max(to, toB);
33209
+ });
33210
+ }
33211
+ return from == 1e9 ? null : { from, to };
33212
+ }
33213
+ /**
33177
33214
  @internal
33178
33215
  */
33179
33216
  addStep(step, doc) {
@@ -41825,8 +41862,12 @@ so this becomes the fallback color for the slot */ ''}
41825
41862
  }
41826
41863
  });
41827
41864
  };
41828
- if (view.hasFocus() && position === null || position === false) {
41829
- return true;
41865
+ try {
41866
+ if (view.hasFocus() && position === null || position === false) {
41867
+ return true;
41868
+ }
41869
+ } catch {
41870
+ return false;
41830
41871
  }
41831
41872
  if (dispatch && position === null && !isTextSelection(editor.state.selection)) {
41832
41873
  delayedFocus();
@@ -45271,19 +45312,20 @@ so this becomes the fallback color for the slot */ ''}
45271
45312
  this.node.content.forEach((node, offset) => {
45272
45313
  const isBlock = node.isBlock && !node.isTextblock;
45273
45314
  const isNonTextAtom = node.isAtom && !node.isText;
45315
+ const isInline = node.isInline;
45274
45316
  const targetPos = this.pos + offset + (isNonTextAtom ? 0 : 1);
45275
45317
  if (targetPos < 0 || targetPos > this.resolvedPos.doc.nodeSize - 2) {
45276
45318
  return;
45277
45319
  }
45278
45320
  const $pos = this.resolvedPos.doc.resolve(targetPos);
45279
- if (!isBlock && $pos.depth <= this.depth) {
45321
+ if (!isBlock && !isInline && $pos.depth <= this.depth) {
45280
45322
  return;
45281
45323
  }
45282
- const childNodePos = new _NodePos($pos, this.editor, isBlock, isBlock ? node : null);
45324
+ const childNodePos = new _NodePos($pos, this.editor, isBlock, isBlock || isInline ? node : null);
45283
45325
  if (isBlock) {
45284
45326
  childNodePos.actualDepth = this.depth + 1;
45285
45327
  }
45286
- children.push(new _NodePos($pos, this.editor, isBlock, isBlock ? node : null));
45328
+ children.push(childNodePos);
45287
45329
  });
45288
45330
  return children;
45289
45331
  }
@@ -46742,7 +46784,7 @@ ${renderedContent}
46742
46784
  // src/index.ts
46743
46785
  var index_default$7 = HardBreak;
46744
46786
 
46745
- const styles$z = css `
46787
+ const styles$C = css `
46746
46788
  ${display$1('inline')}
46747
46789
 
46748
46790
  .positioning-region {
@@ -46779,7 +46821,7 @@ ${renderedContent}
46779
46821
  baseName: 'toolbar',
46780
46822
  baseClass: Toolbar$1,
46781
46823
  template: toolbarTemplate,
46782
- styles: styles$z
46824
+ styles: styles$C
46783
46825
  });
46784
46826
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToolbar());
46785
46827
  const toolbarTag = 'nimble-toolbar';
@@ -46808,8 +46850,8 @@ ${renderedContent}
46808
46850
  cssCustomPropertyName: null
46809
46851
  }).withDefault(richTextLabelDefaults.richTextToggleNumberedListLabel);
46810
46852
 
46811
- const styles$y = css `
46812
- ${styles$O}
46853
+ const styles$B = css `
46854
+ ${styles$R}
46813
46855
 
46814
46856
  :host {
46815
46857
  height: auto;
@@ -46827,7 +46869,7 @@ ${renderedContent}
46827
46869
  }
46828
46870
  `;
46829
46871
 
46830
- const template$v = html `
46872
+ const template$y = html `
46831
46873
  <template>
46832
46874
  <${anchoredRegionTag}
46833
46875
  ${ref('region')}
@@ -47115,15 +47157,15 @@ ${renderedContent}
47115
47157
  ], RichTextMentionListbox.prototype, "anchorElement", void 0);
47116
47158
  const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
47117
47159
  baseName: 'rich-text-mention-listbox',
47118
- template: template$v,
47119
- styles: styles$y
47160
+ template: template$y,
47161
+ styles: styles$B
47120
47162
  });
47121
47163
  DesignSystem.getOrCreate()
47122
47164
  .withPrefix('nimble')
47123
47165
  .register(nimbleRichTextMentionListbox());
47124
47166
  const richTextMentionListboxTag = 'nimble-rich-text-mention-listbox';
47125
47167
 
47126
- const template$u = html `
47168
+ const template$x = html `
47127
47169
  <template
47128
47170
  ${children$1({ property: 'childItems', filter: elements() })}
47129
47171
  @focusout="${x => x.focusoutHandler()}"
@@ -47225,9 +47267,9 @@ ${renderedContent}
47225
47267
  </template>
47226
47268
  `;
47227
47269
 
47228
- const styles$x = css `
47270
+ const styles$A = css `
47229
47271
  ${display$1('inline-flex')}
47230
- ${styles$R}
47272
+ ${styles$U}
47231
47273
 
47232
47274
  :host {
47233
47275
  font: ${bodyFont};
@@ -56571,8 +56613,7 @@ ${renderedContent}
56571
56613
  }
56572
56614
  if (node && node.isText && marks.some(mark => {
56573
56615
  let info = this.getMark(mark.type.name);
56574
- return info && info.expelEnclosingWhitespace &&
56575
- (index == parent.childCount - 1 || !mark.isInSet(parent.child(index + 1).marks));
56616
+ return info && info.expelEnclosingWhitespace && !this.isMarkAhead(parent, index + 1, mark);
56576
56617
  })) {
56577
56618
  let [_, rest, trail] = /^(.*?)(\s*)$/m.exec(node.text);
56578
56619
  if (trail) {
@@ -56716,6 +56757,19 @@ ${renderedContent}
56716
56757
  trailing: (text.match(/(\s+)$/) || [undefined])[0]
56717
56758
  };
56718
56759
  }
56760
+ /**
56761
+ @internal
56762
+ */
56763
+ isMarkAhead(parent, index, mark) {
56764
+ for (;; index++) {
56765
+ if (index == parent.childCount)
56766
+ return false;
56767
+ let next = parent.child(index);
56768
+ if (next.type.name != this.options.hardBreakNodeName)
56769
+ return mark.isInSet(next.marks);
56770
+ index++;
56771
+ }
56772
+ }
56719
56773
  }
56720
56774
 
56721
56775
  var _a$4;
@@ -59414,31 +59468,33 @@ ${renderedContent}
59414
59468
  if (!view.editable) {
59415
59469
  return false;
59416
59470
  }
59471
+ let link = null;
59472
+ if (event.target instanceof HTMLAnchorElement) {
59473
+ link = event.target;
59474
+ } else {
59475
+ const target = event.target;
59476
+ if (!target) {
59477
+ return false;
59478
+ }
59479
+ const root = options.editor.view.dom;
59480
+ link = target.closest("a");
59481
+ if (link && !root.contains(link)) {
59482
+ link = null;
59483
+ }
59484
+ }
59485
+ if (!link) {
59486
+ return false;
59487
+ }
59417
59488
  let handled = false;
59418
59489
  if (options.enableClickSelection) {
59419
59490
  const commandResult = options.editor.commands.extendMarkRange(options.type.name);
59420
59491
  handled = commandResult;
59421
59492
  }
59422
59493
  if (options.openOnClick) {
59423
- let link = null;
59424
- if (event.target instanceof HTMLAnchorElement) {
59425
- link = event.target;
59426
- } else {
59427
- let a = event.target;
59428
- const els = [];
59429
- while (a.nodeName !== "DIV") {
59430
- els.push(a);
59431
- a = a.parentNode;
59432
- }
59433
- link = els.find((value) => value.nodeName === "A");
59434
- }
59435
- if (!link) {
59436
- return handled;
59437
- }
59438
59494
  const attrs = getAttributes(view.state, options.type.name);
59439
- const href = (_a = link == null ? void 0 : link.href) != null ? _a : attrs.href;
59440
- const target = (_b = link == null ? void 0 : link.target) != null ? _b : attrs.target;
59441
- if (link && href) {
59495
+ const href = (_a = link.href) != null ? _a : attrs.href;
59496
+ const target = (_b = link.target) != null ? _b : attrs.target;
59497
+ if (href) {
59442
59498
  window.open(href, target);
59443
59499
  handled = true;
59444
59500
  }
@@ -59875,11 +59931,13 @@ ${renderedContent}
59875
59931
  node,
59876
59932
  h,
59877
59933
  (context) => {
59934
+ var _a, _b;
59878
59935
  if (context.parentType === "bulletList") {
59879
59936
  return "- ";
59880
59937
  }
59881
59938
  if (context.parentType === "orderedList") {
59882
- return `${context.index + 1}. `;
59939
+ const start = ((_b = (_a = context.meta) == null ? void 0 : _a.parentAttrs) == null ? void 0 : _b.start) || 1;
59940
+ return `${start + context.index}. `;
59883
59941
  }
59884
59942
  return "- ";
59885
59943
  },
@@ -61331,6 +61389,8 @@ ${nextLine.slice(indentLevel + 2)}`;
61331
61389
  var index_default$2 = Mention;
61332
61390
 
61333
61391
  // src/paragraph.ts
61392
+ var EMPTY_PARAGRAPH_MARKDOWN = "&nbsp;";
61393
+ var NBSP_CHAR = "\xA0";
61334
61394
  var Paragraph = Node3.create({
61335
61395
  name: "paragraph",
61336
61396
  priority: 1e3,
@@ -61352,18 +61412,21 @@ ${nextLine.slice(indentLevel + 2)}`;
61352
61412
  if (tokens.length === 1 && tokens[0].type === "image") {
61353
61413
  return helpers.parseChildren([tokens[0]]);
61354
61414
  }
61355
- return helpers.createNode(
61356
- "paragraph",
61357
- void 0,
61358
- // no attributes for paragraph
61359
- helpers.parseInline(tokens)
61360
- );
61415
+ const content = helpers.parseInline(tokens);
61416
+ if (content.length === 1 && content[0].type === "text" && (content[0].text === EMPTY_PARAGRAPH_MARKDOWN || content[0].text === NBSP_CHAR)) {
61417
+ return helpers.createNode("paragraph", void 0, []);
61418
+ }
61419
+ return helpers.createNode("paragraph", void 0, content);
61361
61420
  },
61362
61421
  renderMarkdown: (node, h) => {
61363
- if (!node || !Array.isArray(node.content)) {
61422
+ if (!node) {
61364
61423
  return "";
61365
61424
  }
61366
- return h.renderChildren(node.content);
61425
+ const content = Array.isArray(node.content) ? node.content : [];
61426
+ if (content.length === 0) {
61427
+ return EMPTY_PARAGRAPH_MARKDOWN;
61428
+ }
61429
+ return h.renderChildren(content);
61367
61430
  },
61368
61431
  addCommands() {
61369
61432
  return {
@@ -62574,12 +62637,17 @@ ${nextLine.slice(indentLevel + 2)}`;
62574
62637
  };
62575
62638
  }
62576
62639
  });
62640
+ var DEFAULT_DATA_ATTRIBUTE = "placeholder";
62641
+ function preparePlaceholderAttribute(attr) {
62642
+ return attr.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
62643
+ }
62577
62644
  var Placeholder = Extension.create({
62578
62645
  name: "placeholder",
62579
62646
  addOptions() {
62580
62647
  return {
62581
62648
  emptyEditorClass: "is-editor-empty",
62582
62649
  emptyNodeClass: "is-empty",
62650
+ dataAttribute: DEFAULT_DATA_ATTRIBUTE,
62583
62651
  placeholder: "Write something \u2026",
62584
62652
  showOnlyWhenEditable: true,
62585
62653
  showOnlyCurrent: true,
@@ -62587,6 +62655,7 @@ ${nextLine.slice(indentLevel + 2)}`;
62587
62655
  };
62588
62656
  },
62589
62657
  addProseMirrorPlugins() {
62658
+ const dataAttribute = this.options.dataAttribute ? `data-${preparePlaceholderAttribute(this.options.dataAttribute)}` : `data-${DEFAULT_DATA_ATTRIBUTE}`;
62590
62659
  return [
62591
62660
  new Plugin({
62592
62661
  key: new PluginKey("placeholder"),
@@ -62609,7 +62678,7 @@ ${nextLine.slice(indentLevel + 2)}`;
62609
62678
  }
62610
62679
  const decoration = Decoration.node(pos, pos + node.nodeSize, {
62611
62680
  class: classes.join(" "),
62612
- "data-placeholder": typeof this.options.placeholder === "function" ? this.options.placeholder({
62681
+ [dataAttribute]: typeof this.options.placeholder === "function" ? this.options.placeholder({
62613
62682
  editor: this.editor,
62614
62683
  node,
62615
62684
  pos,
@@ -63574,8 +63643,8 @@ ${nextLine.slice(indentLevel + 2)}`;
63574
63643
  applyMixins(RichTextEditor, ARIAGlobalStatesAndProperties);
63575
63644
  const nimbleRichTextEditor = RichTextEditor.compose({
63576
63645
  baseName: 'rich-text-editor',
63577
- template: template$u,
63578
- styles: styles$x,
63646
+ template: template$x,
63647
+ styles: styles$A,
63579
63648
  shadowOptions: {
63580
63649
  delegatesFocus: true
63581
63650
  }
@@ -63584,13 +63653,13 @@ ${nextLine.slice(indentLevel + 2)}`;
63584
63653
  .withPrefix('nimble')
63585
63654
  .register(nimbleRichTextEditor());
63586
63655
 
63587
- const template$t = html `
63656
+ const template$w = html `
63588
63657
  <template ${children$1({ property: 'childItems', filter: elements() })}>
63589
63658
  <div ${ref('viewer')} class="viewer"></div>
63590
63659
  </template>
63591
63660
  `;
63592
63661
 
63593
- const styles$w = css `
63662
+ const styles$z = css `
63594
63663
  ${display$1('flex')}
63595
63664
 
63596
63665
  :host {
@@ -63703,17 +63772,17 @@ ${nextLine.slice(indentLevel + 2)}`;
63703
63772
  ], RichTextViewer.prototype, "markdown", void 0);
63704
63773
  const nimbleRichTextViewer = RichTextViewer.compose({
63705
63774
  baseName: 'rich-text-viewer',
63706
- template: template$t,
63707
- styles: styles$w
63775
+ template: template$w,
63776
+ styles: styles$z
63708
63777
  });
63709
63778
  DesignSystem.getOrCreate()
63710
63779
  .withPrefix('nimble')
63711
63780
  .register(nimbleRichTextViewer());
63712
63781
 
63713
- const styles$v = css `
63714
- ${styles$O}
63782
+ const styles$y = css `
63715
63783
  ${styles$R}
63716
- ${styles$N}
63784
+ ${styles$U}
63785
+ ${styles$Q}
63717
63786
 
63718
63787
  ${
63719
63788
  /* We are using flex `order` to define the visual ordering of the selected value,
@@ -63876,7 +63945,7 @@ ${nextLine.slice(indentLevel + 2)}`;
63876
63945
  }
63877
63946
  `));
63878
63947
 
63879
- const styles$u = css `
63948
+ const styles$x = css `
63880
63949
  ${display$1('inline-grid')}
63881
63950
 
63882
63951
  :host {
@@ -64046,7 +64115,7 @@ ${nextLine.slice(indentLevel + 2)}`;
64046
64115
  }
64047
64116
  `));
64048
64117
 
64049
- const template$s = html `
64118
+ const template$v = html `
64050
64119
  <template role="progressbar">
64051
64120
  ${''
64052
64121
  /**
@@ -64093,8 +64162,8 @@ ${nextLine.slice(indentLevel + 2)}`;
64093
64162
  ], Spinner.prototype, "appearance", void 0);
64094
64163
  const nimbleSpinner = Spinner.compose({
64095
64164
  baseName: 'spinner',
64096
- template: template$s,
64097
- styles: styles$u
64165
+ template: template$v,
64166
+ styles: styles$x
64098
64167
  });
64099
64168
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
64100
64169
  const spinnerTag = 'nimble-spinner';
@@ -64110,7 +64179,7 @@ ${nextLine.slice(indentLevel + 2)}`;
64110
64179
  <slot ${ref('labelSlot')}></slot>
64111
64180
  </label>
64112
64181
  `);
64113
- const template$r = (context, definition) => html `
64182
+ const template$u = (context, definition) => html `
64114
64183
  <template
64115
64184
  class="${x => [
64116
64185
  x.collapsible && 'collapsible',
@@ -65326,8 +65395,8 @@ ${nextLine.slice(indentLevel + 2)}`;
65326
65395
  const nimbleSelect = Select.compose({
65327
65396
  baseName: 'select',
65328
65397
  baseClass: Select$2,
65329
- template: template$r,
65330
- styles: styles$v,
65398
+ template: template$u,
65399
+ styles: styles$y,
65331
65400
  indicator: arrowExpanderDown16X16.data,
65332
65401
  end: html `
65333
65402
  <${iconExclamationMarkTag}
@@ -65340,7 +65409,7 @@ ${nextLine.slice(indentLevel + 2)}`;
65340
65409
  applyMixins(Select, StartEnd, DelegatesARIASelect);
65341
65410
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
65342
65411
 
65343
- const styles$t = css `
65412
+ const styles$w = css `
65344
65413
  ${display$1('inline-flex')}
65345
65414
 
65346
65415
  :host {
@@ -65502,7 +65571,7 @@ ${nextLine.slice(indentLevel + 2)}`;
65502
65571
  }
65503
65572
  `));
65504
65573
 
65505
- const template$q = html `
65574
+ const template$t = html `
65506
65575
  <template
65507
65576
  role="switch"
65508
65577
  aria-checked="${x => x.checked}"
@@ -65546,12 +65615,12 @@ ${nextLine.slice(indentLevel + 2)}`;
65546
65615
  const nimbleSwitch = Switch.compose({
65547
65616
  baseClass: Switch$1,
65548
65617
  baseName: 'switch',
65549
- template: template$q,
65550
- styles: styles$t
65618
+ template: template$t,
65619
+ styles: styles$w
65551
65620
  });
65552
65621
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
65553
65622
 
65554
- const styles$s = css `
65623
+ const styles$v = css `
65555
65624
  ${display$1('inline-flex')}
65556
65625
 
65557
65626
  :host {
@@ -65662,11 +65731,11 @@ ${nextLine.slice(indentLevel + 2)}`;
65662
65731
  baseName: 'tab',
65663
65732
  baseClass: Tab$1,
65664
65733
  template: tabTemplate,
65665
- styles: styles$s
65734
+ styles: styles$v
65666
65735
  });
65667
65736
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
65668
65737
 
65669
- const styles$r = css `
65738
+ const styles$u = css `
65670
65739
  ${display$1('block')}
65671
65740
 
65672
65741
  :host {
@@ -65685,7 +65754,7 @@ ${nextLine.slice(indentLevel + 2)}`;
65685
65754
  baseName: 'tab-panel',
65686
65755
  baseClass: TabPanel$1,
65687
65756
  template: tabPanelTemplate,
65688
- styles: styles$r
65757
+ styles: styles$u
65689
65758
  });
65690
65759
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabPanel());
65691
65760
 
@@ -69411,7 +69480,7 @@ ${nextLine.slice(indentLevel + 2)}`;
69411
69480
  }
69412
69481
  }
69413
69482
 
69414
- const styles$q = css `
69483
+ const styles$t = css `
69415
69484
  ${display$1('flex')}
69416
69485
 
69417
69486
  :host {
@@ -69631,7 +69700,7 @@ focus outline in that case.
69631
69700
  }
69632
69701
  `));
69633
69702
 
69634
- const styles$p = css `
69703
+ const styles$s = css `
69635
69704
  ${display$1('flex')}
69636
69705
 
69637
69706
  :host {
@@ -69664,7 +69733,7 @@ focus outline in that case.
69664
69733
  }
69665
69734
  `;
69666
69735
 
69667
- const template$p = html `
69736
+ const template$s = html `
69668
69737
  <template role="columnheader"
69669
69738
  class="${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}"
69670
69739
  aria-sort="${x => x.ariaSort}"
@@ -69750,13 +69819,13 @@ focus outline in that case.
69750
69819
  ], TableHeader.prototype, "isGrouped", void 0);
69751
69820
  const nimbleTableHeader = TableHeader.compose({
69752
69821
  baseName: 'table-header',
69753
- template: template$p,
69754
- styles: styles$p
69822
+ template: template$s,
69823
+ styles: styles$s
69755
69824
  });
69756
69825
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
69757
69826
  const tableHeaderTag = 'nimble-table-header';
69758
69827
 
69759
- const styles$o = css `
69828
+ const styles$r = css `
69760
69829
  :host .animating {
69761
69830
  transition: ${mediumDelay} ease-in;
69762
69831
  }
@@ -69781,9 +69850,9 @@ focus outline in that case.
69781
69850
  }
69782
69851
  `;
69783
69852
 
69784
- const styles$n = css `
69853
+ const styles$q = css `
69785
69854
  ${display$1('flex')}
69786
- ${styles$o}
69855
+ ${styles$r}
69787
69856
 
69788
69857
  :host {
69789
69858
  width: fit-content;
@@ -69953,7 +70022,7 @@ focus outline in that case.
69953
70022
  }
69954
70023
  `));
69955
70024
 
69956
- const styles$m = css `
70025
+ const styles$p = css `
69957
70026
  ${display$1('flex')}
69958
70027
 
69959
70028
  :host {
@@ -69998,7 +70067,7 @@ focus outline in that case.
69998
70067
  }
69999
70068
  `;
70000
70069
 
70001
- const template$o = html `
70070
+ const template$r = html `
70002
70071
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${x => x.nestingLevel}"
70003
70072
  @focusin="${x => x.onCellFocusIn()}"
70004
70073
  @blur="${x => x.onCellBlur()}"
@@ -70095,13 +70164,13 @@ focus outline in that case.
70095
70164
  ], TableCell.prototype, "nestingLevel", void 0);
70096
70165
  const nimbleTableCell = TableCell.compose({
70097
70166
  baseName: 'table-cell',
70098
- template: template$o,
70099
- styles: styles$m
70167
+ template: template$r,
70168
+ styles: styles$p
70100
70169
  });
70101
70170
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
70102
70171
  const tableCellTag = 'nimble-table-cell';
70103
70172
 
70104
- const template$n = html `
70173
+ const template$q = html `
70105
70174
  <template
70106
70175
  role="row"
70107
70176
  aria-selected=${x => x.ariaSelected}
@@ -70501,15 +70570,15 @@ focus outline in that case.
70501
70570
  ], TableRow.prototype, "ariaSelected", null);
70502
70571
  const nimbleTableRow = TableRow.compose({
70503
70572
  baseName: 'table-row',
70504
- template: template$n,
70505
- styles: styles$n
70573
+ template: template$q,
70574
+ styles: styles$q
70506
70575
  });
70507
70576
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableRow());
70508
70577
  const tableRowTag = 'nimble-table-row';
70509
70578
 
70510
- const styles$l = css `
70579
+ const styles$o = css `
70511
70580
  ${display$1('grid')}
70512
- ${styles$o}
70581
+ ${styles$r}
70513
70582
 
70514
70583
  :host {
70515
70584
  align-items: center;
@@ -70597,7 +70666,7 @@ focus outline in that case.
70597
70666
  }
70598
70667
  `));
70599
70668
 
70600
- const template$m = html `
70669
+ const template$p = html `
70601
70670
  <template
70602
70671
  role="row"
70603
70672
  @click=${x => x.onGroupExpandToggle()}
@@ -70754,13 +70823,13 @@ focus outline in that case.
70754
70823
  ], TableGroupRow.prototype, "allowHover", void 0);
70755
70824
  const nimbleTableGroupRow = TableGroupRow.compose({
70756
70825
  baseName: 'table-group-row',
70757
- template: template$m,
70758
- styles: styles$l
70826
+ template: template$p,
70827
+ styles: styles$o
70759
70828
  });
70760
70829
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
70761
70830
  const tableGroupRowTag = 'nimble-table-group-row';
70762
70831
 
70763
- const template$l = html `
70832
+ const template$o = html `
70764
70833
  <template
70765
70834
  role="treegrid"
70766
70835
  ${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
@@ -74999,12 +75068,12 @@ focus outline in that case.
74999
75068
  ], Table$1.prototype, "windowShiftKeyDown", void 0);
75000
75069
  const nimbleTable = Table$1.compose({
75001
75070
  baseName: 'table',
75002
- template: template$l,
75003
- styles: styles$q
75071
+ template: template$o,
75072
+ styles: styles$t
75004
75073
  });
75005
75074
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
75006
75075
 
75007
- const styles$k = css `
75076
+ const styles$n = css `
75008
75077
  ${display$1('contents')}
75009
75078
 
75010
75079
  .header-content {
@@ -75016,7 +75085,7 @@ focus outline in that case.
75016
75085
 
75017
75086
  // Avoiding a wrapping <template> and be careful about starting and ending whitspace
75018
75087
  // so the template can be composed into other column header templates
75019
- const template$k = html `<span
75088
+ const template$n = html `<span
75020
75089
  ${overflow('hasOverflow')}
75021
75090
  class="header-content"
75022
75091
  title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
@@ -75081,7 +75150,7 @@ focus outline in that case.
75081
75150
  return ColumnWithPlaceholder;
75082
75151
  }
75083
75152
 
75084
- const styles$j = css `
75153
+ const styles$m = css `
75085
75154
  ${display$1('flex')}
75086
75155
 
75087
75156
  :host {
@@ -75112,7 +75181,7 @@ focus outline in that case.
75112
75181
  }
75113
75182
  `;
75114
75183
 
75115
- const template$j = html `
75184
+ const template$m = html `
75116
75185
  <template
75117
75186
  @click="${(x, c) => {
75118
75187
  if (typeof x.cellRecord?.href === 'string') {
@@ -75204,8 +75273,8 @@ focus outline in that case.
75204
75273
  ], TableColumnAnchorCellView.prototype, "showAnchor", null);
75205
75274
  const anchorCellView = TableColumnAnchorCellView.compose({
75206
75275
  baseName: 'table-column-anchor-cell-view',
75207
- template: template$j,
75208
- styles: styles$j
75276
+ template: template$m,
75277
+ styles: styles$m
75209
75278
  });
75210
75279
  DesignSystem.getOrCreate().withPrefix('nimble').register(anchorCellView());
75211
75280
  const tableColumnAnchorCellViewTag = 'nimble-table-column-anchor-cell-view';
@@ -75282,7 +75351,7 @@ focus outline in that case.
75282
75351
  observable
75283
75352
  ], TableColumnTextGroupHeaderViewBase.prototype, "text", void 0);
75284
75353
 
75285
- const template$i = html `
75354
+ const template$l = html `
75286
75355
  <span
75287
75356
  ${overflow('hasOverflow')}
75288
75357
  title="${x => (x.hasOverflow && x.text ? x.text : null)}"
@@ -75291,7 +75360,7 @@ focus outline in that case.
75291
75360
  </span>
75292
75361
  `;
75293
75362
 
75294
- const styles$i = css `
75363
+ const styles$l = css `
75295
75364
  ${display$1('flex')}
75296
75365
 
75297
75366
  span {
@@ -75315,8 +75384,8 @@ focus outline in that case.
75315
75384
  }
75316
75385
  const tableColumnTextGroupHeaderView = TableColumnTextGroupHeaderView.compose({
75317
75386
  baseName: 'table-column-text-group-header-view',
75318
- template: template$i,
75319
- styles: styles$i
75387
+ template: template$l,
75388
+ styles: styles$l
75320
75389
  });
75321
75390
  DesignSystem.getOrCreate()
75322
75391
  .withPrefix('nimble')
@@ -75560,8 +75629,8 @@ focus outline in that case.
75560
75629
  ], TableColumnAnchor.prototype, "download", void 0);
75561
75630
  const nimbleTableColumnAnchor = TableColumnAnchor.compose({
75562
75631
  baseName: 'table-column-anchor',
75563
- template: template$k,
75564
- styles: styles$k
75632
+ template: template$n,
75633
+ styles: styles$n
75565
75634
  });
75566
75635
  DesignSystem.getOrCreate()
75567
75636
  .withPrefix('nimble')
@@ -75613,15 +75682,15 @@ focus outline in that case.
75613
75682
  }
75614
75683
  const tableColumnDateTextGroupHeaderView = TableColumnDateTextGroupHeaderView.compose({
75615
75684
  baseName: 'table-column-date-text-group-header-view',
75616
- template: template$i,
75617
- styles: styles$i
75685
+ template: template$l,
75686
+ styles: styles$l
75618
75687
  });
75619
75688
  DesignSystem.getOrCreate()
75620
75689
  .withPrefix('nimble')
75621
75690
  .register(tableColumnDateTextGroupHeaderView());
75622
75691
  const tableColumnDateTextGroupHeaderViewTag = 'nimble-table-column-date-text-group-header-view';
75623
75692
 
75624
- const template$h = html `
75693
+ const template$k = html `
75625
75694
  <template
75626
75695
  class="
75627
75696
  ${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}
@@ -75637,7 +75706,7 @@ focus outline in that case.
75637
75706
  </template>
75638
75707
  `;
75639
75708
 
75640
- const styles$h = css `
75709
+ const styles$k = css `
75641
75710
  ${display$1('flex')}
75642
75711
 
75643
75712
  :host {
@@ -75739,8 +75808,8 @@ focus outline in that case.
75739
75808
  }
75740
75809
  const dateTextCellView = TableColumnDateTextCellView.compose({
75741
75810
  baseName: 'table-column-date-text-cell-view',
75742
- template: template$h,
75743
- styles: styles$h
75811
+ template: template$k,
75812
+ styles: styles$k
75744
75813
  });
75745
75814
  DesignSystem.getOrCreate().withPrefix('nimble').register(dateTextCellView());
75746
75815
  const tableColumnDateTextCellViewTag = 'nimble-table-column-date-text-cell-view';
@@ -75998,8 +76067,8 @@ focus outline in that case.
75998
76067
  ], TableColumnDateText.prototype, "customHourCycle", void 0);
75999
76068
  const nimbleTableColumnDateText = TableColumnDateText.compose({
76000
76069
  baseName: 'table-column-date-text',
76001
- template: template$k,
76002
- styles: styles$k
76070
+ template: template$n,
76071
+ styles: styles$n
76003
76072
  });
76004
76073
  DesignSystem.getOrCreate()
76005
76074
  .withPrefix('nimble')
@@ -76015,8 +76084,8 @@ focus outline in that case.
76015
76084
  }
76016
76085
  const durationTextCellView = TableColumnDurationTextCellView.compose({
76017
76086
  baseName: 'table-column-duration-text-cell-view',
76018
- template: template$h,
76019
- styles: styles$h
76087
+ template: template$k,
76088
+ styles: styles$k
76020
76089
  });
76021
76090
  DesignSystem.getOrCreate()
76022
76091
  .withPrefix('nimble')
@@ -76117,8 +76186,8 @@ focus outline in that case.
76117
76186
  }
76118
76187
  const tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({
76119
76188
  baseName: 'table-column-duration-text-group-header-view',
76120
- template: template$i,
76121
- styles: styles$i
76189
+ template: template$l,
76190
+ styles: styles$l
76122
76191
  });
76123
76192
  DesignSystem.getOrCreate()
76124
76193
  .withPrefix('nimble')
@@ -76170,8 +76239,8 @@ focus outline in that case.
76170
76239
  }
76171
76240
  const nimbleTableColumnDurationText = TableColumnDurationText.compose({
76172
76241
  baseName: 'table-column-duration-text',
76173
- template: template$k,
76174
- styles: styles$k
76242
+ template: template$n,
76243
+ styles: styles$n
76175
76244
  });
76176
76245
  DesignSystem.getOrCreate()
76177
76246
  .withPrefix('nimble')
@@ -76279,15 +76348,15 @@ focus outline in that case.
76279
76348
  attr({ attribute: 'key-type' })
76280
76349
  ], TableColumnEnumBase.prototype, "keyType", void 0);
76281
76350
 
76282
- const styles$g = css `
76283
- ${styles$k}
76351
+ const styles$j = css `
76352
+ ${styles$n}
76284
76353
 
76285
76354
  slot[name='mapping'] {
76286
76355
  display: none;
76287
76356
  }
76288
76357
  `;
76289
76358
 
76290
- const template$g = html `${template$k}<slot ${slotted('mappings')} name="mapping"></slot>`;
76359
+ const template$j = html `${template$n}<slot ${slotted('mappings')} name="mapping"></slot>`;
76291
76360
 
76292
76361
  const enumBaseValidityFlagNames = [
76293
76362
  'invalidMappingKeyValueForType',
@@ -76373,7 +76442,7 @@ focus outline in that case.
76373
76442
  }
76374
76443
  }
76375
76444
 
76376
- const styles$f = css `
76445
+ const styles$i = css `
76377
76446
  ${display$1('inline-flex')}
76378
76447
 
76379
76448
  :host {
@@ -76397,7 +76466,7 @@ focus outline in that case.
76397
76466
  }
76398
76467
  `;
76399
76468
 
76400
- const template$f = html `
76469
+ const template$i = html `
76401
76470
  ${when(x => x.visualizationTemplate, html `
76402
76471
  <span class="reserve-icon-size">
76403
76472
  ${x => x.visualizationTemplate}
@@ -76541,15 +76610,15 @@ focus outline in that case.
76541
76610
  ], TableColumnMappingGroupHeaderView.prototype, "visualizationTemplate", void 0);
76542
76611
  const mappingGroupHeaderView = TableColumnMappingGroupHeaderView.compose({
76543
76612
  baseName: 'table-column-mapping-group-header-view',
76544
- template: template$f,
76545
- styles: styles$f
76613
+ template: template$i,
76614
+ styles: styles$i
76546
76615
  });
76547
76616
  DesignSystem.getOrCreate()
76548
76617
  .withPrefix('nimble')
76549
76618
  .register(mappingGroupHeaderView());
76550
76619
  const tableColumnMappingGroupHeaderViewTag = 'nimble-table-column-mapping-group-header-view';
76551
76620
 
76552
- const styles$e = css `
76621
+ const styles$h = css `
76553
76622
  ${display$1('inline-flex')}
76554
76623
 
76555
76624
  :host {
@@ -76573,7 +76642,7 @@ focus outline in that case.
76573
76642
  }
76574
76643
  `;
76575
76644
 
76576
- const template$e = html `
76645
+ const template$h = html `
76577
76646
  ${when(x => x.visualizationTemplate, html `
76578
76647
  <span class="reserve-icon-size">
76579
76648
  ${x => x.visualizationTemplate}
@@ -76660,8 +76729,8 @@ focus outline in that case.
76660
76729
  ], TableColumnMappingCellView.prototype, "hasOverflow", void 0);
76661
76730
  const mappingCellView = TableColumnMappingCellView.compose({
76662
76731
  baseName: 'table-column-mapping-cell-view',
76663
- template: template$e,
76664
- styles: styles$e
76732
+ template: template$h,
76733
+ styles: styles$h
76665
76734
  });
76666
76735
  DesignSystem.getOrCreate().withPrefix('nimble').register(mappingCellView());
76667
76736
  const tableColumnMappingCellViewTag = 'nimble-table-column-mapping-cell-view';
@@ -76744,23 +76813,23 @@ focus outline in that case.
76744
76813
  ], TableColumnMapping.prototype, "widthMode", void 0);
76745
76814
  const nimbleTableColumnMapping = TableColumnMapping.compose({
76746
76815
  baseName: 'table-column-mapping',
76747
- template: template$g,
76748
- styles: styles$g
76816
+ template: template$j,
76817
+ styles: styles$j
76749
76818
  });
76750
76819
  DesignSystem.getOrCreate()
76751
76820
  .withPrefix('nimble')
76752
76821
  .register(nimbleTableColumnMapping());
76753
76822
 
76754
- const template$d = html `
76823
+ const template$g = html `
76755
76824
  <template @delegated-event="${(x, c) => x.onDelegatedEvent(c.event)}"
76756
- >${template$k}</template
76825
+ >${template$n}</template
76757
76826
  >
76758
76827
  `;
76759
76828
 
76760
76829
  /** @internal */
76761
76830
  const cellViewMenuSlotName = 'menu-button-menu';
76762
76831
 
76763
- const template$c = html `
76832
+ const template$f = html `
76764
76833
  ${when(x => x.showMenuButton, html `
76765
76834
  <${menuButtonTag}
76766
76835
  ${ref('menuButton')}
@@ -76779,7 +76848,7 @@ focus outline in that case.
76779
76848
  `)}
76780
76849
  `;
76781
76850
 
76782
- const styles$d = css `
76851
+ const styles$g = css `
76783
76852
  :host {
76784
76853
  align-self: center;
76785
76854
  width: 100%;
@@ -76854,8 +76923,8 @@ focus outline in that case.
76854
76923
  ], TableColumnMenuButtonCellView.prototype, "showMenuButton", null);
76855
76924
  const menuButtonCellView = TableColumnMenuButtonCellView.compose({
76856
76925
  baseName: 'table-column-menu-button-cell-view',
76857
- template: template$c,
76858
- styles: styles$d
76926
+ template: template$f,
76927
+ styles: styles$g
76859
76928
  });
76860
76929
  DesignSystem.getOrCreate().withPrefix('nimble').register(menuButtonCellView());
76861
76930
  const tableColumnMenuButtonCellViewTag = 'nimble-table-column-menu-button-cell-view';
@@ -76910,8 +76979,8 @@ focus outline in that case.
76910
76979
  ], TableColumnMenuButton.prototype, "menuSlot", void 0);
76911
76980
  const nimbleTableColumnMenuButton = TableColumnMenuButton.compose({
76912
76981
  baseName: 'table-column-menu-button',
76913
- template: template$d,
76914
- styles: styles$k
76982
+ template: template$g,
76983
+ styles: styles$n
76915
76984
  });
76916
76985
  DesignSystem.getOrCreate()
76917
76986
  .withPrefix('nimble')
@@ -76919,7 +76988,7 @@ focus outline in that case.
76919
76988
 
76920
76989
  // Avoiding a wrapping <template> and be careful about starting and ending whitespace
76921
76990
  // so the template can be composed into other column header templates
76922
- const template$b = html `<span
76991
+ const template$e = html `<span
76923
76992
  ${overflow('hasOverflow')}
76924
76993
  class="header-content"
76925
76994
  title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
@@ -76938,8 +77007,8 @@ focus outline in that case.
76938
77007
  }
76939
77008
  const tableColumnNumberTextGroupHeaderView = TableColumnNumberTextGroupHeaderView.compose({
76940
77009
  baseName: 'table-column-number-text-group-header-view',
76941
- template: template$i,
76942
- styles: styles$i
77010
+ template: template$l,
77011
+ styles: styles$l
76943
77012
  });
76944
77013
  DesignSystem.getOrCreate()
76945
77014
  .withPrefix('nimble')
@@ -76960,8 +77029,8 @@ focus outline in that case.
76960
77029
  }
76961
77030
  const numberTextCellView = TableColumnNumberTextCellView.compose({
76962
77031
  baseName: 'table-column-number-text-cell-view',
76963
- template: template$h,
76964
- styles: styles$h
77032
+ template: template$k,
77033
+ styles: styles$k
76965
77034
  });
76966
77035
  DesignSystem.getOrCreate().withPrefix('nimble').register(numberTextCellView());
76967
77036
  const tableColumnNumberTextCellViewTag = 'nimble-table-column-number-text-cell-view';
@@ -77501,8 +77570,8 @@ focus outline in that case.
77501
77570
  ], TableColumnNumberText.prototype, "unit", void 0);
77502
77571
  const nimbleTableColumnNumberText = TableColumnNumberText.compose({
77503
77572
  baseName: 'table-column-number-text',
77504
- template: template$b,
77505
- styles: styles$k
77573
+ template: template$e,
77574
+ styles: styles$n
77506
77575
  });
77507
77576
  DesignSystem.getOrCreate()
77508
77577
  .withPrefix('nimble')
@@ -77520,8 +77589,8 @@ focus outline in that case.
77520
77589
  }
77521
77590
  const textCellView = TableColumnTextCellView.compose({
77522
77591
  baseName: 'table-column-text-cell-view',
77523
- template: template$h,
77524
- styles: styles$h
77592
+ template: template$k,
77593
+ styles: styles$k
77525
77594
  });
77526
77595
  DesignSystem.getOrCreate().withPrefix('nimble').register(textCellView());
77527
77596
  const tableColumnTextCellViewTag = 'nimble-table-column-text-cell-view';
@@ -77575,15 +77644,15 @@ focus outline in that case.
77575
77644
  }
77576
77645
  const nimbleTableColumnText = TableColumnText.compose({
77577
77646
  baseName: 'table-column-text',
77578
- template: template$k,
77579
- styles: styles$k
77647
+ template: template$n,
77648
+ styles: styles$n
77580
77649
  });
77581
77650
  DesignSystem.getOrCreate()
77582
77651
  .withPrefix('nimble')
77583
77652
  .register(nimbleTableColumnText());
77584
77653
 
77585
- const styles$c = css `
77586
- ${styles$$}
77654
+ const styles$f = css `
77655
+ ${styles$12}
77587
77656
 
77588
77657
  .tabpanel {
77589
77658
  overflow: auto;
@@ -77664,12 +77733,12 @@ focus outline in that case.
77664
77733
  const nimbleTabs = Tabs.compose({
77665
77734
  baseName: 'tabs',
77666
77735
  baseClass: Tabs$1,
77667
- template: template$L,
77668
- styles: styles$c
77736
+ template: template$O,
77737
+ styles: styles$f
77669
77738
  });
77670
77739
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabs());
77671
77740
 
77672
- const styles$b = css `
77741
+ const styles$e = css `
77673
77742
  ${display$1('flex')}
77674
77743
 
77675
77744
  :host {
@@ -77701,7 +77770,7 @@ focus outline in that case.
77701
77770
  }
77702
77771
  `;
77703
77772
 
77704
- const template$a = (context, definition) => html `
77773
+ const template$d = (context, definition) => html `
77705
77774
  <template slot="end">
77706
77775
  ${when(x => x.defaultSlottedElements.length > 0, html `
77707
77776
  <div class="separator"></div>
@@ -77733,8 +77802,8 @@ focus outline in that case.
77733
77802
  ], TabsToolbar.prototype, "defaultSlottedElements", void 0);
77734
77803
  const nimbleTabsToolbar = TabsToolbar.compose({
77735
77804
  baseName: 'tabs-toolbar',
77736
- template: template$a,
77737
- styles: styles$b
77805
+ template: template$d,
77806
+ styles: styles$e
77738
77807
  });
77739
77808
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabsToolbar());
77740
77809
  applyMixins(TabsToolbar, StartEnd);
@@ -77744,10 +77813,10 @@ focus outline in that case.
77744
77813
  block: 'block'
77745
77814
  };
77746
77815
 
77747
- const styles$a = css `
77816
+ const styles$d = css `
77748
77817
  ${display$1('inline-flex')}
77749
- ${styles$R}
77750
- ${styles$N}
77818
+ ${styles$U}
77819
+ ${styles$Q}
77751
77820
 
77752
77821
  :host {
77753
77822
  font: ${bodyFont};
@@ -77939,7 +78008,7 @@ focus outline in that case.
77939
78008
  <slot ${slotted('defaultSlottedNodes')}></slot>
77940
78009
  </label>
77941
78010
  `);
77942
- const template$9 = () => html `
78011
+ const template$c = () => html `
77943
78012
  ${labelTemplate$1}
77944
78013
  <div class="container">
77945
78014
  <textarea
@@ -78087,8 +78156,8 @@ focus outline in that case.
78087
78156
  const nimbleTextArea = TextArea.compose({
78088
78157
  baseName: 'text-area',
78089
78158
  baseClass: TextArea$1,
78090
- template: template$9,
78091
- styles: styles$a,
78159
+ template: template$c,
78160
+ styles: styles$d,
78092
78161
  shadowOptions: {
78093
78162
  delegatesFocus: true
78094
78163
  }
@@ -78105,10 +78174,10 @@ focus outline in that case.
78105
78174
  frameless: 'frameless'
78106
78175
  };
78107
78176
 
78108
- const styles$9 = css `
78177
+ const styles$c = css `
78109
78178
  ${display$1('inline-block')}
78110
- ${styles$R}
78111
- ${styles$N}
78179
+ ${styles$U}
78180
+ ${styles$Q}
78112
78181
 
78113
78182
  :host {
78114
78183
  font: ${bodyFont};
@@ -78382,7 +78451,7 @@ focus outline in that case.
78382
78451
  * The template for the {@link @ni/fast-foundation#(TextField:class)} component.
78383
78452
  * @public
78384
78453
  */
78385
- const template$8 = (context, definition) => html `
78454
+ const template$b = (context, definition) => html `
78386
78455
  <template
78387
78456
  class="
78388
78457
  ${x => (x.readOnly ? 'readonly' : '')}
@@ -78467,8 +78536,8 @@ focus outline in that case.
78467
78536
  const nimbleTextField = TextField.compose({
78468
78537
  baseName: 'text-field',
78469
78538
  baseClass: TextField$1,
78470
- template: template$8,
78471
- styles: styles$9,
78539
+ template: template$b,
78540
+ styles: styles$c,
78472
78541
  shadowOptions: {
78473
78542
  delegatesFocus: true
78474
78543
  },
@@ -78485,7 +78554,7 @@ focus outline in that case.
78485
78554
  });
78486
78555
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTextField());
78487
78556
 
78488
- const styles$8 = css `
78557
+ const styles$b = css `
78489
78558
  ${display$1('inline-flex')}
78490
78559
 
78491
78560
  :host {
@@ -78571,7 +78640,7 @@ focus outline in that case.
78571
78640
  }
78572
78641
  `));
78573
78642
 
78574
- const template$7 = html `
78643
+ const template$a = html `
78575
78644
  ${when(x => x.tooltipVisible, html `
78576
78645
  <${anchoredRegionTag}
78577
78646
  class="anchored-region"
@@ -78623,8 +78692,8 @@ focus outline in that case.
78623
78692
  const nimbleTooltip = Tooltip.compose({
78624
78693
  baseName: 'tooltip',
78625
78694
  baseClass: Tooltip$1,
78626
- template: template$7,
78627
- styles: styles$8
78695
+ template: template$a,
78696
+ styles: styles$b
78628
78697
  });
78629
78698
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTooltip());
78630
78699
 
@@ -78712,7 +78781,7 @@ focus outline in that case.
78712
78781
  }
78713
78782
  }
78714
78783
 
78715
- const styles$7 = css `
78784
+ const styles$a = css `
78716
78785
  ${display$1('block')}
78717
78786
 
78718
78787
  :host {
@@ -78929,12 +78998,12 @@ focus outline in that case.
78929
78998
  baseName: 'tree-item',
78930
78999
  baseClass: TreeItem$1,
78931
79000
  template: treeItemTemplate,
78932
- styles: styles$7,
79001
+ styles: styles$a,
78933
79002
  expandCollapseGlyph: arrowExpanderUp16X16.data
78934
79003
  });
78935
79004
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeItem());
78936
79005
 
78937
- const styles$6 = css `
79006
+ const styles$9 = css `
78938
79007
  ${display$1('flex')}
78939
79008
 
78940
79009
  :host {
@@ -78948,7 +79017,7 @@ focus outline in that case.
78948
79017
  }
78949
79018
  `;
78950
79019
 
78951
- const template$6 = html `
79020
+ const template$9 = html `
78952
79021
  <template
78953
79022
  role="tree"
78954
79023
  ${ref('treeView')}
@@ -79044,8 +79113,8 @@ focus outline in that case.
79044
79113
  const nimbleTreeView = TreeView.compose({
79045
79114
  baseName: 'tree-view',
79046
79115
  baseClass: TreeView$1,
79047
- template: template$6,
79048
- styles: styles$6
79116
+ template: template$9,
79117
+ styles: styles$9
79049
79118
  });
79050
79119
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeView());
79051
79120
 
@@ -79161,9 +79230,9 @@ focus outline in that case.
79161
79230
  }
79162
79231
  const unitScaleByte = new UnitScaleByte();
79163
79232
 
79164
- const template$5 = html `<template slot="unit"></template>`;
79233
+ const template$8 = html `<template slot="unit"></template>`;
79165
79234
 
79166
- const styles$5 = css `
79235
+ const styles$8 = css `
79167
79236
  ${display$1('none')}
79168
79237
  `;
79169
79238
 
@@ -79191,8 +79260,8 @@ focus outline in that case.
79191
79260
  ], UnitByte.prototype, "binary", void 0);
79192
79261
  const nimbleUnitByte = UnitByte.compose({
79193
79262
  baseName: 'unit-byte',
79194
- template: template$5,
79195
- styles: styles$5
79263
+ template: template$8,
79264
+ styles: styles$8
79196
79265
  });
79197
79266
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitByte());
79198
79267
 
@@ -79244,8 +79313,8 @@ focus outline in that case.
79244
79313
  }
79245
79314
  const nimbleUnitVolt = UnitVolt.compose({
79246
79315
  baseName: 'unit-volt',
79247
- template: template$5,
79248
- styles: styles$5
79316
+ template: template$8,
79317
+ styles: styles$8
79249
79318
  });
79250
79319
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitVolt());
79251
79320
 
@@ -93559,7 +93628,7 @@ focus outline in that case.
93559
93628
  return new Table(reader.readAll());
93560
93629
  }
93561
93630
 
93562
- const template$4 = html `
93631
+ const template$7 = html `
93563
93632
  <div class="wafer-map-container">
93564
93633
  <svg class="svg-root">
93565
93634
  <g ${ref('zoomContainer')} transform=${x => x.transform.toString()}>
@@ -93592,7 +93661,7 @@ focus outline in that case.
93592
93661
  </div>
93593
93662
  `;
93594
93663
 
93595
- const styles$4 = css `
93664
+ const styles$7 = css `
93596
93665
  ${display$1('inline-block')}
93597
93666
 
93598
93667
  :host {
@@ -96618,8 +96687,8 @@ focus outline in that case.
96618
96687
  ], WaferMap.prototype, "colorScale", void 0);
96619
96688
  const nimbleWaferMap = WaferMap.compose({
96620
96689
  baseName: 'wafer-map',
96621
- template: template$4,
96622
- styles: styles$4
96690
+ template: template$7,
96691
+ styles: styles$7
96623
96692
  });
96624
96693
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleWaferMap());
96625
96694
 
@@ -96631,7 +96700,7 @@ focus outline in that case.
96631
96700
  */
96632
96701
  const display = (displayValue) => `${display$2(displayValue)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`;
96633
96702
 
96634
- const styles$3 = css `
96703
+ const styles$6 = css `
96635
96704
  ${display('flex')}
96636
96705
 
96637
96706
  :host {
@@ -96671,7 +96740,7 @@ focus outline in that case.
96671
96740
  }
96672
96741
  `;
96673
96742
 
96674
- const template$3 = html `
96743
+ const template$6 = html `
96675
96744
  <div class="messages"><slot></slot></div>
96676
96745
  <div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
96677
96746
  <slot name="input" ${slotted({ property: 'slottedInputElements' })}>
@@ -96711,14 +96780,14 @@ focus outline in that case.
96711
96780
  ], ChatConversation.prototype, "slottedInputElements", void 0);
96712
96781
  const sprightChatConversation = ChatConversation.compose({
96713
96782
  baseName: 'chat-conversation',
96714
- template: template$3,
96715
- styles: styles$3
96783
+ template: template$6,
96784
+ styles: styles$6
96716
96785
  });
96717
96786
  DesignSystem.getOrCreate()
96718
96787
  .withPrefix('spright')
96719
96788
  .register(sprightChatConversation());
96720
96789
 
96721
- const styles$2 = css `
96790
+ const styles$5 = css `
96722
96791
  ${display('flex')}
96723
96792
 
96724
96793
  :host {
@@ -96794,7 +96863,7 @@ focus outline in that case.
96794
96863
  }
96795
96864
  `;
96796
96865
 
96797
- const template$2 = html `
96866
+ const template$5 = html `
96798
96867
  <div class="container">
96799
96868
  <textarea
96800
96869
  ${ref('textArea')}
@@ -96910,8 +96979,8 @@ focus outline in that case.
96910
96979
  ], ChatInput.prototype, "disableSendButton", void 0);
96911
96980
  const sprightChatInput = ChatInput.compose({
96912
96981
  baseName: 'chat-input',
96913
- template: template$2,
96914
- styles: styles$2,
96982
+ template: template$5,
96983
+ styles: styles$5,
96915
96984
  shadowOptions: {
96916
96985
  delegatesFocus: true
96917
96986
  }
@@ -96921,6 +96990,7 @@ focus outline in that case.
96921
96990
  /**
96922
96991
  * A message type in a chat conversation.
96923
96992
  * @public
96993
+ * @deprecated Use specific message component types instead
96924
96994
  */
96925
96995
  const ChatMessageType = {
96926
96996
  system: undefined,
@@ -96928,12 +96998,12 @@ focus outline in that case.
96928
96998
  inbound: 'inbound'
96929
96999
  };
96930
97000
 
96931
- const styles$1 = css `
97001
+ const styles$4 = css `
96932
97002
  ${display('flex')}
96933
97003
 
96934
97004
  :host {
96935
- min-width: 16px;
96936
- min-height: 16px;
97005
+ min-width: ${standardPadding};
97006
+ min-height: ${standardPadding};
96937
97007
 
96938
97008
  flex-direction: row;
96939
97009
  justify-content: center;
@@ -97002,7 +97072,7 @@ focus outline in that case.
97002
97072
  }
97003
97073
  `;
97004
97074
 
97005
- const template$1 = (context, definition) => html `
97075
+ const template$4 = (context, definition) => html `
97006
97076
  <div class="container">
97007
97077
  ${startSlotTemplate(context, definition)}
97008
97078
  <section class="message-content">
@@ -97020,6 +97090,7 @@ focus outline in that case.
97020
97090
 
97021
97091
  /**
97022
97092
  * A Spright component for displaying a chat message
97093
+ * @deprecated Use specific message component types instead
97023
97094
  */
97024
97095
  class ChatMessage extends FoundationElement {
97025
97096
  constructor() {
@@ -97050,10 +97121,212 @@ focus outline in that case.
97050
97121
  applyMixins(ChatMessage, StartEnd);
97051
97122
  const sprightChatMessage = ChatMessage.compose({
97052
97123
  baseName: 'chat-message',
97124
+ template: template$4,
97125
+ styles: styles$4
97126
+ });
97127
+ DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessage());
97128
+
97129
+ const styles$3 = css `
97130
+ ${display('flex')}
97131
+
97132
+ :host {
97133
+ min-width: ${standardPadding};
97134
+ min-height: ${standardPadding};
97135
+
97136
+ flex-direction: row;
97137
+ justify-content: flex-start;
97138
+ flex-shrink: 0;
97139
+ font: ${bodyFont};
97140
+ color: ${bodyFontColor};
97141
+ }
97142
+
97143
+ .container {
97144
+ display: flex;
97145
+ flex-direction: column;
97146
+ max-width: calc(90%);
97147
+ }
97148
+
97149
+ [part='start'] {
97150
+ display: none;
97151
+ }
97152
+
97153
+ .message-content {
97154
+ width: fit-content;
97155
+ height: fit-content;
97156
+ overflow-x: auto;
97157
+ }
97158
+
97159
+ .footer-actions {
97160
+ display: none;
97161
+ }
97162
+
97163
+ :host .footer-actions.has-content {
97164
+ display: flex;
97165
+ column-gap: ${standardPadding};
97166
+ margin-top: ${mediumPadding};
97167
+ }
97168
+
97169
+ .footer-actions ::slotted(${buttonTag}),
97170
+ .footer-actions ::slotted(${toggleButtonTag}),
97171
+ .footer-actions ::slotted(${anchorButtonTag}),
97172
+ .footer-actions ::slotted(${menuButtonTag}) {
97173
+ height: ${controlSlimHeight};
97174
+ }
97175
+
97176
+ .end {
97177
+ display: none;
97178
+ }
97179
+
97180
+ :host .end {
97181
+ display: flex;
97182
+ column-gap: ${standardPadding};
97183
+ margin-top: ${largePadding};
97184
+ }
97185
+ `;
97186
+
97187
+ const template$3 = (context, definition) => html `
97188
+ <div class="container">
97189
+ ${startSlotTemplate(context, definition)}
97190
+ <section class="message-content">
97191
+ <slot></slot>
97192
+ </section>
97193
+ <section class="footer-actions ${x => (x.footerActionsIsEmpty ? '' : 'has-content')}">
97194
+ <slot
97195
+ name="footer-actions"
97196
+ ${slotted({ property: 'slottedFooterActionsElements' })}
97197
+ ></slot>
97198
+ </section>
97199
+ ${endSlotTemplate(context, definition)}
97200
+ </div>
97201
+ `;
97202
+
97203
+ /**
97204
+ * A Spright component for displaying a chat message
97205
+ */
97206
+ class ChatMessageInbound extends FoundationElement {
97207
+ constructor() {
97208
+ super(...arguments);
97209
+ /** @internal */
97210
+ this.footerActionsIsEmpty = true;
97211
+ }
97212
+ slottedFooterActionsElementsChanged(_prev, next) {
97213
+ this.footerActionsIsEmpty = !next?.length;
97214
+ }
97215
+ }
97216
+ __decorate([
97217
+ observable
97218
+ ], ChatMessageInbound.prototype, "footerActionsIsEmpty", void 0);
97219
+ __decorate([
97220
+ observable
97221
+ ], ChatMessageInbound.prototype, "slottedFooterActionsElements", void 0);
97222
+ applyMixins(ChatMessageInbound, StartEnd);
97223
+ const sprightChatMessageInbound = ChatMessageInbound.compose({
97224
+ baseName: 'chat-message-inbound',
97225
+ template: template$3,
97226
+ styles: styles$3
97227
+ });
97228
+ DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageInbound());
97229
+
97230
+ const styles$2 = css `
97231
+ ${display('flex')}
97232
+
97233
+ :host {
97234
+ min-width: ${standardPadding};
97235
+ min-height: ${standardPadding};
97236
+
97237
+ flex-direction: row;
97238
+ justify-content: flex-end;
97239
+ flex-shrink: 0;
97240
+ font: ${bodyFont};
97241
+ color: ${bodyFontColor};
97242
+ }
97243
+
97244
+ .container {
97245
+ display: flex;
97246
+ flex-direction: column;
97247
+ max-width: calc(90%);
97248
+ }
97249
+
97250
+ .message-content {
97251
+ width: fit-content;
97252
+ height: fit-content;
97253
+ overflow-x: auto;
97254
+ }
97255
+
97256
+ :host .message-content {
97257
+ background: ${fillSelectedColor};
97258
+ border: ${borderWidth} solid ${borderHoverColor};
97259
+ border-radius: ${mediumPadding} ${mediumPadding} 0px ${mediumPadding};
97260
+ padding: ${mediumPadding};
97261
+ }
97262
+ `;
97263
+
97264
+ const template$2 = () => html `
97265
+ <div class="container">
97266
+ <section class="message-content">
97267
+ <slot></slot>
97268
+ </section>
97269
+ </div>
97270
+ `;
97271
+
97272
+ /**
97273
+ * A Spright component for displaying an outbound chat message
97274
+ */
97275
+ class ChatMessageOutbound extends FoundationElement {
97276
+ }
97277
+ const sprightChatMessageOutbound = ChatMessageOutbound.compose({
97278
+ baseName: 'chat-message-outbound',
97279
+ template: template$2,
97280
+ styles: styles$2
97281
+ });
97282
+ DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageOutbound());
97283
+
97284
+ const styles$1 = css `
97285
+ ${display('flex')}
97286
+
97287
+ :host {
97288
+ min-width: ${standardPadding};
97289
+ min-height: ${standardPadding};
97290
+
97291
+ flex-direction: row;
97292
+ justify-content: center;
97293
+ flex-shrink: 0;
97294
+ font: ${bodyFont};
97295
+ color: ${bodyFontColor};
97296
+ }
97297
+
97298
+ .container {
97299
+ display: flex;
97300
+ flex-direction: column;
97301
+ max-width: calc(90%);
97302
+ }
97303
+
97304
+ .message-content {
97305
+ width: fit-content;
97306
+ height: fit-content;
97307
+ overflow-x: auto;
97308
+ }
97309
+ `;
97310
+
97311
+ const template$1 = () => html `
97312
+ <div class="container">
97313
+ <section class="message-content">
97314
+ <slot></slot>
97315
+ </section>
97316
+ </div>
97317
+ `;
97318
+
97319
+ /**
97320
+ * A Spright component for displaying an system chat message
97321
+ */
97322
+ class ChatMessageSystem extends FoundationElement {
97323
+ }
97324
+ const sprightChatMessageSystem = ChatMessageSystem.compose({
97325
+ baseName: 'chat-message-system',
97053
97326
  template: template$1,
97054
97327
  styles: styles$1
97055
97328
  });
97056
- DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessage());
97329
+ DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageSystem());
97057
97330
 
97058
97331
  const styles = css `
97059
97332
  ${display('inline-block')}