@skyux/grids 4.0.6 → 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 (77) hide show
  1. package/LICENSE +21 -0
  2. package/bundles/skyux-grids.umd.js +864 -744
  3. package/bundles/skyux-grids.umd.js.map +1 -1
  4. package/documentation.json +4089 -0
  5. package/esm2015/modules/grid/grid-adapter.service.js +22 -24
  6. package/esm2015/modules/grid/grid-cell.component.js +30 -32
  7. package/esm2015/modules/grid/grid-column.component.js +54 -63
  8. package/esm2015/modules/grid/grid-column.model.js +1 -1
  9. package/esm2015/modules/grid/grid.component.js +216 -210
  10. package/esm2015/modules/grid/grid.module.js +51 -30
  11. package/esm2015/modules/grid/types/grid-column-alignment.js +2 -1
  12. package/esm2015/modules/grid/types/grid-column-description-model-change.js +2 -1
  13. package/esm2015/modules/grid/types/grid-column-heading-model-change.js +2 -1
  14. package/esm2015/modules/grid/types/grid-column-inline-help-popover-model-change.js +2 -1
  15. package/esm2015/modules/grid/types/grid-column-width-model-change.js +2 -1
  16. package/esm2015/modules/grid/types/grid-message-type.js +1 -1
  17. package/esm2015/modules/grid/types/grid-message.js +2 -1
  18. package/esm2015/modules/grid/types/grid-row-delete-cancel-args.js +2 -1
  19. package/esm2015/modules/grid/types/grid-row-delete-config.js +2 -1
  20. package/esm2015/modules/grid/types/grid-row-delete-confirm-args.js +2 -1
  21. package/esm2015/modules/grid/types/grid-row-delete-contents.js +2 -1
  22. package/esm2015/modules/grid/types/grid-selected-rows-model-change.js +2 -1
  23. package/esm2015/modules/grid/types/grid-selected-rows-source.js +1 -1
  24. package/esm2015/modules/grid/types/grid-ui-config.js +2 -1
  25. package/esm2015/modules/shared/skyux-grids-resources.module.js +45 -0
  26. package/esm2015/public-api.js +20 -0
  27. package/esm2015/skyux-grids.js +2 -6
  28. package/fesm2015/skyux-grids.js +486 -482
  29. package/fesm2015/skyux-grids.js.map +1 -1
  30. package/modules/grid/grid-adapter.service.d.ts +3 -0
  31. package/modules/grid/grid-cell.component.d.ts +3 -0
  32. package/modules/grid/grid-column.component.d.ts +5 -1
  33. package/modules/grid/grid.component.d.ts +6 -4
  34. package/modules/grid/grid.module.d.ts +16 -0
  35. package/modules/shared/skyux-grids-resources.module.d.ts +14 -0
  36. package/package.json +15 -30
  37. package/{public_api.d.ts → public-api.d.ts} +0 -0
  38. package/skyux-grids.d.ts +2 -5
  39. package/CHANGELOG.md +0 -188
  40. package/bundles/skyux-grids.umd.min.js +0 -16
  41. package/bundles/skyux-grids.umd.min.js.map +0 -1
  42. package/esm2015/modules/shared/grids-resources.module.js +0 -20
  43. package/esm2015/plugin-resources/grids-resources-provider.js +0 -16
  44. package/esm2015/polyfills.js +0 -29
  45. package/esm2015/public_api.js +0 -9
  46. package/esm5/modules/grid/grid-adapter.service.js +0 -106
  47. package/esm5/modules/grid/grid-cell.component.js +0 -59
  48. package/esm5/modules/grid/grid-column.component.js +0 -129
  49. package/esm5/modules/grid/grid-column.model.js +0 -27
  50. package/esm5/modules/grid/grid.component.js +0 -1016
  51. package/esm5/modules/grid/grid.module.js +0 -53
  52. package/esm5/modules/grid/types/grid-column-alignment.js +0 -1
  53. package/esm5/modules/grid/types/grid-column-description-model-change.js +0 -1
  54. package/esm5/modules/grid/types/grid-column-heading-model-change.js +0 -1
  55. package/esm5/modules/grid/types/grid-column-inline-help-popover-model-change.js +0 -1
  56. package/esm5/modules/grid/types/grid-column-width-model-change.js +0 -1
  57. package/esm5/modules/grid/types/grid-message-type.js +0 -20
  58. package/esm5/modules/grid/types/grid-message.js +0 -1
  59. package/esm5/modules/grid/types/grid-row-delete-cancel-args.js +0 -1
  60. package/esm5/modules/grid/types/grid-row-delete-config.js +0 -1
  61. package/esm5/modules/grid/types/grid-row-delete-confirm-args.js +0 -1
  62. package/esm5/modules/grid/types/grid-row-delete-contents.js +0 -1
  63. package/esm5/modules/grid/types/grid-selected-rows-model-change.js +0 -1
  64. package/esm5/modules/grid/types/grid-selected-rows-source.js +0 -12
  65. package/esm5/modules/grid/types/grid-ui-config.js +0 -1
  66. package/esm5/modules/shared/grids-resources.module.js +0 -23
  67. package/esm5/plugin-resources/grids-resources-provider.js +0 -17
  68. package/esm5/polyfills.js +0 -29
  69. package/esm5/public_api.js +0 -9
  70. package/esm5/skyux-grids.js +0 -9
  71. package/fesm5/skyux-grids.js +0 -1463
  72. package/fesm5/skyux-grids.js.map +0 -1
  73. package/modules/shared/grids-resources.module.d.ts +0 -2
  74. package/plugin-resources/grids-resources-provider.d.ts +0 -5
  75. package/polyfills.d.ts +0 -0
  76. package/skyux-grids.metadata.json +0 -1
  77. package/src/assets/locales/resources_en_US.json +0 -6
