@ni/nimble-components 11.10.5 → 11.12.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 (32) hide show
  1. package/dist/all-components-bundle.js +84 -17
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +918 -918
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/card-button/styles.js +3 -7
  6. package/dist/esm/card-button/styles.js.map +1 -1
  7. package/dist/esm/dialog/index.d.ts +1 -5
  8. package/dist/esm/dialog/index.js +6 -9
  9. package/dist/esm/dialog/index.js.map +1 -1
  10. package/dist/esm/dialog/template.js +0 -1
  11. package/dist/esm/dialog/template.js.map +1 -1
  12. package/dist/esm/icon-base/icon-metadata.js +15 -0
  13. package/dist/esm/icon-base/icon-metadata.js.map +1 -1
  14. package/dist/esm/icons/all-icons.d.ts +5 -0
  15. package/dist/esm/icons/all-icons.js +5 -0
  16. package/dist/esm/icons/all-icons.js.map +1 -1
  17. package/dist/esm/icons/book-magnifying-glass.d.ts +12 -0
  18. package/dist/esm/icons/book-magnifying-glass.js +14 -0
  19. package/dist/esm/icons/book-magnifying-glass.js.map +1 -0
  20. package/dist/esm/icons/circle-filled.d.ts +12 -0
  21. package/dist/esm/icons/circle-filled.js +14 -0
  22. package/dist/esm/icons/circle-filled.js.map +1 -0
  23. package/dist/esm/icons/cloud.d.ts +12 -0
  24. package/dist/esm/icons/cloud.js +14 -0
  25. package/dist/esm/icons/cloud.js.map +1 -0
  26. package/dist/esm/icons/share-nodes.d.ts +12 -0
  27. package/dist/esm/icons/share-nodes.js +14 -0
  28. package/dist/esm/icons/share-nodes.js.map +1 -0
  29. package/dist/esm/icons/three-vertical-lines.d.ts +12 -0
  30. package/dist/esm/icons/three-vertical-lines.js +14 -0
  31. package/dist/esm/icons/three-vertical-lines.js.map +1 -0
  32. package/package.json +2 -2
@@ -15043,6 +15043,10 @@
15043
15043
  name: 'block_with_ribbon_16_x_16',
15044
15044
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M2 2v10h4.762A4.496 4.496 0 0113 5.762V2zm12 7.5a3.5 3.5 0 10-6 2.442V14l2.5-1.667L13 14v-2.058A3.485 3.485 0 0014 9.5zM10.5 8A1.5 1.5 0 119 9.5 1.5 1.5 0 0110.5 8z"/></svg>`
15045
15045
  };
15046
+ const bookMagnifyingGlass16X16 = {
15047
+ name: 'book_magnifying_glass_16_x_16',
15048
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M6 10c0-.347.058-.678.142-1H5V8h1.556c.22-.378.498-.714.826-1H5V6h5c.732 0 1.41.212 2 .556V2H3v11h4.382A3.975 3.975 0 016 10zM5 4h5v1H5V4z"/><path class="cls-1" d="M9.99 7.01l-.076.002a3 3 0 101.799 5.452l1.593 1.53.69-.725-1.58-1.516a2.973 2.973 0 00.57-1.816A3 3 0 009.99 7.01zM10 12c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2z"/></svg>`
15049
+ };
15046
15050
  const calendar16X16 = {
15047
15051
  name: 'calendar_16_x_16',
15048
15052
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M4 4.023V2.977A.976.976 0 014.977 2h.046A.976.976 0 016 2.977v1.046A.977.977 0 015.023 5h-.046A.977.977 0 014 4.023zM13 4v.023A1.98 1.98 0 0111.023 6h-.046A1.98 1.98 0 019 4.023V4H7v.023A1.98 1.98 0 015.023 6h-.046A1.98 1.98 0 013 4.023V4a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1V5a1 1 0 00-1-1zm-7 8H4v-1h2zm.001-1.999H4V9h2.001zm0-2.001H4V7h2.001zM9 12H7v-1h2zm0-1.999H7V9h2zM9 8H7V7h2zm3 4h-2v-1h2zm.001-1.999H10V9h2.001zm0-2.001H10V7h2.001zM10 4.023V2.977A.976.976 0 0110.977 2h.046a.976.976 0 01.977.977v1.046a.977.977 0 01-.977.977h-.046A.977.977 0 0110 4.023z"/></svg>`
@@ -15075,6 +15079,10 @@
15075
15079
  name: 'circle_16_x_16',
15076
15080
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M8 2a6 6 0 106 6 6 6 0 00-6-6zm0 9.429A3.429 3.429 0 1111.429 8 3.429 3.429 0 018 11.429z"/></svg>`
15077
15081
  };
