-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidation.functions.js
965 lines (922 loc) · 56 KB
/
validation.functions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
/**
* Validation Script by Matheus Marques
* Check out at github: https://github.com/Matheus2212/js-validation-notification
*
* [CHANGELOG]
* 2021-02-19 -> Script created (work in progress)
* 2021-02-24 -> Developed the Box function and Object, using a Object as parameter to make it work. The parameter Object should be like: {title:"optional",message:"string or array",buttons:{key:'Text',otherKey:'Other text'}, actions: {keyKey:action(), otherKeyKey:otherAction()}}
* 2021-02-25 -> Created the BoxMessage fast forward function to display messages using the Box function.
* 2021-03-03 -> Created button click effect Material design look a like (visible when the box is not closed after the click).
* 2021-03-04 -> Created securityKey function and validateSecurityKey function. Inserted required type: "data-required-securityKey".
* 2021-03-05 -> Created validateCPF, validateCNPJ, validateCEP and validateURL functions. Inserted required types: data-required-cpf, data-required-cnpj, data-required-cep, data-required-url.
* 2021-03-08 -> Added a element parameter to the Validation.init() method. It will search for forms inside the given element - usefull for AJAX loaded forms.
* 2021-03-19 -> Switched default form selector from document.getElementsByTagName('form') to document.forms.
* 2021-06-03 -> Improved Browser compatibility list by switching method append by appendChild on box functions. Also improved CSS compatibility for old devices.
* 2021-07-30 -> Added only numbers and no spaces verifications for certain required types
* 2022-01-20 -> Major refactor in almost all the code. Added Callback features. Updated README.md
* 2022-03-24 -> Removed validateCondition method. Updated README.md. Updated form
* 2022-04-05 -> refactor: Removed a lot of "if ... else ..." from the code.
* 2022-04-06 -> feature: Added masks for inputs CPF, CNPJ, CEP, and Phone
* 2022-08-03 -> chore: Added module.exports case it will be used as a module
* 2022-10-19 -> chore: Added 'var' to stop ionic annoying error messages of undeclared variables
*/
function Box(object) {
var box = {
/** It is the Box itself */
box: null,
/** It will generate a new HTML div tag to be the Box */
createBox: function () {
var div = document.createElement("div"),
id = this.newId();
div.classList.add("validation");
div.setAttribute("id", id);
var HTML =
'<div class="validationBox"><div><a id="validationClose"></a><div class="validationHeader">{{validationHeader}}</div><div class="validationBody">{{validationBody}}</div><div class="validationFooter">{{validationFooter}}</div></div></div>';
div.innerHTML = HTML;
this.box = div;
},
/** It will create the Box header, with a title or without a title */
createHeader: function (title) {
if (typeof title == "undefined") {
title = "";
}
var header = document.createElement("span");
header.classList.add("validationTitle");
header.innerText = title;
this.box.innerHTML = this.box.innerHTML.replace(
"{{validationHeader}}",
header.outerHTML
);
},
/** It will create the Box body, with messages */
createBody: function (messages) {
var wrapper = document.createElement("div");
if (typeof messages !== "object") {
messages = [messages];
}
var keys = Object.keys(messages);
for (var i = 0; i < keys.length; i++) {
var message = document.createElement("span");
message.innerHTML = messages[i];
wrapper.appendChild(message);
}
this.box.innerHTML = this.box.innerHTML.replace(
"{{validationBody}}",
wrapper.outerHTML
);
},
/** It will create the Box footer, with buttons */
createFooter: function (buttons) {
var keys = Object.keys(buttons),
wrapper = document.createElement("div"),
buttonIds = {};
for (var i = 0; i < keys.length; i++) {
var button = document.createElement("a"),
newId = this.newId();
buttonIds[keys[i]] = newId;
button.setAttribute("id", newId);
button.classList.add("validationButton");
button.innerHTML = buttons[keys[i]];
wrapper.appendChild(button);
}
this.box.innerHTML = this.box.innerHTML.replace(
"{{validationFooter}}",
wrapper.outerHTML
);
return buttonIds;
},
/** It will apply the effect when the button is clicked */
createFooterEfect: function (button) {
var span = document.createElement("span");
span.classList.add("materialEffect");
button.appendChild(span);
setTimeout(function () {
span.remove();
}, 140);
},
/** It will apply the actions to the buttons of the Box */
createActions: function (buttonIds, actions) {
var keys = Object.keys(buttonIds),
box = this;
function bindAction(button, callback, box) {
button.addEventListener("click", function (evt) {
evt.preventDefault();
evt.stopPropagation();
callback(box);
box.createFooterEfect(this);
});
}
for (var i = 0; i < keys.length; i++) {
var button = document.getElementById(buttonIds[keys[i]]);
var action = actions[keys[i]];
bindAction(button, action, box);
}
this.ESCClose(box);
},
/** It will append the current Box on the page */
open: function (form, callback) {
var box = this;
var id = box.box.getAttribute("id");
document.getElementsByTagName("body")[0].appendChild(box.box);
var boxHTML = document
.getElementById(id)
.getElementsByClassName("validationBox")[0]
.getElementsByTagName("div")[0];
boxHTML.style.marginTop = "-" + boxHTML.clientHeight / 2 + "px";
document
.getElementById("validationClose")
.addEventListener("click", function (evt) {
evt.preventDefault();
evt.stopPropagation();
box.close();
});
document.activeElement.blur();
setTimeout(function () {
var buttons = document.getElementById(id).getElementsByTagName("a");
buttons[0].focus();
document.activeElement = buttons[0];
if (
typeof callback !== "undefined" &&
(typeof window[callback] == "function" ||
typeof callback == "function") &&
typeof form !== "undefined"
) {
if (typeof window[callback] == "function") {
window[callback](form, box);
} else if (typeof callback == "function") {
callback(form, box);
}
}
}, 100);
},
/** It will destroy the box instance */
close: function () {
var box = this,
id = box.box.getAttribute("id"),
elm = document.getElementById(id);
elm.classList.add("validationRemove");
setTimeout(function () {
elm.remove();
window.removeEventListener("keydown", window.validateCheck, false);
delete window.validateCheck;
}, 100);
},
/** It is the method that will call the method which closes the Box Instance when the ESC key is pressed */
ESCClose: function () {
box = this;
window.validateCheck = function (key) {
if (key.key == "Escape" || key.keyCode == 27) {
box.close();
window.removeEventListener("keydown", window.validateCheck, false);
}
};
window.addEventListener("keydown", window.validateCheck);
},
/** It is the method that genereates a new ID based on the length passed as parameter */
newId: function (length) {
if (typeof length == "undefined") {
length = 8;
}
var result = "";
var characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var charactersLength = characters.length;
for (var i = 0; i < length; i++) {
result += characters.charAt(
Math.floor(Math.random() * charactersLength)
);
}
return result;
},
/* It is the method called by function Box, to create a new Box instance on the window */
init: function (object) {
this.createBox();
object.title =
typeof object.title == "undefined" ? "Warning" : object.title;
object.messages =
typeof object.messages == "undefined"
? "Please check the form"
: object.messages;
object.buttons =
typeof object.buttons == "undefined" ? { ok: "OK" } : object.buttons;
object.actions =
typeof object.actions == "undefined"
? {
ok: function (box) {
box.close();
},
}
: object.actions;
this.createHeader(object.title);
this.createBody(object.messages);
var buttonIds = this.createFooter(object.buttons);
if (
typeof object.form !== "undefined" &&
typeof object.callback !== "undefined"
) {
this.open(object.form, object.callback);
} else {
this.open();
}
this.createActions(buttonIds, object.actions);
},
};
box.init(object);
}
/** Fast display function to show messages using the Box function */
function BoxMessage(messages, title) {
var obj = {};
obj.messages = messages;
if (typeof title !== "undefined") {
obj.title = title;
}
Box(obj);
}
/** This is the whole validation proccess */
const Validation = {
/** Will check if actual element is of an valid tag */
isValidTag: function (element) {
var tag = element.tagName.toLowerCase();
var validInputs = ["input", "select", "textarea"];
for (var iterate = 0; iterate < validInputs.length; iterate++) {
if (tag == validInputs[iterate]) {
return true;
}
}
return false;
},
/** Will check if actual element is a proper input field (not button or submit) */
isValidInputType: function (element) {
var type = element.getAttribute("type");
if (typeof type == "undefined" || type == null) {
return false;
}
type = type.toLowerCase();
var types = [
"hidden",
"email",
"password",
"text",
"radio",
"checkbox",
"range",
"file",
"color",
];
for (var iterate = 0; iterate < types.length; iterate++) {
if (type == types[iterate]) {
return true;
}
}
return false;
},
/** Will check if actual element is/isn't required */
isRequired: function (element) {
var elements = this.getRequiredTypes;
for (var iterate = 0; iterate < elements.length; iterate++) {
var check = element.getAttribute(elements[iterate]);
if (typeof check !== "undefined" && check !== null) {
return true;
}
}
return false;
},
/** Will return the requireds types */
getRequiredTypes: function () {
return [
"data-required",
"data-required-if",
"data-required-email",
"data-required-password",
"data-required-function",
"data-required-securityKey",
"data-required-cpf",
"data-required-cnpj",
"data-required-cep",
"data-required-url",
"data-required-phone",
];
},
/** Will return the type of the requirement of the field */
getRequiredType: function (element) {
var type = "message";
var elements = this.getRequiredTypes();
for (var iterate = 0; iterate < elements.length; iterate++) {
var check = element.getAttribute(elements[iterate]);
if (typeof check !== "undefined" && check !== null) {
check = elements[iterate].split("-");
element.requiredAttr = element.getAttribute(elements[iterate]);
if (check[check.length - 1] !== "required") {
type = check[check.length - 1];
return type;
}
}
}
return type;
},
/** It gets the message to be shown using the input context to set the message */
getRequiredMessage: function (element, type) {
var message = "";
type = type.toLowerCase();
if (type == "basic") {
message = element.getAttribute("data-required");
} else if (type == "function") {
var messages = element
.getAttribute("data-required-function")
.split(";")[1]
.split("||");
for (var iterate = 0; iterate < messages.length; iterate++) {
messages[iterate] = this.trim(messages[iterate]);
}
var tag = element.tagName.toLowerCase(),
type = element.getAttribute("type");
if (tag == "select" && this.trim(element.value) == "") {
message = messages[0];
} else if (tag == "textarea" && this.trim(element.value) == "") {
message = messages[0];
} else if (
tag == "input" &&
(type == "radio" || type == "checkbox") &&
!element.checked
) {
message = messages[0];
} else {
message = messages[1];
}
} else {
var messages = element.getAttribute("data-required-" + type);
if (messages !== null && messages !== "") {
messages = messages.split("||");
for (var iterate = 0; iterate < messages.length; iterate++) {
messages[iterate] = this.trim(messages[iterate]);
}
if (this.trim(element.value) == "") {
message = messages[0];
} else {
message = messages[1];
}
}
}
return message;
},
/** Validate messages to be added on the array */
validateMessageInsertion: function (message, messages) {
if (message == null) {
return false;
}
for (var iterate = 0; iterate < messages.length; iterate++) {
if (messages[iterate] == message) {
return false;
}
}
return true;
},
/** Validate required input fields with basic validation */
validateBasic: function (element) {
var tag = element.tagName.toLowerCase(),
type = element.getAttribute("type");
if (type == "radio") {
var name = element.getAttribute("name");
if (/\[/.test(name)) {
name = name.split("[")[0];
}
var radios = document.getElementsByName(name);
for (var iterate = 0; iterate < radios.length; iterate++) {
if (radios[iterate].checked) {
return true;
}
}
return false;
}
if (type == "checkbox") {
var name = element.getAttribute("name"),
qty = 1;
if (/\[/.test(name)) {
name = name.split("[")[0];
}
var checkboxes = document.getElementsByName(name),
checked = 0;
for (var iterate = 0; iterate < checkboxes.length; iterate++) {
var check = checkboxes[iterate].getAttribute("data-minimum");
if (typeof check !== "undefined" && check !== false && check !== null) {
qty = parseInt(check);
}
if (checkboxes[iterate].checked) {
checked++;
}
}
if (checked >= qty) {
return true;
}
return false;
}
if (tag == "select") {
if (this.trim(element.value) !== "") {
return true;
}
return false;
}
if (tag == "textarea" || type !== "radio" || type !== "checkbox") {
if (this.trim(element.value) !== "") {
return true;
}
return false;
}
return false;
},
/** Validate required input fields with email function */
validateEmail: function (element) {
var email = element.value.trim(),
user = email.substring(0, email.indexOf("@")),
domain = email.substring(email.indexOf("@") + 1, email.length);
if (
user.length >= 1 &&
domain.length >= 3 &&
user.search("@") === -1 &&
domain.search("@") === -1 &&
user.search(" ") === -1 &&
domain.search(" ") === -1 &&
domain.search(".") !== -1 &&
domain.indexOf(".") >= 1 &&
domain.lastIndexOf(".") < domain.length - 1
) {
return true;
} else {
return false;
}
},
/** Validate required input fields with password function */
validatePassword: function (element) {
var password = element.value;
if (
password.length > 7 &&
/[0-9]{1}/.test(password) &&
/[a-z]{1}/.test(password) &&
/[A-Z]{1}/.test(password) &&
/[\\\!\@\#\$\%\&\*\(\)\_\-\+\=\.\}\{\}]{1,}/.test(password)
) {
return true;
} else {
return false;
}
},
/** Validate required input fields with email function */
validateSecurityKey: function (element) {
var key = element.value,
generatedKey = "",
nameEQ = "validationSecurityKey=",
ca = document.cookie.split(";");
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == " ") c = c.substring(1, c.length);
if (c.indexOf(nameEQ) == 0) {
generatedKey = c.substring(nameEQ.length, c.length);
}
}
if (key !== "" && generatedKey !== "" && key == generatedKey) {
return true;
} else {
return false;
}
},
/** Validate required input fields with CPF function */
validateCPF: function (element) {
if (
/[0-9]{3}\.[0-9]{3}\.[0-9]{3}\-[0-9]{2}/.test(element.value) ||
element.value.replace(/[^0-9]/g, "").length == 11
) {
return true;
} else {
return false;
}
},
/** Validate required input fields with CNPJ function */
validateCNPJ: function (element) {
if (
/[0-9]{2}\.[0-9]{3}\.[0-9]{3}\/[0-9]{4}\-[0-9]{2}/.test(element.value) ||
element.value.replace(/[^0-9]/g, "").length == 14
) {
return true;
} else {
return false;
}
},
/** Validate required input fields with CEP function */
validateCEP: function (element) {
if (
/[0-9]{2}\.[0-9]{3}\-[0-9]{3}/.test(element.value) ||
element.value.replace(/[^0-9]/g, "").length == 8
) {
return true;
} else {
return false;
}
},
/** Validate required input fields with URL function */
validateURL: function (element) {
if (
/(http(s)?\:\/\/)?(www\.)?([a-zA-Z0-9]+\.[0-9a-zA-Z]{2,})([a-zA-Z0-9]{2,})?/.test(
element.value
)
) {
return true;
} else {
return false;
}
},
/** Validate required input fields with Phone function */
validatePhone: function (element) {
if (
/[^0-9]{+}/.test(element.value) ||
element.value == "" ||
element.value.length < 10
) {
return false;
} else {
return true;
}
},
/** Validate required input fields with functions */
validateFunction: function (element) {
var required = element.getAttribute("data-required-function"),
aux = required.split(";")[0].split("("),
func = aux[0];
if (typeof window[func] == "function") {
var check = true;
if (!window[func](element)) {
element.setAttribute("data-status", "0");
check = false;
} else {
element.removeAttribute("data-status");
}
return check;
}
return false;
},
/** This function generates a random number between min and max */
getRandomNumber: function (min, max) {
return Math.ceil(Math.random() * (max - min) + min);
},
/** This function generates a random hex color */
getRandomColor: function () {
var letters = "0123456789ABCDEF";
var color = "#";
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
},
/** Will make text available to HTML entity - it don't depends on page charset */
toHTMLFormat: function (array) {
if (typeof array == "object") {
var keys = Object.keys(array);
for (var iterate = 0; iterate < keys.length; iterate++) {
array[keys[iterate]] = array[keys[iterate]].replace(
/[\u00A0-\u9999<>\&]/g,
function (i) {
return "&#" + i.charCodeAt(0) + ";";
}
);
}
return array;
} else {
return array.replace(/[\u00A0-\u9999<>\&]/g, function (i) {
return "&#" + i.charCodeAt(0) + ";";
});
}
},
/** Remove empty spaces at the start and end of the string (trim polyfill) */
trim: function (string) {
return string.replace(/^\s+|\s+$/g, "");
},
/** Will generate a security key on the page */
securityKey: function (elmId, renew) {
var element = document.getElementById(elmId);
if (typeof element !== "undefined") {
if (typeof renew !== "undefined") {
var parent = element.parentNode,
classes = element.classList,
data = element.dataset;
parent.innerHTML = "";
var img = document.createElement("img");
img.setAttribute("id", elmId);
for (var i = 0; i < classes.length; i++) {
img.classList.add(classes[i]);
}
img.dataset = data;
parent.appendChild(img);
element = img;
}
element.parentNode.style.position = "relative";
var backgrounds = [
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgMCAgMDAwMEA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KOgDrAmY4eS85lBBypoIVZMPvBXrr6yiqNHsD194bIW2QrmS1VX5yw3tiB4cFGmGY3UJpcUChtUJAl5HbaVDIGUmCwPTwGgQemLCfCbeKvDkS2GFEP7j9414jlcE2/AqvufeTBFsJCziKSXTbyG4cO1VBxRGK55ojKN+AKCioJ7Lel9jllg9on3c0feTyw84GJqoIYTfeP0MhjP3I9Hb0WhGhOvVUNBAeW7DxWtybfZ6bc1uy4kKQWj6Kk+P3rqXDdvZAH7gH96P9blT4hRsGcnZPs0K8CQfH3970SqCQTQkAGSPnPTyN+JDCFkePvLCMqnoeNBbSnvVlHeI14MRBLU0uICYd4oFDMr+fpcbYX8pFF9X4cumlK1UFUNECjHqMRwaRJElSf3/ADn8oK0rZaZqLUIbLzIntxdEWcFrT14webJTkzVK9gv3pKwBSa4XGBLAPV507MaG05zRiPh2jM2x2fTI/oD5s2L60YSUrtDOKH5itz3WRG4/y4D9qSa0C41xZPeUcIWia8fg+FPZ1aPTD4G5DRVo50oF5HKnjbCJ4+c9sZHW1QeJiWzzmPOPuPjvPz9/ThPEbWCCArlP/bz92NmTbnxBP+8mAjBEKa0ILbWby8KQkWjMKHrzpTmNlJLxGh9H5pgIlLDn5EivP1OJ1KUQC1WxGM/N4qYYKs0etPpB8XkYk2Ekm+h/rDOBpERMSyUq0AOvOW1NmWri6JIFF4zm0+0AYyil1VX3v//Z",
];
var key = "";
var characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var charactersLength = characters.length;
for (var i = 0; i < 6; i++) {
key += characters.charAt(Math.floor(Math.random() * charactersLength));
}
key = key.split("");
for (var i = 0; i < key.length; i++) {
var span = document.createElement("span");
span.innerText = key[i];
span.style.color = this.getRandomColor();
span.style.position = "absolute";
span.style.top = "6px";
span.style.fontSize = "25px";
span.style.fontWeight = "bold";
span.style.left = 23.333 * i + 10 + "px";
span.style.transform =
"rotate(" + this.getRandomNumber(-30, 30) + "deg)";
span.style.webkitTransform =
"rotate(" + this.getRandomNumber(-30, 30) + "deg)";
span.style.mozTransform =
"rotate(" + this.getRandomNumber(-30, 30) + "deg)";
span.style.msTransform =
"rotate(" + this.getRandomNumber(-30, 30) + "deg)";
span.style.oTransform =
"rotate(" + this.getRandomNumber(-30, 30) + "deg)";
span.style.webkitTextShadow = "0 0 2px rgba(0,0,0,0.5)";
span.style.mozTextShadow = "0 0 2px rgba(0,0,0,0.5)";
span.style.msTextShadow = "0 0 2px rgba(0,0,0,0.5)";
span.style.oTextShadow = "0 0 2px rgba(0,0,0,0.5)";
span.style.textShadow = "0 0 2px rgba(0,0,0,0.5)";
element.parentNode.appendChild(span);
}
var date = new Date();
date.setTime(date.getTime() + 1 * 24 * 60 * 60 * 1000);
document.cookie =
"validationSecurityKey" +
"=" +
key.join("") +
"; expires=" +
date.toUTCString() +
"; path=/";
element.parentNode.style.backgroundImage =
"url('" + backgrounds[this.getRandomNumber(0, 3)] + "')";
element.parentNode.style.backgroundRepeat = "repeat";
element.parentNode.style.width = "155px";
element.parentNode.style.overflow = "hidden";
element.parentNode.style.height = "40px";
}
},
/** This is the function responsible to check if the form is valid */
validate: function (evt) {
var elements = this.elements,
messages = new Array();
this.validated = false;
for (var iterate = 0; iterate < elements.length; iterate++) {
var element = elements[iterate];
if (
Validation.isValidTag(element) ||
(Validation.isValidInputType(element) && Validation.isRequired(element))
) {
var requiredType = Validation.getRequiredType(element);
if (
requiredType == "cnpj" ||
requiredType == "cpf" ||
requiredType == "cep" ||
requiredType == "url"
) {
requiredType = requiredType.toUpperCase();
} else if (requiredType !== "message") {
requiredType = requiredType[0].toUpperCase() + requiredType.slice(1);
} else {
requiredType = "Basic";
}
if (!Validation["validate" + requiredType](element)) {
var message = Validation.getRequiredMessage(element, requiredType);
if (Validation.validateMessageInsertion(message, messages)) {
messages.push(message);
}
}
}
}
var callback = this.getAttribute("data-callback");
if (callback !== null && callback !== "") {
callback = callback.split(",");
for (var iterate = 0; iterate < callback.length; iterate++) {
callback[iterate] = Validation.trim(callback[iterate]);
}
}
if (messages.length > 0) {
var obj = {
messages: messages,
form: this,
};
if (
typeof this.parameters.title !== "undefined" ||
this.getAttribute("data-title") !== null
) {
var title = this.getAttribute("data-title");
obj.title = Validation.toHTMLFormat(
title !== null
? title
: typeof this.parameters.title !== "undefined"
? this.parameters.title
: null
);
}
if (callback !== null && callback !== "" && callback[0] == "false") {
obj.callback = callback[1];
}
Box(obj);
evt.preventDefault();
return false;
} else {
this.validated = true;
if (callback !== null && callback !== "" && callback[0] == "true") {
if (typeof window[callback[1]] == "function") {
window[callback[1]](this);
}
}
}
},
/** Will prevent any required form to be submitted */
preventSend: function (evt) {
evt.preventDefault();
return false;
},
/** Will add keyDown event to inputs accordingly with the required type */
bindKeyDown: function (form) {
var inputs = form.elements;
var onlyNumbers = ["cpf", "cnpj", "cep", "phone"];
var noSpaces = ["url", "email"];
var onlyNumbersF = function (event) {
if (
!/[0-9]/.test(event.key) &&
event.key !== "Tab" &&
event.key !== "Backspace" &&
event.key !== "Enter" &&
event.key !== "Delete" &&
event.key !== "ArrowLeft" &&
event.key !== "ArrowRight"
) {
event.preventDefault();
}
};
var noSpacesF = function (event) {
if (event.code == "Space") {
event.preventDefault();
}
};
for (var i = 0; i < inputs.length; i++) {
var input = inputs[i],
type = this.getRequiredType(input);
for (var iterate = 0; iterate < onlyNumbers.length; iterate++) {
if (onlyNumbers[iterate] == type) {
input.removeEventListener("keydown", onlyNumbersF, false);
input.addEventListener("keydown", onlyNumbersF);
this.applyMask(input);
}
}
for (var iterate = 0; iterate < noSpaces.length; iterate++) {
if (noSpaces[iterate] == type) {
input.removeEventListener("keydown", noSpacesF, false);
input.addEventListener("keydown", noSpacesF);
}
}
}
},
/** Will apply a mask to the input according to its type*/
applyMask: function (element) {
var validationMasks = {
phone: {
rule: /(\d{0,2})(\d{0,1})(\d{0,4})(\d{0,4})/, //"(99) 99999-9999",
callback: function (array) {
if (array[4] !== "" && array[4].length == 4) {
return (
(array[1] !== "" ? "(" + array[1] + ")" : "") +
" " +
(array[2] !== "" ? array[2] : "") +
(array[3] !== "" ? array[3] + "-" : "") +
(array[4] !== "" ? array[4] : "")
);
}
return (
(array[1] !== "" ? "(" + array[1] + ")" : "") +
" " +
(array[2] !== "" ? array[2] : "") +
(array[3] !== ""
? array[3].length == 4
? array[3].slice(0, array[3].length - 1) +
"-" +
array[3].slice(3)
: array[3]
: "") +
(array[4] !== "" ? array[4] : "")
);
},
},
cpf: {
rule: /(\d{0,3})(\d{0,3})([0-9]{0,3})(\d{0,2})/, //"999.999.999-99",
callback: function (array) {
return (
(array[1] !== "" ? array[1] + "." : "") +
(array[2] !== "" ? array[2] + "." : "") +
(array[3] !== "" ? array[3] + "-" : "") +
(array[4] !== "" ? array[4] : "")
);
},
},
cnpj: {
rule: /(\d{0,2})(\d{0,3})(\d{0,3})(\d{0,4})(\d{0,2})/, //"99.999.999.9999/99",
callback: function (array) {
return (
(array[1] !== "" ? array[1] + "." : "") +
(array[2] !== "" ? array[2] + "." : "") +
(array[3] !== "" ? array[3] + "." : "") +
(array[4] !== "" ? array[4] + "/" : "") +
(array[5] !== "" ? array[5] : "")
);
},
},
cep: {
rule: /(\d{0,2})(\d{0,3})(\d{0,3})/, //"99.999-999",
callback: function (array) {
return (
(array[1] !== "" ? array[1] + "." : "") +
(array[2] !== "" ? array[2] + "-" : "") +
(array[3] !== "" ? array[3] : "")
);
},
},
};
element.addEventListener("keyup", function (e) {
var maskType = Validation.getRequiredType(this);
var mask = validationMasks[maskType];
var reg = new RegExp(mask.rule);
var x = e.target.value.replace(/\D/g, "").match(reg);
this.value = mask.callback(x);
});
},
/** It will remove the validation function in the given form or forms */
toggle: function (element, off) {
var forms = "";
if (typeof element == "undefined") {
forms = document.forms;
} else {
forms = element.getElementsByTagName("form");
}
off = typeof off !== "undefined" ? false : true;
if (forms.length > 0) {
for (var iterate = 0; iterate < forms.length; iterate++) {
var form = forms[iterate];
off
? form.removeEventListener("submit", this.validate, false)
: form.addEventListener("submit", this.validate);
}
}
},
/**
* It will bind the validation proccess to the required forms
*/
init: function (element) {
var forms = "";
if (typeof element == "undefined") {
forms = document.forms;
} else {
forms = element.getElementsByTagName("form");
}
if (forms.length > 0) {
for (var iterate = 0; iterate < forms.length; iterate++) {
var form = forms[iterate],
dataset = form.dataset;
if (
typeof form.parameters !== "undefined" ||
typeof dataset.validate !== "undefined"
) {
form.addEventListener("submit", this.preventSend); // will prevent submits
if (typeof dataset !== "undefined") {
var parameters = {},
data = Object.keys(dataset);
for (
var datasetIterate = 0;
datasetIterate < data.length;
datasetIterate++
) {
parameters[data[datasetIterate]] = dataset[data[datasetIterate]];
}
parameters.state = true;
form.parameters = parameters;
} else if (typeof form.parameters !== "undefined") {
var parameters = form.parameters;
}
form.addEventListener("submit", this.validate); // real submit
form.removeEventListener("submit", this.preventSend, false); // remove previous prevented submit
this.bindKeyDown(form); // binds keydown event on certain input types
}
}
}
},
};
if (typeof module !== "undefined") {
module.exports.Box = Box;
module.exports.BoxMessage = BoxMessage;
module.exports.Validation = Validation;
}