@ni/nimble-components 19.8.4 → 19.9.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 +19 -11
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +10 -10
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/src/table/index.d.ts +1 -0
- package/dist/esm/src/table/models/table-layout-manager.d.ts +1 -1
- package/dist/esm/src/table/types.d.ts +8 -0
- package/dist/esm/src/table-column/date-text/cell-view/index.d.ts +15 -0
- package/dist/esm/src/table-column/date-text/group-header-view/index.d.ts +16 -0
- package/dist/esm/src/table-column/date-text/index.d.ts +18 -0
- package/dist/esm/src/table-column/date-text/testing/table-column-date-text.pageobject.d.ts +14 -0
- package/dist/esm/table/index.d.ts +1 -0
- package/dist/esm/table/index.js +9 -0
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/models/table-layout-manager.d.ts +1 -1
- package/dist/esm/table/models/table-layout-manager.js +9 -10
- package/dist/esm/table/models/table-layout-manager.js.map +1 -1
- package/dist/esm/table/types.d.ts +8 -0
- package/dist/esm/table/types.js.map +1 -1
- package/dist/esm/table-column/date-text/cell-view/index.d.ts +15 -0
- package/dist/esm/table-column/date-text/cell-view/index.js +34 -0
- package/dist/esm/table-column/date-text/cell-view/index.js.map +1 -0
- package/dist/esm/table-column/date-text/group-header-view/index.d.ts +16 -0
- package/dist/esm/table-column/date-text/group-header-view/index.js +36 -0
- package/dist/esm/table-column/date-text/group-header-view/index.js.map +1 -0
- package/dist/esm/table-column/date-text/index.d.ts +18 -0
- package/dist/esm/table-column/date-text/index.js +31 -0
- package/dist/esm/table-column/date-text/index.js.map +1 -0
- package/dist/esm/table-column/date-text/testing/table-column-date-text.pageobject.d.ts +14 -0
- package/dist/esm/table-column/date-text/testing/table-column-date-text.pageobject.js +36 -0
- package/dist/esm/table-column/date-text/testing/table-column-date-text.pageobject.js.map +1 -0
- package/package.json +1 -1
|
@@ -16288,7 +16288,7 @@
|
|
|
16288
16288
|
|
|
16289
16289
|
/**
|
|
16290
16290
|
* Do not edit directly
|
|
16291
|
-
* Generated on
|
|
16291
|
+
* Generated on Mon, 24 Jul 2023 14:49:20 GMT
|
|
16292
16292
|
*/
|
|
16293
16293
|
|
|
16294
16294
|
const Information100DarkUi = "#a46eff";
|
|
@@ -30899,11 +30899,11 @@
|
|
|
30899
30899
|
this.visibleColumns = [];
|
|
30900
30900
|
this.currentTotalDelta = 0;
|
|
30901
30901
|
this.dragStart = 0;
|
|
30902
|
-
this.
|
|
30902
|
+
this.initialColumnWidths = [];
|
|
30903
30903
|
this.onDividerMouseMove = (event) => {
|
|
30904
30904
|
const mouseEvent = event;
|
|
30905
30905
|
for (let i = 0; i < this.visibleColumns.length; i++) {
|
|
30906
|
-
this.visibleColumns[i].columnInternals.currentPixelWidth = this.
|
|
30906
|
+
this.visibleColumns[i].columnInternals.currentPixelWidth = this.initialColumnWidths[i]?.initialPixelWidth;
|
|
30907
30907
|
}
|
|
30908
30908
|
this.currentTotalDelta = this.getAllowedSizeDelta(mouseEvent.clientX - this.dragStart);
|
|
30909
30909
|
this.performCascadeSizeLeft(this.leftColumnIndex, this.currentTotalDelta);
|
|
@@ -30982,7 +30982,7 @@
|
|
|
30982
30982
|
// size left
|
|
30983
30983
|
let currentIndex = this.leftColumnIndex;
|
|
30984
30984
|
while (currentIndex >= 0) {
|
|
30985
|
-
const columnInitialWidths = this.
|
|
30985
|
+
const columnInitialWidths = this.initialColumnWidths[currentIndex];
|
|
30986
30986
|
availableSpace
|
|
30987
30987
|
+= columnInitialWidths.initialPixelWidth
|
|
30988
30988
|
- columnInitialWidths.minPixelWidth;
|
|
@@ -30992,7 +30992,7 @@
|
|
|
30992
30992
|
}
|
|
30993
30993
|
performCascadeSizeLeft(leftColumnIndex, delta) {
|
|
30994
30994
|
let currentDelta = delta;
|
|
30995
|
-
const leftColumnInitialWidths = this.
|
|
30995
|
+
const leftColumnInitialWidths = this.initialColumnWidths[leftColumnIndex];
|
|
30996
30996
|
const allowedDelta = delta < 0
|
|
30997
30997
|
? Math.max(leftColumnInitialWidths.minPixelWidth
|
|
30998
30998
|
- leftColumnInitialWidths.initialPixelWidth, currentDelta)
|
|
@@ -31007,7 +31007,7 @@
|
|
|
31007
31007
|
}
|
|
31008
31008
|
performCascadeSizeRight(rightColumnIndex, delta) {
|
|
31009
31009
|
let currentDelta = delta;
|
|
31010
|
-
const rightColumnInitialWidths = this.
|
|
31010
|
+
const rightColumnInitialWidths = this.initialColumnWidths[rightColumnIndex];
|
|
31011
31011
|
const allowedDelta = delta > 0
|
|
31012
31012
|
? Math.min(rightColumnInitialWidths.initialPixelWidth
|
|
31013
31013
|
- rightColumnInitialWidths.minPixelWidth, currentDelta)
|
|
@@ -31031,9 +31031,9 @@
|
|
|
31031
31031
|
}
|
|
31032
31032
|
}
|
|
31033
31033
|
cacheColumnInitialPixelWidths() {
|
|
31034
|
-
this.
|
|
31034
|
+
this.initialColumnWidths = [];
|
|
31035
31035
|
for (const column of this.visibleColumns) {
|
|
31036
|
-
this.
|
|
31036
|
+
this.initialColumnWidths.push({
|
|
31037
31037
|
initalColumnFractionalWidth: column.columnInternals.currentFractionalWidth,
|
|
31038
31038
|
initialPixelWidth: column.columnInternals.currentPixelWidth,
|
|
31039
31039
|
minPixelWidth: column.columnInternals.minPixelWidth
|
|
@@ -31051,9 +31051,8 @@
|
|
|
31051
31051
|
if (column === this.gridSizedColumns[gridColumnIndex]) {
|
|
31052
31052
|
gridColumnIndex += 1;
|
|
31053
31053
|
column.columnInternals.currentFractionalWidth = (column.columnInternals.currentPixelWidth
|
|
31054
|
-
/ this.
|
|
31055
|
-
* this.
|
|
31056
|
-
.initalColumnFractionalWidth;
|
|
31054
|
+
/ this.initialColumnWidths[i].initialPixelWidth)
|
|
31055
|
+
* this.initialColumnWidths[i].initalColumnFractionalWidth;
|
|
31057
31056
|
column.columnInternals.currentPixelWidth = undefined;
|
|
31058
31057
|
}
|
|
31059
31058
|
}
|
|
@@ -31656,6 +31655,8 @@
|
|
|
31656
31655
|
this.table = createTable(this.options);
|
|
31657
31656
|
this.virtualizer = new Virtualizer(this, this.table);
|
|
31658
31657
|
this.layoutManager = new TableLayoutManager(this);
|
|
31658
|
+
this.layoutManagerNotifier = Observable.getNotifier(this.layoutManager);
|
|
31659
|
+
this.layoutManagerNotifier.subscribe(this, 'isColumnBeingSized');
|
|
31659
31660
|
this.selectionManager = new InteractiveSelectionManager(this.table, this.selectionMode);
|
|
31660
31661
|
}
|
|
31661
31662
|
get validity() {
|
|
@@ -31743,6 +31744,13 @@
|
|
|
31743
31744
|
this.tableUpdateTracker.trackColumnPropertyChanged(args);
|
|
31744
31745
|
}
|
|
31745
31746
|
}
|
|
31747
|
+
else if (source instanceof TableLayoutManager
|
|
31748
|
+
&& args === 'isColumnBeingSized'
|
|
31749
|
+
&& !this.layoutManager.isColumnBeingSized) {
|
|
31750
|
+
// 'isColumnBeingSized' changing to 'false' indicates an interactive
|
|
31751
|
+
// column sizing operation has been completed
|
|
31752
|
+
this.emitColumnConfigurationChangeEvent();
|
|
31753
|
+
}
|
|
31746
31754
|
}
|
|
31747
31755
|
/** @internal */
|
|
31748
31756
|
onRowSelectionToggle(rowIndex, event) {
|