@ni/ok-components 1.9.5 → 1.10.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.
@@ -18971,7 +18971,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
18971
18971
  };
18972
18972
  const electronicChipZoomed16X16 = {
18973
18973
  name: 'electronic_chip_zoomed_16_x_16',
18974
- data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13 14H7.333V9.333a2 2 0 0 1 2-2H14V13a1 1 0 0 1-1 1M12 2a.667.667 0 0 0-.667.667v2h1.334v-2A.667.667 0 0 0 12 2M8.444 2a.667.667 0 0 0-.666.667v2H9.11v-2A.667.667 0 0 0 8.444 2M2 8.444a.667.667 0 0 0 .667.667h2V7.778h-2A.667.667 0 0 0 2 8.444M2 12a.667.667 0 0 0 .667.667h2v-1.334h-2A.667.667 0 0 0 2 12m11.556-8.222v.889a.444.444 0 0 1-.445.444H10.89a.444.444 0 0 1-.445-.444v-.89H10v.89a.444.444 0 0 1-.444.444H7.333a.444.444 0 0 1-.444-.444v-.89H4.667a.89.89 0 0 0-.89.89v2.222h.89a.444.444 0 0 1 .444.444v2.223a.444.444 0 0 1-.444.444h-.89v.444h.89a.444.444 0 0 1 .444.445v2.222a.444.444 0 0 1-.444.445h-.89V14H6.89V8.222A1.333 1.333 0 0 1 8.222 6.89H14V3.778Z" class="cls-1"/></svg>`,
18974
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 7h6v7H7V8c0-.55.45-1 1-1m4-6v3h-2V1H8v3C5.79 4 4 5.79 4 8H1v2h3v2H1v2h5V8c0-1.1.9-2 2-2h6V1z" class="cls-1"/></svg>`,
18975
18975
  };
18976
18976
  const exclamationMark16X16 = {
18977
18977
  name: 'exclamation_mark_16_x_16',
@@ -18997,14 +18997,26 @@ Defines an interaction area clip-path that leaves out the severity text so it is
18997
18997
  name: 'file_arrow_curved_right_16_x_16',
18998
18998
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m7 2 3 3H7zM6 6V2H2v12h4.282l.03-.187A4.51 4.51 0 0 1 10 10.065V6zm8 5.5L11 9v2c-1.817-.091-3.412 1.137-3.701 2.97.576-.672 2.077-2.065 3.701-1.82V14z" class="cls-1"/></svg>`,
18999
18999
  };
19000
+ const fileClock16X16 = {
19001
+ name: 'file_clock_16_x_16',
19002
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M12 6H9V3zm-.01 2.19H12V7H8V3H4v10h4.41c-.1-.34-.17-.69-.17-1.06 0-2.07 1.68-3.75 3.75-3.75m3 3.75c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3m-1 2c.04-.26-.23-.54-.23-.54l-1.19-1.19q.06-.12.06-.27c0-.15-.02-.19-.06-.27.11-.11.73-.73.79-.81.06-.09.11-.32.11-.4-.11 0-.35.06-.42.13-.06.06-.68.69-.78.78a.644.644 0 0 0-.92.58c0 .35.28.64.64.64.1 0 .19-.02.28-.06.13.14.88.89 1.1 1.12.25.26.43.31.61.31Z" class="cls-1"/></svg>`,
19003
+ };
19000
19004
  const fileDrawer16X16 = {
19001
19005
  name: 'file_drawer_16_x_16',
19002
19006
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 4v10h12V4Zm8 4H6V6h4Zm4-5H2V2h12Z" class="cls-1"/></svg>`,
19003
19007
  };
19008
+ const filePlus16X16 = {
19009
+ name: 'file_plus_16_x_16',
19010
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M12 6H9V3zm-1 3h1V7H8V3H4v10h5v-2h2zm2 3v-2h-1v2h-2v1h2v2h1v-2h2v-1z" class="cls-1"/></svg>`,
19011
+ };
19004
19012
  const fileSearch16X16 = {
19005
19013
  name: 'file_search_16_x_16',
19006
19014
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M14 6v6h-3.333a3.7 3.7 0 0 0 .249-1.302A3.7 3.7 0 0 0 7.22 7 3.7 3.7 0 0 0 6 7.223V2h4v4Zm-3-4v3h3Zm-1.126 8.698a2.697 2.697 0 0 1-4.73 1.772L2.521 14l-.48-.823 2.613-1.523a2.698 2.698 0 1 1 5.22-.956m-.952 0a1.745 1.745 0 1 0-1.745 1.745 1.747 1.747 0 0 0 1.745-1.745" class="cls-1"/></svg>`,
19007
19015
  };
