@skyux/list-builder-view-grids 5.0.0 → 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.
Files changed (32) hide show
  1. package/bundles/skyux-list-builder-view-grids-testing.umd.js +6 -6
  2. package/bundles/skyux-list-builder-view-grids-testing.umd.js.map +1 -1
  3. package/bundles/skyux-list-builder-view-grids.umd.js +147 -130
  4. package/bundles/skyux-list-builder-view-grids.umd.js.map +1 -1
  5. package/documentation.json +80 -75
  6. package/esm2015/modules/column-selector/column-selector-modal.component.js +5 -5
  7. package/esm2015/modules/column-selector/column-selector-modal.module.js +9 -13
  8. package/esm2015/modules/list-column-selector-action/list-column-selector-action.component.js +29 -27
  9. package/esm2015/modules/list-column-selector-action/list-column-selector-action.module.js +11 -15
  10. package/esm2015/modules/list-column-selector-action/list-column-selector-button.component.js +5 -5
  11. package/esm2015/modules/list-view-grid/list-view-grid.component.js +73 -58
  12. package/esm2015/modules/list-view-grid/list-view-grid.module.js +10 -12
  13. package/esm2015/modules/list-view-grid/state/columns/columns.orchestrator.js +3 -4
  14. package/esm2015/modules/list-view-grid/state/columns/load.action.js +1 -1
  15. package/esm2015/modules/list-view-grid/state/displayed-columns/displayed-columns.orchestrator.js +3 -4
  16. package/esm2015/modules/list-view-grid/state/displayed-columns/load.action.js +1 -1
  17. package/esm2015/modules/list-view-grid/state/grid-state-action.type.js +1 -1
  18. package/esm2015/modules/list-view-grid/state/grid-state.model.js +1 -1
  19. package/esm2015/modules/list-view-grid/state/grid-state.rxstate.js +4 -4
  20. package/esm2015/modules/list-view-grid/state/grid-state.state-node.js +5 -6
  21. package/esm2015/modules/list-view-grid/types/list-view-grid-message-type.js +1 -1
  22. package/esm2015/modules/list-view-grid/types/list-view-grid-message.js +1 -1
  23. package/esm2015/modules/shared/sky-list-builder-view-grids-resources.module.js +27 -12
  24. package/esm2015/testing/list-view-grid-fixture-cell.js +1 -1
  25. package/esm2015/testing/list-view-grid-fixture-header.js +1 -1
  26. package/esm2015/testing/list-view-grid-fixture-row.js +1 -1
  27. package/esm2015/testing/list-view-grid-fixture.js +4 -4
  28. package/fesm2015/skyux-list-builder-view-grids-testing.js +3 -3
  29. package/fesm2015/skyux-list-builder-view-grids-testing.js.map +1 -1
  30. package/fesm2015/skyux-list-builder-view-grids.js +161 -142
  31. package/fesm2015/skyux-list-builder-view-grids.js.map +1 -1
  32. package/package.json +9 -9
@@ -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 = 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';
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 () {
@@ -77,5 +77,5 @@
77
77
 
78
78
  Object.defineProperty(exports, '__esModule', { value: true });
79
79
 
80
- })));
80
+ }));
81
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":["../../../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 {\n ComponentFixture\n} from '@angular/core/testing';\n\nimport {\n DebugElement\n} from '@angular/core';\n\nimport {\n By\n} from '@angular/platform-browser';\n\nimport {\n SkyAppTestUtility\n} from '@skyux-sdk/testing';\n\nimport {\n SkyListViewGridFixtureCell\n} from './list-view-grid-fixture-cell';\n\nimport {\n SkyListViewGridFixtureHeader\n} from './list-view-grid-fixture-header';\n\nimport {\n SkyListViewGridFixtureRow\n} from './list-view-grid-fixture-row';\n\n/**\n * Allows interaction with a SKY UX list view grid component.\n */\nexport class SkyListViewGridFixture {\n\n private debugEl: DebugElement;\n\n constructor(\n fixture: ComponentFixture<any>,\n skyTestId: string\n ) {\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('sky-grid-header-locked'),\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["SkyAppTestUtility","By"],"mappings":";;;;;;IA4BA;;;;QAOE,gCACE,OAA8B,EAC9B,SAAiB;YAEjB,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;iB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AC,QAAQ,CAACA,kBAAE,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC,CAAC;SAC/D;qCAEF;KAAA;;ICvHD;;;;;;;;;;;;"}
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,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