@skyux/list-builder-view-checklist 5.7.2 → 6.0.0-beta.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 (61) hide show
  1. package/esm2020/index.mjs +15 -0
  2. package/esm2020/lib/modules/list-view-checklist/list-view-checklist-item.component.mjs +14 -0
  3. package/esm2020/lib/modules/list-view-checklist/list-view-checklist.component.mjs +287 -0
  4. package/esm2020/lib/modules/list-view-checklist/list-view-checklist.module.mjs +25 -0
  5. package/esm2020/lib/modules/list-view-checklist/state/checklist-state-action.type.mjs +2 -0
  6. package/esm2020/lib/modules/list-view-checklist/state/checklist-state.model.mjs +7 -0
  7. package/esm2020/lib/modules/list-view-checklist/state/checklist-state.rxstate.mjs +13 -0
  8. package/esm2020/lib/modules/list-view-checklist/state/checklist-state.state-node.mjs +20 -0
  9. package/esm2020/lib/modules/list-view-checklist/state/items/item.model.mjs +10 -0
  10. package/esm2020/lib/modules/list-view-checklist/state/items/items.orchestrator.mjs +19 -0
  11. package/esm2020/lib/modules/list-view-checklist/state/items/load.action.mjs +9 -0
  12. package/esm2020/skyux-list-builder-view-checklist.mjs +5 -0
  13. package/esm2020/testing/list-view-checklist-fixture.mjs +83 -0
  14. package/esm2020/testing/list-view-checklist-item.mjs +2 -0
  15. package/esm2020/testing/public-api.mjs +3 -0
  16. package/esm2020/testing/skyux-list-builder-view-checklist-testing.mjs +5 -0
  17. package/fesm2015/{skyux-list-builder-view-checklist-testing.js → skyux-list-builder-view-checklist-testing.mjs} +1 -1
  18. package/fesm2015/skyux-list-builder-view-checklist-testing.mjs.map +1 -0
  19. package/fesm2015/{skyux-list-builder-view-checklist.js → skyux-list-builder-view-checklist.mjs} +30 -41
  20. package/fesm2015/skyux-list-builder-view-checklist.mjs.map +1 -0
  21. package/{esm2015/testing/list-view-checklist-fixture.js → fesm2020/skyux-list-builder-view-checklist-testing.mjs} +9 -2
  22. package/fesm2020/skyux-list-builder-view-checklist-testing.mjs.map +1 -0
  23. package/fesm2020/skyux-list-builder-view-checklist.mjs +380 -0
  24. package/fesm2020/skyux-list-builder-view-checklist.mjs.map +1 -0
  25. package/package.json +39 -15
  26. package/testing/package.json +5 -5
  27. package/bundles/skyux-list-builder-view-checklist-testing.umd.js +0 -98
  28. package/bundles/skyux-list-builder-view-checklist.umd.js +0 -792
  29. package/esm2015/index.js +0 -15
  30. package/esm2015/index.js.map +0 -1
  31. package/esm2015/lib/modules/list-view-checklist/list-view-checklist-item.component.js +0 -19
  32. package/esm2015/lib/modules/list-view-checklist/list-view-checklist-item.component.js.map +0 -1
  33. package/esm2015/lib/modules/list-view-checklist/list-view-checklist.component.js +0 -293
  34. package/esm2015/lib/modules/list-view-checklist/list-view-checklist.component.js.map +0 -1
  35. package/esm2015/lib/modules/list-view-checklist/list-view-checklist.module.js +0 -25
  36. package/esm2015/lib/modules/list-view-checklist/list-view-checklist.module.js.map +0 -1
  37. package/esm2015/lib/modules/list-view-checklist/state/checklist-state-action.type.js +0 -2
  38. package/esm2015/lib/modules/list-view-checklist/state/checklist-state-action.type.js.map +0 -1
  39. package/esm2015/lib/modules/list-view-checklist/state/checklist-state.model.js +0 -7
  40. package/esm2015/lib/modules/list-view-checklist/state/checklist-state.model.js.map +0 -1
  41. package/esm2015/lib/modules/list-view-checklist/state/checklist-state.rxstate.js +0 -13
  42. package/esm2015/lib/modules/list-view-checklist/state/checklist-state.rxstate.js.map +0 -1
  43. package/esm2015/lib/modules/list-view-checklist/state/checklist-state.state-node.js +0 -20
  44. package/esm2015/lib/modules/list-view-checklist/state/checklist-state.state-node.js.map +0 -1
  45. package/esm2015/lib/modules/list-view-checklist/state/items/item.model.js +0 -10
  46. package/esm2015/lib/modules/list-view-checklist/state/items/item.model.js.map +0 -1
  47. package/esm2015/lib/modules/list-view-checklist/state/items/items.orchestrator.js +0 -19
  48. package/esm2015/lib/modules/list-view-checklist/state/items/items.orchestrator.js.map +0 -1
  49. package/esm2015/lib/modules/list-view-checklist/state/items/load.action.js +0 -9
  50. package/esm2015/lib/modules/list-view-checklist/state/items/load.action.js.map +0 -1
  51. package/esm2015/skyux-list-builder-view-checklist.js +0 -5
  52. package/esm2015/skyux-list-builder-view-checklist.js.map +0 -1
  53. package/esm2015/testing/list-view-checklist-fixture.js.map +0 -1
  54. package/esm2015/testing/list-view-checklist-item.js +0 -2
  55. package/esm2015/testing/list-view-checklist-item.js.map +0 -1
  56. package/esm2015/testing/public-api.js +0 -3
  57. package/esm2015/testing/public-api.js.map +0 -1
  58. package/esm2015/testing/skyux-list-builder-view-checklist-testing.js +0 -5
  59. package/esm2015/testing/skyux-list-builder-view-checklist-testing.js.map +0 -1
  60. package/fesm2015/skyux-list-builder-view-checklist-testing.js.map +0 -1
  61. package/fesm2015/skyux-list-builder-view-checklist.js.map +0 -1