15082
+ const circleFilled16X16 = {
15083
+ name: 'circle_filled_16_x_16',
15084
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle class="cls-1" cx="8" cy="8" r="4"/></svg>`
15085
+ };
15078
15086
  const circleBroken16X16 = {
15079
15087
  name: 'circle_broken_16_x_16',
15080
15088
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M7 14A6.1 6.1 0 017 2v2.686a3.475 3.475 0 000 6.628zM9 2v2.686a3.475 3.475 0 010 6.628V14A6.1 6.1 0 009 2z"/></svg>`
@@ -15115,6 +15123,10 @@
15115
15123
  name: 'clone_16_x_16',
15116
15124
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M5 5h5V2H2v8h3zm1 1v8h8V6z"/></svg>`
15117
15125
  };
15126
+ const cloud16X16 = {
15127
+ name: 'cloud_16_x_16',
15128
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M5.08 11.977a5.123 5.123 0 01-1.295-.2C2.754 11.46 1.883 10.2 1.883 9.022a2.963 2.963 0 012.63-2.937A4.203 4.203 0 018.432 3.48a4.254 4.254 0 014.249 4.17 2.251 2.251 0 011.437 2.09 2.24 2.24 0 01-2.238 2.237l-4.947.003c-1.01 0-1.79-.001-1.853-.003zm-.228-4.573c-.899 0-1.63.725-1.63 1.618 0 .842.702 1.61 1.474 1.61l7.183.007a.9.9 0 000-1.799.883.883 0 00-.337.067l-.493.202.159-.508a2.914 2.914 0 00-2.777-3.783 2.897 2.897 0 00-2.868 2.436l-.044.268-.264-.067a1.641 1.641 0 00-.403-.051z"/></svg>`
15129
+ };
15118
15130
  const cloudUpload16X16 = {
15119
15131
  name: 'cloud_upload_16_x_16',
15120
15132
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M8.476 7.298l-1.927 3.848 1.48-.568v3.407h.948v-3.407l1.42.568zM15 9.005a2.374 2.374 0 01-2.371 2.371h-.998l-.5-1h1.498a1.371 1.371 0 10-.516-2.64A3.77 3.77 0 104.797 5.99 2.238 2.238 0 002 8.148a2.223 2.223 0 002.057 2.22l1.758.009-.448.894a10.567 10.567 0 01-2.31-.121 3.224 3.224 0 01.993-6.225 4.77 4.77 0 019.236 1.68c0 .04 0 .081-.002.121A2.375 2.375 0 0115 9.006z"/></svg>`
@@ -15391,6 +15403,10 @@
15391
15403
  name: 'server_16_x_16',
15392
15404
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M13 3H3v3h10zM9 5H4V4h5zM3 7v3h10V7zm6 2H4V8h5zm3 4H3v-2h10v1a1 1 0 01-1 1z"/></svg>`
15393
15405
  };
15406
+ const shareNodes16X16 = {
15407
+ name: 'share_nodes_16_x_16',
15408
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M12 10c-.601 0-1.134.27-1.5.69L5.954 8.419a2 2 0 000-.836l4.544-2.273c.367.42.9.691 1.501.691a2 2 0 10-1.955-1.582L5.501 6.691C5.134 6.27 4.6 6 4 6a2 2 0 100 4c.601 0 1.134-.27 1.5-.69l4.545 2.272A2 2 0 1012 10z"/></svg>`
15409
+ };
15394
15410
  const shareSquare16X16 = {
15395
15411
  name: 'share_square_16_x_16',
15396
15412
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M13.984 2.012l-2.069 6.153-.565-2.722-3.544 3.544-.822-.822 3.544-3.544-2.723-.566zM2 4v10h10v-4h-2v2H4V6h2V4z"/></svg>`
@@ -15455,6 +15471,10 @@
15455
15471
  name: 'three_dots_line_16_x_16',
15456
15472
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M8 6.5A1.5 1.5 0 116.5 8 1.5 1.5 0 018 6.5zM.5 8A1.5 1.5 0 102 6.5 1.5 1.5 0 00.5 8zm12 0A1.5 1.5 0 1014 6.5 1.5 1.5 0 0012.5 8z"/></svg>`
15457
15473
  };
