@ni/nimble-components 19.2.3 → 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 +27 -3
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +9 -3
- package/dist/all-components-bundle.min.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";
|
|
@@ -28176,6 +28176,8 @@
|
|
|
28176
28176
|
this.columnHidden = false;
|
|
28177
28177
|
this.sortDirection = TableColumnSortDirection.none;
|
|
28178
28178
|
this.sortingDisabled = false;
|
|
28179
|
+
/** @internal */
|
|
28180
|
+
this.isValidContentAndHasOverflow = false;
|
|
28179
28181
|
}
|
|
28180
28182
|
checkValidity() {
|
|
28181
28183
|
return this.columnInternals.validConfiguration;
|
|
@@ -28183,6 +28185,13 @@
|
|
|
28183
28185
|
get validity() {
|
|
28184
28186
|
return {};
|
|
28185
28187
|
}
|
|
28188
|
+
/** @internal */
|
|
28189
|
+
get headerTextContent() {
|
|
28190
|
+
return this.contentSlot
|
|
28191
|
+
.assignedNodes()
|
|
28192
|
+
.map(node => node.textContent?.trim())
|
|
28193
|
+
.join(' ');
|
|
28194
|
+
}
|
|
28186
28195
|
sortDirectionChanged() {
|
|
28187
28196
|
if (!this.sortingDisabled) {
|
|
28188
28197
|
this.columnInternals.currentSortDirection = this.sortDirection;
|
|
@@ -28225,6 +28234,9 @@
|
|
|
28225
28234
|
__decorate$1([
|
|
28226
28235
|
attr({ attribute: 'sorting-disabled', mode: 'boolean' })
|
|
28227
28236
|
], TableColumn.prototype, "sortingDisabled", void 0);
|
|
28237
|
+
__decorate$1([
|
|
28238
|
+
observable
|
|
28239
|
+
], TableColumn.prototype, "isValidContentAndHasOverflow", void 0);
|
|
28228
28240
|
|
|
28229
28241
|
/**
|
|
28230
28242
|
* Helper class for the nimble-table to validate that the table's configuration
|
|
@@ -31273,10 +31285,22 @@
|
|
|
31273
31285
|
}
|
|
31274
31286
|
`;
|
|
31275
31287
|
|
|
31288
|
+
// prettier-ignore
|
|
31276
31289
|
const template$8 = html `
|
|
31277
31290
|
<template slot="${x => x.columnInternals.uniqueId}">
|
|
31278
|
-
<span
|
|
31279
|
-
|
|
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>
|
|
31280
31304
|
</span>
|
|
31281
31305
|
</template>
|
|
31282
31306
|
`;
|