19016
+ const fileStar16X16 = {
19017
+ name: 'file_star_16_x_16',
19018
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M12 6H9V3zm-2.06 5.35-1.4-2.71 2.69 1.41.77-2.94V7H8V3H4v10h4.81l-2.62-.68 3.74-.97Zm5.23.97-1.82-.48.74-1.43-1.42.74-.48-1.83-.48 1.83-1.42-.75.74 1.43-1.86.48 1.86.49-.74 1.43 1.42-.74.48 1.83.48-1.83 1.42.75-.74-1.43 1.82-.48Z" class="cls-1"/></svg>`,
19019
+ };
19008
19020
  const filter16X16 = {
19009
19021
  name: 'filter_16_x_16',
19010
19022
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 3.045v1.29h.787a2.069 2.069 0 1 0 2.907 2.903l1.32 2.173v4.522l1.973-1.846V9.411l3.878-5.076h1.134v-1.29Zm2.033 4.059a1.154 1.154 0 0 1 0-2.308c.023 0 .045.006.068.007l1.002 1.575a1.15 1.15 0 0 1-1.07.726" class="cls-1"/></svg>`,
@@ -19033,10 +19045,22 @@ Defines an interaction area clip-path that leaves out the severity text so it is
19033
19045
  name: 'folder_16_x_16',
19034
19046
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7 4V3H2v10h12V4Zm6 2H3V5h10Z" class="cls-1"/></svg>`,
19035
19047
  };
19048
+ const folderClock16X16 = {
19049
+ name: 'folder_clock_16_x_16',
19050
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8.24 11.94c0-2.07 1.68-3.75 3.75-3.75.74 0 1.43.22 2.01.6V4.01H7v-1H2v10h6.41c-.1-.34-.17-.69-.17-1.06ZM3 5h10v1H3zm8.99 3.94c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3m.29 2.43.78-.78c.07-.07.31-.13.42-.13 0 .08-.05.31-.11.4-.06.08-.68.7-.79.81q.06.12.06.27c0 .15-.02.19-.06.27l1.19 1.19s.27.28.23.54c-.18 0-.36-.05-.61-.31-.23-.23-.97-.98-1.1-1.12a.644.644 0 0 1-.92-.58c0-.35.28-.64.64-.64.1 0 .2.02.28.06" class="cls-1"/></svg>`,
19051
+ };
19036
19052
  const folderOpen16X16 = {
19037
19053
  name: 'folder_open_16_x_16',
19038
19054
  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>`,
19039
19055
  };
19056
+ const folderPlus16X16 = {
19057
+ name: 'folder_plus_16_x_16',
19058
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M9 11h2V9h3V4H7V3H2v10h7zM3 5h10v1H3zm12 8h-2v2h-1v-2h-2v-1h2v-2h1v2h2z" class="cls-1"/></svg>`,
19059
+ };
19060
+ const folderStar16X16 = {
19061
+ name: 'folder_star_16_x_16',
19062
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m6.19 12.32 3.74-.97-1.4-2.71 2.69 1.41.54-2.05h.86l.54 2.05.84-.44V4H7V3H2v10h6.81zM3 5h10v1H3zm10.35 6.84 1.82.48-1.82.48.74 1.43-1.42-.75-.48 1.83-.48-1.83-1.42.74.74-1.43-1.86-.49 1.86-.48-.74-1.43 1.42.75.48-1.83.48 1.83 1.42-.74-.74 1.43Z" class="cls-1"/></svg>`,
19063
+ };
19040
19064
  const forklift16X16 = {
19041
19065
  name: 'forklift_16_x_16',
19042
19066
  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>`,
@@ -19281,6 +19305,10 @@ Defines an interaction area clip-path that leaves out the severity text so it is
19281
19305
  name: 'scanner_gun_16_x_16',
19282
19306
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M11.48 4.99 12 3H6c-1.66-.02-2.97 1.24-2.99 2.89 0 .55.41 1.09.97 1.1H4v1l-.53 2.65c-.2.98.38 1.89 1.25 2.21a.85.85 0 0 1-.2.45c-.12.12-.28.18-.5.18h-2v.5h2c.36 0 .65-.11.86-.33s.29-.49.33-.69c.06 0 .12.02.19.02.93 0 .74-.66.92-1.58L8 7.98v-1h2.98l.25-1h-.5l.25-1h.5Zm-1.6.5h-2.9s0-.5.5-.5h2.5zm3.86-.76h-.93c-.14 0-.25-.11-.25-.25s.11-.25.25-.25h.93c.14 0 .25.11.25.25s-.11.25-.25.25m.02-2.15-.68.68c-.1.1-.26.1-.35 0-.1-.1-.1-.26 0-.35l.68-.68c.1-.1.26-.1.35 0 .1.1.1.26 0 .35m-1.14 4.38-.59-.59c-.1-.1-.1-.26 0-.35.1-.1.26-.1.35 0l.59.59c.1.1.1.26 0 .35-.1.1-.26.1-.35 0"/></svg>`,
19283
19307
  };
