geico_design_kit 0.0.1-security.1 → 15.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of geico_design_kit might be problematic. Click here for more details.

Files changed (109) hide show
  1. package/.babelrc +5 -0
  2. package/LICENSE +0 -0
  3. package/alt.json +33 -0
  4. package/dist/analytics.js +119 -0
  5. package/dist/appState.js +56 -0
  6. package/dist/baseComponent.js +110 -0
  7. package/dist/components/Accordion.js +312 -0
  8. package/dist/components/AddressAutoComplete.js +220 -0
  9. package/dist/components/Alert.js +145 -0
  10. package/dist/components/BackgroundPattern.js +99 -0
  11. package/dist/components/BackgroundPatternPortfolio.js +242 -0
  12. package/dist/components/ButtonSwitch.js +236 -0
  13. package/dist/components/CardSelections.js +230 -0
  14. package/dist/components/CommonQuestionsSquares.js +169 -0
  15. package/dist/components/Confirmation.js +156 -0
  16. package/dist/components/ConsolidatedSummary.js +489 -0
  17. package/dist/components/CoverageGraph.js +201 -0
  18. package/dist/components/CreditCard.js +591 -0
  19. package/dist/components/CurrencyInput.js +302 -0
  20. package/dist/components/DatePicker.js +468 -0
  21. package/dist/components/DockedMessage.js +146 -0
  22. package/dist/components/DotNavigation.js +200 -0
  23. package/dist/components/EditComponent.js +128 -0
  24. package/dist/components/EditableTable.js +113 -0
  25. package/dist/components/InPageNavigation.js +360 -0
  26. package/dist/components/Loader.js +232 -0
  27. package/dist/components/MakePayment.js +361 -0
  28. package/dist/components/Modal.js +254 -0
  29. package/dist/components/MoreInfoButton.js +227 -0
  30. package/dist/components/MultipleSelectBox.js +217 -0
  31. package/dist/components/NavigationalBox.js +161 -0
  32. package/dist/components/Navigator.js +294 -0
  33. package/dist/components/PasswordMeter.js +201 -0
  34. package/dist/components/PayPlans.js +534 -0
  35. package/dist/components/SegmentedControl.js +327 -0
  36. package/dist/components/SortableTable.js +166 -0
  37. package/dist/components/Tabs.js +1 -0
  38. package/dist/components/TextAreaCountdown.js +219 -0
  39. package/dist/components/Timeline.js +498 -0
  40. package/dist/components/TimelineFilter.js +492 -0
  41. package/dist/components/ToTopArrow.js +153 -0
  42. package/dist/components/Tooltip.js +329 -0
  43. package/dist/components/Upsell.js +168 -0
  44. package/dist/components/VIN.js +271 -0
  45. package/dist/components/ValidateForm.js +938 -0
  46. package/dist/components/ViewMoreLess.js +191 -0
  47. package/dist/components/ZipCode.js +191 -0
  48. package/dist/components/portfolio.js +99 -0
  49. package/dist/geico-design-kit.js +141 -0
  50. package/dist/global/components.js +98 -0
  51. package/dist/global/footer.js +26 -0
  52. package/dist/global/nav.js +1257 -0
  53. package/dist/services/CharacterTypeService.js +106 -0
  54. package/dist/services/UserAgentService.js +73 -0
  55. package/dist/utils.js +79 -0
  56. package/package.json +29 -3
  57. package/src/analytics.js +82 -0
  58. package/src/appState.js +56 -0
  59. package/src/baseComponent.js +156 -0
  60. package/src/components/Accordion.js +336 -0
  61. package/src/components/AddressAutoComplete.js +236 -0
  62. package/src/components/Alert.js +135 -0
  63. package/src/components/BackgroundPattern.js +96 -0
  64. package/src/components/BackgroundPatternPortfolio.js +284 -0
  65. package/src/components/ButtonSwitch.js +241 -0
  66. package/src/components/CardSelections.js +240 -0
  67. package/src/components/CommonQuestionsSquares.js +179 -0
  68. package/src/components/Confirmation.js +160 -0
  69. package/src/components/ConsolidatedSummary.js +505 -0
  70. package/src/components/CoverageGraph.js +203 -0
  71. package/src/components/CreditCard.js +595 -0
  72. package/src/components/CurrencyInput.js +321 -0
  73. package/src/components/DatePicker.js +487 -0
  74. package/src/components/DockedMessage.js +142 -0
  75. package/src/components/DotNavigation.js +206 -0
  76. package/src/components/EditComponent.js +130 -0
  77. package/src/components/EditableTable.js +106 -0
  78. package/src/components/InPageNavigation.js +391 -0
  79. package/src/components/Loader.js +272 -0
  80. package/src/components/MakePayment.js +397 -0
  81. package/src/components/Modal.js +279 -0
  82. package/src/components/MoreInfoButton.js +243 -0
  83. package/src/components/MultipleSelectBox.js +211 -0
  84. package/src/components/NavigationalBox.js +163 -0
  85. package/src/components/Navigator.js +338 -0
  86. package/src/components/PasswordMeter.js +209 -0
  87. package/src/components/PayPlans.js +604 -0
  88. package/src/components/SegmentedControl.js +365 -0
  89. package/src/components/SortableTable.js +176 -0
  90. package/src/components/Tabs.js +0 -0
  91. package/src/components/TextAreaCountdown.js +231 -0
  92. package/src/components/Timeline.js +532 -0
  93. package/src/components/TimelineFilter.js +533 -0
  94. package/src/components/ToTopArrow.js +153 -0
  95. package/src/components/Tooltip.js +344 -0
  96. package/src/components/Upsell.js +196 -0
  97. package/src/components/VIN.js +289 -0
  98. package/src/components/ValidateForm.js +1030 -0
  99. package/src/components/ViewMoreLess.js +193 -0
  100. package/src/components/ZipCode.js +193 -0
  101. package/src/components/portfolio.js +106 -0
  102. package/src/geico-design-kit.js +144 -0
  103. package/src/global/components.js +92 -0
  104. package/src/global/footer.js +25 -0
  105. package/src/global/nav.js +1457 -0
  106. package/src/services/CharacterTypeService.js +107 -0
  107. package/src/services/UserAgentService.js +59 -0
  108. package/src/utils.js +82 -0
  109. package/README.md +0 -5
