@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
|
@@ -36,45 +36,45 @@
|
|
|
36
36
|
/**
|
|
37
37
|
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
38
38
|
* The contents of this file were automatically generated by
|
|
39
|
-
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/
|
|
39
|
+
* the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-grids' schematic.
|
|
40
40
|
* To update this file, simply rerun the command.
|
|
41
41
|
*/
|
|
42
42
|
var RESOURCES = {
|
|
43
43
|
'EN-US': { skyux_grid_multiselect_select_row: { message: 'Select row' } },
|
|
44
44
|
};
|
|
45
|
-
var
|
|
46
|
-
function
|
|
45
|
+
var SkyGridsResourcesProvider = /** @class */ (function () {
|
|
46
|
+
function SkyGridsResourcesProvider() {
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
SkyGridsResourcesProvider.prototype.getString = function (localeInfo, name) {
|
|
49
49
|
return i11.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
50
50
|
};
|
|
51
|
-
return
|
|
51
|
+
return SkyGridsResourcesProvider;
|
|
52
52
|
}());
|
|
53
53
|
/**
|
|
54
54
|
* Import into any component library module that needs to use resource strings.
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
57
|
-
function
|
|
56
|
+
var SkyGridsResourcesModule = /** @class */ (function () {
|
|
57
|
+
function SkyGridsResourcesModule() {
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return SkyGridsResourcesModule;
|
|
60
60
|
}());
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
SkyGridsResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyGridsResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
62
|
+
SkyGridsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyGridsResourcesModule, exports: [i11.SkyI18nModule] });
|
|
63
|
+
SkyGridsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyGridsResourcesModule, providers: [
|
|
64
64
|
{
|
|
65
65
|
provide: i11.SKY_LIB_RESOURCES_PROVIDERS,
|
|
66
|
-
useClass:
|
|
66
|
+
useClass: SkyGridsResourcesProvider,
|
|
67
67
|
multi: true,
|
|
68
68
|
},
|
|
69
69
|
], imports: [i11.SkyI18nModule] });
|
|
70
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
70
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyGridsResourcesModule, decorators: [{
|
|
71
71
|
type: i0.NgModule,
|
|
72
72
|
args: [{
|
|
73
73
|
exports: [i11.SkyI18nModule],
|
|
74
74
|
providers: [
|
|
75
75
|
{
|
|
76
76
|
provide: i11.SKY_LIB_RESOURCES_PROVIDERS,
|
|
77
|
-
useClass:
|
|
77
|
+
useClass: SkyGridsResourcesProvider,
|
|
78
78
|
multi: true,
|
|
79
79
|
},
|
|
80
80
|
],
|
|
@@ -746,8 +746,7 @@
|
|
|
746
746
|
* Indicates whether to enable the multiselect feature to display a column of
|
|
747
747
|
* checkboxes on the left side of the grid. You can specify a unique ID with
|
|
748
748
|
* the `multiselectRowId` property, but multiselect defaults to the `id` property on
|
|
749
|
-
* the `data` object.
|
|
750
|
-
* we recommend the [list view grid](https://developer.blackbaud.com/skyux/components/list/grid) component.
|
|
749
|
+
* the `data` object.
|
|
751
750
|
* @default false
|
|
752
751
|
*/
|
|
753
752
|
this.enableMultiselect = false;
|
|
@@ -1420,7 +1419,7 @@
|
|
|
1420
1419
|
var selectedRows = this.getSelectedRows();
|
|
1421
1420
|
return this.data.map(function (item) {
|
|
1422
1421
|
var checked;
|
|
1423
|
-
if (
|
|
1422
|
+
if (Object.prototype.hasOwnProperty.call(item, _this.multiselectRowId)) {
|
|
1424
1423
|
checked = selectedRows.indexOf(item[_this.multiselectRowId]) > -1;
|
|
1425
1424
|
}
|
|
1426
1425
|
else {
|
|
@@ -1609,7 +1608,7 @@
|
|
|
1609
1608
|
return item.isSelected;
|
|
1610
1609
|
})
|
|
1611
1610
|
.map(function (item) {
|
|
1612
|
-
if (
|
|
1611
|
+
if (Object.prototype.hasOwnProperty.call(item.data, _this.multiselectRowId)) {
|
|
1613
1612
|
return item.data[_this.multiselectRowId];
|
|
1614
1613
|
}
|
|
1615
1614
|
return item.id;
|
|
@@ -1652,7 +1651,9 @@
|
|
|
1652
1651
|
this.uiConfigService
|
|
1653
1652
|
.setConfig(this.settingsKey, config)
|
|
1654
1653
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
1655
|
-
.subscribe(
|
|
1654
|
+
.subscribe(
|
|
1655
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1656
|
+
function () { }, function (err) {
|
|
1656
1657
|
console.warn('Could not save grid settings.');
|
|
1657
1658
|
console.warn(err);
|
|
1658
1659
|
});
|
|
@@ -1790,7 +1791,7 @@
|
|
|
1790
1791
|
i10.FormsModule,
|
|
1791
1792
|
i1.SkyAffixModule,
|
|
1792
1793
|
i5.SkyCheckboxModule,
|
|
1793
|
-
|
|
1794
|
+
SkyGridsResourcesModule,
|
|
1794
1795
|
i4.SkyHelpInlineModule,
|
|
1795
1796
|
i4.SkyIconModule,
|
|
1796
1797
|
i7.SkyInlineDeleteModule,
|
|
@@ -1803,7 +1804,7 @@
|
|
|
1803
1804
|
i10.FormsModule,
|
|
1804
1805
|
i1.SkyAffixModule,
|
|
1805
1806
|
i5.SkyCheckboxModule,
|
|
1806
|
-
|
|
1807
|
+
SkyGridsResourcesModule,
|
|
1807
1808
|
i4.SkyHelpInlineModule,
|
|
1808
1809
|
i4.SkyIconModule,
|
|
1809
1810
|
i7.SkyInlineDeleteModule,
|
|
@@ -1825,7 +1826,7 @@
|
|
|
1825
1826
|
i10.FormsModule,
|
|
1826
1827
|
i1.SkyAffixModule,
|
|
1827
1828
|
i5.SkyCheckboxModule,
|
|
1828
|
-
|
|
1829
|
+
SkyGridsResourcesModule,
|
|
1829
1830
|
i4.SkyHelpInlineModule,
|
|
1830
1831
|
i4.SkyIconModule,
|
|
1831
1832
|
i7.SkyInlineDeleteModule,
|