@skyux/list-builder-view-grids 4.0.2 → 5.0.1
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/LICENSE +21 -0
- package/bundles/skyux-list-builder-view-grids-testing.umd.js +10 -6
- package/bundles/skyux-list-builder-view-grids-testing.umd.js.map +1 -1
- package/bundles/skyux-list-builder-view-grids.umd.js +794 -529
- package/bundles/skyux-list-builder-view-grids.umd.js.map +1 -1
- package/documentation.json +2925 -0
- package/esm2015/modules/column-selector/column-selector-context.js +1 -1
- package/esm2015/modules/column-selector/column-selector-modal.component.js +18 -17
- package/esm2015/modules/column-selector/column-selector-modal.module.js +29 -21
- package/esm2015/modules/list-column-selector-action/list-column-selector-action.component.js +61 -54
- package/esm2015/modules/list-column-selector-action/list-column-selector-action.module.js +34 -21
- package/esm2015/modules/list-column-selector-action/list-column-selector-button.component.js +16 -12
- package/esm2015/modules/list-view-grid/list-view-grid.component.js +182 -129
- package/esm2015/modules/list-view-grid/list-view-grid.module.js +33 -21
- package/esm2015/modules/list-view-grid/state/columns/columns.orchestrator.js +6 -4
- package/esm2015/modules/list-view-grid/state/columns/load.action.js +4 -1
- package/esm2015/modules/list-view-grid/state/displayed-columns/displayed-columns.orchestrator.js +6 -4
- package/esm2015/modules/list-view-grid/state/displayed-columns/load.action.js +4 -1
- package/esm2015/modules/list-view-grid/state/grid-state-action.type.js +2 -1
- package/esm2015/modules/list-view-grid/state/grid-state.model.js +4 -1
- package/esm2015/modules/list-view-grid/state/grid-state.rxstate.js +15 -8
- package/esm2015/modules/list-view-grid/state/grid-state.state-node.js +15 -16
- package/esm2015/modules/list-view-grid/types/list-view-grid-message-type.js +4 -4
- package/esm2015/modules/list-view-grid/types/list-view-grid-message.js +2 -1
- package/esm2015/modules/list-view-grid/types/list-view-grid-row-delete-cancel-args.js +2 -1
- package/esm2015/modules/list-view-grid/types/list-view-grid-row-delete-confirm-args.js +2 -1
- package/esm2015/modules/shared/sky-list-builder-view-grids-resources.module.js +56 -0
- package/esm2015/public-api.js +21 -0
- package/esm2015/skyux-list-builder-view-grids.js +2 -7
- package/esm2015/testing/list-view-grid-fixture-cell.js +2 -1
- package/esm2015/testing/list-view-grid-fixture-header.js +2 -1
- package/esm2015/testing/list-view-grid-fixture-row.js +2 -1
- package/esm2015/testing/list-view-grid-fixture.js +4 -4
- package/esm2015/testing/public-api.js +5 -0
- package/esm2015/testing/skyux-list-builder-view-grids-testing.js +2 -2
- package/fesm2015/skyux-list-builder-view-grids-testing.js +3 -3
- package/fesm2015/skyux-list-builder-view-grids-testing.js.map +1 -1
- package/fesm2015/skyux-list-builder-view-grids.js +449 -302
- package/fesm2015/skyux-list-builder-view-grids.js.map +1 -1
- package/modules/column-selector/column-selector-modal.component.d.ts +3 -0
- package/modules/column-selector/column-selector-modal.module.d.ts +10 -0
- package/modules/list-column-selector-action/list-column-selector-action.component.d.ts +18 -0
- package/modules/list-column-selector-action/list-column-selector-action.module.d.ts +12 -0
- package/modules/list-column-selector-action/list-column-selector-button.component.d.ts +3 -0
- package/modules/list-view-grid/list-view-grid.component.d.ts +72 -2
- package/modules/list-view-grid/list-view-grid.module.d.ts +10 -0
- package/modules/list-view-grid/state/columns/columns.orchestrator.d.ts +3 -0
- package/modules/list-view-grid/state/columns/load.action.d.ts +3 -0
- package/modules/list-view-grid/state/displayed-columns/displayed-columns.orchestrator.d.ts +3 -0
- package/modules/list-view-grid/state/displayed-columns/load.action.d.ts +3 -0
- package/modules/list-view-grid/state/grid-state-action.type.d.ts +3 -0
- package/modules/list-view-grid/state/grid-state.model.d.ts +3 -0
- package/modules/list-view-grid/state/grid-state.rxstate.d.ts +9 -0
- package/modules/list-view-grid/state/grid-state.state-node.d.ts +6 -0
- package/modules/list-view-grid/types/list-view-grid-message-type.d.ts +3 -3
- package/modules/list-view-grid/types/list-view-grid-message.d.ts +3 -3
- package/modules/list-view-grid/types/list-view-grid-row-delete-cancel-args.d.ts +3 -0
- package/modules/list-view-grid/types/list-view-grid-row-delete-confirm-args.d.ts +3 -0
- package/modules/shared/sky-list-builder-view-grids-resources.module.d.ts +14 -0
- package/package.json +13 -28
- package/{public_api.d.ts → public-api.d.ts} +1 -0
- package/skyux-list-builder-view-grids.d.ts +2 -6
- package/testing/package.json +2 -5
- package/testing/{public_api.d.ts → public-api.d.ts} +0 -0
- package/testing/skyux-list-builder-view-grids-testing.d.ts +2 -1
- package/CHANGELOG.md +0 -126
- package/bundles/skyux-list-builder-view-grids-testing.umd.min.js +0 -2
- package/bundles/skyux-list-builder-view-grids-testing.umd.min.js.map +0 -1
- package/bundles/skyux-list-builder-view-grids.umd.min.js +0 -16
- package/bundles/skyux-list-builder-view-grids.umd.min.js.map +0 -1
- package/esm2015/modules/shared/list-view-grid-resources.module.js +0 -17
- package/esm2015/plugin-resources/list-view-grid-resources-provider.js +0 -16
- package/esm2015/public_api.js +0 -14
- package/esm2015/testing/public_api.js +0 -2
- package/esm5/modules/column-selector/column-selector-context.js +0 -17
- package/esm5/modules/column-selector/column-selector-modal.component.js +0 -40
- package/esm5/modules/column-selector/column-selector-modal.module.js +0 -36
- package/esm5/modules/list-column-selector-action/list-column-selector-action.component.js +0 -139
- package/esm5/modules/list-column-selector-action/list-column-selector-action.module.js +0 -37
- package/esm5/modules/list-column-selector-action/list-column-selector-button.component.js +0 -16
- package/esm5/modules/list-view-grid/list-view-grid.component.js +0 -444
- package/esm5/modules/list-view-grid/list-view-grid.module.js +0 -33
- package/esm5/modules/list-view-grid/state/columns/columns.orchestrator.js +0 -25
- package/esm5/modules/list-view-grid/state/columns/load.action.js +0 -10
- package/esm5/modules/list-view-grid/state/displayed-columns/displayed-columns.orchestrator.js +0 -25
- package/esm5/modules/list-view-grid/state/displayed-columns/load.action.js +0 -10
- package/esm5/modules/list-view-grid/state/grid-state-action.type.js +0 -1
- package/esm5/modules/list-view-grid/state/grid-state.model.js +0 -10
- package/esm5/modules/list-view-grid/state/grid-state.rxstate.js +0 -23
- package/esm5/modules/list-view-grid/state/grid-state.state-node.js +0 -29
- package/esm5/modules/list-view-grid/types/list-view-grid-message-type.js +0 -15
- package/esm5/modules/list-view-grid/types/list-view-grid-message.js +0 -1
- package/esm5/modules/list-view-grid/types/list-view-grid-row-delete-cancel-args.js +0 -1
- package/esm5/modules/list-view-grid/types/list-view-grid-row-delete-confirm-args.js +0 -1
- package/esm5/modules/shared/list-view-grid-resources.module.js +0 -20
- package/esm5/plugin-resources/list-view-grid-resources-provider.js +0 -17
- package/esm5/public_api.js +0 -14
- package/esm5/skyux-list-builder-view-grids.js +0 -10
- package/esm5/testing/list-view-grid-fixture-cell.js +0 -1
- package/esm5/testing/list-view-grid-fixture-header.js +0 -1
- package/esm5/testing/list-view-grid-fixture-row.js +0 -1
- package/esm5/testing/list-view-grid-fixture.js +0 -68
- package/esm5/testing/public_api.js +0 -2
- package/esm5/testing/skyux-list-builder-view-grids-testing.js +0 -5
- package/fesm5/skyux-list-builder-view-grids-testing.js +0 -74
- package/fesm5/skyux-list-builder-view-grids-testing.js.map +0 -1
- package/fesm5/skyux-list-builder-view-grids.js +0 -864
- package/fesm5/skyux-list-builder-view-grids.js.map +0 -1
- package/modules/shared/list-view-grid-resources.module.d.ts +0 -2
- package/plugin-resources/list-view-grid-resources-provider.d.ts +0 -5
- package/skyux-list-builder-view-grids.metadata.json +0 -1
- package/src/assets/locales/resources_en_US.json +0 -26
- package/testing/skyux-list-builder-view-grids-testing.metadata.json +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Blackbaud
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/platform-browser'), require('@skyux-sdk/testing')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/list-builder-view-grids/testing', ['exports', '@angular/platform-browser', '@skyux-sdk/testing'], factory) :
|
|
4
|
-
(global = global || self, factory((global.skyux = global.skyux || {}, global.skyux[
|
|
5
|
-
}(this, (function (exports, platformBrowser, testing) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["list-builder-view-grids"] = global.skyux["list-builder-view-grids"] || {}, global.skyux["list-builder-view-grids"].testing = {}), global.ng.platformBrowser, global.testing));
|
|
5
|
+
})(this, (function (exports, platformBrowser, testing) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Allows interaction with a SKY UX list view grid component.
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
var rowCells = cellEls.map(function (cellEl) {
|
|
22
22
|
return {
|
|
23
23
|
el: cellEl,
|
|
24
|
-
textContent: testing.SkyAppTestUtility.getText(cellEl)
|
|
24
|
+
textContent: testing.SkyAppTestUtility.getText(cellEl),
|
|
25
25
|
};
|
|
26
26
|
});
|
|
27
27
|
return {
|
|
28
|
-
cells: rowCells
|
|
28
|
+
cells: rowCells,
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
SkyListViewGridFixture.prototype.getRowCount = function () {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
locked: headerEl.nativeElement.classList.contains('sky-grid-header-locked'),
|
|
46
|
-
textContent: testing.SkyAppTestUtility.getText(headerEl)
|
|
46
|
+
textContent: testing.SkyAppTestUtility.getText(headerEl),
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
SkyListViewGridFixture.prototype.getHeaderCount = function () {
|
|
@@ -69,9 +69,13 @@
|
|
|
69
69
|
return SkyListViewGridFixture;
|
|
70
70
|
}());
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Generated bundle index. Do not edit.
|
|
74
|
+
*/
|
|
75
|
+
|
|
72
76
|
exports.SkyListViewGridFixture = SkyListViewGridFixture;
|
|
73
77
|
|
|
74
78
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
75
79
|
|
|
76
|
-
}))
|
|
80
|
+
}));
|
|
77
81
|
//# sourceMappingURL=skyux-list-builder-view-grids-testing.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-list-builder-view-grids-testing.umd.js","sources":["
|
|
1
|
+
{"version":3,"file":"skyux-list-builder-view-grids-testing.umd.js","sources":["../../../projects/list-builder-view-grids/testing/src/list-view-grid-fixture.ts","../../../projects/list-builder-view-grids/testing/src/skyux-list-builder-view-grids-testing.ts"],"sourcesContent":["import { ComponentFixture } from '@angular/core/testing';\n\nimport { DebugElement } from '@angular/core';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nimport { SkyListViewGridFixtureCell } from './list-view-grid-fixture-cell';\n\nimport { SkyListViewGridFixtureHeader } from './list-view-grid-fixture-header';\n\nimport { SkyListViewGridFixtureRow } from './list-view-grid-fixture-row';\n\n/**\n * Allows interaction with a SKY UX list view grid component.\n */\nexport class SkyListViewGridFixture {\n private debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-list-view-grid'\n );\n }\n\n /**\n * Gets the row at the specified index.\n * @param index The row's index.\n */\n public getRow(index: number): SkyListViewGridFixtureRow {\n const rowEl = this.getRowEl(index);\n const cellEls = this.getCellEls(rowEl);\n\n const rowCells: SkyListViewGridFixtureCell[] = cellEls.map(\n (cellEl: DebugElement) => {\n return {\n el: cellEl,\n textContent: SkyAppTestUtility.getText(cellEl),\n };\n }\n );\n\n return {\n cells: rowCells,\n };\n }\n\n public getRowCount(): number {\n return this.getRowEls().length;\n }\n\n /**\n * Gets the header at the specified index.\n * @param columnIndex The index of the column to which the header belongs.\n */\n public getHeader(columnIndex: number): SkyListViewGridFixtureHeader {\n const headerEls = this.getHeaderEls();\n\n const headerEl = headerEls[columnIndex];\n\n if (!headerEl) {\n throw new Error(`No column exists at index ${columnIndex}.`);\n }\n\n return {\n locked: headerEl.nativeElement.classList.contains(\n 'sky-grid-header-locked'\n ),\n textContent: SkyAppTestUtility.getText(headerEl),\n };\n }\n\n public getHeaderCount(): number {\n return this.getHeaderEls().length;\n }\n\n private getRowEls(): DebugElement[] {\n return this.debugEl.queryAll(By.css('.sky-grid-row'));\n }\n\n private getRowEl(index: number): DebugElement {\n const rowEls = this.getRowEls();\n\n const rowEl = rowEls[index];\n\n if (!rowEl) {\n throw new Error(`No row exists at index ${index}.`);\n }\n\n return rowEl;\n }\n\n private getHeaderEls(): DebugElement[] {\n return this.debugEl.queryAll(By.css('th.sky-grid-heading > div'));\n }\n\n private getCellEls(rowEl: DebugElement) {\n return rowEl.queryAll(By.css('.sky-grid-cell sky-grid-cell'));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["SkyAppTestUtility","By"],"mappings":";;;;;;IAcA;;;;QAME,gCAAY,OAA8B,EAAE,SAAiB;YAC3D,IAAI,CAAC,OAAO,GAAGA,yBAAiB,CAAC,uBAAuB,CACtD,OAAO,EACP,SAAS,EACT,oBAAoB,CACrB,CAAC;SACH;;;;;QAMM,uCAAM,GAAN,UAAO,KAAa;YACzB,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YACnC,IAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAEvC,IAAM,QAAQ,GAAiC,OAAO,CAAC,GAAG,CACxD,UAAC,MAAoB;gBACnB,OAAO;oBACL,EAAE,EAAE,MAAM;oBACV,WAAW,EAAEA,yBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC;iBAC/C,CAAC;aACH,CACF,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,QAAQ;aAChB,CAAC;SACH;QAEM,4CAAW,GAAX;YACL,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC;SAChC;;;;;QAMM,0CAAS,GAAT,UAAU,WAAmB;YAClC,IAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YAEtC,IAAM,QAAQ,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;YAExC,IAAI,CAAC,QAAQ,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,+BAA6B,WAAW,MAAG,CAAC,CAAC;aAC9D;YAED,OAAO;gBACL,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,QAAQ,CAC/C,wBAAwB,CACzB;gBACD,WAAW,EAAEA,yBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC;aACjD,CAAC;SACH;QAEM,+CAAc,GAAd;YACL,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC;SACnC;QAEO,0CAAS,GAAT;YACN,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAACC,kBAAE,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;SACvD;QAEO,yCAAQ,GAAR,UAAS,KAAa;YAC5B,IAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAEhC,IAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAE5B,IAAI,CAAC,KAAK,EAAE;gBACV,MAAM,IAAI,KAAK,CAAC,4BAA0B,KAAK,MAAG,CAAC,CAAC;aACrD;YAED,OAAO,KAAK,CAAC;SACd;QAEO,6CAAY,GAAZ;YACN,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAACA,kBAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CAAC;SACnE;QAEO,2CAAU,GAAV,UAAW,KAAmB;YACpC,OAAO,KAAK,CAAC,QAAQ,CAACA,kBAAE,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC,CAAC;SAC/D;qCACF;KAAA;;ICtGD;;;;;;;;;;;;"}
|