@@ -1,258 +1,457 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng2-dragula'), require('@skyux/core'), require('@skyux/forms'), require('@skyux/indicators'), require('@skyux/layout'), require('@skyux/popovers'), require('rxjs'), require('rxjs/operators'), require('@skyux/list-builder-common'), require('@skyux/i18n')) :
3
- typeof define === 'function' && define.amd ? define('@skyux/grids', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng2-dragula', '@skyux/core', '@skyux/forms', '@skyux/indicators', '@skyux/layout', '@skyux/popovers', 'rxjs', 'rxjs/operators', '@skyux/list-builder-common', '@skyux/i18n'], factory) :
4
- (global = global || self, factory((global.skyux = global.skyux || {}, global.skyux.grids = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng2Dragula, global.core$1, global.forms$1, global.indicators, global.layout, global.popovers, global.rxjs, global.rxjs.operators, global.listBuilderCommon, global.i18n));
5
- }(this, (function (exports, core, common, forms, ng2Dragula, core$1, forms$1, indicators, layout, popovers, rxjs, operators, listBuilderCommon, i18n) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng2-dragula'), require('@skyux/core'), require('@skyux/forms'), require('@skyux/indicators'), require('@skyux/layout'), require('@skyux/popovers'), require('@skyux/list-builder-common'), require('rxjs'), require('rxjs/operators'), require('@skyux/i18n')) :
3
+ typeof define === 'function' && define.amd ? define('@skyux/grids', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng2-dragula', '@skyux/core', '@skyux/forms', '@skyux/indicators', '@skyux/layout', '@skyux/popovers', '@skyux/list-builder-common', 'rxjs', 'rxjs/operators', '@skyux/i18n'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.grids = {}), global.ng.core, global.ng.common, global.ng.forms, global.i2, global.i1, global.i5, global.i4, global.i7, global.i9, global.listBuilderCommon, global.rxjs, global.rxjs.operators, global.i11));
5
+ })(this, (function (exports, i0, i8, i10, i2, i1, i5, i4, i7, i9, listBuilderCommon, rxjs, operators, i11) { 'use strict';
6
6
 
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- var __assign = function() {
37
- __assign = Object.assign || function __assign(t) {
38
- for (var s, i = 1, n = arguments.length; i < n; i++) {
39
- s = arguments[i];
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- }
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __param(paramIndex, decorator) {
67
- return function (target, key) { decorator(target, key, paramIndex); }
68
- }
69
-
70
- function __metadata(metadataKey, metadataValue) {
71
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
- }
73
-
74
- function __awaiter(thisArg, _arguments, P, generator) {
75
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
- return new (P || (P = Promise))(function (resolve, reject) {
77
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- }
83
-
84
- function __generator(thisArg, body) {
85
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
- function verb(n) { return function (v) { return step([n, v]); }; }
88
- function step(op) {
89
- if (f) throw new TypeError("Generator is already executing.");
90
- while (_) try {
91
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
92
- if (y = 0, t) op = [op[0] & 2, t.value];
93
- switch (op[0]) {
94
- case 0: case 1: t = op; break;
95
- case 4: _.label++; return { value: op[1], done: false };
96
- case 5: _.label++; y = op[1]; op = [0]; continue;
97
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
- default:
99
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
- if (t[2]) _.ops.pop();
104
- _.trys.pop(); continue;
105
- }
106
- op = body.call(thisArg, _);
107
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
- }
110
- }
111
-
112
- function __createBinding(o, m, k, k2) {
113
- if (k2 === undefined) k2 = k;
114
- o[k2] = m[k];
115
- }
116
-
117
- function __exportStar(m, exports) {
118
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
- }
120
-
121
- function __values(o) {
122
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
- if (m) return m.call(o);
124
- if (o && typeof o.length === "number") return {
125
- next: function () {
126
- if (o && i >= o.length) o = void 0;
127
- return { value: o && o[i++], done: !o };
128
- }
129
- };
130
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
- }
132
-
133
- function __read(o, n) {
134
- var m = typeof Symbol === "function" && o[Symbol.iterator];
135
- if (!m) return o;
136
- var i = m.call(o), r, ar = [], e;
137
- try {
138
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
- }
140
- catch (error) { e = { error: error }; }
141
- finally {
142
- try {
143
- if (r && !r.done && (m = i["return"])) m.call(i);
144
- }
145
- finally { if (e) throw e.error; }
146
- }
147
- return ar;
148
- }
149
-
150
- function __spread() {
151
- for (var ar = [], i = 0; i < arguments.length; i++)
152
- ar = ar.concat(__read(arguments[i]));
153
- return ar;
154
- }
155
-
156
- function __spreadArrays() {
157
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
- r[k] = a[j];
161
- return r;
162
- };
163
-
164
- function __await(v) {
165
- return this instanceof __await ? (this.v = v, this) : new __await(v);
166
- }
167
-
168
- function __asyncGenerator(thisArg, _arguments, generator) {
169
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
- function fulfill(value) { resume("next", value); }
176
- function reject(value) { resume("throw", value); }
177
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
- }
179
-
180
- function __asyncDelegator(o) {
181
- var i, p;
182
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
184
- }
185
-
186
- function __asyncValues(o) {
187
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
- var m = o[Symbol.asyncIterator], i;
189
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
190
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
191
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
- }
193
-
194
- function __makeTemplateObject(cooked, raw) {
195
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
- return cooked;
197
- };
198
-
199
- function __importStar(mod) {
200
- if (mod && mod.__esModule) return mod;
201
- var result = {};
202
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
- result.default = mod;
204
- return result;
205
- }
206
-
207
- function __importDefault(mod) {
208
- return (mod && mod.__esModule) ? mod : { default: mod };
209
- }
210
-
211
- function __classPrivateFieldGet(receiver, privateMap) {
212
- if (!privateMap.has(receiver)) {
213
- throw new TypeError("attempted to get private field on non-instance");
214
- }
215
- return privateMap.get(receiver);
216
- }
217
-
218
- function __classPrivateFieldSet(receiver, privateMap, value) {
219
- if (!privateMap.has(receiver)) {
220
- throw new TypeError("attempted to set private field on non-instance");
221
- }
222
- privateMap.set(receiver, value);
223
- return value;
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
224
23
  }
225
24
 
226
- (function (SkyGridMessageType) {
227
- /**
228
- * Selects the multiselect checkboxes for all rows in the grid.
229
- */
230
- SkyGridMessageType[SkyGridMessageType["SelectAll"] = 0] = "SelectAll";
231
- /**
232
- * Clears the multiselect checkboxes for all rows in the grid.
233
- */
234
- SkyGridMessageType[SkyGridMessageType["ClearAll"] = 1] = "ClearAll";
235
- /**
236
- * @internal
237
- */
238
- SkyGridMessageType[SkyGridMessageType["PromptDeleteRow"] = 2] = "PromptDeleteRow";
239
- /**
240
- * @internal
241
- */
242
- SkyGridMessageType[SkyGridMessageType["AbortDeleteRow"] = 3] = "AbortDeleteRow";
243
- })(exports.SkyGridMessageType || (exports.SkyGridMessageType = {}));
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
27
+ var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
28
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
33
+ var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
34
+ var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
244
35
 
36
+ /*! *****************************************************************************
37
+ Copyright (c) Microsoft Corporation.
38
+
39
+ Permission to use, copy, modify, and/or distribute this software for any
40
+ purpose with or without fee is hereby granted.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
43
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
44
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
45
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
46
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
47
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
48
+ PERFORMANCE OF THIS SOFTWARE.
49
+ ***************************************************************************** */
50
+ /* global Reflect, Promise */
51
+ var extendStatics = function (d, b) {
52
+ extendStatics = Object.setPrototypeOf ||
53
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54
+ function (d, b) { for (var p in b)
55
+ if (Object.prototype.hasOwnProperty.call(b, p))
56
+ d[p] = b[p]; };
57
+ return extendStatics(d, b);
58
+ };
59
+ function __extends(d, b) {
60
+ if (typeof b !== "function" && b !== null)
61
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62
+ extendStatics(d, b);
63
+ function __() { this.constructor = d; }
64
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
65
+ }
66
+ var __assign = function () {
67
+ __assign = Object.assign || function __assign(t) {
68
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
69
+ s = arguments[i];
70
+ for (var p in s)
71
+ if (Object.prototype.hasOwnProperty.call(s, p))
72
+ t[p] = s[p];
73
+ }
74
+ return t;
75
+ };
76
+ return __assign.apply(this, arguments);
77
+ };
78
+ function __rest(s, e) {
79
+ var t = {};
80
+ for (var p in s)
81
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
82
+ t[p] = s[p];
83
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
84
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
85
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
86
+ t[p[i]] = s[p[i]];
87
+ }
88
+ return t;
89
+ }
90
+ function __decorate(decorators, target, key, desc) {
91
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
92
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
93
+ r = Reflect.decorate(decorators, target, key, desc);
94
+ else
95
+ for (var i = decorators.length - 1; i >= 0; i--)
96
+ if (d = decorators[i])
97
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
98
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
99
+ }
100
+ function __param(paramIndex, decorator) {
101
+ return function (target, key) { decorator(target, key, paramIndex); };
102
+ }
103
+ function __metadata(metadataKey, metadataValue) {
104
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
105
+ return Reflect.metadata(metadataKey, metadataValue);
106
+ }
107
+ function __awaiter(thisArg, _arguments, P, generator) {
108
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
109
+ return new (P || (P = Promise))(function (resolve, reject) {
110
+ function fulfilled(value) { try {
111
+ step(generator.next(value));
112
+ }
113
+ catch (e) {
114
+ reject(e);
115
+ } }
116
+ function rejected(value) { try {
117
+ step(generator["throw"](value));
118
+ }
119
+ catch (e) {
120
+ reject(e);
121
+ } }
122
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
123
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
124
+ });
125
+ }
126
+ function __generator(thisArg, body) {
127
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
128
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
129
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
130
+ function verb(n) { return function (v) { return step([n, v]); }; }
131
+ function step(op) {
132
+ if (f)
133
+ throw new TypeError("Generator is already executing.");
134
+ while (_)
135
+ try {
136
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
137
+ return t;
138
+ if (y = 0, t)
139
+ op = [op[0] & 2, t.value];
140
+ switch (op[0]) {
141
+ case 0:
142
+ case 1:
143
+ t = op;
144
+ break;
145
+ case 4:
146
+ _.label++;
147
+ return { value: op[1], done: false };
148
+ case 5:
149
+ _.label++;
150
+ y = op[1];
151
+ op = [0];
152
+ continue;
153
+ case 7:
154
+ op = _.ops.pop();
155
+ _.trys.pop();
156
+ continue;
157
+ default:
158
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
159
+ _ = 0;
160
+ continue;
161
+ }
162
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
163
+ _.label = op[1];
164
+ break;
165
+ }
166
+ if (op[0] === 6 && _.label < t[1]) {
167
+ _.label = t[1];
168
+ t = op;
169
+ break;
170
+ }
171
+ if (t && _.label < t[2]) {
172
+ _.label = t[2];
173
+ _.ops.push(op);
174
+ break;
175
+ }
176
+ if (t[2])
177
+ _.ops.pop();
178
+ _.trys.pop();
179
+ continue;
180
+ }
181
+ op = body.call(thisArg, _);
182
+ }
183
+ catch (e) {
184
+ op = [6, e];
185
+ y = 0;
186
+ }
187
+ finally {
188
+ f = t = 0;
189
+ }
190
+ if (op[0] & 5)
191
+ throw op[1];
192
+ return { value: op[0] ? op[1] : void 0, done: true };
193
+ }
194
+ }
195
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
196
+ if (k2 === undefined)
197
+ k2 = k;
198
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
199
+ }) : (function (o, m, k, k2) {
200
+ if (k2 === undefined)
201
+ k2 = k;
202
+ o[k2] = m[k];
203
+ });
204
+ function __exportStar(m, o) {
205
+ for (var p in m)
206
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
207
+ __createBinding(o, m, p);
208
+ }
209
+ function __values(o) {
210
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
211
+ if (m)
212
+ return m.call(o);
213
+ if (o && typeof o.length === "number")
214
+ return {
215
+ next: function () {
216
+ if (o && i >= o.length)
217
+ o = void 0;
218
+ return { value: o && o[i++], done: !o };
219
+ }
220
+ };
221
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
222
+ }
223
+ function __read(o, n) {
224
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
225
+ if (!m)
226
+ return o;
227
+ var i = m.call(o), r, ar = [], e;
228
+ try {
229
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
230
+ ar.push(r.value);
231
+ }
232
+ catch (error) {
233
+ e = { error: error };
234
+ }
235
+ finally {
236
+ try {
237
+ if (r && !r.done && (m = i["return"]))
238
+ m.call(i);
239
+ }
240
+ finally {
241
+ if (e)
242
+ throw e.error;
243
+ }
244
+ }
245
+ return ar;
246
+ }
247
+ /** @deprecated */
248
+ function __spread() {
249
+ for (var ar = [], i = 0; i < arguments.length; i++)
250
+ ar = ar.concat(__read(arguments[i]));
251
+ return ar;
252
+ }
253
+ /** @deprecated */
254
+ function __spreadArrays() {
255
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
256
+ s += arguments[i].length;
257
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
258
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
259
+ r[k] = a[j];
260
+ return r;
261
+ }
262
+ function __spreadArray(to, from, pack) {
263
+ if (pack || arguments.length === 2)
264
+ for (var i = 0, l = from.length, ar; i < l; i++) {
265
+ if (ar || !(i in from)) {
266
+ if (!ar)
267
+ ar = Array.prototype.slice.call(from, 0, i);
268
+ ar[i] = from[i];
269
+ }
270
+ }
271
+ return to.concat(ar || Array.prototype.slice.call(from));
272
+ }
273
+ function __await(v) {
274
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
275
+ }
276
+ function __asyncGenerator(thisArg, _arguments, generator) {
277
+ if (!Symbol.asyncIterator)
278
+ throw new TypeError("Symbol.asyncIterator is not defined.");
279
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
280
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
281
+ function verb(n) { if (g[n])
282
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
283
+ function resume(n, v) { try {
284
+ step(g[n](v));
285
+ }
286
+ catch (e) {
287
+ settle(q[0][3], e);
288
+ } }
289
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
290
+ function fulfill(value) { resume("next", value); }
291
+ function reject(value) { resume("throw", value); }
292
+ function settle(f, v) { if (f(v), q.shift(), q.length)
293
+ resume(q[0][0], q[0][1]); }
294
+ }
295
+ function __asyncDelegator(o) {
296
+ var i, p;
297
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
298
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
299
+ }
300
+ function __asyncValues(o) {
301
+ if (!Symbol.asyncIterator)
302
+ throw new TypeError("Symbol.asyncIterator is not defined.");
303
+ var m = o[Symbol.asyncIterator], i;
304
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
305
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
306
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
307
+ }
308
+ function __makeTemplateObject(cooked, raw) {
309
+ if (Object.defineProperty) {
310
+ Object.defineProperty(cooked, "raw", { value: raw });
311
+ }
312
+ else {
313
+ cooked.raw = raw;
314
+ }
315
+ return cooked;
316
+ }
317
+ ;
318
+ var __setModuleDefault = Object.create ? (function (o, v) {
319
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
320
+ }) : function (o, v) {
321
+ o["default"] = v;
322
+ };
323
+ function __importStar(mod) {
324
+ if (mod && mod.__esModule)
325
+ return mod;
326
+ var result = {};
327
+ if (mod != null)
328
+ for (var k in mod)
329
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
330
+ __createBinding(result, mod, k);
331
+ __setModuleDefault(result, mod);
332
+ return result;
333
+ }
334
+ function __importDefault(mod) {
335
+ return (mod && mod.__esModule) ? mod : { default: mod };
336
+ }
337
+ function __classPrivateFieldGet(receiver, state, kind, f) {
338
+ if (kind === "a" && !f)
339
+ throw new TypeError("Private accessor was defined without a getter");
340
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
341
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
342
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
343
+ }
344
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
345
+ if (kind === "m")
346
+ throw new TypeError("Private method is not writable");
347
+ if (kind === "a" && !f)
348
+ throw new TypeError("Private accessor was defined without a setter");
349
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
350
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
351
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
352
+ }
353
+
354
+ var GRID_HEADER_DRAGGING_CLASS = 'sky-grid-header-dragging';
355
+ var GRID_HEADER_LOCKED_SELECTOR = '.sky-grid-header-locked';
356
+ var GRID_HEADER_RESIZE_HANDLE = '.sky-grid-resize-handle';
357
+ var GRID_ROW_DELETE_SELECTOR = '.sky-grid-row-delete-heading';
358
+ var GRID_MULTISELECT_SELECTOR = '.sky-grid-multiselect-cell';
245
359
  /**
246
360
  * @internal
247
361
  */
248
-
249
- (function (SkyGridSelectedRowsSource) {
250
- SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["CheckboxChange"] = 0] = "CheckboxChange";
251
- SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["ClearAll"] = 1] = "ClearAll";
252
- SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["RowClick"] = 2] = "RowClick";
253
- SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["SelectAll"] = 3] = "SelectAll";
254
- SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["SelectedRowIdsChange"] = 4] = "SelectedRowIdsChange";
255
- })(exports.SkyGridSelectedRowsSource || (exports.SkyGridSelectedRowsSource = {}));
362
+ var SkyGridAdapterService = /** @class */ (function () {
363
+ function SkyGridAdapterService(rendererFactory) {
364
+ this.rendererFactory = rendererFactory;
365
+ this.renderer = this.rendererFactory.createRenderer(undefined, undefined);
366
+ }
367
+ SkyGridAdapterService.prototype.initializeDragAndDrop = function (dragulaService, dropCallback) {
368
+ var _this = this;
369
+ dragulaService.drag.subscribe(function (_a) {
370
+ var _b = __read(_a, 2), source = _b[1];
371
+ return source.classList.add(GRID_HEADER_DRAGGING_CLASS);
372
+ });
373
+ dragulaService.dragend.subscribe(function (_a) {
374
+ var _b = __read(_a, 2), source = _b[1];
375
+ return source.classList.remove(GRID_HEADER_DRAGGING_CLASS);
376
+ });
377
+ dragulaService.drop.subscribe(function (_a) {
378
+ var _b = __read(_a, 3), container = _b[2];
379
+ var columnIds = [];
380
+ var nodes = container.querySelectorAll("th:not(" + GRID_MULTISELECT_SELECTOR + "):not(" + GRID_ROW_DELETE_SELECTOR + ")");
381
+ for (var i = 0; i < nodes.length; i++) {
382
+ var el = nodes[i];
383
+ var id = el.getAttribute('sky-cmp-id');
384
+ columnIds.push(id);
385
+ }
386
+ dropCallback(columnIds);
387
+ });
388
+ dragulaService.setOptions('sky-grid-heading', {
389
+ moves: function (el, container, handle) {
390
+ var columns = container.querySelectorAll('th div');
391
+ var isLeftOfLocked = _this.isLeftOfLocked(handle, columns);
392
+ return (!el.querySelector(GRID_HEADER_LOCKED_SELECTOR) &&
393
+ handle !== undefined &&
394
+ !handle.matches(GRID_HEADER_RESIZE_HANDLE) &&
395
+ !handle.matches(GRID_MULTISELECT_SELECTOR) &&
396
+ !handle.matches(GRID_ROW_DELETE_SELECTOR) &&
397
+ !isLeftOfLocked);
398
+ },
399
+ accepts: function (el, target, source, sibling) {
400
+ if (sibling === undefined || !sibling) {
401
+ return true;
402
+ }
403
+ var columns = source.querySelectorAll('th div');
404
+ var siblingDiv = sibling.querySelector('div');
405
+ var isLeftOfLocked = _this.isLeftOfLocked(siblingDiv, columns);
406
+ return (!sibling.matches(GRID_HEADER_LOCKED_SELECTOR) &&
407
+ !sibling.matches(GRID_HEADER_RESIZE_HANDLE) &&
408
+ !isLeftOfLocked);
409
+ },
410
+ });
411
+ };
412
+ SkyGridAdapterService.prototype.getRowHeight = function (el, index) {
413
+ return (el.nativeElement.querySelectorAll('tbody tr')[index].scrollHeight + 'px');
414
+ };
415
+ SkyGridAdapterService.prototype.setStyle = function (el, style, value) {
416
+ if (el) {
417
+ this.renderer.setStyle(el.nativeElement, style, value);
418
+ }
419
+ };
420
+ SkyGridAdapterService.prototype.isLeftOfLocked = function (handle, columns) {
421
+ var e_1, _a;
422
+ var sourceColumn = handle;
423
+ try {
424
+ for (var _b = __values(Array.from(columns)), _c = _b.next(); !_c.done; _c = _b.next()) {
425
+ var column = _c.value;
426
+ if (column.contains(handle)) {
427
+ sourceColumn = column;
428
+ }
429
+ }
430
+ }
431
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
432
+ finally {
433
+ try {
434
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
435
+ }
436
+ finally { if (e_1) throw e_1.error; }
437
+ }
438
+ for (var i = columns.length - 1; i >= 0; i--) {
439
+ if (columns[i].classList.contains('sky-grid-header-locked')) {
440
+ return true;
441
+ }
442
+ if (columns[i] === sourceColumn) {
443
+ break;
444
+ }
445
+ }
446
+ return false;
447
+ };
448
+ return SkyGridAdapterService;
449
+ }());
450
+ SkyGridAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
451
+ SkyGridAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridAdapterService });
452
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridAdapterService, decorators: [{
453
+ type: i0.Injectable
454
+ }], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
256
455
 
257
456
  /**
258
457
  * Specifies the column information.
@@ -274,13 +473,13 @@
274
473
  * the column executes a string compare on the column data.
275
474
  * @default (value, searchText) => value.toString().toLowerCase().indexOf(searchText) !== -1
276
475
  */
277
- /* tslint:disable-next-line:no-input-rename */
476
+ // eslint-disable-next-line @angular-eslint/no-input-rename
278
477
  this.searchFunction = this.search;
279
- this.descriptionChanges = new core.EventEmitter();
280
- this.descriptionModelChanges = new core.EventEmitter();
281
- this.headingChanges = new core.EventEmitter();
282
- this.headingModelChanges = new core.EventEmitter();
283
- this.inlineHelpPopoverModelChanges = new core.EventEmitter();
478
+ this.descriptionChanges = new i0.EventEmitter();
479
+ this.descriptionModelChanges = new i0.EventEmitter();
480
+ this.headingChanges = new i0.EventEmitter();
481
+ this.headingModelChanges = new i0.EventEmitter();
482
+ this.inlineHelpPopoverModelChanges = new i0.EventEmitter();
284
483
  }
285
484
  SkyGridColumnComponent.prototype.ngOnChanges = function (changes) {
286
485
  if (changes.heading && changes.heading.firstChange === false) {
@@ -288,7 +487,7 @@
288
487
  this.headingModelChanges.emit({
289
488
  value: this.heading,
290
489
  id: this.id,
291
- field: this.field
490
+ field: this.field,
292
491
  });
293
492
  }
294
493
  if (changes.description && changes.description.firstChange === false) {
@@ -296,14 +495,15 @@
296
495
  this.descriptionModelChanges.emit({
297
496
  value: this.description,
298
497
  id: this.id,
299
- field: this.field
498
+ field: this.field,
300
499
  });
301
500
  }
302
- if (changes.inlineHelpPopover && changes.inlineHelpPopover.firstChange === false) {
501
+ if (changes.inlineHelpPopover &&
502
+ changes.inlineHelpPopover.firstChange === false) {
303
503
  this.inlineHelpPopoverModelChanges.emit({
304
504
  value: this.inlineHelpPopover,
305
505
  id: this.id,
306
- field: this.field
506
+ field: this.field,
307
507
  });
308
508
  }
309
509
  };
@@ -314,7 +514,7 @@
314
514
  }
315
515
  return this.templateInput;
316
516
  },
317
- enumerable: true,
517
+ enumerable: false,
318
518
  configurable: true
319
519
  });
320
520
  SkyGridColumnComponent.prototype.search = function (value, searchText) {
@@ -325,60 +525,51 @@
325
525
  /* tslint:enable */
326
526
  return false;
327
527
  };
328
- __decorate([
329
- core.Input()
330
- ], SkyGridColumnComponent.prototype, "alignment", void 0);
331
- __decorate([
332
- core.Input()
333
- ], SkyGridColumnComponent.prototype, "description", void 0);
334
- __decorate([
335
- core.Input()
336
- ], SkyGridColumnComponent.prototype, "excludeFromHighlighting", void 0);
337
- __decorate([
338
- core.Input()
339
- ], SkyGridColumnComponent.prototype, "field", void 0);
340
- __decorate([
341
- core.Input()
342
- ], SkyGridColumnComponent.prototype, "heading", void 0);
343
- __decorate([
344
- core.Input()
345
- ], SkyGridColumnComponent.prototype, "hidden", void 0);
346
- __decorate([
347
- core.Input()
348
- ], SkyGridColumnComponent.prototype, "id", void 0);
349
- __decorate([
350
- core.Input()
351
- ], SkyGridColumnComponent.prototype, "inlineHelpPopover", void 0);
352
- __decorate([
353
- core.Input()
354
- ], SkyGridColumnComponent.prototype, "isSortable", void 0);
355
- __decorate([
356
- core.Input()
357
- ], SkyGridColumnComponent.prototype, "locked", void 0);
358
- __decorate([
359
- core.Input('search')
360
- ], SkyGridColumnComponent.prototype, "searchFunction", void 0);
361
- __decorate([
362
- core.Input()
363
- ], SkyGridColumnComponent.prototype, "type", void 0);
364
- __decorate([
365
- core.Input('template')
366
- ], SkyGridColumnComponent.prototype, "templateInput", void 0);
367
- __decorate([
368
- core.Input()
369
- ], SkyGridColumnComponent.prototype, "width", void 0);
370
- __decorate([
371
- core.ContentChildren(core.TemplateRef)
372
- ], SkyGridColumnComponent.prototype, "templates", void 0);
373
- SkyGridColumnComponent = __decorate([
374
- core.Component({
375
- selector: 'sky-grid-column',
376
- template: '<ng-content></ng-content>',
377
- changeDetection: core.ChangeDetectionStrategy.OnPush
378
- })
379
- ], SkyGridColumnComponent);
380
528
  return SkyGridColumnComponent;
