@skyux/grids 5.6.0 → 5.7.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/bundles/skyux-grids.umd.js +23 -22
- package/documentation.json +68 -111
- package/esm2015/lib/modules/grid/grid.component.js +6 -5
- package/esm2015/lib/modules/grid/grid.component.js.map +1 -1
- package/esm2015/lib/modules/grid/grid.module.js +4 -4
- package/esm2015/lib/modules/grid/grid.module.js.map +1 -1
- package/esm2015/lib/modules/shared/{skyux-grids-resources.module.js → sky-grids-resources.module.js} +10 -10
- package/esm2015/lib/modules/shared/sky-grids-resources.module.js.map +1 -0
- package/fesm2015/skyux-grids.js +18 -17
- package/fesm2015/skyux-grids.js.map +1 -1
- package/lib/modules/grid/grid.component.d.ts +1 -2
- package/lib/modules/grid/grid.module.d.ts +2 -2
- package/lib/modules/shared/sky-grids-resources.module.d.ts +14 -0
- package/package.json +18 -18
- package/esm2015/lib/modules/shared/skyux-grids-resources.module.js.map +0 -1
- package/lib/modules/shared/skyux-grids-resources.module.d.ts +0 -14
package/fesm2015/skyux-grids.js
CHANGED
|
@@ -25,13 +25,13 @@ import { takeUntil, take, map, distinctUntilChanged, takeWhile } from 'rxjs/oper
|
|
|
25
25
|
/**
|
|
26
26
|
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
27
27
|
* The contents of this file were automatically generated by
|
|
28
|
-
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/
|
|
28
|
+
* the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-grids' schematic.
|
|
29
29
|
* To update this file, simply rerun the command.
|
|
30
30
|
*/
|
|
31
31
|
const RESOURCES = {
|
|
32
32
|
'EN-US': { skyux_grid_multiselect_select_row: { message: 'Select row' } },
|
|
33
33
|
};
|
|
34
|
-
class
|
|
34
|
+
class SkyGridsResourcesProvider {
|
|
35
35
|
getString(localeInfo, name) {
|
|
36
36
|
return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
37
37
|
}
|
|
@@ -39,25 +39,25 @@ class SkyuxGridsResourcesProvider {
|
|
|
39
39
|
/**
|
|
40
40
|
* Import into any component library module that needs to use resource strings.
|
|
41
41
|
*/
|
|
42
|
-
class
|
|
42
|
+
class SkyGridsResourcesModule {
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
SkyGridsResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyGridsResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
45
|
+
SkyGridsResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyGridsResourcesModule, exports: [SkyI18nModule] });
|
|
46
|
+
SkyGridsResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyGridsResourcesModule, providers: [
|
|
47
47
|
{
|
|
48
48
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
49
|
-
useClass:
|
|
49
|
+
useClass: SkyGridsResourcesProvider,
|
|
50
50
|
multi: true,
|
|
51
51
|
},
|
|
52
52
|
], imports: [SkyI18nModule] });
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyGridsResourcesModule, decorators: [{
|
|
54
54
|
type: NgModule,
|
|
55
55
|
args: [{
|
|
56
56
|
exports: [SkyI18nModule],
|
|
57
57
|
providers: [
|
|
58
58
|
{
|
|
59
59
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
60
|
-
useClass:
|
|
60
|
+
useClass: SkyGridsResourcesProvider,
|
|
61
61
|
multi: true,
|
|
62
62
|
},
|
|
63
63
|
],
|
|
@@ -374,8 +374,7 @@ class SkyGridComponent {
|
|
|
374
374
|
* Indicates whether to enable the multiselect feature to display a column of
|
|
375
375
|
* checkboxes on the left side of the grid. You can specify a unique ID with
|
|
376
376
|
* the `multiselectRowId` property, but multiselect defaults to the `id` property on
|
|
377
|
-
* the `data` object.
|
|
378
|
-
* we recommend the [list view grid](https://developer.blackbaud.com/skyux/components/list/grid) component.
|
|
377
|
+
* the `data` object.
|
|
379
378
|
* @default false
|
|
380
379
|
*/
|
|
381
380
|
this.enableMultiselect = false;
|
|
@@ -1021,7 +1020,7 @@ class SkyGridComponent {
|
|
|
1021
1020
|
const selectedRows = this.getSelectedRows();
|
|
1022
1021
|
return this.data.map((item) => {
|
|
1023
1022
|
let checked;
|
|
1024
|
-
if (
|
|
1023
|
+
if (Object.prototype.hasOwnProperty.call(item, this.multiselectRowId)) {
|
|
1025
1024
|
checked = selectedRows.indexOf(item[this.multiselectRowId]) > -1;
|
|
1026
1025
|
}
|
|
1027
1026
|
else {
|
|
@@ -1191,7 +1190,7 @@ class SkyGridComponent {
|
|
|
1191
1190
|
return item.isSelected;
|
|
1192
1191
|
})
|
|
1193
1192
|
.map((item) => {
|
|
1194
|
-
if (
|
|
1193
|
+
if (Object.prototype.hasOwnProperty.call(item.data, this.multiselectRowId)) {
|
|
1195
1194
|
return item.data[this.multiselectRowId];
|
|
1196
1195
|
}
|
|
1197
1196
|
return item.id;
|
|
@@ -1245,7 +1244,9 @@ class SkyGridComponent {
|
|
|
1245
1244
|
this.uiConfigService
|
|
1246
1245
|
.setConfig(this.settingsKey, config)
|
|
1247
1246
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
1248
|
-
.subscribe(
|
|
1247
|
+
.subscribe(
|
|
1248
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1249
|
+
() => { }, (err) => {
|
|
1249
1250
|
console.warn('Could not save grid settings.');
|
|
1250
1251
|
console.warn(err);
|
|
1251
1252
|
});
|
|
@@ -1378,7 +1379,7 @@ SkyGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
1378
1379
|
FormsModule,
|
|
1379
1380
|
SkyAffixModule,
|
|
1380
1381
|
SkyCheckboxModule,
|
|
1381
|
-
|
|
1382
|
+
SkyGridsResourcesModule,
|
|
1382
1383
|
SkyHelpInlineModule,
|
|
1383
1384
|
SkyIconModule,
|
|
1384
1385
|
SkyInlineDeleteModule,
|
|
@@ -1391,7 +1392,7 @@ SkyGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
1391
1392
|
FormsModule,
|
|
1392
1393
|
SkyAffixModule,
|
|
1393
1394
|
SkyCheckboxModule,
|
|
1394
|
-
|
|
1395
|
+
SkyGridsResourcesModule,
|
|
1395
1396
|
SkyHelpInlineModule,
|
|
1396
1397
|
SkyIconModule,
|
|
1397
1398
|
SkyInlineDeleteModule,
|
|
@@ -1413,7 +1414,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1413
1414
|
FormsModule,
|
|
1414
1415
|
SkyAffixModule,
|
|
1415
1416
|
SkyCheckboxModule,
|
|
1416
|
-
|
|
1417
|
+
SkyGridsResourcesModule,
|
|
1417
1418
|
SkyHelpInlineModule,
|
|
1418
1419
|
SkyIconModule,
|
|
1419
1420
|
SkyInlineDeleteModule,
|