@skyux/list-builder-view-checklist 5.5.0 → 5.6.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.
- package/bundles/skyux-list-builder-view-checklist.umd.js +730 -731
- package/documentation.json +266 -9424
- package/esm2015/lib/modules/list-view-checklist/list-view-checklist-item.component.js +1 -1
- package/esm2015/lib/modules/list-view-checklist/list-view-checklist-item.component.js.map +1 -1
- package/esm2015/lib/modules/list-view-checklist/list-view-checklist.component.js +11 -12
- package/esm2015/lib/modules/list-view-checklist/list-view-checklist.component.js.map +1 -1
- package/esm2015/lib/modules/list-view-checklist/list-view-checklist.module.js +2 -2
- package/esm2015/lib/modules/list-view-checklist/list-view-checklist.module.js.map +1 -1
- package/esm2015/lib/modules/list-view-checklist/state/checklist-state.rxstate.js.map +1 -1
- package/esm2015/lib/modules/list-view-checklist/state/checklist-state.state-node.js.map +1 -1
- package/esm2015/lib/modules/list-view-checklist/state/items/items.orchestrator.js +1 -1
- package/esm2015/lib/modules/list-view-checklist/state/items/items.orchestrator.js.map +1 -1
- package/esm2015/testing/list-view-checklist-fixture.js.map +1 -1
- package/fesm2015/skyux-list-builder-view-checklist-testing.js.map +1 -1
- package/fesm2015/skyux-list-builder-view-checklist.js +34 -35
- package/fesm2015/skyux-list-builder-view-checklist.js.map +1 -1
- package/lib/modules/list-view-checklist/list-view-checklist.component.d.ts +2 -2
- package/lib/modules/list-view-checklist/state/items/items.orchestrator.d.ts +1 -1
- package/package.json +14 -13
|
@@ -1,793 +1,792 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(this, (function (exports,
|
|
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
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
});
|
|
18
20
|
}
|
|
19
|
-
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
20
23
|
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
}] } });
|
|
29
48
|
|
|
30
|
-
|
|
31
|
-
|
|
49
|
+
/*! *****************************************************************************
|
|
50
|
+
Copyright (c) Microsoft Corporation.
|
|
32
51
|
|
|
33
|
-
|
|
34
|
-
|
|
52
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
53
|
+
purpose with or without fee is hereby granted.
|
|
35
54
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
function __extends(d, b) {
|
|
54
|
-
if (typeof b !== "function" && b !== null)
|
|
55
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56
|
-
extendStatics(d, b);
|
|
57
|
-
function __() { this.constructor = d; }
|
|
58
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59
|
-
}
|
|
60
|
-
var __assign = function () {
|
|
61
|
-
__assign = Object.assign || function __assign(t) {
|
|
62
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
63
|
-
s = arguments[i];
|
|
64
|
-
for (var p in s)
|
|
65
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
66
|
-
t[p] = s[p];
|
|
67
|
-
}
|
|
68
|
-
return t;
|
|
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);
|
|
69
71
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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 };
|
|
81
206
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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);
|
|
106
244
|
}
|
|
107
|
-
catch (
|
|
108
|
-
|
|
109
|
-
} }
|
|
110
|
-
function rejected(value) { try {
|
|
111
|
-
step(generator["throw"](value));
|
|
245
|
+
catch (error) {
|
|
246
|
+
e = { error: error };
|
|
112
247
|
}
|
|
113
|
-
|
|
114
|
-
reject(e);
|
|
115
|
-
} }
|
|
116
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
117
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function __generator(thisArg, body) {
|
|
121
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
122
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
123
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
124
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
125
|
-
function step(op) {
|
|
126
|
-
if (f)
|
|
127
|
-
throw new TypeError("Generator is already executing.");
|
|
128
|
-
while (_)
|
|
248
|
+
finally {
|
|
129
249
|
try {
|
|
130
|
-
if (
|
|
131
|
-
|
|
132
|
-
if (y = 0, t)
|
|
133
|
-
op = [op[0] & 2, t.value];
|
|
134
|
-
switch (op[0]) {
|
|
135
|
-
case 0:
|
|
136
|
-
case 1:
|
|
137
|
-
t = op;
|
|
138
|
-
break;
|
|
139
|
-
case 4:
|
|
140
|
-
_.label++;
|
|
141
|
-
return { value: op[1], done: false };
|
|
142
|
-
case 5:
|
|
143
|
-
_.label++;
|
|
144
|
-
y = op[1];
|
|
145
|
-
op = [0];
|
|
146
|
-
continue;
|
|
147
|
-
case 7:
|
|
148
|
-
op = _.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
default:
|
|
152
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
153
|
-
_ = 0;
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
157
|
-
_.label = op[1];
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
161
|
-
_.label = t[1];
|
|
162
|
-
t = op;
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
if (t && _.label < t[2]) {
|
|
166
|
-
_.label = t[2];
|
|
167
|
-
_.ops.push(op);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
if (t[2])
|
|
171
|
-
_.ops.pop();
|
|
172
|
-
_.trys.pop();
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
|
-
op = body.call(thisArg, _);
|
|
176
|
-
}
|
|
177
|
-
catch (e) {
|
|
178
|
-
op = [6, e];
|
|
179
|
-
y = 0;
|
|
250
|
+
if (r && !r.done && (m = i["return"]))
|
|
251
|
+
m.call(i);
|
|
180
252
|
}
|
|
181
253
|
finally {
|
|
182
|
-
|
|
254
|
+
if (e)
|
|
255
|
+
throw e.error;
|
|
183
256
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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;
|
|
187
265
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
if (m)
|
|
206
|
-
return m.call(o);
|
|
207
|
-
if (o && typeof o.length === "number")
|
|
208
|
-
return {
|
|
209
|
-
next: function () {
|
|
210
|
-
if (o && i >= o.length)
|
|
211
|
-
o = void 0;
|
|
212
|
-
return { value: o && o[i++], done: !o };
|
|
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
|
+
}
|
|
213
283
|
}
|
|
214
|
-
|
|
215
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
216
|
-
}
|
|
217
|
-
function __read(o, n) {
|
|
218
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
219
|
-
if (!m)
|
|
220
|
-
return o;
|
|
221
|
-
var i = m.call(o), r, ar = [], e;
|
|
222
|
-
try {
|
|
223
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
224
|
-
ar.push(r.value);
|
|
284
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
225
285
|
}
|
|
226
|
-
|
|
227
|
-
|
|
286
|
+
function __await(v) {
|
|
287
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
228
288
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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));
|
|
237
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]); }
|
|
238
307
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
function __spreadArray(to, from, pack) {
|
|
257
|
-
if (pack || arguments.length === 2)
|
|
258
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
259
|
-
if (ar || !(i in from)) {
|
|
260
|
-
if (!ar)
|
|
261
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
262
|
-
ar[i] = from[i];
|
|
263
|
-
}
|
|
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 });
|
|
264
324
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
271
|
-
if (!Symbol.asyncIterator)
|
|
272
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
273
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
274
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
275
|
-
function verb(n) { if (g[n])
|
|
276
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
277
|
-
function resume(n, v) { try {
|
|
278
|
-
step(g[n](v));
|
|
325
|
+
else {
|
|
326
|
+
cooked.raw = raw;
|
|
327
|
+
}
|
|
328
|
+
return cooked;
|
|
279
329
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
function
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
297
|
-
var m = o[Symbol.asyncIterator], i;
|
|
298
|
-
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);
|
|
299
|
-
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); }); }; }
|
|
300
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
301
|
-
}
|
|
302
|
-
function __makeTemplateObject(cooked, raw) {
|
|
303
|
-
if (Object.defineProperty) {
|
|
304
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
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;
|
|
305
346
|
}
|
|
306
|
-
|
|
307
|
-
|
|
347
|
+
function __importDefault(mod) {
|
|
348
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
308
349
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
o["default"] = v;
|
|
316
|
-
};
|
|
317
|
-
function __importStar(mod) {
|
|
318
|
-
if (mod && mod.__esModule)
|
|
319
|
-
return mod;
|
|
320
|
-
var result = {};
|
|
321
|
-
if (mod != null)
|
|
322
|
-
for (var k in mod)
|
|
323
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
324
|
-
__createBinding(result, mod, k);
|
|
325
|
-
__setModuleDefault(result, mod);
|
|
326
|
-
return result;
|
|
327
|
-
}
|
|
328
|
-
function __importDefault(mod) {
|
|
329
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
330
|
-
}
|
|
331
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
332
|
-
if (kind === "a" && !f)
|
|
333
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
334
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
335
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
336
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
337
|
-
}
|
|
338
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
339
|
-
if (kind === "m")
|
|
340
|
-
throw new TypeError("Private method is not writable");
|
|
341
|
-
if (kind === "a" && !f)
|
|
342
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
343
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
344
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
345
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
var ChecklistStateDispatcher = /** @class */ (function (_super) {
|
|
349
|
-
__extends(ChecklistStateDispatcher, _super);
|
|
350
|
-
function ChecklistStateDispatcher() {
|
|
351
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
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);
|
|
352
356
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
__extends(ChecklistStateOrchestrator, _super);
|
|
362
|
-
function ChecklistStateOrchestrator() {
|
|
363
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
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;
|
|
364
365
|
}
|
|
365
|
-
return ChecklistStateOrchestrator;
|
|
366
|
-
}(listBuilderCommon.StateOrchestrator));
|
|
367
366
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
if (data) {
|
|
372
|
-
this.label = data.label;
|
|
373
|
-
this.description = data.description;
|
|
367
|
+
var ChecklistStateModel = /** @class */ (function () {
|
|
368
|
+
function ChecklistStateModel() {
|
|
369
|
+
this.items = new listBuilderCommon.AsyncList();
|
|
374
370
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}());
|
|
371
|
+
return ChecklistStateModel;
|
|
372
|
+
}());
|
|
378
373
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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));
|
|
392
393
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
ListViewChecklistItemsOrchestrator.prototype.load = function (state, action) {
|
|
402
|
-
var newListItems = action.items.map(function (item) { return new ListViewChecklistItemModel(item.id, item); });
|
|
403
|
-
if (action.refresh) {
|
|
404
|
-
return new listBuilderCommon.AsyncList(__spreadArray([], __read(newListItems)), action.dataChanged ? Date.now() : state.lastUpdate, false, state.count);
|
|
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
|
+
}
|
|
405
401
|
}
|
|
406
|
-
return
|
|
407
|
-
};
|
|
408
|
-
return ListViewChecklistItemsOrchestrator;
|
|
409
|
-
}(ChecklistStateOrchestrator));
|
|
402
|
+
return ListViewChecklistItemModel;
|
|
403
|
+
}());
|
|
410
404
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
+
}());
|
|
417
418
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
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));
|
|
432
436
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}]
|
|
448
|
-
}], propDecorators: { item: [{
|
|
449
|
-
type: i0.Input
|
|
450
|
-
}] } });
|
|
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
451
|
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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
|
+
});
|
|
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;
|
|
495
504
|
});
|
|
496
|
-
_this
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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
|
|
504
517
|
});
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
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;
|
|
530
558
|
if (this.selectMode === 'multiple') {
|
|
531
559
|
this.dispatcher.toolbarShowMultiselectToolbar(true);
|
|
532
560
|
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
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);
|
|
536
577
|
}
|
|
537
|
-
|
|
538
|
-
},
|
|
539
|
-
enumerable: false,
|
|
540
|
-
configurable: true
|
|
541
|
-
});
|
|
542
|
-
Object.defineProperty(SkyListViewChecklistComponent.prototype, "showOnlySelected", {
|
|
543
|
-
get: function () {
|
|
544
|
-
return this._showOnlySelected;
|
|
545
|
-
},
|
|
578
|
+
};
|
|
546
579
|
/**
|
|
547
|
-
*
|
|
548
|
-
*
|
|
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.
|
|
549
583
|
*/
|
|
550
|
-
|
|
551
|
-
this.
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
this
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
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]);
|
|
569
624
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
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);
|
|
625
|
+
var fieldSelectors = [];
|
|
626
|
+
if (this.labelFieldSelector) {
|
|
627
|
+
fieldSelectors.push(this.labelFieldSelector);
|
|
601
628
|
}
|
|
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);
|
|
629
|
+
if (this.description) {
|
|
630
|
+
fieldSelectors.push(this.description);
|
|
618
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
|
|
619
645
|
});
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
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;
|
|
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
|
+
}
|
|
655
656
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
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
|
+
}
|
|
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;
|
|
664
706
|
}
|
|
665
|
-
return
|
|
707
|
+
return true;
|
|
666
708
|
};
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
|
|
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
|
-
}
|
|
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; }),
|
|
687
716
|
},
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
.
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
type: i0.Component,
|
|
724
|
-
args: [{
|
|
725
|
-
selector: 'sky-list-view-checklist',
|
|
726
|
-
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",
|
|
727
|
-
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"],
|
|
728
|
-
providers: [
|
|
729
|
-
{
|
|
730
|
-
provide: i1.ListViewComponent,
|
|
731
|
-
useExisting: i0.forwardRef(function () { return SkyListViewChecklistComponent; }),
|
|
732
|
-
},
|
|
733
|
-
ChecklistState,
|
|
734
|
-
ChecklistStateDispatcher,
|
|
735
|
-
ChecklistStateModel,
|
|
736
|
-
],
|
|
737
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
738
|
-
}]
|
|
739
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.ListState }, { type: i1__namespace.ListStateDispatcher }, { type: ChecklistState }, { type: ChecklistStateDispatcher }]; }, propDecorators: { name: [{
|
|
740
|
-
type: i0.Input
|
|
741
|
-
}], search: [{
|
|
742
|
-
type: i0.Input
|
|
743
|
-
}], labelFieldSelector: [{
|
|
744
|
-
type: i0.Input,
|
|
745
|
-
args: ['label']
|
|
746
|
-
}], description: [{
|
|
747
|
-
type: i0.Input
|
|
748
|
-
}], selectMode: [{
|
|
749
|
-
type: i0.Input
|
|
750
|
-
}], showOnlySelected: [{
|
|
751
|
-
type: i0.Input
|
|
752
|
-
}] } });
|
|
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
|
+
}] } });
|
|
753
752
|
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
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
|
+
}] });
|
|
774
773
|
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
774
|
+
/**
|
|
775
|
+
* Generated bundle index. Do not edit.
|
|
776
|
+
*/
|
|
778
777
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
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;
|
|
789
788
|
|
|
790
|
-
|
|
789
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
791
790
|
|
|
792
791
|
}));
|
|
793
792
|
//# sourceMappingURL=skyux-list-builder-view-checklist.umd.js.map
|