381
529
  }());
530
+ SkyGridColumnComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridColumnComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
531
+ SkyGridColumnComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyGridColumnComponent, selector: "sky-grid-column", inputs: { alignment: "alignment", description: "description", excludeFromHighlighting: "excludeFromHighlighting", field: "field", heading: "heading", hidden: "hidden", id: "id", inlineHelpPopover: "inlineHelpPopover", isSortable: "isSortable", locked: "locked", searchFunction: ["search", "searchFunction"], type: "type", templateInput: ["template", "templateInput"], width: "width" }, queries: [{ propertyName: "templates", predicate: i0.TemplateRef }], usesOnChanges: true, ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
532
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridColumnComponent, decorators: [{
533
+ type: i0.Component,
534
+ args: [{
535
+ selector: 'sky-grid-column',
536
+ template: '<ng-content></ng-content>',
537
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
538
+ }]
539
+ }], propDecorators: { alignment: [{
540
+ type: i0.Input
541
+ }], description: [{
542
+ type: i0.Input
543
+ }], excludeFromHighlighting: [{
544
+ type: i0.Input
545
+ }], field: [{
546
+ type: i0.Input
547
+ }], heading: [{
548
+ type: i0.Input
549
+ }], hidden: [{
550
+ type: i0.Input
551
+ }], id: [{
552
+ type: i0.Input
553
+ }], inlineHelpPopover: [{
554
+ type: i0.Input
555
+ }], isSortable: [{
556
+ type: i0.Input
557
+ }], locked: [{
558
+ type: i0.Input
559
+ }], searchFunction: [{
560
+ type: i0.Input,
561
+ args: ['search']
562
+ }], type: [{
563
+ type: i0.Input
564
+ }], templateInput: [{
565
+ type: i0.Input,
566
+ args: ['template']
567
+ }], width: [{
568
+ type: i0.Input
569
+ }], templates: [{
570
+ type: i0.ContentChildren,
571
+ args: [i0.TemplateRef]
572
+ }] } });
382
573
 
383
574
  /**
384
575
  * @internal
@@ -406,137 +597,91 @@
406
597
  return SkyGridColumnModel;
407
598
  }());
408
599
 
409
- var GRID_HEADER_DRAGGING_CLASS = 'sky-grid-header-dragging';
410
- var GRID_HEADER_LOCKED_SELECTOR = '.sky-grid-header-locked';
411
- var GRID_HEADER_RESIZE_HANDLE = '.sky-grid-resize-handle';
412
- var GRID_ROW_DELETE_SELECTOR = '.sky-grid-row-delete-heading';
413
- var GRID_MULTISELECT_SELECTOR = '.sky-grid-multiselect-cell';
600
+ exports.SkyGridMessageType = void 0;
601
+ (function (SkyGridMessageType) {
602
+ /**
603
+ * Selects the multiselect checkboxes for all rows in the grid.
604
+ */
605
+ SkyGridMessageType[SkyGridMessageType["SelectAll"] = 0] = "SelectAll";
606
+ /**
607
+ * Clears the multiselect checkboxes for all rows in the grid.
608
+ */
609
+ SkyGridMessageType[SkyGridMessageType["ClearAll"] = 1] = "ClearAll";
610
+ /**
611
+ * @internal
612
+ */
613
+ SkyGridMessageType[SkyGridMessageType["PromptDeleteRow"] = 2] = "PromptDeleteRow";
614
+ /**
615
+ * @internal
616
+ */
617
+ SkyGridMessageType[SkyGridMessageType["AbortDeleteRow"] = 3] = "AbortDeleteRow";
618
+ })(exports.SkyGridMessageType || (exports.SkyGridMessageType = {}));
619
+
414
620
  /**
415
621
  * @internal
416
622
  */
417
- var SkyGridAdapterService = /** @class */ (function () {
418
- function SkyGridAdapterService(rendererFactory) {
419
- this.rendererFactory = rendererFactory;
420
- this.renderer = this.rendererFactory.createRenderer(undefined, undefined);
623
+ exports.SkyGridSelectedRowsSource = void 0;
624
+ (function (SkyGridSelectedRowsSource) {
625
+ SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["CheckboxChange"] = 0] = "CheckboxChange";
626
+ SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["ClearAll"] = 1] = "ClearAll";
627
+ SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["RowClick"] = 2] = "RowClick";
628
+ SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["SelectAll"] = 3] = "SelectAll";
629
+ SkyGridSelectedRowsSource[SkyGridSelectedRowsSource["SelectedRowIdsChange"] = 4] = "SelectedRowIdsChange";
630
+ })(exports.SkyGridSelectedRowsSource || (exports.SkyGridSelectedRowsSource = {}));
631
+
632
+ /**
633
+ * @internal
634
+ */
635
+ var SkyGridCellComponent = /** @class */ (function () {
636
+ function SkyGridCellComponent() {
421
637
  }
422
- SkyGridAdapterService.prototype.initializeDragAndDrop = function (dragulaService, dropCallback) {
423
- var _this = this;
424
- dragulaService.drag.subscribe(function (_a) {
425
- var _b = __read(_a, 2), source = _b[1];
426
- return source.classList.add(GRID_HEADER_DRAGGING_CLASS);
427
- });
428
- dragulaService.dragend.subscribe(function (_a) {
429
- var _b = __read(_a, 2), source = _b[1];
430
- return source.classList.remove(GRID_HEADER_DRAGGING_CLASS);
431
- });
432
- dragulaService.drop.subscribe(function (_a) {
433
- var _b = __read(_a, 3), container = _b[2];
434
- var columnIds = [];
435
- var nodes = container.querySelectorAll("th:not(" + GRID_MULTISELECT_SELECTOR + "):not(" + GRID_ROW_DELETE_SELECTOR + ")");
436
- for (var i = 0; i < nodes.length; i++) {
437
- var el = nodes[i];
438
- var id = el.getAttribute('sky-cmp-id');
439
- columnIds.push(id);
440
- }
441
- dropCallback(columnIds);
442
- });
443
- dragulaService.setOptions('sky-grid-heading', {
444
- moves: function (el, container, handle) {
445
- var columns = container.querySelectorAll('th div');
446
- var isLeftOfLocked = _this.isLeftOfLocked(handle, columns);
447
- return !el.querySelector(GRID_HEADER_LOCKED_SELECTOR)
448
- && handle !== undefined
449
- && !handle.matches(GRID_HEADER_RESIZE_HANDLE)
450
- && !handle.matches(GRID_MULTISELECT_SELECTOR)
451
- && !handle.matches(GRID_ROW_DELETE_SELECTOR)
452
- && !isLeftOfLocked;
453
- },
454
- accepts: function (el, target, source, sibling) {
455
- if (sibling === undefined || !sibling) {
456
- return true;
457
- }
458
- var columns = source.querySelectorAll('th div');
459
- var siblingDiv = sibling.querySelector('div');
460
- var isLeftOfLocked = _this.isLeftOfLocked(siblingDiv, columns);
461
- return ((!sibling.matches(GRID_HEADER_LOCKED_SELECTOR)
462
- && !sibling.matches(GRID_HEADER_RESIZE_HANDLE)))
463
- && !isLeftOfLocked;
464
- }
465
- });
466
- };
467
- SkyGridAdapterService.prototype.getRowHeight = function (el, index) {
468
- return el.nativeElement.querySelectorAll('tbody tr')[index].scrollHeight + 'px';
469
- };
470
- SkyGridAdapterService.prototype.setStyle = function (el, style, value) {
471
- if (el) {
472
- this.renderer.setStyle(el.nativeElement, style, value);
473
- }
638
+ SkyGridCellComponent.prototype.ngOnInit = function () {
639
+ this.container.createEmbeddedView(this.template, this);
474
640
  };
475
- SkyGridAdapterService.prototype.isLeftOfLocked = function (handle, columns) {
476
- var e_1, _a;
477
- var sourceColumn = handle;
478
- try {
479
- for (var _b = __values(Array.from(columns)), _c = _b.next(); !_c.done; _c = _b.next()) {
480
- var column = _c.value;
481
- if (column.contains(handle)) {
482
- sourceColumn = column;
483
- }
484
- }
485
- }
486
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
487
- finally {
488
- try {
489
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
490
- }
491
- finally { if (e_1) throw e_1.error; }
492
- }
493
- for (var i = (columns.length - 1); i >= 0; i--) {
494
- if (columns[i].classList.contains('sky-grid-header-locked')) {
495
- return true;
496
- }
497
- if (columns[i] === sourceColumn) {
498
- break;
641
+ Object.defineProperty(SkyGridCellComponent.prototype, "row", {
642
+ get: function () {
643
+ return this.item.data;
644
+ },
645
+ enumerable: false,
646
+ configurable: true
647
+ });
648
+ Object.defineProperty(SkyGridCellComponent.prototype, "value", {
649
+ get: function () {
650
+ if (this.item.data && (this.fieldSelector || this.columnId)) {
651
+ return listBuilderCommon.getData(this.item.data, this.fieldSelector || this.columnId);
499
652
  }
500
- }
501
- return false;
502
- };
503
- SkyGridAdapterService.ctorParameters = function () { return [
504
- { type: core.RendererFactory2 }
505
- ]; };
506
- SkyGridAdapterService = __decorate([
507
- core.Injectable()
508
- ], SkyGridAdapterService);
509
- return SkyGridAdapterService;
653
+ return undefined;
654
+ },
655
+ enumerable: false,
656
+ configurable: true
657
+ });
658
+ return SkyGridCellComponent;
510
659
  }());
511
-
512
- // tslint:disable:no-null-keyword
513
- // Polyfill for Element.closest().
514
- // https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill
515
- // Returns the closest ancestor of the current element (or the current element itself) which
516
- // matches the selectors given in parameter. If there isn't such an ancestor, it returns null.
517
- if (!Element.prototype.closest) {
518
- Element.prototype.closest = function (s) {
519
- var el = this;
520
- /* istanbul ignore if */
521
- if (!document.documentElement.contains(el)) {
522
- return null;
523
- }
524
- do {
525
- if (el.matches(s)) {
526
- return el;
527
- }
528
- el = el.parentElement || el.parentNode;
529
- } while (el !== null && el.nodeType === 1);
530
- return null;
531
- };
532
- }
533
- // Polyfill for Element.matches().
534
- // https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
535
- // Returns true if the element would be selected by the specified selector string.
536
- if (!Element.prototype.matches) {
537
- Element.prototype.matches = Element.prototype.msMatchesSelector
538
- /* istanbul ignore next */ || Element.prototype.webkitMatchesSelector;
539
- }
660
+ SkyGridCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridCellComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
661
+ SkyGridCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyGridCellComponent, selector: "sky-grid-cell", inputs: { item: "item", columnId: "columnId", template: "template", fieldSelector: "fieldSelector" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["cell"], descendants: true, read: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, template: '<ng-template #cell></ng-template>', isInline: true, styles: [":host{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px;min-height:35px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
662
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridCellComponent, decorators: [{
663
+ type: i0.Component,
664
+ args: [{
665
+ selector: 'sky-grid-cell',
666
+ template: '<ng-template #cell></ng-template>',
667
+ styles: [":host{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px;min-height:35px}\n"],
668
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
669
+ }]
670
+ }], propDecorators: { item: [{
671
+ type: i0.Input
672
+ }], columnId: [{
673
+ type: i0.Input
674
+ }], template: [{
675
+ type: i0.Input
676
+ }], fieldSelector: [{
677
+ type: i0.Input
678
+ }], container: [{
679
+ type: i0.ViewChild,
680
+ args: ['cell', {
681
+ read: i0.ViewContainerRef,
682
+ static: true,
683
+ }]
684
+ }] } });
540
685
 
541
686
  var nextId = 0;
542
687
  var SkyGridComponent = /** @class */ (function () {
@@ -575,30 +720,30 @@
575
720
  /**
576
721
  * Fires when the width of a column changes.
577
722
  */
578
- this.columnWidthChange = new core.EventEmitter();
723
+ this.columnWidthChange = new i0.EventEmitter();
579
724
  /**
580
725
  * Fires when the selection of multiselect checkboxes changes.
581
726
  * Emits an array of IDs for the selected rows based on the `multiselectRowId` property
582
727
  * that the consumer provides.
583
728
  */
584
- this.multiselectSelectionChange = new core.EventEmitter();
729
+ this.multiselectSelectionChange = new i0.EventEmitter();
585
730
  /**
586
731
  * @internal
587
732
  */
588
- this.rowDeleteCancel = new core.EventEmitter();
733
+ this.rowDeleteCancel = new i0.EventEmitter();
589
734
  /**
590
735
  * @internal
591
736
  */
592
- this.rowDeleteConfirm = new core.EventEmitter();
737
+ this.rowDeleteConfirm = new i0.EventEmitter();
593
738
  /**
594
739
  * Fires when the columns to display in the grid change or when the order of the columns changes.
595
740
  * The event emits an array of IDs for the displayed columns that reflects the column order.
596
741
  */
597
- this.selectedColumnIdsChange = new core.EventEmitter();
742
+ this.selectedColumnIdsChange = new i0.EventEmitter();
598
743
  /**
599
744
  * Fires when the active sort field changes.
600
745
  */
601
- this.sortFieldChange = new core.EventEmitter();
746
+ this.sortFieldChange = new i0.EventEmitter();
602
747
  this.columnResizeStep = 10;
603
748
  this.gridId = ++nextId;
604
749
  this.rowDeleteConfigs = [];
@@ -617,7 +762,7 @@
617
762
  this.items = new Array();
618
763
  this.currentSortField = new rxjs.BehaviorSubject({
619
764
  fieldSelector: '',
620
- descending: false
765
+ descending: false,
621
766
  });
622
767
  }
623
768
  Object.defineProperty(SkyGridComponent.prototype, "selectedColumnIds", {
@@ -635,14 +780,12 @@
635
780
  this.setDisplayedColumns();
636
781
  }
637
782
  // Ensure that the ids have changed.
638
- if (!currentIds ||
639
- !value ||
640
- !this.arraysEqual(value, currentIds)) {
783
+ if (!currentIds || !value || !this.arraysEqual(value, currentIds)) {
641
784
  // This variable ensures that we do not set user config options or fire the change event
642
785
  // on the first time that the columns are set up
643
786
  if (this.selectedColumnIdsSet) {
644
787
  this.setUserConfig({
645
- selectedColumnIds: value
788
+ selectedColumnIds: value,
646
789
  });
647
790
  this.selectedColumnIdsChange.emit(this._selectedColumnIds);
648
791
  if (this.isResized) {
@@ -652,7 +795,7 @@
652
795
  }
653
796
  this.selectedColumnIdsSet = true;
654
797
  },
655
- enumerable: true,
798
+ enumerable: false,
656
799
  configurable: true
657
800
  });
658
801
  Object.defineProperty(SkyGridComponent.prototype, "selectedRowIds", {
@@ -671,14 +814,14 @@
671
814
  this.emitSelectedRows(exports.SkyGridSelectedRowsSource.SelectedRowIdsChange);
672
815
  }
673
816
  },
674
- enumerable: true,
817
+ enumerable: false,
675
818
  configurable: true
676
819
  });
677
820
  Object.defineProperty(SkyGridComponent.prototype, "tableWidth", {
678
821
  get: function () {
679
822
  return this.tableElementRef.nativeElement.offsetWidth;
680
823
  },
681
- enumerable: true,
824
+ enumerable: false,
682
825
  configurable: true
683
826
  });
684
827
  SkyGridComponent.prototype.ngOnInit = function () {
@@ -712,7 +855,9 @@
712
855
  var _this = this;
713
856
  if (changes.columns && this.columns) {
714
857
  if (this.selectedColumnIds) {
715
- this.selectedColumnIds = this.selectedColumnIds.filter(function (columnId) { return _this.columns.find(function (column) { return column.id === columnId; }); });
858
+ this.selectedColumnIds = this.selectedColumnIds.filter(function (columnId) {
859
+ return _this.columns.find(function (column) { return column.id === columnId; });
860
+ });
716
861
  }
717
862
  this.setDisplayedColumns(true);
718
863
  }
@@ -730,12 +875,12 @@
730
875
  // continue to render correctly.
731
876
  var rowElement = _this.tableElementRef.nativeElement.querySelector('[sky-cmp-id="' + id + '"]');
732
877
  _this.rowDeleteContents[id].affixer.affixTo(rowElement, {
733
- autoFitContext: core$1.SkyAffixAutoFitContext.Viewport,
878
+ autoFitContext: i1.SkyAffixAutoFitContext.Viewport,
734
879
  isSticky: true,
735
880
  placement: 'above',
736
881
  verticalAlignment: 'top',
737
882
  horizontalAlignment: 'left',
738
- enableAutoFit: false
883
+ enableAutoFit: false,
739
884
  });
740
885
  }
741
886
  });