@@ -1,792 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@skyux/forms'), require('@skyux/list-builder'), require('@skyux/list-builder-common'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@skyux/list-builder-view-checklist', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@skyux/forms', '@skyux/list-builder', '@skyux/list-builder-common', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["list-builder-view-checklist"] = {}), global.ng.common, global.ng.core, global.ng.forms, global.i5, global.i1, global.listBuilderCommon, global.rxjs, global.rxjs.operators));
5
- })(this, (function (exports, i6, i0, forms, i5, i1, listBuilderCommon, rxjs, operators) { 'use strict';
6
-
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);
23
- }
24
-
25
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
26
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
-
30
- var SkyListViewChecklistItemComponent = /** @class */ (function () {
31
- function SkyListViewChecklistItemComponent() {
32
- }
33
- return SkyListViewChecklistItemComponent;
34
- }());
35
- SkyListViewChecklistItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListViewChecklistItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
36
- SkyListViewChecklistItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListViewChecklistItemComponent, selector: "sky-list-view-checklist-item", inputs: { item: "item" }, ngImport: i0__namespace, template: "<div class=\"sky-list-view-checklist-item\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-list-view-checklist-item{display:block;width:100%;cursor:pointer;word-wrap:break-word}.sky-list-view-checklist-item:last-child{border-bottom-width:0}.sky-list-view-checklist-item ::ng-deep sky-checkbox{display:block;position:relative;width:100%;padding:10px;cursor:pointer;border-bottom:1px dotted #cdcfd2}.sky-list-view-checklist-item ::ng-deep sky-checkbox-label div{overflow:hidden;text-overflow:ellipsis}.sky-list-view-checklist-item ::ng-deep .sky-list-view-checklist-single-button{background-color:transparent;border:none;border-bottom:1px dotted #cdcfd2;display:block;text-align:left;margin-bottom:0;padding:10px;width:100%;cursor:pointer}.sky-list-view-checklist-item ::ng-deep .sky-list-view-checklist-single-button.sky-list-view-checklist-row-selected{background-color:#f1eef6}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
37
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListViewChecklistItemComponent, decorators: [{
38
- type: i0.Component,
39
- args: [{
40
- selector: 'sky-list-view-checklist-item',
41
- template: "<div class=\"sky-list-view-checklist-item\">\n <ng-content></ng-content>\n</div>\n",
42
- styles: [".sky-list-view-checklist-item{display:block;width:100%;cursor:pointer;word-wrap:break-word}.sky-list-view-checklist-item:last-child{border-bottom-width:0}.sky-list-view-checklist-item ::ng-deep sky-checkbox{display:block;position:relative;width:100%;padding:10px;cursor:pointer;border-bottom:1px dotted #cdcfd2}.sky-list-view-checklist-item ::ng-deep sky-checkbox-label div{overflow:hidden;text-overflow:ellipsis}.sky-list-view-checklist-item ::ng-deep .sky-list-view-checklist-single-button{background-color:transparent;border:none;border-bottom:1px dotted #cdcfd2;display:block;text-align:left;margin-bottom:0;padding:10px;width:100%;cursor:pointer}.sky-list-view-checklist-item ::ng-deep .sky-list-view-checklist-single-button.sky-list-view-checklist-row-selected{background-color:#f1eef6}\n"],
43
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
44
- }]
45
- }], propDecorators: { item: [{
46
- type: i0.Input
47
- }] } });
48
-
49
- /*! *****************************************************************************
50
- Copyright (c) Microsoft Corporation.
51
-
52
- Permission to use, copy, modify, and/or distribute this software for any
53
- purpose with or without fee is hereby granted.
54
-
55
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
56
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
57
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
58
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
59
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
60
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
61
- PERFORMANCE OF THIS SOFTWARE.
62
- ***************************************************************************** */
63
- /* global Reflect, Promise */
64
- var extendStatics = function (d, b) {
65
- extendStatics = Object.setPrototypeOf ||
66
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
67
- function (d, b) { for (var p in b)
68
- if (Object.prototype.hasOwnProperty.call(b, p))
69
- d[p] = b[p]; };
70
- return extendStatics(d, b);
71
- };
72
- function __extends(d, b) {
73
- if (typeof b !== "function" && b !== null)
74
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
75
- extendStatics(d, b);
76
- function __() { this.constructor = d; }
77
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
78
- }
79
- var __assign = function () {
80
- __assign = Object.assign || function __assign(t) {
81
- for (var s, i = 1, n = arguments.length; i < n; i++) {
82
- s = arguments[i];
83
- for (var p in s)
84
- if (Object.prototype.hasOwnProperty.call(s, p))
85
- t[p] = s[p];
86
- }
87
- return t;
88
- };
89
- return __assign.apply(this, arguments);
90
- };
91
- function __rest(s, e) {
92
- var t = {};
93
- for (var p in s)
94
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
95
- t[p] = s[p];
96
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
97
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
98
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
99
- t[p[i]] = s[p[i]];
100
- }
101
- return t;
102
- }
103
- function __decorate(decorators, target, key, desc) {
104
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
105
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
106
- r = Reflect.decorate(decorators, target, key, desc);
107
- else
108
- for (var i = decorators.length - 1; i >= 0; i--)
109
- if (d = decorators[i])
110
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
111
- return c > 3 && r && Object.defineProperty(target, key, r), r;
112
- }
113
- function __param(paramIndex, decorator) {
114
- return function (target, key) { decorator(target, key, paramIndex); };
115
- }
116
- function __metadata(metadataKey, metadataValue) {
117
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
118
- return Reflect.metadata(metadataKey, metadataValue);
119
- }
120
- function __awaiter(thisArg, _arguments, P, generator) {
121
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
122
- return new (P || (P = Promise))(function (resolve, reject) {
123
- function fulfilled(value) { try {
124
- step(generator.next(value));
125
- }
126
- catch (e) {
127
- reject(e);
128
- } }
129
- function rejected(value) { try {
130
- step(generator["throw"](value));
131
- }
132
- catch (e) {
133
- reject(e);
134
- } }
135
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
136
- step((generator = generator.apply(thisArg, _arguments || [])).next());
137
- });
138
- }
139
- function __generator(thisArg, body) {
140
- var _ = { label: 0, sent: function () { if (t[0] & 1)
141
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
142
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
143
- function verb(n) { return function (v) { return step([n, v]); }; }
144
- function step(op) {
145
- if (f)
146
- throw new TypeError("Generator is already executing.");
147
- while (_)
148
- try {
149
- 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)
150
- return t;
151
- if (y = 0, t)
152
- op = [op[0] & 2, t.value];
153
- switch (op[0]) {
154
- case 0:
155
- case 1:
156
- t = op;
157
- break;
158
- case 4:
159
- _.label++;
160
- return { value: op[1], done: false };
161
- case 5:
162
- _.label++;
163
- y = op[1];
164
- op = [0];
165
- continue;
166
- case 7:
167
- op = _.ops.pop();
168
- _.trys.pop();
169
- continue;
170
- default:
171
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
172
- _ = 0;
173
- continue;
174
- }
175
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
176
- _.label = op[1];
177
- break;
178
- }
179
- if (op[0] === 6 && _.label < t[1]) {
180
- _.label = t[1];
181
- t = op;
182
- break;
183
- }
184
- if (t && _.label < t[2]) {
185
- _.label = t[2];
186
- _.ops.push(op);
187
- break;
188
- }
189
- if (t[2])
190
- _.ops.pop();
191
- _.trys.pop();
192
- continue;
193
- }
194
- op = body.call(thisArg, _);
195
- }
196
- catch (e) {
197
- op = [6, e];
198
- y = 0;
199
- }
200
- finally {
201
- f = t = 0;
202
- }
203
- if (op[0] & 5)
204
- throw op[1];
205
- return { value: op[0] ? op[1] : void 0, done: true };
206
- }
207
- }
208
- var __createBinding = Object.create ? (function (o, m, k, k2) {
209
- if (k2 === undefined)
210
- k2 = k;
211
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
212
- }) : (function (o, m, k, k2) {
213
- if (k2 === undefined)
214
- k2 = k;
215
- o[k2] = m[k];
216
- });
217
- function __exportStar(m, o) {
218
- for (var p in m)
219
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
220
- __createBinding(o, m, p);
221
- }
222
- function __values(o) {
223
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
224
- if (m)
225
- return m.call(o);
226
- if (o && typeof o.length === "number")
227
- return {
228
- next: function () {
229
- if (o && i >= o.length)
230
- o = void 0;
231
- return { value: o && o[i++], done: !o };
232
- }
233
- };
234
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
235
- }
236
- function __read(o, n) {
237
- var m = typeof Symbol === "function" && o[Symbol.iterator];
238
- if (!m)
239
- return o;
240
- var i = m.call(o), r, ar = [], e;
241
- try {
242
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
243
- ar.push(r.value);
244
- }
245
- catch (error) {
246
- e = { error: error };
247
- }
248
- finally {
249
- try {
250
- if (r && !r.done && (m = i["return"]))
251
- m.call(i);
252
- }
253
- finally {
254
- if (e)
255
- throw e.error;
256
- }
257
- }
258
- return ar;
259
- }
260
- /** @deprecated */
261
- function __spread() {
262
- for (var ar = [], i = 0; i < arguments.length; i++)
263
- ar = ar.concat(__read(arguments[i]));
264
- return ar;
265
- }
266
- /** @deprecated */
267
- function __spreadArrays() {
268
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
269
- s += arguments[i].length;
270
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
271
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
272
- r[k] = a[j];
273
- return r;
274
- }
275
- function __spreadArray(to, from, pack) {
276
- if (pack || arguments.length === 2)
277
- for (var i = 0, l = from.length, ar; i < l; i++) {
278
- if (ar || !(i in from)) {
279
- if (!ar)
280
- ar = Array.prototype.slice.call(from, 0, i);
281
- ar[i] = from[i];
282
- }
283
- }
284
- return to.concat(ar || Array.prototype.slice.call(from));
285
- }
286
- function __await(v) {
287
- return this instanceof __await ? (this.v = v, this) : new __await(v);
288
- }
289
- function __asyncGenerator(thisArg, _arguments, generator) {
290
- if (!Symbol.asyncIterator)
291
- throw new TypeError("Symbol.asyncIterator is not defined.");
292
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
293
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
294
- function verb(n) { if (g[n])
295
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
296
- function resume(n, v) { try {
297
- step(g[n](v));
298
- }
299
- catch (e) {
300
- settle(q[0][3], e);
301
- } }
302
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
303
- function fulfill(value) { resume("next", value); }
304
- function reject(value) { resume("throw", value); }
305
- function settle(f, v) { if (f(v), q.shift(), q.length)
306
- resume(q[0][0], q[0][1]); }
307
- }
308
- function __asyncDelegator(o) {
309
- var i, p;
310
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
311
- 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; }
312
- }
313
- function __asyncValues(o) {
314
- if (!Symbol.asyncIterator)
315
- throw new TypeError("Symbol.asyncIterator is not defined.");
316
- var m = o[Symbol.asyncIterator], i;
317
- 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);
318
- 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); }); }; }
319
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
320
- }
321
- function __makeTemplateObject(cooked, raw) {
322
- if (Object.defineProperty) {
323
- Object.defineProperty(cooked, "raw", { value: raw });
324
- }
325
- else {
326
- cooked.raw = raw;
327
- }
328
- return cooked;
329
- }
330
- ;
331
- var __setModuleDefault = Object.create ? (function (o, v) {
332
- Object.defineProperty(o, "default", { enumerable: true, value: v });
333
- }) : function (o, v) {
334
- o["default"] = v;
335
- };
336
- function __importStar(mod) {
337
- if (mod && mod.__esModule)
338
- return mod;
339
- var result = {};
340
- if (mod != null)
341
- for (var k in mod)
342
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
343
- __createBinding(result, mod, k);
344
- __setModuleDefault(result, mod);
345
- return result;
346
- }
347
- function __importDefault(mod) {
348
- return (mod && mod.__esModule) ? mod : { default: mod };
349
- }
350
- function __classPrivateFieldGet(receiver, state, kind, f) {
351
- if (kind === "a" && !f)
352
- throw new TypeError("Private accessor was defined without a getter");
353
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
354
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
355
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
356
- }
357
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
358
- if (kind === "m")
359
- throw new TypeError("Private method is not writable");
360
- if (kind === "a" && !f)
361
- throw new TypeError("Private accessor was defined without a setter");
362
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
363
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
364
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
365
- }
366
-
367
- var ChecklistStateModel = /** @class */ (function () {
368
- function ChecklistStateModel() {
369
- this.items = new listBuilderCommon.AsyncList();
370
- }
371
- return ChecklistStateModel;
372
- }());
373
-
374
- var ChecklistStateDispatcher = /** @class */ (function (_super) {
375
- __extends(ChecklistStateDispatcher, _super);
376
- function ChecklistStateDispatcher() {
377
- return _super !== null && _super.apply(this, arguments) || this;
378
- }
379
- return ChecklistStateDispatcher;
380
- }(listBuilderCommon.StateDispatcher));
381
- ChecklistStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChecklistStateDispatcher, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
382
- ChecklistStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChecklistStateDispatcher });
383
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChecklistStateDispatcher, decorators: [{
384
- type: i0.Injectable
385
- }] });
386
- var ChecklistStateOrchestrator = /** @class */ (function (_super) {
387
- __extends(ChecklistStateOrchestrator, _super);
388
- function ChecklistStateOrchestrator() {
389
- return _super !== null && _super.apply(this, arguments) || this;
390
- }
391
- return ChecklistStateOrchestrator;
392
- }(listBuilderCommon.StateOrchestrator));
393
-
394
- var ListViewChecklistItemModel = /** @class */ (function () {
395
- function ListViewChecklistItemModel(id, data) {
396
- this.id = id;
397
- if (data) {
398
- this.label = data.label;
399
- this.description = data.description;
400
- }
401
- }
402
- return ListViewChecklistItemModel;
403
- }());
404
-
405
- var ListViewChecklistItemsLoadAction = /** @class */ (function () {
406
- function ListViewChecklistItemsLoadAction(items, refresh, dataChanged, itemCount) {
407
- if (items === void 0) { items = []; }
408
- if (refresh === void 0) { refresh = false; }
409
- if (dataChanged === void 0) { dataChanged = true; }
410
- if (itemCount === void 0) { itemCount = items.length; }
411
- this.items = items;
412
- this.refresh = refresh;
413
- this.dataChanged = dataChanged;
414
- this.itemCount = itemCount;
415
- }
416
- return ListViewChecklistItemsLoadAction;
417
- }());
418
-
419
- var ListViewChecklistItemsOrchestrator = /** @class */ (function (_super) {
420
- __extends(ListViewChecklistItemsOrchestrator, _super);
421
- /* istanbul ignore next */
422
- function ListViewChecklistItemsOrchestrator() {
423
- var _this = _super.call(this) || this;
424
- _this.register(ListViewChecklistItemsLoadAction, _this.load);
425
- return _this;
426
- }
427
- ListViewChecklistItemsOrchestrator.prototype.load = function (state, action) {
428
- var newListItems = action.items.map(function (item) { return new ListViewChecklistItemModel(item.id, item); });
429
- if (action.refresh) {
430
- return new listBuilderCommon.AsyncList(__spreadArray([], __read(newListItems)), action.dataChanged ? Date.now() : state.lastUpdate, false, state.count);
431
- }
432
- return new listBuilderCommon.AsyncList(__spreadArray(__spreadArray([], __read(state.items)), __read(newListItems)), action.dataChanged ? Date.now() : state.lastUpdate, false, action.itemCount);
433
- };
434
- return ListViewChecklistItemsOrchestrator;
435
- }(ChecklistStateOrchestrator));
436
-
437
- var ChecklistState = /** @class */ (function (_super) {
438
- __extends(ChecklistState, _super);
439
- function ChecklistState(initialState, dispatcher) {
440
- var _this = _super.call(this, initialState, dispatcher) || this;
441
- _this.register('items', ListViewChecklistItemsOrchestrator).begin();
442
- return _this;
443
- }
444
- return ChecklistState;
445
- }(listBuilderCommon.StateNode));
446
- ChecklistState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChecklistState, deps: [{ token: ChecklistStateModel }, { token: ChecklistStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
447
- ChecklistState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChecklistState });
448
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ChecklistState, decorators: [{
449
- type: i0.Injectable
450
- }], ctorParameters: function () { return [{ type: ChecklistStateModel }, { type: ChecklistStateDispatcher }]; } });
451
-
452
- var SkyListViewChecklistComponent = /** @class */ (function (_super) {
453
- __extends(SkyListViewChecklistComponent, _super);
454
- function SkyListViewChecklistComponent(state, dispatcher, checklistState, checklistDispatcher) {
455
- var _this = _super.call(this, state, 'Checklist View') || this;
456
- _this.dispatcher = dispatcher;
457
- _this.checklistState = checklistState;
458
- _this.checklistDispatcher = checklistDispatcher;
459
- /**
460
- * Specifies a search function to apply on the view data.
461
- * The default function searches view data on label, description,
462
- * and category if field selectors are defined for the given field.
463
- * @default default search function
464
- */
465
- _this.search = _this.searchFunction();
466
- /**
467
- * Specifies the name of the label field selector.
468
- * @default "label"
469
- */
470
- // eslint-disable-next-line @angular-eslint/no-input-rename
471
- _this.labelFieldSelector = 'label';
472
- /**
473
- * Specifies the name of the description field selector.
474
- * @default "description"
475
- */
476
- _this.description = 'description';
477
- _this.ngUnsubscribe = new rxjs.Subject();
478
- _this._selectMode = 'multiple';
479
- _this._selectedIdMap = new Map();
480
- _this._showOnlySelected = false;
481
- var lastUpdate;
482
- _this.state
483
- .pipe(operators.map(function (s) { return s.items; }), operators.distinctUntilChanged(), operators.map(function (items) {
484
- var dataChanged = lastUpdate === undefined || items.lastUpdate !== lastUpdate;
485
- lastUpdate = items.lastUpdate;
486
- var newItems = items.items.map(function (item) {
487
- return new ListViewChecklistItemModel(item.id, {
488
- label: _this.labelFieldSelector
489
- ? listBuilderCommon.getData(item.data, _this.labelFieldSelector)
490
- : undefined,
491
- description: _this.description
492
- ? listBuilderCommon.getData(item.data, _this.description)
493
- : undefined,
494
- });
495
- });
496
- _this.checklistDispatcher.next(new ListViewChecklistItemsLoadAction(newItems, true, dataChanged, items.count));
497
- }))
498
- .pipe(operators.takeUntil(_this.ngUnsubscribe))
499
- .subscribe();
500
- _this.state
501
- .pipe(operators.map(function (t) { return t.selected; }), operators.takeUntil(_this.ngUnsubscribe))
502
- .subscribe(function (selectedItems) {
503
- _this._selectedIdMap = selectedItems.item.selectedIdMap;
504
- });
505
- return _this;
506
- }
507
- Object.defineProperty(SkyListViewChecklistComponent.prototype, "name", {
508
- /**
509
- * Specifies the name of the view.
510
- * @required
511
- */
512
- set: function (value) {
513
- this.viewName = value;
514
- },
515
- enumerable: false,
516
- configurable: true
517
- });
518
- Object.defineProperty(SkyListViewChecklistComponent.prototype, "selectMode", {
519
- get: function () {
520
- return this._selectMode || 'multiple';
521
- },
522
- /**
523
- * Specifies how many items users can select.
524
- * `"single"` allows users to select one item in the checklist, while `"multiple"`
525
- * allows users to select multiple items in the checklist.
526
- * @default "multiple"
527
- */
528
- set: function (value) {
529
- this._selectMode = value;
530
- if (this.selectMode === 'multiple') {
531
- this.dispatcher.toolbarShowMultiselectToolbar(true);
532
- }
533
- else {
534
- this.showOnlySelected = false;
535
- this.dispatcher.toolbarShowMultiselectToolbar(false);
536
- }
537
- this.reapplyFilter(this.showOnlySelected);
538
- },
539
- enumerable: false,
540
- configurable: true
541
- });
542
- Object.defineProperty(SkyListViewChecklistComponent.prototype, "showOnlySelected", {
543
- get: function () {
544
- return this._showOnlySelected;
545
- },
546
- /**
547
- * Indicates whether to display selected items only.
548
- * @default false
549
- */
550
- set: function (value) {
551
- this._showOnlySelected = value;
552
- },
553
- enumerable: false,
554
- configurable: true
555
- });
556
- SkyListViewChecklistComponent.prototype.ngOnInit = function () {
557
- var _this = this;
558
- if (this.selectMode === 'multiple') {
559
- this.dispatcher.toolbarShowMultiselectToolbar(true);
560
- }
561
- // If 'show-selected' filter is changed from multiselect toolbar (list-builder)
562
- // make sure the private variable _showOnlySelected stays in sync.
563
- this.state
564
- .pipe(operators.map(function (t) { return t.filters; }), operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged(this.showSelectedValuesEqual))
565
- .subscribe(function (filters) {
566
- var showSelectedFilter = filters.find(function (filter) { return filter.name === 'show-selected'; });
567
- if (showSelectedFilter) {
568
- _this._showOnlySelected = showSelectedFilter.value === 'true';
569
- }
570
- });
571
- };
572
- SkyListViewChecklistComponent.prototype.ngOnChanges = function (changes) {
573
- if (changes['showOnlySelected'] &&
574
- changes['showOnlySelected'].currentValue !==
575
- changes['showOnlySelected'].previousValue) {
576
- this.reapplyFilter(changes['showOnlySelected'].currentValue);
577
- }
578
- };
579
- /**
580
- * @deprecated since version 3.2.0
581
- * Multiselect toolbar will automatically show if select mode is set to 'multiple'.
582
- * These methods are no longer needed, as that functionality is part of list-builder.
583
- */
584
- SkyListViewChecklistComponent.prototype.changeVisibleItems = function (change) {
585
- this.showOnlySelected = change.checked;
586
- };
587
- /**
588
- * @deprecated since version 3.2.0
589
- * Multiselect toolbar will automatically show if select mode is set to 'multiple'.
590
- * These methods are no longer needed, as that functionality is part of list-builder.
591
- */
592
- SkyListViewChecklistComponent.prototype.clearSelections = function () {
593
- var _this = this;
594
- this.state
595
- .pipe(operators.map(function (state) { return state.items.items; }), operators.take(1))
596
- .subscribe(function (items) {
597
- _this.dispatcher.next(new i1.ListSelectedSetItemsSelectedAction(items.map(function (item) { return item.id; }), false, false));
598
- /* istanbul ignore else */
599
- if (_this.showOnlySelected) {
600
- _this.reapplyFilter(_this.showOnlySelected);
601
- }
602
- });
603
- };
604
- /**
605
- * @deprecated since version 3.2.0
606
- * Multiselect toolbar will automatically show if select mode is set to 'multiple'.
607
- * These methods are no longer needed, as that functionality is part of list-builder.
608
- */
609
- SkyListViewChecklistComponent.prototype.selectAll = function () {
610
- var _this = this;
611
- this.state
612
- .pipe(operators.map(function (state) { return state.items.items; }), operators.take(1))
613
- .subscribe(function (items) {
614
- _this.dispatcher.next(new i1.ListSelectedSetItemsSelectedAction(items.map(function (item) { return item.id; }), true, false));
615
- /* istanbul ignore else */
616
- if (_this.showOnlySelected) {
617
- _this.reapplyFilter(_this.showOnlySelected);
618
- }
619
- });
620
- };
621
- SkyListViewChecklistComponent.prototype.onViewActive = function () {
622
- if (this.search !== undefined) {
623
- this.dispatcher.searchSetFunctions([this.search]);
624
- }
625
- var fieldSelectors = [];
626
- if (this.labelFieldSelector) {
627
- fieldSelectors.push(this.labelFieldSelector);
628
- }
629
- if (this.description) {
630
- fieldSelectors.push(this.description);
631
- }
632
- this.dispatcher.searchSetFieldSelectors(fieldSelectors);
633
- this.dispatcher.next(new i1.ListToolbarSetTypeAction('search'));
634
- };
635
- SkyListViewChecklistComponent.prototype.ngOnDestroy = function () {
636
- this.ngUnsubscribe.next();
637
- this.ngUnsubscribe.complete();
638
- };
639
- Object.defineProperty(SkyListViewChecklistComponent.prototype, "items", {
640
- get: function () {
641
- return this.checklistState.pipe(operators.map(function (state) { return state.items.items; }));
642
- },
643
- enumerable: false,
644
- configurable: true
645
- });
646
- SkyListViewChecklistComponent.prototype.searchFunction = function () {
647
- var _this = this;
648
- return function (data, searchText) {
649
- if (_this.labelFieldSelector !== undefined) {
650
- var label = listBuilderCommon.getData(data, _this.labelFieldSelector);
651
- if (label !== undefined &&
652
- label !== null &&
653
- label.toString().toLowerCase().indexOf(searchText) !== -1) {
654
- return true;
655
- }
656
- }
657
- if (_this.description !== undefined) {
658
- var description = listBuilderCommon.getData(data, _this.description);
659
- if (description !== undefined &&
660
- description !== null &&
661
- description.toString().toLowerCase().indexOf(searchText) !== -1) {
662
- return true;
663
- }
664
- }
665
- return false;
666
- };
667
- };
668
- SkyListViewChecklistComponent.prototype.itemSelected = function (id) {
669
- return this.state.pipe(operators.map(function (state) { return state.selected.item.selectedIdMap.get(id); }));
670
- };
671
- SkyListViewChecklistComponent.prototype.setItemSelection = function (item, event) {
672
- this.dispatcher.next(new i1.ListSelectedSetItemSelectedAction(item.id, event.checked));
673
- };
674
- SkyListViewChecklistComponent.prototype.singleSelectRowClick = function (item) {
675
- this.dispatcher.next(new i1.ListSelectedSetItemsSelectedAction([item.id], true, true));
676
- };
677
- SkyListViewChecklistComponent.prototype.getShowSelectedFilter = function (isSelected) {
678
- var _this = this;
679
- return new i1.ListFilterModel({
680
- name: 'show-selected',
681
- value: isSelected.toString(),
682
- filterFunction: function (model, showOnlySelected) {
683
- /* istanbul ignore else */
684
- if (showOnlySelected.toString() !== false.toString()) {
685
- return _this._selectedIdMap.get(model.id);
686
- }
687
- },
688
- defaultValue: false.toString(),
689
- });
690
- };
691
- SkyListViewChecklistComponent.prototype.reapplyFilter = function (isSelected) {
692
- var _this = this;
693
- this.state
694
- .pipe(operators.map(function (state) { return state.filters; }), operators.take(1))
695
- .subscribe(function (filters) {
696
- filters = filters.filter(function (filter) { return filter.name !== 'show-selected'; });
697
- filters.push(_this.getShowSelectedFilter(isSelected));
698
- _this.dispatcher.filtersUpdate(filters);
699
- });
700
- };
701
- SkyListViewChecklistComponent.prototype.showSelectedValuesEqual = function (prev, next) {
702
- var prevShowSelectedFilter = prev.find(function (filter) { return filter.name === 'show-selected'; });
703
- var nextShowSelectedFilter = next.find(function (filter) { return filter.name === 'show-selected'; });
704
- if (prevShowSelectedFilter && nextShowSelectedFilter) {
705
- return prevShowSelectedFilter.value === nextShowSelectedFilter.value;
706
- }
707
- return true;
708
- };
709
- return SkyListViewChecklistComponent;
710
- }(i1.ListViewComponent));
711
- SkyListViewChecklistComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListViewChecklistComponent, deps: [{ token: i1__namespace.ListState }, { token: i1__namespace.ListStateDispatcher }, { token: ChecklistState }, { token: ChecklistStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
712
- SkyListViewChecklistComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListViewChecklistComponent, selector: "sky-list-view-checklist", inputs: { name: "name", search: "search", labelFieldSelector: ["label", "labelFieldSelector"], description: "description", selectMode: "selectMode", showOnlySelected: "showOnlySelected" }, providers: [
713
- {
714
- provide: i1.ListViewComponent,
715
- useExisting: i0.forwardRef(function () { return SkyListViewChecklistComponent; }),
716
- },
717
- ChecklistState,
718
- ChecklistStateDispatcher,
719
- ChecklistStateModel,
720
- ], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"sky-list-view-checklist\" *ngIf=\"active | async\">\n <div [ngSwitch]=\"selectMode\">\n <ng-template ngSwitchCase=\"single\">\n <div role=\"radiogroup\">\n <sky-list-view-checklist-item\n *ngFor=\"let item of items | async\"\n [attr.sky-cmp-id]=\"item.id\"\n [item]=\"item\"\n >\n <button\n role=\"radio\"\n type=\"button\"\n class=\"sky-list-view-checklist-single-button\"\n [attr.aria-checked]=\"(itemSelected(item.id) | async) || false\"\n [ngClass]=\"{\n 'sky-list-view-checklist-row-selected':\n (itemSelected(item.id) | async)\n }\"\n (click)=\"singleSelectRowClick(item)\"\n >\n <div *ngIf=\"item.label\" class=\"sky-emphasized\">\n {{ item.label }}\n </div>\n <div *ngIf=\"item.description\">{{ item.description }}</div>\n </button>\n </sky-list-view-checklist-item>\n </div>\n </ng-template>\n\n <ng-template ngSwitchDefault>\n <sky-list-view-checklist-item\n *ngFor=\"let item of items | async\"\n [attr.sky-cmp-id]=\"item.id\"\n [item]=\"item\"\n >\n <sky-checkbox\n [checked]=\"itemSelected(item.id) | async\"\n (change)=\"setItemSelection(item, $event)\"\n >\n <sky-checkbox-label>\n <div\n *ngIf=\"item.label\"\n class=\"sky-emphasized\"\n [attr.title]=\"item.label\"\n >\n {{ item.label }}\n </div>\n <div *ngIf=\"item.description\" [attr.title]=\"item.description\">\n {{ item.description }}\n </div>\n </sky-checkbox-label>\n </sky-checkbox>\n </sky-list-view-checklist-item>\n </ng-template>\n </div>\n</div>\n", styles: [".sky-list-view-checklist ::ng-deep .sky-checkbox-wrapper{display:flex;align-items:flex-start}.sky-list-view-checklist ::ng-deep .sky-checkbox-wrapper>.sky-checkbox,.sky-list-view-checklist ::ng-deep .sky-checkbox-wrapper>input{flex:1;max-width:22px}.sky-list-view-checklist ::ng-deep .sky-switch{white-space:nowrap}.sky-list-view-checklist ::ng-deep .sky-switch-label{margin:0}.sky-list-view-checklist ::ng-deep sky-checkbox-label{min-width:0}.sky-list-view-checklist ::ng-deep .sky-switch-control{margin:0 5px 0 0}\n"], components: [{ type: SkyListViewChecklistItemComponent, selector: "sky-list-view-checklist-item", inputs: ["item"] }, { type: i5__namespace.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: i5__namespace.λ4, selector: "sky-checkbox-label" }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i6__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "async": i6__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
721
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListViewChecklistComponent, decorators: [{
722
- type: i0.Component,
723
- args: [{
724
- selector: 'sky-list-view-checklist',
725
- template: "<div class=\"sky-list-view-checklist\" *ngIf=\"active | async\">\n <div [ngSwitch]=\"selectMode\">\n <ng-template ngSwitchCase=\"single\">\n <div role=\"radiogroup\">\n <sky-list-view-checklist-item\n *ngFor=\"let item of items | async\"\n [attr.sky-cmp-id]=\"item.id\"\n [item]=\"item\"\n >\n <button\n role=\"radio\"\n type=\"button\"\n class=\"sky-list-view-checklist-single-button\"\n [attr.aria-checked]=\"(itemSelected(item.id) | async) || false\"\n [ngClass]=\"{\n 'sky-list-view-checklist-row-selected':\n (itemSelected(item.id) | async)\n }\"\n (click)=\"singleSelectRowClick(item)\"\n >\n <div *ngIf=\"item.label\" class=\"sky-emphasized\">\n {{ item.label }}\n </div>\n <div *ngIf=\"item.description\">{{ item.description }}</div>\n </button>\n </sky-list-view-checklist-item>\n </div>\n </ng-template>\n\n <ng-template ngSwitchDefault>\n <sky-list-view-checklist-item\n *ngFor=\"let item of items | async\"\n [attr.sky-cmp-id]=\"item.id\"\n [item]=\"item\"\n >\n <sky-checkbox\n [checked]=\"itemSelected(item.id) | async\"\n (change)=\"setItemSelection(item, $event)\"\n >\n <sky-checkbox-label>\n <div\n *ngIf=\"item.label\"\n class=\"sky-emphasized\"\n [attr.title]=\"item.label\"\n >\n {{ item.label }}\n </div>\n <div *ngIf=\"item.description\" [attr.title]=\"item.description\">\n {{ item.description }}\n </div>\n </sky-checkbox-label>\n </sky-checkbox>\n </sky-list-view-checklist-item>\n </ng-template>\n </div>\n</div>\n",
726
- styles: [".sky-list-view-checklist ::ng-deep .sky-checkbox-wrapper{display:flex;align-items:flex-start}.sky-list-view-checklist ::ng-deep .sky-checkbox-wrapper>.sky-checkbox,.sky-list-view-checklist ::ng-deep .sky-checkbox-wrapper>input{flex:1;max-width:22px}.sky-list-view-checklist ::ng-deep .sky-switch{white-space:nowrap}.sky-list-view-checklist ::ng-deep .sky-switch-label{margin:0}.sky-list-view-checklist ::ng-deep sky-checkbox-label{min-width:0}.sky-list-view-checklist ::ng-deep .sky-switch-control{margin:0 5px 0 0}\n"],
727
- providers: [
728
- {
729
- provide: i1.ListViewComponent,
730
- useExisting: i0.forwardRef(function () { return SkyListViewChecklistComponent; }),
731
- },
732
- ChecklistState,
733
- ChecklistStateDispatcher,
734
- ChecklistStateModel,
735
- ],
736
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
737
- }]
738
- }], ctorParameters: function () { return [{ type: i1__namespace.ListState }, { type: i1__namespace.ListStateDispatcher }, { type: ChecklistState }, { type: ChecklistStateDispatcher }]; }, propDecorators: { name: [{
739
- type: i0.Input
740
- }], search: [{
741
- type: i0.Input
742
- }], labelFieldSelector: [{
743
- type: i0.Input,
744
- args: ['label']
745
- }], description: [{
746
- type: i0.Input
747
- }], selectMode: [{
748
- type: i0.Input
749
- }], showOnlySelected: [{
750
- type: i0.Input
751
- }] } });
752
-
753
- var SkyListViewChecklistModule = /** @class */ (function () {
754
- function SkyListViewChecklistModule() {
755
- }
756
- return SkyListViewChecklistModule;
757
- }());
758
- SkyListViewChecklistModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListViewChecklistModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
759
- SkyListViewChecklistModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListViewChecklistModule, declarations: [SkyListViewChecklistComponent,
760
- SkyListViewChecklistItemComponent], imports: [i6.CommonModule, forms.FormsModule, i5.SkyCheckboxModule], exports: [SkyListViewChecklistComponent, SkyListViewChecklistItemComponent] });
761
- SkyListViewChecklistModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListViewChecklistModule, imports: [[i6.CommonModule, forms.FormsModule, i5.SkyCheckboxModule]] });
762
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListViewChecklistModule, decorators: [{
763
- type: i0.NgModule,
764
- args: [{
765
- declarations: [
766
- SkyListViewChecklistComponent,
767
- SkyListViewChecklistItemComponent,
768
- ],
769
- imports: [i6.CommonModule, forms.FormsModule, i5.SkyCheckboxModule],
770
- exports: [SkyListViewChecklistComponent, SkyListViewChecklistItemComponent],
771
- }]
772
- }] });
773
-
774
- /**
775
- * Generated bundle index. Do not edit.
776
- */
777
-
778
- exports.ChecklistState = ChecklistState;
779
- exports.ChecklistStateDispatcher = ChecklistStateDispatcher;
780
- exports.ChecklistStateModel = ChecklistStateModel;
781
- exports.ChecklistStateOrchestrator = ChecklistStateOrchestrator;
782
- exports.ListViewChecklistItemModel = ListViewChecklistItemModel;
783
- exports.ListViewChecklistItemsLoadAction = ListViewChecklistItemsLoadAction;
784
- exports.ListViewChecklistItemsOrchestrator = ListViewChecklistItemsOrchestrator;
785
- exports.SkyListViewChecklistComponent = SkyListViewChecklistComponent;
786
- exports.SkyListViewChecklistModule = SkyListViewChecklistModule;
787
- exports["λ1"] = SkyListViewChecklistItemComponent;
788
-
789
- Object.defineProperty(exports, '__esModule', { value: true });
790
-
791
- }));
792
- //# sourceMappingURL=skyux-list-builder-view-checklist.umd.js.map