19308
+ const scissors16X16 = {
19309
+ name: 'scissors_16_x_16',
19310
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M10.35 8.62 15 12c-.54.54-1.17.7-1.89.42-.67-.25-2.95-1.36-4.84-2.29zM15 4l-9.25 6.73c.62.85.55 2.04-.21 2.8-.42.42-.98.63-1.53.63s-1.11-.21-1.53-.63-.63-.97-.63-1.53c0-1.35.99-2.07 2.14-2.24.75-.11 1.47-.33 1.82-.93a1.79 1.79 0 0 0 0-1.68c-.34-.6-1.07-.82-1.82-.93-1.15-.16-2.14-.88-2.14-2.24 0-.55.21-1.1.63-1.53.42-.42.98-.63 1.53-.63s1.11.21 1.53.63c.76.76.83 1.95.21 2.8l1.51 1.1c1.98-.98 5.05-2.49 5.85-2.79.72-.27 1.35-.12 1.89.42zM4.92 4c0-.24-.1-.48-.27-.65a.915.915 0 0 0-1.3 0 .915.915 0 0 0 0 1.3.915.915 0 0 0 1.3 0c.17-.17.27-.4.27-.65m0 8c0-.24-.1-.48-.27-.65a.915.915 0 0 0-1.3 0 .915.915 0 0 0 0 1.3.915.915 0 0 0 1.3 0c.17-.17.27-.4.27-.65M8 8c0-.28-.22-.5-.5-.5S7 7.72 7 8s.22.5.5.5.5-.22.5-.5" class="st0"/></svg>`,
19311
+ };
19284
19312
  const screenCheckLines16X16 = {
19285
19313
  name: 'screen_check_lines_16_x_16',
19286
19314
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 3H2v8h5v1H5v1h6v-1H9v-1h5V3zm10 7H3V4h10z" class="cls-1"/><path d="M5.743 9 4 7.242l.766-.742.97 1.007L8.273 5 9 5.758zM10 6h2v1h-2zM8 8h4v1H8z" class="cls-1"/></svg>`,
@@ -19359,7 +19387,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
19359
19387
  };