@@ -0,0 +1,92 @@
1
+ import * as utils from '../utils';
2
+
3
+ function initAllTextareaCountdown(){
4
+ initAll(".textarea-countdown-container", "TextareaCountdown");
5
+ }
6
+
7
+ function initAllToolTips(){
8
+ initAll(".tooltip-trigger", "Tooltip");
9
+ }
10
+
11
+ function initAllVML(){
12
+ initAll(".view-more-less", "ViewMoreLess");
13
+ }
14
+
15
+ function initAllMoreInfoBtn(){
16
+ initAll(".more-info-button-container", "MoreInfoButton");
17
+ }
18
+
19
+ function initAllTabs(){
20
+ initAll(".tabs", "Tabs");
21
+ }
22
+
23
+ function initAllAlert(){
24
+ initAll(".alert", "Alert");
25
+ }
26
+
27
+ function initAllSortableTable(){
28
+ initAll(".table--sortable", "SortableTable");
29
+ }
30
+
31
+ function initAllAccordions(){
32
+ initAll(".accordion", "Accordion");
33
+ }
34
+
35
+ function initAllNavigationalBox(){
36
+ initAll(".navigational-box", "NavigationalBox");
37
+ }
38
+
39
+ //initAll(".view-more-less", "ViewMoreLess");
40
+
41
+ function initAll(className, GDKname){
42
+ for(var i=0; i< document.querySelectorAll(className).length;i++) {
43
+ switch (GDKname) {
44
+ case "ViewMoreLess":
45
+ var vml = new GDK.ViewMoreLess({
46
+ "content": document.querySelectorAll(className)[i]
47
+ });
48
+ break;
49
+ case "Tooltip":
50
+ var tooltip = new GDK.Tooltip({
51
+ "content": document.querySelectorAll(className)[i]
52
+ });
53
+ break;
54
+ case "TextareaCountdown":
55
+ var tacountdown = new GDK.TextareaCountdown({
56
+ "content" : document.querySelectorAll(className)[i]
57
+ });
58
+ break;
59
+ case "MoreInfoButton":
60
+ var mib = new GDK.MoreInfoButton({
61
+ "content" : document.querySelectorAll(className)[i]
62
+ });
63
+ break;
64
+ case "Tabs":
65
+ var tab = new GDK.Tabs({
66
+ "content" : document.querySelectorAll(className)[i]
67
+ });
68
+ break;
69
+ case "Alert":
70
+ var alert = new GDK.Alert({
71
+ "content" : document.querySelectorAll(className)[i]
72
+ });
73
+ break;
74
+ case "SortableTable":
75
+ var sortableTable = new GDK.SortableTable({
76
+ "content" : document.querySelectorAll(className)[i]
77
+ });
78
+ break;
79
+ case "Accordion":
80
+ var accordion = new GDK.Accordion({
81
+ "content" : document.querySelectorAll(className)[i]
82
+ });
83
+ break;
84
+ case "NavigationalBox":
85
+ var navigationalBox = new GDK.NavigationalBox({
86
+ "content" : document.querySelectorAll(className)[i]
87
+ });
88
+ }
89
+ }
90
+ }
91
+
92
+ export {initAllTextareaCountdown, initAllToolTips, initAllVML, initAllMoreInfoBtn, initAllTabs, initAllAlert, initAllSortableTable, initAllAccordions, initAllNavigationalBox};
@@ -0,0 +1,25 @@
1
+ //Module Imports
2
+ import * as utils from '../utils';
3
+ import appState from '../appState';
4
+
5
+ //Global footer vars
6
+ let copyRight,
7
+ footerNewYear,
8
+ footerCurrentYear;
9
+
10
+ function init() {
11
+
12
+ console.log('Footer initialized');
13
+
14
+ setYear();
15
+
16
+ }
17
+
18
+ function setYear() {
19
+ copyRight = document.getElementById('footerDate');
20
+ footerNewYear = new Date();
21
+ footerCurrentYear = footerNewYear.getFullYear();
22
+ copyRight.innerHTML = footerCurrentYear;
23
+ }
24
+
25
+ export {init};