form-aurora-stefanini 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/form-aurora-stefanini.umd.js +1225 -0
- package/bundles/form-aurora-stefanini.umd.js.map +1 -0
- package/bundles/form-aurora-stefanini.umd.min.js +16 -0
- package/bundles/form-aurora-stefanini.umd.min.js.map +1 -0
- package/esm2015/form-aurora-stefanini.js +5 -0
- package/esm2015/lib/Components/from-aurora/form-aurora.component.js +707 -0
- package/esm2015/lib/Models/company-parameters.js +7 -0
- package/esm2015/lib/Models/company.js +1 -0
- package/esm2015/lib/Models/fill.js +3 -0
- package/esm2015/lib/Models/state.js +1 -0
- package/esm2015/lib/Models/step.js +1 -0
- package/esm2015/lib/Models/stepMethod.js +3 -0
- package/esm2015/lib/form-aurora.module.js +22 -0
- package/esm2015/lib/services/TemplateService.js +85 -0
- package/esm2015/lib/services/data.service.js +82 -0
- package/esm2015/lib/utils/regex.js +52 -0
- package/esm2015/public-api.js +10 -0
- package/esm5/form-aurora-stefanini.js +5 -0
- package/esm5/lib/Components/from-aurora/form-aurora.component.js +751 -0
- package/esm5/lib/Models/company-parameters.js +19 -0
- package/esm5/lib/Models/company.js +1 -0
- package/esm5/lib/Models/fill.js +7 -0
- package/esm5/lib/Models/state.js +1 -0
- package/esm5/lib/Models/step.js +1 -0
- package/esm5/lib/Models/stepMethod.js +7 -0
- package/esm5/lib/form-aurora.module.js +25 -0
- package/esm5/lib/services/TemplateService.js +97 -0
- package/esm5/lib/services/data.service.js +85 -0
- package/esm5/lib/utils/regex.js +52 -0
- package/esm5/public-api.js +10 -0
- package/fesm2015/form-aurora-stefanini.js +939 -0
- package/fesm2015/form-aurora-stefanini.js.map +1 -0
- package/fesm5/form-aurora-stefanini.js +1004 -0
- package/fesm5/form-aurora-stefanini.js.map +1 -0
- package/form-aurora-stefanini.d.ts +4 -0
- package/form-aurora-stefanini.metadata.json +1 -0
- package/lib/Components/from-aurora/form-aurora.component.d.ts +118 -0
- package/lib/Models/company-parameters.d.ts +14 -0
- package/lib/Models/company.d.ts +22 -0
- package/lib/Models/fill.d.ts +6 -0
- package/lib/Models/state.d.ts +5 -0
- package/lib/Models/step.d.ts +14 -0
- package/lib/Models/stepMethod.d.ts +8 -0
- package/lib/form-aurora.module.d.ts +2 -0
- package/lib/services/TemplateService.d.ts +8 -0
- package/lib/services/data.service.d.ts +35 -0
- package/lib/utils/regex.d.ts +51 -0
- package/package.json +28 -17
- package/{src/public-api.ts → public-api.d.ts} +1 -4
- package/karma.conf.js +0 -32
- package/ng-package.json +0 -7
- package/src/lib/Components/from-aurora/form-aurora.component.css +0 -117
- package/src/lib/Components/from-aurora/form-aurora.component.html +0 -343
- package/src/lib/Components/from-aurora/form-aurora.component.spec.ts +0 -25
- package/src/lib/Components/from-aurora/form-aurora.component.ts +0 -725
- package/src/lib/Models/company-parameters.ts +0 -16
- package/src/lib/Models/company.ts +0 -25
- package/src/lib/Models/fill.ts +0 -6
- package/src/lib/Models/state.ts +0 -5
- package/src/lib/Models/step.ts +0 -15
- package/src/lib/Models/stepMethod.ts +0 -9
- package/src/lib/form-aurora.module.ts +0 -18
- package/src/lib/services/TemplateService.ts +0 -84
- package/src/lib/services/data.service.ts +0 -83
- package/src/lib/utils/regex.ts +0 -51
- package/src/test.ts +0 -21
- package/tsconfig.lib.json +0 -26
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
@@ -0,0 +1,1225 @@
|
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common/http'), require('@ng-bootstrap/ng-bootstrap'), require('moment'), require('@angular/common'), require('ng-recaptcha')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('form-aurora-stefanini', ['exports', '@angular/core', '@angular/forms', '@angular/common/http', '@ng-bootstrap/ng-bootstrap', 'moment', '@angular/common', 'ng-recaptcha'], factory) :
|
4
|
+
(global = global || self, factory(global['form-aurora-stefanini'] = {}, global.ng.core, global.ng.forms, global.ng.common.http, global.ngBootstrap, global.moment_, global.ng.common, global.ngRecaptcha));
|
5
|
+
}(this, (function (exports, core, forms, http, ngBootstrap, moment_, common, ngRecaptcha) { 'use strict';
|
6
|
+
|
7
|
+
/*! *****************************************************************************
|
8
|
+
Copyright (c) Microsoft Corporation.
|
9
|
+
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
11
|
+
purpose with or without fee is hereby granted.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
14
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
15
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
17
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
18
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
19
|
+
PERFORMANCE OF THIS SOFTWARE.
|
20
|
+
***************************************************************************** */
|
21
|
+
/* global Reflect, Promise */
|
22
|
+
|
23
|
+
var extendStatics = function(d, b) {
|
24
|
+
extendStatics = Object.setPrototypeOf ||
|
25
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
26
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
27
|
+
return extendStatics(d, b);
|
28
|
+
};
|
29
|
+
|
30
|
+
function __extends(d, b) {
|
31
|
+
extendStatics(d, b);
|
32
|
+
function __() { this.constructor = d; }
|
33
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
34
|
+
}
|
35
|
+
|
36
|
+
var __assign = function() {
|
37
|
+
__assign = Object.assign || function __assign(t) {
|
38
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
39
|
+
s = arguments[i];
|
40
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
41
|
+
}
|
42
|
+
return t;
|
43
|
+
};
|
44
|
+
return __assign.apply(this, arguments);
|
45
|
+
};
|
46
|
+
|
47
|
+
function __rest(s, e) {
|
48
|
+
var t = {};
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
50
|
+
t[p] = s[p];
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
54
|
+
t[p[i]] = s[p[i]];
|
55
|
+
}
|
56
|
+
return t;
|
57
|
+
}
|
58
|
+
|
59
|
+
function __decorate(decorators, target, key, desc) {
|
60
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
61
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
62
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
63
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
64
|
+
}
|
65
|
+
|
66
|
+
function __param(paramIndex, decorator) {
|
67
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
68
|
+
}
|
69
|
+
|
70
|
+
function __metadata(metadataKey, metadataValue) {
|
71
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
72
|
+
}
|
73
|
+
|
74
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
75
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
76
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
77
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
78
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
79
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
80
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
81
|
+
});
|
82
|
+
}
|
83
|
+
|
84
|
+
function __generator(thisArg, body) {
|
85
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
86
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
87
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
88
|
+
function step(op) {
|
89
|
+
if (f) throw new TypeError("Generator is already executing.");
|
90
|
+
while (_) try {
|
91
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
92
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
93
|
+
switch (op[0]) {
|
94
|
+
case 0: case 1: t = op; break;
|
95
|
+
case 4: _.label++; return { value: op[1], done: false };
|
96
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
97
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
98
|
+
default:
|
99
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
100
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
101
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
102
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
103
|
+
if (t[2]) _.ops.pop();
|
104
|
+
_.trys.pop(); continue;
|
105
|
+
}
|
106
|
+
op = body.call(thisArg, _);
|
107
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
108
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
function __createBinding(o, m, k, k2) {
|
113
|
+
if (k2 === undefined) k2 = k;
|
114
|
+
o[k2] = m[k];
|
115
|
+
}
|
116
|
+
|
117
|
+
function __exportStar(m, exports) {
|
118
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
|
119
|
+
}
|
120
|
+
|
121
|
+
function __values(o) {
|
122
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
123
|
+
if (m) return m.call(o);
|
124
|
+
if (o && typeof o.length === "number") return {
|
125
|
+
next: function () {
|
126
|
+
if (o && i >= o.length) o = void 0;
|
127
|
+
return { value: o && o[i++], done: !o };
|
128
|
+
}
|
129
|
+
};
|
130
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
131
|
+
}
|
132
|
+
|
133
|
+
function __read(o, n) {
|
134
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
135
|
+
if (!m) return o;
|
136
|
+
var i = m.call(o), r, ar = [], e;
|
137
|
+
try {
|
138
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
139
|
+
}
|
140
|
+
catch (error) { e = { error: error }; }
|
141
|
+
finally {
|
142
|
+
try {
|
143
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
144
|
+
}
|
145
|
+
finally { if (e) throw e.error; }
|
146
|
+
}
|
147
|
+
return ar;
|
148
|
+
}
|
149
|
+
|
150
|
+
function __spread() {
|
151
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
152
|
+
ar = ar.concat(__read(arguments[i]));
|
153
|
+
return ar;
|
154
|
+
}
|
155
|
+
|
156
|
+
function __spreadArrays() {
|
157
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
158
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
159
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
160
|
+
r[k] = a[j];
|
161
|
+
return r;
|
162
|
+
};
|
163
|
+
|
164
|
+
function __await(v) {
|
165
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
166
|
+
}
|
167
|
+
|
168
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
169
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
170
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
171
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
172
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
173
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
174
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
175
|
+
function fulfill(value) { resume("next", value); }
|
176
|
+
function reject(value) { resume("throw", value); }
|
177
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
178
|
+
}
|
179
|
+
|
180
|
+
function __asyncDelegator(o) {
|
181
|
+
var i, p;
|
182
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
183
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
184
|
+
}
|
185
|
+
|
186
|
+
function __asyncValues(o) {
|
187
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
188
|
+
var m = o[Symbol.asyncIterator], i;
|
189
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
190
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
191
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
192
|
+
}
|
193
|
+
|
194
|
+
function __makeTemplateObject(cooked, raw) {
|
195
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
196
|
+
return cooked;
|
197
|
+
};
|
198
|
+
|
199
|
+
function __importStar(mod) {
|
200
|
+
if (mod && mod.__esModule) return mod;
|
201
|
+
var result = {};
|
202
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
203
|
+
result.default = mod;
|
204
|
+
return result;
|
205
|
+
}
|
206
|
+
|
207
|
+
function __importDefault(mod) {
|
208
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
209
|
+
}
|
210
|
+
|
211
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
212
|
+
if (!privateMap.has(receiver)) {
|
213
|
+
throw new TypeError("attempted to get private field on non-instance");
|
214
|
+
}
|
215
|
+
return privateMap.get(receiver);
|
216
|
+
}
|
217
|
+
|
218
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
219
|
+
if (!privateMap.has(receiver)) {
|
220
|
+
throw new TypeError("attempted to set private field on non-instance");
|
221
|
+
}
|
222
|
+
privateMap.set(receiver, value);
|
223
|
+
return value;
|
224
|
+
}
|
225
|
+
|
226
|
+
var regexType = {
|
227
|
+
default: {
|
228
|
+
exp: '^[a-zA-Z0-9ñÑáéíóúüÁÉÍÓÚÜ,.\\-_\\s]*$',
|
229
|
+
message: 'Formato inválido, no use caracteres especiales'
|
230
|
+
},
|
231
|
+
word: {
|
232
|
+
exp: '^[a-zA-Z0-9ñÑáéíóúüÁÉÍÓÚÜ,.\\-_]*$',
|
233
|
+
message: 'Formato inválido, no use caracteres especiales ni espacios'
|
234
|
+
},
|
235
|
+
name: {
|
236
|
+
exp: '^[a-zA-ZñÑáéíóúüÁÉÍÓÚÜ\\s]*$',
|
237
|
+
message: 'Formato inválido, no use caracteres especiales ni números'
|
238
|
+
},
|
239
|
+
alphanumberWord: {
|
240
|
+
exp: '^[a-zA-Z0-9]*$',
|
241
|
+
message: 'Formato alfanúmerico inválido'
|
242
|
+
},
|
243
|
+
charWord: {
|
244
|
+
exp: '^[a-zA-Z]*$',
|
245
|
+
message: 'Formato de caracteres inválido'
|
246
|
+
},
|
247
|
+
anyWord: {
|
248
|
+
exp: '^\\S*$',
|
249
|
+
message: 'Formato inválido'
|
250
|
+
},
|
251
|
+
percent: {
|
252
|
+
exp: '^100$|^[0-9]{1,2}$|^[0-9]{1,2}\\.[0-9]{1,2}$',
|
253
|
+
message: 'Formato de porcentaje inválido, use el punto decimal (.)'
|
254
|
+
},
|
255
|
+
email: {
|
256
|
+
exp: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
257
|
+
message: 'Formato de e-mail inválido'
|
258
|
+
},
|
259
|
+
number: {
|
260
|
+
exp: '^[0-9]*$',
|
261
|
+
message: 'Formato de número inválido'
|
262
|
+
},
|
263
|
+
time24: {
|
264
|
+
exp: '^([01]?[0-9]|2[0-3]):[0-5][0-9]$',
|
265
|
+
message: 'Formato de hora militar inválido, use 23:45'
|
266
|
+
},
|
267
|
+
date: {
|
268
|
+
exp: '^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$',
|
269
|
+
message: 'Formato de fecha inválido',
|
270
|
+
internal: 'dd/mm/yyyy'
|
271
|
+
},
|
272
|
+
password: {
|
273
|
+
exp: '^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$',
|
274
|
+
message: 'La contraseña debe incluir una longitud mínima de 8 caracteres, una letra mayúscula, una letra minúscula, un número, un carácter especial (@#$%^&+=/.) y no debe tener espacios.'
|
275
|
+
}
|
276
|
+
};
|
277
|
+
|
278
|
+
var CommonDataService = /** @class */ (function () {
|
279
|
+
function CommonDataService() {
|
280
|
+
}
|
281
|
+
CommonDataService_1 = CommonDataService;
|
282
|
+
CommonDataService.prototype.getData = function () {
|
283
|
+
if (localStorage.getItem("data") != null) {
|
284
|
+
var data = new Map(JSON.parse(localStorage.getItem("data")));
|
285
|
+
return data;
|
286
|
+
}
|
287
|
+
else {
|
288
|
+
/** Error get cookie */
|
289
|
+
}
|
290
|
+
};
|
291
|
+
CommonDataService.prototype.setData = function (data) {
|
292
|
+
localStorage.setItem("data", JSON.stringify(Array.from(data.entries())));
|
293
|
+
};
|
294
|
+
CommonDataService.prototype.initData = function () {
|
295
|
+
this.setData(new Map());
|
296
|
+
};
|
297
|
+
CommonDataService.prototype.putValue = function (key, value) {
|
298
|
+
var data = this.getData();
|
299
|
+
data = data.set(key, value);
|
300
|
+
this.setData(data);
|
301
|
+
};
|
302
|
+
CommonDataService.prototype.addValue = function (keyPrimary, keySecond, value) {
|
303
|
+
var data = this.getValue(keyPrimary);
|
304
|
+
var dataReturn = this.getData();
|
305
|
+
data[keySecond] = value;
|
306
|
+
dataReturn = dataReturn.set(keyPrimary, data);
|
307
|
+
this.setData(dataReturn);
|
308
|
+
};
|
309
|
+
CommonDataService.prototype.getValue = function (key) {
|
310
|
+
return !this.getData() || !this.getData().has(key) ? undefined : this.getData().get(key);
|
311
|
+
};
|
312
|
+
CommonDataService.prototype.hasValue = function (key) {
|
313
|
+
return this.getData() != undefined ? this.getData().has(key) : null;
|
314
|
+
};
|
315
|
+
CommonDataService.prototype.clearMap = function () {
|
316
|
+
if (this.hasValue(CommonDataService_1.COMPANY_KEY)) {
|
317
|
+
var company = this.getValue(CommonDataService_1.COMPANY_KEY);
|
318
|
+
this.initData();
|
319
|
+
this.putValue(CommonDataService_1.COMPANY_KEY, company);
|
320
|
+
}
|
321
|
+
else {
|
322
|
+
this.initData();
|
323
|
+
}
|
324
|
+
};
|
325
|
+
var CommonDataService_1;
|
326
|
+
CommonDataService.COMPANY_KEY = "company";
|
327
|
+
CommonDataService.DOC_NUMBER_KEY = "docNumber";
|
328
|
+
CommonDataService.DOC_TYPE_KEY = "docType";
|
329
|
+
CommonDataService.PHONE_KEY = "phone";
|
330
|
+
CommonDataService.TYPE_ATTENTION_KEY = "typeAttention";
|
331
|
+
CommonDataService.OFFICE_KEY = "office";
|
332
|
+
CommonDataService.TYPE_TURN_KEY = "typeTurn";
|
333
|
+
CommonDataService.SERVICE_KEY = "service";
|
334
|
+
CommonDataService.TURN_KEY = "turn";
|
335
|
+
CommonDataService.PROGRAMED_TURN_KEY = "programedTurn";
|
336
|
+
CommonDataService.REQUEST_CALL = "requestCall";
|
337
|
+
CommonDataService.FORM_DATA = "formdata";
|
338
|
+
CommonDataService.TEMPLATE = "template";
|
339
|
+
CommonDataService.TURN_RESCHEDULE = "turnReschedule";
|
340
|
+
CommonDataService.USER_GENDER = "genderUser";
|
341
|
+
CommonDataService.AUTO_REDIRECT = "autoRedirect";
|
342
|
+
CommonDataService.SCHEDULE_GENERAL = "scheduleGeneral";
|
343
|
+
CommonDataService.AGENDAMIENTO_TTP = "potencialCustomer";
|
344
|
+
CommonDataService.SINGLE_PAGE_ONE = "singlePageOne";
|
345
|
+
CommonDataService.AVAILABLE_SCHEDULE_GRAL = "availableScheduleGral";
|
346
|
+
CommonDataService.PROFILE = "profile";
|
347
|
+
CommonDataService.PAGE_NEXT = "pageNext";
|
348
|
+
CommonDataService.STEPS = "steps";
|
349
|
+
CommonDataService.TYPE_TURN_ID = "typeTurnId";
|
350
|
+
CommonDataService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function CommonDataService_Factory() { return new CommonDataService(); }, token: CommonDataService, providedIn: "root" });
|
351
|
+
CommonDataService = CommonDataService_1 = __decorate([
|
352
|
+
core.Injectable({
|
353
|
+
providedIn: "root",
|
354
|
+
})
|
355
|
+
], CommonDataService);
|
356
|
+
return CommonDataService;
|
357
|
+
}());
|
358
|
+
|
359
|
+
var moment = moment_;
|
360
|
+
// import { regexType } from "@app/_shared/_util/regex";
|
361
|
+
// import { ExternalService } from '@app/_shared/_services/external.service';
|
362
|
+
// import { AuroraService } from '@app/_shared/_services/aurora.service';
|
363
|
+
/**
|
364
|
+
* This Service handles how the date is represented in scripts i.e. ngModel.
|
365
|
+
*/
|
366
|
+
var CustomAdapter = /** @class */ (function (_super) {
|
367
|
+
__extends(CustomAdapter, _super);
|
368
|
+
function CustomAdapter() {
|
369
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
370
|
+
_this.DELIMITER = '/';
|
371
|
+
return _this;
|
372
|
+
}
|
373
|
+
CustomAdapter.prototype.fromModel = function (value) {
|
374
|
+
if (value) {
|
375
|
+
var date = value.split(this.DELIMITER);
|
376
|
+
return {
|
377
|
+
day: parseInt(date[0], 10),
|
378
|
+
month: parseInt(date[1], 10),
|
379
|
+
year: parseInt(date[2], 10)
|
380
|
+
};
|
381
|
+
}
|
382
|
+
return null;
|
383
|
+
};
|
384
|
+
CustomAdapter.prototype.toModel = function (date) {
|
385
|
+
//return date ? date.day + this.DELIMITER + date.month + this.DELIMITER + date.year : null;
|
386
|
+
return date ? (date.day < 10 ? 0 + date.day : date.day) + this.DELIMITER + (date.month < 10 ? 0 + date.month : date.month) + this.DELIMITER + date.year : '';
|
387
|
+
};
|
388
|
+
CustomAdapter = __decorate([
|
389
|
+
core.Injectable()
|
390
|
+
], CustomAdapter);
|
391
|
+
return CustomAdapter;
|
392
|
+
}(ngBootstrap.NgbDateAdapter));
|
393
|
+
/**
|
394
|
+
* This Service handles how the date is rendered and parsed from keyboard i.e. in the bound input field.
|
395
|
+
*/
|
396
|
+
var CustomDateParserFormatter = /** @class */ (function (_super) {
|
397
|
+
__extends(CustomDateParserFormatter, _super);
|
398
|
+
function CustomDateParserFormatter() {
|
399
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
400
|
+
_this.DELIMITER = '/';
|
401
|
+
return _this;
|
402
|
+
}
|
403
|
+
CustomDateParserFormatter.prototype.parse = function (value) {
|
404
|
+
if (value) {
|
405
|
+
var date = value.split(this.DELIMITER);
|
406
|
+
return {
|
407
|
+
day: parseInt(date[0], 10),
|
408
|
+
month: parseInt(date[1], 10),
|
409
|
+
year: parseInt(date[2], 10)
|
410
|
+
};
|
411
|
+
}
|
412
|
+
return null;
|
413
|
+
};
|
414
|
+
CustomDateParserFormatter.prototype.format = function (date) {
|
415
|
+
return date ? (date.day < 10 ? '0' + date.day : date.day) + this.DELIMITER + (date.month < 10 ? '0' + date.month : date.month) + this.DELIMITER + date.year : '';
|
416
|
+
};
|
417
|
+
CustomDateParserFormatter = __decorate([
|
418
|
+
core.Injectable()
|
419
|
+
], CustomDateParserFormatter);
|
420
|
+
return CustomDateParserFormatter;
|
421
|
+
}(ngBootstrap.NgbDateParserFormatter));
|
422
|
+
var I18N_VALUES = {
|
423
|
+
'es': {
|
424
|
+
weekdays: ['Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa', 'Do'],
|
425
|
+
months: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
|
426
|
+
weekLabel: 'sem'
|
427
|
+
}
|
428
|
+
// other languages you would support
|
429
|
+
};
|
430
|
+
var I18n = /** @class */ (function () {
|
431
|
+
function I18n() {
|
432
|
+
this.language = 'es';
|
433
|
+
}
|
434
|
+
I18n = __decorate([
|
435
|
+
core.Injectable()
|
436
|
+
], I18n);
|
437
|
+
return I18n;
|
438
|
+
}());
|
439
|
+
// Define custom service providing the months and weekdays translations
|
440
|
+
var CustomDatepickerI18n = /** @class */ (function (_super) {
|
441
|
+
__extends(CustomDatepickerI18n, _super);
|
442
|
+
function CustomDatepickerI18n(_i18n) {
|
443
|
+
var _this = _super.call(this) || this;
|
444
|
+
_this._i18n = _i18n;
|
445
|
+
return _this;
|
446
|
+
}
|
447
|
+
CustomDatepickerI18n.prototype.getWeekdayLabel = function (weekday) {
|
448
|
+
return I18N_VALUES[this._i18n.language].weekdays[weekday - 1];
|
449
|
+
};
|
450
|
+
CustomDatepickerI18n.prototype.getWeekLabel = function () {
|
451
|
+
return I18N_VALUES[this._i18n.language].weekLabel;
|
452
|
+
};
|
453
|
+
CustomDatepickerI18n.prototype.getMonthShortName = function (month) {
|
454
|
+
return I18N_VALUES[this._i18n.language].months[month - 1];
|
455
|
+
};
|
456
|
+
CustomDatepickerI18n.prototype.getMonthFullName = function (month) {
|
457
|
+
return this.getMonthShortName(month);
|
458
|
+
};
|
459
|
+
CustomDatepickerI18n.prototype.getDayAriaLabel = function (date) {
|
460
|
+
return date.day + "-" + date.month + "-" + date.year;
|
461
|
+
};
|
462
|
+
CustomDatepickerI18n.prototype.getWeekdayShortName = function (weekday) {
|
463
|
+
return I18N_VALUES[this._i18n.language].weekdays[weekday - 1];
|
464
|
+
};
|
465
|
+
;
|
466
|
+
CustomDatepickerI18n.ctorParameters = function () { return [
|
467
|
+
{ type: I18n }
|
468
|
+
]; };
|
469
|
+
CustomDatepickerI18n = __decorate([
|
470
|
+
core.Injectable()
|
471
|
+
], CustomDatepickerI18n);
|
472
|
+
return CustomDatepickerI18n;
|
473
|
+
}(ngBootstrap.NgbDatepickerI18n));
|
474
|
+
var FormAuroraComponent = /** @class */ (function () {
|
475
|
+
function FormAuroraComponent(data, http) {
|
476
|
+
this.data = data;
|
477
|
+
this.http = http;
|
478
|
+
this.response = new core.EventEmitter();
|
479
|
+
this.summit = new core.EventEmitter();
|
480
|
+
this.viewAuthData = new core.EventEmitter();
|
481
|
+
this.tipodocNumDoc = false;
|
482
|
+
this.onSubmitEvent = false;
|
483
|
+
this.countSubmit = 0;
|
484
|
+
this.watchValid = false;
|
485
|
+
this.watchRequired = false;
|
486
|
+
this.captchaValid = false;
|
487
|
+
this.displayMonths = 2;
|
488
|
+
this.navigation = 'select';
|
489
|
+
this.showWeekNumbers = false;
|
490
|
+
this.outsideDays = 'visible';
|
491
|
+
this.respServiceSegmentation = null;
|
492
|
+
this.base64CheckAuthData = undefined;
|
493
|
+
//emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$";
|
494
|
+
this.today = moment(new Date());
|
495
|
+
this.maxYear = this.today.year();
|
496
|
+
this.minYear = this.today.year() - 82;
|
497
|
+
this.minDate = this.minYear.toString() + '-' + this.today.month().toString().padStart(2, '0') + '-' + this.today.date().toString().padStart(2, '0'); // {year: this.minYear, month: this.today.month(), day: this.today.date()};
|
498
|
+
this.maxDate = this.maxYear.toString() + '-' + (this.today.month() + 1).toString().padStart(2, '0') + '-' + this.today.date().toString().padStart(2, '0'); // {year: this.maxYear, month: this.today.month() + 1, day: this.today.date()};
|
499
|
+
//Revisar variables
|
500
|
+
this.recharge = false;
|
501
|
+
this.indicativo = "57";
|
502
|
+
this.defaultDocType = "Cédula de ciudadanía";
|
503
|
+
this.patternNotValidDcto = false;
|
504
|
+
this.patternNotValidCel = false;
|
505
|
+
this.range = new forms.FormGroup({
|
506
|
+
start: new forms.FormControl(),
|
507
|
+
end: new forms.FormControl(),
|
508
|
+
});
|
509
|
+
}
|
510
|
+
FormAuroraComponent.prototype.ngOnInit = function () {
|
511
|
+
var _this = this;
|
512
|
+
this.minDate = new Date(this.minDate).toISOString().split('T')[0];
|
513
|
+
setTimeout(function () {
|
514
|
+
_this.startComponent();
|
515
|
+
}, 2000);
|
516
|
+
};
|
517
|
+
FormAuroraComponent.prototype.startComponent = function () {
|
518
|
+
var e_1, _a;
|
519
|
+
var _this = this;
|
520
|
+
//ordena los campos
|
521
|
+
if (this.dataForm != null && this.dataForm.formQuestions != undefined) {
|
522
|
+
//Same row fields
|
523
|
+
this.tipodocNumDoc = (this.dataForm.formQuestions.some(function (question) { return question.question.value === "tipoDoc"; }) && this.dataForm.formQuestions.some(function (question) { return question.question.value === "numeroDoc"; })) ? true : false;
|
524
|
+
this.dataForm.formQuestions = this.dataForm.formQuestions.sort(function (a, b) {
|
525
|
+
return a.order - b.order;
|
526
|
+
});
|
527
|
+
var existcaptcha = this.dataForm.formQuestions.filter(function (item) { return item.question.questionType.id == 6; });
|
528
|
+
if (existcaptcha.length == 0) {
|
529
|
+
this.captchaValid = true;
|
530
|
+
}
|
531
|
+
var _loop_1 = function (item) {
|
532
|
+
if (item.question.maxlength == null || item.question.maxlength == undefined || item.question.maxlength == 0) {
|
533
|
+
item.question.maxlength = 524288; //defaultvalue
|
534
|
+
}
|
535
|
+
if (item.question.minLength == null || item.question.minLength == undefined) {
|
536
|
+
item.question.minLength = 0;
|
537
|
+
}
|
538
|
+
this_1.dataReloadForm.forEach(function (element) {
|
539
|
+
_this.filldata = element;
|
540
|
+
if ((item.question.questionType.id === 2 || item.question.questionType.id === 1 ||
|
541
|
+
item.question.questionType.id === 3) && (_this.filldata.data !== null &&
|
542
|
+
_this.filldata.data !== undefined) && item.question.id === _this.filldata.id) {
|
543
|
+
item.question.registred = _this.filldata.data;
|
544
|
+
}
|
545
|
+
});
|
546
|
+
if (item.question.registred == null || item.question.minLength == undefined) {
|
547
|
+
item.question.registred = '';
|
548
|
+
}
|
549
|
+
};
|
550
|
+
var this_1 = this;
|
551
|
+
try {
|
552
|
+
for (var _b = __values(this.dataForm.formQuestions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
553
|
+
var item = _c.value;
|
554
|
+
_loop_1(item);
|
555
|
+
}
|
556
|
+
}
|
557
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
558
|
+
finally {
|
559
|
+
try {
|
560
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
561
|
+
}
|
562
|
+
finally { if (e_1) throw e_1.error; }
|
563
|
+
}
|
564
|
+
}
|
565
|
+
};
|
566
|
+
FormAuroraComponent.prototype.resolvedCaptcha = function (captchaResponse) {
|
567
|
+
this.captchaValid = true;
|
568
|
+
if (!this.formDynamic.form.value.captcha) {
|
569
|
+
this.formDynamic.controls.captcha.setValue(captchaResponse);
|
570
|
+
this.formDynamic.form.value.captcha = captchaResponse;
|
571
|
+
document.getElementById("btnIng").style.opacity = !this.formDynamic.valid ? "0.65" : "1";
|
572
|
+
}
|
573
|
+
};
|
574
|
+
//Forms
|
575
|
+
//Metodo para evitar el render de los items del for
|
576
|
+
FormAuroraComponent.prototype.trackByIndex = function (index, obj) {
|
577
|
+
return index;
|
578
|
+
};
|
579
|
+
FormAuroraComponent.prototype.onChangeValidPatter = function (event, question) {
|
580
|
+
var _this = this;
|
581
|
+
if (question.pattern != undefined) {
|
582
|
+
var valid = true;
|
583
|
+
var keyvalid = [8, 32, 37, 38, 39, 40, 46, 9];
|
584
|
+
//diferente de Backpsace
|
585
|
+
//se deja catch por error no controlable en otro tiempo de ejecucion
|
586
|
+
try {
|
587
|
+
if (!keyvalid.includes(event.keyCode)) {
|
588
|
+
var regex = new RegExp(question.pattern);
|
589
|
+
valid = regex.test(event.key);
|
590
|
+
}
|
591
|
+
}
|
592
|
+
catch (error) { }
|
593
|
+
return valid;
|
594
|
+
}
|
595
|
+
if (question.questionType !== undefined) {
|
596
|
+
if (question.questionType.description === 'Number') {
|
597
|
+
if (question.value === 'numeroDoc') {
|
598
|
+
this.validateNumeroDocumento(this.formDynamic.controls["numeroDoc"].value.toString());
|
599
|
+
}
|
600
|
+
else if (question.value === 'celular') {
|
601
|
+
this.validateCelular(this.formDynamic.controls["celular"].value.toString());
|
602
|
+
}
|
603
|
+
}
|
604
|
+
}
|
605
|
+
document.getElementById("char" + question.value).setAttribute("hidden", "true");
|
606
|
+
//if temporal mientras se migran todos los tipos de campos al foreach
|
607
|
+
if (question.questionType.id != 11 && question.questionType.id != 7) {
|
608
|
+
if (this.validMinLength(this.formDynamic, question)) {
|
609
|
+
document.getElementById(question.value).style.borderColor = "#FF0000";
|
610
|
+
document.getElementById("ml" + question.value).removeAttribute("hidden");
|
611
|
+
}
|
612
|
+
else {
|
613
|
+
document.getElementById(question.value).style.borderColor = "#E4E4E4";
|
614
|
+
document.getElementById("ml" + question.value).setAttribute("hidden", "true");
|
615
|
+
}
|
616
|
+
if (this.validMaxLength(this.formDynamic, question)) {
|
617
|
+
document.getElementById(question.value).style.borderColor = "#FF0000";
|
618
|
+
document.getElementById("mxl" + question.value).removeAttribute("hidden");
|
619
|
+
}
|
620
|
+
else {
|
621
|
+
document.getElementById(question.value).style.borderColor = "#E4E4E4";
|
622
|
+
document.getElementById("mxl" + question.value).setAttribute("hidden", "true");
|
623
|
+
}
|
624
|
+
}
|
625
|
+
this.dataForm.formQuestions.forEach(function (formQuestion) {
|
626
|
+
switch (formQuestion.question.questionType.id) {
|
627
|
+
//se valida campo de tipo calendario
|
628
|
+
case 7:
|
629
|
+
if (question.questionType.id == 7)
|
630
|
+
_this.calendarRulesValidate(formQuestion);
|
631
|
+
break;
|
632
|
+
//se valida campo de tipo email
|
633
|
+
case 11:
|
634
|
+
if (question.questionType.id == 11)
|
635
|
+
_this.emailRulesValidate(formQuestion);
|
636
|
+
break;
|
637
|
+
}
|
638
|
+
});
|
639
|
+
document.getElementById("btnIng").style.opacity = !this.formDynamic.valid ? "0.65" : "1";
|
640
|
+
};
|
641
|
+
FormAuroraComponent.prototype.validOnlyText = function (event) {
|
642
|
+
var regex = /^[a-zA-Z\u00C0-\u017F]+$/g;
|
643
|
+
if (event.charCode == 32) {
|
644
|
+
return true;
|
645
|
+
}
|
646
|
+
var valid = regex.test(event.key);
|
647
|
+
return valid;
|
648
|
+
};
|
649
|
+
FormAuroraComponent.prototype.validDate = function (event) {
|
650
|
+
/*let pattern = /(?:0[1-9]|[12][0-9]|3[01])\/(?:0[1-9]|1[0-2])\/(?:19|20)[0-9]{2}/;
|
651
|
+
const regex = new RegExp(pattern);
|
652
|
+
valid = regex.test(event.key);
|
653
|
+
*/
|
654
|
+
var matches = String(event.key).match(regexType.date.exp);
|
655
|
+
var valid = true;
|
656
|
+
if (matches === null)
|
657
|
+
valid = false;
|
658
|
+
// alert(valid);
|
659
|
+
return valid;
|
660
|
+
};
|
661
|
+
FormAuroraComponent.prototype.onChangeValidDate = function (event) {
|
662
|
+
//let pattern = /(?:0[1-9]|1[0-2])\/(?:0[1-9]|[12][0-9]|3[01])\/(?:19|20)[0-9]{2}/;
|
663
|
+
var dateN = /[0-9]|\//;
|
664
|
+
var valid = true;
|
665
|
+
var regex = new RegExp(dateN);
|
666
|
+
valid = regex.test(event.key);
|
667
|
+
return valid;
|
668
|
+
};
|
669
|
+
FormAuroraComponent.prototype.rediretoutside = function (event, question) {
|
670
|
+
//se deja catch por error no controlable en otro tiempo de ejecucion
|
671
|
+
try {
|
672
|
+
event.preventDefault();
|
673
|
+
window.open(question.value, "_blank");
|
674
|
+
}
|
675
|
+
catch (error) { }
|
676
|
+
};
|
677
|
+
/**
|
678
|
+
* Dispatch submit event for validations exists
|
679
|
+
* @param change
|
680
|
+
*/
|
681
|
+
FormAuroraComponent.prototype.ngOnChanges = function (change) {
|
682
|
+
this.countSubmit++;
|
683
|
+
};
|
684
|
+
//onSubmit(form: NgForm) {
|
685
|
+
FormAuroraComponent.prototype.onSubmit = function () {
|
686
|
+
var _this = this;
|
687
|
+
var form = this.formDynamic;
|
688
|
+
this.watchValid = true;
|
689
|
+
this.watchRequired = true;
|
690
|
+
if (form.valid) {
|
691
|
+
if (!this.validRulesFields(form.controls["numeroDoc"].value.toString(), form.controls["celular"].value.toString(), form.controls["email"].value))
|
692
|
+
return false;
|
693
|
+
}
|
694
|
+
if (this.validMinlenghtAllQuestions(form.value) && this.validMaxLengthAllQuestions(form.value) && form.valid) {
|
695
|
+
if (this.dataForm.urlSend != "" && this.captchaValid) {
|
696
|
+
this.http.post(this.dataForm.urlSend, form.value).subscribe(function (resp) { return _this.response.emit(resp); });
|
697
|
+
}
|
698
|
+
else if (form.valid && this.captchaValid) {
|
699
|
+
this.summit.emit(form.value);
|
700
|
+
}
|
701
|
+
}
|
702
|
+
};
|
703
|
+
FormAuroraComponent.prototype.findParamBoolean = function (params, idParam) {
|
704
|
+
var showDescriptionParam = params.find(function (x) { return x.id == idParam; });
|
705
|
+
return showDescriptionParam != null && showDescriptionParam.value == "true";
|
706
|
+
};
|
707
|
+
FormAuroraComponent.prototype.validRulesFields = function (numeroDoc, numeroCel, email) {
|
708
|
+
var _this = this;
|
709
|
+
// Validaciones para celular en caso de indicativo en Colombia
|
710
|
+
var cel = document.getElementById("charcelular");
|
711
|
+
var doc = document.getElementById("charnumeroDoc");
|
712
|
+
var valOk = true;
|
713
|
+
if (this.indicativo == "+57" || this.indicativo == "57") {
|
714
|
+
var stringOrdenado = this.orderString(numeroDoc);
|
715
|
+
if (this.nameCompany.toUpperCase() !== 'CLARO') { //claro acepta nro consecutivos
|
716
|
+
if (numeroDoc == stringOrdenado) {
|
717
|
+
doc.style.borderColor = "#FF0000";
|
718
|
+
doc.removeAttribute("hidden");
|
719
|
+
doc.textContent = "El numero documento No debe contener caracteres consecutivos";
|
720
|
+
valOk = false;
|
721
|
+
//this.msgErrorCampo = "El numero documento No debe contener caracteres consecutivos";
|
722
|
+
//return false;
|
723
|
+
}
|
724
|
+
}
|
725
|
+
if (numeroCel.substring(0, 1) != "3") {
|
726
|
+
cel.style.borderColor = "#FF0000";
|
727
|
+
cel.removeAttribute("hidden");
|
728
|
+
cel.textContent = "El primer carácter del celular debe ser 3";
|
729
|
+
valOk = false;
|
730
|
+
//this.msgErrorCampo = "El primer carácter del celular debe ser 3";
|
731
|
+
//return false;
|
732
|
+
}
|
733
|
+
/*
|
734
|
+
if (parseInt(numeroCel.substring(0, 3)) > 350) {
|
735
|
+
cel.style.borderColor = "#FF0000";
|
736
|
+
cel.removeAttribute("hidden");
|
737
|
+
cel.textContent = "El prefijo del celular no debe ser mayor a 350";
|
738
|
+
valOk = false;
|
739
|
+
//this.msgErrorCampo = "El prefijo del celular no debe ser mayor a 350";
|
740
|
+
//return false;
|
741
|
+
}
|
742
|
+
*/
|
743
|
+
//En caso de que el número se repita, ejemplo 33333333
|
744
|
+
var listnumber = numeroDoc.substring(0, 1);
|
745
|
+
for (var index = 1; index < numeroDoc.length; index++) {
|
746
|
+
listnumber = listnumber + numeroDoc.substring(0, 1);
|
747
|
+
}
|
748
|
+
if (numeroDoc == listnumber) {
|
749
|
+
doc.style.borderColor = "#FF0000";
|
750
|
+
doc.removeAttribute("hidden");
|
751
|
+
doc.textContent = "Caracteres numéricos no se pueden repetirse de manera continua ";
|
752
|
+
valOk = false;
|
753
|
+
//this.msgErrorCampo = "Caracteres numéricos no se pueden repetirse de manera continua ";
|
754
|
+
//return false;
|
755
|
+
}
|
756
|
+
if (!this.validateNumeroDocumento(numeroDoc)) {
|
757
|
+
return false;
|
758
|
+
}
|
759
|
+
if (!this.validateCelular(numeroCel)) {
|
760
|
+
return false;
|
761
|
+
}
|
762
|
+
// En caso de que el número se repita, ejemplo 33333333
|
763
|
+
var arrayPhoneRepeat = Array.from(String(numeroCel), Number);
|
764
|
+
var arrayPhoneOutRepeat = __spread(new Set(arrayPhoneRepeat));
|
765
|
+
if (arrayPhoneOutRepeat.length == 1) {
|
766
|
+
cel.style.borderColor = "#FF0000";
|
767
|
+
cel.removeAttribute("hidden");
|
768
|
+
cel.textContent = "El número que ingresa no es valido";
|
769
|
+
valOk = false;
|
770
|
+
//this.msgErrorCampo = "El número que ingresa no es valido";
|
771
|
+
//return false;
|
772
|
+
}
|
773
|
+
}
|
774
|
+
else if (this.indicativo == "+593" || this.indicativo == "593") {
|
775
|
+
if (numeroCel.substring(0, 1) != "9") {
|
776
|
+
cel.style.borderColor = "#FF0000";
|
777
|
+
cel.removeAttribute("hidden");
|
778
|
+
cel.textContent = "El primer carácter del celular debe ser 9";
|
779
|
+
valOk = false;
|
780
|
+
//this.msgErrorCampo = "El primer carácter del celular debe ser 9";
|
781
|
+
//return false;
|
782
|
+
}
|
783
|
+
}
|
784
|
+
//se validan los campos por tipo de campo y no por value
|
785
|
+
this.dataForm.formQuestions.forEach(function (formQuestion) {
|
786
|
+
switch (formQuestion.question.questionType.id) {
|
787
|
+
//se valida campo de tipo email
|
788
|
+
case 11:
|
789
|
+
valOk = _this.emailRulesValidate(formQuestion);
|
790
|
+
break;
|
791
|
+
}
|
792
|
+
});
|
793
|
+
return valOk;
|
794
|
+
};
|
795
|
+
FormAuroraComponent.prototype.orderString = function (value) {
|
796
|
+
var arrayNumber = [];
|
797
|
+
for (var index = 0; index < value.length; index++) {
|
798
|
+
arrayNumber.push(parseInt(value.substring(index, index + 1)));
|
799
|
+
}
|
800
|
+
//ordena el array
|
801
|
+
arrayNumber.sort(function (a, b) {
|
802
|
+
return a - b;
|
803
|
+
});
|
804
|
+
var numberOrder = "";
|
805
|
+
numberOrder = arrayNumber[0];
|
806
|
+
for (var index = 1; index < arrayNumber.length; index++) {
|
807
|
+
numberOrder = numberOrder + (arrayNumber[0] + index).toString();
|
808
|
+
}
|
809
|
+
return numberOrder;
|
810
|
+
};
|
811
|
+
FormAuroraComponent.prototype.validMinlenghtAllQuestions = function (form) {
|
812
|
+
var e_2, _a;
|
813
|
+
try {
|
814
|
+
for (var _b = __values(this.dataForm.formQuestions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
815
|
+
var item = _c.value;
|
816
|
+
if (item.question.questionType.id == 1 || item.question.questionType.id == 2) {
|
817
|
+
var minLength = parseInt(item.question.minLength);
|
818
|
+
var formValueLength = parseInt(form[item.question.value].toString().length);
|
819
|
+
if (minLength > 0 && formValueLength != minLength && formValueLength < minLength)
|
820
|
+
return false;
|
821
|
+
}
|
822
|
+
}
|
823
|
+
}
|
824
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
825
|
+
finally {
|
826
|
+
try {
|
827
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
828
|
+
}
|
829
|
+
finally { if (e_2) throw e_2.error; }
|
830
|
+
}
|
831
|
+
return true;
|
832
|
+
};
|
833
|
+
FormAuroraComponent.prototype.validMaxLengthAllQuestions = function (form) {
|
834
|
+
var e_3, _a;
|
835
|
+
try {
|
836
|
+
for (var _b = __values(this.dataForm.formQuestions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
837
|
+
var item = _c.value;
|
838
|
+
if (item.question.questionType.id == 1 || item.question.questionType.id == 2) {
|
839
|
+
var maxLength = parseInt(item.question.maxLength);
|
840
|
+
var formValueLength = parseInt(form[item.question.value].toString().length);
|
841
|
+
if (maxLength > 0 && formValueLength != maxLength && formValueLength > maxLength)
|
842
|
+
return false;
|
843
|
+
}
|
844
|
+
}
|
845
|
+
}
|
846
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
847
|
+
finally {
|
848
|
+
try {
|
849
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
850
|
+
}
|
851
|
+
finally { if (e_3) throw e_3.error; }
|
852
|
+
}
|
853
|
+
return true;
|
854
|
+
};
|
855
|
+
FormAuroraComponent.prototype.validRequired = function (form, question) {
|
856
|
+
//se deja catch por error no controlable en otro tiempo de ejecucion
|
857
|
+
try {
|
858
|
+
if (question != undefined && question.value != undefined) {
|
859
|
+
if (form.controls[question.value] != undefined &&
|
860
|
+
form.controls[question.value].errors != null &&
|
861
|
+
form.controls[question.value].errors.required) {
|
862
|
+
return true;
|
863
|
+
}
|
864
|
+
}
|
865
|
+
}
|
866
|
+
catch (error) { }
|
867
|
+
return false;
|
868
|
+
};
|
869
|
+
FormAuroraComponent.prototype.validMinLength = function (form, question) {
|
870
|
+
//se deja catch por error no controlable en otro tiempo de ejecucion
|
871
|
+
try {
|
872
|
+
if (question != undefined && question.value != undefined) {
|
873
|
+
if (question.minLength > form.controls[question.value].value.toLocaleString().length && question.minLength > 0) {
|
874
|
+
return true;
|
875
|
+
}
|
876
|
+
}
|
877
|
+
}
|
878
|
+
catch (error) { }
|
879
|
+
return false;
|
880
|
+
};
|
881
|
+
FormAuroraComponent.prototype.validMaxLength = function (form, question) {
|
882
|
+
//se deja catch por error no controlable en otro tiempo de ejecucion
|
883
|
+
try {
|
884
|
+
if (question != undefined && question.value != undefined) {
|
885
|
+
if (question.maxLength > 0) {
|
886
|
+
if (question.maxLength + 1 <= form.controls[question.value].value.toString().replace(/\./g, '').length) {
|
887
|
+
if (!this.formDynamic.controls[question.value].hasError('errorMaxLength')) {
|
888
|
+
this.formDynamic.controls[question.value].setErrors({ 'errorMaxLength': true });
|
889
|
+
}
|
890
|
+
return true;
|
891
|
+
}
|
892
|
+
}
|
893
|
+
}
|
894
|
+
}
|
895
|
+
catch (error) { }
|
896
|
+
return false;
|
897
|
+
};
|
898
|
+
FormAuroraComponent.prototype.tycSelection = function (event) {
|
899
|
+
this.viewAuthData.emit(event);
|
900
|
+
};
|
901
|
+
FormAuroraComponent.prototype.openLabelUrl = function (event, question) {
|
902
|
+
event.preventDefault();
|
903
|
+
var tyc = document.getElementById("check" + question.id);
|
904
|
+
tyc.style.color = "#A3AD32";
|
905
|
+
window.open(question.urllabel, "_blank");
|
906
|
+
};
|
907
|
+
FormAuroraComponent.prototype.cancellKeypress = function () {
|
908
|
+
return false;
|
909
|
+
};
|
910
|
+
FormAuroraComponent.prototype.emailRulesValidate = function (formQuestion) {
|
911
|
+
var valOk = true;
|
912
|
+
try {
|
913
|
+
var hasError = false;
|
914
|
+
document.getElementById(formQuestion.question.id).setAttribute("hidden", "true");
|
915
|
+
var eml = document.getElementById(formQuestion.question.id);
|
916
|
+
var email = formQuestion.question.registred;
|
917
|
+
if (!hasError) {
|
918
|
+
if (formQuestion.question.required && (email == "" || email == undefined || email == null)) {
|
919
|
+
eml.style.borderColor = "#FF0000";
|
920
|
+
eml.textContent = "El correco eléctronico es requerido";
|
921
|
+
eml.removeAttribute("hidden");
|
922
|
+
valOk = false;
|
923
|
+
hasError = true;
|
924
|
+
}
|
925
|
+
}
|
926
|
+
if (!hasError) {
|
927
|
+
if (this.validMinLength(undefined, formQuestion.question)) {
|
928
|
+
eml.style.borderColor = "#FF0000";
|
929
|
+
eml.textContent = "Debe ser mínimo de " + formQuestion.question.minLength + " caracteres";
|
930
|
+
document.getElementById(formQuestion.question.id).removeAttribute("hidden");
|
931
|
+
valOk = false;
|
932
|
+
hasError = true;
|
933
|
+
}
|
934
|
+
}
|
935
|
+
if (!hasError) {
|
936
|
+
if (this.validMaxLength(undefined, formQuestion.question)) {
|
937
|
+
eml.style.borderColor = "#FF0000";
|
938
|
+
eml.textContent = "Debe ser maximo de " + formQuestion.question.maxLength + " caracteres";
|
939
|
+
document.getElementById(formQuestion.question.id).removeAttribute("hidden");
|
940
|
+
valOk = false;
|
941
|
+
hasError = true;
|
942
|
+
}
|
943
|
+
}
|
944
|
+
if (!hasError) {
|
945
|
+
var matches = String(email).match(regexType.email.exp);
|
946
|
+
if (matches == null) {
|
947
|
+
eml.style.borderColor = "#FF0000";
|
948
|
+
eml.textContent = "Tu email es invalido";
|
949
|
+
eml.removeAttribute("hidden");
|
950
|
+
valOk = false;
|
951
|
+
hasError = true;
|
952
|
+
}
|
953
|
+
}
|
954
|
+
}
|
955
|
+
catch (error) {
|
956
|
+
}
|
957
|
+
return valOk;
|
958
|
+
};
|
959
|
+
FormAuroraComponent.prototype.calendarRulesValidate = function (formQuestion) {
|
960
|
+
var hasError = false;
|
961
|
+
try {
|
962
|
+
document.getElementById(formQuestion.question.id).setAttribute("hidden", "true");
|
963
|
+
var ecalendar = document.getElementById(formQuestion.question.id);
|
964
|
+
//se valida que no sea null si es requerido
|
965
|
+
var date = formQuestion.question.registred;
|
966
|
+
if (formQuestion.question.required && (date == "" || date == undefined || date == null)) {
|
967
|
+
ecalendar.style.borderColor = "#FF0000";
|
968
|
+
ecalendar.textContent = "La fecha es requerida";
|
969
|
+
ecalendar.removeAttribute("hidden");
|
970
|
+
}
|
971
|
+
}
|
972
|
+
catch (error) {
|
973
|
+
}
|
974
|
+
};
|
975
|
+
FormAuroraComponent.prototype.validateNotSpace = function (event) {
|
976
|
+
if (event.charCode == 32) {
|
977
|
+
return false;
|
978
|
+
}
|
979
|
+
else {
|
980
|
+
return true;
|
981
|
+
}
|
982
|
+
};
|
983
|
+
FormAuroraComponent.prototype.validateNumeroDocumento = function (numeroDoc) {
|
984
|
+
if (!numeroDoc.match("^[0-9]*$")) {
|
985
|
+
this.formDynamic.controls["numeroDoc"].setValidators([forms.Validators.pattern('^[0-9]*$')]);
|
986
|
+
this.formDynamic.controls["numeroDoc"].markAsDirty();
|
987
|
+
this.formDynamic.controls["numeroDoc"].updateValueAndValidity();
|
988
|
+
this.formDynamic.controls["numeroDoc"].markAsTouched();
|
989
|
+
this.patternNotValidDcto = true;
|
990
|
+
return false;
|
991
|
+
}
|
992
|
+
this.patternNotValidDcto = false;
|
993
|
+
return true;
|
994
|
+
};
|
995
|
+
FormAuroraComponent.prototype.validateCelular = function (numeroCel) {
|
996
|
+
if (!numeroCel.match("^[0-9]*$")) {
|
997
|
+
this.formDynamic.controls["celular"].setValidators([forms.Validators.pattern('^[0-9]*$')]);
|
998
|
+
this.formDynamic.controls["celular"].markAsDirty();
|
999
|
+
this.formDynamic.controls["celular"].updateValueAndValidity();
|
1000
|
+
this.formDynamic.controls["celular"].markAsTouched();
|
1001
|
+
this.patternNotValidCel = true;
|
1002
|
+
return false;
|
1003
|
+
}
|
1004
|
+
this.patternNotValidCel = false;
|
1005
|
+
return true;
|
1006
|
+
};
|
1007
|
+
FormAuroraComponent.prototype.onkeypress = function (event) {
|
1008
|
+
return (event.charCode == 0) ? null : event.charCode >= 48 && event.charCode <= 57;
|
1009
|
+
};
|
1010
|
+
FormAuroraComponent.prototype.onChangeStep = function (step, nextStep, value) {
|
1011
|
+
if (nextStep && nextStep.stepOrder != 1) {
|
1012
|
+
this.resetField(step);
|
1013
|
+
nextStep.viewData = [];
|
1014
|
+
nextStep.viewData = nextStep.stepData.filter(function (x) { return x.relationalIds.includes(Number(value)); });
|
1015
|
+
}
|
1016
|
+
};
|
1017
|
+
FormAuroraComponent.prototype.resetField = function (stepIn) {
|
1018
|
+
this.steps.forEach(function (step) {
|
1019
|
+
if (step.stepOrder > stepIn.stepOrder) {
|
1020
|
+
step.viewData = undefined;
|
1021
|
+
step.value = undefined;
|
1022
|
+
}
|
1023
|
+
});
|
1024
|
+
};
|
1025
|
+
FormAuroraComponent.ctorParameters = function () { return [
|
1026
|
+
{ type: CommonDataService },
|
1027
|
+
{ type: http.HttpClient }
|
1028
|
+
]; };
|
1029
|
+
__decorate([
|
1030
|
+
core.Input()
|
1031
|
+
], FormAuroraComponent.prototype, "dataClassCss", void 0);
|
1032
|
+
__decorate([
|
1033
|
+
core.Input()
|
1034
|
+
], FormAuroraComponent.prototype, "dataForm", void 0);
|
1035
|
+
__decorate([
|
1036
|
+
core.Input()
|
1037
|
+
], FormAuroraComponent.prototype, "clickSubmit", void 0);
|
1038
|
+
__decorate([
|
1039
|
+
core.Input()
|
1040
|
+
], FormAuroraComponent.prototype, "dataReloadForm", void 0);
|
1041
|
+
__decorate([
|
1042
|
+
core.Input()
|
1043
|
+
], FormAuroraComponent.prototype, "welcomeTitle", void 0);
|
1044
|
+
__decorate([
|
1045
|
+
core.Input()
|
1046
|
+
], FormAuroraComponent.prototype, "welcomeDescription", void 0);
|
1047
|
+
__decorate([
|
1048
|
+
core.Input()
|
1049
|
+
], FormAuroraComponent.prototype, "urlPdf", void 0);
|
1050
|
+
__decorate([
|
1051
|
+
core.Input()
|
1052
|
+
], FormAuroraComponent.prototype, "nameCompany", void 0);
|
1053
|
+
__decorate([
|
1054
|
+
core.Input()
|
1055
|
+
], FormAuroraComponent.prototype, "schedule", void 0);
|
1056
|
+
__decorate([
|
1057
|
+
core.Input()
|
1058
|
+
], FormAuroraComponent.prototype, "isSimpleFlow", void 0);
|
1059
|
+
__decorate([
|
1060
|
+
core.Input()
|
1061
|
+
], FormAuroraComponent.prototype, "company", void 0);
|
1062
|
+
__decorate([
|
1063
|
+
core.Input()
|
1064
|
+
], FormAuroraComponent.prototype, "steps", void 0);
|
1065
|
+
__decorate([
|
1066
|
+
core.ViewChild('formDynamic', { static: true })
|
1067
|
+
], FormAuroraComponent.prototype, "formDynamic", void 0);
|
1068
|
+
__decorate([
|
1069
|
+
core.Output()
|
1070
|
+
], FormAuroraComponent.prototype, "response", void 0);
|
1071
|
+
__decorate([
|
1072
|
+
core.Output()
|
1073
|
+
], FormAuroraComponent.prototype, "summit", void 0);
|
1074
|
+
__decorate([
|
1075
|
+
core.Output()
|
1076
|
+
], FormAuroraComponent.prototype, "viewAuthData", void 0);
|
1077
|
+
__decorate([
|
1078
|
+
core.ViewChild("modalTurns", { static: false })
|
1079
|
+
], FormAuroraComponent.prototype, "myModal", void 0);
|
1080
|
+
FormAuroraComponent = __decorate([
|
1081
|
+
core.Component({
|
1082
|
+
selector: 'lib-FormAurora',
|
1083
|
+
template: "<div class=\"card\">\r\n <span class=\"text-center mt-2 d-none d-sm-block\" *ngIf=\"!isSimpleFlow\">\r\n <img style=\"width: 115px; height:96px;\" [class]=\"dataClassCss.logo\" id=\"logo\">\r\n </span>\r\n <div class=\"text-center mt-2 d-none d-sm-block\" *ngIf=\"isSimpleFlow\" style=\"margin-top: 4%!important;\">\r\n </div>\r\n <div class=\"card-body pt-0\">\r\n <ng-container *ngIf=\"schedule\">\r\n <h4 class=\"card-title text-center mb-0\" [class]=\"dataClassCss.bienvenida2\" style=\"color: #EE7E0E;\">\r\n Horarios de atenci\u00F3n\r\n </h4>\r\n <small class=\"text-center d-block\">{{schedule}}</small>\r\n </ng-container>\r\n <form #formDynamic=\"ngForm\">\r\n <div *ngFor=\"let control of dataForm?.formQuestions; let index = index; trackBy: trackByIndex\">\r\n <div\r\n *ngIf=\"(index > 0 && (dataForm.formQuestions[index - 1].question.questionType.id == 3 && dataForm.formQuestions[index].question.questionType.id == 2)) || (index < dataForm.formQuestions.length && dataForm.formQuestions[index].question.questionType.id == 3 && dataForm.formQuestions[index + 1].question.questionType.id == 2); else switchTemp\">\r\n <div class=\"row\"\r\n *ngIf=\"(index > 0 && (dataForm.formQuestions[index - 1].question.questionType.id == 3 && dataForm.formQuestions[index].question.questionType.id == 2))\">\r\n <div class=\"col-lg-6 col-xs-12\">\r\n <div [class]=\"dataClassCss.cl12\">\r\n <label for=\"{{dataForm.formQuestions[index - 1].question.value}}\" class=\"col-sm-12\"\r\n style=\"display: block; text-align: left;\">\r\n <span class=\"h6 small bg-white text-muted\">{{dataForm.formQuestions[index -\r\n 1].question.label}}</span>\r\n </label>\r\n <div class=\"selectContainer\">\r\n <select [name]=\"dataForm.formQuestions[index - 1].question.value\"\r\n [required]=\"dataForm.formQuestions[index - 1].question.required\"\r\n [class]=\"dataClassCss.formcontrol\"\r\n id=\"{{dataForm.formQuestions[index - 1].question.value}}\"\r\n style=\"margin-top: -1rem !important;\"\r\n [(ngModel)]=\"defaultDocType !== '' ? defaultDocType : dataForm.formQuestions[index - 1].question.registred\">\r\n <option value=\"\" selected disabled hidden>Selecciona</option>\r\n <ng-container\r\n *ngFor=\"let item of dataForm.formQuestions[index - 1].question.questionAnswers\">\r\n <option *ngIf=\"item.answer.state.id == 1\" [value]=\"item.answer.value\">\r\n {{ item.answer.field }}\r\n </option>\r\n </ng-container>\r\n </select>\r\n </div>\r\n </div>\r\n <div style=\"margin-left: 15px;\"\r\n *ngIf=\"dataForm.formQuestions[index].question.questionType.id != 5 && dataForm.formQuestions[index].question.questionType.id != 6\">\r\n <span class=\"error\" [id]=\"'char'+dataForm.formQuestions[index-1].question.value\"\r\n hidden></span>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-6 col-xs-12\">\r\n <div [class]=\"dataClassCss.cl12\">\r\n <label for=\"{{dataForm.formQuestions[index].question.value}}\"\r\n class=\"col-sm-12 p-sm-0 px-sm-1\" style=\"display: block; text-align: left;\">\r\n <span\r\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\r\n </label>\r\n <input type=\"text\" pattern=\"\\d*\" inputmode=\"numeric\"\r\n id=\"{{dataForm.formQuestions[index].question.value}}\"\r\n style=\"margin-top: -1rem !important;\"\r\n [name]=\"dataForm.formQuestions[index].question.value\" placeholder=\"Escribe\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (keyup)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n onkeypress=\"onkeypress($event)\"\r\n onkeyup=\"(this.value=(value.replace(/[.]*/g,'')))\"\r\n maxlength=\"dataForm.formQuestions[index].question.maxLength\"\r\n [minLength]=\"dataForm.formQuestions[index].question.minLength\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\r\n [class]=\"dataClassCss.formcontrol\" />\r\n\r\n </div>\r\n\r\n <div style=\"margin-left: 15px;\"\r\n *ngIf=\"dataForm.formQuestions[index].question.questionType.id != 5 && dataForm.formQuestions[index].question.questionType.id != 6\">\r\n <span class=\"error\" [id]=\"'rq'+dataForm.formQuestions[index].question.value\"\r\n *ngIf=\"validRequired(formDynamic,dataForm.formQuestions[index].question) && watchValid\">\r\n Este campo es obligatorio</span>\r\n <span class=\"error\" [id]=\"'ml'+dataForm.formQuestions[index].question.value\" hidden>\r\n Debe ser m\u00EDnimo de\r\n {{ dataForm.formQuestions[index].question.minLength }} caracteres</span>\r\n <span class=\"error\" [id]=\"'mxl'+dataForm.formQuestions[index].question.value\" hidden>\r\n Debe ser maximo de\r\n {{ dataForm.formQuestions[index].question.maxLength }} caracteres</span>\r\n <span class=\"error\" [id]=\"'char'+dataForm.formQuestions[index].question.value\"\r\n hidden></span>\r\n <span *ngIf=\"patternNotValidDcto === true\" class=\"error\">Formato no valido</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <ng-template #switchTemp>\r\n <div [ngSwitch]=\"dataForm.formQuestions[index].question.questionType.id\">\r\n <div *ngSwitchCase=\"1\">\r\n <div [class]=\"dataClassCss.cl12\">\r\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\r\n style=\"display: block; text-align: left; \">\r\n <span\r\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\r\n </label>\r\n <input type=\"text\" id=\"{{dataForm.formQuestions[index].question.value}}\"\r\n [class]=\"dataClassCss.formcontrol\" placeholder=\"Escribe\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n [maxlength]=\"dataForm.formQuestions[index].question.maxLength\"\r\n [name]=\"dataForm.formQuestions[index].question.value\"\r\n (keydown)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\r\n style=\"margin-top: -1rem !important;\" />\r\n </div>\r\n </div>\r\n <div *ngSwitchCase=\"2\">\r\n\r\n <div [class]=\"dataClassCss.cl12\">\r\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\r\n style=\"display: block; text-align: left;\">\r\n <span\r\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\r\n </label>\r\n <input type=\"text\" pattern=\"\\d*\" inputmode=\"numeric\"\r\n id=\"{{dataForm.formQuestions[index].question.value}}\"\r\n style=\"margin-top: -1rem !important;\"\r\n [name]=\"dataForm.formQuestions[index].question.value\" placeholder=\"Escribe\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n (keydown)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n onkeypress=\"onkeypress($event)\"\r\n onkeyup=\"(this.value=(value.replace(/[.]*/g,'')))\"\r\n maxlength=\"dataForm.formQuestions[index].question.maxLength\"\r\n [minLength]=\"dataForm.formQuestions[index].question.minLength\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\r\n [class]=\"dataClassCss.formcontrol\" />\r\n <span *ngIf=\"patternNotValidCel === true\" class=\"error\">Formato no valido</span>\r\n </div>\r\n \r\n </div>\r\n <div *ngSwitchCase=\"3\">\r\n <div [class]=\"dataClassCss.cl12\">\r\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\r\n style=\"display: block; text-align: left;\">\r\n <span\r\n class=\"h6 small bg-white text-muted\">{{dataForm.formQuestions[index].question.label}}</span>\r\n </label>\r\n <select [name]=\"dataForm.formQuestions[index].question.value\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n [class]=\"dataClassCss.formcontrol\"\r\n id=\"{{dataForm.formQuestions[index].question.value}}\"\r\n style=\"margin-top: -1rem !important;\"\r\n [(ngModel)]=\"defaultDocType !== '' ? defaultDocType : dataForm.formQuestions[index].question.registred\">\r\n <option value=\"\" selected disabled hidden>Selecciona</option>\r\n <ng-container\r\n *ngFor=\"let item of dataForm.formQuestions[index].question.questionAnswers\">\r\n <option *ngIf=\"item.answer.state.id == 1\" [value]=\"item.answer.value\">\r\n {{ item.answer.field }}\r\n </option>\r\n </ng-container>\r\n </select>\r\n </div>\r\n </div>\r\n <div *ngSwitchCase=\"4\">\r\n <select class=\"{{ dataClassCss.formcontrol }} select-checkbox\"\r\n style=\"overflow: hidden; border-style: hidden;\"\r\n [style.height.px]=\"dataForm.formQuestions[index].question.questionAnswers.length * 24\"\r\n [name]=\"dataForm.formQuestions[index].question.value\"\r\n [required]=\"dataForm.formQuestions[index].question.required\" ngModel multiple>\r\n <option \r\n (mousemove)=\"$event.preventDefault()\"\r\n *ngFor=\"let item of dataForm.formQuestions[index].question.questionAnswers\"\r\n [value]=\"item.answer.value\">\r\n {{ item.answer.field }}\r\n </option>\r\n </select>\r\n </div>\r\n <div *ngSwitchCase=\"5\">\r\n <a (click)=\"rediretoutside($event,dataForm.formQuestions[index].question)\" href=\"\">\r\n <span>{{ dataForm.formQuestions[index].question.label }}</span>\r\n </a>\r\n </div>\r\n <div *ngSwitchCase=\"6\">\r\n <div [class]=\"dataClassCss.cl12\" [id]=\"'reCaptcha'\">\r\n <div class=\"cnt-captcha\">\r\n <re-captcha (resolved)=\"resolvedCaptcha($event)\"\r\n siteKey=\"6LfQisEZAAAAAARuuKFEAgS-x4qJse5uBA_QCA7v\"></re-captcha>\r\n <input hidden type=\"text\" [name]=\"dataForm.formQuestions[index].question.value\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\">\r\n </div>\r\n <span class=\"error\" *ngIf=\"watchValid && !captchaValid\" style=\"margin-top: 0;\">\r\n Debe resolver la captcha para continuar\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngSwitchCase=\"7\">\r\n <div [class]=\"dataClassCss.cl12\">\r\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\r\n style=\"display: block; text-align: left; margin-bottom: 0 ;\">\r\n <span\r\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\r\n </label>\r\n <input placeholder=\"dd/mm/aaaa\" style=\"margin-top: -0.4rem !important;\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n [name]=\"dataForm.formQuestions[index].question.value\" type=\"date\" min=\"{{minDate}}\"\r\n max=\"{{maxDate}}\" [maxlength]=\"10\" (paste)=\"false\"\r\n id=\"{{dataForm.formQuestions[index].question.value}}\"\r\n [class]=\"dataClassCss.txtCalendar\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\r\n (keydown)=\"cancellKeypress()\"\r\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\">\r\n\r\n <button class=\"btn\" id=\"{{dataForm.formQuestions[index].question.value}}\" type=\"button\"\r\n style=\"width: 46px;\r\n top: 12px;\r\n color: white;\r\n right: 15px;\r\n position: absolute;\r\n background: #D25D42;\r\n pointer-events: none;\">\r\n <i class=\"fa fa-calendar\"></i>\r\n </button>\r\n\r\n </div>\r\n </div>\r\n <div *ngSwitchCase=\"8\">\r\n <div [class]=\"dataClassCss.cl12\" style=\"text-align: left; margin-bottom: 10px;\">\r\n <input style=\"width: 4% !important; height: auto !important; display: inline !important;\" type=\"checkbox\"\r\n [name]=\"dataForm.formQuestions[index].question.value\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\r\n [class]=\"dataClassCss.formcontrol\">\r\n <!-- (change)=\"checkTermsAndConditions(dataForm.formQuestions[index].question.registred)\" -->\r\n \r\n <!-- <a href=\"{{urlPdf}}\" target=\"_blank\" style=\"text-decoration: underline;\"\r\n id=\"txtPoliticas\" (click)=\"tycSelection()\">\r\n {{dataForm.formQuestions[index].question.label}}\r\n </a> -->\r\n <a target=\"_blank\" style=\"text-decoration: underline;color:blue;cursor: pointer;\"\r\n id=\"txtPoliticas\" (click)=\"tycSelection($event)\">\r\n {{dataForm.formQuestions[index].question.label}}\r\n </a>\r\n </div>\r\n </div>\r\n <div *ngSwitchCase=\"9\">\r\n <div [class]=\"dataClassCss.cl12\">\r\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\r\n style=\"display: block; text-align: left; \">\r\n <span\r\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\r\n </label>\r\n <input type=\"text\" id=\"{{dataForm.formQuestions[index].question.value}}\"\r\n [class]=\"dataClassCss.formcontrol\" placeholder=\"Escribe\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n [maxlength]=\"dataForm.formQuestions[index].question.maxLength\"\r\n [name]=\"dataForm.formQuestions[index].question.value\"\r\n (keydown)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (keypress)=\"validOnlyText($event)\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\r\n style=\"margin-top: -1rem !important;\" />\r\n </div>\r\n </div>\r\n <div *ngSwitchCase=\"10\">\r\n <div [class]=\"dataClassCss.cl12\" style=\"text-align: left; margin-bottom: 10px;\">\r\n <input style=\"width: 4% !important; height: auto !important; display: inline !important;\"\r\n type=\"checkbox\" [name]=\"dataForm.formQuestions[index].question.value\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\">\r\n <a target=\"_blank\" style=\"text-decoration: underline;color:blue;cursor: pointer;\"\r\n id=\"check{{dataForm.formQuestions[index].question.id}}\"\r\n (click)=\"openLabelUrl($event,dataForm.formQuestions[index].question)\">\r\n {{dataForm.formQuestions[index].question.label}}\r\n </a>\r\n </div>\r\n </div>\r\n <div *ngSwitchCase=\"11\">\r\n <div [class]=\"dataClassCss.cl12\">\r\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\r\n style=\"display: block; text-align: left; \">\r\n <span\r\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\r\n </label>\r\n <input type=\"text\" id=\"{{dataForm.formQuestions[index].question.value}}\"\r\n [class]=\"dataClassCss.formcontrol\" placeholder=\"Escribe\"\r\n [required]=\"dataForm.formQuestions[index].question.required\"\r\n [maxlength]=\"dataForm.formQuestions[index].question.maxLength\"\r\n [name]=\"dataForm.formQuestions[index].question.value\"\r\n (keydown)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\r\n (keypress)=\"validateNotSpace($event)\"\r\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\r\n style=\"margin-top: -1rem !important;\" />\r\n </div>\r\n </div>\r\n <div *ngSwitchDefault>Tipo de control no detectado</div>\r\n <div style=\"margin-left: 15px;\"\r\n *ngIf=\"dataForm.formQuestions[index].question.questionType.id != 5 && dataForm.formQuestions[index].question.questionType.id != 6\">\r\n <span class=\"error\" [id]=\"'rq'+dataForm.formQuestions[index].question.value\"\r\n *ngIf=\"validRequired(formDynamic,dataForm.formQuestions[index].question) && watchValid\">\r\n Este campo es obligatorio</span>\r\n <span class=\"error\" [id]=\"'ml'+dataForm.formQuestions[index].question.value\" hidden>\r\n Debe ser m\u00EDnimo de\r\n {{ dataForm.formQuestions[index].question.minLength }} caracteres</span>\r\n <span class=\"error\" [id]=\"'mxl'+dataForm.formQuestions[index].question.value\" hidden>\r\n Debe ser maximo de\r\n {{ dataForm.formQuestions[index].question.maxLength }} caracteres</span>\r\n <span class=\"error\" [id]=\"'char'+dataForm.formQuestions[index].question.value\"\r\n hidden></span>\r\n <span class=\"error\" [id]=\"dataForm.formQuestions[index].question.id\" hidden></span>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <section *ngIf=\"isSimpleFlow\">\r\n <div *ngFor=\"let step of steps let index = index; trackBy: trackByIndex\">\r\n <div [class]=\"dataClassCss.cl12\" *ngIf=\"step.viewData\">\r\n <label for=\"{{step.id}}\" class=\"col-sm-12\" style=\"display: block; text-align: left;\">\r\n <span class=\"h6 small bg-white text-muted\">{{step.step}}</span>\r\n </label>\r\n <select [name]=\"step.step\" [required]=\"true\" [class]=\"dataClassCss.formcontrol\" id=\"{{step.step}}\"\r\n style=\"margin-top: -1rem !important;\" [(ngModel)]=\"step.value\"\r\n (ngModelChange)=\"onChangeStep(step,steps[index+1],$event)\">\r\n <option value=\"\" selected disabled hidden>Selecciona</option>\r\n <ng-container *ngFor=\"let subitem of step.viewData\">\r\n <option [value]=\"subitem.id\">\r\n {{ subitem.description }}\r\n </option>\r\n </ng-container>\r\n </select>\r\n </div>\r\n </div>\r\n </section>\r\n <div class=\"mt-3 text-center\">\r\n <button type=\"button\" [class]=\"dataClassCss.btn\" (click)=\"onSubmit()\" [disabled]=\"!formDynamic.valid\"\r\n id=\"btnIng\">Ingresar</button>\r\n </div>\r\n </form>\r\n </div>\r\n</div>\r\n",
|
1084
|
+
providers: [
|
1085
|
+
{ provide: ngBootstrap.NgbDateAdapter, useClass: CustomAdapter },
|
1086
|
+
{ provide: ngBootstrap.NgbDateParserFormatter, useClass: CustomDateParserFormatter },
|
1087
|
+
{ provide: ngBootstrap.NgbDatepickerI18n, useClass: CustomDatepickerI18n },
|
1088
|
+
I18n
|
1089
|
+
],
|
1090
|
+
styles: ["form{font-size:12px;overflow-y:scroll;overflow-x:hidden}form input,form select{border:1px solid #e4e4e4;height:40px;margin-bottom:5px}.selectContainer select{-webkit-appearance:none;-moz-appearance:none;appearance:none}.selectContainer::after{content:\"\\025be\";display:table-cell;text-align:center;padding-top:7px;width:30px;height:30px;position:absolute;top:14px;right:20px;pointer-events:none}form .error{color:red;font-size:12px;text-align:left;margin:-15px 0 15px;padding:0;width:90%}.error:after{content:\" \";display:block}.card{width:90%;margin:2% auto;border-radius:12px}@media (max-width:412px){.card{width:100%}.cnt-captcha{transform:scale(.77)}}@media (max-width:575.98px){.card{width:100%}.cnt-captcha{transform:scale(.77)}}@media (max-width:880.98px){.cnt-captcha{transform:scale(.82)}}input[type=date]::-webkit-calendar-picker-indicator{background:0 0;bottom:0;color:transparent;cursor:pointer;height:auto;left:0;position:absolute;right:0;top:0;width:auto}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:#f5f5f5}::-webkit-scrollbar-thumb{background:#e0e0e0}::-webkit-scrollbar-thumb:hover{background:#bdbdbd}"]
|
1091
|
+
})
|
1092
|
+
], FormAuroraComponent);
|
1093
|
+
return FormAuroraComponent;
|
1094
|
+
}());
|
1095
|
+
|
1096
|
+
var CommonTemplateService = /** @class */ (function () {
|
1097
|
+
function CommonTemplateService(http) {
|
1098
|
+
this.http = http;
|
1099
|
+
}
|
1100
|
+
CommonTemplateService.prototype.getTemplate = function (idCompany, url) {
|
1101
|
+
return this.http.get(url + "/template/findByCompany/" + idCompany);
|
1102
|
+
};
|
1103
|
+
CommonTemplateService.prototype.reloadStylePage = function (currentDocument, templateCompany) {
|
1104
|
+
var e_1, _a;
|
1105
|
+
var objects = currentDocument.getElementsByClassName("template");
|
1106
|
+
// debugger
|
1107
|
+
for (var index = 0; index < objects.length; index++) {
|
1108
|
+
var item = objects[index];
|
1109
|
+
var itemClassName = typeof (item.className) == "object" ? item.className['baseVal'] : item.className;
|
1110
|
+
var indexStart = itemClassName.indexOf("template");
|
1111
|
+
// let keyString = itemClassName.substring(indexStart, itemClassName.length).split(' ')[1]
|
1112
|
+
var keysString = itemClassName.substring(indexStart, itemClassName.length).split(' ').filter(function (a) { return a.indexOf('tmp_') !== -1; });
|
1113
|
+
try {
|
1114
|
+
for (var keysString_1 = (e_1 = void 0, __values(keysString)), keysString_1_1 = keysString_1.next(); !keysString_1_1.done; keysString_1_1 = keysString_1.next()) {
|
1115
|
+
var keyString = keysString_1_1.value;
|
1116
|
+
if (templateCompany[keyString] != undefined) {
|
1117
|
+
if (keyString.includes("tmp_type_text_")) {
|
1118
|
+
if (keyString.includes('tmp_type_text_6')) {
|
1119
|
+
item['style'].setProperty('--' + keyString, templateCompany[keyString].color);
|
1120
|
+
}
|
1121
|
+
else {
|
1122
|
+
item["style"].color = templateCompany[keyString].color;
|
1123
|
+
if (itemClassName.includes("ratting-faces-v2")) {
|
1124
|
+
item["style"].backgroundColor = templateCompany[keyString].color;
|
1125
|
+
item["style"].borderColor = templateCompany[keyString].color;
|
1126
|
+
item["style"].color = "white";
|
1127
|
+
}
|
1128
|
+
}
|
1129
|
+
}
|
1130
|
+
if (keyString.includes("title1")) {
|
1131
|
+
/*item["style"].color = templateCompany[keyString].color*/
|
1132
|
+
item["style"].color = "#EE7E0E";
|
1133
|
+
}
|
1134
|
+
if (keyString.includes("tmp_type_svg_")) {
|
1135
|
+
item["style"].fill = templateCompany[keyString].fill;
|
1136
|
+
}
|
1137
|
+
if (keyString.includes("tmp_type_img_")) {
|
1138
|
+
if (item.nodeName == "IMG") {
|
1139
|
+
item["src"] = templateCompany[keyString].src;
|
1140
|
+
}
|
1141
|
+
else {
|
1142
|
+
item["style"].background = templateCompany[keyString].background;
|
1143
|
+
item["style"].backgroundSize = templateCompany[keyString].backgroundSize;
|
1144
|
+
}
|
1145
|
+
}
|
1146
|
+
if (keyString.includes("tmp_type_head_")) {
|
1147
|
+
item["style"].setProperty('--' + keyString, templateCompany[keyString].color);
|
1148
|
+
}
|
1149
|
+
if (keyString.includes("tmp_type_footer_")) {
|
1150
|
+
// debugger
|
1151
|
+
item["style"].setProperty('--' + keyString, templateCompany[keyString].color);
|
1152
|
+
}
|
1153
|
+
if (itemClassName.includes("tmp_type_cnt_")) {
|
1154
|
+
indexStart = itemClassName.indexOf("tmp_type_cnt_");
|
1155
|
+
keyString = itemClassName.substring(indexStart, itemClassName.length).split(' ')[0];
|
1156
|
+
if (!!templateCompany[keyString]) {
|
1157
|
+
item["style"].backgroundColor = templateCompany[keyString].backgroundColor;
|
1158
|
+
}
|
1159
|
+
}
|
1160
|
+
if (keyString.includes('tmp_type_font_')) {
|
1161
|
+
item['style'].setProperty('font-family', templateCompany[keyString]['font-family'], 'important');
|
1162
|
+
}
|
1163
|
+
}
|
1164
|
+
}
|
1165
|
+
}
|
1166
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1167
|
+
finally {
|
1168
|
+
try {
|
1169
|
+
if (keysString_1_1 && !keysString_1_1.done && (_a = keysString_1.return)) _a.call(keysString_1);
|
1170
|
+
}
|
1171
|
+
finally { if (e_1) throw e_1.error; }
|
1172
|
+
}
|
1173
|
+
}
|
1174
|
+
};
|
1175
|
+
CommonTemplateService.ctorParameters = function () { return [
|
1176
|
+
{ type: http.HttpClient }
|
1177
|
+
]; };
|
1178
|
+
CommonTemplateService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function CommonTemplateService_Factory() { return new CommonTemplateService(core.ɵɵinject(http.HttpClient)); }, token: CommonTemplateService, providedIn: "root" });
|
1179
|
+
CommonTemplateService = __decorate([
|
1180
|
+
core.Injectable({
|
1181
|
+
providedIn: "root",
|
1182
|
+
})
|
1183
|
+
], CommonTemplateService);
|
1184
|
+
return CommonTemplateService;
|
1185
|
+
}());
|
1186
|
+
|
1187
|
+
var Fill = /** @class */ (function () {
|
1188
|
+
function Fill() {
|
1189
|
+
}
|
1190
|
+
return Fill;
|
1191
|
+
}());
|
1192
|
+
|
1193
|
+
var FormAuroraModule = /** @class */ (function () {
|
1194
|
+
function FormAuroraModule() {
|
1195
|
+
}
|
1196
|
+
FormAuroraModule = __decorate([
|
1197
|
+
core.NgModule({
|
1198
|
+
declarations: [FormAuroraComponent],
|
1199
|
+
imports: [
|
1200
|
+
common.CommonModule,
|
1201
|
+
forms.FormsModule,
|
1202
|
+
ngRecaptcha.RecaptchaModule,
|
1203
|
+
ngRecaptcha.RecaptchaFormsModule
|
1204
|
+
],
|
1205
|
+
exports: [FormAuroraComponent]
|
1206
|
+
})
|
1207
|
+
], FormAuroraModule);
|
1208
|
+
return FormAuroraModule;
|
1209
|
+
}());
|
1210
|
+
|
1211
|
+
exports.CommonDataService = CommonDataService;
|
1212
|
+
exports.CommonTemplateService = CommonTemplateService;
|
1213
|
+
exports.CustomAdapter = CustomAdapter;
|
1214
|
+
exports.CustomDateParserFormatter = CustomDateParserFormatter;
|
1215
|
+
exports.CustomDatepickerI18n = CustomDatepickerI18n;
|
1216
|
+
exports.Fill = Fill;
|
1217
|
+
exports.FormAuroraComponent = FormAuroraComponent;
|
1218
|
+
exports.FormAuroraModule = FormAuroraModule;
|
1219
|
+
exports.I18n = I18n;
|
1220
|
+
exports.regexType = regexType;
|
1221
|
+
|
1222
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
1223
|
+
|
1224
|
+
})));
|
1225
|
+
//# sourceMappingURL=form-aurora-stefanini.umd.js.map
|