@skyux/grids 8.0.2 → 8.1.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/documentation.json +1 -1
- package/esm2020/lib/modules/grid/grid-column.component.mjs +6 -5
- package/esm2020/lib/modules/grid/grid.component.mjs +4 -4
- package/fesm2015/skyux-grids.mjs +8 -7
- package/fesm2015/skyux-grids.mjs.map +1 -1
- package/fesm2020/skyux-grids.mjs +8 -7
- package/fesm2020/skyux-grids.mjs.map +1 -1
- package/package.json +8 -8
package/fesm2020/skyux-grids.mjs
CHANGED
|
@@ -134,7 +134,7 @@ class SkyGridColumnComponent {
|
|
|
134
134
|
this.inlineHelpPopoverModelChanges = new EventEmitter();
|
|
135
135
|
}
|
|
136
136
|
ngOnChanges(changes) {
|
|
137
|
-
if (changes
|
|
137
|
+
if (changes['heading'] && changes['heading'].firstChange === false) {
|
|
138
138
|
this.headingChanges.emit(this.heading);
|
|
139
139
|
this.headingModelChanges.emit({
|
|
140
140
|
value: this.heading,
|
|
@@ -142,7 +142,8 @@ class SkyGridColumnComponent {
|
|
|
142
142
|
field: this.field,
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
if (changes
|
|
145
|
+
if (changes['description'] &&
|
|
146
|
+
changes['description'].firstChange === false) {
|
|
146
147
|
this.descriptionChanges.emit(this.description);
|
|
147
148
|
this.descriptionModelChanges.emit({
|
|
148
149
|
value: this.description,
|
|
@@ -150,8 +151,8 @@ class SkyGridColumnComponent {
|
|
|
150
151
|
field: this.field,
|
|
151
152
|
});
|
|
152
153
|
}
|
|
153
|
-
if (changes
|
|
154
|
-
changes
|
|
154
|
+
if (changes['inlineHelpPopover'] &&
|
|
155
|
+
changes['inlineHelpPopover'].firstChange === false) {
|
|
155
156
|
this.inlineHelpPopoverModelChanges.emit({
|
|
156
157
|
value: this.inlineHelpPopover,
|
|
157
158
|
id: this.id,
|
|
@@ -544,7 +545,7 @@ class SkyGridComponent {
|
|
|
544
545
|
this.checkUserColumnWidthsForScroll();
|
|
545
546
|
}
|
|
546
547
|
ngOnChanges(changes) {
|
|
547
|
-
if (changes
|
|
548
|
+
if (changes['columns'] && this.columns) {
|
|
548
549
|
if (this.selectedColumnIds) {
|
|
549
550
|
this.selectedColumnIds = this.selectedColumnIds.filter((columnId) => {
|
|
550
551
|
return this.columns.find((column) => column.id === columnId);
|
|
@@ -552,7 +553,7 @@ class SkyGridComponent {
|
|
|
552
553
|
}
|
|
553
554
|
this.setDisplayedColumns(true);
|
|
554
555
|
}
|
|
555
|
-
if (changes
|
|
556
|
+
if (changes['data'] && this.data) {
|
|
556
557
|
this.transformData();
|
|
557
558
|
// This set timeout is necessary to ensure the data has rendered in the grid
|
|
558
559
|
setTimeout(() => {
|
|
@@ -578,7 +579,7 @@ class SkyGridComponent {
|
|
|
578
579
|
this.checkUserColumnWidthsForScroll();
|
|
579
580
|
});
|
|
580
581
|
}
|
|
581
|
-
if (changes
|
|
582
|
+
if (changes['sortField']) {
|
|
582
583
|
this.setSortHeaders();
|
|
583
584
|
}
|
|
584
585
|
}
|