@iris.interactive/handcook 2.9.31 → 2.9.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/public/index.html +11 -11
- package/public/scripts/components/collapse/collapse.component.min.js +2095 -1
- package/public/scripts/components/dropdown/dropdown.component.min.js +6309 -1
- package/public/scripts/components/lazyload/lazyload.component.min.js +175 -1
- package/public/scripts/components/lightbox/lightbox.component.min.js +649 -1
- package/public/scripts/components/modal/modal.component.min.js +743 -1
- package/public/scripts/components/scroll-reveal/scroll-reveal.component.js +66 -18
- package/public/scripts/components/scroll-reveal/scroll-reveal.component.scss +3 -172
- package/public/scripts/components/scrollspy/scrollspy.component.min.js +327 -1
- package/public/scripts/components/slider/slider.component.min.js +13597 -1
- package/public/scripts/components/smooth-scroll/smooth-scroll.component.min.js +273 -1
- package/public/scripts/components/tab/tab.component.min.js +1884 -1
- package/public/scripts/components/toggle/toggle.component.min.js +202 -1
- package/public/scripts/components/tooltip/tooltip.component.min.js +6335 -1
- package/public/scripts/enumerators/element.enum.js +2 -1
- package/public/scripts/handcook.js +45 -1
- package/public/styles/scss/style.css +161 -2
- package/public/styles/style.css +209 -1
|
@@ -1 +1,202 @@
|
|
|
1
|
-
(()
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ "./resources/assets/scripts/enumerators/element.enum.js":
|
|
6
|
+
/*!**************************************************************!*\
|
|
7
|
+
!*** ./resources/assets/scripts/enumerators/element.enum.js ***!
|
|
8
|
+
\**************************************************************/
|
|
9
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10
|
+
|
|
11
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13
|
+
/* harmony export */ "default": () => (/* binding */ ElementEnum)
|
|
14
|
+
/* harmony export */ });
|
|
15
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
+
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* IRIS Interactive
|
|
21
|
+
*
|
|
22
|
+
* NOTICE OF LICENSE
|
|
23
|
+
*
|
|
24
|
+
* This source file is no subject to a specific license
|
|
25
|
+
* but it belongs to the company IRIS Interactive.
|
|
26
|
+
* You can contact IRIS Interactive at the following
|
|
27
|
+
* address: contact@iris-interactive.fr
|
|
28
|
+
*
|
|
29
|
+
* @author Lucas ROCHE
|
|
30
|
+
* @date 01/02/2022 10:36
|
|
31
|
+
* @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
|
|
32
|
+
*/
|
|
33
|
+
var ElementEnum = function ElementEnum() {
|
|
34
|
+
_classCallCheck(this, ElementEnum);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
_defineProperty(ElementEnum, "tooltip", '[data-hc-tooltip], [data-hc-popover]');
|
|
38
|
+
|
|
39
|
+
_defineProperty(ElementEnum, "popover", '[data-hc-popover]');
|
|
40
|
+
|
|
41
|
+
_defineProperty(ElementEnum, "scrollSmooth", '[data-hc-smooth-scroll]');
|
|
42
|
+
|
|
43
|
+
_defineProperty(ElementEnum, "modal", '[data-hc-modal]');
|
|
44
|
+
|
|
45
|
+
_defineProperty(ElementEnum, "modalClose", '[data-hc-modal-close]');
|
|
46
|
+
|
|
47
|
+
_defineProperty(ElementEnum, "lightboxAttr", 'data-hc-lightbox');
|
|
48
|
+
|
|
49
|
+
_defineProperty(ElementEnum, "lightbox", "[".concat(ElementEnum.lightboxAttr, "]"));
|
|
50
|
+
|
|
51
|
+
_defineProperty(ElementEnum, "dropdown", '[data-hc-dropdown]');
|
|
52
|
+
|
|
53
|
+
_defineProperty(ElementEnum, "collapse", '[data-hc-collapse]');
|
|
54
|
+
|
|
55
|
+
_defineProperty(ElementEnum, "collapseItem", '[data-hc-collapse-item]');
|
|
56
|
+
|
|
57
|
+
_defineProperty(ElementEnum, "popin", '[data-hc-popin]');
|
|
58
|
+
|
|
59
|
+
_defineProperty(ElementEnum, "tab", '[data-hc-tab]');
|
|
60
|
+
|
|
61
|
+
_defineProperty(ElementEnum, "toggle", '[data-hc-toggle]');
|
|
62
|
+
|
|
63
|
+
_defineProperty(ElementEnum, "slider", '[data-hc-slider]');
|
|
64
|
+
|
|
65
|
+
_defineProperty(ElementEnum, "scrollspy", '[data-hc-scrollspy]');
|
|
66
|
+
|
|
67
|
+
_defineProperty(ElementEnum, "scrollspyNav", '[data-hc-scrollspy-nav]');
|
|
68
|
+
|
|
69
|
+
_defineProperty(ElementEnum, "scrollspyNavItem", '[data-hc-scrollspy-nav-item]');
|
|
70
|
+
|
|
71
|
+
_defineProperty(ElementEnum, "scrollRevealParent", '[data-hc-scroll-reveal-parent]');
|
|
72
|
+
|
|
73
|
+
_defineProperty(ElementEnum, "scrollReveal", '[data-hc-scroll-reveal]');
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/***/ })
|
|
78
|
+
|
|
79
|
+
/******/ });
|
|
80
|
+
/************************************************************************/
|
|
81
|
+
/******/ // The module cache
|
|
82
|
+
/******/ var __webpack_module_cache__ = {};
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // The require function
|
|
85
|
+
/******/ function __webpack_require__(moduleId) {
|
|
86
|
+
/******/ // Check if module is in cache
|
|
87
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
88
|
+
/******/ if (cachedModule !== undefined) {
|
|
89
|
+
/******/ return cachedModule.exports;
|
|
90
|
+
/******/ }
|
|
91
|
+
/******/ // Create a new module (and put it into the cache)
|
|
92
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
93
|
+
/******/ // no module.id needed
|
|
94
|
+
/******/ // no module.loaded needed
|
|
95
|
+
/******/ exports: {}
|
|
96
|
+
/******/ };
|
|
97
|
+
/******/
|
|
98
|
+
/******/ // Execute the module function
|
|
99
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
100
|
+
/******/
|
|
101
|
+
/******/ // Return the exports of the module
|
|
102
|
+
/******/ return module.exports;
|
|
103
|
+
/******/ }
|
|
104
|
+
/******/
|
|
105
|
+
/************************************************************************/
|
|
106
|
+
/******/ /* webpack/runtime/define property getters */
|
|
107
|
+
/******/ (() => {
|
|
108
|
+
/******/ // define getter functions for harmony exports
|
|
109
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
110
|
+
/******/ for(var key in definition) {
|
|
111
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
112
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
113
|
+
/******/ }
|
|
114
|
+
/******/ }
|
|
115
|
+
/******/ };
|
|
116
|
+
/******/ })();
|
|
117
|
+
/******/
|
|
118
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
119
|
+
/******/ (() => {
|
|
120
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
121
|
+
/******/ })();
|
|
122
|
+
/******/
|
|
123
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
124
|
+
/******/ (() => {
|
|
125
|
+
/******/ // define __esModule on exports
|
|
126
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
127
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
128
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
129
|
+
/******/ }
|
|
130
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
131
|
+
/******/ };
|
|
132
|
+
/******/ })();
|
|
133
|
+
/******/
|
|
134
|
+
/************************************************************************/
|
|
135
|
+
var __webpack_exports__ = {};
|
|
136
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
137
|
+
(() => {
|
|
138
|
+
/*!************************************************************************!*\
|
|
139
|
+
!*** ./resources/assets/scripts/components/toggle/toggle.component.js ***!
|
|
140
|
+
\************************************************************************/
|
|
141
|
+
__webpack_require__.r(__webpack_exports__);
|
|
142
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
143
|
+
/* harmony export */ "HcToggle": () => (/* binding */ HcToggle),
|
|
144
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
145
|
+
/* harmony export */ });
|
|
146
|
+
/* harmony import */ var _enumerators_element_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enumerators/element.enum */ "./resources/assets/scripts/enumerators/element.enum.js");
|
|
147
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
* IRIS Interactive
|
|
151
|
+
*
|
|
152
|
+
* NOTICE OF LICENSE
|
|
153
|
+
*
|
|
154
|
+
* This source file is no subject to a specific license
|
|
155
|
+
* but it belongs to the company IRIS Interactive.
|
|
156
|
+
* You can contact IRIS Interactive at the following
|
|
157
|
+
* address: contact@iris-interactive.fr
|
|
158
|
+
*
|
|
159
|
+
* @author Lucas ROCHE
|
|
160
|
+
* @date 22/02/2022 16:50
|
|
161
|
+
* @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
var HcToggle = function HcToggle() {
|
|
165
|
+
var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _enumerators_element_enum__WEBPACK_IMPORTED_MODULE_0__["default"].toggle;
|
|
166
|
+
|
|
167
|
+
_classCallCheck(this, HcToggle);
|
|
168
|
+
|
|
169
|
+
document.querySelectorAll(elements).forEach(function (element) {
|
|
170
|
+
element.addEventListener('click', function (e) {
|
|
171
|
+
e.preventDefault();
|
|
172
|
+
var attribute = e.currentTarget.dataset.hcToggleAttribute;
|
|
173
|
+
var value = e.currentTarget.dataset.hcToggleValue;
|
|
174
|
+
var targets = e.currentTarget.getAttribute("href") ? e.currentTarget.getAttribute("href") : e.currentTarget.dataset.hcToggleTarget;
|
|
175
|
+
document.querySelectorAll(targets).forEach(function (target) {
|
|
176
|
+
if (target.getAttribute(attribute) !== null && target.getAttribute(attribute).indexOf(value) !== -1) {
|
|
177
|
+
if (attribute === "class") {
|
|
178
|
+
target.classList.remove(value);
|
|
179
|
+
} else {
|
|
180
|
+
target.removeAttribute(attribute);
|
|
181
|
+
}
|
|
182
|
+
} else {
|
|
183
|
+
if (attribute === "class") {
|
|
184
|
+
target.classList.add(value);
|
|
185
|
+
} else {
|
|
186
|
+
target.setAttribute(attribute, value);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
var hc_toggle = function hc_toggle(trigger) {
|
|
195
|
+
return new HcToggle(trigger);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hc_toggle);
|
|
199
|
+
})();
|
|
200
|
+
|
|
201
|
+
/******/ })()
|
|
202
|
+
;
|