@ni/nimble-components 30.0.2 → 30.0.3
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 +61 -17
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +34 -21
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/row/index.d.ts +1 -0
- package/dist/esm/table/components/row/index.js +4 -0
- package/dist/esm/table/components/row/index.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +1 -1
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/table/components/row/template.js +1 -1
- package/dist/esm/table/components/row/template.js.map +1 -1
- package/dist/esm/table/index.d.ts +8 -0
- package/dist/esm/table/index.js +29 -1
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/styles.js +9 -0
- package/dist/esm/table/styles.js.map +1 -1
- package/dist/esm/table/template.js +17 -14
- package/dist/esm/table/template.js.map +1 -1
- package/dist/esm/table/testing/table.pageobject.d.ts +1 -0
- package/dist/esm/table/testing/table.pageobject.js +7 -0
- package/dist/esm/table/testing/table.pageobject.js.map +1 -1
- package/package.json +1 -1
|
@@ -16333,7 +16333,7 @@
|
|
|
16333
16333
|
|
|
16334
16334
|
/**
|
|
16335
16335
|
* Do not edit directly
|
|
16336
|
-
* Generated on Wed, 17 Jul 2024
|
|
16336
|
+
* Generated on Wed, 17 Jul 2024 20:01:55 GMT
|
|
16337
16337
|
*/
|
|
16338
16338
|
|
|
16339
16339
|
const Information100DarkUi = "#a46eff";
|
|
@@ -65282,12 +65282,21 @@ focus outline in that case.
|
|
|
65282
65282
|
grid-template-columns: var(--ni-private-table-row-grid-columns) auto;
|
|
65283
65283
|
}
|
|
65284
65284
|
|
|
65285
|
+
.collapse-all-button-container {
|
|
65286
|
+
display: flex;
|
|
65287
|
+
min-width: ${mediumPadding};
|
|
65288
|
+
}
|
|
65289
|
+
|
|
65285
65290
|
.collapse-all-button {
|
|
65286
65291
|
height: ${controlSlimHeight};
|
|
65287
65292
|
margin-left: ${mediumPadding};
|
|
65288
65293
|
visibility: hidden;
|
|
65289
65294
|
}
|
|
65290
65295
|
|
|
65296
|
+
.collapse-all-button.hidden-size-reduced {
|
|
65297
|
+
display: none;
|
|
65298
|
+
}
|
|
65299
|
+
|
|
65291
65300
|
.collapse-all-button.visible {
|
|
65292
65301
|
visibility: visible;
|
|
65293
65302
|
}
|
|
@@ -65650,7 +65659,7 @@ focus outline in that case.
|
|
|
65650
65659
|
flex: 0 0 auto;
|
|
65651
65660
|
}
|
|
65652
65661
|
|
|
65653
|
-
.row-front-spacer.
|
|
65662
|
+
.row-front-spacer.reduced-size-spacer {
|
|
65654
65663
|
width: ${mediumPadding};
|
|
65655
65664
|
}
|
|
65656
65665
|
|
|
@@ -65903,7 +65912,7 @@ focus outline in that case.
|
|
|
65903
65912
|
`)}
|
|
65904
65913
|
</span>
|
|
65905
65914
|
`)}
|
|
65906
|
-
<span class="row-front-spacer ${x => (x.isTopLevelParentRow ? '
|
|
65915
|
+
<span class="row-front-spacer ${x => (x.isTopLevelParentRow || !x.reserveCollapseSpace ? 'reduced-size-spacer' : '')}"></span>
|
|
65907
65916
|
${when(x => x.isParentRow, html `
|
|
65908
65917
|
${when(x => x.loading, html `
|
|
65909
65918
|
<span class="spinner-container">
|
|
@@ -65981,6 +65990,7 @@ focus outline in that case.
|
|
|
65981
65990
|
this.selected = false;
|
|
65982
65991
|
this.hideSelection = false;
|
|
65983
65992
|
this.expanded = false;
|
|
65993
|
+
this.reserveCollapseSpace = false;
|
|
65984
65994
|
/**
|
|
65985
65995
|
* @internal
|
|
65986
65996
|
* */
|
|
@@ -66205,6 +66215,9 @@ focus outline in that case.
|
|
|
66205
66215
|
__decorate$1([
|
|
66206
66216
|
attr({ mode: 'boolean' })
|
|
66207
66217
|
], TableRow.prototype, "expanded", void 0);
|
|
66218
|
+
__decorate$1([
|
|
66219
|
+
attr({ attribute: 'reserve-collapse-space', mode: 'boolean' })
|
|
66220
|
+
], TableRow.prototype, "reserveCollapseSpace", void 0);
|
|
66208
66221
|
__decorate$1([
|
|
66209
66222
|
observable
|
|
66210
66223
|
], TableRow.prototype, "dataRecord", void 0);
|
|
@@ -66547,7 +66560,7 @@ focus outline in that case.
|
|
|
66547
66560
|
${ref('selectionCheckbox')}
|
|
66548
66561
|
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
66549
66562
|
tabindex="-1"
|
|
66550
|
-
class="
|
|
66563
|
+
class="selection-checkbox"
|
|
66551
66564
|
@change="${(x, c) => x.onAllRowsSelectionChange(c.event)}"
|
|
66552
66565
|
title="${x => tableSelectAllLabel.getValueFor(x)}"
|
|
66553
66566
|
aria-label="${x => tableSelectAllLabel.getValueFor(x)}"
|
|
@@ -66555,19 +66568,21 @@ focus outline in that case.
|
|
|
66555
66568
|
</${checkboxTag}>
|
|
66556
66569
|
</span>
|
|
66557
66570
|
`)}
|
|
66558
|
-
|
|
66559
|
-
|
|
66560
|
-
|
|
66561
|
-
|
|
66562
|
-
|
|
66563
|
-
|
|
66564
|
-
|
|
66565
|
-
|
|
66566
|
-
|
|
66567
|
-
|
|
66568
|
-
|
|
66569
|
-
|
|
66570
|
-
|
|
66571
|
+
<span class="collapse-all-button-container">
|
|
66572
|
+
<${buttonTag}
|
|
66573
|
+
${ref('collapseAllButton')}
|
|
66574
|
+
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
66575
|
+
tabindex="-1"
|
|
66576
|
+
class="collapse-all-button ${x => x.collapseButtonVisibility}"
|
|
66577
|
+
content-hidden
|
|
66578
|
+
appearance="${ButtonAppearance.ghost}"
|
|
66579
|
+
title="${x => tableCollapseAllLabel.getValueFor(x)}"
|
|
66580
|
+
@click="${x => x.handleCollapseAllRows()}"
|
|
66581
|
+
>
|
|
66582
|
+
<${iconTriangleTwoLinesHorizontalTag} slot="start"></${iconTriangleTwoLinesHorizontalTag}>
|
|
66583
|
+
${x => tableCollapseAllLabel.getValueFor(x)}
|
|
66584
|
+
</${buttonTag}>
|
|
66585
|
+
</span>
|
|
66571
66586
|
</span>
|
|
66572
66587
|
<span class="column-headers-container" ${ref('columnHeadersContainer')}>
|
|
66573
66588
|
${repeat(x => x.visibleColumns, html `
|
|
@@ -66651,6 +66666,7 @@ focus outline in that case.
|
|
|
66651
66666
|
?selected="${(x, c) => c.parent.tableData[x.index]?.selectionState === TableRowSelectionState.selected}"
|
|
66652
66667
|
?expanded="${(x, c) => c.parent.tableData[x.index]?.isExpanded}"
|
|
66653
66668
|
?hide-selection="${(_, c) => c.parent.selectionMode !== TableRowSelectionMode.multiple}"
|
|
66669
|
+
?reserve-collapse-space="${(_, c) => c.parent.canHaveCollapsibleRows}"
|
|
66654
66670
|
:dataRecord="${(x, c) => c.parent.tableData[x.index]?.record}"
|
|
66655
66671
|
:columns="${(_, c) => c.parent.columns}"
|
|
66656
66672
|
:isParentRow="${(x, c) => c.parent.tableData[x.index]?.isParentRow}"
|
|
@@ -69597,6 +69613,18 @@ focus outline in that case.
|
|
|
69597
69613
|
return (this.selectionMode === TableRowSelectionMode.multiple
|
|
69598
69614
|
|| this.showCollapseAll);
|
|
69599
69615
|
}
|
|
69616
|
+
/**
|
|
69617
|
+
* @internal
|
|
69618
|
+
*/
|
|
69619
|
+
get collapseButtonVisibility() {
|
|
69620
|
+
if (!this.canHaveCollapsibleRows) {
|
|
69621
|
+
return 'hidden-size-reduced';
|
|
69622
|
+
}
|
|
69623
|
+
if (this.showCollapseAll) {
|
|
69624
|
+
return 'visible';
|
|
69625
|
+
}
|
|
69626
|
+
return '';
|
|
69627
|
+
}
|
|
69600
69628
|
constructor() {
|
|
69601
69629
|
super();
|
|
69602
69630
|
this.selectionMode = TableRowSelectionMode.none;
|
|
@@ -69632,6 +69660,10 @@ focus outline in that case.
|
|
|
69632
69660
|
* @internal
|
|
69633
69661
|
*/
|
|
69634
69662
|
this.showCollapseAll = false;
|
|
69663
|
+
/**
|
|
69664
|
+
* @internal
|
|
69665
|
+
*/
|
|
69666
|
+
this.canHaveCollapsibleRows = false;
|
|
69635
69667
|
/**
|
|
69636
69668
|
* @internal
|
|
69637
69669
|
*/
|
|
@@ -69955,6 +69987,12 @@ focus outline in that case.
|
|
|
69955
69987
|
if (this.tableUpdateTracker.requiresTanStackUpdate) {
|
|
69956
69988
|
this.updateTanStack();
|
|
69957
69989
|
}
|
|
69990
|
+
if (this.tableUpdateTracker.updateRowParentIds
|
|
69991
|
+
|| this.tableUpdateTracker.updateGroupRows) {
|
|
69992
|
+
const hierarchyEnabled = this.isHierarchyEnabled();
|
|
69993
|
+
const hasGroupableColumns = this.columns.some(x => !x.columnInternals.groupingDisabled);
|
|
69994
|
+
this.canHaveCollapsibleRows = hierarchyEnabled || hasGroupableColumns;
|
|
69995
|
+
}
|
|
69958
69996
|
if (this.tableUpdateTracker.updateActionMenuSlots) {
|
|
69959
69997
|
this.updateActionMenuSlots();
|
|
69960
69998
|
}
|
|
@@ -70462,6 +70500,12 @@ focus outline in that case.
|
|
|
70462
70500
|
__decorate$1([
|
|
70463
70501
|
observable
|
|
70464
70502
|
], Table$1.prototype, "showCollapseAll", void 0);
|
|
70503
|
+
__decorate$1([
|
|
70504
|
+
observable
|
|
70505
|
+
], Table$1.prototype, "canHaveCollapsibleRows", void 0);
|
|
70506
|
+
__decorate$1([
|
|
70507
|
+
volatile
|
|
70508
|
+
], Table$1.prototype, "collapseButtonVisibility", null);
|
|
70465
70509
|
__decorate$1([
|
|
70466
70510
|
observable
|
|
70467
70511
|
], Table$1.prototype, "firstSortedColumn", void 0);
|