19360
19388
  const systemlink16X16 = {
19361
19389
  name: 'systemlink_16_x_16',
19362
- data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7.249 2.55a1.06 1.06 0 0 1 1.498 0 1.06 1.06 0 0 1-.295 1.703v1.86a2.42 2.42 0 0 1 1.672 1.215l1.768-.573q.023-.176.106-.344a1.059 1.059 0 1 1 .176 1.208l-1.768.574a2.42 2.42 0 0 1-.638 1.964l1.093 1.504q.175-.033.36-.005a1.058 1.058 0 1 1-1.095.54l-1.093-1.503a2.43 2.43 0 0 1-2.066 0l-1.093 1.503q.085.155.117.34a1.058 1.058 0 1 1-.852-.875l1.093-1.504a2.42 2.42 0 0 1-.638-1.964l-1.768-.574a1.054 1.054 0 0 1-1.71-.247 1.059 1.059 0 1 1 1.992-.617l1.768.573q.161-.295.41-.547c.358-.358.8-.58 1.262-.668v-1.86a1.06 1.06 0 0 1-.294-1.704Zm2.072 9.704c-.42.148-.865.224-1.323.224s-.904-.076-1.324-.224l.566-.779q.37.094.758.094c.388 0 .512-.033.757-.094zM11.98 8.4l.002.097c0 .886-.288 1.727-.82 2.419l-.566-.778c.274-.43.434-.923.467-1.44l.914-.298Zm-7.046.298c.033.502.189.998.466 1.438l-.566.779A3.97 3.97 0 0 1 4.018 8.4zM6.86 5.644c-.377.15-.731.377-1.035.681q-.1.1-.19.209l-.915-.298q.202-.292.46-.554A3.96 3.96 0 0 1 6.86 4.68v.965Zm2.275-.964a3.96 3.96 0 0 1 2.14 1.556l-.915.298a3.075 3.075 0 0 0-1.224-.89z" class="cls-1"/></svg>`,
19390
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m5.24 6.29-1.07-.35c.16-.23.34-.44.54-.65.55-.55 1.23-.95 1.96-1.17v1.13c-.44.18-.85.44-1.21.79-.08.08-.15.16-.22.24Zm5.51 0 1.07-.35c-.16-.23-.34-.45-.54-.65-.55-.55-1.23-.95-1.96-1.17v1.13c.44.18.85.44 1.21.79.08.08.15.16.22.24ZM8 12.16c-.3 0-.6-.04-.88-.11l-.66.91a4.7 4.7 0 0 0 3.08 0l-.66-.91c-.29.07-.58.11-.88.11m-3.03-1.67a3.5 3.5 0 0 1-.54-1.68l-1.07-.35c-.03 1.03.29 2.07.95 2.93l.66-.91Zm6.6-1.68c-.04.6-.23 1.18-.54 1.68l.66.91c.62-.81.96-1.79.96-2.82v-.11l-1.07.35Zm2.76-3.2c-.61-.31-1.35-.07-1.66.54-.07.13-.1.26-.12.4l-2.06.67c-.13-.23-.29-.45-.48-.64-.42-.42-.93-.68-1.47-.78V3.63c.42-.2.71-.62.71-1.11a1.23 1.23 0 1 0-2.46 0c0 .49.29.91.71 1.11 0 0-.01 0 0 0V5.8c-.54.1-1.05.36-1.47.78-.19.19-.35.41-.48.64l-2.06-.67a1.4 1.4 0 0 0-.12-.4c-.31-.61-1.05-.85-1.66-.54s-.85 1.05-.54 1.66a1.23 1.23 0 0 0 1.99.29l2.06.67c-.1.81.15 1.66.74 2.29l-1.28 1.75c-.13-.02-.28-.03-.42 0-.67.11-1.13.74-1.03 1.41.11.67.74 1.13 1.41 1.03.67-.11 1.13-.74 1.03-1.41-.02-.14-.07-.28-.14-.4l1.27-1.75c.76.36 1.65.36 2.41 0l1.27 1.75a1.226 1.226 0 0 0 .89 1.81c.67.11 1.31-.35 1.41-1.03.11-.67-.35-1.31-1.03-1.41q-.21-.03-.42 0l-1.28-1.75c.6-.64.85-1.48.74-2.29l2.06-.67c.1.1.21.19.33.25.61.31 1.35.07 1.66-.54s.07-1.35-.54-1.66Z" class="cls-1"/></svg>`,
19363
19391
  };
19364
19392
  const t16X16 = {
19365
19393
  name: 't_16_x_16',
@@ -25220,6 +25248,18 @@ so this becomes the fallback color for the slot */ ''}
25220
25248
  }
25221
25249
  registerIconSvg('icon-file-arrow-curved-right', IconFileArrowCurvedRight);
25222
25250
 
25251
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25252
+ // See generation source in nimble-components/build/generate-icons
25253
+ /**
25254
+ * The icon component for the 'fileClock' icon
25255
+ */
25256
+ class IconFileClock extends IconSvg {
25257
+ constructor() {
25258
+ super(fileClock16X16);
25259
+ }
25260
+ }
25261
+ registerIconSvg('icon-file-clock', IconFileClock);
25262
+
25223
25263
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25224
25264
  // See generation source in nimble-components/build/generate-icons
25225
25265
  /**
@@ -25232,6 +25272,18 @@ so this becomes the fallback color for the slot */ ''}
25232
25272
  }
25233
25273
  registerIconSvg('icon-file-drawer', IconFileDrawer);
25234
25274
 
25275
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25276
+ // See generation source in nimble-components/build/generate-icons
25277
+ /**
25278
+ * The icon component for the 'filePlus' icon
25279
+ */
25280
+ class IconFilePlus extends IconSvg {
25281
+ constructor() {
25282
+ super(filePlus16X16);
25283
+ }
25284
+ }
25285
+ registerIconSvg('icon-file-plus', IconFilePlus);
25286
+
25235
25287
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25236
25288
  // See generation source in nimble-components/build/generate-icons
