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