@skyux/list-builder-common 5.0.0-beta.0 → 5.0.2

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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/bundles/skyux-list-builder-common.umd.js +346 -228
  3. package/bundles/skyux-list-builder-common.umd.js.map +1 -1
  4. package/documentation.json +340 -0
  5. package/esm2015/helpers.js +9 -2
  6. package/esm2015/public-api.js +12 -0
  7. package/esm2015/rxstate/async-item.js +1 -1
  8. package/esm2015/rxstate/async-list.js +1 -1
  9. package/esm2015/rxstate/helpers.js +3 -2
  10. package/esm2015/rxstate/state-dispatcher.js +1 -1
  11. package/esm2015/rxstate/state-node.js +6 -4
  12. package/esm2015/rxstate/state-orchestrator.js +8 -3
  13. package/esm2015/skyux-list-builder-common.js +2 -2
  14. package/esm2015/state/items/item.model.js +1 -1
  15. package/esm2015/state/sort/field-selector.model.js +1 -1
  16. package/fesm2015/skyux-list-builder-common.js +22 -7
  17. package/fesm2015/skyux-list-builder-common.js.map +1 -1
  18. package/helpers.d.ts +4 -1
  19. package/package.json +6 -20
  20. package/{public_api.d.ts → public-api.d.ts} +0 -0
  21. package/rxstate/helpers.d.ts +1 -0
  22. package/skyux-list-builder-common.d.ts +2 -1
  23. package/CHANGELOG.md +0 -52
  24. package/bundles/skyux-list-builder-common.umd.min.js +0 -16
  25. package/bundles/skyux-list-builder-common.umd.min.js.map +0 -1
  26. package/esm2015/public_api.js +0 -12
  27. package/esm5/helpers.js +0 -53
  28. package/esm5/public_api.js +0 -12
  29. package/esm5/rxstate/async-item.js +0 -17
  30. package/esm5/rxstate/async-list.js +0 -19
  31. package/esm5/rxstate/helpers.js +0 -11
  32. package/esm5/rxstate/state-dispatcher.js +0 -14
  33. package/esm5/rxstate/state-node.js +0 -41
  34. package/esm5/rxstate/state-orchestrator.js +0 -37
  35. package/esm5/skyux-list-builder-common.js +0 -5
  36. package/esm5/state/items/item.model.js +0 -17
  37. package/esm5/state/sort/field-selector.model.js +0 -15
  38. package/fesm5/skyux-list-builder-common.js +0 -219
  39. package/fesm5/skyux-list-builder-common.js.map +0 -1
  40. package/skyux-list-builder-common.metadata.json +0 -1
  41. package/src/assets/locales/resources_en_US.json +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Blackbaud
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,227 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('rxjs/operators')) :
3
3
  typeof define === 'function' && define.amd ? define('@skyux/list-builder-common', ['exports', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = global || self, factory((global.skyux = global.skyux || {}, global.skyux['list-builder-common'] = {}), global.rxjs, global.rxjs.operators));
5
- }(this, (function (exports, rxjs, operators) { 'use strict';
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;
224
- }
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["list-builder-common"] = {}), global.rxjs, global.rxjs.operators));
5
+ })(this, (function (exports, rxjs, operators) { 'use strict';
225
6
 
226
7
  var ListItemModel = /** @class */ (function () {
227
8
  function ListItemModel(id, data, isSelected) {
@@ -253,6 +34,7 @@
253
34
  return ListSortFieldSelectorModel;
254
35
  }());
255
36
 
37
+ /** @internal */
256
38
  function getData(item, selector) {
257
39
  if (!selector) {
258
40
  return undefined;
@@ -262,6 +44,7 @@
262
44
  resultFieldParts.shift();
263
45
  }
264
46
  var result = item;
47
+ /* istanbul ignore else */
265
48
  if (resultFieldParts.length > 0) {
266
49
  for (var index = 0; index < resultFieldParts.length; index++) {
267
50
  var part = resultFieldParts[index];
@@ -277,6 +60,7 @@
277
60
  }
278
61
  return result;
279
62
  }
63
+ /** @internal */
280
64
  function compare(value1, value2) {
281
65
  /* tslint:disable:no-null-keyword */
282
66
  if (value1 === null) {
@@ -301,8 +85,12 @@
301
85
  Taken directly from rxjs's internal utility to determine whether an object is an Obserable.
302
86
  See: https://github.com/ReactiveX/rxjs/blob/master/src/internal/util/isObservable.ts
303
87
  */
88
+ /** @internal */
304
89
  function isObservable(obj) {
305
- return !!obj && (obj instanceof rxjs.Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));
90
+ /* istanbul ignore next */
91
+ return (!!obj &&
92
+ (obj instanceof rxjs.Observable ||
93
+ (typeof obj.lift === 'function' && typeof obj.subscribe === 'function')));
306
94
  }
307
95
 
308
96
  /**
@@ -339,6 +127,7 @@
339
127
  return AsyncList;
340
128
  }());
341
129
 
130
+ /** @internal */
342
131
  function getValue(property, callback) {
343
132
  if (property instanceof rxjs.Observable) {
344
133
  property.subscribe(function (value) { return callback(value); });
@@ -349,6 +138,324 @@
349
138
  }
350
139
  }
351
140
 
141
+ /*! *****************************************************************************
142
+ Copyright (c) Microsoft Corporation.
143
+
144
+ Permission to use, copy, modify, and/or distribute this software for any
145
+ purpose with or without fee is hereby granted.
146
+
147
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
148
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
149
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
150
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
151
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
152
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
153
+ PERFORMANCE OF THIS SOFTWARE.
154
+ ***************************************************************************** */
155
+ /* global Reflect, Promise */
156
+ var extendStatics = function (d, b) {
157
+ extendStatics = Object.setPrototypeOf ||
158
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
159
+ function (d, b) { for (var p in b)
160
+ if (Object.prototype.hasOwnProperty.call(b, p))
161
+ d[p] = b[p]; };
162
+ return extendStatics(d, b);
163
+ };
164
+ function __extends(d, b) {
165
+ if (typeof b !== "function" && b !== null)
166
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
167
+ extendStatics(d, b);
168
+ function __() { this.constructor = d; }
169
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
170
+ }
171
+ var __assign = function () {
172
+ __assign = Object.assign || function __assign(t) {
173
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
174
+ s = arguments[i];
175
+ for (var p in s)
176
+ if (Object.prototype.hasOwnProperty.call(s, p))
177
+ t[p] = s[p];
178
+ }
179
+ return t;
180
+ };
181
+ return __assign.apply(this, arguments);
182
+ };
183
+ function __rest(s, e) {
184
+ var t = {};
185
+ for (var p in s)
186
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
187
+ t[p] = s[p];
188
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
189
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
190
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
191
+ t[p[i]] = s[p[i]];
192
+ }
193
+ return t;
194
+ }
195
+ function __decorate(decorators, target, key, desc) {
196
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
197
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
198
+ r = Reflect.decorate(decorators, target, key, desc);
199
+ else
200
+ for (var i = decorators.length - 1; i >= 0; i--)
201
+ if (d = decorators[i])
202
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
203
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
204
+ }
205
+ function __param(paramIndex, decorator) {
206
+ return function (target, key) { decorator(target, key, paramIndex); };
207
+ }
208
+ function __metadata(metadataKey, metadataValue) {
209
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
210
+ return Reflect.metadata(metadataKey, metadataValue);
211
+ }
212
+ function __awaiter(thisArg, _arguments, P, generator) {
213
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
214
+ return new (P || (P = Promise))(function (resolve, reject) {
215
+ function fulfilled(value) { try {
216
+ step(generator.next(value));
217
+ }
218
+ catch (e) {
219
+ reject(e);
220
+ } }
221
+ function rejected(value) { try {
222
+ step(generator["throw"](value));
223
+ }
224
+ catch (e) {
225
+ reject(e);
226
+ } }
227
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
228
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
229
+ });
230
+ }
231
+ function __generator(thisArg, body) {
232
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
233
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
234
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
235
+ function verb(n) { return function (v) { return step([n, v]); }; }
236
+ function step(op) {
237
+ if (f)
238
+ throw new TypeError("Generator is already executing.");
239
+ while (_)
240
+ try {
241
+ 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)
242
+ return t;
243
+ if (y = 0, t)
244
+ op = [op[0] & 2, t.value];
245
+ switch (op[0]) {
246
+ case 0:
247
+ case 1:
248
+ t = op;
249
+ break;
250
+ case 4:
251
+ _.label++;
252
+ return { value: op[1], done: false };
253
+ case 5:
254
+ _.label++;
255
+ y = op[1];
256
+ op = [0];
257
+ continue;
258
+ case 7:
259
+ op = _.ops.pop();
260
+ _.trys.pop();
261
+ continue;
262
+ default:
263
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
264
+ _ = 0;
265
+ continue;
266
+ }
267
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
268
+ _.label = op[1];
269
+ break;
270
+ }
271
+ if (op[0] === 6 && _.label < t[1]) {
272
+ _.label = t[1];
273
+ t = op;
274
+ break;
275
+ }
276
+ if (t && _.label < t[2]) {
277
+ _.label = t[2];
278
+ _.ops.push(op);
279
+ break;
280
+ }
281
+ if (t[2])
282
+ _.ops.pop();
283
+ _.trys.pop();
284
+ continue;
285
+ }
286
+ op = body.call(thisArg, _);
287
+ }
288
+ catch (e) {
289
+ op = [6, e];
290
+ y = 0;
291
+ }
292
+ finally {
293
+ f = t = 0;
294
+ }
295
+ if (op[0] & 5)
296
+ throw op[1];
297
+ return { value: op[0] ? op[1] : void 0, done: true };
298
+ }
299
+ }
300
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
301
+ if (k2 === undefined)
302
+ k2 = k;
303
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
304
+ }) : (function (o, m, k, k2) {
305
+ if (k2 === undefined)
306
+ k2 = k;
307
+ o[k2] = m[k];
308
+ });
309
+ function __exportStar(m, o) {
310
+ for (var p in m)
311
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
312
+ __createBinding(o, m, p);
313
+ }
314
+ function __values(o) {
315
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
316
+ if (m)
317
+ return m.call(o);
318
+ if (o && typeof o.length === "number")
319
+ return {
320
+ next: function () {
321
+ if (o && i >= o.length)
322
+ o = void 0;
323
+ return { value: o && o[i++], done: !o };
324
+ }
325
+ };
326
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
327
+ }
328
+ function __read(o, n) {
329
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
330
+ if (!m)
331
+ return o;
332
+ var i = m.call(o), r, ar = [], e;
333
+ try {
334
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
335
+ ar.push(r.value);
336
+ }
337
+ catch (error) {
338
+ e = { error: error };
339
+ }
340
+ finally {
341
+ try {
342
+ if (r && !r.done && (m = i["return"]))
343
+ m.call(i);
344
+ }
345
+ finally {
346
+ if (e)
347
+ throw e.error;
348
+ }
349
+ }
350
+ return ar;
351
+ }
352
+ /** @deprecated */
353
+ function __spread() {
354
+ for (var ar = [], i = 0; i < arguments.length; i++)
355
+ ar = ar.concat(__read(arguments[i]));
356
+ return ar;
357
+ }
358
+ /** @deprecated */
359
+ function __spreadArrays() {
360
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
361
+ s += arguments[i].length;
362
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
363
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
364
+ r[k] = a[j];
365
+ return r;
366
+ }
367
+ function __spreadArray(to, from, pack) {
368
+ if (pack || arguments.length === 2)
369
+ for (var i = 0, l = from.length, ar; i < l; i++) {
370
+ if (ar || !(i in from)) {
371
+ if (!ar)
372
+ ar = Array.prototype.slice.call(from, 0, i);
373
+ ar[i] = from[i];
374
+ }
375
+ }
376
+ return to.concat(ar || Array.prototype.slice.call(from));
377
+ }
378
+ function __await(v) {
379
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
380
+ }
381
+ function __asyncGenerator(thisArg, _arguments, generator) {
382
+ if (!Symbol.asyncIterator)
383
+ throw new TypeError("Symbol.asyncIterator is not defined.");
384
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
385
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
386
+ function verb(n) { if (g[n])
387
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
388
+ function resume(n, v) { try {
389
+ step(g[n](v));
390
+ }
391
+ catch (e) {
392
+ settle(q[0][3], e);
393
+ } }
394
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
395
+ function fulfill(value) { resume("next", value); }
396
+ function reject(value) { resume("throw", value); }
397
+ function settle(f, v) { if (f(v), q.shift(), q.length)
398
+ resume(q[0][0], q[0][1]); }
399
+ }
400
+ function __asyncDelegator(o) {
401
+ var i, p;
402
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
403
+ 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; }
404
+ }
405
+ function __asyncValues(o) {
406
+ if (!Symbol.asyncIterator)
407
+ throw new TypeError("Symbol.asyncIterator is not defined.");
408
+ var m = o[Symbol.asyncIterator], i;
409
+ 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);
410
+ 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); }); }; }
411
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
412
+ }
413
+ function __makeTemplateObject(cooked, raw) {
414
+ if (Object.defineProperty) {
415
+ Object.defineProperty(cooked, "raw", { value: raw });
416
+ }
417
+ else {
418
+ cooked.raw = raw;
419
+ }
420
+ return cooked;
421
+ }
422
+ ;
423
+ var __setModuleDefault = Object.create ? (function (o, v) {
424
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
425
+ }) : function (o, v) {
426
+ o["default"] = v;
427
+ };
428
+ function __importStar(mod) {
429
+ if (mod && mod.__esModule)
430
+ return mod;
431
+ var result = {};
432
+ if (mod != null)
433
+ for (var k in mod)
434
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
435
+ __createBinding(result, mod, k);
436
+ __setModuleDefault(result, mod);
437
+ return result;
438
+ }
439
+ function __importDefault(mod) {
440
+ return (mod && mod.__esModule) ? mod : { default: mod };
441
+ }
442
+ function __classPrivateFieldGet(receiver, state, kind, f) {
443
+ if (kind === "a" && !f)
444
+ throw new TypeError("Private accessor was defined without a getter");
445
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
446
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
447
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
448
+ }
449
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
450
+ if (kind === "m")
451
+ throw new TypeError("Private method is not writable");
452
+ if (kind === "a" && !f)
453
+ throw new TypeError("Private accessor was defined without a setter");
454
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
455
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
456
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
457
+ }
458
+
352
459
  /**
353
460
  * @internal
354
461
  */