15474
+ const threeVerticalLines16X16 = {
15475
+ name: 'three_vertical_lines_16_x_16',
15476
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M11 3h2v10h-2zM7 3h2v10H7zM3 3h2v10H3z"/></svg>`
15477
+ };
15458
15478
  const thumbtack16X16 = {
15459
15479
  name: 'thumbtack_16_x_16',
15460
15480
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M10 7l-.625-5H10V1H5v1h.625L5 7a2 2 0 00-2 2h4v4l.5 2 .5-2V9h4a2 2 0 00-2-2z"/></svg>`
@@ -16052,8 +16072,7 @@
16052
16072
  }
16053
16073
 
16054
16074
  :host(:hover) {
16055
- box-shadow: 0px 1px 4px
16056
- var(--ni-private-card-button-box-shadow-hover-color);
16075
+ box-shadow: 0px 1px 4px ${hexToRgbaCssColor(Black, 0.3)};
16057
16076
  }
16058
16077
 
16059
16078
  :host(:active) {
@@ -16148,7 +16167,6 @@
16148
16167
  }
16149
16168
  `.withBehaviors(themeBehavior(Theme.light, css `
16150
16169
  :host {
16151
- --ni-private-card-button-box-shadow-hover-color: ${hexToRgbaCssColor(Black, 0.3)};
16152
16170
  --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(White, 0.3)};
16153
16171
  --ni-private-card-button-background-active-color: ${White};
16154
16172
  --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(Black91, 0.2)};
@@ -16156,7 +16174,6 @@
16156
16174
  }
16157
16175
  `), themeBehavior(Theme.dark, css `
16158
16176
  :host {
16159
- --ni-private-card-button-box-shadow-hover-color: ${hexToRgbaCssColor(Black, 0.77)};
16160
16177
  --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(Black15, 0.07)};
16161
16178
  --ni-private-card-button-background-active-color: ${hexToRgbaCssColor(Black15, 0.15)};
16162
16179
  --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(Black15, 0.2)};
@@ -16164,9 +16181,8 @@
16164
16181
  }
16165
16182
  `), themeBehavior(Theme.color, css `
16166
16183
  :host {
16167
- --ni-private-card-button-box-shadow-hover-color: ${hexToRgbaCssColor(White, 0.77)};
16168
- --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(White, 0.2)};
16169
- --ni-private-card-button-background-active-color: ${hexToRgbaCssColor(White, 0.4)};
16184
+ --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(White, 0.07)};
16185
+ --ni-private-card-button-background-active-color: ${hexToRgbaCssColor(White, 0.15)};
16170
16186
  --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(White, 0.2)};
16171
16187
  --ni-private-card-button-border-selected-color: ${hexToRgbaCssColor(White, 0.6)};
16172
16188
  }
@@ -16991,7 +17007,6 @@
16991
17007
  role="alertdialog"
16992
17008
  aria-label="${x => x.ariaLabel}"
16993
17009
  @cancel="${(x, c) => x.cancelHandler(c.event)}"
16994
- @close="${x => x.closeHandler()}"
16995
17010
  >
16996
17011
  <slot></slot>
16997
17012
  </dialog>
@@ -17044,16 +17059,9 @@
17044
17059
  if (!this.open) {
17045
17060
  throw new Error('Dialog is not open');
17046
17061
  }
17047
- this.closeReason = reason;
17048
17062
  this.dialogElement.close();
17049
- }
17050
- /**
17051
- * @internal
17052
- */
17053
- closeHandler() {
17054
- this.resolveShow(this.closeReason);
17063
+ this.resolveShow(reason);
17055
17064
  this.resolveShow = undefined;
17056
- return true;
17057
17065
  }
