@apipass/schemas 0.2.1-alpha.5 → 0.2.1-test.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apipass-schemas.d.ts +5 -5
- package/assets/css/buttons.scss +112 -112
- package/assets/css/colors.scss +34 -34
- package/assets/css/fonts.scss +24 -24
- package/assets/css/inputs.scss +197 -197
- package/assets/css/pt_sans.scss +143 -143
- package/assets/css/spacing.scss +28 -28
- package/assets/css/texts.scss +18 -18
- package/base-schema.component.d.ts +11 -11
- package/bundles/apipass-schemas.umd.js +1926 -1921
- package/bundles/apipass-schemas.umd.js.map +1 -1
- package/bundles/apipass-schemas.umd.min.js +1 -1
- package/bundles/apipass-schemas.umd.min.js.map +1 -1
- package/esm2015/apipass-schemas.js +4 -4
- package/esm2015/base-schema.component.js +30 -30
- package/esm2015/public-api.js +17 -17
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +177 -177
- package/esm2015/schema-fields.service.js +77 -77
- package/esm2015/schema-form/schema-array/array-session/array-session.js +158 -158
- package/esm2015/schema-form/schema-array/schema-array.js +196 -195
- package/esm2015/schema-form/schema-form.js +73 -72
- package/esm2015/schema-form/schema-input/field-render/field-render.js +72 -72
- package/esm2015/schema-form/schema-input/input-render/boolean-input/boolean-input.component.js +45 -45
- package/esm2015/schema-form/schema-input/input-render/input-render.js +124 -124
- package/esm2015/schema-form/schema-input/input-render/number-input/number-input.component.js +43 -43
- package/esm2015/schema-form/schema-input/schema-input.js +99 -98
- package/esm2015/schema-form/schema-object/schema-object.js +95 -94
- package/esm2015/schema-form-render.js +97 -96
- package/esm2015/schema-form-render.module.js +121 -121
- package/esm2015/schema-validation-field.js +15 -15
- package/esm2015/struct.utils.js +9 -9
- package/esm2015/type-script-compile.js +77 -77
- package/fesm2015/apipass-schemas.js +1363 -1358
- package/fesm2015/apipass-schemas.js.map +1 -1
- package/package.json +1 -2
- package/public-api.d.ts +16 -16
- package/schema-custom-attributes/schema-custom-attributes.d.ts +15 -15
- package/schema-fields.service.d.ts +12 -12
- package/schema-form/schema-array/array-session/array-session.d.ts +17 -17
- package/schema-form/schema-array/schema-array.d.ts +18 -18
- package/schema-form/schema-form.d.ts +17 -17
- package/schema-form/schema-input/field-render/field-render.d.ts +15 -15
- package/schema-form/schema-input/input-render/boolean-input/boolean-input.component.d.ts +13 -13
- package/schema-form/schema-input/input-render/input-render.d.ts +19 -19
- package/schema-form/schema-input/input-render/number-input/number-input.component.d.ts +13 -13
- package/schema-form/schema-input/schema-input.d.ts +14 -14
- package/schema-form/schema-object/schema-object.d.ts +20 -20
- package/schema-form-render.d.ts +17 -17
- package/schema-form-render.module.d.ts +22 -22
- package/schema-validation-field.d.ts +17 -17
- package/struct.utils.d.ts +1 -1
- package/type-script-compile.d.ts +10 -10
|
@@ -4,1963 +4,1968 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.apipass = global.apipass || {}, global.apipass.schemas = {}), global.ng.core, global.ng.common, global.ng.forms, global.i7, global.ng.material.tooltip, global.i2, global.i8, global.ng.cdk.bidi, global.ng.cdk.scrolling));
|
|
5
5
|
}(this, (function (exports, i0, i1, i3, i7, i4, i2, i8, i5, i6) { '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
|
-
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;
|
|
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;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
var BaseSchemaComponent = /** @class */ (function () {
|
|
309
|
-
function BaseSchemaComponent() {
|
|
310
|
-
this.modelChange = new i0.EventEmitter();
|
|
311
|
-
}
|
|
312
|
-
BaseSchemaComponent.prototype.getSchemaProperties = function () {
|
|
313
|
-
return this.schema.properties instanceof Array ? this.schema.properties : [this.schema.properties];
|
|
314
|
-
};
|
|
315
|
-
BaseSchemaComponent.prototype.canRender = function (property) {
|
|
316
|
-
// tslint:disable-next-line:no-eval
|
|
317
|
-
property.canRender = (property === null || property === void 0 ? void 0 : property.conditionExpression) ? eval(property.conditionExpression) : true;
|
|
318
|
-
return property.canRender;
|
|
319
|
-
};
|
|
320
|
-
return BaseSchemaComponent;
|
|
321
|
-
}());
|
|
322
|
-
BaseSchemaComponent.ɵfac = function BaseSchemaComponent_Factory(t) { return new (t || BaseSchemaComponent)(); };
|
|
323
|
-
BaseSchemaComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseSchemaComponent, selectors: [["ng-component"]], inputs: { model: "model", schema: "schema" }, outputs: { modelChange: "modelChange" }, decls: 0, vars: 0, template: function BaseSchemaComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
324
|
-
/*@__PURE__*/ (function () {
|
|
325
|
-
i0.ɵsetClassMetadata(BaseSchemaComponent, [{
|
|
326
|
-
type: i0.Component,
|
|
327
|
-
args: [{
|
|
328
|
-
template: ''
|
|
329
|
-
}]
|
|
330
|
-
}], null, { model: [{
|
|
331
|
-
type: i0.Input
|
|
332
|
-
}], schema: [{
|
|
333
|
-
type: i0.Input
|
|
334
|
-
}], modelChange: [{
|
|
335
|
-
type: i0.Output
|
|
336
|
-
}] });
|
|
308
|
+
var BaseSchemaComponent = /** @class */ (function () {
|
|
309
|
+
function BaseSchemaComponent() {
|
|
310
|
+
this.modelChange = new i0.EventEmitter();
|
|
311
|
+
}
|
|
312
|
+
BaseSchemaComponent.prototype.getSchemaProperties = function () {
|
|
313
|
+
return this.schema.properties instanceof Array ? this.schema.properties : [this.schema.properties];
|
|
314
|
+
};
|
|
315
|
+
BaseSchemaComponent.prototype.canRender = function (property) {
|
|
316
|
+
// tslint:disable-next-line:no-eval
|
|
317
|
+
property.canRender = (property === null || property === void 0 ? void 0 : property.conditionExpression) ? eval(property.conditionExpression) : true;
|
|
318
|
+
return property.canRender;
|
|
319
|
+
};
|
|
320
|
+
return BaseSchemaComponent;
|
|
321
|
+
}());
|
|
322
|
+
BaseSchemaComponent.ɵfac = function BaseSchemaComponent_Factory(t) { return new (t || BaseSchemaComponent)(); };
|
|
323
|
+
BaseSchemaComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseSchemaComponent, selectors: [["ng-component"]], inputs: { model: "model", schema: "schema" }, outputs: { modelChange: "modelChange" }, decls: 0, vars: 0, template: function BaseSchemaComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
324
|
+
/*@__PURE__*/ (function () {
|
|
325
|
+
i0.ɵsetClassMetadata(BaseSchemaComponent, [{
|
|
326
|
+
type: i0.Component,
|
|
327
|
+
args: [{
|
|
328
|
+
template: ''
|
|
329
|
+
}]
|
|
330
|
+
}], null, { model: [{
|
|
331
|
+
type: i0.Input
|
|
332
|
+
}], schema: [{
|
|
333
|
+
type: i0.Input
|
|
334
|
+
}], modelChange: [{
|
|
335
|
+
type: i0.Output
|
|
336
|
+
}] });
|
|
337
337
|
})();
|
|
338
338
|
|
|
339
|
-
function onDropStruct(event, attr) {
|
|
340
|
-
var data = event.data;
|
|
341
|
-
if (!attr) {
|
|
342
|
-
attr = '';
|
|
343
|
-
}
|
|
344
|
-
attr += "{{" + data + "}}";
|
|
345
|
-
return attr;
|
|
339
|
+
function onDropStruct(event, attr) {
|
|
340
|
+
var data = event.data;
|
|
341
|
+
if (!attr) {
|
|
342
|
+
attr = '';
|
|
343
|
+
}
|
|
344
|
+
attr += "{{" + data + "}}";
|
|
345
|
+
return attr;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
var _c0 = function () { return { standalone: true }; };
|
|
349
|
-
function ArraySessionComponent_div_5_div_5_Template(rf, ctx) {
|
|
350
|
-
if (rf & 1) {
|
|
351
|
-
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
352
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
353
|
-
i0.ɵɵelementStart(1, "div", 12);
|
|
354
|
-
i0.ɵɵelementStart(2, "label", 13);
|
|
355
|
-
i0.ɵɵtext(3, "Loop");
|
|
356
|
-
i0.ɵɵelementEnd();
|
|
357
|
-
i0.ɵɵelementStart(4, "input", 14);
|
|
358
|
-
i0.ɵɵlistener("ngModelChange", function ArraySessionComponent_div_5_div_5_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; return item_r2.loop = $event; });
|
|
359
|
-
i0.ɵɵelementEnd();
|
|
360
|
-
i0.ɵɵelementEnd();
|
|
361
|
-
i0.ɵɵelementStart(5, "div", 15);
|
|
362
|
-
i0.ɵɵelementStart(6, "label", 13);
|
|
363
|
-
i0.ɵɵtext(7, "Alias");
|
|
364
|
-
i0.ɵɵelementEnd();
|
|
365
|
-
i0.ɵɵelementStart(8, "input", 14);
|
|
366
|
-
i0.ɵɵlistener("ngModelChange", function ArraySessionComponent_div_5_div_5_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; return item_r2.alias = $event; });
|
|
367
|
-
i0.ɵɵelementEnd();
|
|
368
|
-
i0.ɵɵelementEnd();
|
|
369
|
-
i0.ɵɵelementEnd();
|
|
370
|
-
}
|
|
371
|
-
if (rf & 2) {
|
|
372
|
-
var item_r2 = i0.ɵɵnextContext().$implicit;
|
|
373
|
-
i0.ɵɵadvance(4);
|
|
374
|
-
i0.ɵɵproperty("ngModel", item_r2.loop)("ngModelOptions", i0.ɵɵpureFunction0(4, _c0));
|
|
375
|
-
i0.ɵɵadvance(4);
|
|
376
|
-
i0.ɵɵproperty("ngModel", item_r2.alias)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0));
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
function ArraySessionComponent_div_5_ng_container_6_Template(rf, ctx) {
|
|
380
|
-
if (rf & 1) {
|
|
381
|
-
i0.ɵɵelementContainer(0);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
var _c1 = function (a0, a1, a2) { return { items: a0, index: a1, mappingAttributes: a2 }; };
|
|
385
|
-
var _c2 = function (a0) { return { $implicit: a0 }; };
|
|
386
|
-
function ArraySessionComponent_div_5_Template(rf, ctx) {
|
|
387
|
-
if (rf & 1) {
|
|
388
|
-
var _r13_1 = i0.ɵɵgetCurrentView();
|
|
389
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
390
|
-
i0.ɵɵelementStart(1, "div", 8);
|
|
391
|
-
i0.ɵɵtext(2);
|
|
392
|
-
i0.ɵɵpipe(3, "translate");
|
|
393
|
-
i0.ɵɵelementStart(4, "i", 9);
|
|
394
|
-
i0.ɵɵlistener("click", function ArraySessionComponent_div_5_Template_i_click_4_listener() { i0.ɵɵrestoreView(_r13_1); var item_r2 = ctx.$implicit; var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.remove(item_r2); });
|
|
395
|
-
i0.ɵɵelementEnd();
|
|
396
|
-
i0.ɵɵelementEnd();
|
|
397
|
-
i0.ɵɵtemplate(5, ArraySessionComponent_div_5_div_5_Template, 9, 6, "div", 10);
|
|
398
|
-
i0.ɵɵtemplate(6, ArraySessionComponent_div_5_ng_container_6_Template, 1, 0, "ng-container", 11);
|
|
399
|
-
i0.ɵɵelementEnd();
|
|
400
|
-
}
|
|
401
|
-
if (rf & 2) {
|
|
402
|
-
var item_r2 = ctx.$implicit;
|
|
403
|
-
var index_r3 = ctx.index;
|
|
404
|
-
var ctx_r0 = i0.ɵɵnextContext();
|
|
405
|
-
i0.ɵɵadvance(2);
|
|
406
|
-
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(3, 5, ctx_r0.removeLabel), " ", index_r3 + 1, " ");
|
|
407
|
-
i0.ɵɵadvance(3);
|
|
408
|
-
i0.ɵɵproperty("ngIf", item_r2.mappingAttributes || item_r2.mappingAttributes === "");
|
|
409
|
-
i0.ɵɵadvance(1);
|
|
410
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.subsectionItem)("ngTemplateOutletContext", i0.ɵɵpureFunction1(11, _c2, i0.ɵɵpureFunction3(7, _c1, ctx_r0.model, index_r3, item_r2.mappingAttributes || item_r2.mappingAttributes === "" ? item_r2.mappingAttributes : item_r2)));
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
function ArraySessionComponent_button_11_Template(rf, ctx) {
|
|
414
|
-
if (rf & 1) {
|
|
415
|
-
var _r15_1 = i0.ɵɵgetCurrentView();
|
|
416
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
417
|
-
i0.ɵɵlistener("click", function ArraySessionComponent_button_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.addLoop(); });
|
|
418
|
-
i0.ɵɵtext(1);
|
|
419
|
-
i0.ɵɵpipe(2, "translate");
|
|
420
|
-
i0.ɵɵelementEnd();
|
|
421
|
-
}
|
|
422
|
-
if (rf & 2) {
|
|
423
|
-
i0.ɵɵadvance(1);
|
|
424
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "ADD_LOOP"));
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
var ArraySessionComponent = /** @class */ (function (_super) {
|
|
428
|
-
__extends(ArraySessionComponent, _super);
|
|
429
|
-
function ArraySessionComponent() {
|
|
430
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
431
|
-
_this.label = '';
|
|
432
|
-
_this.showAddLoop = true;
|
|
433
|
-
_this.removeLabel = '';
|
|
434
|
-
_this.onAdd = new i0.EventEmitter();
|
|
435
|
-
_this.onAddLoop = new i0.EventEmitter();
|
|
436
|
-
return _this;
|
|
437
|
-
}
|
|
438
|
-
ArraySessionComponent.prototype.add = function () {
|
|
439
|
-
this.onAdd.next();
|
|
440
|
-
};
|
|
441
|
-
ArraySessionComponent.prototype.addLoop = function () {
|
|
442
|
-
this.onAddLoop.next();
|
|
443
|
-
};
|
|
444
|
-
ArraySessionComponent.prototype.remove = function (item) {
|
|
445
|
-
var values = this.model;
|
|
446
|
-
var index = values.indexOf(item);
|
|
447
|
-
values.splice(index, 1);
|
|
448
|
-
this.model = values;
|
|
449
|
-
};
|
|
450
|
-
ArraySessionComponent.prototype.trackByIndex = function (index, obj) {
|
|
451
|
-
return index;
|
|
452
|
-
};
|
|
453
|
-
return ArraySessionComponent;
|
|
454
|
-
}(BaseSchemaComponent));
|
|
455
|
-
ArraySessionComponent.ɵfac = function ArraySessionComponent_Factory(t) { return ɵArraySessionComponent_BaseFactory(t || ArraySessionComponent); };
|
|
456
|
-
ArraySessionComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ArraySessionComponent, selectors: [["array-session"]], contentQueries: function ArraySessionComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
457
|
-
if (rf & 1) {
|
|
458
|
-
i0.ɵɵcontentQuery(dirIndex, i0.TemplateRef, true, i0.TemplateRef);
|
|
459
|
-
}
|
|
460
|
-
if (rf & 2) {
|
|
461
|
-
var _t;
|
|
462
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.subsectionItem = _t.first);
|
|
463
|
-
}
|
|
464
|
-
}, inputs: { label: "label", showAddLoop: "showAddLoop", removeLabel: "removeLabel" }, outputs: { onAdd: "onAdd", onAddLoop: "onAddLoop" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 9, consts: [[1, "row"], [1, "col-md-12"], [1, "info-label", "bold"], ["class", "subsection-element", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "row", "add-buttons"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", 3, "click"], ["class", "btn btn-outline-primary float-left btn-personal-edit ml-2", 3, "click", 4, "ngIf"], [1, "subsection-element"], [1, "subsection-item-title"], [1, "far", "fa-trash-alt", 3, "click"], ["class", "row", 4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "col-md-8"], [1, "info-label"], ["type", "text", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "col-md-4"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", "ml-2", 3, "click"]], template: function ArraySessionComponent_Template(rf, ctx) {
|
|
465
|
-
if (rf & 1) {
|
|
466
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
467
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
468
|
-
i0.ɵɵelementStart(2, "label", 2);
|
|
469
|
-
i0.ɵɵtext(3);
|
|
470
|
-
i0.ɵɵpipe(4, "translate");
|
|
471
|
-
i0.ɵɵelementEnd();
|
|
472
|
-
i0.ɵɵtemplate(5, ArraySessionComponent_div_5_Template, 7, 13, "div", 3);
|
|
473
|
-
i0.ɵɵelementEnd();
|
|
474
|
-
i0.ɵɵelementEnd();
|
|
475
|
-
i0.ɵɵelementStart(6, "div", 4);
|
|
476
|
-
i0.ɵɵelementStart(7, "div", 1);
|
|
477
|
-
i0.ɵɵelementStart(8, "button", 5);
|
|
478
|
-
i0.ɵɵlistener("click", function ArraySessionComponent_Template_button_click_8_listener() { return ctx.add(); });
|
|
479
|
-
i0.ɵɵtext(9);
|
|
480
|
-
i0.ɵɵpipe(10, "translate");
|
|
481
|
-
i0.ɵɵelementEnd();
|
|
482
|
-
i0.ɵɵtemplate(11, ArraySessionComponent_button_11_Template, 3, 3, "button", 6);
|
|
483
|
-
i0.ɵɵelementEnd();
|
|
484
|
-
i0.ɵɵelementEnd();
|
|
485
|
-
}
|
|
486
|
-
if (rf & 2) {
|
|
487
|
-
i0.ɵɵadvance(3);
|
|
488
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, ctx.label));
|
|
489
|
-
i0.ɵɵadvance(2);
|
|
490
|
-
i0.ɵɵproperty("ngForOf", ctx.model)("ngForTrackBy", ctx.trackByIndex);
|
|
491
|
-
i0.ɵɵadvance(4);
|
|
492
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 7, "ADD_ITEM"));
|
|
493
|
-
i0.ɵɵadvance(2);
|
|
494
|
-
i0.ɵɵproperty("ngIf", ctx.showAddLoop);
|
|
495
|
-
}
|
|
496
|
-
}, directives: [i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel], pipes: [i7.TranslatePipe], styles: [".subsection-element[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;border-radius:5px;margin-top:10px;padding:5px 15px 15px}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{align-items:center;background:#eee;border-bottom:1px solid #ccc;border-radius:5px 5px 0 0;display:flex;font-weight:700;justify-content:space-between;margin-bottom:5px;margin-left:-15px;margin-top:-5px;padding:7px 10px 7px 14px;width:calc(100% + 30px)}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"] });
|
|
497
|
-
var ɵArraySessionComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ArraySessionComponent);
|
|
498
|
-
/*@__PURE__*/ (function () {
|
|
499
|
-
i0.ɵsetClassMetadata(ArraySessionComponent, [{
|
|
500
|
-
type: i0.Component,
|
|
501
|
-
args: [{
|
|
502
|
-
selector: 'array-session',
|
|
503
|
-
templateUrl: 'array-session.html',
|
|
504
|
-
styleUrls: ['array-session.scss']
|
|
505
|
-
}]
|
|
506
|
-
}], null, { label: [{
|
|
507
|
-
type: i0.Input
|
|
508
|
-
}], showAddLoop: [{
|
|
509
|
-
type: i0.Input
|
|
510
|
-
}], removeLabel: [{
|
|
511
|
-
type: i0.Input
|
|
512
|
-
}], onAdd: [{
|
|
513
|
-
type: i0.Output
|
|
514
|
-
}], onAddLoop: [{
|
|
515
|
-
type: i0.Output
|
|
516
|
-
}], subsectionItem: [{
|
|
517
|
-
type: i0.ContentChild,
|
|
518
|
-
args: [i0.TemplateRef, { read: i0.TemplateRef }]
|
|
519
|
-
}] });
|
|
348
|
+
var _c0 = function () { return { standalone: true }; };
|
|
349
|
+
function ArraySessionComponent_div_5_div_5_Template(rf, ctx) {
|
|
350
|
+
if (rf & 1) {
|
|
351
|
+
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
352
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
353
|
+
i0.ɵɵelementStart(1, "div", 12);
|
|
354
|
+
i0.ɵɵelementStart(2, "label", 13);
|
|
355
|
+
i0.ɵɵtext(3, "Loop");
|
|
356
|
+
i0.ɵɵelementEnd();
|
|
357
|
+
i0.ɵɵelementStart(4, "input", 14);
|
|
358
|
+
i0.ɵɵlistener("ngModelChange", function ArraySessionComponent_div_5_div_5_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; return item_r2.loop = $event; });
|
|
359
|
+
i0.ɵɵelementEnd();
|
|
360
|
+
i0.ɵɵelementEnd();
|
|
361
|
+
i0.ɵɵelementStart(5, "div", 15);
|
|
362
|
+
i0.ɵɵelementStart(6, "label", 13);
|
|
363
|
+
i0.ɵɵtext(7, "Alias");
|
|
364
|
+
i0.ɵɵelementEnd();
|
|
365
|
+
i0.ɵɵelementStart(8, "input", 14);
|
|
366
|
+
i0.ɵɵlistener("ngModelChange", function ArraySessionComponent_div_5_div_5_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; return item_r2.alias = $event; });
|
|
367
|
+
i0.ɵɵelementEnd();
|
|
368
|
+
i0.ɵɵelementEnd();
|
|
369
|
+
i0.ɵɵelementEnd();
|
|
370
|
+
}
|
|
371
|
+
if (rf & 2) {
|
|
372
|
+
var item_r2 = i0.ɵɵnextContext().$implicit;
|
|
373
|
+
i0.ɵɵadvance(4);
|
|
374
|
+
i0.ɵɵproperty("ngModel", item_r2.loop)("ngModelOptions", i0.ɵɵpureFunction0(4, _c0));
|
|
375
|
+
i0.ɵɵadvance(4);
|
|
376
|
+
i0.ɵɵproperty("ngModel", item_r2.alias)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0));
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
function ArraySessionComponent_div_5_ng_container_6_Template(rf, ctx) {
|
|
380
|
+
if (rf & 1) {
|
|
381
|
+
i0.ɵɵelementContainer(0);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
var _c1 = function (a0, a1, a2) { return { items: a0, index: a1, mappingAttributes: a2 }; };
|
|
385
|
+
var _c2 = function (a0) { return { $implicit: a0 }; };
|
|
386
|
+
function ArraySessionComponent_div_5_Template(rf, ctx) {
|
|
387
|
+
if (rf & 1) {
|
|
388
|
+
var _r13_1 = i0.ɵɵgetCurrentView();
|
|
389
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
390
|
+
i0.ɵɵelementStart(1, "div", 8);
|
|
391
|
+
i0.ɵɵtext(2);
|
|
392
|
+
i0.ɵɵpipe(3, "translate");
|
|
393
|
+
i0.ɵɵelementStart(4, "i", 9);
|
|
394
|
+
i0.ɵɵlistener("click", function ArraySessionComponent_div_5_Template_i_click_4_listener() { i0.ɵɵrestoreView(_r13_1); var item_r2 = ctx.$implicit; var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.remove(item_r2); });
|
|
395
|
+
i0.ɵɵelementEnd();
|
|
396
|
+
i0.ɵɵelementEnd();
|
|
397
|
+
i0.ɵɵtemplate(5, ArraySessionComponent_div_5_div_5_Template, 9, 6, "div", 10);
|
|
398
|
+
i0.ɵɵtemplate(6, ArraySessionComponent_div_5_ng_container_6_Template, 1, 0, "ng-container", 11);
|
|
399
|
+
i0.ɵɵelementEnd();
|
|
400
|
+
}
|
|
401
|
+
if (rf & 2) {
|
|
402
|
+
var item_r2 = ctx.$implicit;
|
|
403
|
+
var index_r3 = ctx.index;
|
|
404
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
405
|
+
i0.ɵɵadvance(2);
|
|
406
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(3, 5, ctx_r0.removeLabel), " ", index_r3 + 1, " ");
|
|
407
|
+
i0.ɵɵadvance(3);
|
|
408
|
+
i0.ɵɵproperty("ngIf", item_r2.mappingAttributes || item_r2.mappingAttributes === "");
|
|
409
|
+
i0.ɵɵadvance(1);
|
|
410
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.subsectionItem)("ngTemplateOutletContext", i0.ɵɵpureFunction1(11, _c2, i0.ɵɵpureFunction3(7, _c1, ctx_r0.model, index_r3, item_r2.mappingAttributes || item_r2.mappingAttributes === "" ? item_r2.mappingAttributes : item_r2)));
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
function ArraySessionComponent_button_11_Template(rf, ctx) {
|
|
414
|
+
if (rf & 1) {
|
|
415
|
+
var _r15_1 = i0.ɵɵgetCurrentView();
|
|
416
|
+
i0.ɵɵelementStart(0, "button", 16);
|
|
417
|
+
i0.ɵɵlistener("click", function ArraySessionComponent_button_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.addLoop(); });
|
|
418
|
+
i0.ɵɵtext(1);
|
|
419
|
+
i0.ɵɵpipe(2, "translate");
|
|
420
|
+
i0.ɵɵelementEnd();
|
|
421
|
+
}
|
|
422
|
+
if (rf & 2) {
|
|
423
|
+
i0.ɵɵadvance(1);
|
|
424
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "ADD_LOOP"));
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
var ArraySessionComponent = /** @class */ (function (_super) {
|
|
428
|
+
__extends(ArraySessionComponent, _super);
|
|
429
|
+
function ArraySessionComponent() {
|
|
430
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
431
|
+
_this.label = '';
|
|
432
|
+
_this.showAddLoop = true;
|
|
433
|
+
_this.removeLabel = '';
|
|
434
|
+
_this.onAdd = new i0.EventEmitter();
|
|
435
|
+
_this.onAddLoop = new i0.EventEmitter();
|
|
436
|
+
return _this;
|
|
437
|
+
}
|
|
438
|
+
ArraySessionComponent.prototype.add = function () {
|
|
439
|
+
this.onAdd.next();
|
|
440
|
+
};
|
|
441
|
+
ArraySessionComponent.prototype.addLoop = function () {
|
|
442
|
+
this.onAddLoop.next();
|
|
443
|
+
};
|
|
444
|
+
ArraySessionComponent.prototype.remove = function (item) {
|
|
445
|
+
var values = this.model;
|
|
446
|
+
var index = values.indexOf(item);
|
|
447
|
+
values.splice(index, 1);
|
|
448
|
+
this.model = values;
|
|
449
|
+
};
|
|
450
|
+
ArraySessionComponent.prototype.trackByIndex = function (index, obj) {
|
|
451
|
+
return index;
|
|
452
|
+
};
|
|
453
|
+
return ArraySessionComponent;
|
|
454
|
+
}(BaseSchemaComponent));
|
|
455
|
+
ArraySessionComponent.ɵfac = function ArraySessionComponent_Factory(t) { return ɵArraySessionComponent_BaseFactory(t || ArraySessionComponent); };
|
|
456
|
+
ArraySessionComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ArraySessionComponent, selectors: [["array-session"]], contentQueries: function ArraySessionComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
457
|
+
if (rf & 1) {
|
|
458
|
+
i0.ɵɵcontentQuery(dirIndex, i0.TemplateRef, true, i0.TemplateRef);
|
|
459
|
+
}
|
|
460
|
+
if (rf & 2) {
|
|
461
|
+
var _t;
|
|
462
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.subsectionItem = _t.first);
|
|
463
|
+
}
|
|
464
|
+
}, inputs: { label: "label", showAddLoop: "showAddLoop", removeLabel: "removeLabel" }, outputs: { onAdd: "onAdd", onAddLoop: "onAddLoop" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 9, consts: [[1, "row"], [1, "col-md-12"], [1, "info-label", "bold"], ["class", "subsection-element", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "row", "add-buttons"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", 3, "click"], ["class", "btn btn-outline-primary float-left btn-personal-edit ml-2", 3, "click", 4, "ngIf"], [1, "subsection-element"], [1, "subsection-item-title"], [1, "far", "fa-trash-alt", 3, "click"], ["class", "row", 4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "col-md-8"], [1, "info-label"], ["type", "text", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "col-md-4"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", "ml-2", 3, "click"]], template: function ArraySessionComponent_Template(rf, ctx) {
|
|
465
|
+
if (rf & 1) {
|
|
466
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
467
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
468
|
+
i0.ɵɵelementStart(2, "label", 2);
|
|
469
|
+
i0.ɵɵtext(3);
|
|
470
|
+
i0.ɵɵpipe(4, "translate");
|
|
471
|
+
i0.ɵɵelementEnd();
|
|
472
|
+
i0.ɵɵtemplate(5, ArraySessionComponent_div_5_Template, 7, 13, "div", 3);
|
|
473
|
+
i0.ɵɵelementEnd();
|
|
474
|
+
i0.ɵɵelementEnd();
|
|
475
|
+
i0.ɵɵelementStart(6, "div", 4);
|
|
476
|
+
i0.ɵɵelementStart(7, "div", 1);
|
|
477
|
+
i0.ɵɵelementStart(8, "button", 5);
|
|
478
|
+
i0.ɵɵlistener("click", function ArraySessionComponent_Template_button_click_8_listener() { return ctx.add(); });
|
|
479
|
+
i0.ɵɵtext(9);
|
|
480
|
+
i0.ɵɵpipe(10, "translate");
|
|
481
|
+
i0.ɵɵelementEnd();
|
|
482
|
+
i0.ɵɵtemplate(11, ArraySessionComponent_button_11_Template, 3, 3, "button", 6);
|
|
483
|
+
i0.ɵɵelementEnd();
|
|
484
|
+
i0.ɵɵelementEnd();
|
|
485
|
+
}
|
|
486
|
+
if (rf & 2) {
|
|
487
|
+
i0.ɵɵadvance(3);
|
|
488
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, ctx.label));
|
|
489
|
+
i0.ɵɵadvance(2);
|
|
490
|
+
i0.ɵɵproperty("ngForOf", ctx.model)("ngForTrackBy", ctx.trackByIndex);
|
|
491
|
+
i0.ɵɵadvance(4);
|
|
492
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 7, "ADD_ITEM"));
|
|
493
|
+
i0.ɵɵadvance(2);
|
|
494
|
+
i0.ɵɵproperty("ngIf", ctx.showAddLoop);
|
|
495
|
+
}
|
|
496
|
+
}, directives: [i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel], pipes: [i7.TranslatePipe], styles: [".subsection-element[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;border-radius:5px;margin-top:10px;padding:5px 15px 15px}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{align-items:center;background:#eee;border-bottom:1px solid #ccc;border-radius:5px 5px 0 0;display:flex;font-weight:700;justify-content:space-between;margin-bottom:5px;margin-left:-15px;margin-top:-5px;padding:7px 10px 7px 14px;width:calc(100% + 30px)}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"] });
|
|
497
|
+
var ɵArraySessionComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ArraySessionComponent);
|
|
498
|
+
/*@__PURE__*/ (function () {
|
|
499
|
+
i0.ɵsetClassMetadata(ArraySessionComponent, [{
|
|
500
|
+
type: i0.Component,
|
|
501
|
+
args: [{
|
|
502
|
+
selector: 'array-session',
|
|
503
|
+
templateUrl: 'array-session.html',
|
|
504
|
+
styleUrls: ['array-session.scss']
|
|
505
|
+
}]
|
|
506
|
+
}], null, { label: [{
|
|
507
|
+
type: i0.Input
|
|
508
|
+
}], showAddLoop: [{
|
|
509
|
+
type: i0.Input
|
|
510
|
+
}], removeLabel: [{
|
|
511
|
+
type: i0.Input
|
|
512
|
+
}], onAdd: [{
|
|
513
|
+
type: i0.Output
|
|
514
|
+
}], onAddLoop: [{
|
|
515
|
+
type: i0.Output
|
|
516
|
+
}], subsectionItem: [{
|
|
517
|
+
type: i0.ContentChild,
|
|
518
|
+
args: [i0.TemplateRef, { read: i0.TemplateRef }]
|
|
519
|
+
}] });
|
|
520
520
|
})();
|
|
521
521
|
|
|
522
|
-
function SchemaFormComponent_div_0_Template(rf, ctx) {
|
|
523
|
-
if (rf & 1) {
|
|
524
|
-
var _r4_1 = i0.ɵɵgetCurrentView();
|
|
525
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
526
|
-
i0.ɵɵelementStart(1, "schema-input", 2);
|
|
527
|
-
i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_input_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.model = $event; });
|
|
528
|
-
i0.ɵɵelementEnd();
|
|
529
|
-
i0.ɵɵelementStart(2, "schema-object", 2);
|
|
530
|
-
i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_object_modelChange_2_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.model = $event; });
|
|
531
|
-
i0.ɵɵelementEnd();
|
|
532
|
-
i0.ɵɵelementStart(3, "schema-array", 2);
|
|
533
|
-
i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_array_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.model = $event; });
|
|
534
|
-
i0.ɵɵelementEnd();
|
|
535
|
-
i0.ɵɵelementEnd();
|
|
536
|
-
}
|
|
537
|
-
if (rf & 2) {
|
|
538
|
-
var schema_r1 = ctx.$implicit;
|
|
539
|
-
var i_r2 = ctx.index;
|
|
540
|
-
var ctx_r0 = i0.ɵɵnextContext();
|
|
541
|
-
i0.ɵɵadvance(1);
|
|
542
|
-
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
543
|
-
i0.ɵɵadvance(1);
|
|
544
|
-
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
545
|
-
i0.ɵɵadvance(1);
|
|
546
|
-
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
var SchemaFormComponent = /** @class */ (function (_super) {
|
|
550
|
-
__extends(SchemaFormComponent, _super);
|
|
551
|
-
function SchemaFormComponent() {
|
|
552
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
553
|
-
_this.schemas = [];
|
|
554
|
-
_this.customProperties = false;
|
|
555
|
-
_this.editing = false;
|
|
556
|
-
_this.loaded = false;
|
|
557
|
-
return _this;
|
|
558
|
-
}
|
|
559
|
-
SchemaFormComponent.prototype.ngAfterContentInit = function () {
|
|
560
|
-
this.loaded = true;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
SchemaFormComponent.ɵ
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
/*@__PURE__*/ (
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
522
|
+
function SchemaFormComponent_div_0_Template(rf, ctx) {
|
|
523
|
+
if (rf & 1) {
|
|
524
|
+
var _r4_1 = i0.ɵɵgetCurrentView();
|
|
525
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
526
|
+
i0.ɵɵelementStart(1, "schema-input", 2);
|
|
527
|
+
i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_input_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.model = $event; });
|
|
528
|
+
i0.ɵɵelementEnd();
|
|
529
|
+
i0.ɵɵelementStart(2, "schema-object", 2);
|
|
530
|
+
i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_object_modelChange_2_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.model = $event; });
|
|
531
|
+
i0.ɵɵelementEnd();
|
|
532
|
+
i0.ɵɵelementStart(3, "schema-array", 2);
|
|
533
|
+
i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_array_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.model = $event; });
|
|
534
|
+
i0.ɵɵelementEnd();
|
|
535
|
+
i0.ɵɵelementEnd();
|
|
536
|
+
}
|
|
537
|
+
if (rf & 2) {
|
|
538
|
+
var schema_r1 = ctx.$implicit;
|
|
539
|
+
var i_r2 = ctx.index;
|
|
540
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
541
|
+
i0.ɵɵadvance(1);
|
|
542
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
543
|
+
i0.ɵɵadvance(1);
|
|
544
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
545
|
+
i0.ɵɵadvance(1);
|
|
546
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
var SchemaFormComponent = /** @class */ (function (_super) {
|
|
550
|
+
__extends(SchemaFormComponent, _super);
|
|
551
|
+
function SchemaFormComponent() {
|
|
552
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
553
|
+
_this.schemas = [];
|
|
554
|
+
_this.customProperties = false;
|
|
555
|
+
_this.editing = false;
|
|
556
|
+
_this.loaded = false;
|
|
557
|
+
return _this;
|
|
558
|
+
}
|
|
559
|
+
SchemaFormComponent.prototype.ngAfterContentInit = function () {
|
|
560
|
+
this.loaded = true;
|
|
561
|
+
console.log('SchemaFormComponent schemas', this.schemas);
|
|
562
|
+
};
|
|
563
|
+
SchemaFormComponent.prototype.onDrop = function ($event, modelElement) {
|
|
564
|
+
return onDropStruct($event, modelElement);
|
|
565
|
+
};
|
|
566
|
+
SchemaFormComponent.prototype.getId = function (index) {
|
|
567
|
+
return this.idPrefix + "-struct-" + index;
|
|
568
|
+
};
|
|
569
|
+
return SchemaFormComponent;
|
|
570
|
+
}(BaseSchemaComponent));
|
|
571
|
+
SchemaFormComponent.ɵfac = function SchemaFormComponent_Factory(t) { return ɵSchemaFormComponent_BaseFactory(t || SchemaFormComponent); };
|
|
572
|
+
SchemaFormComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormComponent, selectors: [["schema-form"]], inputs: { idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema-properties", 4, "ngFor", "ngForOf"], [1, "schema-properties"], [3, "idPrefix", "model", "schema", "editing", "index", "modelChange"]], template: function SchemaFormComponent_Template(rf, ctx) {
|
|
573
|
+
if (rf & 1) {
|
|
574
|
+
i0.ɵɵtemplate(0, SchemaFormComponent_div_0_Template, 4, 15, "div", 0);
|
|
575
|
+
}
|
|
576
|
+
if (rf & 2) {
|
|
577
|
+
i0.ɵɵproperty("ngForOf", ctx.schemas);
|
|
578
|
+
}
|
|
579
|
+
}, styles: [""] });
|
|
580
|
+
var ɵSchemaFormComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaFormComponent);
|
|
581
|
+
/*@__PURE__*/ (function () {
|
|
582
|
+
i0.ɵsetClassMetadata(SchemaFormComponent, [{
|
|
583
|
+
type: i0.Component,
|
|
584
|
+
args: [{
|
|
585
|
+
selector: 'schema-form',
|
|
586
|
+
templateUrl: 'schema-form.html',
|
|
587
|
+
styleUrls: ['./schema-form.scss']
|
|
588
|
+
}]
|
|
589
|
+
}], null, { idPrefix: [{
|
|
590
|
+
type: i0.Input
|
|
591
|
+
}], schemas: [{
|
|
592
|
+
type: i0.Input
|
|
593
|
+
}], customProperties: [{
|
|
594
|
+
type: i0.Input
|
|
595
|
+
}], editing: [{
|
|
596
|
+
type: i0.Input
|
|
597
|
+
}], inputType: [{
|
|
598
|
+
type: i0.Input
|
|
599
|
+
}] });
|
|
599
600
|
})();
|
|
600
601
|
|
|
601
|
-
var _c0$1 = function () { return { standalone: true }; };
|
|
602
|
-
function SchemaCustomAttributesComponent_div_0_Template(rf, ctx) {
|
|
603
|
-
if (rf & 1) {
|
|
604
|
-
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
605
|
-
i0.ɵɵelementStart(0, "div", 6);
|
|
606
|
-
i0.ɵɵelementStart(1, "div", 7);
|
|
607
|
-
i0.ɵɵelementStart(2, "label", 8);
|
|
608
|
-
i0.ɵɵtext(3);
|
|
609
|
-
i0.ɵɵelementEnd();
|
|
610
|
-
i0.ɵɵelementStart(4, "span", 9);
|
|
611
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_div_0_Template_span_click_4_listener() { i0.ɵɵrestoreView(_r8_1); var i_r6 = ctx.index; var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.removeCustomAttribute(i_r6); });
|
|
612
|
-
i0.ɵɵelement(5, "i", 10);
|
|
613
|
-
i0.ɵɵpipe(6, "translate");
|
|
614
|
-
i0.ɵɵelementEnd();
|
|
615
|
-
i0.ɵɵelementStart(7, "input", 11);
|
|
616
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r8_1); var attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_7_listener($event) { i0.ɵɵrestoreView(_r8_1); var attribute_r5 = ctx.$implicit; var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onDrop($event, attribute_r5); });
|
|
617
|
-
i0.ɵɵelementEnd();
|
|
618
|
-
i0.ɵɵelementEnd();
|
|
619
|
-
i0.ɵɵelementEnd();
|
|
620
|
-
}
|
|
621
|
-
if (rf & 2) {
|
|
622
|
-
var attribute_r5 = ctx.$implicit;
|
|
623
|
-
i0.ɵɵadvance(3);
|
|
624
|
-
i0.ɵɵtextInterpolate(attribute_r5.label);
|
|
625
|
-
i0.ɵɵadvance(2);
|
|
626
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(6, 4, "REMOVE"));
|
|
627
|
-
i0.ɵɵadvance(2);
|
|
628
|
-
i0.ɵɵproperty("ngModel", attribute_r5.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$1));
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) {
|
|
632
|
-
if (rf & 1) {
|
|
633
|
-
var _r12_1 = i0.ɵɵgetCurrentView();
|
|
634
|
-
i0.ɵɵelementStart(0, "div", 12);
|
|
635
|
-
i0.ɵɵelementStart(1, "div", 13);
|
|
636
|
-
i0.ɵɵelementStart(2, "div", 7);
|
|
637
|
-
i0.ɵɵelementStart(3, "label", 8);
|
|
638
|
-
i0.ɵɵtext(4);
|
|
639
|
-
i0.ɵɵpipe(5, "translate");
|
|
640
|
-
i0.ɵɵelementStart(6, "strong");
|
|
641
|
-
i0.ɵɵtext(7, "*");
|
|
642
|
-
i0.ɵɵelementEnd();
|
|
643
|
-
i0.ɵɵelementEnd();
|
|
644
|
-
i0.ɵɵelementStart(8, "input", 14);
|
|
645
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; });
|
|
646
|
-
i0.ɵɵelementEnd();
|
|
647
|
-
i0.ɵɵelementEnd();
|
|
648
|
-
i0.ɵɵelementEnd();
|
|
649
|
-
i0.ɵɵelementStart(9, "div", 13);
|
|
650
|
-
i0.ɵɵelementStart(10, "div", 7);
|
|
651
|
-
i0.ɵɵelementStart(11, "label", 8);
|
|
652
|
-
i0.ɵɵtext(12);
|
|
653
|
-
i0.ɵɵpipe(13, "translate");
|
|
654
|
-
i0.ɵɵelementStart(14, "strong");
|
|
655
|
-
i0.ɵɵtext(15, "*");
|
|
656
|
-
i0.ɵɵelementEnd();
|
|
657
|
-
i0.ɵɵelementEnd();
|
|
658
|
-
i0.ɵɵelementStart(16, "input", 11);
|
|
659
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_16_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.onDrop($event, ctx_r14.newCustomField); });
|
|
660
|
-
i0.ɵɵelementEnd();
|
|
661
|
-
i0.ɵɵelementEnd();
|
|
662
|
-
i0.ɵɵelementEnd();
|
|
663
|
-
i0.ɵɵelementEnd();
|
|
664
|
-
}
|
|
665
|
-
if (rf & 2) {
|
|
666
|
-
var ctx_r1 = i0.ɵɵnextContext();
|
|
667
|
-
i0.ɵɵadvance(4);
|
|
668
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, "STEP.NAME"));
|
|
669
|
-
i0.ɵɵadvance(4);
|
|
670
|
-
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.label)("ngModelOptions", i0.ɵɵpureFunction0(10, _c0$1));
|
|
671
|
-
i0.ɵɵadvance(4);
|
|
672
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 8, "STEP.VALUE"));
|
|
673
|
-
i0.ɵɵadvance(4);
|
|
674
|
-
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", i0.ɵɵpureFunction0(11, _c0$1));
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) {
|
|
678
|
-
if (rf & 1) {
|
|
679
|
-
var _r16_1 = i0.ɵɵgetCurrentView();
|
|
680
|
-
i0.ɵɵelementStart(0, "button", 15);
|
|
681
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16_1); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.newCustomField = {}; });
|
|
682
|
-
i0.ɵɵtext(1);
|
|
683
|
-
i0.ɵɵpipe(2, "translate");
|
|
684
|
-
i0.ɵɵelementEnd();
|
|
685
|
-
}
|
|
686
|
-
if (rf & 2) {
|
|
687
|
-
i0.ɵɵadvance(1);
|
|
688
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "ADD"), " ");
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) {
|
|
692
|
-
if (rf & 1) {
|
|
693
|
-
var _r18_1 = i0.ɵɵgetCurrentView();
|
|
694
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
695
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18_1); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.newCustomField = null; });
|
|
696
|
-
i0.ɵɵtext(1);
|
|
697
|
-
i0.ɵɵpipe(2, "translate");
|
|
698
|
-
i0.ɵɵelementEnd();
|
|
699
|
-
}
|
|
700
|
-
if (rf & 2) {
|
|
701
|
-
i0.ɵɵadvance(1);
|
|
702
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "CANCEL"), " ");
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
function SchemaCustomAttributesComponent_button_6_Template(rf, ctx) {
|
|
706
|
-
if (rf & 1) {
|
|
707
|
-
var _r20_1 = i0.ɵɵgetCurrentView();
|
|
708
|
-
i0.ɵɵelementStart(0, "button", 15);
|
|
709
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20_1); var ctx_r19 = i0.ɵɵnextContext(); return ctx_r19.saveNewAttribute(ctx_r19.newCustomField); });
|
|
710
|
-
i0.ɵɵtext(1);
|
|
711
|
-
i0.ɵɵpipe(2, "translate");
|
|
712
|
-
i0.ɵɵelementEnd();
|
|
713
|
-
}
|
|
714
|
-
if (rf & 2) {
|
|
715
|
-
i0.ɵɵadvance(1);
|
|
716
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "SAVE"), " ");
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
var SchemaCustomAttributesComponent = /** @class */ (function (_super) {
|
|
720
|
-
__extends(SchemaCustomAttributesComponent, _super);
|
|
721
|
-
function SchemaCustomAttributesComponent() {
|
|
722
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
723
|
-
_this.onSaveAttribute = new i0.EventEmitter();
|
|
724
|
-
_this.onDropOnAttribute = new i0.EventEmitter();
|
|
725
|
-
return _this;
|
|
726
|
-
}
|
|
727
|
-
SchemaCustomAttributesComponent.prototype.ngAfterContentInit = function () {
|
|
728
|
-
if (!this.model) {
|
|
729
|
-
this.model = [];
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
SchemaCustomAttributesComponent.prototype.saveNewAttribute = function (newCustomField) {
|
|
733
|
-
this.onSaveAttribute.emit(newCustomField);
|
|
734
|
-
this.model.push(newCustomField);
|
|
735
|
-
this.newCustomField = null;
|
|
736
|
-
this.modelChange.emit(this.model);
|
|
737
|
-
};
|
|
738
|
-
SchemaCustomAttributesComponent.prototype.removeCustomAttribute = function (attributeIndex) {
|
|
739
|
-
this.model.splice(attributeIndex, 1);
|
|
740
|
-
this.modelChange.emit(this.model);
|
|
741
|
-
};
|
|
742
|
-
SchemaCustomAttributesComponent.prototype.onDrop = function ($event, attribute) {
|
|
743
|
-
if (!attribute.value) {
|
|
744
|
-
attribute.value = '';
|
|
745
|
-
}
|
|
746
|
-
attribute.value += "{{" + $event.data + "}}";
|
|
747
|
-
};
|
|
748
|
-
return SchemaCustomAttributesComponent;
|
|
749
|
-
}(BaseSchemaComponent));
|
|
750
|
-
SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
|
|
751
|
-
SchemaCustomAttributesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 5, consts: [["class", "row custom-attributes", 4, "ngFor", "ngForOf"], ["class", "struct-custom-field", 4, "ngIf"], [1, "row", "actions-buttons"], [1, "col-md-12", "pull-right"], ["class", "btn btn-outline-primary float-left", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-danger float-left ml-2", 3, "click", 4, "ngIf"], [1, "row", "custom-attributes"], [1, "col-md-12"], [1, "info-label"], [1, "customAttributeDeleteIcon", 3, "click"], [1, "far", "fa-trash-alt", 3, "matTooltip"], ["dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "struct-custom-field"], [1, "row"], [1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "btn", "btn-outline-primary", "float-left", 3, "click"], [1, "btn", "btn-outline-danger", "float-left", "ml-2", 3, "click"]], template: function SchemaCustomAttributesComponent_Template(rf, ctx) {
|
|
752
|
-
if (rf & 1) {
|
|
753
|
-
i0.ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 8, 7, "div", 0);
|
|
754
|
-
i0.ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 17, 12, "div", 1);
|
|
755
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
756
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
757
|
-
i0.ɵɵtemplate(4, SchemaCustomAttributesComponent_button_4_Template, 3, 3, "button", 4);
|
|
758
|
-
i0.ɵɵtemplate(5, SchemaCustomAttributesComponent_button_5_Template, 3, 3, "button", 5);
|
|
759
|
-
i0.ɵɵtemplate(6, SchemaCustomAttributesComponent_button_6_Template, 3, 3, "button", 4);
|
|
760
|
-
i0.ɵɵelementEnd();
|
|
761
|
-
i0.ɵɵelementEnd();
|
|
762
|
-
}
|
|
763
|
-
if (rf & 2) {
|
|
764
|
-
i0.ɵɵproperty("ngForOf", ctx.model);
|
|
765
|
-
i0.ɵɵadvance(1);
|
|
766
|
-
i0.ɵɵproperty("ngIf", ctx.newCustomField);
|
|
767
|
-
i0.ɵɵadvance(3);
|
|
768
|
-
i0.ɵɵproperty("ngIf", !ctx.newCustomField);
|
|
769
|
-
i0.ɵɵadvance(1);
|
|
770
|
-
i0.ɵɵproperty("ngIf", ctx.newCustomField);
|
|
771
|
-
i0.ɵɵadvance(1);
|
|
772
|
-
i0.ɵɵproperty("ngIf", ctx.newCustomField && ctx.newCustomField.label && ctx.newCustomField.value);
|
|
773
|
-
}
|
|
774
|
-
}, directives: [i1.NgForOf, i1.NgIf, i4.MatTooltip, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], pipes: [i7.TranslatePipe], styles: [".customAttributeDeleteIcon[_ngcontent-%COMP%]{color:red;cursor:pointer;font-size:16px;position:absolute;right:15px;top:4px}.customAttributeDeleteIcon[_ngcontent-%COMP%]:hover{color:#777}.struct-custom-field[_ngcontent-%COMP%]{background-color:#ececec;margin-top:16px;padding:8px 16px 16px}"] });
|
|
775
|
-
var ɵSchemaCustomAttributesComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaCustomAttributesComponent);
|
|
776
|
-
/*@__PURE__*/ (function () {
|
|
777
|
-
i0.ɵsetClassMetadata(SchemaCustomAttributesComponent, [{
|
|
778
|
-
type: i0.Component,
|
|
779
|
-
args: [{
|
|
780
|
-
selector: 'schema-custom-attributes',
|
|
781
|
-
templateUrl: 'schema-custom-attributes.html',
|
|
782
|
-
styleUrls: ['./schema-custom-attributes.scss']
|
|
783
|
-
}]
|
|
784
|
-
}], null, { onDropFunction: [{
|
|
785
|
-
type: i0.Input
|
|
786
|
-
}], onSaveAttribute: [{
|
|
787
|
-
type: i0.Output
|
|
788
|
-
}], onDropOnAttribute: [{
|
|
789
|
-
type: i0.Output
|
|
790
|
-
}] });
|
|
602
|
+
var _c0$1 = function () { return { standalone: true }; };
|
|
603
|
+
function SchemaCustomAttributesComponent_div_0_Template(rf, ctx) {
|
|
604
|
+
if (rf & 1) {
|
|
605
|
+
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
606
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
607
|
+
i0.ɵɵelementStart(1, "div", 7);
|
|
608
|
+
i0.ɵɵelementStart(2, "label", 8);
|
|
609
|
+
i0.ɵɵtext(3);
|
|
610
|
+
i0.ɵɵelementEnd();
|
|
611
|
+
i0.ɵɵelementStart(4, "span", 9);
|
|
612
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_div_0_Template_span_click_4_listener() { i0.ɵɵrestoreView(_r8_1); var i_r6 = ctx.index; var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.removeCustomAttribute(i_r6); });
|
|
613
|
+
i0.ɵɵelement(5, "i", 10);
|
|
614
|
+
i0.ɵɵpipe(6, "translate");
|
|
615
|
+
i0.ɵɵelementEnd();
|
|
616
|
+
i0.ɵɵelementStart(7, "input", 11);
|
|
617
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r8_1); var attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_7_listener($event) { i0.ɵɵrestoreView(_r8_1); var attribute_r5 = ctx.$implicit; var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onDrop($event, attribute_r5); });
|
|
618
|
+
i0.ɵɵelementEnd();
|
|
619
|
+
i0.ɵɵelementEnd();
|
|
620
|
+
i0.ɵɵelementEnd();
|
|
621
|
+
}
|
|
622
|
+
if (rf & 2) {
|
|
623
|
+
var attribute_r5 = ctx.$implicit;
|
|
624
|
+
i0.ɵɵadvance(3);
|
|
625
|
+
i0.ɵɵtextInterpolate(attribute_r5.label);
|
|
626
|
+
i0.ɵɵadvance(2);
|
|
627
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(6, 4, "REMOVE"));
|
|
628
|
+
i0.ɵɵadvance(2);
|
|
629
|
+
i0.ɵɵproperty("ngModel", attribute_r5.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$1));
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) {
|
|
633
|
+
if (rf & 1) {
|
|
634
|
+
var _r12_1 = i0.ɵɵgetCurrentView();
|
|
635
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
636
|
+
i0.ɵɵelementStart(1, "div", 13);
|
|
637
|
+
i0.ɵɵelementStart(2, "div", 7);
|
|
638
|
+
i0.ɵɵelementStart(3, "label", 8);
|
|
639
|
+
i0.ɵɵtext(4);
|
|
640
|
+
i0.ɵɵpipe(5, "translate");
|
|
641
|
+
i0.ɵɵelementStart(6, "strong");
|
|
642
|
+
i0.ɵɵtext(7, "*");
|
|
643
|
+
i0.ɵɵelementEnd();
|
|
644
|
+
i0.ɵɵelementEnd();
|
|
645
|
+
i0.ɵɵelementStart(8, "input", 14);
|
|
646
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; });
|
|
647
|
+
i0.ɵɵelementEnd();
|
|
648
|
+
i0.ɵɵelementEnd();
|
|
649
|
+
i0.ɵɵelementEnd();
|
|
650
|
+
i0.ɵɵelementStart(9, "div", 13);
|
|
651
|
+
i0.ɵɵelementStart(10, "div", 7);
|
|
652
|
+
i0.ɵɵelementStart(11, "label", 8);
|
|
653
|
+
i0.ɵɵtext(12);
|
|
654
|
+
i0.ɵɵpipe(13, "translate");
|
|
655
|
+
i0.ɵɵelementStart(14, "strong");
|
|
656
|
+
i0.ɵɵtext(15, "*");
|
|
657
|
+
i0.ɵɵelementEnd();
|
|
658
|
+
i0.ɵɵelementEnd();
|
|
659
|
+
i0.ɵɵelementStart(16, "input", 11);
|
|
660
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_16_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.onDrop($event, ctx_r14.newCustomField); });
|
|
661
|
+
i0.ɵɵelementEnd();
|
|
662
|
+
i0.ɵɵelementEnd();
|
|
663
|
+
i0.ɵɵelementEnd();
|
|
664
|
+
i0.ɵɵelementEnd();
|
|
665
|
+
}
|
|
666
|
+
if (rf & 2) {
|
|
667
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
668
|
+
i0.ɵɵadvance(4);
|
|
669
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, "STEP.NAME"));
|
|
670
|
+
i0.ɵɵadvance(4);
|
|
671
|
+
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.label)("ngModelOptions", i0.ɵɵpureFunction0(10, _c0$1));
|
|
672
|
+
i0.ɵɵadvance(4);
|
|
673
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 8, "STEP.VALUE"));
|
|
674
|
+
i0.ɵɵadvance(4);
|
|
675
|
+
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", i0.ɵɵpureFunction0(11, _c0$1));
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) {
|
|
679
|
+
if (rf & 1) {
|
|
680
|
+
var _r16_1 = i0.ɵɵgetCurrentView();
|
|
681
|
+
i0.ɵɵelementStart(0, "button", 15);
|
|
682
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16_1); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.newCustomField = {}; });
|
|
683
|
+
i0.ɵɵtext(1);
|
|
684
|
+
i0.ɵɵpipe(2, "translate");
|
|
685
|
+
i0.ɵɵelementEnd();
|
|
686
|
+
}
|
|
687
|
+
if (rf & 2) {
|
|
688
|
+
i0.ɵɵadvance(1);
|
|
689
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "ADD"), " ");
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) {
|
|
693
|
+
if (rf & 1) {
|
|
694
|
+
var _r18_1 = i0.ɵɵgetCurrentView();
|
|
695
|
+
i0.ɵɵelementStart(0, "button", 16);
|
|
696
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18_1); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.newCustomField = null; });
|
|
697
|
+
i0.ɵɵtext(1);
|
|
698
|
+
i0.ɵɵpipe(2, "translate");
|
|
699
|
+
i0.ɵɵelementEnd();
|
|
700
|
+
}
|
|
701
|
+
if (rf & 2) {
|
|
702
|
+
i0.ɵɵadvance(1);
|
|
703
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "CANCEL"), " ");
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
function SchemaCustomAttributesComponent_button_6_Template(rf, ctx) {
|
|
707
|
+
if (rf & 1) {
|
|
708
|
+
var _r20_1 = i0.ɵɵgetCurrentView();
|
|
709
|
+
i0.ɵɵelementStart(0, "button", 15);
|
|
710
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20_1); var ctx_r19 = i0.ɵɵnextContext(); return ctx_r19.saveNewAttribute(ctx_r19.newCustomField); });
|
|
711
|
+
i0.ɵɵtext(1);
|
|
712
|
+
i0.ɵɵpipe(2, "translate");
|
|
713
|
+
i0.ɵɵelementEnd();
|
|
714
|
+
}
|
|
715
|
+
if (rf & 2) {
|
|
716
|
+
i0.ɵɵadvance(1);
|
|
717
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "SAVE"), " ");
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
var SchemaCustomAttributesComponent = /** @class */ (function (_super) {
|
|
721
|
+
__extends(SchemaCustomAttributesComponent, _super);
|
|
722
|
+
function SchemaCustomAttributesComponent() {
|
|
723
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
724
|
+
_this.onSaveAttribute = new i0.EventEmitter();
|
|
725
|
+
_this.onDropOnAttribute = new i0.EventEmitter();
|
|
726
|
+
return _this;
|
|
727
|
+
}
|
|
728
|
+
SchemaCustomAttributesComponent.prototype.ngAfterContentInit = function () {
|
|
729
|
+
if (!this.model) {
|
|
730
|
+
this.model = [];
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
SchemaCustomAttributesComponent.prototype.saveNewAttribute = function (newCustomField) {
|
|
734
|
+
this.onSaveAttribute.emit(newCustomField);
|
|
735
|
+
this.model.push(newCustomField);
|
|
736
|
+
this.newCustomField = null;
|
|
737
|
+
this.modelChange.emit(this.model);
|
|
738
|
+
};
|
|
739
|
+
SchemaCustomAttributesComponent.prototype.removeCustomAttribute = function (attributeIndex) {
|
|
740
|
+
this.model.splice(attributeIndex, 1);
|
|
741
|
+
this.modelChange.emit(this.model);
|
|
742
|
+
};
|
|
743
|
+
SchemaCustomAttributesComponent.prototype.onDrop = function ($event, attribute) {
|
|
744
|
+
if (!attribute.value) {
|
|
745
|
+
attribute.value = '';
|
|
746
|
+
}
|
|
747
|
+
attribute.value += "{{" + $event.data + "}}";
|
|
748
|
+
};
|
|
749
|
+
return SchemaCustomAttributesComponent;
|
|
750
|
+
}(BaseSchemaComponent));
|
|
751
|
+
SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
|
|
752
|
+
SchemaCustomAttributesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 5, consts: [["class", "row custom-attributes", 4, "ngFor", "ngForOf"], ["class", "struct-custom-field", 4, "ngIf"], [1, "row", "actions-buttons"], [1, "col-md-12", "pull-right"], ["class", "btn btn-outline-primary float-left", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-danger float-left ml-2", 3, "click", 4, "ngIf"], [1, "row", "custom-attributes"], [1, "col-md-12"], [1, "info-label"], [1, "customAttributeDeleteIcon", 3, "click"], [1, "far", "fa-trash-alt", 3, "matTooltip"], ["dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "struct-custom-field"], [1, "row"], [1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "btn", "btn-outline-primary", "float-left", 3, "click"], [1, "btn", "btn-outline-danger", "float-left", "ml-2", 3, "click"]], template: function SchemaCustomAttributesComponent_Template(rf, ctx) {
|
|
753
|
+
if (rf & 1) {
|
|
754
|
+
i0.ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 8, 7, "div", 0);
|
|
755
|
+
i0.ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 17, 12, "div", 1);
|
|
756
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
757
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
758
|
+
i0.ɵɵtemplate(4, SchemaCustomAttributesComponent_button_4_Template, 3, 3, "button", 4);
|
|
759
|
+
i0.ɵɵtemplate(5, SchemaCustomAttributesComponent_button_5_Template, 3, 3, "button", 5);
|
|
760
|
+
i0.ɵɵtemplate(6, SchemaCustomAttributesComponent_button_6_Template, 3, 3, "button", 4);
|
|
761
|
+
i0.ɵɵelementEnd();
|
|
762
|
+
i0.ɵɵelementEnd();
|
|
763
|
+
}
|
|
764
|
+
if (rf & 2) {
|
|
765
|
+
i0.ɵɵproperty("ngForOf", ctx.model);
|
|
766
|
+
i0.ɵɵadvance(1);
|
|
767
|
+
i0.ɵɵproperty("ngIf", ctx.newCustomField);
|
|
768
|
+
i0.ɵɵadvance(3);
|
|
769
|
+
i0.ɵɵproperty("ngIf", !ctx.newCustomField);
|
|
770
|
+
i0.ɵɵadvance(1);
|
|
771
|
+
i0.ɵɵproperty("ngIf", ctx.newCustomField);
|
|
772
|
+
i0.ɵɵadvance(1);
|
|
773
|
+
i0.ɵɵproperty("ngIf", ctx.newCustomField && ctx.newCustomField.label && ctx.newCustomField.value);
|
|
774
|
+
}
|
|
775
|
+
}, directives: [i1.NgForOf, i1.NgIf, i4.MatTooltip, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], pipes: [i7.TranslatePipe], styles: [".customAttributeDeleteIcon[_ngcontent-%COMP%]{color:red;cursor:pointer;font-size:16px;position:absolute;right:15px;top:4px}.customAttributeDeleteIcon[_ngcontent-%COMP%]:hover{color:#777}.struct-custom-field[_ngcontent-%COMP%]{background-color:#ececec;margin-top:16px;padding:8px 16px 16px}"] });
|
|
776
|
+
var ɵSchemaCustomAttributesComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaCustomAttributesComponent);
|
|
777
|
+
/*@__PURE__*/ (function () {
|
|
778
|
+
i0.ɵsetClassMetadata(SchemaCustomAttributesComponent, [{
|
|
779
|
+
type: i0.Component,
|
|
780
|
+
args: [{
|
|
781
|
+
selector: 'schema-custom-attributes',
|
|
782
|
+
templateUrl: 'schema-custom-attributes.html',
|
|
783
|
+
styleUrls: ['./schema-custom-attributes.scss']
|
|
784
|
+
}]
|
|
785
|
+
}], null, { onDropFunction: [{
|
|
786
|
+
type: i0.Input
|
|
787
|
+
}], onSaveAttribute: [{
|
|
788
|
+
type: i0.Output
|
|
789
|
+
}], onDropOnAttribute: [{
|
|
790
|
+
type: i0.Output
|
|
791
|
+
}] });
|
|
791
792
|
})();
|
|
792
793
|
|
|
793
|
-
function SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template(rf, ctx) {
|
|
794
|
-
if (rf & 1) {
|
|
795
|
-
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
796
|
-
i0.ɵɵelementStart(0, "schema-form", 4);
|
|
797
|
-
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template_schema_form_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r3 = i0.ɵɵnextContext().$implicit; var ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.model[ctx_r7.schema.id][item_r3.index].mappingAttributes = $event; });
|
|
798
|
-
i0.ɵɵelementEnd();
|
|
799
|
-
}
|
|
800
|
-
if (rf & 2) {
|
|
801
|
-
var item_r3 = i0.ɵɵnextContext().$implicit;
|
|
802
|
-
var ctx_r4 = i0.ɵɵnextContext(2);
|
|
803
|
-
i0.ɵɵproperty("idPrefix", ctx_r4.idPrefix)("model", ctx_r4.model[ctx_r4.schema.id][item_r3.index].mappingAttributes)("schemas", ctx_r4.getSchemaProperties())("editing", ctx_r4.editing);
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
function SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template(rf, ctx) {
|
|
807
|
-
if (rf & 1) {
|
|
808
|
-
var _r12_1 = i0.ɵɵgetCurrentView();
|
|
809
|
-
i0.ɵɵelementStart(0, "schema-form", 4);
|
|
810
|
-
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template_schema_form_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r12_1); var item_r3 = i0.ɵɵnextContext().$implicit; var ctx_r11 = i0.ɵɵnextContext(2); return (ctx_r11.model[ctx_r11.schema.id][item_r3.index] = $event); });
|
|
811
|
-
i0.ɵɵelementEnd();
|
|
812
|
-
}
|
|
813
|
-
if (rf & 2) {
|
|
814
|
-
var item_r3 = i0.ɵɵnextContext().$implicit;
|
|
815
|
-
var ctx_r5 = i0.ɵɵnextContext(2);
|
|
816
|
-
i0.ɵɵproperty("idPrefix", ctx_r5.idPrefix)("model", ctx_r5.model[ctx_r5.schema.id][item_r3.index])("schemas", ctx_r5.getSchemaProperties())("editing", ctx_r5.editing);
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
function SchemaArrayComponent_div_0_ng_template_2_div_2_Template(rf, ctx) {
|
|
820
|
-
if (rf & 1) {
|
|
821
|
-
var _r16_1 = i0.ɵɵgetCurrentView();
|
|
822
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
823
|
-
i0.ɵɵelementStart(1, "div", 6);
|
|
824
|
-
i0.ɵɵelementStart(2, "label", 7);
|
|
825
|
-
i0.ɵɵtext(3);
|
|
826
|
-
i0.ɵɵpipe(4, "translate");
|
|
827
|
-
i0.ɵɵelementEnd();
|
|
828
|
-
i0.ɵɵelementStart(5, "schema-custom-attributes", 8);
|
|
829
|
-
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_div_2_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r16_1); var item_r3 = i0.ɵɵnextContext().$implicit; var ctx_r15 = i0.ɵɵnextContext(2); return ctx_r15.model[ctx_r15.schema.id][item_r3.index].customAttributes = $event; });
|
|
830
|
-
i0.ɵɵelementEnd();
|
|
831
|
-
i0.ɵɵelementEnd();
|
|
832
|
-
i0.ɵɵelementEnd();
|
|
833
|
-
}
|
|
834
|
-
if (rf & 2) {
|
|
835
|
-
var item_r3 = i0.ɵɵnextContext().$implicit;
|
|
836
|
-
var ctx_r6 = i0.ɵɵnextContext(2);
|
|
837
|
-
i0.ɵɵadvance(3);
|
|
838
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
839
|
-
i0.ɵɵadvance(2);
|
|
840
|
-
i0.ɵɵproperty("model", ctx_r6.model[ctx_r6.schema.id][item_r3.index].customAttributes)("onDropFunction", ctx_r6.onDrop);
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
function SchemaArrayComponent_div_0_ng_template_2_Template(rf, ctx) {
|
|
844
|
-
if (rf & 1) {
|
|
845
|
-
i0.ɵɵtemplate(0, SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template, 1, 4, "schema-form", 2);
|
|
846
|
-
i0.ɵɵtemplate(1, SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template, 1, 4, "schema-form", 2);
|
|
847
|
-
i0.ɵɵtemplate(2, SchemaArrayComponent_div_0_ng_template_2_div_2_Template, 6, 5, "div", 3);
|
|
848
|
-
}
|
|
849
|
-
if (rf & 2) {
|
|
850
|
-
var item_r3 = ctx.$implicit;
|
|
851
|
-
var ctx_r2 = i0.ɵɵnextContext(2);
|
|
852
|
-
i0.ɵɵproperty("ngIf", ctx_r2.model[ctx_r2.schema.id][item_r3.index].loop !== undefined);
|
|
853
|
-
i0.ɵɵadvance(1);
|
|
854
|
-
i0.ɵɵproperty("ngIf", ctx_r2.model[ctx_r2.schema.id][item_r3.index].loop == undefined);
|
|
855
|
-
i0.ɵɵadvance(1);
|
|
856
|
-
i0.ɵɵproperty("ngIf", ctx_r2.model[ctx_r2.schema.id][item_r3.index] && ctx_r2.schema.customProperties);
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
function SchemaArrayComponent_div_0_Template(rf, ctx) {
|
|
860
|
-
if (rf & 1) {
|
|
861
|
-
var _r20_1 = i0.ɵɵgetCurrentView();
|
|
862
|
-
i0.ɵɵelementStart(0, "div");
|
|
863
|
-
i0.ɵɵelementStart(1, "array-session", 1);
|
|
864
|
-
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_Template_array_session_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r20_1); var ctx_r19 = i0.ɵɵnextContext(); return (ctx_r19.model[ctx_r19.schema.id] = $event); })("onAdd", function SchemaArrayComponent_div_0_Template_array_session_onAdd_1_listener() { i0.ɵɵrestoreView(_r20_1); var ctx_r21 = i0.ɵɵnextContext(); return ctx_r21.addArrayItem(ctx_r21.schema.id, {}); })("onAddLoop", function SchemaArrayComponent_div_0_Template_array_session_onAddLoop_1_listener() { i0.ɵɵrestoreView(_r20_1); var ctx_r22 = i0.ɵɵnextContext(); return ctx_r22.addArrayLoop(ctx_r22.schema.id, {}); });
|
|
865
|
-
i0.ɵɵtemplate(2, SchemaArrayComponent_div_0_ng_template_2_Template, 3, 3, "ng-template");
|
|
866
|
-
i0.ɵɵelementEnd();
|
|
867
|
-
i0.ɵɵelementEnd();
|
|
868
|
-
}
|
|
869
|
-
if (rf & 2) {
|
|
870
|
-
var ctx_r0 = i0.ɵɵnextContext();
|
|
871
|
-
i0.ɵɵadvance(1);
|
|
872
|
-
i0.ɵɵproperty("label", ctx_r0.schema.title)("removeLabel", ctx_r0.schema.title)("model", ctx_r0.model[ctx_r0.schema.id])("showAddLoop", ctx_r0.schema.withoutLoop !== true);
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
var _c0$2 = function () { return { standalone: true }; };
|
|
876
|
-
function SchemaArrayComponent_div_1_ng_template_2_input_3_Template(rf, ctx) {
|
|
877
|
-
if (rf & 1) {
|
|
878
|
-
var _r30_1 = i0.ɵɵgetCurrentView();
|
|
879
|
-
i0.ɵɵelementStart(0, "input", 12);
|
|
880
|
-
i0.ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_input_3_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r30_1); var item_r24 = i0.ɵɵnextContext().$implicit; return item_r24.items[item_r24.index].mappingAttributes = $event; })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_input_3_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r30_1); var item_r24 = i0.ɵɵnextContext().$implicit; var ctx_r31 = i0.ɵɵnextContext(2); return item_r24.items[item_r24.index].mappingAttributes = ctx_r31.onDrop($event, item_r24.items[item_r24.index].mappingAttributes); });
|
|
881
|
-
i0.ɵɵelementEnd();
|
|
882
|
-
}
|
|
883
|
-
if (rf & 2) {
|
|
884
|
-
var item_r24 = i0.ɵɵnextContext().$implicit;
|
|
885
|
-
var ctx_r25 = i0.ɵɵnextContext(2);
|
|
886
|
-
i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index].mappingAttributes)("ngModelOptions", i0.ɵɵpureFunction0(3, _c0$2))("id", ctx_r25.getId(ctx_r25.index) + "-" + item_r24.index);
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template(rf, ctx) {
|
|
890
|
-
if (rf & 1) {
|
|
891
|
-
var _r36_1 = i0.ɵɵgetCurrentView();
|
|
892
|
-
i0.ɵɵelementStart(0, "input", 12);
|
|
893
|
-
i0.ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var item_r24 = i0.ɵɵnextContext().$implicit; return (item_r24.items[item_r24.index] = $event); })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var item_r24 = i0.ɵɵnextContext().$implicit; var ctx_r37 = i0.ɵɵnextContext(2); return (item_r24.items[item_r24.index] = ctx_r37.onDrop($event, item_r24.items[item_r24.index])); });
|
|
894
|
-
i0.ɵɵelementEnd();
|
|
895
|
-
}
|
|
896
|
-
if (rf & 2) {
|
|
897
|
-
var item_r24 = i0.ɵɵnextContext().$implicit;
|
|
898
|
-
var ctx_r27 = i0.ɵɵnextContext(2);
|
|
899
|
-
i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index])("ngModelOptions", i0.ɵɵpureFunction0(3, _c0$2))("id", ctx_r27.getId(ctx_r27.index) + "-" + item_r24.index);
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
function SchemaArrayComponent_div_1_ng_template_2_Template(rf, ctx) {
|
|
903
|
-
if (rf & 1) {
|
|
904
|
-
i0.ɵɵelementStart(0, "label", 9);
|
|
905
|
-
i0.ɵɵtext(1);
|
|
906
|
-
i0.ɵɵpipe(2, "translate");
|
|
907
|
-
i0.ɵɵelementEnd();
|
|
908
|
-
i0.ɵɵtemplate(3, SchemaArrayComponent_div_1_ng_template_2_input_3_Template, 1, 4, "input", 10);
|
|
909
|
-
i0.ɵɵtemplate(4, SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template, 1, 4, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
|
|
910
|
-
}
|
|
911
|
-
if (rf & 2) {
|
|
912
|
-
var item_r24 = ctx.$implicit;
|
|
913
|
-
var _r26 = i0.ɵɵreference(5);
|
|
914
|
-
var ctx_r23 = i0.ɵɵnextContext(2);
|
|
915
|
-
i0.ɵɵproperty("htmlFor", ctx_r23.getId(ctx_r23.index) + "-" + item_r24.index);
|
|
916
|
-
i0.ɵɵadvance(1);
|
|
917
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 4, ctx_r23.schema.title));
|
|
918
|
-
i0.ɵɵadvance(2);
|
|
919
|
-
i0.ɵɵproperty("ngIf", item_r24.items[item_r24.index].mappingAttributes || item_r24.items[item_r24.index].mappingAttributes === "")("ngIfElse", _r26);
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
function SchemaArrayComponent_div_1_Template(rf, ctx) {
|
|
923
|
-
if (rf & 1) {
|
|
924
|
-
var _r41_1 = i0.ɵɵgetCurrentView();
|
|
925
|
-
i0.ɵɵelementStart(0, "div");
|
|
926
|
-
i0.ɵɵelementStart(1, "array-session", 1);
|
|
927
|
-
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_1_Template_array_session_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r41_1); var ctx_r40 = i0.ɵɵnextContext(); return (ctx_r40.model[ctx_r40.schema.id] = $event); })("onAdd", function SchemaArrayComponent_div_1_Template_array_session_onAdd_1_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.addArrayItem(ctx_r42.schema.id, ""); })("onAddLoop", function SchemaArrayComponent_div_1_Template_array_session_onAddLoop_1_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.addArrayLoop(ctx_r43.schema.id, ""); });
|
|
928
|
-
i0.ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_Template, 6, 6, "ng-template");
|
|
929
|
-
i0.ɵɵelementEnd();
|
|
930
|
-
i0.ɵɵelementEnd();
|
|
931
|
-
}
|
|
932
|
-
if (rf & 2) {
|
|
933
|
-
var ctx_r1 = i0.ɵɵnextContext();
|
|
934
|
-
i0.ɵɵadvance(1);
|
|
935
|
-
i0.ɵɵproperty("label", ctx_r1.schema.title)("removeLabel", ctx_r1.schema.title)("model", ctx_r1.model[ctx_r1.schema.id])("showAddLoop", ctx_r1.schema.withoutLoop !== true);
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
var SchemaArrayComponent = /** @class */ (function (_super) {
|
|
939
|
-
__extends(SchemaArrayComponent, _super);
|
|
940
|
-
function SchemaArrayComponent() {
|
|
941
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
942
|
-
_this.editing = false;
|
|
943
|
-
return _this;
|
|
944
|
-
}
|
|
945
|
-
SchemaArrayComponent.prototype.ngAfterContentInit = function () {
|
|
946
|
-
var _a;
|
|
947
|
-
if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) === 'array' && this.model && !this.model[this.schema.id]) {
|
|
948
|
-
this.model[this.schema.id] = [];
|
|
949
|
-
}
|
|
950
|
-
this.loaded = true;
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
this.model[id]
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
SchemaArrayComponent.ɵ
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
i0.ɵɵtemplate(
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
i0.ɵɵ
|
|
990
|
-
i0.ɵɵ
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
/*@__PURE__*/ (
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
794
|
+
function SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template(rf, ctx) {
|
|
795
|
+
if (rf & 1) {
|
|
796
|
+
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
797
|
+
i0.ɵɵelementStart(0, "schema-form", 4);
|
|
798
|
+
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template_schema_form_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r3 = i0.ɵɵnextContext().$implicit; var ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.model[ctx_r7.schema.id][item_r3.index].mappingAttributes = $event; });
|
|
799
|
+
i0.ɵɵelementEnd();
|
|
800
|
+
}
|
|
801
|
+
if (rf & 2) {
|
|
802
|
+
var item_r3 = i0.ɵɵnextContext().$implicit;
|
|
803
|
+
var ctx_r4 = i0.ɵɵnextContext(2);
|
|
804
|
+
i0.ɵɵproperty("idPrefix", ctx_r4.idPrefix)("model", ctx_r4.model[ctx_r4.schema.id][item_r3.index].mappingAttributes)("schemas", ctx_r4.getSchemaProperties())("editing", ctx_r4.editing);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
function SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template(rf, ctx) {
|
|
808
|
+
if (rf & 1) {
|
|
809
|
+
var _r12_1 = i0.ɵɵgetCurrentView();
|
|
810
|
+
i0.ɵɵelementStart(0, "schema-form", 4);
|
|
811
|
+
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template_schema_form_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r12_1); var item_r3 = i0.ɵɵnextContext().$implicit; var ctx_r11 = i0.ɵɵnextContext(2); return (ctx_r11.model[ctx_r11.schema.id][item_r3.index] = $event); });
|
|
812
|
+
i0.ɵɵelementEnd();
|
|
813
|
+
}
|
|
814
|
+
if (rf & 2) {
|
|
815
|
+
var item_r3 = i0.ɵɵnextContext().$implicit;
|
|
816
|
+
var ctx_r5 = i0.ɵɵnextContext(2);
|
|
817
|
+
i0.ɵɵproperty("idPrefix", ctx_r5.idPrefix)("model", ctx_r5.model[ctx_r5.schema.id][item_r3.index])("schemas", ctx_r5.getSchemaProperties())("editing", ctx_r5.editing);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
function SchemaArrayComponent_div_0_ng_template_2_div_2_Template(rf, ctx) {
|
|
821
|
+
if (rf & 1) {
|
|
822
|
+
var _r16_1 = i0.ɵɵgetCurrentView();
|
|
823
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
824
|
+
i0.ɵɵelementStart(1, "div", 6);
|
|
825
|
+
i0.ɵɵelementStart(2, "label", 7);
|
|
826
|
+
i0.ɵɵtext(3);
|
|
827
|
+
i0.ɵɵpipe(4, "translate");
|
|
828
|
+
i0.ɵɵelementEnd();
|
|
829
|
+
i0.ɵɵelementStart(5, "schema-custom-attributes", 8);
|
|
830
|
+
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_div_2_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r16_1); var item_r3 = i0.ɵɵnextContext().$implicit; var ctx_r15 = i0.ɵɵnextContext(2); return ctx_r15.model[ctx_r15.schema.id][item_r3.index].customAttributes = $event; });
|
|
831
|
+
i0.ɵɵelementEnd();
|
|
832
|
+
i0.ɵɵelementEnd();
|
|
833
|
+
i0.ɵɵelementEnd();
|
|
834
|
+
}
|
|
835
|
+
if (rf & 2) {
|
|
836
|
+
var item_r3 = i0.ɵɵnextContext().$implicit;
|
|
837
|
+
var ctx_r6 = i0.ɵɵnextContext(2);
|
|
838
|
+
i0.ɵɵadvance(3);
|
|
839
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
840
|
+
i0.ɵɵadvance(2);
|
|
841
|
+
i0.ɵɵproperty("model", ctx_r6.model[ctx_r6.schema.id][item_r3.index].customAttributes)("onDropFunction", ctx_r6.onDrop);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
function SchemaArrayComponent_div_0_ng_template_2_Template(rf, ctx) {
|
|
845
|
+
if (rf & 1) {
|
|
846
|
+
i0.ɵɵtemplate(0, SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template, 1, 4, "schema-form", 2);
|
|
847
|
+
i0.ɵɵtemplate(1, SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template, 1, 4, "schema-form", 2);
|
|
848
|
+
i0.ɵɵtemplate(2, SchemaArrayComponent_div_0_ng_template_2_div_2_Template, 6, 5, "div", 3);
|
|
849
|
+
}
|
|
850
|
+
if (rf & 2) {
|
|
851
|
+
var item_r3 = ctx.$implicit;
|
|
852
|
+
var ctx_r2 = i0.ɵɵnextContext(2);
|
|
853
|
+
i0.ɵɵproperty("ngIf", ctx_r2.model[ctx_r2.schema.id][item_r3.index].loop !== undefined);
|
|
854
|
+
i0.ɵɵadvance(1);
|
|
855
|
+
i0.ɵɵproperty("ngIf", ctx_r2.model[ctx_r2.schema.id][item_r3.index].loop == undefined);
|
|
856
|
+
i0.ɵɵadvance(1);
|
|
857
|
+
i0.ɵɵproperty("ngIf", ctx_r2.model[ctx_r2.schema.id][item_r3.index] && ctx_r2.schema.customProperties);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
function SchemaArrayComponent_div_0_Template(rf, ctx) {
|
|
861
|
+
if (rf & 1) {
|
|
862
|
+
var _r20_1 = i0.ɵɵgetCurrentView();
|
|
863
|
+
i0.ɵɵelementStart(0, "div");
|
|
864
|
+
i0.ɵɵelementStart(1, "array-session", 1);
|
|
865
|
+
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_Template_array_session_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r20_1); var ctx_r19 = i0.ɵɵnextContext(); return (ctx_r19.model[ctx_r19.schema.id] = $event); })("onAdd", function SchemaArrayComponent_div_0_Template_array_session_onAdd_1_listener() { i0.ɵɵrestoreView(_r20_1); var ctx_r21 = i0.ɵɵnextContext(); return ctx_r21.addArrayItem(ctx_r21.schema.id, {}); })("onAddLoop", function SchemaArrayComponent_div_0_Template_array_session_onAddLoop_1_listener() { i0.ɵɵrestoreView(_r20_1); var ctx_r22 = i0.ɵɵnextContext(); return ctx_r22.addArrayLoop(ctx_r22.schema.id, {}); });
|
|
866
|
+
i0.ɵɵtemplate(2, SchemaArrayComponent_div_0_ng_template_2_Template, 3, 3, "ng-template");
|
|
867
|
+
i0.ɵɵelementEnd();
|
|
868
|
+
i0.ɵɵelementEnd();
|
|
869
|
+
}
|
|
870
|
+
if (rf & 2) {
|
|
871
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
872
|
+
i0.ɵɵadvance(1);
|
|
873
|
+
i0.ɵɵproperty("label", ctx_r0.schema.title)("removeLabel", ctx_r0.schema.title)("model", ctx_r0.model[ctx_r0.schema.id])("showAddLoop", ctx_r0.schema.withoutLoop !== true);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
var _c0$2 = function () { return { standalone: true }; };
|
|
877
|
+
function SchemaArrayComponent_div_1_ng_template_2_input_3_Template(rf, ctx) {
|
|
878
|
+
if (rf & 1) {
|
|
879
|
+
var _r30_1 = i0.ɵɵgetCurrentView();
|
|
880
|
+
i0.ɵɵelementStart(0, "input", 12);
|
|
881
|
+
i0.ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_input_3_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r30_1); var item_r24 = i0.ɵɵnextContext().$implicit; return item_r24.items[item_r24.index].mappingAttributes = $event; })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_input_3_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r30_1); var item_r24 = i0.ɵɵnextContext().$implicit; var ctx_r31 = i0.ɵɵnextContext(2); return item_r24.items[item_r24.index].mappingAttributes = ctx_r31.onDrop($event, item_r24.items[item_r24.index].mappingAttributes); });
|
|
882
|
+
i0.ɵɵelementEnd();
|
|
883
|
+
}
|
|
884
|
+
if (rf & 2) {
|
|
885
|
+
var item_r24 = i0.ɵɵnextContext().$implicit;
|
|
886
|
+
var ctx_r25 = i0.ɵɵnextContext(2);
|
|
887
|
+
i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index].mappingAttributes)("ngModelOptions", i0.ɵɵpureFunction0(3, _c0$2))("id", ctx_r25.getId(ctx_r25.index) + "-" + item_r24.index);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template(rf, ctx) {
|
|
891
|
+
if (rf & 1) {
|
|
892
|
+
var _r36_1 = i0.ɵɵgetCurrentView();
|
|
893
|
+
i0.ɵɵelementStart(0, "input", 12);
|
|
894
|
+
i0.ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var item_r24 = i0.ɵɵnextContext().$implicit; return (item_r24.items[item_r24.index] = $event); })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var item_r24 = i0.ɵɵnextContext().$implicit; var ctx_r37 = i0.ɵɵnextContext(2); return (item_r24.items[item_r24.index] = ctx_r37.onDrop($event, item_r24.items[item_r24.index])); });
|
|
895
|
+
i0.ɵɵelementEnd();
|
|
896
|
+
}
|
|
897
|
+
if (rf & 2) {
|
|
898
|
+
var item_r24 = i0.ɵɵnextContext().$implicit;
|
|
899
|
+
var ctx_r27 = i0.ɵɵnextContext(2);
|
|
900
|
+
i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index])("ngModelOptions", i0.ɵɵpureFunction0(3, _c0$2))("id", ctx_r27.getId(ctx_r27.index) + "-" + item_r24.index);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
function SchemaArrayComponent_div_1_ng_template_2_Template(rf, ctx) {
|
|
904
|
+
if (rf & 1) {
|
|
905
|
+
i0.ɵɵelementStart(0, "label", 9);
|
|
906
|
+
i0.ɵɵtext(1);
|
|
907
|
+
i0.ɵɵpipe(2, "translate");
|
|
908
|
+
i0.ɵɵelementEnd();
|
|
909
|
+
i0.ɵɵtemplate(3, SchemaArrayComponent_div_1_ng_template_2_input_3_Template, 1, 4, "input", 10);
|
|
910
|
+
i0.ɵɵtemplate(4, SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template, 1, 4, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
|
|
911
|
+
}
|
|
912
|
+
if (rf & 2) {
|
|
913
|
+
var item_r24 = ctx.$implicit;
|
|
914
|
+
var _r26 = i0.ɵɵreference(5);
|
|
915
|
+
var ctx_r23 = i0.ɵɵnextContext(2);
|
|
916
|
+
i0.ɵɵproperty("htmlFor", ctx_r23.getId(ctx_r23.index) + "-" + item_r24.index);
|
|
917
|
+
i0.ɵɵadvance(1);
|
|
918
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 4, ctx_r23.schema.title));
|
|
919
|
+
i0.ɵɵadvance(2);
|
|
920
|
+
i0.ɵɵproperty("ngIf", item_r24.items[item_r24.index].mappingAttributes || item_r24.items[item_r24.index].mappingAttributes === "")("ngIfElse", _r26);
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
function SchemaArrayComponent_div_1_Template(rf, ctx) {
|
|
924
|
+
if (rf & 1) {
|
|
925
|
+
var _r41_1 = i0.ɵɵgetCurrentView();
|
|
926
|
+
i0.ɵɵelementStart(0, "div");
|
|
927
|
+
i0.ɵɵelementStart(1, "array-session", 1);
|
|
928
|
+
i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_1_Template_array_session_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r41_1); var ctx_r40 = i0.ɵɵnextContext(); return (ctx_r40.model[ctx_r40.schema.id] = $event); })("onAdd", function SchemaArrayComponent_div_1_Template_array_session_onAdd_1_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.addArrayItem(ctx_r42.schema.id, ""); })("onAddLoop", function SchemaArrayComponent_div_1_Template_array_session_onAddLoop_1_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.addArrayLoop(ctx_r43.schema.id, ""); });
|
|
929
|
+
i0.ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_Template, 6, 6, "ng-template");
|
|
930
|
+
i0.ɵɵelementEnd();
|
|
931
|
+
i0.ɵɵelementEnd();
|
|
932
|
+
}
|
|
933
|
+
if (rf & 2) {
|
|
934
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
935
|
+
i0.ɵɵadvance(1);
|
|
936
|
+
i0.ɵɵproperty("label", ctx_r1.schema.title)("removeLabel", ctx_r1.schema.title)("model", ctx_r1.model[ctx_r1.schema.id])("showAddLoop", ctx_r1.schema.withoutLoop !== true);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
var SchemaArrayComponent = /** @class */ (function (_super) {
|
|
940
|
+
__extends(SchemaArrayComponent, _super);
|
|
941
|
+
function SchemaArrayComponent() {
|
|
942
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
943
|
+
_this.editing = false;
|
|
944
|
+
return _this;
|
|
945
|
+
}
|
|
946
|
+
SchemaArrayComponent.prototype.ngAfterContentInit = function () {
|
|
947
|
+
var _a;
|
|
948
|
+
if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) === 'array' && this.model && !this.model[this.schema.id]) {
|
|
949
|
+
this.model[this.schema.id] = [];
|
|
950
|
+
}
|
|
951
|
+
this.loaded = true;
|
|
952
|
+
console.log('SchemaArrayComponent schema', this.schema);
|
|
953
|
+
};
|
|
954
|
+
SchemaArrayComponent.prototype.onDrop = function ($event, modelElement) {
|
|
955
|
+
return onDropStruct($event, modelElement);
|
|
956
|
+
};
|
|
957
|
+
SchemaArrayComponent.prototype.getId = function (index) {
|
|
958
|
+
return this.idPrefix + "-struct-" + index;
|
|
959
|
+
};
|
|
960
|
+
SchemaArrayComponent.prototype.addArrayItem = function (id, param) {
|
|
961
|
+
var _this = this;
|
|
962
|
+
this.model[id] = this.model[id] || [];
|
|
963
|
+
if (this.schema.properties) {
|
|
964
|
+
param = {};
|
|
965
|
+
Object.keys(this.schema.properties).forEach(function (key) {
|
|
966
|
+
var schemaProperty = _this.schema.properties[key];
|
|
967
|
+
if (schemaProperty.type === 'object') {
|
|
968
|
+
param[schemaProperty.id] = {};
|
|
969
|
+
}
|
|
970
|
+
else if (schemaProperty.type === 'array') {
|
|
971
|
+
param[schemaProperty.id] = [];
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
this.model[id].push(param);
|
|
976
|
+
};
|
|
977
|
+
SchemaArrayComponent.prototype.addArrayLoop = function (id, mappingAttributes) {
|
|
978
|
+
this.model[id] = this.model[id] || [];
|
|
979
|
+
this.model[id].push({ loop: '', alias: '', mappingAttributes: mappingAttributes });
|
|
980
|
+
};
|
|
981
|
+
return SchemaArrayComponent;
|
|
982
|
+
}(BaseSchemaComponent));
|
|
983
|
+
SchemaArrayComponent.ɵfac = function SchemaArrayComponent_Factory(t) { return ɵSchemaArrayComponent_BaseFactory(t || SchemaArrayComponent); };
|
|
984
|
+
SchemaArrayComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaArrayComponent, selectors: [["schema-array"]], inputs: { idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "label", "removeLabel", "model", "showAddLoop", "modelChange", "onAdd", "onAddLoop"], [3, "idPrefix", "model", "schemas", "editing", "modelChange", 4, "ngIf"], ["class", "row struct-custom-properties", 4, "ngIf"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"], [1, "info-label", 3, "htmlFor"], ["class", "form-control", "type", "text", "dndDropzone", "", 3, "ngModel", "ngModelOptions", "id", "ngModelChange", "dndDrop", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["type", "text", "dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "id", "ngModelChange", "dndDrop"]], template: function SchemaArrayComponent_Template(rf, ctx) {
|
|
985
|
+
if (rf & 1) {
|
|
986
|
+
i0.ɵɵtemplate(0, SchemaArrayComponent_div_0_Template, 3, 4, "div", 0);
|
|
987
|
+
i0.ɵɵtemplate(1, SchemaArrayComponent_div_1_Template, 3, 4, "div", 0);
|
|
988
|
+
}
|
|
989
|
+
if (rf & 2) {
|
|
990
|
+
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type === "array" && ctx.schema.properties);
|
|
991
|
+
i0.ɵɵadvance(1);
|
|
992
|
+
i0.ɵɵproperty("ngIf", ctx.schema && ctx.canRender(ctx.schema) && ctx.schema.type === "array" && !ctx.schema.properties);
|
|
993
|
+
}
|
|
994
|
+
}, directives: [i1.NgIf, ArraySessionComponent, SchemaFormComponent, SchemaCustomAttributesComponent, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], pipes: [i7.TranslatePipe], styles: [""] });
|
|
995
|
+
var ɵSchemaArrayComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaArrayComponent);
|
|
996
|
+
/*@__PURE__*/ (function () {
|
|
997
|
+
i0.ɵsetClassMetadata(SchemaArrayComponent, [{
|
|
998
|
+
type: i0.Component,
|
|
999
|
+
args: [{
|
|
1000
|
+
selector: 'schema-array',
|
|
1001
|
+
templateUrl: 'schema-array.html',
|
|
1002
|
+
styleUrls: ['./schema-array.scss']
|
|
1003
|
+
}]
|
|
1004
|
+
}], null, { idPrefix: [{
|
|
1005
|
+
type: i0.Input
|
|
1006
|
+
}], schema: [{
|
|
1007
|
+
type: i0.Input
|
|
1008
|
+
}], editing: [{
|
|
1009
|
+
type: i0.Input
|
|
1010
|
+
}], index: [{
|
|
1011
|
+
type: i0.Input
|
|
1012
|
+
}] });
|
|
1011
1013
|
})();
|
|
1012
1014
|
|
|
1013
|
-
var _c0$3 = function (a0) { return { "has-error": a0 }; };
|
|
1014
|
-
function FieldRenderComponent_small_4_Template(rf, ctx) {
|
|
1015
|
-
if (rf & 1) {
|
|
1016
|
-
i0.ɵɵelementStart(0, "small", 0);
|
|
1017
|
-
i0.ɵɵtext(1, "(obrigat\u00F3rio)");
|
|
1018
|
-
i0.ɵɵelementEnd();
|
|
1019
|
-
}
|
|
1020
|
-
if (rf & 2) {
|
|
1021
|
-
var ctx_r0 = i0.ɵɵnextContext();
|
|
1022
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$3, ctx_r0.state && !ctx_r0.state.valid && ctx_r0.state.errors));
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
function FieldRenderComponent_span_5_Template(rf, ctx) {
|
|
1026
|
-
if (rf & 1) {
|
|
1027
|
-
i0.ɵɵelementStart(0, "span", 4);
|
|
1028
|
-
i0.ɵɵpipe(1, "translate");
|
|
1029
|
-
i0.ɵɵelement(2, "i", 5);
|
|
1030
|
-
i0.ɵɵelementEnd();
|
|
1031
|
-
}
|
|
1032
|
-
if (rf & 2) {
|
|
1033
|
-
var ctx_r1 = i0.ɵɵnextContext();
|
|
1034
|
-
i0.ɵɵpropertyInterpolate("matTooltip", i0.ɵɵpipeBind1(1, 1, ctx_r1.tooltip));
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
var _c1$1 = ["*"];
|
|
1038
|
-
var FieldRenderComponent = /** @class */ (function () {
|
|
1039
|
-
function FieldRenderComponent() {
|
|
1040
|
-
this.label = '';
|
|
1041
|
-
this.required = true;
|
|
1042
|
-
}
|
|
1043
|
-
return FieldRenderComponent;
|
|
1044
|
-
}());
|
|
1045
|
-
FieldRenderComponent.ɵfac = function FieldRenderComponent_Factory(t) { return new (t || FieldRenderComponent)(); };
|
|
1046
|
-
FieldRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldRenderComponent, selectors: [["field-render"]], inputs: { label: "label", inputId: "inputId", tooltip: "tooltip", required: "required", state: "state" }, ngContentSelectors: _c1$1, decls: 7, vars: 9, consts: [[3, "ngClass"], [1, "info-label", "bold", 3, "htmlFor"], [3, "ngClass", 4, "ngIf"], ["class", "info-icon", 3, "matTooltip", 4, "ngIf"], [1, "info-icon", 3, "matTooltip"], [1, "far", "fa-question-circle"]], template: function FieldRenderComponent_Template(rf, ctx) {
|
|
1047
|
-
if (rf & 1) {
|
|
1048
|
-
i0.ɵɵprojectionDef();
|
|
1049
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
1050
|
-
i0.ɵɵelementStart(1, "label", 1);
|
|
1051
|
-
i0.ɵɵtext(2);
|
|
1052
|
-
i0.ɵɵpipe(3, "translate");
|
|
1053
|
-
i0.ɵɵtemplate(4, FieldRenderComponent_small_4_Template, 2, 3, "small", 2);
|
|
1054
|
-
i0.ɵɵtemplate(5, FieldRenderComponent_span_5_Template, 3, 3, "span", 3);
|
|
1055
|
-
i0.ɵɵelementEnd();
|
|
1056
|
-
i0.ɵɵprojection(6);
|
|
1057
|
-
i0.ɵɵelementEnd();
|
|
1058
|
-
}
|
|
1059
|
-
if (rf & 2) {
|
|
1060
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$3, ctx.state && !ctx.state.valid && (!ctx.state.pristine || ctx.state.touched) && ctx.state.errors));
|
|
1061
|
-
i0.ɵɵadvance(1);
|
|
1062
|
-
i0.ɵɵproperty("htmlFor", ctx.inputId);
|
|
1063
|
-
i0.ɵɵadvance(1);
|
|
1064
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, ctx.label), " ");
|
|
1065
|
-
i0.ɵɵadvance(2);
|
|
1066
|
-
i0.ɵɵproperty("ngIf", ctx.required);
|
|
1067
|
-
i0.ɵɵadvance(1);
|
|
1068
|
-
i0.ɵɵproperty("ngIf", ctx.tooltip);
|
|
1069
|
-
}
|
|
1070
|
-
}, directives: [i1.NgClass, i1.NgIf, i4.MatTooltip], pipes: [i7.TranslatePipe], styles: [".info-icon[_ngcontent-%COMP%]{color:#222d57;float:right;font-size:13px;margin-left:4px}"] });
|
|
1071
|
-
/*@__PURE__*/ (function () {
|
|
1072
|
-
i0.ɵsetClassMetadata(FieldRenderComponent, [{
|
|
1073
|
-
type: i0.Component,
|
|
1074
|
-
args: [{
|
|
1075
|
-
selector: 'field-render',
|
|
1076
|
-
templateUrl: 'field-render.html',
|
|
1077
|
-
styleUrls: ['field-render.scss']
|
|
1078
|
-
}]
|
|
1079
|
-
}], null, { label: [{
|
|
1080
|
-
type: i0.Input
|
|
1081
|
-
}], inputId: [{
|
|
1082
|
-
type: i0.Input
|
|
1083
|
-
}], tooltip: [{
|
|
1084
|
-
type: i0.Input
|
|
1085
|
-
}], required: [{
|
|
1086
|
-
type: i0.Input
|
|
1087
|
-
}], state: [{
|
|
1088
|
-
type: i0.Input
|
|
1089
|
-
}] });
|
|
1015
|
+
var _c0$3 = function (a0) { return { "has-error": a0 }; };
|
|
1016
|
+
function FieldRenderComponent_small_4_Template(rf, ctx) {
|
|
1017
|
+
if (rf & 1) {
|
|
1018
|
+
i0.ɵɵelementStart(0, "small", 0);
|
|
1019
|
+
i0.ɵɵtext(1, "(obrigat\u00F3rio)");
|
|
1020
|
+
i0.ɵɵelementEnd();
|
|
1021
|
+
}
|
|
1022
|
+
if (rf & 2) {
|
|
1023
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
1024
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$3, ctx_r0.state && !ctx_r0.state.valid && ctx_r0.state.errors));
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
function FieldRenderComponent_span_5_Template(rf, ctx) {
|
|
1028
|
+
if (rf & 1) {
|
|
1029
|
+
i0.ɵɵelementStart(0, "span", 4);
|
|
1030
|
+
i0.ɵɵpipe(1, "translate");
|
|
1031
|
+
i0.ɵɵelement(2, "i", 5);
|
|
1032
|
+
i0.ɵɵelementEnd();
|
|
1033
|
+
}
|
|
1034
|
+
if (rf & 2) {
|
|
1035
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
1036
|
+
i0.ɵɵpropertyInterpolate("matTooltip", i0.ɵɵpipeBind1(1, 1, ctx_r1.tooltip));
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
var _c1$1 = ["*"];
|
|
1040
|
+
var FieldRenderComponent = /** @class */ (function () {
|
|
1041
|
+
function FieldRenderComponent() {
|
|
1042
|
+
this.label = '';
|
|
1043
|
+
this.required = true;
|
|
1044
|
+
}
|
|
1045
|
+
return FieldRenderComponent;
|
|
1046
|
+
}());
|
|
1047
|
+
FieldRenderComponent.ɵfac = function FieldRenderComponent_Factory(t) { return new (t || FieldRenderComponent)(); };
|
|
1048
|
+
FieldRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldRenderComponent, selectors: [["field-render"]], inputs: { label: "label", inputId: "inputId", tooltip: "tooltip", required: "required", state: "state" }, ngContentSelectors: _c1$1, decls: 7, vars: 9, consts: [[3, "ngClass"], [1, "info-label", "bold", 3, "htmlFor"], [3, "ngClass", 4, "ngIf"], ["class", "info-icon", 3, "matTooltip", 4, "ngIf"], [1, "info-icon", 3, "matTooltip"], [1, "far", "fa-question-circle"]], template: function FieldRenderComponent_Template(rf, ctx) {
|
|
1049
|
+
if (rf & 1) {
|
|
1050
|
+
i0.ɵɵprojectionDef();
|
|
1051
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
1052
|
+
i0.ɵɵelementStart(1, "label", 1);
|
|
1053
|
+
i0.ɵɵtext(2);
|
|
1054
|
+
i0.ɵɵpipe(3, "translate");
|
|
1055
|
+
i0.ɵɵtemplate(4, FieldRenderComponent_small_4_Template, 2, 3, "small", 2);
|
|
1056
|
+
i0.ɵɵtemplate(5, FieldRenderComponent_span_5_Template, 3, 3, "span", 3);
|
|
1057
|
+
i0.ɵɵelementEnd();
|
|
1058
|
+
i0.ɵɵprojection(6);
|
|
1059
|
+
i0.ɵɵelementEnd();
|
|
1060
|
+
}
|
|
1061
|
+
if (rf & 2) {
|
|
1062
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$3, ctx.state && !ctx.state.valid && (!ctx.state.pristine || ctx.state.touched) && ctx.state.errors));
|
|
1063
|
+
i0.ɵɵadvance(1);
|
|
1064
|
+
i0.ɵɵproperty("htmlFor", ctx.inputId);
|
|
1065
|
+
i0.ɵɵadvance(1);
|
|
1066
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, ctx.label), " ");
|
|
1067
|
+
i0.ɵɵadvance(2);
|
|
1068
|
+
i0.ɵɵproperty("ngIf", ctx.required);
|
|
1069
|
+
i0.ɵɵadvance(1);
|
|
1070
|
+
i0.ɵɵproperty("ngIf", ctx.tooltip);
|
|
1071
|
+
}
|
|
1072
|
+
}, directives: [i1.NgClass, i1.NgIf, i4.MatTooltip], pipes: [i7.TranslatePipe], styles: [".info-icon[_ngcontent-%COMP%]{color:#222d57;float:right;font-size:13px;margin-left:4px}"] });
|
|
1073
|
+
/*@__PURE__*/ (function () {
|
|
1074
|
+
i0.ɵsetClassMetadata(FieldRenderComponent, [{
|
|
1075
|
+
type: i0.Component,
|
|
1076
|
+
args: [{
|
|
1077
|
+
selector: 'field-render',
|
|
1078
|
+
templateUrl: 'field-render.html',
|
|
1079
|
+
styleUrls: ['field-render.scss']
|
|
1080
|
+
}]
|
|
1081
|
+
}], null, { label: [{
|
|
1082
|
+
type: i0.Input
|
|
1083
|
+
}], inputId: [{
|
|
1084
|
+
type: i0.Input
|
|
1085
|
+
}], tooltip: [{
|
|
1086
|
+
type: i0.Input
|
|
1087
|
+
}], required: [{
|
|
1088
|
+
type: i0.Input
|
|
1089
|
+
}], state: [{
|
|
1090
|
+
type: i0.Input
|
|
1091
|
+
}] });
|
|
1090
1092
|
})();
|
|
1091
1093
|
|
|
1092
|
-
var _c0$4 = function () { return { standalone: true }; };
|
|
1093
|
-
var NumberInputComponent = /** @class */ (function (_super) {
|
|
1094
|
-
__extends(NumberInputComponent, _super);
|
|
1095
|
-
function NumberInputComponent() {
|
|
1096
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1097
|
-
}
|
|
1098
|
-
NumberInputComponent.prototype.ngAfterContentInit = function () {
|
|
1099
|
-
this.value = this.model;
|
|
1100
|
-
};
|
|
1101
|
-
NumberInputComponent.prototype.changeValue = function ($event) {
|
|
1102
|
-
if ($event && !isNaN($event)) {
|
|
1103
|
-
this.model = Number($event);
|
|
1104
|
-
this.modelChange.emit(this.model);
|
|
1105
|
-
}
|
|
1106
|
-
else {
|
|
1107
|
-
this.model = $event;
|
|
1108
|
-
this.modelChange.emit(this.model);
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
|
-
return NumberInputComponent;
|
|
1112
|
-
}(BaseSchemaComponent));
|
|
1113
|
-
NumberInputComponent.ɵfac = function NumberInputComponent_Factory(t) { return ɵNumberInputComponent_BaseFactory(t || NumberInputComponent); };
|
|
1114
|
-
NumberInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NumberInputComponent, selectors: [["number-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 6, consts: [[1, "form-control", "number-input", 3, "id", "placeholder", "ngModel", "ngModelOptions", "maxlength", "ngModelChange"]], template: function NumberInputComponent_Template(rf, ctx) {
|
|
1115
|
-
if (rf & 1) {
|
|
1116
|
-
i0.ɵɵelementStart(0, "input", 0);
|
|
1117
|
-
i0.ɵɵlistener("ngModelChange", function NumberInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.value = $event; })("ngModelChange", function NumberInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.changeValue($event); });
|
|
1118
|
-
i0.ɵɵelementEnd();
|
|
1119
|
-
}
|
|
1120
|
-
if (rf & 2) {
|
|
1121
|
-
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0$4))("maxlength", ctx.maxLength);
|
|
1122
|
-
}
|
|
1123
|
-
}, directives: [i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator], encapsulation: 2 });
|
|
1124
|
-
var ɵNumberInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(NumberInputComponent);
|
|
1125
|
-
/*@__PURE__*/ (function () {
|
|
1126
|
-
i0.ɵsetClassMetadata(NumberInputComponent, [{
|
|
1127
|
-
type: i0.Component,
|
|
1128
|
-
args: [{
|
|
1129
|
-
selector: 'number-input',
|
|
1130
|
-
templateUrl: 'number-input.component.html'
|
|
1131
|
-
}]
|
|
1132
|
-
}], null, { placeholder: [{
|
|
1133
|
-
type: i0.Input
|
|
1134
|
-
}], inputId: [{
|
|
1135
|
-
type: i0.Input
|
|
1136
|
-
}], maxLength: [{
|
|
1137
|
-
type: i0.Input
|
|
1138
|
-
}] });
|
|
1094
|
+
var _c0$4 = function () { return { standalone: true }; };
|
|
1095
|
+
var NumberInputComponent = /** @class */ (function (_super) {
|
|
1096
|
+
__extends(NumberInputComponent, _super);
|
|
1097
|
+
function NumberInputComponent() {
|
|
1098
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1099
|
+
}
|
|
1100
|
+
NumberInputComponent.prototype.ngAfterContentInit = function () {
|
|
1101
|
+
this.value = this.model;
|
|
1102
|
+
};
|
|
1103
|
+
NumberInputComponent.prototype.changeValue = function ($event) {
|
|
1104
|
+
if ($event && !isNaN($event)) {
|
|
1105
|
+
this.model = Number($event);
|
|
1106
|
+
this.modelChange.emit(this.model);
|
|
1107
|
+
}
|
|
1108
|
+
else {
|
|
1109
|
+
this.model = $event;
|
|
1110
|
+
this.modelChange.emit(this.model);
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
return NumberInputComponent;
|
|
1114
|
+
}(BaseSchemaComponent));
|
|
1115
|
+
NumberInputComponent.ɵfac = function NumberInputComponent_Factory(t) { return ɵNumberInputComponent_BaseFactory(t || NumberInputComponent); };
|
|
1116
|
+
NumberInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NumberInputComponent, selectors: [["number-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 6, consts: [[1, "form-control", "number-input", 3, "id", "placeholder", "ngModel", "ngModelOptions", "maxlength", "ngModelChange"]], template: function NumberInputComponent_Template(rf, ctx) {
|
|
1117
|
+
if (rf & 1) {
|
|
1118
|
+
i0.ɵɵelementStart(0, "input", 0);
|
|
1119
|
+
i0.ɵɵlistener("ngModelChange", function NumberInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.value = $event; })("ngModelChange", function NumberInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.changeValue($event); });
|
|
1120
|
+
i0.ɵɵelementEnd();
|
|
1121
|
+
}
|
|
1122
|
+
if (rf & 2) {
|
|
1123
|
+
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0$4))("maxlength", ctx.maxLength);
|
|
1124
|
+
}
|
|
1125
|
+
}, directives: [i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator], encapsulation: 2 });
|
|
1126
|
+
var ɵNumberInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(NumberInputComponent);
|
|
1127
|
+
/*@__PURE__*/ (function () {
|
|
1128
|
+
i0.ɵsetClassMetadata(NumberInputComponent, [{
|
|
1129
|
+
type: i0.Component,
|
|
1130
|
+
args: [{
|
|
1131
|
+
selector: 'number-input',
|
|
1132
|
+
templateUrl: 'number-input.component.html'
|
|
1133
|
+
}]
|
|
1134
|
+
}], null, { placeholder: [{
|
|
1135
|
+
type: i0.Input
|
|
1136
|
+
}], inputId: [{
|
|
1137
|
+
type: i0.Input
|
|
1138
|
+
}], maxLength: [{
|
|
1139
|
+
type: i0.Input
|
|
1140
|
+
}] });
|
|
1139
1141
|
})();
|
|
1140
1142
|
|
|
1141
|
-
var _c0$5 = function () { return { standalone: true }; };
|
|
1142
|
-
var BooleanInputComponent = /** @class */ (function (_super) {
|
|
1143
|
-
__extends(BooleanInputComponent, _super);
|
|
1144
|
-
function BooleanInputComponent() {
|
|
1145
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1146
|
-
}
|
|
1147
|
-
BooleanInputComponent.prototype.ngAfterContentInit = function () {
|
|
1148
|
-
this.value = this.model;
|
|
1149
|
-
};
|
|
1150
|
-
BooleanInputComponent.prototype.changeValue = function ($event) {
|
|
1151
|
-
if ($event && ($event === 'true' || $event === 'false')) {
|
|
1152
|
-
this.model = $event === 'true';
|
|
1153
|
-
this.value = this.model;
|
|
1154
|
-
this.modelChange.emit(this.model);
|
|
1155
|
-
}
|
|
1156
|
-
else {
|
|
1157
|
-
this.model = $event;
|
|
1158
|
-
this.value = this.model;
|
|
1159
|
-
this.modelChange.emit(this.model);
|
|
1160
|
-
}
|
|
1161
|
-
};
|
|
1162
|
-
return BooleanInputComponent;
|
|
1163
|
-
}(BaseSchemaComponent));
|
|
1164
|
-
BooleanInputComponent.ɵfac = function BooleanInputComponent_Factory(t) { return ɵBooleanInputComponent_BaseFactory(t || BooleanInputComponent); };
|
|
1165
|
-
BooleanInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BooleanInputComponent, selectors: [["boolean-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 6, consts: [[1, "form-control", 3, "id", "placeholder", "ngModel", "ngModelOptions", "maxlength", "ngModelChange"]], template: function BooleanInputComponent_Template(rf, ctx) {
|
|
1166
|
-
if (rf & 1) {
|
|
1167
|
-
i0.ɵɵelementStart(0, "input", 0);
|
|
1168
|
-
i0.ɵɵlistener("ngModelChange", function BooleanInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.value = $event; })("ngModelChange", function BooleanInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.changeValue($event); });
|
|
1169
|
-
i0.ɵɵelementEnd();
|
|
1170
|
-
}
|
|
1171
|
-
if (rf & 2) {
|
|
1172
|
-
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0$5))("maxlength", ctx.maxLength);
|
|
1173
|
-
}
|
|
1174
|
-
}, directives: [i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator], encapsulation: 2 });
|
|
1175
|
-
var ɵBooleanInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(BooleanInputComponent);
|
|
1176
|
-
/*@__PURE__*/ (function () {
|
|
1177
|
-
i0.ɵsetClassMetadata(BooleanInputComponent, [{
|
|
1178
|
-
type: i0.Component,
|
|
1179
|
-
args: [{
|
|
1180
|
-
selector: 'boolean-input',
|
|
1181
|
-
templateUrl: 'boolean-input.component.html',
|
|
1182
|
-
}]
|
|
1183
|
-
}], null, { placeholder: [{
|
|
1184
|
-
type: i0.Input
|
|
1185
|
-
}], inputId: [{
|
|
1186
|
-
type: i0.Input
|
|
1187
|
-
}], maxLength: [{
|
|
1188
|
-
type: i0.Input
|
|
1189
|
-
}] });
|
|
1143
|
+
var _c0$5 = function () { return { standalone: true }; };
|
|
1144
|
+
var BooleanInputComponent = /** @class */ (function (_super) {
|
|
1145
|
+
__extends(BooleanInputComponent, _super);
|
|
1146
|
+
function BooleanInputComponent() {
|
|
1147
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1148
|
+
}
|
|
1149
|
+
BooleanInputComponent.prototype.ngAfterContentInit = function () {
|
|
1150
|
+
this.value = this.model;
|
|
1151
|
+
};
|
|
1152
|
+
BooleanInputComponent.prototype.changeValue = function ($event) {
|
|
1153
|
+
if ($event && ($event === 'true' || $event === 'false')) {
|
|
1154
|
+
this.model = $event === 'true';
|
|
1155
|
+
this.value = this.model;
|
|
1156
|
+
this.modelChange.emit(this.model);
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
this.model = $event;
|
|
1160
|
+
this.value = this.model;
|
|
1161
|
+
this.modelChange.emit(this.model);
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
return BooleanInputComponent;
|
|
1165
|
+
}(BaseSchemaComponent));
|
|
1166
|
+
BooleanInputComponent.ɵfac = function BooleanInputComponent_Factory(t) { return ɵBooleanInputComponent_BaseFactory(t || BooleanInputComponent); };
|
|
1167
|
+
BooleanInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BooleanInputComponent, selectors: [["boolean-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 6, consts: [[1, "form-control", 3, "id", "placeholder", "ngModel", "ngModelOptions", "maxlength", "ngModelChange"]], template: function BooleanInputComponent_Template(rf, ctx) {
|
|
1168
|
+
if (rf & 1) {
|
|
1169
|
+
i0.ɵɵelementStart(0, "input", 0);
|
|
1170
|
+
i0.ɵɵlistener("ngModelChange", function BooleanInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.value = $event; })("ngModelChange", function BooleanInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.changeValue($event); });
|
|
1171
|
+
i0.ɵɵelementEnd();
|
|
1172
|
+
}
|
|
1173
|
+
if (rf & 2) {
|
|
1174
|
+
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0$5))("maxlength", ctx.maxLength);
|
|
1175
|
+
}
|
|
1176
|
+
}, directives: [i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator], encapsulation: 2 });
|
|
1177
|
+
var ɵBooleanInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(BooleanInputComponent);
|
|
1178
|
+
/*@__PURE__*/ (function () {
|
|
1179
|
+
i0.ɵsetClassMetadata(BooleanInputComponent, [{
|
|
1180
|
+
type: i0.Component,
|
|
1181
|
+
args: [{
|
|
1182
|
+
selector: 'boolean-input',
|
|
1183
|
+
templateUrl: 'boolean-input.component.html',
|
|
1184
|
+
}]
|
|
1185
|
+
}], null, { placeholder: [{
|
|
1186
|
+
type: i0.Input
|
|
1187
|
+
}], inputId: [{
|
|
1188
|
+
type: i0.Input
|
|
1189
|
+
}], maxLength: [{
|
|
1190
|
+
type: i0.Input
|
|
1191
|
+
}] });
|
|
1190
1192
|
})();
|
|
1191
1193
|
|
|
1192
|
-
var _c0$6 = function () { return { standalone: true }; };
|
|
1193
|
-
function InputRenderComponent_input_1_Template(rf, ctx) {
|
|
1194
|
-
if (rf & 1) {
|
|
1195
|
-
var _r5_1 = i0.ɵɵgetCurrentView();
|
|
1196
|
-
i0.ɵɵelementStart(0, "input", 4);
|
|
1197
|
-
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_input_1_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5_1); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.value = $event; })("ngModelChange", function InputRenderComponent_input_1_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5_1); var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.onChange($event); });
|
|
1198
|
-
i0.ɵɵelementEnd();
|
|
1199
|
-
}
|
|
1200
|
-
if (rf & 2) {
|
|
1201
|
-
var ctx_r0 = i0.ɵɵnextContext();
|
|
1202
|
-
i0.ɵɵpropertyInterpolate("placeholder", ctx_r0.schema.description);
|
|
1203
|
-
i0.ɵɵproperty("type", ctx_r0.schema.type === "password" ? "password" : "text")("ngModel", ctx_r0.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$6))("id", ctx_r0.inputId)("maxlength", ctx_r0.schema.maxLength);
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
function InputRenderComponent_select_box_2_Template(rf, ctx) {
|
|
1207
|
-
if (rf & 1) {
|
|
1208
|
-
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
1209
|
-
i0.ɵɵelementStart(0, "select-box", 5);
|
|
1210
|
-
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.value = $event; })("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.onChange($event.key); });
|
|
1211
|
-
i0.ɵɵpipe(1, "translate");
|
|
1212
|
-
i0.ɵɵpipe(2, "translate");
|
|
1213
|
-
i0.ɵɵpipe(3, "translate");
|
|
1214
|
-
i0.ɵɵpipe(4, "translate");
|
|
1215
|
-
i0.ɵɵelementEnd();
|
|
1216
|
-
}
|
|
1217
|
-
if (rf & 2) {
|
|
1218
|
-
var ctx_r1 = i0.ɵɵnextContext();
|
|
1219
|
-
i0.ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(20, _c0$6))("placeholder", i0.ɵɵpipeBind1(1, 12, ctx_r1.schema.description || "COMPONENTS.SCHEMA.SELECT.PLACEHOLDER"))("searchPlaceHolder", i0.ɵɵpipeBind1(2, 14, "COMPONENTS.SCHEMA.SELECT.SEARCH"))("clearText", i0.ɵɵpipeBind1(3, 16, "COMPONENTS.SCHEMA.SELECT.CLEAR"))("notFoundText", i0.ɵɵpipeBind1(4, 18, "COMPONENTS.SCHEMA.SELECT.NOT_FOUND"))("bindKey", "key")("bindValue", "value")("enabledSearch", true)("limitItens", 30)("data", ctx_r1.schema.options);
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
function InputRenderComponent_number_input_3_Template(rf, ctx) {
|
|
1223
|
-
if (rf & 1) {
|
|
1224
|
-
var _r11_1 = i0.ɵɵgetCurrentView();
|
|
1225
|
-
i0.ɵɵelementStart(0, "number-input", 6);
|
|
1226
|
-
i0.ɵɵlistener("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r11_1); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.value = $event; })("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r11_1); var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.onChange($event); });
|
|
1227
|
-
i0.ɵɵelementEnd();
|
|
1228
|
-
}
|
|
1229
|
-
if (rf & 2) {
|
|
1230
|
-
var ctx_r2 = i0.ɵɵnextContext();
|
|
1231
|
-
i0.ɵɵproperty("model", ctx_r2.value)("inputId", ctx_r2.inputId)("placeholder", ctx_r2.schema.description)("maxLength", ctx_r2.schema.maxLength);
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
function InputRenderComponent_boolean_input_4_Template(rf, ctx) {
|
|
1235
|
-
if (rf & 1) {
|
|
1236
|
-
var _r14_1 = i0.ɵɵgetCurrentView();
|
|
1237
|
-
i0.ɵɵelementStart(0, "boolean-input", 6);
|
|
1238
|
-
i0.ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r14_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.value = $event; })("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r14_1); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.onChange($event); });
|
|
1239
|
-
i0.ɵɵelementEnd();
|
|
1240
|
-
}
|
|
1241
|
-
if (rf & 2) {
|
|
1242
|
-
var ctx_r3 = i0.ɵɵnextContext();
|
|
1243
|
-
i0.ɵɵproperty("model", ctx_r3.value)("inputId", ctx_r3.inputId)("placeholder", ctx_r3.schema.description)("maxLength", ctx_r3.schema.maxLength);
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
var InputRenderComponent = /** @class */ (function (_super) {
|
|
1247
|
-
__extends(InputRenderComponent, _super);
|
|
1248
|
-
function InputRenderComponent() {
|
|
1249
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1250
|
-
_this.schema = {};
|
|
1251
|
-
_this.editing = false;
|
|
1252
|
-
_this.onDropEvent = new i0.EventEmitter();
|
|
1253
|
-
return _this;
|
|
1254
|
-
}
|
|
1255
|
-
InputRenderComponent.prototype.ngAfterContentInit = function () {
|
|
1256
|
-
var _this = this;
|
|
1257
|
-
var _a, _b;
|
|
1258
|
-
if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) !== 'object' && ((_b = this.schema) === null || _b === void 0 ? void 0 : _b.type) !== 'array') {
|
|
1259
|
-
if (!this.editing && this.schema.options) {
|
|
1260
|
-
var $event = this.schema.options.filter(function (item) { return item.selected === true; });
|
|
1261
|
-
if ($event[0]) {
|
|
1262
|
-
this.onChange($event[0].key);
|
|
1263
|
-
this.value = $event[0];
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
else if (this.editing && this.schema.options && this.model) {
|
|
1267
|
-
var $event = this.schema.options.filter(function (item) { return item.key === _this.model; });
|
|
1268
|
-
if ($event[0]) {
|
|
1269
|
-
this.onChange($event[0].key);
|
|
1270
|
-
this.value = $event[0];
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
else {
|
|
1274
|
-
this.value = this.model;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
|
-
InputRenderComponent.prototype.onChange = function ($event) {
|
|
1279
|
-
this.model = $event;
|
|
1280
|
-
this.modelChange.emit(this.model);
|
|
1281
|
-
};
|
|
1282
|
-
return InputRenderComponent;
|
|
1283
|
-
}(BaseSchemaComponent));
|
|
1284
|
-
InputRenderComponent.ɵfac = function InputRenderComponent_Factory(t) { return ɵInputRenderComponent_BaseFactory(t || InputRenderComponent); };
|
|
1285
|
-
InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "schema-input-container"], ["class", "form-control", "dndDropzone", "", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) {
|
|
1286
|
-
if (rf & 1) {
|
|
1287
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
1288
|
-
i0.ɵɵtemplate(1, InputRenderComponent_input_1_Template, 1, 7, "input", 1);
|
|
1289
|
-
i0.ɵɵtemplate(2, InputRenderComponent_select_box_2_Template, 5, 21, "select-box", 2);
|
|
1290
|
-
i0.ɵɵtemplate(3, InputRenderComponent_number_input_3_Template, 1, 4, "number-input", 3);
|
|
1291
|
-
i0.ɵɵtemplate(4, InputRenderComponent_boolean_input_4_Template, 1, 4, "boolean-input", 3);
|
|
1292
|
-
i0.ɵɵelementEnd();
|
|
1293
|
-
}
|
|
1294
|
-
if (rf & 2) {
|
|
1295
|
-
i0.ɵɵadvance(1);
|
|
1296
|
-
i0.ɵɵproperty("ngIf", (ctx.schema.type === "string" || ctx.schema.type === "password") && !ctx.schema.options);
|
|
1297
|
-
i0.ɵɵadvance(1);
|
|
1298
|
-
i0.ɵɵproperty("ngIf", ctx.schema.type === "string" && ctx.schema.options);
|
|
1299
|
-
i0.ɵɵadvance(1);
|
|
1300
|
-
i0.ɵɵproperty("ngIf", ctx.schema.type === "number");
|
|
1301
|
-
i0.ɵɵadvance(1);
|
|
1302
|
-
i0.ɵɵproperty("ngIf", ctx.schema.type === "boolean");
|
|
1303
|
-
}
|
|
1304
|
-
}, directives: [i1.NgIf, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator, i8.SelectBoxComponent, NumberInputComponent, BooleanInputComponent], pipes: [i7.TranslatePipe], styles: [""] });
|
|
1305
|
-
var ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputRenderComponent);
|
|
1306
|
-
/*@__PURE__*/ (function () {
|
|
1307
|
-
i0.ɵsetClassMetadata(InputRenderComponent, [{
|
|
1308
|
-
type: i0.Component,
|
|
1309
|
-
args: [{
|
|
1310
|
-
selector: 'input-render',
|
|
1311
|
-
templateUrl: 'input-render.html',
|
|
1312
|
-
styleUrls: ['./input-render.scss']
|
|
1313
|
-
}]
|
|
1314
|
-
}], null, { schema: [{
|
|
1315
|
-
type: i0.Input
|
|
1316
|
-
}], modelPropertiesPath: [{
|
|
1317
|
-
type: i0.Input
|
|
1318
|
-
}], inputId: [{
|
|
1319
|
-
type: i0.Input
|
|
1320
|
-
}], editing: [{
|
|
1321
|
-
type: i0.Input
|
|
1322
|
-
}], onDropEvent: [{
|
|
1323
|
-
type: i0.Output
|
|
1324
|
-
}] });
|
|
1194
|
+
var _c0$6 = function () { return { standalone: true }; };
|
|
1195
|
+
function InputRenderComponent_input_1_Template(rf, ctx) {
|
|
1196
|
+
if (rf & 1) {
|
|
1197
|
+
var _r5_1 = i0.ɵɵgetCurrentView();
|
|
1198
|
+
i0.ɵɵelementStart(0, "input", 4);
|
|
1199
|
+
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_input_1_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5_1); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.value = $event; })("ngModelChange", function InputRenderComponent_input_1_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5_1); var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.onChange($event); });
|
|
1200
|
+
i0.ɵɵelementEnd();
|
|
1201
|
+
}
|
|
1202
|
+
if (rf & 2) {
|
|
1203
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
1204
|
+
i0.ɵɵpropertyInterpolate("placeholder", ctx_r0.schema.description);
|
|
1205
|
+
i0.ɵɵproperty("type", ctx_r0.schema.type === "password" ? "password" : "text")("ngModel", ctx_r0.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$6))("id", ctx_r0.inputId)("maxlength", ctx_r0.schema.maxLength);
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
function InputRenderComponent_select_box_2_Template(rf, ctx) {
|
|
1209
|
+
if (rf & 1) {
|
|
1210
|
+
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
1211
|
+
i0.ɵɵelementStart(0, "select-box", 5);
|
|
1212
|
+
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.value = $event; })("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.onChange($event.key); });
|
|
1213
|
+
i0.ɵɵpipe(1, "translate");
|
|
1214
|
+
i0.ɵɵpipe(2, "translate");
|
|
1215
|
+
i0.ɵɵpipe(3, "translate");
|
|
1216
|
+
i0.ɵɵpipe(4, "translate");
|
|
1217
|
+
i0.ɵɵelementEnd();
|
|
1218
|
+
}
|
|
1219
|
+
if (rf & 2) {
|
|
1220
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
1221
|
+
i0.ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(20, _c0$6))("placeholder", i0.ɵɵpipeBind1(1, 12, ctx_r1.schema.description || "COMPONENTS.SCHEMA.SELECT.PLACEHOLDER"))("searchPlaceHolder", i0.ɵɵpipeBind1(2, 14, "COMPONENTS.SCHEMA.SELECT.SEARCH"))("clearText", i0.ɵɵpipeBind1(3, 16, "COMPONENTS.SCHEMA.SELECT.CLEAR"))("notFoundText", i0.ɵɵpipeBind1(4, 18, "COMPONENTS.SCHEMA.SELECT.NOT_FOUND"))("bindKey", "key")("bindValue", "value")("enabledSearch", true)("limitItens", 30)("data", ctx_r1.schema.options);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
function InputRenderComponent_number_input_3_Template(rf, ctx) {
|
|
1225
|
+
if (rf & 1) {
|
|
1226
|
+
var _r11_1 = i0.ɵɵgetCurrentView();
|
|
1227
|
+
i0.ɵɵelementStart(0, "number-input", 6);
|
|
1228
|
+
i0.ɵɵlistener("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r11_1); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.value = $event; })("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r11_1); var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.onChange($event); });
|
|
1229
|
+
i0.ɵɵelementEnd();
|
|
1230
|
+
}
|
|
1231
|
+
if (rf & 2) {
|
|
1232
|
+
var ctx_r2 = i0.ɵɵnextContext();
|
|
1233
|
+
i0.ɵɵproperty("model", ctx_r2.value)("inputId", ctx_r2.inputId)("placeholder", ctx_r2.schema.description)("maxLength", ctx_r2.schema.maxLength);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
function InputRenderComponent_boolean_input_4_Template(rf, ctx) {
|
|
1237
|
+
if (rf & 1) {
|
|
1238
|
+
var _r14_1 = i0.ɵɵgetCurrentView();
|
|
1239
|
+
i0.ɵɵelementStart(0, "boolean-input", 6);
|
|
1240
|
+
i0.ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r14_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.value = $event; })("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r14_1); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.onChange($event); });
|
|
1241
|
+
i0.ɵɵelementEnd();
|
|
1242
|
+
}
|
|
1243
|
+
if (rf & 2) {
|
|
1244
|
+
var ctx_r3 = i0.ɵɵnextContext();
|
|
1245
|
+
i0.ɵɵproperty("model", ctx_r3.value)("inputId", ctx_r3.inputId)("placeholder", ctx_r3.schema.description)("maxLength", ctx_r3.schema.maxLength);
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
var InputRenderComponent = /** @class */ (function (_super) {
|
|
1249
|
+
__extends(InputRenderComponent, _super);
|
|
1250
|
+
function InputRenderComponent() {
|
|
1251
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1252
|
+
_this.schema = {};
|
|
1253
|
+
_this.editing = false;
|
|
1254
|
+
_this.onDropEvent = new i0.EventEmitter();
|
|
1255
|
+
return _this;
|
|
1256
|
+
}
|
|
1257
|
+
InputRenderComponent.prototype.ngAfterContentInit = function () {
|
|
1258
|
+
var _this = this;
|
|
1259
|
+
var _a, _b;
|
|
1260
|
+
if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) !== 'object' && ((_b = this.schema) === null || _b === void 0 ? void 0 : _b.type) !== 'array') {
|
|
1261
|
+
if (!this.editing && this.schema.options) {
|
|
1262
|
+
var $event = this.schema.options.filter(function (item) { return item.selected === true; });
|
|
1263
|
+
if ($event[0]) {
|
|
1264
|
+
this.onChange($event[0].key);
|
|
1265
|
+
this.value = $event[0];
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
else if (this.editing && this.schema.options && this.model) {
|
|
1269
|
+
var $event = this.schema.options.filter(function (item) { return item.key === _this.model; });
|
|
1270
|
+
if ($event[0]) {
|
|
1271
|
+
this.onChange($event[0].key);
|
|
1272
|
+
this.value = $event[0];
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
else {
|
|
1276
|
+
this.value = this.model;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
};
|
|
1280
|
+
InputRenderComponent.prototype.onChange = function ($event) {
|
|
1281
|
+
this.model = $event;
|
|
1282
|
+
this.modelChange.emit(this.model);
|
|
1283
|
+
};
|
|
1284
|
+
return InputRenderComponent;
|
|
1285
|
+
}(BaseSchemaComponent));
|
|
1286
|
+
InputRenderComponent.ɵfac = function InputRenderComponent_Factory(t) { return ɵInputRenderComponent_BaseFactory(t || InputRenderComponent); };
|
|
1287
|
+
InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "schema-input-container"], ["class", "form-control", "dndDropzone", "", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) {
|
|
1288
|
+
if (rf & 1) {
|
|
1289
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
1290
|
+
i0.ɵɵtemplate(1, InputRenderComponent_input_1_Template, 1, 7, "input", 1);
|
|
1291
|
+
i0.ɵɵtemplate(2, InputRenderComponent_select_box_2_Template, 5, 21, "select-box", 2);
|
|
1292
|
+
i0.ɵɵtemplate(3, InputRenderComponent_number_input_3_Template, 1, 4, "number-input", 3);
|
|
1293
|
+
i0.ɵɵtemplate(4, InputRenderComponent_boolean_input_4_Template, 1, 4, "boolean-input", 3);
|
|
1294
|
+
i0.ɵɵelementEnd();
|
|
1295
|
+
}
|
|
1296
|
+
if (rf & 2) {
|
|
1297
|
+
i0.ɵɵadvance(1);
|
|
1298
|
+
i0.ɵɵproperty("ngIf", (ctx.schema.type === "string" || ctx.schema.type === "password") && !ctx.schema.options);
|
|
1299
|
+
i0.ɵɵadvance(1);
|
|
1300
|
+
i0.ɵɵproperty("ngIf", ctx.schema.type === "string" && ctx.schema.options);
|
|
1301
|
+
i0.ɵɵadvance(1);
|
|
1302
|
+
i0.ɵɵproperty("ngIf", ctx.schema.type === "number");
|
|
1303
|
+
i0.ɵɵadvance(1);
|
|
1304
|
+
i0.ɵɵproperty("ngIf", ctx.schema.type === "boolean");
|
|
1305
|
+
}
|
|
1306
|
+
}, directives: [i1.NgIf, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator, i8.SelectBoxComponent, NumberInputComponent, BooleanInputComponent], pipes: [i7.TranslatePipe], styles: [""] });
|
|
1307
|
+
var ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputRenderComponent);
|
|
1308
|
+
/*@__PURE__*/ (function () {
|
|
1309
|
+
i0.ɵsetClassMetadata(InputRenderComponent, [{
|
|
1310
|
+
type: i0.Component,
|
|
1311
|
+
args: [{
|
|
1312
|
+
selector: 'input-render',
|
|
1313
|
+
templateUrl: 'input-render.html',
|
|
1314
|
+
styleUrls: ['./input-render.scss']
|
|
1315
|
+
}]
|
|
1316
|
+
}], null, { schema: [{
|
|
1317
|
+
type: i0.Input
|
|
1318
|
+
}], modelPropertiesPath: [{
|
|
1319
|
+
type: i0.Input
|
|
1320
|
+
}], inputId: [{
|
|
1321
|
+
type: i0.Input
|
|
1322
|
+
}], editing: [{
|
|
1323
|
+
type: i0.Input
|
|
1324
|
+
}], onDropEvent: [{
|
|
1325
|
+
type: i0.Output
|
|
1326
|
+
}] });
|
|
1325
1327
|
})();
|
|
1326
1328
|
|
|
1327
|
-
function SchemaInputComponent_div_0_Template(rf, ctx) {
|
|
1328
|
-
if (rf & 1) {
|
|
1329
|
-
var _r3_1 = i0.ɵɵgetCurrentView();
|
|
1330
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
1331
|
-
i0.ɵɵelementStart(1, "div", 2);
|
|
1332
|
-
i0.ɵɵelementStart(2, "field-render", 3);
|
|
1333
|
-
i0.ɵɵelementStart(3, "input-render", 4);
|
|
1334
|
-
i0.ɵɵlistener("modelChange", function SchemaInputComponent_div_0_Template_input_render_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r2 = i0.ɵɵnextContext(); return (ctx_r2.model[ctx_r2.schema.id] = $event); });
|
|
1335
|
-
i0.ɵɵelementEnd();
|
|
1336
|
-
i0.ɵɵelementEnd();
|
|
1337
|
-
i0.ɵɵelementEnd();
|
|
1338
|
-
i0.ɵɵelementEnd();
|
|
1339
|
-
}
|
|
1340
|
-
if (rf & 2) {
|
|
1341
|
-
var ctx_r0 = i0.ɵɵnextContext();
|
|
1342
|
-
i0.ɵɵadvance(2);
|
|
1343
|
-
i0.ɵɵproperty("label", ctx_r0.schema.title)("tooltip", ctx_r0.schema.help)("inputId", ctx_r0.getId(ctx_r0.index));
|
|
1344
|
-
i0.ɵɵadvance(1);
|
|
1345
|
-
i0.ɵɵproperty("inputId", ctx_r0.getId(ctx_r0.index))("schema", ctx_r0.schema)("model", ctx_r0.model[ctx_r0.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r0.schema.id)("editing", ctx_r0.editing);
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
function SchemaInputComponent_div_1_span_4_Template(rf, ctx) {
|
|
1349
|
-
if (rf & 1) {
|
|
1350
|
-
i0.ɵɵelementStart(0, "span", 7);
|
|
1351
|
-
i0.ɵɵpipe(1, "translate");
|
|
1352
|
-
i0.ɵɵtext(2, "?");
|
|
1353
|
-
i0.ɵɵelementEnd();
|
|
1354
|
-
}
|
|
1355
|
-
if (rf & 2) {
|
|
1356
|
-
var ctx_r4 = i0.ɵɵnextContext(2);
|
|
1357
|
-
i0.ɵɵpropertyInterpolate("matTooltip", i0.ɵɵpipeBind1(1, 1, ctx_r4.schema.help));
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
function SchemaInputComponent_div_1_Template(rf, ctx) {
|
|
1361
|
-
if (rf & 1) {
|
|
1362
|
-
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
1363
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
1364
|
-
i0.ɵɵelementStart(1, "div", 2);
|
|
1365
|
-
i0.ɵɵelementStart(2, "label", 5);
|
|
1366
|
-
i0.ɵɵtext(3);
|
|
1367
|
-
i0.ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template, 3, 3, "span", 6);
|
|
1368
|
-
i0.ɵɵelementEnd();
|
|
1369
|
-
i0.ɵɵelementStart(5, "input-render", 4);
|
|
1370
|
-
i0.ɵɵlistener("modelChange", function SchemaInputComponent_div_1_Template_input_render_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(); return (ctx_r5.model[ctx_r5.schema.id] = $event); });
|
|
1371
|
-
i0.ɵɵelementEnd();
|
|
1372
|
-
i0.ɵɵelementEnd();
|
|
1373
|
-
i0.ɵɵelementEnd();
|
|
1374
|
-
}
|
|
1375
|
-
if (rf & 2) {
|
|
1376
|
-
var ctx_r1 = i0.ɵɵnextContext();
|
|
1377
|
-
i0.ɵɵadvance(2);
|
|
1378
|
-
i0.ɵɵproperty("htmlFor", ctx_r1.getId(ctx_r1.index));
|
|
1379
|
-
i0.ɵɵadvance(1);
|
|
1380
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.schema.title, " ");
|
|
1381
|
-
i0.ɵɵadvance(1);
|
|
1382
|
-
i0.ɵɵproperty("ngIf", ctx_r1.schema.help);
|
|
1383
|
-
i0.ɵɵadvance(1);
|
|
1384
|
-
i0.ɵɵproperty("inputId", ctx_r1.getId(ctx_r1.index))("schema", ctx_r1.schema)("model", ctx_r1.model[ctx_r1.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r1.schema.id)("editing", ctx_r1.editing);
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
var SchemaInputComponent = /** @class */ (function (_super) {
|
|
1388
|
-
__extends(SchemaInputComponent, _super);
|
|
1389
|
-
function SchemaInputComponent() {
|
|
1390
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1391
|
-
_this.editing = false;
|
|
1392
|
-
return _this;
|
|
1393
|
-
}
|
|
1394
|
-
SchemaInputComponent.prototype.ngAfterContentInit = function () {
|
|
1395
|
-
this.loaded = true;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
SchemaInputComponent.ɵ
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
i0.ɵɵtemplate(
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
i0.ɵɵ
|
|
1411
|
-
i0.ɵɵ
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
/*@__PURE__*/ (
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1329
|
+
function SchemaInputComponent_div_0_Template(rf, ctx) {
|
|
1330
|
+
if (rf & 1) {
|
|
1331
|
+
var _r3_1 = i0.ɵɵgetCurrentView();
|
|
1332
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
1333
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
1334
|
+
i0.ɵɵelementStart(2, "field-render", 3);
|
|
1335
|
+
i0.ɵɵelementStart(3, "input-render", 4);
|
|
1336
|
+
i0.ɵɵlistener("modelChange", function SchemaInputComponent_div_0_Template_input_render_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r2 = i0.ɵɵnextContext(); return (ctx_r2.model[ctx_r2.schema.id] = $event); });
|
|
1337
|
+
i0.ɵɵelementEnd();
|
|
1338
|
+
i0.ɵɵelementEnd();
|
|
1339
|
+
i0.ɵɵelementEnd();
|
|
1340
|
+
i0.ɵɵelementEnd();
|
|
1341
|
+
}
|
|
1342
|
+
if (rf & 2) {
|
|
1343
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
1344
|
+
i0.ɵɵadvance(2);
|
|
1345
|
+
i0.ɵɵproperty("label", ctx_r0.schema.title)("tooltip", ctx_r0.schema.help)("inputId", ctx_r0.getId(ctx_r0.index));
|
|
1346
|
+
i0.ɵɵadvance(1);
|
|
1347
|
+
i0.ɵɵproperty("inputId", ctx_r0.getId(ctx_r0.index))("schema", ctx_r0.schema)("model", ctx_r0.model[ctx_r0.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r0.schema.id)("editing", ctx_r0.editing);
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
function SchemaInputComponent_div_1_span_4_Template(rf, ctx) {
|
|
1351
|
+
if (rf & 1) {
|
|
1352
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
1353
|
+
i0.ɵɵpipe(1, "translate");
|
|
1354
|
+
i0.ɵɵtext(2, "?");
|
|
1355
|
+
i0.ɵɵelementEnd();
|
|
1356
|
+
}
|
|
1357
|
+
if (rf & 2) {
|
|
1358
|
+
var ctx_r4 = i0.ɵɵnextContext(2);
|
|
1359
|
+
i0.ɵɵpropertyInterpolate("matTooltip", i0.ɵɵpipeBind1(1, 1, ctx_r4.schema.help));
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
function SchemaInputComponent_div_1_Template(rf, ctx) {
|
|
1363
|
+
if (rf & 1) {
|
|
1364
|
+
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
1365
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
1366
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
1367
|
+
i0.ɵɵelementStart(2, "label", 5);
|
|
1368
|
+
i0.ɵɵtext(3);
|
|
1369
|
+
i0.ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template, 3, 3, "span", 6);
|
|
1370
|
+
i0.ɵɵelementEnd();
|
|
1371
|
+
i0.ɵɵelementStart(5, "input-render", 4);
|
|
1372
|
+
i0.ɵɵlistener("modelChange", function SchemaInputComponent_div_1_Template_input_render_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(); return (ctx_r5.model[ctx_r5.schema.id] = $event); });
|
|
1373
|
+
i0.ɵɵelementEnd();
|
|
1374
|
+
i0.ɵɵelementEnd();
|
|
1375
|
+
i0.ɵɵelementEnd();
|
|
1376
|
+
}
|
|
1377
|
+
if (rf & 2) {
|
|
1378
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
1379
|
+
i0.ɵɵadvance(2);
|
|
1380
|
+
i0.ɵɵproperty("htmlFor", ctx_r1.getId(ctx_r1.index));
|
|
1381
|
+
i0.ɵɵadvance(1);
|
|
1382
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.schema.title, " ");
|
|
1383
|
+
i0.ɵɵadvance(1);
|
|
1384
|
+
i0.ɵɵproperty("ngIf", ctx_r1.schema.help);
|
|
1385
|
+
i0.ɵɵadvance(1);
|
|
1386
|
+
i0.ɵɵproperty("inputId", ctx_r1.getId(ctx_r1.index))("schema", ctx_r1.schema)("model", ctx_r1.model[ctx_r1.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r1.schema.id)("editing", ctx_r1.editing);
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
var SchemaInputComponent = /** @class */ (function (_super) {
|
|
1390
|
+
__extends(SchemaInputComponent, _super);
|
|
1391
|
+
function SchemaInputComponent() {
|
|
1392
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1393
|
+
_this.editing = false;
|
|
1394
|
+
return _this;
|
|
1395
|
+
}
|
|
1396
|
+
SchemaInputComponent.prototype.ngAfterContentInit = function () {
|
|
1397
|
+
this.loaded = true;
|
|
1398
|
+
console.log('SchemaInputComponent schema', this.schema);
|
|
1399
|
+
};
|
|
1400
|
+
SchemaInputComponent.prototype.getId = function (index) {
|
|
1401
|
+
return this.idPrefix + "-struct-" + index;
|
|
1402
|
+
};
|
|
1403
|
+
return SchemaInputComponent;
|
|
1404
|
+
}(BaseSchemaComponent));
|
|
1405
|
+
SchemaInputComponent.ɵfac = function SchemaInputComponent_Factory(t) { return ɵSchemaInputComponent_BaseFactory(t || SchemaInputComponent); };
|
|
1406
|
+
SchemaInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: { idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "row schema-input", 4, "ngIf"], [1, "row", "schema-input"], [1, "col-md-12"], [3, "label", "tooltip", "inputId"], [3, "inputId", "schema", "model", "modelPropertiesPath", "editing", "modelChange"], [1, "info-label", "bold", 3, "htmlFor"], ["class", "config-tooltip", 3, "matTooltip", 4, "ngIf"], [1, "config-tooltip", 3, "matTooltip"]], template: function SchemaInputComponent_Template(rf, ctx) {
|
|
1407
|
+
if (rf & 1) {
|
|
1408
|
+
i0.ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4, 8, "div", 0);
|
|
1409
|
+
i0.ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6, 8, "div", 0);
|
|
1410
|
+
}
|
|
1411
|
+
if (rf & 2) {
|
|
1412
|
+
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && ctx.schema.minLength && ctx.schema.minLength > 0);
|
|
1413
|
+
i0.ɵɵadvance(1);
|
|
1414
|
+
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && (!ctx.schema.minLength || ctx.schema.minLength === 0));
|
|
1415
|
+
}
|
|
1416
|
+
}, directives: [i1.NgIf, FieldRenderComponent, InputRenderComponent, i4.MatTooltip], pipes: [i7.TranslatePipe], styles: [""] });
|
|
1417
|
+
var ɵSchemaInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaInputComponent);
|
|
1418
|
+
/*@__PURE__*/ (function () {
|
|
1419
|
+
i0.ɵsetClassMetadata(SchemaInputComponent, [{
|
|
1420
|
+
type: i0.Component,
|
|
1421
|
+
args: [{
|
|
1422
|
+
selector: 'schema-input',
|
|
1423
|
+
templateUrl: 'schema-input.html',
|
|
1424
|
+
styleUrls: ['./schema-input.scss']
|
|
1425
|
+
}]
|
|
1426
|
+
}], null, { idPrefix: [{
|
|
1427
|
+
type: i0.Input
|
|
1428
|
+
}], schema: [{
|
|
1429
|
+
type: i0.Input
|
|
1430
|
+
}], editing: [{
|
|
1431
|
+
type: i0.Input
|
|
1432
|
+
}], index: [{
|
|
1433
|
+
type: i0.Input
|
|
1434
|
+
}] });
|
|
1432
1435
|
})();
|
|
1433
1436
|
|
|
1434
|
-
function SchemaObjectComponent_div_0_div_4_Template(rf, ctx) {
|
|
1435
|
-
if (rf & 1) {
|
|
1436
|
-
var _r3_1 = i0.ɵɵgetCurrentView();
|
|
1437
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
1438
|
-
i0.ɵɵelementStart(1, "div", 6);
|
|
1439
|
-
i0.ɵɵelementStart(2, "label", 7);
|
|
1440
|
-
i0.ɵɵtext(3);
|
|
1441
|
-
i0.ɵɵpipe(4, "translate");
|
|
1442
|
-
i0.ɵɵelementEnd();
|
|
1443
|
-
i0.ɵɵelementStart(5, "schema-custom-attributes", 8);
|
|
1444
|
-
i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_div_4_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r2 = i0.ɵɵnextContext(2); return ctx_r2.model[ctx_r2.schema.id].customAttributes = $event; });
|
|
1445
|
-
i0.ɵɵelementEnd();
|
|
1446
|
-
i0.ɵɵelementEnd();
|
|
1447
|
-
i0.ɵɵelementEnd();
|
|
1448
|
-
}
|
|
1449
|
-
if (rf & 2) {
|
|
1450
|
-
var ctx_r1 = i0.ɵɵnextContext(2);
|
|
1451
|
-
i0.ɵɵadvance(3);
|
|
1452
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
1453
|
-
i0.ɵɵadvance(2);
|
|
1454
|
-
i0.ɵɵproperty("model", ctx_r1.model[ctx_r1.schema.id].customAttributes)("onDropFunction", ctx_r1.onDrop);
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
function SchemaObjectComponent_div_0_Template(rf, ctx) {
|
|
1458
|
-
if (rf & 1) {
|
|
1459
|
-
var _r5_1 = i0.ɵɵgetCurrentView();
|
|
1460
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
1461
|
-
i0.ɵɵelementStart(1, "div", 2);
|
|
1462
|
-
i0.ɵɵtext(2);
|
|
1463
|
-
i0.ɵɵelementEnd();
|
|
1464
|
-
i0.ɵɵelementStart(3, "schema-form", 3);
|
|
1465
|
-
i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_Template_schema_form_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r5_1); var ctx_r4 = i0.ɵɵnextContext(); return (ctx_r4.model[ctx_r4.schema.id] = $event); });
|
|
1466
|
-
i0.ɵɵelementEnd();
|
|
1467
|
-
i0.ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template, 6, 5, "div", 4);
|
|
1468
|
-
i0.ɵɵelementEnd();
|
|
1469
|
-
}
|
|
1470
|
-
if (rf & 2) {
|
|
1471
|
-
var ctx_r0 = i0.ɵɵnextContext();
|
|
1472
|
-
i0.ɵɵadvance(2);
|
|
1473
|
-
i0.ɵɵtextInterpolate(ctx_r0.schema.title);
|
|
1474
|
-
i0.ɵɵadvance(1);
|
|
1475
|
-
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model[ctx_r0.schema.id])("schemas", ctx_r0.getSchemaProperties())("editing", ctx_r0.editing);
|
|
1476
|
-
i0.ɵɵadvance(1);
|
|
1477
|
-
i0.ɵɵproperty("ngIf", ctx_r0.model[ctx_r0.schema.id] && ctx_r0.schema.customProperties);
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
var SchemaObjectComponent = /** @class */ (function (_super) {
|
|
1481
|
-
__extends(SchemaObjectComponent, _super);
|
|
1482
|
-
function SchemaObjectComponent() {
|
|
1483
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1484
|
-
_this.editing = false;
|
|
1485
|
-
_this.onDropEvent = new i0.EventEmitter();
|
|
1486
|
-
_this.loaded = false;
|
|
1487
|
-
return _this;
|
|
1488
|
-
}
|
|
1489
|
-
SchemaObjectComponent.prototype.ngAfterContentInit = function () {
|
|
1490
|
-
var _a;
|
|
1491
|
-
if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) === 'object' && this.model) {
|
|
1492
|
-
this.model[this.schema.id] = this.model[this.schema.id] || {};
|
|
1493
|
-
}
|
|
1494
|
-
this.loaded = true;
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
SchemaObjectComponent.ɵ
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
/*@__PURE__*/ (
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1437
|
+
function SchemaObjectComponent_div_0_div_4_Template(rf, ctx) {
|
|
1438
|
+
if (rf & 1) {
|
|
1439
|
+
var _r3_1 = i0.ɵɵgetCurrentView();
|
|
1440
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
1441
|
+
i0.ɵɵelementStart(1, "div", 6);
|
|
1442
|
+
i0.ɵɵelementStart(2, "label", 7);
|
|
1443
|
+
i0.ɵɵtext(3);
|
|
1444
|
+
i0.ɵɵpipe(4, "translate");
|
|
1445
|
+
i0.ɵɵelementEnd();
|
|
1446
|
+
i0.ɵɵelementStart(5, "schema-custom-attributes", 8);
|
|
1447
|
+
i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_div_4_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r2 = i0.ɵɵnextContext(2); return ctx_r2.model[ctx_r2.schema.id].customAttributes = $event; });
|
|
1448
|
+
i0.ɵɵelementEnd();
|
|
1449
|
+
i0.ɵɵelementEnd();
|
|
1450
|
+
i0.ɵɵelementEnd();
|
|
1451
|
+
}
|
|
1452
|
+
if (rf & 2) {
|
|
1453
|
+
var ctx_r1 = i0.ɵɵnextContext(2);
|
|
1454
|
+
i0.ɵɵadvance(3);
|
|
1455
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
1456
|
+
i0.ɵɵadvance(2);
|
|
1457
|
+
i0.ɵɵproperty("model", ctx_r1.model[ctx_r1.schema.id].customAttributes)("onDropFunction", ctx_r1.onDrop);
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
function SchemaObjectComponent_div_0_Template(rf, ctx) {
|
|
1461
|
+
if (rf & 1) {
|
|
1462
|
+
var _r5_1 = i0.ɵɵgetCurrentView();
|
|
1463
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
1464
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
1465
|
+
i0.ɵɵtext(2);
|
|
1466
|
+
i0.ɵɵelementEnd();
|
|
1467
|
+
i0.ɵɵelementStart(3, "schema-form", 3);
|
|
1468
|
+
i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_Template_schema_form_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r5_1); var ctx_r4 = i0.ɵɵnextContext(); return (ctx_r4.model[ctx_r4.schema.id] = $event); });
|
|
1469
|
+
i0.ɵɵelementEnd();
|
|
1470
|
+
i0.ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template, 6, 5, "div", 4);
|
|
1471
|
+
i0.ɵɵelementEnd();
|
|
1472
|
+
}
|
|
1473
|
+
if (rf & 2) {
|
|
1474
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
1475
|
+
i0.ɵɵadvance(2);
|
|
1476
|
+
i0.ɵɵtextInterpolate(ctx_r0.schema.title);
|
|
1477
|
+
i0.ɵɵadvance(1);
|
|
1478
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model[ctx_r0.schema.id])("schemas", ctx_r0.getSchemaProperties())("editing", ctx_r0.editing);
|
|
1479
|
+
i0.ɵɵadvance(1);
|
|
1480
|
+
i0.ɵɵproperty("ngIf", ctx_r0.model[ctx_r0.schema.id] && ctx_r0.schema.customProperties);
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
var SchemaObjectComponent = /** @class */ (function (_super) {
|
|
1484
|
+
__extends(SchemaObjectComponent, _super);
|
|
1485
|
+
function SchemaObjectComponent() {
|
|
1486
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1487
|
+
_this.editing = false;
|
|
1488
|
+
_this.onDropEvent = new i0.EventEmitter();
|
|
1489
|
+
_this.loaded = false;
|
|
1490
|
+
return _this;
|
|
1491
|
+
}
|
|
1492
|
+
SchemaObjectComponent.prototype.ngAfterContentInit = function () {
|
|
1493
|
+
var _a;
|
|
1494
|
+
if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) === 'object' && this.model) {
|
|
1495
|
+
this.model[this.schema.id] = this.model[this.schema.id] || {};
|
|
1496
|
+
}
|
|
1497
|
+
this.loaded = true;
|
|
1498
|
+
console.log('SchemaObjectComponent schema', this.schema);
|
|
1499
|
+
};
|
|
1500
|
+
SchemaObjectComponent.prototype.onDrop = function ($event, modelElement) {
|
|
1501
|
+
return onDropStruct($event, modelElement);
|
|
1502
|
+
};
|
|
1503
|
+
return SchemaObjectComponent;
|
|
1504
|
+
}(BaseSchemaComponent));
|
|
1505
|
+
SchemaObjectComponent.ɵfac = function SchemaObjectComponent_Factory(t) { return ɵSchemaObjectComponent_BaseFactory(t || SchemaObjectComponent); };
|
|
1506
|
+
SchemaObjectComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaObjectComponent, selectors: [["schema-object"]], inputs: { idPrefix: "idPrefix", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing", index: "index" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema-object-container", 4, "ngIf"], [1, "schema-object-container"], [1, "schema-object-title"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], ["class", "row struct-custom-properties", 4, "ngIf"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"]], template: function SchemaObjectComponent_Template(rf, ctx) {
|
|
1507
|
+
if (rf & 1) {
|
|
1508
|
+
i0.ɵɵtemplate(0, SchemaObjectComponent_div_0_Template, 5, 6, "div", 0);
|
|
1509
|
+
}
|
|
1510
|
+
if (rf & 2) {
|
|
1511
|
+
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type == "object");
|
|
1512
|
+
}
|
|
1513
|
+
}, directives: [i1.NgIf, SchemaFormComponent, SchemaCustomAttributesComponent], pipes: [i7.TranslatePipe], styles: [".schema-object-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;margin-bottom:10px;margin-top:10px;padding:10px}.schema-object-container[_ngcontent-%COMP%] .schema-object-title[_ngcontent-%COMP%]{background:#eee;border-bottom:1px solid #ddd;font-weight:700;margin-left:-10px;margin-top:-10px;padding:10px;width:calc(100% + 20px)}"] });
|
|
1514
|
+
var ɵSchemaObjectComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaObjectComponent);
|
|
1515
|
+
/*@__PURE__*/ (function () {
|
|
1516
|
+
i0.ɵsetClassMetadata(SchemaObjectComponent, [{
|
|
1517
|
+
type: i0.Component,
|
|
1518
|
+
args: [{
|
|
1519
|
+
selector: 'schema-object',
|
|
1520
|
+
templateUrl: 'schema-object.html',
|
|
1521
|
+
styleUrls: ['./schema-object.scss']
|
|
1522
|
+
}]
|
|
1523
|
+
}], null, { idPrefix: [{
|
|
1524
|
+
type: i0.Input
|
|
1525
|
+
}], modelPropertiesPath: [{
|
|
1526
|
+
type: i0.Input
|
|
1527
|
+
}], inputId: [{
|
|
1528
|
+
type: i0.Input
|
|
1529
|
+
}], editing: [{
|
|
1530
|
+
type: i0.Input
|
|
1531
|
+
}], index: [{
|
|
1532
|
+
type: i0.Input
|
|
1533
|
+
}], onDropEvent: [{
|
|
1534
|
+
type: i0.Output
|
|
1535
|
+
}] });
|
|
1532
1536
|
})();
|
|
1533
1537
|
|
|
1534
|
-
var SchemaValidationField = /** @class */ (function () {
|
|
1535
|
-
function SchemaValidationField(emptyFields, invalidMinLengthFields, invalidMaxLengthFields) {
|
|
1536
|
-
this.emptyFields = emptyFields;
|
|
1537
|
-
this.invalidMinLengthFields = invalidMinLengthFields;
|
|
1538
|
-
this.invalidMaxLengthFields = invalidMaxLengthFields;
|
|
1539
|
-
}
|
|
1540
|
-
SchemaValidationField.prototype.isValidSchemaFields = function () {
|
|
1541
|
-
var _a, _b, _c;
|
|
1542
|
-
return ((_a = this.emptyFields) === null || _a === void 0 ? void 0 : _a.length) < 1 && ((_b = this.invalidMinLengthFields) === null || _b === void 0 ? void 0 : _b.length) < 1 && ((_c = this.invalidMaxLengthFields) === null || _c === void 0 ? void 0 : _c.length) < 1;
|
|
1543
|
-
};
|
|
1544
|
-
SchemaValidationField.prototype.isInvalidSchemaFields = function () {
|
|
1545
|
-
return !this.isValidSchemaFields();
|
|
1546
|
-
};
|
|
1547
|
-
return SchemaValidationField;
|
|
1538
|
+
var SchemaValidationField = /** @class */ (function () {
|
|
1539
|
+
function SchemaValidationField(emptyFields, invalidMinLengthFields, invalidMaxLengthFields) {
|
|
1540
|
+
this.emptyFields = emptyFields;
|
|
1541
|
+
this.invalidMinLengthFields = invalidMinLengthFields;
|
|
1542
|
+
this.invalidMaxLengthFields = invalidMaxLengthFields;
|
|
1543
|
+
}
|
|
1544
|
+
SchemaValidationField.prototype.isValidSchemaFields = function () {
|
|
1545
|
+
var _a, _b, _c;
|
|
1546
|
+
return ((_a = this.emptyFields) === null || _a === void 0 ? void 0 : _a.length) < 1 && ((_b = this.invalidMinLengthFields) === null || _b === void 0 ? void 0 : _b.length) < 1 && ((_c = this.invalidMaxLengthFields) === null || _c === void 0 ? void 0 : _c.length) < 1;
|
|
1547
|
+
};
|
|
1548
|
+
SchemaValidationField.prototype.isInvalidSchemaFields = function () {
|
|
1549
|
+
return !this.isValidSchemaFields();
|
|
1550
|
+
};
|
|
1551
|
+
return SchemaValidationField;
|
|
1548
1552
|
}());
|
|
1549
1553
|
|
|
1550
|
-
var SchemaFieldsService = /** @class */ (function () {
|
|
1551
|
-
function SchemaFieldsService(translate) {
|
|
1552
|
-
this.translate = translate;
|
|
1553
|
-
}
|
|
1554
|
-
SchemaFieldsService.prototype.validateSchemaFields = function (propertiesRendered, model) {
|
|
1555
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1556
|
-
var emptyFields, invalidMinLengthFields, invalidMaxLengthFields, structValidationField, _a;
|
|
1557
|
-
return __generator(this, function (_b) {
|
|
1558
|
-
switch (_b.label) {
|
|
1559
|
-
case 0:
|
|
1560
|
-
if (!propertiesRendered) {
|
|
1561
|
-
return [2 /*return*/, new SchemaValidationField([], [], [])];
|
|
1562
|
-
}
|
|
1563
|
-
emptyFields = [];
|
|
1564
|
-
invalidMinLengthFields = [];
|
|
1565
|
-
invalidMaxLengthFields = [];
|
|
1566
|
-
this.processProperties(propertiesRendered, model, emptyFields, invalidMinLengthFields, invalidMaxLengthFields);
|
|
1567
|
-
structValidationField = new SchemaValidationField(emptyFields, invalidMinLengthFields, invalidMaxLengthFields);
|
|
1568
|
-
_a = structValidationField;
|
|
1569
|
-
return [4 /*yield*/, this.getErrorsStringArray(structValidationField)];
|
|
1570
|
-
case 1:
|
|
1571
|
-
_a.validationErrorsLabel = _b.sent();
|
|
1572
|
-
return [2 /*return*/, structValidationField];
|
|
1573
|
-
}
|
|
1574
|
-
});
|
|
1575
|
-
});
|
|
1576
|
-
};
|
|
1577
|
-
SchemaFieldsService.prototype.processProperties = function (propertiesRendered, model, emptyFields, invalidMinLengthFields, invalidMaxLengthFields, recursive) {
|
|
1578
|
-
var e_1, _a;
|
|
1579
|
-
try {
|
|
1580
|
-
for (var propertiesRendered_1 = __values(propertiesRendered), propertiesRendered_1_1 = propertiesRendered_1.next(); !propertiesRendered_1_1.done; propertiesRendered_1_1 = propertiesRendered_1.next()) {
|
|
1581
|
-
var property = propertiesRendered_1_1.value;
|
|
1582
|
-
if ((property.type === 'object' || property.type === 'array') && property.properties) {
|
|
1583
|
-
this.processProperties(property.properties, model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);
|
|
1584
|
-
}
|
|
1585
|
-
else if (property.type === 'array' && !property.properties) {
|
|
1586
|
-
var newProperty = Object.assign({}, property);
|
|
1587
|
-
newProperty.type = 'string';
|
|
1588
|
-
this.processProperties([newProperty], model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);
|
|
1589
|
-
}
|
|
1590
|
-
else {
|
|
1591
|
-
var validateModel = recursive ? model : model[property.id];
|
|
1592
|
-
if ((property === null || property === void 0 ? void 0 : property.canRender) && (property === null || property === void 0 ? void 0 : property.minLength) > 0
|
|
1593
|
-
&& (validateModel === undefined || validateModel === '' || validateModel === null)) {
|
|
1594
|
-
emptyFields.push(property);
|
|
1595
|
-
}
|
|
1596
|
-
else if ((property === null || property === void 0 ? void 0 : property.canRender) && (property === null || property === void 0 ? void 0 : property.minLength) > 0 && ((validateModel === null || validateModel === void 0 ? void 0 : validateModel.length) < property.minLength)) {
|
|
1597
|
-
invalidMinLengthFields.push(property);
|
|
1598
|
-
}
|
|
1599
|
-
else if ((property === null || property === void 0 ? void 0 : property.canRender) && (property === null || property === void 0 ? void 0 : property.maxLength) > 0 && ((validateModel === null || validateModel === void 0 ? void 0 : validateModel.length) > property.maxLength)) {
|
|
1600
|
-
invalidMaxLengthFields.push(property);
|
|
1601
|
-
}
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1606
|
-
finally {
|
|
1607
|
-
try {
|
|
1608
|
-
if (propertiesRendered_1_1 && !propertiesRendered_1_1.done && (_a = propertiesRendered_1.return)) _a.call(propertiesRendered_1);
|
|
1609
|
-
}
|
|
1610
|
-
finally { if (e_1) throw e_1.error; }
|
|
1611
|
-
}
|
|
1612
|
-
};
|
|
1613
|
-
SchemaFieldsService.prototype.getErrorsStringArray = function (structValidation) {
|
|
1614
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1615
|
-
var errors, _a, _b, field, fieldName, _c, _d, field, fieldName, _e, _f, field, fieldName;
|
|
1616
|
-
var e_2, _g, e_3, _h, e_4, _j;
|
|
1617
|
-
return __generator(this, function (_k) {
|
|
1618
|
-
if (!structValidation.isInvalidSchemaFields()) {
|
|
1619
|
-
return [2 /*return*/, []];
|
|
1620
|
-
}
|
|
1621
|
-
errors = [];
|
|
1622
|
-
try {
|
|
1623
|
-
for (_a = __values(structValidation.emptyFields), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
1624
|
-
field = _b.value;
|
|
1625
|
-
fieldName = field.title || field.id;
|
|
1626
|
-
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.REQUIRED_FIELD_ERROR', { fieldName: fieldName }));
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1630
|
-
finally {
|
|
1631
|
-
try {
|
|
1632
|
-
if (_b && !_b.done && (_g = _a.return)) _g.call(_a);
|
|
1633
|
-
}
|
|
1634
|
-
finally { if (e_2) throw e_2.error; }
|
|
1635
|
-
}
|
|
1636
|
-
try {
|
|
1637
|
-
for (_c = __values(structValidation.invalidMinLengthFields), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
1638
|
-
field = _d.value;
|
|
1639
|
-
fieldName = field.title || field.id;
|
|
1640
|
-
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MINLENGTH_FIELD_ERROR', { fieldName: fieldName, minLength: field.minLength }));
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1644
|
-
finally {
|
|
1645
|
-
try {
|
|
1646
|
-
if (_d && !_d.done && (_h = _c.return)) _h.call(_c);
|
|
1647
|
-
}
|
|
1648
|
-
finally { if (e_3) throw e_3.error; }
|
|
1649
|
-
}
|
|
1650
|
-
try {
|
|
1651
|
-
for (_e = __values(structValidation.invalidMaxLengthFields), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
1652
|
-
field = _f.value;
|
|
1653
|
-
fieldName = field.title || field.id;
|
|
1654
|
-
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MAXLENGTH_FIELD_ERROR', { fieldName: fieldName, maxLength: field.maxLength }));
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
1658
|
-
finally {
|
|
1659
|
-
try {
|
|
1660
|
-
if (_f && !_f.done && (_j = _e.return)) _j.call(_e);
|
|
1661
|
-
}
|
|
1662
|
-
finally { if (e_4) throw e_4.error; }
|
|
1663
|
-
}
|
|
1664
|
-
return [2 /*return*/, errors];
|
|
1665
|
-
});
|
|
1666
|
-
});
|
|
1667
|
-
};
|
|
1668
|
-
return SchemaFieldsService;
|
|
1669
|
-
}());
|
|
1670
|
-
SchemaFieldsService.ɵfac = function SchemaFieldsService_Factory(t) { return new (t || SchemaFieldsService)(i0.ɵɵinject(i7.TranslateService)); };
|
|
1671
|
-
SchemaFieldsService.ɵprov = i0.ɵɵdefineInjectable({ token: SchemaFieldsService, factory: SchemaFieldsService.ɵfac });
|
|
1672
|
-
/*@__PURE__*/ (function () {
|
|
1673
|
-
i0.ɵsetClassMetadata(SchemaFieldsService, [{
|
|
1674
|
-
type: i0.Injectable
|
|
1675
|
-
}], function () { return [{ type: i7.TranslateService }]; }, null);
|
|
1554
|
+
var SchemaFieldsService = /** @class */ (function () {
|
|
1555
|
+
function SchemaFieldsService(translate) {
|
|
1556
|
+
this.translate = translate;
|
|
1557
|
+
}
|
|
1558
|
+
SchemaFieldsService.prototype.validateSchemaFields = function (propertiesRendered, model) {
|
|
1559
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1560
|
+
var emptyFields, invalidMinLengthFields, invalidMaxLengthFields, structValidationField, _a;
|
|
1561
|
+
return __generator(this, function (_b) {
|
|
1562
|
+
switch (_b.label) {
|
|
1563
|
+
case 0:
|
|
1564
|
+
if (!propertiesRendered) {
|
|
1565
|
+
return [2 /*return*/, new SchemaValidationField([], [], [])];
|
|
1566
|
+
}
|
|
1567
|
+
emptyFields = [];
|
|
1568
|
+
invalidMinLengthFields = [];
|
|
1569
|
+
invalidMaxLengthFields = [];
|
|
1570
|
+
this.processProperties(propertiesRendered, model, emptyFields, invalidMinLengthFields, invalidMaxLengthFields);
|
|
1571
|
+
structValidationField = new SchemaValidationField(emptyFields, invalidMinLengthFields, invalidMaxLengthFields);
|
|
1572
|
+
_a = structValidationField;
|
|
1573
|
+
return [4 /*yield*/, this.getErrorsStringArray(structValidationField)];
|
|
1574
|
+
case 1:
|
|
1575
|
+
_a.validationErrorsLabel = _b.sent();
|
|
1576
|
+
return [2 /*return*/, structValidationField];
|
|
1577
|
+
}
|
|
1578
|
+
});
|
|
1579
|
+
});
|
|
1580
|
+
};
|
|
1581
|
+
SchemaFieldsService.prototype.processProperties = function (propertiesRendered, model, emptyFields, invalidMinLengthFields, invalidMaxLengthFields, recursive) {
|
|
1582
|
+
var e_1, _a;
|
|
1583
|
+
try {
|
|
1584
|
+
for (var propertiesRendered_1 = __values(propertiesRendered), propertiesRendered_1_1 = propertiesRendered_1.next(); !propertiesRendered_1_1.done; propertiesRendered_1_1 = propertiesRendered_1.next()) {
|
|
1585
|
+
var property = propertiesRendered_1_1.value;
|
|
1586
|
+
if ((property.type === 'object' || property.type === 'array') && property.properties) {
|
|
1587
|
+
this.processProperties(property.properties, model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);
|
|
1588
|
+
}
|
|
1589
|
+
else if (property.type === 'array' && !property.properties) {
|
|
1590
|
+
var newProperty = Object.assign({}, property);
|
|
1591
|
+
newProperty.type = 'string';
|
|
1592
|
+
this.processProperties([newProperty], model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);
|
|
1593
|
+
}
|
|
1594
|
+
else {
|
|
1595
|
+
var validateModel = recursive ? model : model[property.id];
|
|
1596
|
+
if ((property === null || property === void 0 ? void 0 : property.canRender) && (property === null || property === void 0 ? void 0 : property.minLength) > 0
|
|
1597
|
+
&& (validateModel === undefined || validateModel === '' || validateModel === null)) {
|
|
1598
|
+
emptyFields.push(property);
|
|
1599
|
+
}
|
|
1600
|
+
else if ((property === null || property === void 0 ? void 0 : property.canRender) && (property === null || property === void 0 ? void 0 : property.minLength) > 0 && ((validateModel === null || validateModel === void 0 ? void 0 : validateModel.length) < property.minLength)) {
|
|
1601
|
+
invalidMinLengthFields.push(property);
|
|
1602
|
+
}
|
|
1603
|
+
else if ((property === null || property === void 0 ? void 0 : property.canRender) && (property === null || property === void 0 ? void 0 : property.maxLength) > 0 && ((validateModel === null || validateModel === void 0 ? void 0 : validateModel.length) > property.maxLength)) {
|
|
1604
|
+
invalidMaxLengthFields.push(property);
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1610
|
+
finally {
|
|
1611
|
+
try {
|
|
1612
|
+
if (propertiesRendered_1_1 && !propertiesRendered_1_1.done && (_a = propertiesRendered_1.return)) _a.call(propertiesRendered_1);
|
|
1613
|
+
}
|
|
1614
|
+
finally { if (e_1) throw e_1.error; }
|
|
1615
|
+
}
|
|
1616
|
+
};
|
|
1617
|
+
SchemaFieldsService.prototype.getErrorsStringArray = function (structValidation) {
|
|
1618
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1619
|
+
var errors, _a, _b, field, fieldName, _c, _d, field, fieldName, _e, _f, field, fieldName;
|
|
1620
|
+
var e_2, _g, e_3, _h, e_4, _j;
|
|
1621
|
+
return __generator(this, function (_k) {
|
|
1622
|
+
if (!structValidation.isInvalidSchemaFields()) {
|
|
1623
|
+
return [2 /*return*/, []];
|
|
1624
|
+
}
|
|
1625
|
+
errors = [];
|
|
1626
|
+
try {
|
|
1627
|
+
for (_a = __values(structValidation.emptyFields), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
1628
|
+
field = _b.value;
|
|
1629
|
+
fieldName = field.title || field.id;
|
|
1630
|
+
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.REQUIRED_FIELD_ERROR', { fieldName: fieldName }));
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1634
|
+
finally {
|
|
1635
|
+
try {
|
|
1636
|
+
if (_b && !_b.done && (_g = _a.return)) _g.call(_a);
|
|
1637
|
+
}
|
|
1638
|
+
finally { if (e_2) throw e_2.error; }
|
|
1639
|
+
}
|
|
1640
|
+
try {
|
|
1641
|
+
for (_c = __values(structValidation.invalidMinLengthFields), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
1642
|
+
field = _d.value;
|
|
1643
|
+
fieldName = field.title || field.id;
|
|
1644
|
+
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MINLENGTH_FIELD_ERROR', { fieldName: fieldName, minLength: field.minLength }));
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1648
|
+
finally {
|
|
1649
|
+
try {
|
|
1650
|
+
if (_d && !_d.done && (_h = _c.return)) _h.call(_c);
|
|
1651
|
+
}
|
|
1652
|
+
finally { if (e_3) throw e_3.error; }
|
|
1653
|
+
}
|
|
1654
|
+
try {
|
|
1655
|
+
for (_e = __values(structValidation.invalidMaxLengthFields), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
1656
|
+
field = _f.value;
|
|
1657
|
+
fieldName = field.title || field.id;
|
|
1658
|
+
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MAXLENGTH_FIELD_ERROR', { fieldName: fieldName, maxLength: field.maxLength }));
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
1662
|
+
finally {
|
|
1663
|
+
try {
|
|
1664
|
+
if (_f && !_f.done && (_j = _e.return)) _j.call(_e);
|
|
1665
|
+
}
|
|
1666
|
+
finally { if (e_4) throw e_4.error; }
|
|
1667
|
+
}
|
|
1668
|
+
return [2 /*return*/, errors];
|
|
1669
|
+
});
|
|
1670
|
+
});
|
|
1671
|
+
};
|
|
1672
|
+
return SchemaFieldsService;
|
|
1673
|
+
}());
|
|
1674
|
+
SchemaFieldsService.ɵfac = function SchemaFieldsService_Factory(t) { return new (t || SchemaFieldsService)(i0.ɵɵinject(i7.TranslateService)); };
|
|
1675
|
+
SchemaFieldsService.ɵprov = i0.ɵɵdefineInjectable({ token: SchemaFieldsService, factory: SchemaFieldsService.ɵfac });
|
|
1676
|
+
/*@__PURE__*/ (function () {
|
|
1677
|
+
i0.ɵsetClassMetadata(SchemaFieldsService, [{
|
|
1678
|
+
type: i0.Injectable
|
|
1679
|
+
}], function () { return [{ type: i7.TranslateService }]; }, null);
|
|
1676
1680
|
})();
|
|
1677
1681
|
|
|
1678
|
-
function SchemaFormRenderComponent_div_0_div_2_div_1_Template(rf, ctx) {
|
|
1679
|
-
if (rf & 1) {
|
|
1680
|
-
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
1681
|
-
i0.ɵɵelementStart(0, "div", 6);
|
|
1682
|
-
i0.ɵɵelementStart(1, "div", 7);
|
|
1683
|
-
i0.ɵɵelementStart(2, "label", 8);
|
|
1684
|
-
i0.ɵɵtext(3);
|
|
1685
|
-
i0.ɵɵpipe(4, "translate");
|
|
1686
|
-
i0.ɵɵelementEnd();
|
|
1687
|
-
i0.ɵɵelementStart(5, "schema-custom-attributes", 9);
|
|
1688
|
-
i0.ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_div_2_div_1_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(3); return ctx_r5.model.customAttributes = $event; });
|
|
1689
|
-
i0.ɵɵelementEnd();
|
|
1690
|
-
i0.ɵɵelementEnd();
|
|
1691
|
-
i0.ɵɵelementEnd();
|
|
1692
|
-
}
|
|
1693
|
-
if (rf & 2) {
|
|
1694
|
-
var ctx_r4 = i0.ɵɵnextContext(3);
|
|
1695
|
-
i0.ɵɵadvance(3);
|
|
1696
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
1697
|
-
i0.ɵɵadvance(2);
|
|
1698
|
-
i0.ɵɵproperty("model", ctx_r4.model.customAttributes)("onDropFunction", ctx_r4.onDrop);
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
function SchemaFormRenderComponent_div_0_div_2_Template(rf, ctx) {
|
|
1702
|
-
if (rf & 1) {
|
|
1703
|
-
i0.ɵɵelementStart(0, "div", 4);
|
|
1704
|
-
i0.ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template, 6, 5, "div", 5);
|
|
1705
|
-
i0.ɵɵelementEnd();
|
|
1706
|
-
}
|
|
1707
|
-
if (rf & 2) {
|
|
1708
|
-
var ctx_r1 = i0.ɵɵnextContext(2);
|
|
1709
|
-
i0.ɵɵadvance(1);
|
|
1710
|
-
i0.ɵɵproperty("ngIf", ctx_r1.model && ctx_r1.customProperties);
|
|
1711
|
-
}
|
|
1712
|
-
}
|
|
1713
|
-
function SchemaFormRenderComponent_div_0_Template(rf, ctx) {
|
|
1714
|
-
if (rf & 1) {
|
|
1715
|
-
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
1716
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
1717
|
-
i0.ɵɵelementStart(1, "schema-form", 2);
|
|
1718
|
-
i0.ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_Template_schema_form_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.model = $event; });
|
|
1719
|
-
i0.ɵɵelementEnd();
|
|
1720
|
-
i0.ɵɵtemplate(2, SchemaFormRenderComponent_div_0_div_2_Template, 2, 1, "div", 3);
|
|
1721
|
-
i0.ɵɵelementEnd();
|
|
1722
|
-
}
|
|
1723
|
-
if (rf & 2) {
|
|
1724
|
-
var ctx_r0 = i0.ɵɵnextContext();
|
|
1725
|
-
i0.ɵɵadvance(1);
|
|
1726
|
-
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schemas", ctx_r0.schemas)("editing", ctx_r0.editing);
|
|
1727
|
-
i0.ɵɵadvance(1);
|
|
1728
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.schemas);
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
var SchemaFormRenderComponent = /** @class */ (function (_super) {
|
|
1732
|
-
__extends(SchemaFormRenderComponent, _super);
|
|
1733
|
-
function SchemaFormRenderComponent() {
|
|
1734
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1735
|
-
_this.schemas = [];
|
|
1736
|
-
_this.customProperties = false;
|
|
1737
|
-
_this.editing = false;
|
|
1738
|
-
_this.loaded = false;
|
|
1739
|
-
return _this;
|
|
1740
|
-
}
|
|
1741
|
-
SchemaFormRenderComponent.prototype.ngAfterContentInit = function () {
|
|
1742
|
-
this.loaded = true;
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
SchemaFormRenderComponent.ɵ
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
/*@__PURE__*/ (
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1682
|
+
function SchemaFormRenderComponent_div_0_div_2_div_1_Template(rf, ctx) {
|
|
1683
|
+
if (rf & 1) {
|
|
1684
|
+
var _r6_1 = i0.ɵɵgetCurrentView();
|
|
1685
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
1686
|
+
i0.ɵɵelementStart(1, "div", 7);
|
|
1687
|
+
i0.ɵɵelementStart(2, "label", 8);
|
|
1688
|
+
i0.ɵɵtext(3);
|
|
1689
|
+
i0.ɵɵpipe(4, "translate");
|
|
1690
|
+
i0.ɵɵelementEnd();
|
|
1691
|
+
i0.ɵɵelementStart(5, "schema-custom-attributes", 9);
|
|
1692
|
+
i0.ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_div_2_div_1_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(3); return ctx_r5.model.customAttributes = $event; });
|
|
1693
|
+
i0.ɵɵelementEnd();
|
|
1694
|
+
i0.ɵɵelementEnd();
|
|
1695
|
+
i0.ɵɵelementEnd();
|
|
1696
|
+
}
|
|
1697
|
+
if (rf & 2) {
|
|
1698
|
+
var ctx_r4 = i0.ɵɵnextContext(3);
|
|
1699
|
+
i0.ɵɵadvance(3);
|
|
1700
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
1701
|
+
i0.ɵɵadvance(2);
|
|
1702
|
+
i0.ɵɵproperty("model", ctx_r4.model.customAttributes)("onDropFunction", ctx_r4.onDrop);
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
function SchemaFormRenderComponent_div_0_div_2_Template(rf, ctx) {
|
|
1706
|
+
if (rf & 1) {
|
|
1707
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
1708
|
+
i0.ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template, 6, 5, "div", 5);
|
|
1709
|
+
i0.ɵɵelementEnd();
|
|
1710
|
+
}
|
|
1711
|
+
if (rf & 2) {
|
|
1712
|
+
var ctx_r1 = i0.ɵɵnextContext(2);
|
|
1713
|
+
i0.ɵɵadvance(1);
|
|
1714
|
+
i0.ɵɵproperty("ngIf", ctx_r1.model && ctx_r1.customProperties);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
function SchemaFormRenderComponent_div_0_Template(rf, ctx) {
|
|
1718
|
+
if (rf & 1) {
|
|
1719
|
+
var _r8_1 = i0.ɵɵgetCurrentView();
|
|
1720
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
1721
|
+
i0.ɵɵelementStart(1, "schema-form", 2);
|
|
1722
|
+
i0.ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_Template_schema_form_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r8_1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.model = $event; });
|
|
1723
|
+
i0.ɵɵelementEnd();
|
|
1724
|
+
i0.ɵɵtemplate(2, SchemaFormRenderComponent_div_0_div_2_Template, 2, 1, "div", 3);
|
|
1725
|
+
i0.ɵɵelementEnd();
|
|
1726
|
+
}
|
|
1727
|
+
if (rf & 2) {
|
|
1728
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
1729
|
+
i0.ɵɵadvance(1);
|
|
1730
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schemas", ctx_r0.schemas)("editing", ctx_r0.editing);
|
|
1731
|
+
i0.ɵɵadvance(1);
|
|
1732
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.schemas);
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
var SchemaFormRenderComponent = /** @class */ (function (_super) {
|
|
1736
|
+
__extends(SchemaFormRenderComponent, _super);
|
|
1737
|
+
function SchemaFormRenderComponent() {
|
|
1738
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1739
|
+
_this.schemas = [];
|
|
1740
|
+
_this.customProperties = false;
|
|
1741
|
+
_this.editing = false;
|
|
1742
|
+
_this.loaded = false;
|
|
1743
|
+
return _this;
|
|
1744
|
+
}
|
|
1745
|
+
SchemaFormRenderComponent.prototype.ngAfterContentInit = function () {
|
|
1746
|
+
this.loaded = true;
|
|
1747
|
+
console.log('SchemaFormRenderComponent schemas', this.schemas);
|
|
1748
|
+
};
|
|
1749
|
+
SchemaFormRenderComponent.prototype.onDrop = function ($event, modelElement) {
|
|
1750
|
+
return onDropStruct($event, modelElement);
|
|
1751
|
+
};
|
|
1752
|
+
SchemaFormRenderComponent.prototype.getId = function (index) {
|
|
1753
|
+
return this.idPrefix + "-struct-" + index;
|
|
1754
|
+
};
|
|
1755
|
+
return SchemaFormRenderComponent;
|
|
1756
|
+
}(BaseSchemaComponent));
|
|
1757
|
+
SchemaFormRenderComponent.ɵfac = function SchemaFormRenderComponent_Factory(t) { return ɵSchemaFormRenderComponent_BaseFactory(t || SchemaFormRenderComponent); };
|
|
1758
|
+
SchemaFormRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormRenderComponent, selectors: [["schema-form-render"]], inputs: { idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema", 4, "ngIf"], [1, "schema"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], ["class", "schema-properties", 4, "ngFor", "ngForOf"], [1, "schema-properties"], ["class", "row struct-custom-properties", 4, "ngIf"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"]], template: function SchemaFormRenderComponent_Template(rf, ctx) {
|
|
1759
|
+
if (rf & 1) {
|
|
1760
|
+
i0.ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3, 5, "div", 0);
|
|
1761
|
+
}
|
|
1762
|
+
if (rf & 2) {
|
|
1763
|
+
i0.ɵɵproperty("ngIf", ctx.loaded);
|
|
1764
|
+
}
|
|
1765
|
+
}, directives: [i1.NgIf, SchemaFormComponent, i1.NgForOf, SchemaCustomAttributesComponent], pipes: [i7.TranslatePipe], styles: [".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"] });
|
|
1766
|
+
var ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaFormRenderComponent);
|
|
1767
|
+
/*@__PURE__*/ (function () {
|
|
1768
|
+
i0.ɵsetClassMetadata(SchemaFormRenderComponent, [{
|
|
1769
|
+
type: i0.Component,
|
|
1770
|
+
args: [{
|
|
1771
|
+
selector: 'schema-form-render',
|
|
1772
|
+
templateUrl: 'schema-form-render.html',
|
|
1773
|
+
styleUrls: ['./schema-form-render.scss']
|
|
1774
|
+
}]
|
|
1775
|
+
}], null, { idPrefix: [{
|
|
1776
|
+
type: i0.Input
|
|
1777
|
+
}], schemas: [{
|
|
1778
|
+
type: i0.Input
|
|
1779
|
+
}], customProperties: [{
|
|
1780
|
+
type: i0.Input
|
|
1781
|
+
}], editing: [{
|
|
1782
|
+
type: i0.Input
|
|
1783
|
+
}], inputType: [{
|
|
1784
|
+
type: i0.Input
|
|
1785
|
+
}] });
|
|
1781
1786
|
})();
|
|
1782
1787
|
|
|
1783
|
-
var SchemaFormRenderModule = /** @class */ (function () {
|
|
1784
|
-
function SchemaFormRenderModule() {
|
|
1785
|
-
}
|
|
1786
|
-
return SchemaFormRenderModule;
|
|
1787
|
-
}());
|
|
1788
|
-
SchemaFormRenderModule.ɵmod = i0.ɵɵdefineNgModule({ type: SchemaFormRenderModule });
|
|
1789
|
-
SchemaFormRenderModule.ɵinj = i0.ɵɵdefineInjector({ factory: function SchemaFormRenderModule_Factory(t) { return new (t || SchemaFormRenderModule)(); }, providers: [
|
|
1790
|
-
SchemaFieldsService
|
|
1791
|
-
], imports: [[
|
|
1792
|
-
i1.CommonModule,
|
|
1793
|
-
i2.DndModule,
|
|
1794
|
-
i3.FormsModule,
|
|
1795
|
-
i4.MatTooltipModule,
|
|
1796
|
-
i7.TranslateModule,
|
|
1797
|
-
i8.InputsModule
|
|
1798
|
-
]] });
|
|
1799
|
-
(function () {
|
|
1800
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SchemaFormRenderModule, { declarations: [ArraySessionComponent,
|
|
1801
|
-
SchemaArrayComponent,
|
|
1802
|
-
FieldRenderComponent,
|
|
1803
|
-
InputRenderComponent,
|
|
1804
|
-
BooleanInputComponent,
|
|
1805
|
-
NumberInputComponent,
|
|
1806
|
-
SchemaInputComponent,
|
|
1807
|
-
SchemaObjectComponent,
|
|
1808
|
-
SchemaFormRenderComponent,
|
|
1809
|
-
SchemaFormComponent,
|
|
1810
|
-
SchemaCustomAttributesComponent], imports: [i1.CommonModule,
|
|
1811
|
-
i2.DndModule,
|
|
1812
|
-
i3.FormsModule,
|
|
1813
|
-
i4.MatTooltipModule,
|
|
1814
|
-
i7.TranslateModule,
|
|
1815
|
-
i8.InputsModule], exports: [ArraySessionComponent,
|
|
1816
|
-
SchemaArrayComponent,
|
|
1817
|
-
FieldRenderComponent,
|
|
1818
|
-
InputRenderComponent,
|
|
1819
|
-
BooleanInputComponent,
|
|
1820
|
-
NumberInputComponent,
|
|
1821
|
-
SchemaInputComponent,
|
|
1822
|
-
SchemaObjectComponent,
|
|
1823
|
-
SchemaFormRenderComponent,
|
|
1824
|
-
SchemaFormComponent,
|
|
1825
|
-
SchemaCustomAttributesComponent] });
|
|
1826
|
-
})();
|
|
1827
|
-
/*@__PURE__*/ (function () {
|
|
1828
|
-
i0.ɵsetClassMetadata(SchemaFormRenderModule, [{
|
|
1829
|
-
type: i0.NgModule,
|
|
1830
|
-
args: [{
|
|
1831
|
-
imports: [
|
|
1832
|
-
i1.CommonModule,
|
|
1833
|
-
i2.DndModule,
|
|
1834
|
-
i3.FormsModule,
|
|
1835
|
-
i4.MatTooltipModule,
|
|
1836
|
-
i7.TranslateModule,
|
|
1837
|
-
i8.InputsModule
|
|
1838
|
-
],
|
|
1839
|
-
declarations: [
|
|
1840
|
-
ArraySessionComponent,
|
|
1841
|
-
SchemaArrayComponent,
|
|
1842
|
-
FieldRenderComponent,
|
|
1843
|
-
InputRenderComponent,
|
|
1844
|
-
BooleanInputComponent,
|
|
1845
|
-
NumberInputComponent,
|
|
1846
|
-
SchemaInputComponent,
|
|
1847
|
-
SchemaObjectComponent,
|
|
1848
|
-
SchemaFormRenderComponent,
|
|
1849
|
-
SchemaFormComponent,
|
|
1850
|
-
SchemaCustomAttributesComponent
|
|
1851
|
-
],
|
|
1852
|
-
exports: [
|
|
1853
|
-
ArraySessionComponent,
|
|
1854
|
-
SchemaArrayComponent,
|
|
1855
|
-
FieldRenderComponent,
|
|
1856
|
-
InputRenderComponent,
|
|
1857
|
-
BooleanInputComponent,
|
|
1858
|
-
NumberInputComponent,
|
|
1859
|
-
SchemaInputComponent,
|
|
1860
|
-
SchemaObjectComponent,
|
|
1861
|
-
SchemaFormRenderComponent,
|
|
1862
|
-
SchemaFormComponent,
|
|
1863
|
-
SchemaCustomAttributesComponent
|
|
1864
|
-
],
|
|
1865
|
-
providers: [
|
|
1866
|
-
SchemaFieldsService
|
|
1867
|
-
]
|
|
1868
|
-
}]
|
|
1869
|
-
}], null, null);
|
|
1870
|
-
})();
|
|
1871
|
-
i0.ɵɵsetComponentScope(SchemaFormComponent, [i1.NgClass, i1.NgComponentOutlet, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i1.NgPlural, i1.NgPluralCase, i2.DndDraggableDirective, i2.DndDropzoneDirective, i2.DndHandleDirective, i2.DndPlaceholderRefDirective, i2.DndDragImageRefDirective, i3.ɵangular_packages_forms_forms_y, i3.NgSelectOption, i3.ɵangular_packages_forms_forms_x, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.RangeValueAccessor, i3.CheckboxControlValueAccessor, i3.SelectControlValueAccessor, i3.SelectMultipleControlValueAccessor, i3.RadioControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.RequiredValidator, i3.MinLengthValidator, i3.MaxLengthValidator, i3.PatternValidator, i3.CheckboxRequiredValidator, i3.EmailValidator, i3.NgModel, i3.NgModelGroup, i3.NgForm, i4.MatTooltip, i4.TooltipComponent, i5.Dir, i6.CdkScrollable, i7.TranslateDirective, i8.SelectBoxComponent, i8.SelectEnumComponent, i8.InputTextComponent, i8.InputPasswordComponent, i8.InputAvatarComponent, i8.InputFileComponent, i8.CustomSelectComponent, i8.FieldComponent, ArraySessionComponent,
|
|
1872
|
-
SchemaArrayComponent,
|
|
1873
|
-
FieldRenderComponent,
|
|
1874
|
-
InputRenderComponent,
|
|
1875
|
-
BooleanInputComponent,
|
|
1876
|
-
NumberInputComponent,
|
|
1877
|
-
SchemaInputComponent,
|
|
1878
|
-
SchemaObjectComponent,
|
|
1879
|
-
SchemaFormRenderComponent,
|
|
1880
|
-
SchemaFormComponent,
|
|
1788
|
+
var SchemaFormRenderModule = /** @class */ (function () {
|
|
1789
|
+
function SchemaFormRenderModule() {
|
|
1790
|
+
}
|
|
1791
|
+
return SchemaFormRenderModule;
|
|
1792
|
+
}());
|
|
1793
|
+
SchemaFormRenderModule.ɵmod = i0.ɵɵdefineNgModule({ type: SchemaFormRenderModule });
|
|
1794
|
+
SchemaFormRenderModule.ɵinj = i0.ɵɵdefineInjector({ factory: function SchemaFormRenderModule_Factory(t) { return new (t || SchemaFormRenderModule)(); }, providers: [
|
|
1795
|
+
SchemaFieldsService
|
|
1796
|
+
], imports: [[
|
|
1797
|
+
i1.CommonModule,
|
|
1798
|
+
i2.DndModule,
|
|
1799
|
+
i3.FormsModule,
|
|
1800
|
+
i4.MatTooltipModule,
|
|
1801
|
+
i7.TranslateModule,
|
|
1802
|
+
i8.InputsModule
|
|
1803
|
+
]] });
|
|
1804
|
+
(function () {
|
|
1805
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SchemaFormRenderModule, { declarations: [ArraySessionComponent,
|
|
1806
|
+
SchemaArrayComponent,
|
|
1807
|
+
FieldRenderComponent,
|
|
1808
|
+
InputRenderComponent,
|
|
1809
|
+
BooleanInputComponent,
|
|
1810
|
+
NumberInputComponent,
|
|
1811
|
+
SchemaInputComponent,
|
|
1812
|
+
SchemaObjectComponent,
|
|
1813
|
+
SchemaFormRenderComponent,
|
|
1814
|
+
SchemaFormComponent,
|
|
1815
|
+
SchemaCustomAttributesComponent], imports: [i1.CommonModule,
|
|
1816
|
+
i2.DndModule,
|
|
1817
|
+
i3.FormsModule,
|
|
1818
|
+
i4.MatTooltipModule,
|
|
1819
|
+
i7.TranslateModule,
|
|
1820
|
+
i8.InputsModule], exports: [ArraySessionComponent,
|
|
1821
|
+
SchemaArrayComponent,
|
|
1822
|
+
FieldRenderComponent,
|
|
1823
|
+
InputRenderComponent,
|
|
1824
|
+
BooleanInputComponent,
|
|
1825
|
+
NumberInputComponent,
|
|
1826
|
+
SchemaInputComponent,
|
|
1827
|
+
SchemaObjectComponent,
|
|
1828
|
+
SchemaFormRenderComponent,
|
|
1829
|
+
SchemaFormComponent,
|
|
1830
|
+
SchemaCustomAttributesComponent] });
|
|
1831
|
+
})();
|
|
1832
|
+
/*@__PURE__*/ (function () {
|
|
1833
|
+
i0.ɵsetClassMetadata(SchemaFormRenderModule, [{
|
|
1834
|
+
type: i0.NgModule,
|
|
1835
|
+
args: [{
|
|
1836
|
+
imports: [
|
|
1837
|
+
i1.CommonModule,
|
|
1838
|
+
i2.DndModule,
|
|
1839
|
+
i3.FormsModule,
|
|
1840
|
+
i4.MatTooltipModule,
|
|
1841
|
+
i7.TranslateModule,
|
|
1842
|
+
i8.InputsModule
|
|
1843
|
+
],
|
|
1844
|
+
declarations: [
|
|
1845
|
+
ArraySessionComponent,
|
|
1846
|
+
SchemaArrayComponent,
|
|
1847
|
+
FieldRenderComponent,
|
|
1848
|
+
InputRenderComponent,
|
|
1849
|
+
BooleanInputComponent,
|
|
1850
|
+
NumberInputComponent,
|
|
1851
|
+
SchemaInputComponent,
|
|
1852
|
+
SchemaObjectComponent,
|
|
1853
|
+
SchemaFormRenderComponent,
|
|
1854
|
+
SchemaFormComponent,
|
|
1855
|
+
SchemaCustomAttributesComponent
|
|
1856
|
+
],
|
|
1857
|
+
exports: [
|
|
1858
|
+
ArraySessionComponent,
|
|
1859
|
+
SchemaArrayComponent,
|
|
1860
|
+
FieldRenderComponent,
|
|
1861
|
+
InputRenderComponent,
|
|
1862
|
+
BooleanInputComponent,
|
|
1863
|
+
NumberInputComponent,
|
|
1864
|
+
SchemaInputComponent,
|
|
1865
|
+
SchemaObjectComponent,
|
|
1866
|
+
SchemaFormRenderComponent,
|
|
1867
|
+
SchemaFormComponent,
|
|
1868
|
+
SchemaCustomAttributesComponent
|
|
1869
|
+
],
|
|
1870
|
+
providers: [
|
|
1871
|
+
SchemaFieldsService
|
|
1872
|
+
]
|
|
1873
|
+
}]
|
|
1874
|
+
}], null, null);
|
|
1875
|
+
})();
|
|
1876
|
+
i0.ɵɵsetComponentScope(SchemaFormComponent, [i1.NgClass, i1.NgComponentOutlet, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i1.NgPlural, i1.NgPluralCase, i2.DndDraggableDirective, i2.DndDropzoneDirective, i2.DndHandleDirective, i2.DndPlaceholderRefDirective, i2.DndDragImageRefDirective, i3.ɵangular_packages_forms_forms_y, i3.NgSelectOption, i3.ɵangular_packages_forms_forms_x, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.RangeValueAccessor, i3.CheckboxControlValueAccessor, i3.SelectControlValueAccessor, i3.SelectMultipleControlValueAccessor, i3.RadioControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.RequiredValidator, i3.MinLengthValidator, i3.MaxLengthValidator, i3.PatternValidator, i3.CheckboxRequiredValidator, i3.EmailValidator, i3.NgModel, i3.NgModelGroup, i3.NgForm, i4.MatTooltip, i4.TooltipComponent, i5.Dir, i6.CdkScrollable, i7.TranslateDirective, i8.SelectBoxComponent, i8.SelectEnumComponent, i8.InputTextComponent, i8.InputPasswordComponent, i8.InputAvatarComponent, i8.InputFileComponent, i8.CustomSelectComponent, i8.FieldComponent, ArraySessionComponent,
|
|
1877
|
+
SchemaArrayComponent,
|
|
1878
|
+
FieldRenderComponent,
|
|
1879
|
+
InputRenderComponent,
|
|
1880
|
+
BooleanInputComponent,
|
|
1881
|
+
NumberInputComponent,
|
|
1882
|
+
SchemaInputComponent,
|
|
1883
|
+
SchemaObjectComponent,
|
|
1884
|
+
SchemaFormRenderComponent,
|
|
1885
|
+
SchemaFormComponent,
|
|
1881
1886
|
SchemaCustomAttributesComponent], [i1.AsyncPipe, i1.UpperCasePipe, i1.LowerCasePipe, i1.JsonPipe, i1.SlicePipe, i1.DecimalPipe, i1.PercentPipe, i1.TitleCasePipe, i1.CurrencyPipe, i1.DatePipe, i1.I18nPluralPipe, i1.I18nSelectPipe, i1.KeyValuePipe, i7.TranslatePipe]);
|
|
1882
1887
|
|
|
1883
|
-
var TypeScriptCompile = /** @class */ (function () {
|
|
1884
|
-
function TypeScriptCompile() {
|
|
1885
|
-
}
|
|
1886
|
-
TypeScriptCompile.addItemToFormProperties = function (formProperties, item, key) {
|
|
1887
|
-
if (item.minLength && item.minLength > 0) {
|
|
1888
|
-
formProperties[key] = new i3.FormControl([null, [i3.Validators.required]]);
|
|
1889
|
-
}
|
|
1890
|
-
else {
|
|
1891
|
-
formProperties[key] = new i3.FormControl([null]);
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
TypeScriptCompile.compileProperties = function (input) {
|
|
1895
|
-
var compiledProperties = [];
|
|
1896
|
-
var formProperties = {};
|
|
1897
|
-
var inputData = {};
|
|
1898
|
-
var inputToCompile = JSON.parse(JSON.stringify(input));
|
|
1899
|
-
if (inputToCompile.properties) {
|
|
1900
|
-
if (inputToCompile.type === 'array') {
|
|
1901
|
-
inputData = [];
|
|
1902
|
-
}
|
|
1903
|
-
if (inputToCompile.type === 'object') {
|
|
1904
|
-
inputData = {};
|
|
1905
|
-
}
|
|
1906
|
-
inputToCompile.id = 'inputData';
|
|
1907
|
-
this.proccessProperties(inputToCompile, formProperties, 'inputData');
|
|
1908
|
-
compiledProperties.push(inputToCompile);
|
|
1909
|
-
}
|
|
1910
|
-
else if (inputToCompile.type === 'array') {
|
|
1911
|
-
inputToCompile.id = 'inputData';
|
|
1912
|
-
inputData = [];
|
|
1913
|
-
TypeScriptCompile.addItemToFormProperties(formProperties, inputToCompile, 'inputData');
|
|
1914
|
-
compiledProperties.push(inputToCompile);
|
|
1915
|
-
}
|
|
1916
|
-
else if (!inputToCompile.type) {
|
|
1917
|
-
for (var index = 0; index < Object.keys(inputToCompile).length; index++) {
|
|
1918
|
-
var key = Object.keys(inputToCompile)[index];
|
|
1919
|
-
var item = inputToCompile[key];
|
|
1920
|
-
item.id = key;
|
|
1921
|
-
if (item.type === 'array') {
|
|
1922
|
-
inputData[item.id] = [];
|
|
1923
|
-
}
|
|
1924
|
-
if (item.type === 'object') {
|
|
1925
|
-
inputData[item.id] = {};
|
|
1926
|
-
}
|
|
1927
|
-
this.proccessProperties(item, formProperties, key);
|
|
1928
|
-
compiledProperties.push(item);
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
compiledProperties.sort(function (a, b) { return a.propertyOrder - b.propertyOrder; });
|
|
1932
|
-
return { compiledProperties: compiledProperties, formProperties: formProperties, inputData: inputData };
|
|
1933
|
-
};
|
|
1934
|
-
TypeScriptCompile.proccessProperties = function (item, formProperties, key) {
|
|
1935
|
-
if (this.hasProperties(item)) {
|
|
1936
|
-
var arFieldsChild = [];
|
|
1937
|
-
for (var indexChild = 0; indexChild < Object.keys(item.properties).length; indexChild++) {
|
|
1938
|
-
var keyChild = Object.keys(item.properties)[indexChild];
|
|
1939
|
-
var itemChild = item.properties[keyChild];
|
|
1940
|
-
itemChild.id = keyChild;
|
|
1941
|
-
if (this.hasProperties(itemChild)) {
|
|
1942
|
-
this.proccessProperties(itemChild, formProperties, keyChild);
|
|
1943
|
-
arFieldsChild.push(itemChild);
|
|
1944
|
-
}
|
|
1945
|
-
else {
|
|
1946
|
-
TypeScriptCompile.addItemToFormProperties(formProperties, itemChild, keyChild);
|
|
1947
|
-
arFieldsChild.push(itemChild);
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
item.properties = arFieldsChild;
|
|
1951
|
-
}
|
|
1952
|
-
else {
|
|
1953
|
-
TypeScriptCompile.addItemToFormProperties(formProperties, item, key);
|
|
1954
|
-
}
|
|
1955
|
-
};
|
|
1956
|
-
TypeScriptCompile.hasProperties = function (item) {
|
|
1957
|
-
return item.type === 'object' || (item.type === 'array' && item.properties);
|
|
1958
|
-
};
|
|
1959
|
-
return TypeScriptCompile;
|
|
1888
|
+
var TypeScriptCompile = /** @class */ (function () {
|
|
1889
|
+
function TypeScriptCompile() {
|
|
1890
|
+
}
|
|
1891
|
+
TypeScriptCompile.addItemToFormProperties = function (formProperties, item, key) {
|
|
1892
|
+
if (item.minLength && item.minLength > 0) {
|
|
1893
|
+
formProperties[key] = new i3.FormControl([null, [i3.Validators.required]]);
|
|
1894
|
+
}
|
|
1895
|
+
else {
|
|
1896
|
+
formProperties[key] = new i3.FormControl([null]);
|
|
1897
|
+
}
|
|
1898
|
+
};
|
|
1899
|
+
TypeScriptCompile.compileProperties = function (input) {
|
|
1900
|
+
var compiledProperties = [];
|
|
1901
|
+
var formProperties = {};
|
|
1902
|
+
var inputData = {};
|
|
1903
|
+
var inputToCompile = JSON.parse(JSON.stringify(input));
|
|
1904
|
+
if (inputToCompile.properties) {
|
|
1905
|
+
if (inputToCompile.type === 'array') {
|
|
1906
|
+
inputData = [];
|
|
1907
|
+
}
|
|
1908
|
+
if (inputToCompile.type === 'object') {
|
|
1909
|
+
inputData = {};
|
|
1910
|
+
}
|
|
1911
|
+
inputToCompile.id = 'inputData';
|
|
1912
|
+
this.proccessProperties(inputToCompile, formProperties, 'inputData');
|
|
1913
|
+
compiledProperties.push(inputToCompile);
|
|
1914
|
+
}
|
|
1915
|
+
else if (inputToCompile.type === 'array') {
|
|
1916
|
+
inputToCompile.id = 'inputData';
|
|
1917
|
+
inputData = [];
|
|
1918
|
+
TypeScriptCompile.addItemToFormProperties(formProperties, inputToCompile, 'inputData');
|
|
1919
|
+
compiledProperties.push(inputToCompile);
|
|
1920
|
+
}
|
|
1921
|
+
else if (!inputToCompile.type) {
|
|
1922
|
+
for (var index = 0; index < Object.keys(inputToCompile).length; index++) {
|
|
1923
|
+
var key = Object.keys(inputToCompile)[index];
|
|
1924
|
+
var item = inputToCompile[key];
|
|
1925
|
+
item.id = key;
|
|
1926
|
+
if (item.type === 'array') {
|
|
1927
|
+
inputData[item.id] = [];
|
|
1928
|
+
}
|
|
1929
|
+
if (item.type === 'object') {
|
|
1930
|
+
inputData[item.id] = {};
|
|
1931
|
+
}
|
|
1932
|
+
this.proccessProperties(item, formProperties, key);
|
|
1933
|
+
compiledProperties.push(item);
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
compiledProperties.sort(function (a, b) { return a.propertyOrder - b.propertyOrder; });
|
|
1937
|
+
return { compiledProperties: compiledProperties, formProperties: formProperties, inputData: inputData };
|
|
1938
|
+
};
|
|
1939
|
+
TypeScriptCompile.proccessProperties = function (item, formProperties, key) {
|
|
1940
|
+
if (this.hasProperties(item)) {
|
|
1941
|
+
var arFieldsChild = [];
|
|
1942
|
+
for (var indexChild = 0; indexChild < Object.keys(item.properties).length; indexChild++) {
|
|
1943
|
+
var keyChild = Object.keys(item.properties)[indexChild];
|
|
1944
|
+
var itemChild = item.properties[keyChild];
|
|
1945
|
+
itemChild.id = keyChild;
|
|
1946
|
+
if (this.hasProperties(itemChild)) {
|
|
1947
|
+
this.proccessProperties(itemChild, formProperties, keyChild);
|
|
1948
|
+
arFieldsChild.push(itemChild);
|
|
1949
|
+
}
|
|
1950
|
+
else {
|
|
1951
|
+
TypeScriptCompile.addItemToFormProperties(formProperties, itemChild, keyChild);
|
|
1952
|
+
arFieldsChild.push(itemChild);
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
item.properties = arFieldsChild;
|
|
1956
|
+
}
|
|
1957
|
+
else {
|
|
1958
|
+
TypeScriptCompile.addItemToFormProperties(formProperties, item, key);
|
|
1959
|
+
}
|
|
1960
|
+
};
|
|
1961
|
+
TypeScriptCompile.hasProperties = function (item) {
|
|
1962
|
+
return item.type === 'object' || (item.type === 'array' && item.properties);
|
|
1963
|
+
};
|
|
1964
|
+
return TypeScriptCompile;
|
|
1960
1965
|
}());
|
|
1961
1966
|
|
|
1962
|
-
/**
|
|
1963
|
-
* Generated bundle index. Do not edit.
|
|
1967
|
+
/**
|
|
1968
|
+
* Generated bundle index. Do not edit.
|
|
1964
1969
|
*/
|
|
1965
1970
|
|
|
1966
1971
|
exports.ArraySessionComponent = ArraySessionComponent;
|