@@ -383,8 +490,9 @@
383
490
  var _this = this;
384
491
  var stateKeys = Object.keys(this.stateMap);
385
492
  var init = this.initialState;
386
- var orchestrators = stateKeys.map(function (key) { return new (_this.stateMap[key])().scan(init[key], _this.dispatcher); });
387
- rxjs.zip.apply(this, orchestrators)
493
+ var orchestrators = stateKeys.map(function (key) { return new _this.stateMap[key]().scan(init[key], _this.dispatcher); });
494
+ rxjs.zip
495
+ .apply(this, orchestrators)
388
496
  .pipe(operators.map(function (s) {
389
497
  var result = {};
390
498
  for (var i = 0; i < stateKeys.length; i++) {
@@ -392,7 +500,8 @@
392
500
  result[key] = s[i];
393
501
  }
394
502
  return result;
395
- })).subscribe(function (s) { return _this.next(s); });
503
+ }))
504
+ .subscribe(function (s) { return _this.next(s); });
396
505
  };
397
506
  return StateNode;
398
507
  }(rxjs.BehaviorSubject));
@@ -422,8 +531,13 @@
422
531
  for (var i = 0; i < _this.registeredActions.length; i++) {
423
532
  var a = _this.registeredActions[i];
424
533
  // length is seemingly arbitrary but it's a stopgap to prevent checking via constructor name when code is minified
425
- if (action instanceof a || (a.name.length > 4 && action.constructor.name === a.name)) {
426
- return _this.registeredCallbacks[i].apply(_this, [state, action, initialState]);
534
+ if (action instanceof a ||
535
+ (a.name.length > 4 && action.constructor.name === a.name)) {
536
+ return _this.registeredCallbacks[i].apply(_this, [
537
+ state,
538
+ action,
539
+ initialState,
540
+ ]);
427
541
  }
428
542
  }
429
543
  return state;
@@ -432,6 +546,10 @@
432
546
  return StateOrchestrator;
433
547
  }());
434
548
 
549
+ /**
550
+ * Generated bundle index. Do not edit.
551
+ */
552
+
435
553
  exports.AsyncItem = AsyncItem;
436
554
  exports.AsyncList = AsyncList;
437
555
  exports.ListItemModel = ListItemModel;
@@ -446,5 +564,5 @@
446
564
 
447
565
  Object.defineProperty(exports, '__esModule', { value: true });
448
566
 
449
- })));
567
+ }));
450
568
  //# sourceMappingURL=skyux-list-builder-common.umd.js.map