@@ -806,12 +951,14 @@
806
951
  .pipe(operators.take(1), operators.map(function (field) {
807
952
  var selector = {
808
953
  fieldSelector: column.field,
809
- descending: true
954
+ descending: true,
810
955
  };
811
- if (field && field.fieldSelector === column.field && field.descending) {
956
+ if (field &&
957
+ field.fieldSelector === column.field &&
958
+ field.descending) {
812
959
  selector = {
813
960
  fieldSelector: column.field,
814
- descending: false
961
+ descending: false,
815
962
  };
816
963
  }
817
964
  _this.sortFieldChange.emit(selector);
@@ -821,28 +968,32 @@
821
968
  }
822
969
  };
823
970
  SkyGridComponent.prototype.getSortDirection = function (columnField) {
824
- return this.currentSortField
825
- .pipe(operators.distinctUntilChanged(), operators.map(function (field) {
826
- return field.fieldSelector === columnField ?
827
- (field.descending ? 'desc' : 'asc') : undefined;
971
+ return this.currentSortField.pipe(operators.distinctUntilChanged(), operators.map(function (field) {
972
+ return field.fieldSelector === columnField
973
+ ? field.descending
974
+ ? 'desc'
975
+ : 'asc'
976
+ : undefined;
828
977
  }));
829
978
  };
830
979
  SkyGridComponent.prototype.getAriaSortDirection = function (column) {
831
- return this.currentSortField
832
- .pipe(operators.distinctUntilChanged(), operators.map(function (field) {
833
- return field.fieldSelector === column.field ?
834
- (field.descending ? 'descending' : 'ascending') : (column.isSortable ? 'none' : undefined);
980
+ return this.currentSortField.pipe(operators.distinctUntilChanged(), operators.map(function (field) {
981
+ return field.fieldSelector === column.field
982
+ ? field.descending
983
+ ? 'descending'
984
+ : 'ascending'
985
+ : column.isSortable
986
+ ? 'none'
987
+ : undefined;
835
988
  }));
836
989
  };
837
990
  SkyGridComponent.prototype.getCaretVisibility = function (columnField) {
838
- return this.currentSortField
839
- .pipe(operators.distinctUntilChanged(), operators.map(function (field) {
991
+ return this.currentSortField.pipe(operators.distinctUntilChanged(), operators.map(function (field) {
840
992
  return field.fieldSelector === columnField ? 'visible' : 'hidden';
841
993
  }));
842
994
  };
843
995
  SkyGridComponent.prototype.getHelpInlineClass = function (columnField) {
844
- return this.getCaretVisibility(columnField)
845
- .pipe(operators.map(function (visibility) {
996
+ return this.getCaretVisibility(columnField).pipe(operators.map(function (visibility) {
846
997
  return visibility === 'hidden';
847
998
  }));
848
999
  };
@@ -851,8 +1002,8 @@
851
1002
  };
852
1003
  SkyGridComponent.prototype.updateColumnHeading = function (change) {
853
1004
  var foundColumnModel = this.columns.find(function (column) {
854
- return (change.id !== undefined && change.id === column.id ||
855
- change.field !== undefined && change.field === column.field);
1005
+ return ((change.id !== undefined && change.id === column.id) ||
1006
+ (change.field !== undefined && change.field === column.field));
856
1007
  });
857
1008
  /* istanbul ignore else */
858
1009
  if (foundColumnModel) {
@@ -862,8 +1013,8 @@
862
1013
  };
863
1014
  SkyGridComponent.prototype.updateInlineHelpPopover = function (change) {
864
1015
  var foundColumnModel = this.columns.find(function (column) {
865
- return (change.id !== undefined && change.id === column.id ||
866
- change.field !== undefined && change.field === column.field);
1016
+ return ((change.id !== undefined && change.id === column.id) ||
1017
+ (change.field !== undefined && change.field === column.field));
867
1018
  });
868
1019
  /* istanbul ignore else */
869
1020
  if (foundColumnModel) {
@@ -873,8 +1024,8 @@
873
1024
  };
874
1025
  SkyGridComponent.prototype.updateColumnDescription = function (change) {
875
1026
  var foundColumnModel = this.columns.find(function (column) {
876
- return (change.id !== undefined && change.id === column.id ||
877
- change.field !== undefined && change.field === column.field);
1027
+ return ((change.id !== undefined && change.id === column.id) ||
1028
+ (change.field !== undefined && change.field === column.field));
878
1029
  });
879
1030
  /* istanbul ignore else */
880
1031
  if (foundColumnModel) {
@@ -970,7 +1121,8 @@
970
1121
  SkyGridComponent.prototype.onRowClick = function (event, selectedItem) {
971
1122
  /* istanbul ignore else */
972
1123
  if (this.enableMultiselect) {
973
- if (event.target === event.currentTarget || !this.isInteractiveElement(event)) {
1124
+ if (event.target === event.currentTarget ||
1125
+ !this.isInteractiveElement(event)) {
974
1126
  selectedItem.isSelected = !selectedItem.isSelected;
975
1127
  this.changeDetector.markForCheck();
976
1128
  this.emitSelectedRows(exports.SkyGridSelectedRowsSource.RowClick);
@@ -1032,7 +1184,9 @@
1032
1184
  };
1033
1185
  SkyGridComponent.prototype.checkUserColumnWidthsForScroll = function () {
1034
1186
  var _this = this;
1035
- if (!this.showTopScroll && this.columnElementRefs && this.columnElementRefs.length > 0) {
1187
+ if (!this.showTopScroll &&
1188
+ this.columnElementRefs &&
1189
+ this.columnElementRefs.length > 0) {
1036
1190
  var columnsWidthTotal_1 = 0;
1037
1191
  var windowSize_1 = this.skyWindow.nativeWindow.innerWidth;
1038
1192
  this.columnElementRefs.forEach(function (col) {
@@ -1079,21 +1233,25 @@
1079
1233
  /* sanity check */
1080
1234
  /* istanbul ignore else */
1081
1235
  if (message.data && message.data.promptDeleteRow) {
1082
- var existingConfig = this.rowDeleteConfigs
1083
- .find(function (config) { return config.id === message.data.promptDeleteRow.id; });
1236
+ var existingConfig = this.rowDeleteConfigs.find(function (config) { return config.id === message.data.promptDeleteRow.id; });
1084
1237
  if (existingConfig) {
1085
1238
  existingConfig.pending = false;
1086
1239
  }
1087
1240
  else {
1088
- this.rowDeleteConfigs.push({ id: message.data.promptDeleteRow.id, pending: false });
1241
+ this.rowDeleteConfigs.push({
1242
+ id: message.data.promptDeleteRow.id,
1243
+ pending: false,
1244
+ });
1089
1245
  var overlay_1 = this.overlayService.create({
1090
1246
  enableScroll: true,
1091
1247
  showBackdrop: false,
1092
1248
  closeOnNavigation: true,
1093
1249
  enableClose: false,
1094
- enablePointerEvents: true
1250
+ enablePointerEvents: true,
1251
+ });
1252
+ overlay_1.attachTemplate(this.inlineDeleteTemplateRef, {
1253
+ $implicit: this.data.find(function (item) { return item.id === message.data.promptDeleteRow.id; }),
1095
1254
  });
1096
- overlay_1.attachTemplate(this.inlineDeleteTemplateRef, { $implicit: this.data.find(function (item) { return item.id === message.data.promptDeleteRow.id; }) });
1097
1255
  /**
1098
1256
  * We are manually setting the z-index here because overlays will always be on top of
1099
1257
  * the omnibar. This manual setting is 1 less than the omnibar's z-index of 1000. We
@@ -1102,23 +1260,25 @@
1102
1260
  */
1103
1261
  overlay_1.componentRef.instance.zIndex = '999';
1104
1262
  setTimeout(function () {
1105
- var inlineDeleteRef = _this.inlineDeleteRefs.toArray()
1263
+ var inlineDeleteRef = _this.inlineDeleteRefs
1264
+ .toArray()
1106
1265
  .find(function (elRef) {
1107
- return elRef.nativeElement.id === 'row-delete-ref-' + message.data.promptDeleteRow.id;
1266
+ return (elRef.nativeElement.id ===
1267
+ 'row-delete-ref-' + message.data.promptDeleteRow.id);
1108
1268
  });
1109
1269
  var affixer = _this.affixService.createAffixer(inlineDeleteRef);
1110
1270
  var rowElement = _this.tableElementRef.nativeElement.querySelector('[sky-cmp-id="' + message.data.promptDeleteRow.id + '"]');
1111
1271
  affixer.affixTo(rowElement, {
1112
- autoFitContext: core$1.SkyAffixAutoFitContext.Viewport,
1272
+ autoFitContext: i1.SkyAffixAutoFitContext.Viewport,
1113
1273
  isSticky: true,
1114
1274
  placement: 'above',
1115
1275
  verticalAlignment: 'top',
1116
1276
  horizontalAlignment: 'left',
1117
- enableAutoFit: false
1277
+ enableAutoFit: false,
1118
1278
  });
1119
1279
  _this.rowDeleteContents[message.data.promptDeleteRow.id] = {
1120
1280
  affixer: affixer,
1121
- overlay: overlay_1
1281
+ overlay: overlay_1,
1122
1282
  };
1123
1283
  });
1124
1284
  }
@@ -1148,7 +1308,12 @@
1148
1308
  if (this.selectedColumnIds !== undefined) {
1149
1309
  // setup displayed columns
1150
1310
  this.displayedColumns = this.selectedColumnIds
1151
- .filter(function (columnId) { return _this.columns.find(function (column) { return column.id === columnId; }); }).map(function (columnId) { return _this.columns.filter(function (column) { return column.id === columnId; })[0]; });
1311
+ .filter(function (columnId) {
1312
+ return _this.columns.find(function (column) { return column.id === columnId; });
1313
+ })
1314
+ .map(function (columnId) {
1315
+ return _this.columns.filter(function (column) { return column.id === columnId; })[0];
1316
+ });
1152
1317
  }
1153
1318
  else if (respectHidden) {
1154
1319
  this.displayedColumns = this.columns.filter(function (column) {
@@ -1161,7 +1326,10 @@
1161
1326
  };
1162
1327
  SkyGridComponent.prototype.transformData = function () {
1163
1328
  // Transform data into object with id and data properties
1164
- if (this.data && this.data.length > 0 && this.data[0].id && !this.data[0].data) {
1329
+ if (this.data &&
1330
+ this.data.length > 0 &&
1331
+ this.data[0].id &&
1332
+ !this.data[0].data) {
1165
1333
  if (this.multiselectRowId) {
1166
1334
  this.items = this.getGridDataWithSelectedRows();
1167
1335
  }
@@ -1190,7 +1358,8 @@
1190
1358
  SkyGridComponent.prototype.applySelectedRows = function () {
1191
1359
  if (this.items && this.items.length > 0 && this.selectedRowIds) {
1192
1360
  for (var i = 0; i < this.items.length; i++) {
1193
- this.items[i].isSelected = (this.selectedRowIds.indexOf(this.items[i].id) > -1);
1361
+ this.items[i].isSelected =
1362
+ this.selectedRowIds.indexOf(this.items[i].id) > -1;
1194
1363
  }
1195
1364
  this.changeDetector.markForCheck();
1196
1365
  }
@@ -1250,8 +1419,8 @@
1250
1419
  this.columnElementRefs.forEach(function (col, index) {
1251
1420
  var computedWidth = parseFloat(window.getComputedStyle(col.nativeElement).width);
1252
1421
  var offsetWidth = col.nativeElement.offsetWidth;
1253
- var width = Math.max(computedWidth /* istanbul ignore next */ || offsetWidth, _this.minColWidth);
1254
- _this.getColumnModelByIndex(index).width = width;
1422
+ /* istanbul ignore next */
1423
+ _this.getColumnModelByIndex(index).width = Math.max(computedWidth || offsetWidth, _this.minColWidth);
1255
1424
  });
1256
1425
  // 'scroll' tables should be allowed to expand outside of their constraints.
1257
1426
  if (this.fit === 'scroll') {
@@ -1269,7 +1438,7 @@
1269
1438
  columnWidthModelChange.push({
1270
1439
  id: column.id,
1271
1440
  field: column.field,
1272
- width: column.width
1441
+ width: column.width,
1273
1442
  });
1274
1443
  });
1275
1444
  return columnWidthModelChange;
@@ -1300,17 +1469,13 @@
1300
1469
  });
1301
1470
  };
1302
1471
  SkyGridComponent.prototype.getRangeInputByIndex = function (index) {
1303
- return this.columnRangeInputElementRefs.find(function (input) {
1304
- return input.nativeElement.getAttribute('sky-cmp-index') === index.toString();
1305
- });
1472
+ return this.columnRangeInputElementRefs.find(function (input) { return input.nativeElement.getAttribute('sky-cmp-index') === index.toString(); });
1306
1473
  };
1307
1474
  SkyGridComponent.prototype.getColumnModelByIndex = function (index) {
1308
1475
  return this.displayedColumns[Number(index)];
1309
1476
  };
1310
1477
  SkyGridComponent.prototype.getMaxRangeByIndex = function (index) {
1311
- var columnElementRef = this.columnElementRefs.find(function (th) {
1312
- return th.nativeElement.getAttribute('sky-cmp-index') === index;
1313
- });
1478
+ var columnElementRef = this.columnElementRefs.find(function (th) { return th.nativeElement.getAttribute('sky-cmp-index') === index; });
1314
1479
  var rangeInput = columnElementRef.nativeElement.querySelector('.sky-grid-column-input-aria-only');
1315
1480
  return Number(rangeInput.max);
1316
1481
  };
@@ -1322,6 +1487,7 @@
1322
1487
  };
1323
1488
  SkyGridComponent.prototype.destroyRowDelete = function (id) {
1324
1489
  var rowDeleteContents = this.rowDeleteContents[id];
1490
+ /* istanbul ignore else */
1325
1491
  if (rowDeleteContents) {
1326
1492
  rowDeleteContents.affixer.destroy();
1327
1493
  this.overlayService.close(rowDeleteContents.overlay);
@@ -1331,15 +1497,17 @@
1331
1497
  SkyGridComponent.prototype.emitSelectedRows = function (source) {
1332
1498
  var selectedRows = {
1333
1499
  selectedRowIds: this.getSelectedRows(),
1334
- source: source
1500
+ source: source,
1335
1501
  };
1336
1502
  this.multiselectSelectionChange.emit(selectedRows);
1337
1503
  };
1338
1504
  SkyGridComponent.prototype.getSelectedRows = function () {
1339
1505
  var _this = this;
1340
- return this.items.filter(function (item) {
1506
+ return this.items
1507
+ .filter(function (item) {
1341
1508
  return item.isSelected;
1342
- }).map(function (item) {
1509
+ })
1510
+ .map(function (item) {
1343
1511
  if (item.data.hasOwnProperty(_this.multiselectRowId)) {
1344
1512
  return item.data[_this.multiselectRowId];
1345
1513
  }
@@ -1352,20 +1520,22 @@
1352
1520
  };
1353
1521
  SkyGridComponent.prototype.setResizeBarPosition = function (xPosition) {
1354
1522
  var parentScroll = this.tableContainerElementRef.nativeElement.scrollLeft;
1355
- var resizeBarX = xPosition - this.tableElementRef.nativeElement.getBoundingClientRect().left - parentScroll;
1523
+ var resizeBarX = xPosition -
1524
+ this.tableElementRef.nativeElement.getBoundingClientRect().left -
1525
+ parentScroll;
1356
1526
  this.gridAdapter.setStyle(this.resizeBar, 'left', resizeBarX + 'px');
1357
1527
  };
1358
1528
  SkyGridComponent.prototype.applyUserConfig = function () {
1359
1529
  var _this = this;
1360
1530
  return new Promise(function (resolve) {
1361
- _this.uiConfigService.getConfig(_this.settingsKey)
1531
+ _this.uiConfigService
1532
+ .getConfig(_this.settingsKey)
1362
1533
  .pipe(operators.take(1))
1363
1534
  .subscribe(function (config) {
1364
1535
  /* istanbul ignore else */
1365
1536
  if (config && config.selectedColumnIds) {
1366
1537
  // Remove any columnIds that don't exist in the current data set.
1367
- var filteredColumnIds = config.selectedColumnIds.filter(function (id) { return _this.columns.find(function (column) { return column.id === id; }); });
1368
- _this.selectedColumnIds = filteredColumnIds;
1538
+ _this.selectedColumnIds = config.selectedColumnIds.filter(function (id) { return _this.columns.find(function (column) { return column.id === id; }); });
1369
1539
  _this.changeDetector.markForCheck();
1370
1540
  }
1371
1541
  resolve();
@@ -1378,7 +1548,8 @@
1378
1548
  if (!this.settingsKey) {
1379
1549
  return;
1380
1550
  }
1381
- this.uiConfigService.setConfig(this.settingsKey, config)
1551
+ this.uiConfigService
1552
+ .setConfig(this.settingsKey, config)
1382
1553
  .pipe(operators.takeUntil(this.ngUnsubscribe))
1383
1554
  .subscribe(function () { }, function (err) {
1384
1555
  console.warn('Could not save grid settings.');
@@ -1388,8 +1559,7 @@
1388
1559
  SkyGridComponent.prototype.initColumns = function () {
1389
1560
  var _this = this;
1390
1561
  /* istanbul ignore else */
1391
- if (this.columnComponents.length !== 0 ||
1392
- this.columns !== undefined) {
1562
+ if (this.columnComponents.length !== 0 || this.columns !== undefined) {
1393
1563
  /* istanbul ignore else */
1394
1564
  /* sanity check */
1395
1565
  if (this.columnComponents.length > 0) {
@@ -1403,277 +1573,227 @@
1403
1573
  this.subscriptions.push(this.columnComponents.changes.subscribe(function () { return _this.updateColumns(); }));
1404
1574
  // Watch for column heading changes:
1405
1575
  this.columnComponents.forEach(function (comp) {
1406
- _this.subscriptions.push(comp.headingModelChanges
1407
- .subscribe(function (change) {
1576
+ _this.subscriptions.push(comp.headingModelChanges.subscribe(function (change) {
1408
1577
  _this.updateColumnHeading(change);
1409
1578
  }));
1410
- _this.subscriptions.push(comp.descriptionModelChanges
1411
- .subscribe(function (change) {
1579
+ _this.subscriptions.push(comp.descriptionModelChanges.subscribe(function (change) {
1412
1580
  _this.updateColumnDescription(change);
1413
1581
  }));
1414
- _this.subscriptions.push(comp.inlineHelpPopoverModelChanges
1415
- .subscribe(function (change) {
1582
+ _this.subscriptions.push(comp.inlineHelpPopoverModelChanges.subscribe(function (change) {
1416
1583
  _this.updateInlineHelpPopover(change);
1417
1584
  }));
1418
1585
  });
1419
1586
  };
1420
1587
  SkyGridComponent.prototype.arraysEqual = function (arrayA, arrayB) {
1421
- return arrayA.length === arrayB.length &&
1422
- arrayA.every(function (value, index) {
1423
- return value === arrayB[index];
1424
- });
1588
+ return (arrayA.length === arrayB.length &&
1589
+ arrayA.every(function (value, index) { return value === arrayB[index]; }));
1425
1590
  };
1426
- SkyGridComponent.ctorParameters = function () { return [
1427
- { type: core$1.SkyAffixService },
1428
- { type: core.ChangeDetectorRef },
1429
- { type: ng2Dragula.DragulaService },
1430
- { type: SkyGridAdapterService },
1431
- { type: core$1.SkyOverlayService },
1432
- { type: core$1.SkyAppWindowRef },
1433
- { type: core$1.SkyUIConfigService }
1434
- ]; };
1435
- __decorate([
1436
- core.Input()
1437
- ], SkyGridComponent.prototype, "columns", void 0);
1438
- __decorate([
1439
- core.Input()
1440
- ], SkyGridComponent.prototype, "data", void 0);
1441
- __decorate([
1442
- core.Input()
1443
- ], SkyGridComponent.prototype, "enableMultiselect", void 0);
1444
- __decorate([
1445
- core.Input()
1446
- ], SkyGridComponent.prototype, "fit", void 0);
1447
- __decorate([
1448
- core.Input()
1449
- ], SkyGridComponent.prototype, "hasToolbar", void 0);
1450
- __decorate([
1451
- core.Input()
1452
- ], SkyGridComponent.prototype, "height", void 0);
1453
- __decorate([
1454
- core.Input()
1455
- ], SkyGridComponent.prototype, "highlightText", void 0);
1456
- __decorate([
1457
- core.Input()
1458
- ], SkyGridComponent.prototype, "messageStream", void 0);
1459
- __decorate([
1460
- core.Input()
1461
- ], SkyGridComponent.prototype, "multiselectRowId", void 0);
1462
- __decorate([
1463
- core.Input()
1464
- ], SkyGridComponent.prototype, "rowHighlightedId", void 0);
1465
- __decorate([
1466
- core.Input()
1467
- ], SkyGridComponent.prototype, "selectedColumnIds", null);
1468
- __decorate([
1469
- core.Input()
1470
- ], SkyGridComponent.prototype, "selectedRowIds", null);
1471
- __decorate([
1472
- core.Input()
1473
- ], SkyGridComponent.prototype, "settingsKey", void 0);
1474
- __decorate([
1475
- core.Input()
1476
- ], SkyGridComponent.prototype, "sortField", void 0);
1477
- __decorate([
1478
- core.Input()
1479
- ], SkyGridComponent.prototype, "width", void 0);
1480
- __decorate([
1481
- core.Output()
1482
- ], SkyGridComponent.prototype, "columnWidthChange", void 0);
1483
- __decorate([
1484
- core.Output()
1485
- ], SkyGridComponent.prototype, "multiselectSelectionChange", void 0);
1486
- __decorate([
1487
- core.Output()
1488
- ], SkyGridComponent.prototype, "rowDeleteCancel", void 0);
1489
- __decorate([
1490
- core.Output()
1491
- ], SkyGridComponent.prototype, "rowDeleteConfirm", void 0);
1492
- __decorate([
1493
- core.Output()
1494
- ], SkyGridComponent.prototype, "selectedColumnIdsChange", void 0);
1495
- __decorate([
1496
- core.Output()
1497
- ], SkyGridComponent.prototype, "sortFieldChange", void 0);
1498
- __decorate([
1499
- core.ContentChildren(SkyGridColumnComponent)
1500
- ], SkyGridComponent.prototype, "columnComponents", void 0);
1501
- __decorate([
1502
- core.ViewChildren('gridCol')
1503
- ], SkyGridComponent.prototype, "columnElementRefs", void 0);
1504
- __decorate([
1505
- core.ViewChildren('colSizeRange')
1506
- ], SkyGridComponent.prototype, "columnRangeInputElementRefs", void 0);
1507
- __decorate([
1508
- core.ViewChildren('inlineDeleteRef')
1509
- ], SkyGridComponent.prototype, "inlineDeleteRefs", void 0);
1510
- __decorate([
1511
- core.ViewChild('inlineDeleteTemplateRef', { read: core.TemplateRef })
1512
- ], SkyGridComponent.prototype, "inlineDeleteTemplateRef", void 0);
1513
- __decorate([
1514
- core.ViewChild('gridContainer')
1515
- ], SkyGridComponent.prototype, "tableContainerElementRef", void 0);
1516
- __decorate([
1517
- core.ViewChild('gridTable')
1518
- ], SkyGridComponent.prototype, "tableElementRef", void 0);
1519
- __decorate([
1520
- core.ViewChild('topScrollContainer')
1521
- ], SkyGridComponent.prototype, "topScrollContainerElementRef", void 0);
1522
- __decorate([
1523
- core.ViewChild('resizeBar')
1524
- ], SkyGridComponent.prototype, "resizeBar", void 0);
1525
- __decorate([
1526
- core.HostListener('window:resize')
1527
- ], SkyGridComponent.prototype, "onWindowResize", null);
1528
- SkyGridComponent = __decorate([
1529
- core.Component({
1530
- selector: 'sky-grid',
1531
- template: "<div class=\"sky-grid\">\n <div *ngIf=\"showTopScroll\"\n class=\"sky-grid-top-scroll-container\"\n (scroll)=\"onTopScroll($event)\"\n #topScrollContainer\n >\n <div\n class=\"sky-grid-top-scroll\"\n [style.width.px]=\"getTopScrollWidth()\"\n ></div>\n </div>\n <div\n class=\"sky-grid-table-container\"\n [style.height.px]=\"height\"\n [style.width.px]=\"width\"\n (scroll)=\"onGridScroll($event)\"\n #gridContainer\n >\n <table\n class=\"sky-grid-table\"\n [ngClass]=\"getTableClassNames()\"\n #gridTable>\n <thead>\n <tr dragula=\"sky-grid-heading\">\n <th *ngIf=\"enableMultiselect\"\n class=\"sky-grid-heading sky-grid-multiselect-cell sky-grid-header-locked\"\n scope=\"col\"\n [style.max-width.px]=\"minColWidth\"\n [style.width.px]=\"minColWidth\"\n >\n <span class=\"screen-reader-only\">\n {{ 'skyux_grid_multiselect_select_row' | skyLibResources }}\n </span>\n </th>\n <th *ngFor=\"let column of displayedColumns; let last = last, let i = index\"\n class=\"sky-grid-heading sky-field-label\"\n scope=\"col\"\n [attr.sky-cmp-index]=\"i\"\n [attr.sky-cmp-id]=\"column.id || column.field\"\n [attr.aria-sort]=\"getAriaSortDirection(column) | async\"\n [id]=\"'sky-grid-' + gridId + '-column-' + i\"\n [ngClass]=\"'sky-grid-column-alignment-' + column.alignment\"\n [style.max-width.px]=\"column.width\"\n [style.width.px]=\"column.width\"\n [tabIndex]=\"column.isSortable ? 0 : -1\"\n (mouseup)=\"sortByColumn(column)\"\n (keydown)=\"onKeydown($event, column)\"\n (touchmove)=\"onTouchMove($event)\"\n #gridCol\n >\n <div\n class=\"overflow\"\n [ngClass]=\"getTableHeaderClassNames(column)\"\n [style.max-width.px]=\"column.width - 1\"\n [style.width.px]=\"column.width - 1\"\n >\n <span *ngIf=\"(getCaretVisibility(column.field) | async) === 'hidden'\"\n class=\"sky-grid-header-caret-hidden-spacing\"\n ></span>\n <!-- The no spacing here is intentional to avoid extra spaces due to these being inline elements -->\n <span\n class=\"sky-grid-header-text\"\n >{{column.heading?.trim()}}</span>\n <sky-icon\n class=\"sky-grid-heading-sort\"\n [ngClass]=\"'sky-grid-heading-sort-' + (getCaretVisibility(column.field) | async)\"\n [icon]=\"getCaretIconNames(column)\"\n >\n </sky-icon>\n <sky-help-inline *ngIf=\"column.inlineHelpPopover\"\n [ngClass]=\"{\n 'sky-grid-help-inline-sort-hidden' : getHelpInlineClass(column.field) | async\n }\"\n [skyPopover]=\"column.inlineHelpPopover\"\n (keydown.enter)=\"$event.stopPropagation()\"\n (keydown.space)=\"$event.stopPropagation()\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n >\n </sky-help-inline>\n </div>\n <span\n *ngIf=\"(fit==='width' && !last) || (fit==='scroll')\"\n aria-hidden=\"true\"\n class=\"sky-grid-resize-handle\"\n tabindex=\"-1\"\n [attr.sky-cmp-index]=\"i\"\n (mousedown)=\"onResizeColumnStart($event)\"\n (touchstart)=\"onResizeColumnStart($event)\"\n >\n </span>\n <input\n aria-label=\"Width of column\"\n class=\"sky-grid-column-input-aria-only\"\n role=\"slider\"\n type=\"range\"\n [attr.aria-controls]=\"'sky-grid-' + gridId + '-column-' + i\"\n [attr.aria-valuemin]=\"minColWidth\"\n [attr.aria-valuemax]=\"maxColWidth\"\n [attr.aria-valuenow]=\"column.width\"\n [attr.sky-cmp-index]=\"i\"\n [min]=\"minColWidth\"\n [max]=\"maxColWidth\"\n [step]=\"columnResizeStep\"\n [(ngModel)]=\"column.width\"\n (blur)=\"onResizeHandleBlur($event)\"\n (focus)=\"onResizeHandleFocus($event)\"\n (keydown)=\"onKeydownResizeCol($event)\"\n (change)=\"onInputChangeResizeCol($event)\"\n #colSizeRange />\n </th>\n </tr>\n </thead>\n <tbody class=\"sky-grid-tbody\">\n <tr\n class=\"sky-grid-row\"\n *ngFor=\"let item of items; let i = index\"\n [attr.aria-current]=\"isRowHighlighted(item.id) ? true : null\"\n [attr.aria-selected]=\"item.isSelected\"\n [attr.sky-cmp-id]=\"item.id\"\n [ngClass]=\"{\n 'sky-grid-multiselect-selected-row' : item.isSelected,\n 'sky-grid-multiselect-row' : enableMultiselect,\n 'sky-grid-row-highlight' : isRowHighlighted(item.id)\n }\"\n (click)=\"onRowClick($event, item)\"\n >\n <td *ngIf=\"enableMultiselect\"\n class=\"sky-grid-multiselect-cell sky-grid-header-locked\"\n >\n <div\n [style.max-width.px]=\"minColWidth\"\n [style.width.px]=\"minColWidth\"\n >\n <sky-checkbox\n [label]=\"'skyux_grid_multiselect_select_row' | skyLibResources\"\n (change)=\"onMultiselectCheckboxChange()\"\n [(ngModel)]=\"item.isSelected\"\n >\n </sky-checkbox>\n </div>\n </td>\n <td *ngFor=\"let column of displayedColumns; let last = last; let i = index\"\n class=\"sky-grid-cell\"\n [ngClass]=\"'sky-grid-column-alignment-' + column.alignment\"\n [style.max-width.px]=\"column.width\"\n [style.width.px]=\"column.width\"\n >\n <sky-grid-cell\n [skyHighlight]=\"!column.excludeFromHighlighting ? highlightText : undefined\"\n [template]=\"column.template || defaultCellTemplate\"\n [fieldSelector]=\"column.field\"\n [item]=\"item\"\n [columnId]=\"column.id\"\n [attr.sky-cmp-id]=\"column.id || column.field\">\n </sky-grid-cell>\n </td>\n </tr>\n </tbody>\n </table>\n <div *ngIf=\"showResizeBar\"\n aria-hidden=\"true\"\n id=\"sky-grid-resize-bar\"\n tabindex=\"-1\"\n #resizeBar\n >\n </div>\n </div>\n</div>\n\n<ng-template #defaultCellTemplate let-row=\"row\" let-value=\"value\">{{value}}</ng-template>\n\n<ng-template\n let-item\n #inlineDeleteTemplateRef\n>\n <div\n [id]=\"'row-delete-ref-' + item.id\"\n [ngStyle]='{\n \"height\": getRowHeight(0),\n \"position\": \"fixed\",\n \"width\": tableWidth + \"px\"\n }'\n #inlineDeleteRef\n >\n <sky-inline-delete\n [pending]=\"getRowDeleteItem(item.id).pending\"\n (cancelTriggered)=\"cancelRowDelete(item.id)\"\n (deleteTriggered)=\"confirmRowDelete(item.id)\"\n ></sky-inline-delete>\n </div>\n</ng-template>\n",
1532
- viewProviders: [ng2Dragula.DragulaService],
1533
- providers: [
1534
- SkyGridAdapterService
1535
- ],
1536
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1537
- styles: [".sky-grid{position:relative;display:block}.sky-grid-table-container{overflow:auto}.sky-grid-table{position:relative;table-layout:fixed;border-collapse:collapse;margin:0;font-size:15px;min-width:100%}.sky-grid-table.sky-grid-fit{max-width:100%;width:100%}.sky-grid-tbody{background-color:#fff}.sky-grid-row{border-bottom:1px dotted #cdcfd2}.sky-grid-row:nth-child(odd){background-color:#fbfbfb}.sky-grid-row.sky-grid-row-highlight{border-top:1px solid #0974a1;box-shadow:0 0 0 3px inset #0974a1}.sky-grid-row .sky-grid-cell{padding:0;min-width:10px}.sky-grid-heading{position:relative;border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:0 solid #cdcfd2;padding:0;cursor:pointer;background-color:#fff;overflow:visible;background-clip:padding-box;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;-moz-user-select:none;-ms-user-select:none;user-select:none}.sky-grid-heading:first-child{border-left:1px solid transparent}.sky-grid-heading.sky-grid-header-dragging{background-color:#eeeeef}.sky-grid-heading.sky-grid-column-alignment-center .sky-grid-heading-sort,.sky-grid-heading.sky-grid-column-alignment-left .sky-grid-heading-sort{width:14px}.sky-grid-heading.sky-grid-column-alignment-center .sky-grid-help-inline-sort-hidden,.sky-grid-heading.sky-grid-column-alignment-left .sky-grid-help-inline-sort-hidden{margin-left:-14px;margin-right:14px}.sky-grid-heading.sky-grid-column-alignment-right .sky-grid-header-caret-hidden-spacing{padding-left:14px}.sky-grid-heading.sky-grid-column-alignment-right .sky-grid-heading-sort-visible{width:14px}.sky-grid-heading div{padding:8px}.sky-grid-heading .overflow{text-overflow:ellipsis;white-space:nowrap;position:relative;z-index:1;overflow:hidden;min-width:100%}.sky-grid-heading .sky-grid-column-input-aria-only{-webkit-appearance:none;-moz-appearance:none;height:100%;width:5px;position:absolute;display:block;top:0;bottom:0;right:0}.sky-grid-heading .sky-grid-column-input-aria-only::-moz-range-track{background:0 0}.sky-grid-heading .sky-grid-column-input-aria-only::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0;background:0 0;display:none}.sky-grid-heading .sky-grid-column-input-aria-only::-ms-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0;background:0 0;display:none}.sky-grid-heading .sky-grid-column-input-aria-only::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0;background:0 0;display:none}.sky-grid-heading .sky-grid-column-input-aria-only:focus{background-color:#00b4f1}.sky-grid-column-alignment-left{text-align:left}.sky-grid-column-alignment-center{text-align:center}.sky-grid-column-alignment-right{text-align:right}.sky-grid-multiselect-cell{padding:0;text-align:center}.sky-grid-multiselect-cell ::ng-deep.sky-switch-control{margin:0 auto}th.sky-grid-multiselect-cell{cursor:default}th.sky-grid-multiselect-cell .screen-reader-only{width:0;height:0;padding:0;opacity:0;position:absolute;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);outline:0;white-space:nowrap}@-moz-document url-prefix(){.sky-grid-multiselect-row td{border-left:0 solid transparent;border-right:0 solid transparent}}.sky-grid-multiselect-row:hover{background-color:#e9e4f1}.sky-grid-multiselect-row:hover:nth-child(odd){background:#e9e4f1}.sky-grid-multiselect-selected-row{background:#f1eef6;border-top:1px solid #dadbf6;border-bottom:1px solid #dadbf6}.sky-grid-multiselect-selected-row:nth-child(odd){background:#f1eef6}.sky-grid-has-toolbar .sky-grid-heading{border-top-width:0}.sky-grid-heading-sort.sky-grid-heading-sort-hidden{visibility:hidden}.sky-grid-heading-sort.sky-grid-heading-sort-visible{visibility:visible;padding-left:5px}.sky-grid-resize-handle{position:absolute;right:0;top:0;bottom:0;width:30px;z-index:2;min-height:20px;height:100%!important;vertical-align:middle;cursor:col-resize}.sky-grid-resize-handle:hover::after{background-color:#00b4f1}.sky-grid-resize-handle:after{position:absolute;right:0;top:0;bottom:0;width:5px;height:100%;content:\"\"}#sky-grid-resize-bar{position:absolute;top:0;left:0;z-index:99;height:100%;width:5px;background:#00b4f1;opacity:.6}tr{position:relative}.sky-grid-top-scroll-container{overflow:auto}.sky-grid-top-scroll{height:1px}"]
1538
- })
1539
- ], SkyGridComponent);
1540
1591
  return SkyGridComponent;
1541
1592
  }());
1593
+ SkyGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridComponent, deps: [{ token: i1__namespace.SkyAffixService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.DragulaService }, { token: SkyGridAdapterService }, { token: i1__namespace.SkyOverlayService }, { token: i1__namespace.SkyAppWindowRef }, { token: i1__namespace.SkyUIConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1594
+ SkyGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyGridComponent, selector: "sky-grid", inputs: { columns: "columns", data: "data", enableMultiselect: "enableMultiselect", fit: "fit", hasToolbar: "hasToolbar", height: "height", highlightText: "highlightText", messageStream: "messageStream", multiselectRowId: "multiselectRowId", rowHighlightedId: "rowHighlightedId", selectedColumnIds: "selectedColumnIds", selectedRowIds: "selectedRowIds", settingsKey: "settingsKey", sortField: "sortField", width: "width" }, outputs: { columnWidthChange: "columnWidthChange", multiselectSelectionChange: "multiselectSelectionChange", rowDeleteCancel: "rowDeleteCancel", rowDeleteConfirm: "rowDeleteConfirm", selectedColumnIdsChange: "selectedColumnIdsChange", sortFieldChange: "sortFieldChange" }, host: { listeners: { "window:resize": "onWindowResize()" } }, providers: [SkyGridAdapterService], queries: [{ propertyName: "columnComponents", predicate: SkyGridColumnComponent }], viewQueries: [{ propertyName: "inlineDeleteTemplateRef", first: true, predicate: ["inlineDeleteTemplateRef"], descendants: true, read: i0.TemplateRef }, { propertyName: "tableContainerElementRef", first: true, predicate: ["gridContainer"], descendants: true }, { propertyName: "tableElementRef", first: true, predicate: ["gridTable"], descendants: true }, { propertyName: "topScrollContainerElementRef", first: true, predicate: ["topScrollContainer"], descendants: true }, { propertyName: "resizeBar", first: true, predicate: ["resizeBar"], descendants: true }, { propertyName: "columnElementRefs", predicate: ["gridCol"], descendants: true }, { propertyName: "columnRangeInputElementRefs", predicate: ["colSizeRange"], descendants: true }, { propertyName: "inlineDeleteRefs", predicate: ["inlineDeleteRef"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"sky-grid\">\n <div\n *ngIf=\"showTopScroll\"\n class=\"sky-grid-top-scroll-container\"\n (scroll)=\"onTopScroll($event)\"\n #topScrollContainer\n >\n <div\n class=\"sky-grid-top-scroll\"\n [style.width.px]=\"getTopScrollWidth()\"\n ></div>\n </div>\n <div\n class=\"sky-grid-table-container\"\n [style.height.px]=\"height\"\n [style.width.px]=\"width\"\n (scroll)=\"onGridScroll($event)\"\n #gridContainer\n >\n <table class=\"sky-grid-table\" [ngClass]=\"getTableClassNames()\" #gridTable>\n <thead>\n <tr dragula=\"sky-grid-heading\">\n <th\n *ngIf=\"enableMultiselect\"\n class=\"\n sky-grid-heading sky-grid-multiselect-cell sky-grid-header-locked\n \"\n scope=\"col\"\n [style.max-width.px]=\"minColWidth\"\n [style.width.px]=\"minColWidth\"\n >\n <span class=\"screen-reader-only\">\n {{ 'skyux_grid_multiselect_select_row' | skyLibResources }}\n </span>\n </th>\n <th\n *ngFor=\"\n let column of displayedColumns;\n let last = last;\n let i = index\n \"\n class=\"sky-grid-heading sky-field-label\"\n scope=\"col\"\n [attr.sky-cmp-index]=\"i\"\n [attr.sky-cmp-id]=\"column.id || column.field\"\n [attr.aria-sort]=\"getAriaSortDirection(column) | async\"\n [id]=\"'sky-grid-' + gridId + '-column-' + i\"\n [ngClass]=\"'sky-grid-column-alignment-' + column.alignment\"\n [style.max-width.px]=\"column.width\"\n [style.width.px]=\"column.width\"\n [tabIndex]=\"column.isSortable ? 0 : -1\"\n (mouseup)=\"sortByColumn(column)\"\n (keydown)=\"onKeydown($event, column)\"\n (touchmove)=\"onTouchMove($event)\"\n #gridCol\n >\n <div\n class=\"overflow\"\n [ngClass]=\"getTableHeaderClassNames(column)\"\n [style.max-width.px]=\"column.width - 1\"\n [style.width.px]=\"column.width - 1\"\n >\n <span\n *ngIf=\"(getCaretVisibility(column.field) | async) === 'hidden'\"\n class=\"sky-grid-header-caret-hidden-spacing\"\n ></span>\n <!-- The no spacing here is intentional to avoid extra spaces due to these being inline elements -->\n <span class=\"sky-grid-header-text\">{{\n column.heading?.trim()\n }}</span>\n <sky-icon\n class=\"sky-grid-heading-sort\"\n [ngClass]=\"\n 'sky-grid-heading-sort-' +\n (getCaretVisibility(column.field) | async)\n \"\n [icon]=\"getCaretIconNames(column)\"\n >\n </sky-icon>\n <sky-help-inline\n *ngIf=\"column.inlineHelpPopover\"\n [ngClass]=\"{\n 'sky-grid-help-inline-sort-hidden':\n getHelpInlineClass(column.field) | async\n }\"\n [skyPopover]=\"column.inlineHelpPopover\"\n (keydown.enter)=\"$event.stopPropagation()\"\n (keydown.space)=\"$event.stopPropagation()\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n >\n </sky-help-inline>\n </div>\n <span\n *ngIf=\"(fit === 'width' && !last) || fit === 'scroll'\"\n aria-hidden=\"true\"\n class=\"sky-grid-resize-handle\"\n tabindex=\"-1\"\n [attr.sky-cmp-index]=\"i\"\n (mousedown)=\"onResizeColumnStart($event)\"\n (touchstart)=\"onResizeColumnStart($event)\"\n >\n </span>\n <input\n aria-label=\"Width of column\"\n class=\"sky-grid-column-input-aria-only\"\n role=\"slider\"\n type=\"range\"\n [attr.aria-controls]=\"'sky-grid-' + gridId + '-column-' + i\"\n [attr.aria-valuemin]=\"minColWidth\"\n [attr.aria-valuemax]=\"maxColWidth\"\n [attr.aria-valuenow]=\"column.width\"\n [attr.sky-cmp-index]=\"i\"\n [min]=\"minColWidth\"\n [max]=\"maxColWidth\"\n [step]=\"columnResizeStep\"\n [(ngModel)]=\"column.width\"\n (blur)=\"onResizeHandleBlur($event)\"\n (focus)=\"onResizeHandleFocus($event)\"\n (keydown)=\"onKeydownResizeCol($event)\"\n (change)=\"onInputChangeResizeCol($event)\"\n #colSizeRange\n />\n </th>\n </tr>\n </thead>\n <tbody class=\"sky-grid-tbody\">\n <tr\n class=\"sky-grid-row\"\n *ngFor=\"let item of items; let i = index\"\n [attr.aria-current]=\"isRowHighlighted(item.id) ? true : null\"\n [attr.aria-selected]=\"item.isSelected\"\n [attr.sky-cmp-id]=\"item.id\"\n [ngClass]=\"{\n 'sky-grid-multiselect-selected-row': item.isSelected,\n 'sky-grid-multiselect-row': enableMultiselect,\n 'sky-grid-row-highlight': isRowHighlighted(item.id)\n }\"\n (click)=\"onRowClick($event, item)\"\n >\n <td\n *ngIf=\"enableMultiselect\"\n class=\"sky-grid-multiselect-cell sky-grid-header-locked\"\n >\n <div\n [style.max-width.px]=\"minColWidth\"\n [style.width.px]=\"minColWidth\"\n >\n <sky-checkbox\n [label]=\"'skyux_grid_multiselect_select_row' | skyLibResources\"\n (change)=\"onMultiselectCheckboxChange()\"\n [(ngModel)]=\"item.isSelected\"\n >\n </sky-checkbox>\n </div>\n </td>\n <td\n *ngFor=\"\n let column of displayedColumns;\n let last = last;\n let i = index\n \"\n class=\"sky-grid-cell\"\n [ngClass]=\"'sky-grid-column-alignment-' + column.alignment\"\n [style.max-width.px]=\"column.width\"\n [style.width.px]=\"column.width\"\n >\n <sky-grid-cell\n [skyHighlight]=\"\n !column.excludeFromHighlighting ? highlightText : undefined\n \"\n [template]=\"column.template || defaultCellTemplate\"\n [fieldSelector]=\"column.field\"\n [item]=\"item\"\n [columnId]=\"column.id\"\n [attr.sky-cmp-id]=\"column.id || column.field\"\n >\n </sky-grid-cell>\n </td>\n </tr>\n </tbody>\n </table>\n <div\n *ngIf=\"showResizeBar\"\n aria-hidden=\"true\"\n id=\"sky-grid-resize-bar\"\n tabindex=\"-1\"\n #resizeBar\n ></div>\n </div>\n</div>\n\n<ng-template #defaultCellTemplate let-row=\"row\" let-value=\"value\">{{\n value\n}}</ng-template>\n\n<ng-template let-item #inlineDeleteTemplateRef>\n <div\n [id]=\"'row-delete-ref-' + item.id\"\n [ngStyle]=\"{\n height: getRowHeight(0),\n position: 'fixed',\n width: tableWidth + 'px'\n }\"\n #inlineDeleteRef\n >\n <sky-inline-delete\n [pending]=\"getRowDeleteItem(item.id).pending\"\n (cancelTriggered)=\"cancelRowDelete(item.id)\"\n (deleteTriggered)=\"confirmRowDelete(item.id)\"\n ></sky-inline-delete>\n </div>\n</ng-template>\n", styles: [".sky-grid{position:relative;display:block}.sky-grid-table-container{overflow:auto}.sky-grid-table{position:relative;table-layout:fixed;border-collapse:collapse;margin:0;font-size:15px;min-width:100%}.sky-grid-table.sky-grid-fit{max-width:100%;width:100%}.sky-grid-tbody{background-color:#fff}.sky-grid-row{border-bottom:1px dotted #cdcfd2}.sky-grid-row:nth-child(odd){background-color:#fbfbfb}.sky-grid-row.sky-grid-row-highlight{border-top:1px solid #0974a1;box-shadow:0 0 0 3px inset #0974a1}.sky-grid-row .sky-grid-cell{padding:0;min-width:10px}.sky-grid-heading{position:relative;border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;border-right-width:0px;padding:0;cursor:pointer;background-color:#fff;overflow:visible;background-clip:padding-box;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;user-select:none}.sky-grid-heading:first-child{border-left:1px solid transparent}.sky-grid-heading.sky-grid-header-dragging{background-color:#eeeeef}.sky-grid-heading.sky-grid-column-alignment-left .sky-grid-heading-sort,.sky-grid-heading.sky-grid-column-alignment-center .sky-grid-heading-sort{width:14px}.sky-grid-heading.sky-grid-column-alignment-left .sky-grid-help-inline-sort-hidden,.sky-grid-heading.sky-grid-column-alignment-center .sky-grid-help-inline-sort-hidden{margin-left:-14px;margin-right:14px}.sky-grid-heading.sky-grid-column-alignment-right .sky-grid-header-caret-hidden-spacing{padding-left:14px}.sky-grid-heading.sky-grid-column-alignment-right .sky-grid-heading-sort-visible{width:14px}.sky-grid-heading div{padding:8px}.sky-grid-heading .overflow{text-overflow:ellipsis;white-space:nowrap;position:relative;z-index:1;overflow:hidden;min-width:100%}.sky-grid-heading .sky-grid-column-input-aria-only{-webkit-appearance:none;-moz-appearance:none;height:100%;width:5px;position:absolute;display:block;top:0;bottom:0;right:0}.sky-grid-heading .sky-grid-column-input-aria-only::-moz-range-track{background:transparent}.sky-grid-heading .sky-grid-column-input-aria-only::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0 none;background:none;display:none}.sky-grid-heading .sky-grid-column-input-aria-only::-ms-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0 none;background:none;display:none}.sky-grid-heading .sky-grid-column-input-aria-only::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0 none;background:none;display:none}.sky-grid-heading .sky-grid-column-input-aria-only:focus{background-color:#00b4f1}.sky-grid-column-alignment-left{text-align:left}.sky-grid-column-alignment-center{text-align:center}.sky-grid-column-alignment-right{text-align:right}.sky-grid-multiselect-cell{padding:0;text-align:center}.sky-grid-multiselect-cell ::ng-deep .sky-switch-control{margin:0 auto}th.sky-grid-multiselect-cell{cursor:default}th.sky-grid-multiselect-cell .screen-reader-only{width:0;height:0;padding:0;opacity:0;position:absolute;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);outline:none;white-space:nowrap}@-moz-document url-prefix(){.sky-grid-multiselect-row td{border-left:0px solid transparent;border-right:0px solid transparent}}.sky-grid-multiselect-row:hover{background-color:#e9e4f1}.sky-grid-multiselect-row:hover:nth-child(odd){background:#e9e4f1}.sky-grid-multiselect-selected-row{background:#f1eef6;border-top:1px solid #dadbf6;border-bottom:1px solid #dadbf6}.sky-grid-multiselect-selected-row:nth-child(odd){background:#f1eef6}.sky-grid-has-toolbar .sky-grid-heading{border-top-width:0px}.sky-grid-heading-sort.sky-grid-heading-sort-hidden{visibility:hidden}.sky-grid-heading-sort.sky-grid-heading-sort-visible{visibility:visible;padding-left:5px}.sky-grid-resize-handle{position:absolute;right:0;top:0;bottom:0;width:30px;z-index:2;min-height:20px;height:100%!important;vertical-align:middle;cursor:col-resize}.sky-grid-resize-handle:hover:after{background-color:#00b4f1}.sky-grid-resize-handle:after{position:absolute;right:0;top:0;bottom:0;width:5px;height:100%;content:\"\"}#sky-grid-resize-bar{position:absolute;top:0;left:0;z-index:99;height:100%;width:5px;background:#00b4f1;opacity:.6}tr{position:relative}.sky-grid-top-scroll-container{overflow:auto}.sky-grid-top-scroll{height:1px}\n"], components: [{ type: i4__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: i4__namespace.λ3, selector: "sky-help-inline", outputs: ["actionClick"] }, { type: i5__namespace.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: SkyGridCellComponent, selector: "sky-grid-cell", inputs: ["item", "columnId", "template", "fieldSelector"] }, { type: i7__namespace.λ8, selector: "sky-inline-delete", inputs: ["pending"], outputs: ["cancelTriggered", "deleteTriggered"] }], directives: [{ type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.DragulaDirective, selector: "[dragula]", inputs: ["dragula", "dragulaModel", "dragulaOptions"] }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9__namespace.λ7, selector: "[skyPopover]", inputs: ["skyPopover", "skyPopoverAlignment", "skyPopoverMessageStream", "skyPopoverPlacement", "skyPopoverTrigger"] }, { type: i10__namespace.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { type: i10__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4__namespace.λ11, selector: "[skyHighlight]", inputs: ["skyHighlight"] }, { type: i8__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "skyLibResources": i11__namespace.SkyLibResourcesPipe, "async": i8__namespace.AsyncPipe }, viewProviders: [i2.DragulaService], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1595
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridComponent, decorators: [{
1596
+ type: i0.Component,
1597
+ args: [{
1598
+ selector: 'sky-grid',
1599
+ template: "<div class=\"sky-grid\">\n <div\n *ngIf=\"showTopScroll\"\n class=\"sky-grid-top-scroll-container\"\n (scroll)=\"onTopScroll($event)\"\n #topScrollContainer\n >\n <div\n class=\"sky-grid-top-scroll\"\n [style.width.px]=\"getTopScrollWidth()\"\n ></div>\n </div>\n <div\n class=\"sky-grid-table-container\"\n [style.height.px]=\"height\"\n [style.width.px]=\"width\"\n (scroll)=\"onGridScroll($event)\"\n #gridContainer\n >\n <table class=\"sky-grid-table\" [ngClass]=\"getTableClassNames()\" #gridTable>\n <thead>\n <tr dragula=\"sky-grid-heading\">\n <th\n *ngIf=\"enableMultiselect\"\n class=\"\n sky-grid-heading sky-grid-multiselect-cell sky-grid-header-locked\n \"\n scope=\"col\"\n [style.max-width.px]=\"minColWidth\"\n [style.width.px]=\"minColWidth\"\n >\n <span class=\"screen-reader-only\">\n {{ 'skyux_grid_multiselect_select_row' | skyLibResources }}\n </span>\n </th>\n <th\n *ngFor=\"\n let column of displayedColumns;\n let last = last;\n let i = index\n \"\n class=\"sky-grid-heading sky-field-label\"\n scope=\"col\"\n [attr.sky-cmp-index]=\"i\"\n [attr.sky-cmp-id]=\"column.id || column.field\"\n [attr.aria-sort]=\"getAriaSortDirection(column) | async\"\n [id]=\"'sky-grid-' + gridId + '-column-' + i\"\n [ngClass]=\"'sky-grid-column-alignment-' + column.alignment\"\n [style.max-width.px]=\"column.width\"\n [style.width.px]=\"column.width\"\n [tabIndex]=\"column.isSortable ? 0 : -1\"\n (mouseup)=\"sortByColumn(column)\"\n (keydown)=\"onKeydown($event, column)\"\n (touchmove)=\"onTouchMove($event)\"\n #gridCol\n >\n <div\n class=\"overflow\"\n [ngClass]=\"getTableHeaderClassNames(column)\"\n [style.max-width.px]=\"column.width - 1\"\n [style.width.px]=\"column.width - 1\"\n >\n <span\n *ngIf=\"(getCaretVisibility(column.field) | async) === 'hidden'\"\n class=\"sky-grid-header-caret-hidden-spacing\"\n ></span>\n <!-- The no spacing here is intentional to avoid extra spaces due to these being inline elements -->\n <span class=\"sky-grid-header-text\">{{\n column.heading?.trim()\n }}</span>\n <sky-icon\n class=\"sky-grid-heading-sort\"\n [ngClass]=\"\n 'sky-grid-heading-sort-' +\n (getCaretVisibility(column.field) | async)\n \"\n [icon]=\"getCaretIconNames(column)\"\n >\n </sky-icon>\n <sky-help-inline\n *ngIf=\"column.inlineHelpPopover\"\n [ngClass]=\"{\n 'sky-grid-help-inline-sort-hidden':\n getHelpInlineClass(column.field) | async\n }\"\n [skyPopover]=\"column.inlineHelpPopover\"\n (keydown.enter)=\"$event.stopPropagation()\"\n (keydown.space)=\"$event.stopPropagation()\"\n (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\"\n >\n </sky-help-inline>\n </div>\n <span\n *ngIf=\"(fit === 'width' && !last) || fit === 'scroll'\"\n aria-hidden=\"true\"\n class=\"sky-grid-resize-handle\"\n tabindex=\"-1\"\n [attr.sky-cmp-index]=\"i\"\n (mousedown)=\"onResizeColumnStart($event)\"\n (touchstart)=\"onResizeColumnStart($event)\"\n >\n </span>\n <input\n aria-label=\"Width of column\"\n class=\"sky-grid-column-input-aria-only\"\n role=\"slider\"\n type=\"range\"\n [attr.aria-controls]=\"'sky-grid-' + gridId + '-column-' + i\"\n [attr.aria-valuemin]=\"minColWidth\"\n [attr.aria-valuemax]=\"maxColWidth\"\n [attr.aria-valuenow]=\"column.width\"\n [attr.sky-cmp-index]=\"i\"\n [min]=\"minColWidth\"\n [max]=\"maxColWidth\"\n [step]=\"columnResizeStep\"\n [(ngModel)]=\"column.width\"\n (blur)=\"onResizeHandleBlur($event)\"\n (focus)=\"onResizeHandleFocus($event)\"\n (keydown)=\"onKeydownResizeCol($event)\"\n (change)=\"onInputChangeResizeCol($event)\"\n #colSizeRange\n />\n </th>\n </tr>\n </thead>\n <tbody class=\"sky-grid-tbody\">\n <tr\n class=\"sky-grid-row\"\n *ngFor=\"let item of items; let i = index\"\n [attr.aria-current]=\"isRowHighlighted(item.id) ? true : null\"\n [attr.aria-selected]=\"item.isSelected\"\n [attr.sky-cmp-id]=\"item.id\"\n [ngClass]=\"{\n 'sky-grid-multiselect-selected-row': item.isSelected,\n 'sky-grid-multiselect-row': enableMultiselect,\n 'sky-grid-row-highlight': isRowHighlighted(item.id)\n }\"\n (click)=\"onRowClick($event, item)\"\n >\n <td\n *ngIf=\"enableMultiselect\"\n class=\"sky-grid-multiselect-cell sky-grid-header-locked\"\n >\n <div\n [style.max-width.px]=\"minColWidth\"\n [style.width.px]=\"minColWidth\"\n >\n <sky-checkbox\n [label]=\"'skyux_grid_multiselect_select_row' | skyLibResources\"\n (change)=\"onMultiselectCheckboxChange()\"\n [(ngModel)]=\"item.isSelected\"\n >\n </sky-checkbox>\n </div>\n </td>\n <td\n *ngFor=\"\n let column of displayedColumns;\n let last = last;\n let i = index\n \"\n class=\"sky-grid-cell\"\n [ngClass]=\"'sky-grid-column-alignment-' + column.alignment\"\n [style.max-width.px]=\"column.width\"\n [style.width.px]=\"column.width\"\n >\n <sky-grid-cell\n [skyHighlight]=\"\n !column.excludeFromHighlighting ? highlightText : undefined\n \"\n [template]=\"column.template || defaultCellTemplate\"\n [fieldSelector]=\"column.field\"\n [item]=\"item\"\n [columnId]=\"column.id\"\n [attr.sky-cmp-id]=\"column.id || column.field\"\n >\n </sky-grid-cell>\n </td>\n </tr>\n </tbody>\n </table>\n <div\n *ngIf=\"showResizeBar\"\n aria-hidden=\"true\"\n id=\"sky-grid-resize-bar\"\n tabindex=\"-1\"\n #resizeBar\n ></div>\n </div>\n</div>\n\n<ng-template #defaultCellTemplate let-row=\"row\" let-value=\"value\">{{\n value\n}}</ng-template>\n\n<ng-template let-item #inlineDeleteTemplateRef>\n <div\n [id]=\"'row-delete-ref-' + item.id\"\n [ngStyle]=\"{\n height: getRowHeight(0),\n position: 'fixed',\n width: tableWidth + 'px'\n }\"\n #inlineDeleteRef\n >\n <sky-inline-delete\n [pending]=\"getRowDeleteItem(item.id).pending\"\n (cancelTriggered)=\"cancelRowDelete(item.id)\"\n (deleteTriggered)=\"confirmRowDelete(item.id)\"\n ></sky-inline-delete>\n </div>\n</ng-template>\n",
1600
+ styles: [".sky-grid{position:relative;display:block}.sky-grid-table-container{overflow:auto}.sky-grid-table{position:relative;table-layout:fixed;border-collapse:collapse;margin:0;font-size:15px;min-width:100%}.sky-grid-table.sky-grid-fit{max-width:100%;width:100%}.sky-grid-tbody{background-color:#fff}.sky-grid-row{border-bottom:1px dotted #cdcfd2}.sky-grid-row:nth-child(odd){background-color:#fbfbfb}.sky-grid-row.sky-grid-row-highlight{border-top:1px solid #0974a1;box-shadow:0 0 0 3px inset #0974a1}.sky-grid-row .sky-grid-cell{padding:0;min-width:10px}.sky-grid-heading{position:relative;border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;border-right-width:0px;padding:0;cursor:pointer;background-color:#fff;overflow:visible;background-clip:padding-box;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;user-select:none}.sky-grid-heading:first-child{border-left:1px solid transparent}.sky-grid-heading.sky-grid-header-dragging{background-color:#eeeeef}.sky-grid-heading.sky-grid-column-alignment-left .sky-grid-heading-sort,.sky-grid-heading.sky-grid-column-alignment-center .sky-grid-heading-sort{width:14px}.sky-grid-heading.sky-grid-column-alignment-left .sky-grid-help-inline-sort-hidden,.sky-grid-heading.sky-grid-column-alignment-center .sky-grid-help-inline-sort-hidden{margin-left:-14px;margin-right:14px}.sky-grid-heading.sky-grid-column-alignment-right .sky-grid-header-caret-hidden-spacing{padding-left:14px}.sky-grid-heading.sky-grid-column-alignment-right .sky-grid-heading-sort-visible{width:14px}.sky-grid-heading div{padding:8px}.sky-grid-heading .overflow{text-overflow:ellipsis;white-space:nowrap;position:relative;z-index:1;overflow:hidden;min-width:100%}.sky-grid-heading .sky-grid-column-input-aria-only{-webkit-appearance:none;-moz-appearance:none;height:100%;width:5px;position:absolute;display:block;top:0;bottom:0;right:0}.sky-grid-heading .sky-grid-column-input-aria-only::-moz-range-track{background:transparent}.sky-grid-heading .sky-grid-column-input-aria-only::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0 none;background:none;display:none}.sky-grid-heading .sky-grid-column-input-aria-only::-ms-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0 none;background:none;display:none}.sky-grid-heading .sky-grid-column-input-aria-only::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;width:0;height:0;border-radius:0;border:0 none;background:none;display:none}.sky-grid-heading .sky-grid-column-input-aria-only:focus{background-color:#00b4f1}.sky-grid-column-alignment-left{text-align:left}.sky-grid-column-alignment-center{text-align:center}.sky-grid-column-alignment-right{text-align:right}.sky-grid-multiselect-cell{padding:0;text-align:center}.sky-grid-multiselect-cell ::ng-deep .sky-switch-control{margin:0 auto}th.sky-grid-multiselect-cell{cursor:default}th.sky-grid-multiselect-cell .screen-reader-only{width:0;height:0;padding:0;opacity:0;position:absolute;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);outline:none;white-space:nowrap}@-moz-document url-prefix(){.sky-grid-multiselect-row td{border-left:0px solid transparent;border-right:0px solid transparent}}.sky-grid-multiselect-row:hover{background-color:#e9e4f1}.sky-grid-multiselect-row:hover:nth-child(odd){background:#e9e4f1}.sky-grid-multiselect-selected-row{background:#f1eef6;border-top:1px solid #dadbf6;border-bottom:1px solid #dadbf6}.sky-grid-multiselect-selected-row:nth-child(odd){background:#f1eef6}.sky-grid-has-toolbar .sky-grid-heading{border-top-width:0px}.sky-grid-heading-sort.sky-grid-heading-sort-hidden{visibility:hidden}.sky-grid-heading-sort.sky-grid-heading-sort-visible{visibility:visible;padding-left:5px}.sky-grid-resize-handle{position:absolute;right:0;top:0;bottom:0;width:30px;z-index:2;min-height:20px;height:100%!important;vertical-align:middle;cursor:col-resize}.sky-grid-resize-handle:hover:after{background-color:#00b4f1}.sky-grid-resize-handle:after{position:absolute;right:0;top:0;bottom:0;width:5px;height:100%;content:\"\"}#sky-grid-resize-bar{position:absolute;top:0;left:0;z-index:99;height:100%;width:5px;background:#00b4f1;opacity:.6}tr{position:relative}.sky-grid-top-scroll-container{overflow:auto}.sky-grid-top-scroll{height:1px}\n"],
1601
+ viewProviders: [i2.DragulaService],
1602
+ providers: [SkyGridAdapterService],
1603
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1604
+ }]
1605
+ }], ctorParameters: function () { return [{ type: i1__namespace.SkyAffixService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.DragulaService }, { type: SkyGridAdapterService }, { type: i1__namespace.SkyOverlayService }, { type: i1__namespace.SkyAppWindowRef }, { type: i1__namespace.SkyUIConfigService }]; }, propDecorators: { columns: [{
1606
+ type: i0.Input
1607
+ }], data: [{
1608
+ type: i0.Input
1609
+ }], enableMultiselect: [{
1610
+ type: i0.Input
1611
+ }], fit: [{
1612
+ type: i0.Input
1613
+ }], hasToolbar: [{
1614
+ type: i0.Input
1615
+ }], height: [{
1616
+ type: i0.Input
1617
+ }], highlightText: [{
1618
+ type: i0.Input
1619
+ }], messageStream: [{
1620
+ type: i0.Input
1621
+ }], multiselectRowId: [{
1622
+ type: i0.Input
1623
+ }], rowHighlightedId: [{
1624
+ type: i0.Input
1625
+ }], selectedColumnIds: [{
1626
+ type: i0.Input
1627
+ }], selectedRowIds: [{
1628
+ type: i0.Input
1629
+ }], settingsKey: [{
1630
+ type: i0.Input
1631
+ }], sortField: [{
1632
+ type: i0.Input
1633
+ }], width: [{
1634
+ type: i0.Input
1635
+ }], columnWidthChange: [{
1636
+ type: i0.Output
1637
+ }], multiselectSelectionChange: [{
1638
+ type: i0.Output
1639
+ }], rowDeleteCancel: [{
1640
+ type: i0.Output
1641
+ }], rowDeleteConfirm: [{
1642
+ type: i0.Output
1643
+ }], selectedColumnIdsChange: [{
1644
+ type: i0.Output
1645
+ }], sortFieldChange: [{
1646
+ type: i0.Output
1647
+ }], columnComponents: [{
1648
+ type: i0.ContentChildren,
1649
+ args: [SkyGridColumnComponent]
1650
+ }], columnElementRefs: [{
1651
+ type: i0.ViewChildren,
1652
+ args: ['gridCol']
1653
+ }], columnRangeInputElementRefs: [{
1654
+ type: i0.ViewChildren,
1655
+ args: ['colSizeRange']
1656
+ }], inlineDeleteRefs: [{
1657
+ type: i0.ViewChildren,
1658
+ args: ['inlineDeleteRef']
1659
+ }], inlineDeleteTemplateRef: [{
1660
+ type: i0.ViewChild,
1661
+ args: ['inlineDeleteTemplateRef', { read: i0.TemplateRef }]
1662
+ }], tableContainerElementRef: [{
1663
+ type: i0.ViewChild,
1664
+ args: ['gridContainer']
1665
+ }], tableElementRef: [{
1666
+ type: i0.ViewChild,
1667
+ args: ['gridTable']
1668
+ }], topScrollContainerElementRef: [{
1669
+ type: i0.ViewChild,
1670
+ args: ['topScrollContainer']
1671
+ }], resizeBar: [{
1672
+ type: i0.ViewChild,
1673
+ args: ['resizeBar']
1674
+ }], onWindowResize: [{
1675
+ type: i0.HostListener,
1676
+ args: ['window:resize']
1677
+ }] } });
1542
1678
 
1543
1679
  /**
1544
- * @internal
1680
+ * NOTICE: DO NOT MODIFY THIS FILE!
1681
+ * The contents of this file were automatically generated by
1682
+ * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/skyux-grids' schematic.
1683
+ * To update this file, simply rerun the command.
1545
1684
  */
1546
- var SkyGridCellComponent = /** @class */ (function () {
1547
- function SkyGridCellComponent() {
1685
+ var RESOURCES = {
1686
+ 'EN-US': { skyux_grid_multiselect_select_row: { message: 'Select row' } },
1687
+ };
1688
+ var SkyuxGridsResourcesProvider = /** @class */ (function () {
1689
+ function SkyuxGridsResourcesProvider() {
1548
1690
  }
1549
- SkyGridCellComponent.prototype.ngOnInit = function () {
1550
- this.container.createEmbeddedView(this.template, this);
1691
+ SkyuxGridsResourcesProvider.prototype.getString = function (localeInfo, name) {
1692
+ return i11.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
1551
1693
  };
1552
- Object.defineProperty(SkyGridCellComponent.prototype, "row", {
1553
- get: function () {
1554
- return this.item.data;
1555
- },
1556
- enumerable: true,
1557
- configurable: true
1558
- });
1559
- Object.defineProperty(SkyGridCellComponent.prototype, "value", {
1560
- get: function () {
1561
- if (this.item.data && (this.fieldSelector || this.columnId)) {
1562
- return listBuilderCommon.getData(this.item.data, this.fieldSelector || this.columnId);
1563
- }
1564
- return undefined;
1565
- },
1566
- enumerable: true,
1567
- configurable: true
1568
- });
1569
- __decorate([
1570
- core.Input()
1571
- ], SkyGridCellComponent.prototype, "item", void 0);
1572
- __decorate([
1573
- core.Input()
1574
- ], SkyGridCellComponent.prototype, "columnId", void 0);
1575
- __decorate([
1576
- core.Input()
1577
- ], SkyGridCellComponent.prototype, "template", void 0);
1578
- __decorate([
1579
- core.Input()
1580
- ], SkyGridCellComponent.prototype, "fieldSelector", void 0);
1581
- __decorate([
1582
- core.ViewChild('cell', {
1583
- read: core.ViewContainerRef,
1584
- static: true
1585
- })
1586
- ], SkyGridCellComponent.prototype, "container", void 0);
1587
- SkyGridCellComponent = __decorate([
1588
- core.Component({
1589
- selector: 'sky-grid-cell',
1590
- template: '<ng-template #cell></ng-template>',
1591
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1592
- styles: [":host{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px;min-height:35px}"]
1593
- })
1594
- ], SkyGridCellComponent);
1595
- return SkyGridCellComponent;
1694
+ return SkyuxGridsResourcesProvider;
1596
1695
  }());
1597
-
1598
- var SkyGridsResourcesProvider = /** @class */ (function () {
1599
- function SkyGridsResourcesProvider() {
1600
- this.resources = { "EN-US": { "skyux_grid_multiselect_select_row": "Select row" } };
1696
+ /**
1697
+ * Import into any component library module that needs to use resource strings.
1698
+ */
1699
+ var SkyuxGridsResourcesModule = /** @class */ (function () {
1700
+ function SkyuxGridsResourcesModule() {
1601
1701
  }
1602
- SkyGridsResourcesProvider.prototype.getString = function (localeInfo, name) {
1603
- return i18n.getStringForLocale(this.resources, localeInfo.locale, name);
1604
- };
1605
- SkyGridsResourcesProvider = __decorate([
1606
- core.Injectable()
1607
- ], SkyGridsResourcesProvider);
1608
- return SkyGridsResourcesProvider;
1702
+ return SkyuxGridsResourcesModule;
1609
1703
  }());
1610
-
1611
- var SkyGridsResourcesModule = /** @class */ (function () {
1612
- function SkyGridsResourcesModule() {
1613
- }
1614
- SkyGridsResourcesModule = __decorate([
1615
- core.NgModule({
1616
- exports: [
1617
- i18n.SkyI18nModule
1618
- ],
1619
- providers: [{
1620
- provide: i18n.SKY_LIB_RESOURCES_PROVIDERS,
1621
- useClass: SkyGridsResourcesProvider,
1622
- multi: true
1704
+ SkyuxGridsResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyuxGridsResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1705
+ SkyuxGridsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyuxGridsResourcesModule, exports: [i11.SkyI18nModule] });
1706
+ SkyuxGridsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyuxGridsResourcesModule, providers: [
1707
+ {
1708
+ provide: i11.SKY_LIB_RESOURCES_PROVIDERS,
1709
+ useClass: SkyuxGridsResourcesProvider,
1710
+ multi: true,
1711
+ },
1712
+ ], imports: [i11.SkyI18nModule] });
1713
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyuxGridsResourcesModule, decorators: [{
1714
+ type: i0.NgModule,
1715
+ args: [{
1716
+ exports: [i11.SkyI18nModule],
1717
+ providers: [
1718
+ {
1719
+ provide: i11.SKY_LIB_RESOURCES_PROVIDERS,
1720
+ useClass: SkyuxGridsResourcesProvider,
1721
+ multi: true,
1722
+ },
1723
+ ],
1623
1724
  }]
1624
- })
1625
- ], SkyGridsResourcesModule);
1626
- return SkyGridsResourcesModule;
1627
- }());
1725
+ }] });
1628
1726
 
1629
1727
  var SkyGridModule = /** @class */ (function () {
1630
1728
  function SkyGridModule() {
1631
1729
  }
1632
- SkyGridModule = __decorate([
1633
- core.NgModule({
1634
- declarations: [
1635
- SkyGridComponent,
1636
- SkyGridColumnComponent,
1637
- SkyGridCellComponent
1638
- ],
1639
- imports: [
1640
- common.CommonModule,
1641
- ng2Dragula.DragulaModule,
1642
- forms.FormsModule,
1643
- core$1.SkyAffixModule,
1644
- forms$1.SkyCheckboxModule,
1645
- SkyGridsResourcesModule,
1646
- indicators.SkyHelpInlineModule,
1647
- indicators.SkyIconModule,
1648
- layout.SkyInlineDeleteModule,
1649
- core$1.SkyOverlayModule,
1650
- popovers.SkyPopoverModule,
1651
- indicators.SkyTextHighlightModule
1652
- ],
1653
- exports: [
1654
- SkyGridComponent,
1655
- SkyGridColumnComponent,
1656
- SkyGridCellComponent
1657
- ],
1658
- providers: [
1659
- core$1.SkyAppWindowRef,
1660
- core$1.SkyUIConfigService
1661
- ]
1662
- })
1663
- ], SkyGridModule);
1664
1730
  return SkyGridModule;
1665
1731
  }());
1732
+ SkyGridModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1733
+ SkyGridModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridModule, declarations: [SkyGridComponent,
1734
+ SkyGridColumnComponent,
1735
+ SkyGridCellComponent], imports: [i8.CommonModule,
1736
+ i2.DragulaModule,
1737
+ i10.FormsModule,
1738
+ i1.SkyAffixModule,
1739
+ i5.SkyCheckboxModule,
1740
+ SkyuxGridsResourcesModule,
1741
+ i4.SkyHelpInlineModule,
1742
+ i4.SkyIconModule,
1743
+ i7.SkyInlineDeleteModule,
1744
+ i1.SkyOverlayModule,
1745
+ i9.SkyPopoverModule,
1746
+ i4.SkyTextHighlightModule], exports: [SkyGridComponent, SkyGridColumnComponent] });
1747
+ SkyGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridModule, imports: [[
1748
+ i8.CommonModule,
1749
+ i2.DragulaModule,
1750
+ i10.FormsModule,
1751
+ i1.SkyAffixModule,
1752
+ i5.SkyCheckboxModule,
1753
+ SkyuxGridsResourcesModule,
1754
+ i4.SkyHelpInlineModule,
1755
+ i4.SkyIconModule,
1756
+ i7.SkyInlineDeleteModule,
1757
+ i1.SkyOverlayModule,
1758
+ i9.SkyPopoverModule,
1759
+ i4.SkyTextHighlightModule,
1760
+ ]] });
1761
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyGridModule, decorators: [{
1762
+ type: i0.NgModule,
1763
+ args: [{
1764
+ declarations: [
1765
+ SkyGridComponent,
1766
+ SkyGridColumnComponent,
1767
+ SkyGridCellComponent,
1768
+ ],
1769
+ imports: [
1770
+ i8.CommonModule,
1771
+ i2.DragulaModule,
1772
+ i10.FormsModule,
1773
+ i1.SkyAffixModule,
1774
+ i5.SkyCheckboxModule,
1775
+ SkyuxGridsResourcesModule,
1776
+ i4.SkyHelpInlineModule,
1777
+ i4.SkyIconModule,
1778
+ i7.SkyInlineDeleteModule,
1779
+ i1.SkyOverlayModule,
1780
+ i9.SkyPopoverModule,
1781
+ i4.SkyTextHighlightModule,
1782
+ ],
1783
+ exports: [SkyGridComponent, SkyGridColumnComponent],
1784
+ }]
1785
+ }] });
1786
+
1787
+ /**
1788
+ * Generated bundle index. Do not edit.
1789
+ */
1666
1790
 
1667
1791
  exports.SkyGridColumnComponent = SkyGridColumnComponent;
1668
1792
  exports.SkyGridColumnModel = SkyGridColumnModel;
1669
1793
  exports.SkyGridComponent = SkyGridComponent;
1670
1794
  exports.SkyGridModule = SkyGridModule;
1671
- exports.ɵa = SkyGridAdapterService;
1672
- exports.ɵb = SkyGridCellComponent;
1673
- exports.ɵc = SkyGridsResourcesModule;
1674
- exports.ɵd = SkyGridsResourcesProvider;
1675
1795
 
1676
1796
  Object.defineProperty(exports, '__esModule', { value: true });
1677
1797
 
1678
- })));
1798
+ }));
1679
1799
  //# sourceMappingURL=skyux-grids.umd.js.map