@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,175 @@
|
|
|
1
|
-
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ var __webpack_modules__ = ({
|
|
3
|
+
|
|
4
|
+
/***/ "./node_modules/vanilla-lazyload/dist/lazyload.min.js":
|
|
5
|
+
/*!************************************************************!*\
|
|
6
|
+
!*** ./node_modules/vanilla-lazyload/dist/lazyload.min.js ***!
|
|
7
|
+
\************************************************************/
|
|
8
|
+
/***/ (function(module) {
|
|
9
|
+
|
|
10
|
+
!function(n,t){ true?module.exports=t():0}(this,(function(){"use strict";function n(){return n=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},n.apply(this,arguments)}var t="undefined"!=typeof window,e=t&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),o=t&&"IntersectionObserver"in window,i=t&&"classList"in document.createElement("p"),a=t&&window.devicePixelRatio>1,r={elements_selector:".lazy",container:e||t?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},c=function(t){return n({},r,t)},u=function(n,t){var e,o="LazyLoad::Initialized",i=new n(t);try{e=new CustomEvent(o,{detail:{instance:i}})}catch(n){(e=document.createEvent("CustomEvent")).initCustomEvent(o,!1,!1,{instance:i})}window.dispatchEvent(e)},l="src",s="srcset",f="sizes",d="poster",_="llOriginalAttrs",g="data",v="loading",b="loaded",p="applied",h="error",m="native",E="data-",I="ll-status",y=function(n,t){return n.getAttribute(E+t)},A=function(n){return y(n,I)},k=function(n,t){return function(n,t,e){var o="data-ll-status";null!==e?n.setAttribute(o,e):n.removeAttribute(o)}(n,0,t)},L=function(n){return k(n,null)},w=function(n){return null===A(n)},O=function(n){return A(n)===m},x=[v,b,p,h],C=function(n,t,e,o){n&&(void 0===o?void 0===e?n(t):n(t,e):n(t,e,o))},N=function(n,t){i?n.classList.add(t):n.className+=(n.className?" ":"")+t},M=function(n,t){i?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},z=function(n){return n.llTempImage},T=function(n,t){if(t){var e=t._observer;e&&e.unobserve(n)}},R=function(n,t){n&&(n.loadingCount+=t)},G=function(n,t){n&&(n.toLoadCount=t)},D=function(n){for(var t,e=[],o=0;t=n.children[o];o+=1)"SOURCE"===t.tagName&&e.push(t);return e},V=function(n,t){var e=n.parentNode;e&&"PICTURE"===e.tagName&&D(e).forEach(t)},F=function(n,t){D(n).forEach(t)},j=[l],B=[l,d],J=[l,s,f],P=[g],S=function(n){return!!n[_]},U=function(n){return n[_]},$=function(n){return delete n[_]},q=function(n,t){if(!S(n)){var e={};t.forEach((function(t){e[t]=n.getAttribute(t)})),n[_]=e}},H=function(n,t){if(S(n)){var e=U(n);t.forEach((function(t){!function(n,t,e){e?n.setAttribute(t,e):n.removeAttribute(t)}(n,t,e[t])}))}},K=function(n,t,e){N(n,t.class_loading),k(n,v),e&&(R(e,1),C(t.callback_loading,n,e))},Q=function(n,t,e){e&&n.setAttribute(t,e)},W=function(n,t){Q(n,f,y(n,t.data_sizes)),Q(n,s,y(n,t.data_srcset)),Q(n,l,y(n,t.data_src))},X={IMG:function(n,t){V(n,(function(n){q(n,J),W(n,t)})),q(n,J),W(n,t)},IFRAME:function(n,t){q(n,j),Q(n,l,y(n,t.data_src))},VIDEO:function(n,t){F(n,(function(n){q(n,j),Q(n,l,y(n,t.data_src))})),q(n,B),Q(n,d,y(n,t.data_poster)),Q(n,l,y(n,t.data_src)),n.load()},OBJECT:function(n,t){q(n,P),Q(n,g,y(n,t.data_src))}},Y=["IMG","IFRAME","VIDEO","OBJECT"],Z=function(n,t){!t||function(n){return n.loadingCount>0}(t)||function(n){return n.toLoadCount>0}(t)||C(n.callback_finish,t)},nn=function(n,t,e){n.addEventListener(t,e),n.llEvLisnrs[t]=e},tn=function(n,t,e){n.removeEventListener(t,e)},en=function(n){return!!n.llEvLisnrs},on=function(n){if(en(n)){var t=n.llEvLisnrs;for(var e in t){var o=t[e];tn(n,e,o)}delete n.llEvLisnrs}},an=function(n,t,e){!function(n){delete n.llTempImage}(n),R(e,-1),function(n){n&&(n.toLoadCount-=1)}(e),M(n,t.class_loading),t.unobserve_completed&&T(n,e)},rn=function(n,t,e){var o=z(n)||n;en(o)||function(n,t,e){en(n)||(n.llEvLisnrs={});var o="VIDEO"===n.tagName?"loadeddata":"load";nn(n,o,t),nn(n,"error",e)}(o,(function(i){!function(n,t,e,o){var i=O(t);an(t,e,o),N(t,e.class_loaded),k(t,b),C(e.callback_loaded,t,o),i||Z(e,o)}(0,n,t,e),on(o)}),(function(i){!function(n,t,e,o){var i=O(t);an(t,e,o),N(t,e.class_error),k(t,h),C(e.callback_error,t,o),e.restore_on_error&&H(t,J),i||Z(e,o)}(0,n,t,e),on(o)}))},cn=function(n,t,e){!function(n){n.llTempImage=document.createElement("IMG")}(n),rn(n,t,e),function(n){S(n)||(n[_]={backgroundImage:n.style.backgroundImage})}(n),function(n,t,e){var o=y(n,t.data_bg),i=y(n,t.data_bg_hidpi),r=a&&i?i:o;r&&(n.style.backgroundImage='url("'.concat(r,'")'),z(n).setAttribute(l,r),K(n,t,e))}(n,t,e),function(n,t,e){var o=y(n,t.data_bg_multi),i=y(n,t.data_bg_multi_hidpi),r=a&&i?i:o;r&&(n.style.backgroundImage=r,function(n,t,e){N(n,t.class_applied),k(n,p),e&&(t.unobserve_completed&&T(n,t),C(t.callback_applied,n,e))}(n,t,e))}(n,t,e)},un=function(n,t,e){!function(n){return Y.indexOf(n.tagName)>-1}(n)?cn(n,t,e):function(n,t,e){rn(n,t,e),function(n,t,e){var o=X[n.tagName];o&&(o(n,t),K(n,t,e))}(n,t,e)}(n,t,e)},ln=function(n){n.removeAttribute(l),n.removeAttribute(s),n.removeAttribute(f)},sn=function(n){V(n,(function(n){H(n,J)})),H(n,J)},fn={IMG:sn,IFRAME:function(n){H(n,j)},VIDEO:function(n){F(n,(function(n){H(n,j)})),H(n,B),n.load()},OBJECT:function(n){H(n,P)}},dn=function(n,t){(function(n){var t=fn[n.tagName];t?t(n):function(n){if(S(n)){var t=U(n);n.style.backgroundImage=t.backgroundImage}}(n)})(n),function(n,t){w(n)||O(n)||(M(n,t.class_entered),M(n,t.class_exited),M(n,t.class_applied),M(n,t.class_loading),M(n,t.class_loaded),M(n,t.class_error))}(n,t),L(n),$(n)},_n=["IMG","IFRAME","VIDEO"],gn=function(n){return n.use_native&&"loading"in HTMLImageElement.prototype},vn=function(n,t,e){n.forEach((function(n){return function(n){return n.isIntersecting||n.intersectionRatio>0}(n)?function(n,t,e,o){var i=function(n){return x.indexOf(A(n))>=0}(n);k(n,"entered"),N(n,e.class_entered),M(n,e.class_exited),function(n,t,e){t.unobserve_entered&&T(n,e)}(n,e,o),C(e.callback_enter,n,t,o),i||un(n,e,o)}(n.target,n,t,e):function(n,t,e,o){w(n)||(N(n,e.class_exited),function(n,t,e,o){e.cancel_on_exit&&function(n){return A(n)===v}(n)&&"IMG"===n.tagName&&(on(n),function(n){V(n,(function(n){ln(n)})),ln(n)}(n),sn(n),M(n,e.class_loading),R(o,-1),L(n),C(e.callback_cancel,n,t,o))}(n,t,e,o),C(e.callback_exit,n,t,o))}(n.target,n,t,e)}))},bn=function(n){return Array.prototype.slice.call(n)},pn=function(n){return n.container.querySelectorAll(n.elements_selector)},hn=function(n){return function(n){return A(n)===h}(n)},mn=function(n,t){return function(n){return bn(n).filter(w)}(n||pn(t))},En=function(n,e){var i=c(n);this._settings=i,this.loadingCount=0,function(n,t){o&&!gn(n)&&(t._observer=new IntersectionObserver((function(e){vn(e,n,t)}),function(n){return{root:n.container===document?null:n.container,rootMargin:n.thresholds||n.threshold+"px"}}(n)))}(i,this),function(n,e){t&&window.addEventListener("online",(function(){!function(n,t){var e;(e=pn(n),bn(e).filter(hn)).forEach((function(t){M(t,n.class_error),L(t)})),t.update()}(n,e)}))}(i,this),this.update(e)};return En.prototype={update:function(n){var t,i,a=this._settings,r=mn(n,a);G(this,r.length),!e&&o?gn(a)?function(n,t,e){n.forEach((function(n){-1!==_n.indexOf(n.tagName)&&function(n,t,e){n.setAttribute("loading","lazy"),rn(n,t,e),function(n,t){var e=X[n.tagName];e&&e(n,t)}(n,t),k(n,m)}(n,t,e)})),G(e,0)}(r,a,this):(i=r,function(n){n.disconnect()}(t=this._observer),function(n,t){t.forEach((function(t){n.observe(t)}))}(t,i)):this.loadAll(r)},destroy:function(){this._observer&&this._observer.disconnect(),pn(this._settings).forEach((function(n){$(n)})),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(n){var t=this,e=this._settings;mn(n,e).forEach((function(n){T(n,t),un(n,e,t)}))},restoreAll:function(){var n=this._settings;pn(n).forEach((function(t){dn(t,n)}))}},En.load=function(n,t){var e=c(t);un(n,e)},En.resetStatus=function(n){L(n)},t&&function(n,t){if(t)if(t.length)for(var e,o=0;e=t[o];o+=1)u(n,e);else u(n,t)}(En,window.lazyLoadOptions),En}));
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/***/ })
|
|
14
|
+
|
|
15
|
+
/******/ });
|
|
16
|
+
/************************************************************************/
|
|
17
|
+
/******/ // The module cache
|
|
18
|
+
/******/ var __webpack_module_cache__ = {};
|
|
19
|
+
/******/
|
|
20
|
+
/******/ // The require function
|
|
21
|
+
/******/ function __webpack_require__(moduleId) {
|
|
22
|
+
/******/ // Check if module is in cache
|
|
23
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
24
|
+
/******/ if (cachedModule !== undefined) {
|
|
25
|
+
/******/ return cachedModule.exports;
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ // Create a new module (and put it into the cache)
|
|
28
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
29
|
+
/******/ // no module.id needed
|
|
30
|
+
/******/ // no module.loaded needed
|
|
31
|
+
/******/ exports: {}
|
|
32
|
+
/******/ };
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // Execute the module function
|
|
35
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
36
|
+
/******/
|
|
37
|
+
/******/ // Return the exports of the module
|
|
38
|
+
/******/ return module.exports;
|
|
39
|
+
/******/ }
|
|
40
|
+
/******/
|
|
41
|
+
/************************************************************************/
|
|
42
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
43
|
+
/******/ (() => {
|
|
44
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
45
|
+
/******/ __webpack_require__.n = (module) => {
|
|
46
|
+
/******/ var getter = module && module.__esModule ?
|
|
47
|
+
/******/ () => (module['default']) :
|
|
48
|
+
/******/ () => (module);
|
|
49
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
50
|
+
/******/ return getter;
|
|
51
|
+
/******/ };
|
|
52
|
+
/******/ })();
|
|
53
|
+
/******/
|
|
54
|
+
/******/ /* webpack/runtime/define property getters */
|
|
55
|
+
/******/ (() => {
|
|
56
|
+
/******/ // define getter functions for harmony exports
|
|
57
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
58
|
+
/******/ for(var key in definition) {
|
|
59
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
60
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
61
|
+
/******/ }
|
|
62
|
+
/******/ }
|
|
63
|
+
/******/ };
|
|
64
|
+
/******/ })();
|
|
65
|
+
/******/
|
|
66
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
67
|
+
/******/ (() => {
|
|
68
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
69
|
+
/******/ })();
|
|
70
|
+
/******/
|
|
71
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
72
|
+
/******/ (() => {
|
|
73
|
+
/******/ // define __esModule on exports
|
|
74
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
75
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
76
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
77
|
+
/******/ }
|
|
78
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
79
|
+
/******/ };
|
|
80
|
+
/******/ })();
|
|
81
|
+
/******/
|
|
82
|
+
/************************************************************************/
|
|
83
|
+
var __webpack_exports__ = {};
|
|
84
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
85
|
+
(() => {
|
|
86
|
+
"use strict";
|
|
87
|
+
/*!****************************************************************************!*\
|
|
88
|
+
!*** ./resources/assets/scripts/components/lazyload/lazyload.component.js ***!
|
|
89
|
+
\****************************************************************************/
|
|
90
|
+
__webpack_require__.r(__webpack_exports__);
|
|
91
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92
|
+
/* harmony export */ "HcLazyload": () => (/* binding */ HcLazyload),
|
|
93
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
94
|
+
/* harmony export */ });
|
|
95
|
+
/* harmony import */ var vanilla_lazyload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vanilla-lazyload */ "./node_modules/vanilla-lazyload/dist/lazyload.min.js");
|
|
96
|
+
/* harmony import */ var vanilla_lazyload__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vanilla_lazyload__WEBPACK_IMPORTED_MODULE_0__);
|
|
97
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
98
|
+
|
|
99
|
+
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); } }
|
|
100
|
+
|
|
101
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
102
|
+
|
|
103
|
+
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; }
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
* IRIS Interactive
|
|
107
|
+
*
|
|
108
|
+
* NOTICE OF LICENSE
|
|
109
|
+
*
|
|
110
|
+
* This source file is no subject to a specific license
|
|
111
|
+
* but it belongs to the company IRIS Interactive.
|
|
112
|
+
* You can contact IRIS Interactive at the following
|
|
113
|
+
* address: contact@iris-interactive.fr
|
|
114
|
+
*
|
|
115
|
+
* @author Lucas ROCHE
|
|
116
|
+
* @date 22/02/2022 14:16
|
|
117
|
+
* @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
var HcLazyload = /*#__PURE__*/function () {
|
|
121
|
+
function HcLazyload() {
|
|
122
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
123
|
+
|
|
124
|
+
_classCallCheck(this, HcLazyload);
|
|
125
|
+
|
|
126
|
+
options = Object.assign({
|
|
127
|
+
elements_selector: '[data-hc-src], [data-hc-bg], [data-hc-bg-hidpi], [data-hc-srcset]',
|
|
128
|
+
data_src: 'hc-src',
|
|
129
|
+
data_bg: 'hc-bg',
|
|
130
|
+
data_bg_hidpi: 'hc-bg-hidpi',
|
|
131
|
+
data_srcset: 'hc-srcset'
|
|
132
|
+
}, options);
|
|
133
|
+
return new (vanilla_lazyload__WEBPACK_IMPORTED_MODULE_0___default())(options);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
_createClass(HcLazyload, null, [{
|
|
137
|
+
key: "getInstance",
|
|
138
|
+
value: function getInstance() {
|
|
139
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
140
|
+
|
|
141
|
+
if (HcLazyload.instance === null) {
|
|
142
|
+
HcLazyload.instance = new HcLazyload(options);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return HcLazyload.instance;
|
|
146
|
+
}
|
|
147
|
+
}, {
|
|
148
|
+
key: "update",
|
|
149
|
+
value: function update() {
|
|
150
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
151
|
+
HcLazyload.getInstance(options).update();
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "loadAll",
|
|
155
|
+
value: function loadAll() {
|
|
156
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
157
|
+
HcLazyload.getInstance(options).loadAll();
|
|
158
|
+
}
|
|
159
|
+
}]);
|
|
160
|
+
|
|
161
|
+
return HcLazyload;
|
|
162
|
+
}();
|
|
163
|
+
|
|
164
|
+
_defineProperty(HcLazyload, "instance", null);
|
|
165
|
+
|
|
166
|
+
var hc_lazyload = function hc_lazyload() {
|
|
167
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
168
|
+
return HcLazyload.getInstance(options);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hc_lazyload);
|
|
172
|
+
})();
|
|
173
|
+
|
|
174
|
+
/******/ })()
|
|
175
|
+
;
|