@ni/nimble-components 19.2.2 → 19.3.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.
- package/dist/all-components-bundle.js +35 -13
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +10 -4
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/combobox/index.js +8 -10
- package/dist/esm/combobox/index.js.map +1 -1
- package/dist/esm/table/testing/table.pageobject.d.ts +2 -0
- package/dist/esm/table/testing/table.pageobject.js +8 -0
- package/dist/esm/table/testing/table.pageobject.js.map +1 -1
- package/dist/esm/table-column/base/index.d.ts +8 -0
- package/dist/esm/table-column/base/index.js +13 -1
- package/dist/esm/table-column/base/index.js.map +1 -1
- package/dist/esm/table-column/base/template.js +15 -3
- package/dist/esm/table-column/base/template.js.map +1 -1
- package/package.json +1 -1
|
@@ -16232,7 +16232,7 @@
|
|
|
16232
16232
|
|
|
16233
16233
|
/**
|
|
16234
16234
|
* Do not edit directly
|
|
16235
|
-
* Generated on
|
|
16235
|
+
* Generated on Fri, 16 Jun 2023 19:05:18 GMT
|
|
16236
16236
|
*/
|
|
16237
16237
|
const Information100DarkUi = "#a46eff";
|
|
16238
16238
|
const Information100LightUi = "#804ad9";
|
|
@@ -20541,16 +20541,14 @@
|
|
|
20541
20541
|
// See: https://github.com/microsoft/fast/issues/6749
|
|
20542
20542
|
set value(next) {
|
|
20543
20543
|
super.value = next;
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20549
|
-
|
|
20550
|
-
|
|
20551
|
-
|
|
20552
|
-
.indexOf(this.value);
|
|
20553
|
-
}
|
|
20544
|
+
// Workaround using index notation to manipulate private member
|
|
20545
|
+
// Can remove when following resolved: https://github.com/microsoft/fast/issues/6749
|
|
20546
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
20547
|
+
this['filter'] = next;
|
|
20548
|
+
this.filterOptions();
|
|
20549
|
+
this.selectedIndex = this.options
|
|
20550
|
+
.map(option => option.text)
|
|
20551
|
+
.indexOf(this.value);
|
|
20554
20552
|
}
|
|
20555
20553
|
// Workaround for https://github.com/microsoft/fast/issues/5123
|
|
20556
20554
|
setPositioning() {
|
|
@@ -28178,6 +28176,8 @@
|
|
|
28178
28176
|
this.columnHidden = false;
|
|
28179
28177
|
this.sortDirection = TableColumnSortDirection.none;
|
|
28180
28178
|
this.sortingDisabled = false;
|
|
28179
|
+
/** @internal */
|
|
28180
|
+
this.isValidContentAndHasOverflow = false;
|
|
28181
28181
|
}
|
|
28182
28182
|
checkValidity() {
|
|
28183
28183
|
return this.columnInternals.validConfiguration;
|
|
@@ -28185,6 +28185,13 @@
|
|
|
28185
28185
|
get validity() {
|
|
28186
28186
|
return {};
|
|
28187
28187
|
}
|
|
28188
|
+
/** @internal */
|
|
28189
|
+
get headerTextContent() {
|
|
28190
|
+
return this.contentSlot
|
|
28191
|
+
.assignedNodes()
|
|
28192
|
+
.map(node => node.textContent?.trim())
|
|
28193
|
+
.join(' ');
|
|
28194
|
+
}
|
|
28188
28195
|
sortDirectionChanged() {
|
|
28189
28196
|
if (!this.sortingDisabled) {
|
|
28190
28197
|
this.columnInternals.currentSortDirection = this.sortDirection;
|
|
@@ -28227,6 +28234,9 @@
|
|
|
28227
28234
|
__decorate$1([
|
|
28228
28235
|
attr({ attribute: 'sorting-disabled', mode: 'boolean' })
|
|
28229
28236
|
], TableColumn.prototype, "sortingDisabled", void 0);
|
|
28237
|
+
__decorate$1([
|
|
28238
|
+
observable
|
|
28239
|
+
], TableColumn.prototype, "isValidContentAndHasOverflow", void 0);
|
|
28230
28240
|
|
|
28231
28241
|
/**
|
|
28232
28242
|
* Helper class for the nimble-table to validate that the table's configuration
|
|
@@ -31275,10 +31285,22 @@
|
|
|
31275
31285
|
}
|
|
31276
31286
|
`;
|
|
31277
31287
|
|
|
31288
|
+
// prettier-ignore
|
|
31278
31289
|
const template$8 = html `
|
|
31279
31290
|
<template slot="${x => x.columnInternals.uniqueId}">
|
|
31280
|
-
<span
|
|
31281
|
-
|
|
31291
|
+
<span
|
|
31292
|
+
${ref('headerSpan')}
|
|
31293
|
+
class="header-content"
|
|
31294
|
+
@mouseover="${x => {
|
|
31295
|
+
x.isValidContentAndHasOverflow = !!x.headerTextContent
|
|
31296
|
+
&& x.headerSpan.offsetWidth < x.headerSpan.scrollWidth;
|
|
31297
|
+
}}"
|
|
31298
|
+
@mouseout="${x => {
|
|
31299
|
+
x.isValidContentAndHasOverflow = false;
|
|
31300
|
+
}}"
|
|
31301
|
+
title=${x => (x.isValidContentAndHasOverflow ? x.headerTextContent : null)}
|
|
31302
|
+
>
|
|
31303
|
+
<slot ${ref('contentSlot')}></slot>
|
|
31282
31304
|
</span>
|
|
31283
31305
|
</template>
|
|
31284
31306
|
`;
|