25237
25289
  /**
@@ -25244,6 +25296,18 @@ so this becomes the fallback color for the slot */ ''}
25244
25296
  }
25245
25297
  registerIconSvg('icon-file-search', IconFileSearch);
25246
25298
 
25299
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25300
+ // See generation source in nimble-components/build/generate-icons
25301
+ /**
25302
+ * The icon component for the 'fileStar' icon
25303
+ */
25304
+ class IconFileStar extends IconSvg {
25305
+ constructor() {
25306
+ super(fileStar16X16);
25307
+ }
25308
+ }
25309
+ registerIconSvg('icon-file-star', IconFileStar);
25310
+
25247
25311
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25248
25312
  // See generation source in nimble-components/build/generate-icons
25249
25313
  /**
@@ -25328,6 +25392,18 @@ so this becomes the fallback color for the slot */ ''}
25328
25392
  }
25329
25393
  registerIconSvg('icon-folder', IconFolder);
25330
25394
 
25395
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25396
+ // See generation source in nimble-components/build/generate-icons
25397
+ /**
25398
+ * The icon component for the 'folderClock' icon
25399
+ */
25400
+ class IconFolderClock extends IconSvg {
25401
+ constructor() {
25402
+ super(folderClock16X16);
25403
+ }
25404
+ }
25405
+ registerIconSvg('icon-folder-clock', IconFolderClock);
25406
+
25331
25407
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25332
25408
  // See generation source in nimble-components/build/generate-icons
25333
25409
  /**
@@ -25340,6 +25416,30 @@ so this becomes the fallback color for the slot */ ''}
25340
25416
  }
25341
25417
  registerIconSvg('icon-folder-open', IconFolderOpen);
25342
25418
 
25419
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25420
+ // See generation source in nimble-components/build/generate-icons
25421
+ /**
25422
+ * The icon component for the 'folderPlus' icon
25423
+ */
25424
+ class IconFolderPlus extends IconSvg {
25425
+ constructor() {
25426
+ super(folderPlus16X16);
25427
+ }
25428
+ }
25429
+ registerIconSvg('icon-folder-plus', IconFolderPlus);
25430
+
25431
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25432
+ // See generation source in nimble-components/build/generate-icons
25433
+ /**
25434
+ * The icon component for the 'folderStar' icon
25435
+ */
25436
+ class IconFolderStar extends IconSvg {
25437
+ constructor() {
25438
+ super(folderStar16X16);
25439
+ }
25440
+ }
25441
+ registerIconSvg('icon-folder-star', IconFolderStar);
25442
+
25343
25443
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
25344
25444
  // See generation source in nimble-components/build/generate-icons
25345
25445
  /**
@@ -26067,6 +26167,18 @@ so this becomes the fallback color for the slot */ ''}
26067
26167
  }
26068
26168
  registerIconSvg('icon-scanner-gun', IconScannerGun);
26069
26169
 
26170
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
26171
+ // See generation source in nimble-components/build/generate-icons
26172
+ /**
26173
+ * The icon component for the 'scissors' icon
26174
+ */
26175
+ class IconScissors extends IconSvg {
26176
+ constructor() {
26177
+ super(scissors16X16);
26178
+ }
26179
+ }
26180
+ registerIconSvg('icon-scissors', IconScissors);
26181
+
26070
26182
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
26071
26183
  // See generation source in nimble-components/build/generate-icons
26072
26184
  /**
@@ -103909,8 +104021,30 @@ focus outline in that case.
103909
104021
  this.onMessagesChanged();
103910
104022
  }
103911
104023
  }
104024
+ /** @internal */
104025
+ smoothScrollTo(scrollTop) {
104026
+ const container = this.conversation.messagesContainer;
104027
+ if (Math.abs(container.scrollTop - scrollTop) <= 1) {
104028
+ // No movement is needed, so `scrollTo` would not emit a scroll event
104029
+ // to clear the programmatic guard. Snap to the exact target and
104030
+ // leave the guard clear so streamed content keeps being followed.
104031
+ this.programmaticScrollTarget = undefined;
104032
+ container.scrollTop = scrollTop;
104033
+ return;
104034
+ }
104035
+ this.programmaticScrollTarget = scrollTop;
104036
+ container.scrollTo({
104037
+ top: scrollTop,
104038
+ behavior: 'smooth'
104039
+ });
104040
+ }
104041
+ /** @internal */
104042
+ instantScrollTo(scrollTop) {
104043
+ this.conversation.messagesContainer.scrollTop = scrollTop;
104044
+ }
103912
104045
  onMessagesChanged() {
103913
104046
  const current = this.getOrderedMessages();
104047
+ const isInitialContent = this.previousMessages.length === 0;
103914
104048
  const previousSet = new Set(this.previousMessages);
103915
104049
  const addedMessages = current.filter(message => !previousSet.has(message));
103916
104050
  this.previousMessages = current;
@@ -103919,7 +104053,7 @@ focus outline in that case.
103919
104053
  return;
103920
104054
  }