17058
17066
  /**
17059
17067
  * @internal
@@ -17063,11 +17071,15 @@
17063
17071
  event.preventDefault();
17064
17072
  }
17065
17073
  else {
17066
- this.closeReason = USER_DISMISSED;
17074
+ this.resolveShow(USER_DISMISSED);
17075
+ this.resolveShow = undefined;
17067
17076
  }
17068
17077
  return true;
17069
17078
  }
17070
17079
  }
17080
+ // We want the member to match the name of the constant
17081
+ // eslint-disable-next-line @typescript-eslint/naming-convention
17082
+ Dialog.USER_DISMISSED = USER_DISMISSED;
17071
17083
  __decorate([
17072
17084
  attr({ attribute: 'prevent-dismiss', mode: 'boolean' })
17073
17085
  ], Dialog.prototype, "preventDismiss", void 0);
@@ -18694,6 +18706,17 @@
18694
18706
  }
18695
18707
  registerIcon('icon-block-with-ribbon', IconBlockWithRibbon);
18696
18708
 
18709
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
18710
+ /**
18711
+ * The icon component for the 'bookMagnifyingGlass' icon
18712
+ */
18713
+ class IconBookMagnifyingGlass extends Icon {
18714
+ constructor() {
18715
+ super(bookMagnifyingGlass16X16);
18716
+ }
18717
+ }
18718
+ registerIcon('icon-book-magnifying-glass', IconBookMagnifyingGlass);
18719
+
18697
18720
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
18698
18721
  /**
18699
18722
  * The icon component for the 'calendar' icon
@@ -18782,6 +18805,17 @@
18782
18805
  }
18783
18806
  registerIcon('icon-circle', IconCircle);
18784
18807
 
18808
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
18809
+ /**
18810
+ * The icon component for the 'circleFilled' icon
18811
+ */
18812
+ class IconCircleFilled extends Icon {
18813
+ constructor() {
18814
+ super(circleFilled16X16);
18815
+ }
18816
+ }
18817
+ registerIcon('icon-circle-filled', IconCircleFilled);
18818
+
18785
18819
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
18786
18820
  /**
18787
18821
  * The icon component for the 'circleBroken' icon
@@ -18892,6 +18926,17 @@
18892
18926
  }
18893
18927
  registerIcon('icon-clone', IconClone);
18894
18928
 
18929
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
18930
+ /**
18931
+ * The icon component for the 'cloud' icon
18932
+ */
18933
+ class IconCloud extends Icon {
18934
+ constructor() {
18935
+ super(cloud16X16);
18936
+ }
18937
+ }
18938
+ registerIcon('icon-cloud', IconCloud);
18939
+
18895
18940
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
18896
18941
  /**
18897
18942
  * The icon component for the 'cloudUpload' icon
@@ -19640,6 +19685,17 @@
19640
19685
  }
19641
19686
  registerIcon('icon-server', IconServer);
19642
19687
 
19688
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
19689
+ /**
19690
+ * The icon component for the 'shareNodes' icon
19691
+ */
19692
+ class IconShareNodes extends Icon {
19693
+ constructor() {
19694
+ super(shareNodes16X16);
19695
+ }
19696
+ }
19697
+ registerIcon('icon-share-nodes', IconShareNodes);
19698
+
19643
19699
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
19644
19700
  /**
19645
19701
  * The icon component for the 'shareSquare' icon
@@ -19816,6 +19872,17 @@
19816
19872
  }
19817
19873
  registerIcon('icon-three-dots-line', IconThreeDotsLine);
19818
19874
 
19875
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
19876
+ /**
19877
+ * The icon component for the 'threeVerticalLines' icon
19878
+ */
19879
+ class IconThreeVerticalLines extends Icon {
19880
+ constructor() {
19881
+ super(threeVerticalLines16X16);
19882
+ }
19883
+ }
19884
+ registerIcon('icon-three-vertical-lines', IconThreeVerticalLines);
19885
+
19819
19886
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
19820
19887
  /**
19821
19888
  * The icon component for the 'thumbtack' icon