@iris.interactive/handcook 2.9.34 → 2.9.36
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 +1 -1
- package/public/scripts/components/collapse/collapse.component.min.js +1 -2095
- package/public/scripts/components/dropdown/dropdown.component.min.js +1 -6309
- package/public/scripts/components/lazyload/lazyload.component.min.js +1 -175
- package/public/scripts/components/lightbox/lightbox.component.min.js +1 -649
- package/public/scripts/components/modal/modal.component.min.js +1 -743
- package/public/scripts/components/scroll-reveal/scroll-reveal.component.js +3 -1
- package/public/scripts/components/scrollspy/scrollspy.component.min.js +1 -327
- package/public/scripts/components/slider/slider.component.min.js +1 -13597
- package/public/scripts/components/smooth-scroll/smooth-scroll.component.min.js +1 -273
- package/public/scripts/components/tab/tab.component.min.js +1 -1884
- package/public/scripts/components/toggle/toggle.component.min.js +1 -202
- package/public/scripts/components/tooltip/tooltip.component.min.js +1 -6335
- package/public/scripts/handcook.js +1 -45
- package/public/styles/scss/style.css +2 -161
- package/public/styles/style.css +1 -209
|
@@ -1,273 +1 @@
|
|
|
1
|
-
|
|
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
|
-
/***/ "./resources/assets/scripts/enumerators/smooth-scroll.enum.js":
|
|
80
|
-
/*!********************************************************************!*\
|
|
81
|
-
!*** ./resources/assets/scripts/enumerators/smooth-scroll.enum.js ***!
|
|
82
|
-
\********************************************************************/
|
|
83
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
84
|
-
|
|
85
|
-
__webpack_require__.r(__webpack_exports__);
|
|
86
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
87
|
-
/* harmony export */ "default": () => (/* binding */ SmoothScrollEnum)
|
|
88
|
-
/* harmony export */ });
|
|
89
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
90
|
-
|
|
91
|
-
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; }
|
|
92
|
-
|
|
93
|
-
/*
|
|
94
|
-
* IRIS Interactive
|
|
95
|
-
*
|
|
96
|
-
* NOTICE OF LICENSE
|
|
97
|
-
*
|
|
98
|
-
* This source file is no subject to a specific license
|
|
99
|
-
* but it belongs to the company IRIS Interactive.
|
|
100
|
-
* You can contact IRIS Interactive at the following
|
|
101
|
-
* address: contact@iris-interactive.fr
|
|
102
|
-
*
|
|
103
|
-
* @author Lucas ROCHE
|
|
104
|
-
* @date 14/04/2022 11:28
|
|
105
|
-
* @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
|
|
106
|
-
*/
|
|
107
|
-
var SmoothScrollEnum = function SmoothScrollEnum() {
|
|
108
|
-
_classCallCheck(this, SmoothScrollEnum);
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
_defineProperty(SmoothScrollEnum, "attrHref", "data-hc-smooth-scroll-href");
|
|
112
|
-
|
|
113
|
-
_defineProperty(SmoothScrollEnum, "attrShift", "data-hc-smooth-scroll-shift");
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
/***/ })
|
|
118
|
-
|
|
119
|
-
/******/ });
|
|
120
|
-
/************************************************************************/
|
|
121
|
-
/******/ // The module cache
|
|
122
|
-
/******/ var __webpack_module_cache__ = {};
|
|
123
|
-
/******/
|
|
124
|
-
/******/ // The require function
|
|
125
|
-
/******/ function __webpack_require__(moduleId) {
|
|
126
|
-
/******/ // Check if module is in cache
|
|
127
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
128
|
-
/******/ if (cachedModule !== undefined) {
|
|
129
|
-
/******/ return cachedModule.exports;
|
|
130
|
-
/******/ }
|
|
131
|
-
/******/ // Create a new module (and put it into the cache)
|
|
132
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
133
|
-
/******/ // no module.id needed
|
|
134
|
-
/******/ // no module.loaded needed
|
|
135
|
-
/******/ exports: {}
|
|
136
|
-
/******/ };
|
|
137
|
-
/******/
|
|
138
|
-
/******/ // Execute the module function
|
|
139
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
140
|
-
/******/
|
|
141
|
-
/******/ // Return the exports of the module
|
|
142
|
-
/******/ return module.exports;
|
|
143
|
-
/******/ }
|
|
144
|
-
/******/
|
|
145
|
-
/************************************************************************/
|
|
146
|
-
/******/ /* webpack/runtime/define property getters */
|
|
147
|
-
/******/ (() => {
|
|
148
|
-
/******/ // define getter functions for harmony exports
|
|
149
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
150
|
-
/******/ for(var key in definition) {
|
|
151
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
152
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
153
|
-
/******/ }
|
|
154
|
-
/******/ }
|
|
155
|
-
/******/ };
|
|
156
|
-
/******/ })();
|
|
157
|
-
/******/
|
|
158
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
159
|
-
/******/ (() => {
|
|
160
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
161
|
-
/******/ })();
|
|
162
|
-
/******/
|
|
163
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
164
|
-
/******/ (() => {
|
|
165
|
-
/******/ // define __esModule on exports
|
|
166
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
167
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
168
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
169
|
-
/******/ }
|
|
170
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
171
|
-
/******/ };
|
|
172
|
-
/******/ })();
|
|
173
|
-
/******/
|
|
174
|
-
/************************************************************************/
|
|
175
|
-
var __webpack_exports__ = {};
|
|
176
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
177
|
-
(() => {
|
|
178
|
-
/*!**************************************************************************************!*\
|
|
179
|
-
!*** ./resources/assets/scripts/components/smooth-scroll/smooth-scroll.component.js ***!
|
|
180
|
-
\**************************************************************************************/
|
|
181
|
-
__webpack_require__.r(__webpack_exports__);
|
|
182
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
183
|
-
/* harmony export */ "HcSmoothScroll": () => (/* binding */ HcSmoothScroll),
|
|
184
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
185
|
-
/* harmony export */ });
|
|
186
|
-
/* harmony import */ var _enumerators_element_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enumerators/element.enum */ "./resources/assets/scripts/enumerators/element.enum.js");
|
|
187
|
-
/* harmony import */ var _enumerators_smooth_scroll_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enumerators/smooth-scroll.enum */ "./resources/assets/scripts/enumerators/smooth-scroll.enum.js");
|
|
188
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
189
|
-
|
|
190
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
191
|
-
|
|
192
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
193
|
-
|
|
194
|
-
/*
|
|
195
|
-
* IRIS Interactive
|
|
196
|
-
*
|
|
197
|
-
* NOTICE OF LICENSE
|
|
198
|
-
*
|
|
199
|
-
* This source file is no subject to a specific license
|
|
200
|
-
* but it belongs to the company IRIS Interactive.
|
|
201
|
-
* You can contact IRIS Interactive at the following
|
|
202
|
-
* address: contact@iris-interactive.fr
|
|
203
|
-
*
|
|
204
|
-
* @author Lucas ROCHE
|
|
205
|
-
* @date 28/01/2022 14:27
|
|
206
|
-
* @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
|
|
207
|
-
*/
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
var HcSmoothScroll = /*#__PURE__*/function () {
|
|
211
|
-
function HcSmoothScroll() {
|
|
212
|
-
var _this = this;
|
|
213
|
-
|
|
214
|
-
var triggerAttribute = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _enumerators_element_enum__WEBPACK_IMPORTED_MODULE_0__["default"].scrollSmooth;
|
|
215
|
-
var durationAnimation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
|
|
216
|
-
|
|
217
|
-
_classCallCheck(this, HcSmoothScroll);
|
|
218
|
-
|
|
219
|
-
document.querySelectorAll(triggerAttribute).forEach(function (trigger) {
|
|
220
|
-
trigger.addEventListener('click', function (e) {
|
|
221
|
-
e.preventDefault();
|
|
222
|
-
var target = e.currentTarget.getAttribute('href') != null ? document.querySelector(e.currentTarget.getAttribute('href')) : document.querySelector(e.currentTarget.dataset.hcSmoothScrollHref);
|
|
223
|
-
var shift = e.currentTarget.getAttribute(_enumerators_smooth_scroll_enum__WEBPACK_IMPORTED_MODULE_1__["default"].attrShift) !== null ? e.currentTarget.getAttribute(_enumerators_smooth_scroll_enum__WEBPACK_IMPORTED_MODULE_1__["default"].attrShift) : 0;
|
|
224
|
-
var anim = requestAnimationFrame(function (timestamp) {
|
|
225
|
-
var stamp = timestamp || new Date().getTime();
|
|
226
|
-
var start = stamp;
|
|
227
|
-
var startScrollOffset = window.pageYOffset;
|
|
228
|
-
var scrollEndElemTop = target.getBoundingClientRect().top - shift;
|
|
229
|
-
|
|
230
|
-
_this.scrollToElem(start, stamp, durationAnimation, scrollEndElemTop, startScrollOffset);
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
_createClass(HcSmoothScroll, [{
|
|
237
|
-
key: "easeInCubic",
|
|
238
|
-
value: function easeInCubic(t) {
|
|
239
|
-
return t * t * t;
|
|
240
|
-
}
|
|
241
|
-
}, {
|
|
242
|
-
key: "scrollToElem",
|
|
243
|
-
value: function scrollToElem(startTime, currentTime, duration, scrollEndElemTop, startScrollOffset) {
|
|
244
|
-
var _this2 = this;
|
|
245
|
-
|
|
246
|
-
var runtime = currentTime - startTime;
|
|
247
|
-
var progress = runtime / duration;
|
|
248
|
-
progress = Math.min(progress, 1);
|
|
249
|
-
var ease = this.easeInCubic(progress);
|
|
250
|
-
window.scroll(0, startScrollOffset + scrollEndElemTop * ease);
|
|
251
|
-
|
|
252
|
-
if (runtime < duration) {
|
|
253
|
-
requestAnimationFrame(function (timestamp) {
|
|
254
|
-
var currentTime = timestamp || new Date().getTime();
|
|
255
|
-
|
|
256
|
-
_this2.scrollToElem(startTime, currentTime, duration, scrollEndElemTop, startScrollOffset);
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}]);
|
|
261
|
-
|
|
262
|
-
return HcSmoothScroll;
|
|
263
|
-
}();
|
|
264
|
-
|
|
265
|
-
var hc_smooth_scroll = function hc_smooth_scroll(trigger, durationAnimation) {
|
|
266
|
-
new HcSmoothScroll(trigger, durationAnimation);
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hc_smooth_scroll);
|
|
270
|
-
})();
|
|
271
|
-
|
|
272
|
-
/******/ })()
|
|
273
|
-
;
|
|
1
|
+
(()=>{"use strict";var a={812:(a,t,o)=>{function e(a,t,o){return t in a?Object.defineProperty(a,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[t]=o,a}var r=function a(){!function(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)};e(r,"tooltip","[data-hc-tooltip], [data-hc-popover]"),e(r,"popover","[data-hc-popover]"),e(r,"scrollSmooth","[data-hc-smooth-scroll]"),e(r,"modal","[data-hc-modal]"),e(r,"modalClose","[data-hc-modal-close]"),e(r,"lightboxAttr","data-hc-lightbox"),e(r,"lightbox","[".concat(r.lightboxAttr,"]")),e(r,"dropdown","[data-hc-dropdown]"),e(r,"collapse","[data-hc-collapse]"),e(r,"collapseItem","[data-hc-collapse-item]"),e(r,"popin","[data-hc-popin]"),e(r,"tab","[data-hc-tab]"),e(r,"toggle","[data-hc-toggle]"),e(r,"slider","[data-hc-slider]"),e(r,"scrollspy","[data-hc-scrollspy]"),e(r,"scrollspyNav","[data-hc-scrollspy-nav]"),e(r,"scrollspyNavItem","[data-hc-scrollspy-nav-item]"),e(r,"scrollRevealParent","[data-hc-scroll-reveal-parent]"),e(r,"scrollReveal","[data-hc-scroll-reveal]")},539:(a,t,o)=>{function e(a,t,o){return t in a?Object.defineProperty(a,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[t]=o,a}var r=function a(){!function(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)};e(r,"attrHref","data-hc-smooth-scroll-href"),e(r,"attrShift","data-hc-smooth-scroll-shift")}},t={};function o(e){var r=t[e];if(void 0!==r)return r.exports;var l=t[e]={exports:{}};return a[e](l,l.exports,o),l.exports}o.d=(a,t)=>{for(var e in t)o.o(t,e)&&!o.o(a,e)&&Object.defineProperty(a,e,{enumerable:!0,get:t[e]})},o.o=(a,t)=>Object.prototype.hasOwnProperty.call(a,t),o(812),o(539)})();
|