103921
104055
  const hasAnchorMessage = addedMessages.some(message => message.messageInternals.anchorOnInsert);
103922
- this.scheduleScrollUpdate(hasAnchorMessage);
104056
+ this.scheduleScrollUpdate(hasAnchorMessage, isInitialContent);
103923
104057
  }
103924
104058
  repartition(messages) {
103925
104059
  const anchorIndex = this.findLatestAnchorIndex(messages);
@@ -103935,18 +104069,19 @@ focus outline in that case.
103935
104069
  message.messageInternals.slot = undefined;
103936
104070
  }
103937
104071
  }
103938
- scheduleScrollUpdate(hasAnchorMessage) {
104072
+ scheduleScrollUpdate(hasAnchorMessage, isInitialContent) {
103939
104073
  this.pendingAnchorInsert = this.pendingAnchorInsert || hasAnchorMessage;
103940
104074
  if (this.scrollUpdatePending) {
103941
104075
  return;
103942
104076
  }
104077
+ const shouldAnimate = !isInitialContent;
103943
104078
  this.scrollUpdatePending = true;
103944
104079
  requestAnimationFrame(() => {
103945
104080
  this.scrollUpdatePending = false;
103946
104081
  const anchorInsert = this.pendingAnchorInsert;
103947
104082
  this.pendingAnchorInsert = false;
103948
104083
  if (anchorInsert) {
103949
- this.anchorToLastInsertedMessage();
104084
+ this.anchorToLastInsertedMessage(shouldAnimate);
103950
104085
  }
103951
104086
  else if (this.autoScrollEngaged) {
103952
104087
  this.followContent();
@@ -103957,14 +104092,19 @@ focus outline in that case.
103957
104092
  * Pins the most recently inserted anchor message near the top of the
103958
104093
  * viewport.
103959
104094
  */
103960
- anchorToLastInsertedMessage() {
104095
+ anchorToLastInsertedMessage(animate) {
103961
104096
  const message = this.getLastAnchorMessage();
103962
104097
  if (message === undefined) {
103963
104098
  return;
103964
104099
  }
103965
104100
  this.setScrollAnchorMessage(message);
103966
104101
  this.autoScrollEngaged = true;
103967
- this.smoothScrollTo(this.getMaxScrollTop());
104102
+ if (animate) {
104103
+ this.smoothScrollTo(this.getMaxScrollTop());
104104
+ }
104105
+ else {
104106
+ this.instantScrollTo(this.getMaxScrollTop());
104107
+ }
103968
104108
  }
103969
104109
  followContent() {
103970
104110
  this.instantScrollTo(this.getMaxScrollTop());
@@ -103989,25 +104129,6 @@ focus outline in that case.
103989
104129
  const { scrollHeight, clientHeight } = this.conversation.messagesContainer;
103990
104130
  return Math.max(0, scrollHeight - clientHeight);
103991
104131
  }
103992
- smoothScrollTo(scrollTop) {
103993
- const container = this.conversation.messagesContainer;
103994
- if (Math.abs(container.scrollTop - scrollTop) <= 1) {
103995
- // No movement is needed, so `scrollTo` would not emit a scroll event
103996
- // to clear the programmatic guard. Snap to the exact target and
103997
- // leave the guard clear so streamed content keeps being followed.
103998
- this.programmaticScrollTarget = undefined;
103999
- container.scrollTop = scrollTop;
104000
- return;
104001
- }
104002
- this.programmaticScrollTarget = scrollTop;
104003
- container.scrollTo({
104004
- top: scrollTop,
104005
- behavior: 'smooth'
104006
- });
104007
- }
104008
- instantScrollTo(scrollTop) {
104009
- this.conversation.messagesContainer.scrollTop = scrollTop;
104010
- }
104011
104132
  setScrollAnchorMessage(message) {
104012
104133
  if (this.scrollAnchorMessage === message) {
104013
104134
  return;