@glowgreen/gg-questionnaire-v2 0.0.84 → 0.0.86
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/glowgreen-gg-questionnaire-v2.umd.js +371 -289
- package/bundles/glowgreen-gg-questionnaire-v2.umd.js.map +1 -1
- package/bundles/glowgreen-gg-questionnaire-v2.umd.min.js +2 -2
- package/bundles/glowgreen-gg-questionnaire-v2.umd.min.js.map +1 -1
- package/esm2015/glowgreen-gg-questionnaire-v2.js +3 -1
- package/esm2015/lib/enums/condition-relationship.enum.js +1 -1
- package/esm2015/lib/enums/condition-type.enum.js +1 -1
- package/esm2015/lib/enums/input-type.enum.js +1 -1
- package/esm2015/lib/enums/question-type.enum.js +1 -1
- package/esm2015/lib/enums/repeater-question-type.enum.js +1 -1
- package/esm2015/lib/enums/validation-type.enum.js +1 -1
- package/esm2015/lib/gg-questionnaire-v2.module.js +5 -17
- package/esm2015/lib/interfaces/attachment.js +1 -1
- package/esm2015/lib/interfaces/checklist-item.js +1 -1
- package/esm2015/lib/interfaces/condition-group.js +1 -1
- package/esm2015/lib/interfaces/condition.js +1 -1
- package/esm2015/lib/interfaces/question.js +1 -1
- package/esm2015/lib/interfaces/questionnaire-options.js +1 -1
- package/esm2015/lib/interfaces/questionnaire.js +1 -1
- package/esm2015/lib/interfaces/repeater-question.js +1 -1
- package/esm2015/lib/interfaces/section.js +1 -1
- package/esm2015/lib/interfaces/select-option.js +1 -1
- package/esm2015/lib/interfaces/validator.js +1 -1
- package/esm2015/lib/services/filter.service.js +7 -8
- package/esm2015/lib/services/form-constructor.service.js +10 -8
- package/esm2015/lib/services/questionnaire.service.js +21 -12
- package/esm2015/public_api.js +1 -1
- package/fesm2015/glowgreen-gg-questionnaire-v2.js +39 -42
- package/fesm2015/glowgreen-gg-questionnaire-v2.js.map +1 -1
- package/glowgreen-gg-questionnaire-v2.d.ts +2 -1
- package/glowgreen-gg-questionnaire-v2.metadata.json +1 -0
- package/lib/gg-questionnaire-v2.module.d.ts +0 -4
- package/lib/services/filter.service.d.ts +1 -4
- package/lib/services/form-constructor.service.d.ts +0 -3
- package/lib/services/questionnaire.service.d.ts +3 -4
- package/package.json +9 -13
- package/esm5/glowgreen-gg-questionnaire-v2.js +0 -5
- package/esm5/lib/enums/condition-relationship.enum.js +0 -6
- package/esm5/lib/enums/condition-type.enum.js +0 -10
- package/esm5/lib/enums/input-type.enum.js +0 -15
- package/esm5/lib/enums/question-type.enum.js +0 -15
- package/esm5/lib/enums/repeater-question-type.enum.js +0 -7
- package/esm5/lib/enums/validation-type.enum.js +0 -10
- package/esm5/lib/gg-questionnaire-v2.module.js +0 -49
- package/esm5/lib/interfaces/attachment.js +0 -1
- package/esm5/lib/interfaces/checklist-item.js +0 -1
- package/esm5/lib/interfaces/condition-group.js +0 -1
- package/esm5/lib/interfaces/condition.js +0 -1
- package/esm5/lib/interfaces/question.js +0 -1
- package/esm5/lib/interfaces/questionnaire-options.js +0 -1
- package/esm5/lib/interfaces/questionnaire.js +0 -1
- package/esm5/lib/interfaces/repeater-question.js +0 -1
- package/esm5/lib/interfaces/section.js +0 -1
- package/esm5/lib/interfaces/select-option.js +0 -1
- package/esm5/lib/interfaces/validator.js +0 -1
- package/esm5/lib/services/filter.service.js +0 -384
- package/esm5/lib/services/form-constructor.service.js +0 -349
- package/esm5/lib/services/questionnaire.service.js +0 -572
- package/esm5/public_api.js +0 -12
- package/fesm5/glowgreen-gg-questionnaire-v2.js +0 -1397
- package/fesm5/glowgreen-gg-questionnaire-v2.js.map +0 -1
|
@@ -1,226 +1,308 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('lodash')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@glowgreen/gg-questionnaire-v2', ['exports', '@angular/core', '@angular/forms', 'lodash'], factory) :
|
|
4
|
-
(global = global || self, factory((global.glowgreen = global.glowgreen || {}, global.glowgreen['gg-questionnaire-v2'] = {}), global.ng.core, global.ng.forms, global.
|
|
5
|
-
}(this, (function (exports,
|
|
4
|
+
(global = global || self, factory((global.glowgreen = global.glowgreen || {}, global.glowgreen['gg-questionnaire-v2'] = {}), global.ng.core, global.ng.forms, global._));
|
|
5
|
+
}(this, (function (exports, i0, i1, _) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
extendStatics(d, b);
|
|
32
|
-
function __() { this.constructor = d; }
|
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
function __rest(s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
function __decorate(decorators, target, key, desc) {
|
|
60
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
61
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
function
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
7
|
+
/*! *****************************************************************************
|
|
8
|
+
Copyright (c) Microsoft Corporation.
|
|
9
|
+
|
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
+
purpose with or without fee is hereby granted.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
+
***************************************************************************** */
|
|
21
|
+
/* global Reflect, Promise */
|
|
22
|
+
var extendStatics = function (d, b) {
|
|
23
|
+
extendStatics = Object.setPrototypeOf ||
|
|
24
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
+
function (d, b) { for (var p in b)
|
|
26
|
+
if (b.hasOwnProperty(p))
|
|
27
|
+
d[p] = b[p]; };
|
|
28
|
+
return extendStatics(d, b);
|
|
29
|
+
};
|
|
30
|
+
function __extends(d, b) {
|
|
31
|
+
extendStatics(d, b);
|
|
32
|
+
function __() { this.constructor = d; }
|
|
33
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
|
+
}
|
|
35
|
+
var __assign = function () {
|
|
36
|
+
__assign = Object.assign || function __assign(t) {
|
|
37
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
38
|
+
s = arguments[i];
|
|
39
|
+
for (var p in s)
|
|
40
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
41
|
+
t[p] = s[p];
|
|
42
|
+
}
|
|
43
|
+
return t;
|
|
44
|
+
};
|
|
45
|
+
return __assign.apply(this, arguments);
|
|
46
|
+
};
|
|
47
|
+
function __rest(s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s)
|
|
50
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
51
|
+
t[p] = s[p];
|
|
52
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
53
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
55
|
+
t[p[i]] = s[p[i]];
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
58
|
+
}
|
|
59
|
+
function __decorate(decorators, target, key, desc) {
|
|
60
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
61
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
62
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
63
|
+
else
|
|
64
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
65
|
+
if (d = decorators[i])
|
|
66
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
67
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
68
|
+
}
|
|
69
|
+
function __param(paramIndex, decorator) {
|
|
70
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
71
|
+
}
|
|
72
|
+
function __metadata(metadataKey, metadataValue) {
|
|
73
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
74
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
75
|
+
}
|
|
76
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
77
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
78
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
79
|
+
function fulfilled(value) { try {
|
|
80
|
+
step(generator.next(value));
|
|
81
|
+
}
|
|
82
|
+
catch (e) {
|
|
83
|
+
reject(e);
|
|
84
|
+
} }
|
|
85
|
+
function rejected(value) { try {
|
|
86
|
+
step(generator["throw"](value));
|
|
87
|
+
}
|
|
88
|
+
catch (e) {
|
|
89
|
+
reject(e);
|
|
90
|
+
} }
|
|
91
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
92
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function __generator(thisArg, body) {
|
|
96
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
97
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
98
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
99
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
100
|
+
function step(op) {
|
|
101
|
+
if (f)
|
|
102
|
+
throw new TypeError("Generator is already executing.");
|
|
103
|
+
while (_)
|
|
104
|
+
try {
|
|
105
|
+
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)
|
|
106
|
+
return t;
|
|
107
|
+
if (y = 0, t)
|
|
108
|
+
op = [op[0] & 2, t.value];
|
|
109
|
+
switch (op[0]) {
|
|
110
|
+
case 0:
|
|
111
|
+
case 1:
|
|
112
|
+
t = op;
|
|
113
|
+
break;
|
|
114
|
+
case 4:
|
|
115
|
+
_.label++;
|
|
116
|
+
return { value: op[1], done: false };
|
|
117
|
+
case 5:
|
|
118
|
+
_.label++;
|
|
119
|
+
y = op[1];
|
|
120
|
+
op = [0];
|
|
121
|
+
continue;
|
|
122
|
+
case 7:
|
|
123
|
+
op = _.ops.pop();
|
|
124
|
+
_.trys.pop();
|
|
125
|
+
continue;
|
|
126
|
+
default:
|
|
127
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
128
|
+
_ = 0;
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
132
|
+
_.label = op[1];
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
136
|
+
_.label = t[1];
|
|
137
|
+
t = op;
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
if (t && _.label < t[2]) {
|
|
141
|
+
_.label = t[2];
|
|
142
|
+
_.ops.push(op);
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
if (t[2])
|
|
146
|
+
_.ops.pop();
|
|
147
|
+
_.trys.pop();
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
op = body.call(thisArg, _);
|
|
151
|
+
}
|
|
152
|
+
catch (e) {
|
|
153
|
+
op = [6, e];
|
|
154
|
+
y = 0;
|
|
155
|
+
}
|
|
156
|
+
finally {
|
|
157
|
+
f = t = 0;
|
|
158
|
+
}
|
|
159
|
+
if (op[0] & 5)
|
|
160
|
+
throw op[1];
|
|
161
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
165
|
+
if (k2 === undefined)
|
|
166
|
+
k2 = k;
|
|
167
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
168
|
+
}) : (function (o, m, k, k2) {
|
|
169
|
+
if (k2 === undefined)
|
|
170
|
+
k2 = k;
|
|
171
|
+
o[k2] = m[k];
|
|
172
|
+
});
|
|
173
|
+
function __exportStar(m, exports) {
|
|
174
|
+
for (var p in m)
|
|
175
|
+
if (p !== "default" && !exports.hasOwnProperty(p))
|
|
176
|
+
__createBinding(exports, m, p);
|
|
177
|
+
}
|
|
178
|
+
function __values(o) {
|
|
179
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
180
|
+
if (m)
|
|
181
|
+
return m.call(o);
|
|
182
|
+
if (o && typeof o.length === "number")
|
|
183
|
+
return {
|
|
184
|
+
next: function () {
|
|
185
|
+
if (o && i >= o.length)
|
|
186
|
+
o = void 0;
|
|
187
|
+
return { value: o && o[i++], done: !o };
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
191
|
+
}
|
|
192
|
+
function __read(o, n) {
|
|
193
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
194
|
+
if (!m)
|
|
195
|
+
return o;
|
|
196
|
+
var i = m.call(o), r, ar = [], e;
|
|
197
|
+
try {
|
|
198
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
199
|
+
ar.push(r.value);
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
e = { error: error };
|
|
203
|
+
}
|
|
204
|
+
finally {
|
|
205
|
+
try {
|
|
206
|
+
if (r && !r.done && (m = i["return"]))
|
|
207
|
+
m.call(i);
|
|
208
|
+
}
|
|
209
|
+
finally {
|
|
210
|
+
if (e)
|
|
211
|
+
throw e.error;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return ar;
|
|
215
|
+
}
|
|
216
|
+
function __spread() {
|
|
217
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
218
|
+
ar = ar.concat(__read(arguments[i]));
|
|
219
|
+
return ar;
|
|
220
|
+
}
|
|
221
|
+
function __spreadArrays() {
|
|
222
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
223
|
+
s += arguments[i].length;
|
|
224
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
225
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
226
|
+
r[k] = a[j];
|
|
227
|
+
return r;
|
|
228
|
+
}
|
|
229
|
+
;
|
|
230
|
+
function __await(v) {
|
|
231
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
232
|
+
}
|
|
233
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
234
|
+
if (!Symbol.asyncIterator)
|
|
235
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
236
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
237
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
238
|
+
function verb(n) { if (g[n])
|
|
239
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
240
|
+
function resume(n, v) { try {
|
|
241
|
+
step(g[n](v));
|
|
242
|
+
}
|
|
243
|
+
catch (e) {
|
|
244
|
+
settle(q[0][3], e);
|
|
245
|
+
} }
|
|
246
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
247
|
+
function fulfill(value) { resume("next", value); }
|
|
248
|
+
function reject(value) { resume("throw", value); }
|
|
249
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
250
|
+
resume(q[0][0], q[0][1]); }
|
|
251
|
+
}
|
|
252
|
+
function __asyncDelegator(o) {
|
|
253
|
+
var i, p;
|
|
254
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
255
|
+
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; }
|
|
256
|
+
}
|
|
257
|
+
function __asyncValues(o) {
|
|
258
|
+
if (!Symbol.asyncIterator)
|
|
259
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
260
|
+
var m = o[Symbol.asyncIterator], i;
|
|
261
|
+
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);
|
|
262
|
+
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); }); }; }
|
|
263
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
264
|
+
}
|
|
265
|
+
function __makeTemplateObject(cooked, raw) {
|
|
266
|
+
if (Object.defineProperty) {
|
|
267
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
cooked.raw = raw;
|
|
271
|
+
}
|
|
272
|
+
return cooked;
|
|
273
|
+
}
|
|
274
|
+
;
|
|
275
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
276
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
277
|
+
}) : function (o, v) {
|
|
278
|
+
o["default"] = v;
|
|
279
|
+
};
|
|
280
|
+
function __importStar(mod) {
|
|
281
|
+
if (mod && mod.__esModule)
|
|
282
|
+
return mod;
|
|
283
|
+
var result = {};
|
|
284
|
+
if (mod != null)
|
|
285
|
+
for (var k in mod)
|
|
286
|
+
if (Object.hasOwnProperty.call(mod, k))
|
|
287
|
+
__createBinding(result, mod, k);
|
|
288
|
+
__setModuleDefault(result, mod);
|
|
289
|
+
return result;
|
|
290
|
+
}
|
|
291
|
+
function __importDefault(mod) {
|
|
292
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
293
|
+
}
|
|
294
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
295
|
+
if (!privateMap.has(receiver)) {
|
|
296
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
297
|
+
}
|
|
298
|
+
return privateMap.get(receiver);
|
|
299
|
+
}
|
|
300
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
301
|
+
if (!privateMap.has(receiver)) {
|
|
302
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
303
|
+
}
|
|
304
|
+
privateMap.set(receiver, value);
|
|
305
|
+
return value;
|
|
224
306
|
}
|
|
225
307
|
|
|
226
308
|
(function (QuestionType) {
|
|
@@ -237,7 +319,6 @@
|
|
|
237
319
|
QuestionType["Feedback"] = "feedback";
|
|
238
320
|
})(exports.QuestionType || (exports.QuestionType = {}));
|
|
239
321
|
|
|
240
|
-
|
|
241
322
|
(function (ConditionType) {
|
|
242
323
|
ConditionType["EqualTo"] = "equalTo";
|
|
243
324
|
ConditionType["NotEqualTo"] = "notEqualTo";
|
|
@@ -247,7 +328,6 @@
|
|
|
247
328
|
ConditionType["Excludes"] = "excludes";
|
|
248
329
|
})(exports.ConditionType || (exports.ConditionType = {}));
|
|
249
330
|
|
|
250
|
-
|
|
251
331
|
(function (ConditionRelationship) {
|
|
252
332
|
ConditionRelationship["Every"] = "every";
|
|
253
333
|
ConditionRelationship["Any"] = "any";
|
|
@@ -292,7 +372,7 @@
|
|
|
292
372
|
var repeaterQuestion = _k.value;
|
|
293
373
|
var meetsConditions = this.meetsConditionGroups(repeaterQuestion.conditionGroups, currentQuestionnaireForm, additionalData, repeaterItem);
|
|
294
374
|
if (meetsConditions) {
|
|
295
|
-
var cloneQuestion =
|
|
375
|
+
var cloneQuestion = _.clone(repeaterQuestion);
|
|
296
376
|
cloneQuestion.selectOptions = this.getFetchOptionsForQuestion(repeaterQuestion, additionalData, currentQuestionnaireForm, repeaterItem);
|
|
297
377
|
filteredRepeaterItemQuestions.push(cloneQuestion);
|
|
298
378
|
}
|
|
@@ -355,7 +435,7 @@
|
|
|
355
435
|
var options = additionalData[question.fetchPath];
|
|
356
436
|
if (question.fetchSelectors && question.fetchSelectors.length > 0) {
|
|
357
437
|
var values = this.getValuesForArray(question.fetchSelectors, currentQuestionnaireForm, additionalData, repeaterItem);
|
|
358
|
-
options =
|
|
438
|
+
options = _.get(additionalData[question.fetchPath], values);
|
|
359
439
|
}
|
|
360
440
|
options = this.getFinalFetchArray(options);
|
|
361
441
|
if (!question.selectOptions) {
|
|
@@ -369,7 +449,7 @@
|
|
|
369
449
|
return null;
|
|
370
450
|
}
|
|
371
451
|
if (!Array.isArray(items)) {
|
|
372
|
-
items =
|
|
452
|
+
items = _.keys(items);
|
|
373
453
|
}
|
|
374
454
|
if (items.length <= 0) {
|
|
375
455
|
return null;
|
|
@@ -594,7 +674,7 @@
|
|
|
594
674
|
control = repeaterItem.get(path);
|
|
595
675
|
}
|
|
596
676
|
var value = control ? control.value : this.convertStringToValue(path);
|
|
597
|
-
return
|
|
677
|
+
return _.get(additionalData, path, value);
|
|
598
678
|
}
|
|
599
679
|
else {
|
|
600
680
|
return this.convertStringToValue(path);
|
|
@@ -619,17 +699,15 @@
|
|
|
619
699
|
return path;
|
|
620
700
|
}
|
|
621
701
|
};
|
|
622
|
-
FilterService.ɵfac = function FilterService_Factory(t) { return new (t || FilterService)(); };
|
|
623
|
-
FilterService.ɵprov = core.ɵɵdefineInjectable({ token: FilterService, factory: FilterService.ɵfac, providedIn: 'root' });
|
|
624
702
|
return FilterService;
|
|
625
703
|
}());
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
704
|
+
FilterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FilterService_Factory() { return new FilterService(); }, token: FilterService, providedIn: "root" });
|
|
705
|
+
FilterService.decorators = [
|
|
706
|
+
{ type: i0.Injectable, args: [{
|
|
629
707
|
providedIn: 'root'
|
|
630
|
-
}]
|
|
631
|
-
|
|
632
|
-
|
|
708
|
+
},] }
|
|
709
|
+
];
|
|
710
|
+
FilterService.ctorParameters = function () { return []; };
|
|
633
711
|
|
|
634
712
|
(function (ValidationType) {
|
|
635
713
|
ValidationType["Required"] = "required";
|
|
@@ -904,7 +982,7 @@
|
|
|
904
982
|
FormConstructorService.prototype.convertValidator = function (validator) {
|
|
905
983
|
switch (validator.type) {
|
|
906
984
|
case exports.ValidationType.Required:
|
|
907
|
-
return
|
|
985
|
+
return i1.Validators.required;
|
|
908
986
|
default:
|
|
909
987
|
return null;
|
|
910
988
|
}
|
|
@@ -968,23 +1046,26 @@
|
|
|
968
1046
|
finally { if (e_9) throw e_9.error; }
|
|
969
1047
|
}
|
|
970
1048
|
};
|
|
971
|
-
FormConstructorService.ɵfac = function FormConstructorService_Factory(t) { return new (t || FormConstructorService)(core.ɵɵinject(forms.FormBuilder), core.ɵɵinject(FilterService)); };
|
|
972
|
-
FormConstructorService.ɵprov = core.ɵɵdefineInjectable({ token: FormConstructorService, factory: FormConstructorService.ɵfac, providedIn: 'root' });
|
|
973
1049
|
return FormConstructorService;
|
|
974
1050
|
}());
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1051
|
+
FormConstructorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormConstructorService_Factory() { return new FormConstructorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(FilterService)); }, token: FormConstructorService, providedIn: "root" });
|
|
1052
|
+
FormConstructorService.decorators = [
|
|
1053
|
+
{ type: i0.Injectable, args: [{
|
|
978
1054
|
providedIn: 'root'
|
|
979
|
-
}]
|
|
980
|
-
|
|
1055
|
+
},] }
|
|
1056
|
+
];
|
|
1057
|
+
FormConstructorService.ctorParameters = function () { return [
|
|
1058
|
+
{ type: i1.FormBuilder },
|
|
1059
|
+
{ type: FilterService }
|
|
1060
|
+
]; };
|
|
981
1061
|
|
|
982
1062
|
var QuestionnaireService = /** @class */ (function () {
|
|
983
|
-
function QuestionnaireService(formConstuctor, options) {
|
|
1063
|
+
function QuestionnaireService(formConstuctor, filterService, options) {
|
|
984
1064
|
this.formConstuctor = formConstuctor;
|
|
1065
|
+
this.filterService = filterService;
|
|
985
1066
|
this.options = options;
|
|
986
|
-
this.dataChangedEvent = new
|
|
987
|
-
this.sectionFinishedEvent = new
|
|
1067
|
+
this.dataChangedEvent = new i0.EventEmitter();
|
|
1068
|
+
this.sectionFinishedEvent = new i0.EventEmitter();
|
|
988
1069
|
this.skippable = true;
|
|
989
1070
|
}
|
|
990
1071
|
/**
|
|
@@ -995,11 +1076,11 @@
|
|
|
995
1076
|
* @author Will Poulson
|
|
996
1077
|
*/
|
|
997
1078
|
QuestionnaireService.prototype.loadQuestionnaire = function (questionnaire, savedState, additionalData) {
|
|
998
|
-
this.originalQuestionnaire =
|
|
999
|
-
this.currentQuestionnaire =
|
|
1079
|
+
this.originalQuestionnaire = _.cloneDeep(questionnaire);
|
|
1080
|
+
this.currentQuestionnaire = _.cloneDeep(questionnaire);
|
|
1000
1081
|
this.additionalData = additionalData;
|
|
1001
1082
|
if (savedState && Object.keys(savedState).length > 0) {
|
|
1002
|
-
var newData = this.formConstuctor.generateFormsForQuestionnaire(
|
|
1083
|
+
var newData = this.formConstuctor.generateFormsForQuestionnaire(_.cloneDeep(this.originalQuestionnaire), _.cloneDeep(this.currentQuestionnaire), this.currentQuestionnaireForm, this.additionalData, true);
|
|
1003
1084
|
if (newData) {
|
|
1004
1085
|
this.formConstuctor.constructRepeaterFromsFromState(savedState, newData.sections, newData.forms);
|
|
1005
1086
|
this.currentQuestionnaireForm = newData.forms;
|
|
@@ -1024,7 +1105,7 @@
|
|
|
1024
1105
|
var e_1, _a, e_2, _b;
|
|
1025
1106
|
var _this = this;
|
|
1026
1107
|
var oldLength = this.currentQuestionnaire.sections.map(function (x) { return x.questions.length; }).reduce(function (a, b) { return a + b; }, 0);
|
|
1027
|
-
var newData = this.formConstuctor.generateFormsForQuestionnaire(
|
|
1108
|
+
var newData = this.formConstuctor.generateFormsForQuestionnaire(_.cloneDeep(this.originalQuestionnaire), _.cloneDeep(this.currentQuestionnaire), this.currentQuestionnaireForm, this.additionalData);
|
|
1028
1109
|
if (newData) {
|
|
1029
1110
|
this.currentQuestionnaireForm = newData.forms;
|
|
1030
1111
|
this.currentQuestionnaire.sections = newData.sections;
|
|
@@ -1091,7 +1172,7 @@
|
|
|
1091
1172
|
get: function () {
|
|
1092
1173
|
return this.currentQuestionnaireForm.valid;
|
|
1093
1174
|
},
|
|
1094
|
-
enumerable:
|
|
1175
|
+
enumerable: false,
|
|
1095
1176
|
configurable: true
|
|
1096
1177
|
});
|
|
1097
1178
|
Object.defineProperty(QuestionnaireService.prototype, "isFirstQuestion", {
|
|
@@ -1102,7 +1183,7 @@
|
|
|
1102
1183
|
var currentIndex = this.currentSection.data.questions.indexOf(this.currentQuestion.data);
|
|
1103
1184
|
return currentIndex === 0;
|
|
1104
1185
|
},
|
|
1105
|
-
enumerable:
|
|
1186
|
+
enumerable: false,
|
|
1106
1187
|
configurable: true
|
|
1107
1188
|
});
|
|
1108
1189
|
Object.defineProperty(QuestionnaireService.prototype, "isLastQuestion", {
|
|
@@ -1114,7 +1195,7 @@
|
|
|
1114
1195
|
var maxIndex = this.currentSection.data.questions.length - 1;
|
|
1115
1196
|
return currentIndex === maxIndex;
|
|
1116
1197
|
},
|
|
1117
|
-
enumerable:
|
|
1198
|
+
enumerable: false,
|
|
1118
1199
|
configurable: true
|
|
1119
1200
|
});
|
|
1120
1201
|
Object.defineProperty(QuestionnaireService.prototype, "isFirstSection", {
|
|
@@ -1125,7 +1206,7 @@
|
|
|
1125
1206
|
var currentIndex = this.currentQuestionnaire.sections.indexOf(this.currentSection.data);
|
|
1126
1207
|
return currentIndex === 0;
|
|
1127
1208
|
},
|
|
1128
|
-
enumerable:
|
|
1209
|
+
enumerable: false,
|
|
1129
1210
|
configurable: true
|
|
1130
1211
|
});
|
|
1131
1212
|
Object.defineProperty(QuestionnaireService.prototype, "isLastSection", {
|
|
@@ -1137,7 +1218,7 @@
|
|
|
1137
1218
|
var maxIndex = this.currentQuestionnaire.sections.length - 1;
|
|
1138
1219
|
return currentIndex === maxIndex;
|
|
1139
1220
|
},
|
|
1140
|
-
enumerable:
|
|
1221
|
+
enumerable: false,
|
|
1141
1222
|
configurable: true
|
|
1142
1223
|
});
|
|
1143
1224
|
QuestionnaireService.prototype.sectionValid = function (name) {
|
|
@@ -1205,7 +1286,7 @@
|
|
|
1205
1286
|
formGroup: this.currentQuestionnaireForm.get(data.name)
|
|
1206
1287
|
};
|
|
1207
1288
|
},
|
|
1208
|
-
enumerable:
|
|
1289
|
+
enumerable: false,
|
|
1209
1290
|
configurable: true
|
|
1210
1291
|
});
|
|
1211
1292
|
Object.defineProperty(QuestionnaireService.prototype, "availableSections", {
|
|
@@ -1220,7 +1301,7 @@
|
|
|
1220
1301
|
}
|
|
1221
1302
|
return this.currentQuestionnaire.sections;
|
|
1222
1303
|
},
|
|
1223
|
-
enumerable:
|
|
1304
|
+
enumerable: false,
|
|
1224
1305
|
configurable: true
|
|
1225
1306
|
});
|
|
1226
1307
|
Object.defineProperty(QuestionnaireService.prototype, "currentData", {
|
|
@@ -1232,7 +1313,7 @@
|
|
|
1232
1313
|
get: function () {
|
|
1233
1314
|
return this.currentQuestionnaireForm ? this.currentQuestionnaireForm.getRawValue() : {};
|
|
1234
1315
|
},
|
|
1235
|
-
enumerable:
|
|
1316
|
+
enumerable: false,
|
|
1236
1317
|
configurable: true
|
|
1237
1318
|
});
|
|
1238
1319
|
Object.defineProperty(QuestionnaireService.prototype, "currentQuestion", {
|
|
@@ -1252,13 +1333,19 @@
|
|
|
1252
1333
|
if (!data) {
|
|
1253
1334
|
return null;
|
|
1254
1335
|
}
|
|
1336
|
+
var regex = /(\{\{(.+)\}\})/gi;
|
|
1337
|
+
var placeholderFound = data.title.match(regex);
|
|
1338
|
+
if (placeholderFound !== null) {
|
|
1339
|
+
var replacementValue = this.filterService.getValueForString(placeholderFound[2], this.currentQuestionnaireForm, this.additionalData);
|
|
1340
|
+
data.title = data.title.replace(placeholderFound[1], replacementValue);
|
|
1341
|
+
}
|
|
1255
1342
|
var formControl = this.currentSection.formGroup.get(data.name);
|
|
1256
1343
|
return {
|
|
1257
1344
|
data: data,
|
|
1258
1345
|
formControl: formControl
|
|
1259
1346
|
};
|
|
1260
1347
|
},
|
|
1261
|
-
enumerable:
|
|
1348
|
+
enumerable: false,
|
|
1262
1349
|
configurable: true
|
|
1263
1350
|
});
|
|
1264
1351
|
/**
|
|
@@ -1459,7 +1546,7 @@
|
|
|
1459
1546
|
if (!repeaterForm) {
|
|
1460
1547
|
return reject("Repeater template failed to generate. May be due to the repeater having no items in the editor.");
|
|
1461
1548
|
}
|
|
1462
|
-
if (!(_this.currentQuestion.formControl instanceof
|
|
1549
|
+
if (!(_this.currentQuestion.formControl instanceof i1.FormArray)) {
|
|
1463
1550
|
return reject("The current questions control isn't of type FormArray");
|
|
1464
1551
|
}
|
|
1465
1552
|
_this.currentQuestion.formControl.push(repeaterForm);
|
|
@@ -1479,7 +1566,7 @@
|
|
|
1479
1566
|
if (_this.currentQuestion.data.type !== exports.QuestionType.Repeater) {
|
|
1480
1567
|
return reject("Current question isn't a repeater");
|
|
1481
1568
|
}
|
|
1482
|
-
if (!(_this.currentQuestion.formControl instanceof
|
|
1569
|
+
if (!(_this.currentQuestion.formControl instanceof i1.FormArray)) {
|
|
1483
1570
|
return reject("The current questions control isn't of type FormArray");
|
|
1484
1571
|
}
|
|
1485
1572
|
_this.currentQuestion.formControl.removeAt(index);
|
|
@@ -1494,7 +1581,7 @@
|
|
|
1494
1581
|
*/
|
|
1495
1582
|
QuestionnaireService.prototype.getRepeaterItemLabel = function (index) {
|
|
1496
1583
|
var e_4, _a;
|
|
1497
|
-
if (!this.currentQuestion.formControl || !(this.currentQuestion.formControl instanceof
|
|
1584
|
+
if (!this.currentQuestion.formControl || !(this.currentQuestion.formControl instanceof i1.FormArray)) {
|
|
1498
1585
|
return '';
|
|
1499
1586
|
}
|
|
1500
1587
|
var repeaterItem = this.currentQuestion.formControl.controls[index];
|
|
@@ -1528,19 +1615,19 @@
|
|
|
1528
1615
|
var display = displayArray.join(' ');
|
|
1529
1616
|
return display;
|
|
1530
1617
|
};
|
|
1531
|
-
QuestionnaireService.ɵfac = function QuestionnaireService_Factory(t) { return new (t || QuestionnaireService)(core.ɵɵinject(FormConstructorService), core.ɵɵinject('options')); };
|
|
1532
|
-
QuestionnaireService.ɵprov = core.ɵɵdefineInjectable({ token: QuestionnaireService, factory: QuestionnaireService.ɵfac, providedIn: 'root' });
|
|
1533
1618
|
return QuestionnaireService;
|
|
1534
1619
|
}());
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1620
|
+
QuestionnaireService.ɵprov = i0.ɵɵdefineInjectable({ factory: function QuestionnaireService_Factory() { return new QuestionnaireService(i0.ɵɵinject(FormConstructorService), i0.ɵɵinject(FilterService), i0.ɵɵinject("options")); }, token: QuestionnaireService, providedIn: "root" });
|
|
1621
|
+
QuestionnaireService.decorators = [
|
|
1622
|
+
{ type: i0.Injectable, args: [{
|
|
1538
1623
|
providedIn: 'root'
|
|
1539
|
-
}]
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1624
|
+
},] }
|
|
1625
|
+
];
|
|
1626
|
+
QuestionnaireService.ctorParameters = function () { return [
|
|
1627
|
+
{ type: FormConstructorService },
|
|
1628
|
+
{ type: FilterService },
|
|
1629
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: ['options',] }] }
|
|
1630
|
+
]; };
|
|
1544
1631
|
|
|
1545
1632
|
var GgQuestionnaireV2Module = /** @class */ (function () {
|
|
1546
1633
|
function GgQuestionnaireV2Module() {
|
|
@@ -1557,33 +1644,21 @@
|
|
|
1557
1644
|
]
|
|
1558
1645
|
};
|
|
1559
1646
|
};
|
|
1560
|
-
GgQuestionnaireV2Module.ɵmod = core.ɵɵdefineNgModule({ type: GgQuestionnaireV2Module });
|
|
1561
|
-
GgQuestionnaireV2Module.ɵinj = core.ɵɵdefineInjector({ factory: function GgQuestionnaireV2Module_Factory(t) { return new (t || GgQuestionnaireV2Module)(); }, providers: [
|
|
1562
|
-
FormConstructorService,
|
|
1563
|
-
FilterService
|
|
1564
|
-
], imports: [[
|
|
1565
|
-
forms.FormsModule,
|
|
1566
|
-
forms.ReactiveFormsModule
|
|
1567
|
-
]] });
|
|
1568
1647
|
return GgQuestionnaireV2Module;
|
|
1569
1648
|
}());
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
/*@__PURE__*/ (function () { core.ɵsetClassMetadata(GgQuestionnaireV2Module, [{
|
|
1573
|
-
type: core.NgModule,
|
|
1574
|
-
args: [{
|
|
1649
|
+
GgQuestionnaireV2Module.decorators = [
|
|
1650
|
+
{ type: i0.NgModule, args: [{
|
|
1575
1651
|
declarations: [],
|
|
1576
1652
|
providers: [
|
|
1577
1653
|
FormConstructorService,
|
|
1578
1654
|
FilterService
|
|
1579
1655
|
],
|
|
1580
1656
|
imports: [
|
|
1581
|
-
|
|
1582
|
-
|
|
1657
|
+
i1.FormsModule,
|
|
1658
|
+
i1.ReactiveFormsModule
|
|
1583
1659
|
],
|
|
1584
|
-
}]
|
|
1585
|
-
|
|
1586
|
-
|
|
1660
|
+
},] }
|
|
1661
|
+
];
|
|
1587
1662
|
|
|
1588
1663
|
(function (InputType) {
|
|
1589
1664
|
InputType["Text"] = "text";
|
|
@@ -1599,15 +1674,22 @@
|
|
|
1599
1674
|
InputType["Week"] = "week";
|
|
1600
1675
|
})(exports.InputType || (exports.InputType = {}));
|
|
1601
1676
|
|
|
1602
|
-
|
|
1603
1677
|
(function (RepeaterQuestionType) {
|
|
1604
1678
|
RepeaterQuestionType["Input"] = "input";
|
|
1605
1679
|
RepeaterQuestionType["Select"] = "select";
|
|
1606
1680
|
RepeaterQuestionType["Upload"] = "upload";
|
|
1607
1681
|
})(exports.RepeaterQuestionType || (exports.RepeaterQuestionType = {}));
|
|
1608
1682
|
|
|
1683
|
+
// Services
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
* Generated bundle index. Do not edit.
|
|
1687
|
+
*/
|
|
1688
|
+
|
|
1609
1689
|
exports.GgQuestionnaireV2Module = GgQuestionnaireV2Module;
|
|
1610
1690
|
exports.QuestionnaireService = QuestionnaireService;
|
|
1691
|
+
exports.ɵa = FormConstructorService;
|
|
1692
|
+
exports.ɵb = FilterService;
|
|
1611
1693
|
|
|
1612
1694
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1613
1695
|
|