diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f2446c..7c84483 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,15 @@ @rat.md/bs-lightbox =================== +Version 1.1.1 - Stable +---------------------- +- Update: Dependencies (+ move from `rollup-plugin-terser` to `@rollup/plugin-terser`). +- Bugfix: Remove `locale` from `tsconfig.json` file. + Version 1.1.0 - Stable ---------------------- - Add: New `lightbox.loader` option to pre-load images within the carousel. -- Add: New `lightbox.replaceOnPicture` option to force using the linked source instead of the picture one. +- Add: New `lightbox.replacePictures` option to force using the linked source instead of the picture one. - Add: Bootstrap v4 / Bootstrap v5 compatible spinner. - Bugfix: Don't clear events on `.dispose()`. diff --git a/README.md b/README.md index 71e14eb..d336774 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Lightbox.invoke( ``` -Copyright &License +Copyright & License ------- Written and Copyright by [rat.md](https://www.rat.md). diff --git a/dist/esm/rat.lightbox.js b/dist/esm/rat.lightbox.js index 9bd91d1..e07fcec 100644 --- a/dist/esm/rat.lightbox.js +++ b/dist/esm/rat.lightbox.js @@ -6,29 +6,11 @@ | | @website https://github.com/RatMD/bs-lightbox | @license MIT License -| @copyright Copyright © 2021 - 2022 rat.md +| @copyright Copyright © 2021 - 2023 rat.md */ "use strict"; class Lightbox { - constructor(element, config = {}) { - this.items = new Map; - this.events = new Map; - let key = element.dataset.bsGallery || element.dataset.gallery || element; - if (Lightbox.instances.has(key)) { - throw new Error('An instance with the passed element or gallery has already been created.'); - } - Lightbox.instances.set(key, this); - this.legacy = Lightbox.CAROUSEL.VERSION[0] === '4'; - let defaults = Lightbox.DEFAULTS; - this.config = { - carousel: Object.assign({}, defaults.carousel, config.carousel || {}), - lightbox: Object.assign({}, defaults.lightbox, config.lightbox || {}), - modal: Object.assign({}, defaults.modal, config.modal || {}) - }; - this.append(element); - this.onKeyUpListener = this._onKeyUp.bind(this); - } static get NAME() { return 'lightbox'; } @@ -130,6 +112,24 @@ class Lightbox { } return instance; } + constructor(element, config = {}) { + this.items = new Map; + this.events = new Map; + let key = element.dataset.bsGallery || element.dataset.gallery || element; + if (Lightbox.instances.has(key)) { + throw new Error('An instance with the passed element or gallery has already been created.'); + } + Lightbox.instances.set(key, this); + this.legacy = Lightbox.CAROUSEL.VERSION[0] === '4'; + let defaults = Lightbox.DEFAULTS; + this.config = { + carousel: Object.assign({}, defaults.carousel, config.carousel || {}), + lightbox: Object.assign({}, defaults.lightbox, config.lightbox || {}), + modal: Object.assign({}, defaults.modal, config.modal || {}) + }; + this.append(element); + this.onKeyUpListener = this._onKeyUp.bind(this); + } _onKeyUp(event) { if (event.key === 'ArrowRight') { this.next(); diff --git a/dist/esm/rat.lightbox.js.map b/dist/esm/rat.lightbox.js.map index 6fd2918..8780bd0 100644 --- a/dist/esm/rat.lightbox.js.map +++ b/dist/esm/rat.lightbox.js.map @@ -1 +1 @@ -{"version":3,"file":"rat.lightbox.js","sources":["../../src/ts/Lightbox.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAM,QAAQ,CAAA;IAwOV,WAAmB,CAAA,OAAoB,EAAE,MAAA,GAAkC,EAAE,EAAA;QAhCtE,IAAK,CAAA,KAAA,GAAmC,IAAI,GAAG,CAAC;QAKhD,IAAM,CAAA,MAAA,GAAgD,IAAI,GAAG,CAAC;AA4BjE,QAAA,IAAI,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC;QAC1E,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;AAC7B,YAAA,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;AAC/F,SAAA;QACD,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAGlC,QAAA,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAA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;AAKjB,QAAM,CAAA,MAAA,GAAG,IAAH,CAAQ;AAgHf,QAAA,CAAA,SAAS,GAAsC,IAAI,GAA1C;;;;"} \ No newline at end of file diff --git a/dist/esm/rat.lightbox.min.js b/dist/esm/rat.lightbox.min.js index 9f59ff0..1566a1e 100644 --- a/dist/esm/rat.lightbox.min.js +++ b/dist/esm/rat.lightbox.min.js @@ -1,2 +1,2 @@ /*! @rat.md/bs-lightbox | @version 1.1.0 | @license MIT | @copyright rat.md */ -class t{constructor(e,s={}){this.items=new Map,this.events=new Map;let i=e.dataset.bsGallery||e.dataset.gallery||e;if(t.instances.has(i))throw new Error("An instance with the passed element or gallery has already been created.");t.instances.set(i,this),this.legacy="4"===t.CAROUSEL.VERSION[0];let a=t.DEFAULTS;this.config={carousel:Object.assign({},a.carousel,s.carousel||{}),lightbox:Object.assign({},a.lightbox,s.lightbox||{}),modal:Object.assign({},a.modal,s.modal||{})},this.append(e),this.onKeyUpListener=this._onKeyUp.bind(this)}static get NAME(){return"lightbox"}static get VERSION(){return"1.1.0"}static get DEFAULTS(){return{carousel:{id:null,controls:!0,indicators:!1,interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lightbox:{loader:!1,replacePictures:!1},modal:{id:null,backdrop:!0,focus:!0,keyboard:!0,size:"xl"}}}static get $(){let e=t._jquery||window.$||window.jQuery;if(!e)throw new Error("No jQuery object found, please use Lightbox.$ = .");return e}static set $(e){t._jquery=e}static get CAROUSEL(){let e=t._carousel||(window.bootstrap||window.Bootstrap||{}).Carousel;if(!e)throw new Error("No Bootstrap Carousel prototype found, please use Lightbox.CAROUSEL = .");return e}static set CAROUSEL(e){t._carousel=e}static get MODAL(){let e=t._modal||(window.bootstrap||window.Bootstrap||{}).Modal;if(!e)throw new Error("No Bootstrap Modal prototype found, please use Lightbox.MODAL = .");return e}static set MODAL(e){t._modal=e}static get SELECTOR(){return'[data-toggle="lightbox"],[data-bs-toggle="lightbox"],[data-rat-lightbox]'}static invoke(t=null,e={}){return t="string"!=typeof t?this.SELECTOR:t,Array.from(document.querySelectorAll(t),(t=>this.getOrCreateInstance(t,e)))}static hasInstance(t){if("string"==typeof t)return this.instances.has(t);{let e=t.hasAttribute("data-bs-gallery")?t.dataset.bsGallery:t;return this.instances.has(e)}}static getInstance(t){if("string"==typeof t)return this.instances.has(t)?this.instances.get(t):null;{let e=t.dataset.bsGallery||t.dataset.gallery||t;return this.instances.has(e)?this.instances.get(e):null}}static getOrCreateInstance(t,e={}){let s=this.getInstance(t);return null===s?s=new this(t,e):s.append(t),s}_onKeyUp(t){"ArrowRight"===t.key?this.next():"ArrowLeft"===t.key&&this.prev()}_createLightbox(){let t="";this.config.carousel.controls&&this.items.size>1&&(t=`\n \n \n `);let e="";this.config.carousel.indicators&&this.items.size>1&&(e=`\n \n `);let s=document.createElement("DIV");s.className="modal modal-lightbox fade",s.tabIndex=-1,s.innerHTML=`\n \n `,this.lightbox=s}_createModal(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.modal,{show:!1});this.modal=t.$(this.lightbox).modal(e)}else this.modal=t.MODAL.getOrCreateInstance(this.lightbox,this.config.modal)}_createCarousel(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.carousel);e.ride||(e.interval=!1),this.carousel=t.$(this.lightbox.querySelector(".carousel")).carousel(e)}else this.carousel=t.CAROUSEL.getOrCreateInstance(this.lightbox.querySelector(".carousel"),this.config.carousel)}dispose(){return document.removeEventListener("keyup",this.onKeyUpListener),this.carousel&&(this.legacy?this.carousel.carousel("dispose"):this.carousel.dispose(),this.carousel=null),this.modal&&(this.legacy?this.modal.modal("dispose"):this.modal.dispose(),this.modal=null),this.lightbox&&this.lightbox.parentElement&&this.lightbox.remove(),this.lightbox=null,this}_getImage(t){if(t instanceof HTMLImageElement||t instanceof HTMLPictureElement)return t;return t.querySelector("picture,img")}_getTitle(t,e){let s=t.dataset.bsTitle||t.dataset.title||t.title||null;return s||t===e||(s=e.dataset.bsTitle||e.dataset.title||null),s}_getCaption(t,e){if("FIGURE"!==t.tagName.toUpperCase()){let s=t.dataset.bsCaption||t.dataset.caption||null;return s||(s=e.dataset.bsCaption||e.dataset.caption||null),s}{let e=t.querySelector("FIGCAPTION");if(e&&e.innerText.trim().length>0)return e.innerText.trim()}}append(t){if(this.items.has(t))return this;let e=this._getImage(t);if(null===e)throw new Error(`The passed element is not nor contains a supported image source. Element HTML: ${t.outerHTML}.`);let s=e.cloneNode(!0);return s.className="w-100",t instanceof HTMLAnchorElement&&t.href.length>0&&(s instanceof HTMLImageElement?s.src=t.href:s instanceof HTMLPictureElement&&this.config.lightbox.replacePictures&&(s.querySelector("img").src=t.href,Array.from(s.querySelectorAll("source"),(t=>t.remove())))),this.items.set(t,{source:t,image:s,title:this._getTitle(t,s),caption:this._getCaption(t,s)}),t.setAttribute(this.legacy?"data-slide-to":"data-bs-slide-to",(this.items.size-1).toString()),t.addEventListener("click",(e=>{e.preventDefault(),this.show(t)})),this}toggle(){return this.lightbox?this.hide():this.show()}show(t=null){if(this.lightbox)return this;if(this._createLightbox(),this._createModal(),this._createCarousel(),this.legacy){let t=["slid.bs.carousel","slide.bs.carousel","hide.bs.modal","hidden.bs.modal","hidePrevented.bs.modal","show.bs.modal","shown.bs.modal"];for(let e of t)(e.endsWith("modal")?this.modal:this.carousel).on(e,(t=>{(e.endsWith("modal")?this.lightbox:this.lightbox.querySelector(".carousel")).dispatchEvent(new Event(e,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))}))}t instanceof HTMLElement&&(t.dataset.bsSlideTo||t.dataset.slideTo)&&this.lightbox.addEventListener("show.bs.modal",(e=>{let s=parseInt(t.dataset.bsSlideTo||t.dataset.slideTo,10);this.legacy?this.carousel.carousel(s):this.carousel.to(s)})),this.config.lightbox.loader&&this.lightbox.addEventListener("show.bs.modal",(t=>{Array.from(this.lightbox.querySelectorAll("[data-img-src]"),(t=>{let e=document.createElement("IMG");e.className="w-100",e.onload=s=>{t.replaceWith(e)},e.src=t.dataset.imgSrc}))}));let e=this.lightbox.querySelector(".carousel");for(let[t,s]of this.events.entries())t.endsWith("modal")&&s.forEach((e=>this.lightbox.addEventListener(t,e))),t.endsWith("carousel")&&s.forEach((s=>e.addEventListener(t,s)));return this.config.carousel.keyboard&&document.addEventListener("keyup",this.onKeyUpListener),this.lightbox.addEventListener("hidden.bs.modal",this.dispose.bind(this)),this.legacy?this.modal.modal("show"):this.modal.show(),this}hide(){return this.modal&&(this.legacy?this.modal.modal("hide"):this.modal.hide()),this}cycle(){return this.carousel&&(this.legacy?this.carousel.carousel("cycle"):this.carousel.cycle()),this}next(){return this.carousel&&(this.legacy?this.carousel.carousel("next"):this.carousel.next()),this}prev(){return this.carousel&&(this.legacy?this.carousel.carousel("prev"):this.carousel.prev()),this}to(t){return this.carousel?("prev"===t||"previous"===t?this.prev():"next"===t?this.next():this.legacy?this.carousel.carousel(t):this.carousel.to(t),this):this}on(t,e){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(e),this}off(t,e){return this.events.has(t)&&this.events.get(t).delete(e),this.lightbox&&t.endsWith("modal")&&this.lightbox.removeEventListener(t,e),this.lightbox&&t.endsWith("carousel")&&this.lightbox.querySelector(".carousel").removeEventListener(t,e),this}}t._jquery=null,t._carousel=null,t._modal=null,t.instances=new Map;export{t as default};//# sourceMappingURL=rat.lightbox.min.js.map +class t{static get NAME(){return"lightbox"}static get VERSION(){return"1.1.0"}static get DEFAULTS(){return{carousel:{id:null,controls:!0,indicators:!1,interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lightbox:{loader:!1,replacePictures:!1},modal:{id:null,backdrop:!0,focus:!0,keyboard:!0,size:"xl"}}}static get $(){let e=t._jquery||window.$||window.jQuery;if(!e)throw new Error("No jQuery object found, please use Lightbox.$ = .");return e}static set $(e){t._jquery=e}static get CAROUSEL(){let e=t._carousel||(window.bootstrap||window.Bootstrap||{}).Carousel;if(!e)throw new Error("No Bootstrap Carousel prototype found, please use Lightbox.CAROUSEL = .");return e}static set CAROUSEL(e){t._carousel=e}static get MODAL(){let e=t._modal||(window.bootstrap||window.Bootstrap||{}).Modal;if(!e)throw new Error("No Bootstrap Modal prototype found, please use Lightbox.MODAL = .");return e}static set MODAL(e){t._modal=e}static get SELECTOR(){return'[data-toggle="lightbox"],[data-bs-toggle="lightbox"],[data-rat-lightbox]'}static invoke(t=null,e={}){return t="string"!=typeof t?this.SELECTOR:t,Array.from(document.querySelectorAll(t),(t=>this.getOrCreateInstance(t,e)))}static hasInstance(t){if("string"==typeof t)return this.instances.has(t);{let e=t.hasAttribute("data-bs-gallery")?t.dataset.bsGallery:t;return this.instances.has(e)}}static getInstance(t){if("string"==typeof t)return this.instances.has(t)?this.instances.get(t):null;{let e=t.dataset.bsGallery||t.dataset.gallery||t;return this.instances.has(e)?this.instances.get(e):null}}static getOrCreateInstance(t,e={}){let s=this.getInstance(t);return null===s?s=new this(t,e):s.append(t),s}constructor(e,s={}){this.items=new Map,this.events=new Map;let i=e.dataset.bsGallery||e.dataset.gallery||e;if(t.instances.has(i))throw new Error("An instance with the passed element or gallery has already been created.");t.instances.set(i,this),this.legacy="4"===t.CAROUSEL.VERSION[0];let a=t.DEFAULTS;this.config={carousel:Object.assign({},a.carousel,s.carousel||{}),lightbox:Object.assign({},a.lightbox,s.lightbox||{}),modal:Object.assign({},a.modal,s.modal||{})},this.append(e),this.onKeyUpListener=this._onKeyUp.bind(this)}_onKeyUp(t){"ArrowRight"===t.key?this.next():"ArrowLeft"===t.key&&this.prev()}_createLightbox(){let t="";this.config.carousel.controls&&this.items.size>1&&(t=`\n \n \n `);let e="";this.config.carousel.indicators&&this.items.size>1&&(e=`\n \n `);let s=document.createElement("DIV");s.className="modal modal-lightbox fade",s.tabIndex=-1,s.innerHTML=`\n \n `,this.lightbox=s}_createModal(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.modal,{show:!1});this.modal=t.$(this.lightbox).modal(e)}else this.modal=t.MODAL.getOrCreateInstance(this.lightbox,this.config.modal)}_createCarousel(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.carousel);e.ride||(e.interval=!1),this.carousel=t.$(this.lightbox.querySelector(".carousel")).carousel(e)}else this.carousel=t.CAROUSEL.getOrCreateInstance(this.lightbox.querySelector(".carousel"),this.config.carousel)}dispose(){return document.removeEventListener("keyup",this.onKeyUpListener),this.carousel&&(this.legacy?this.carousel.carousel("dispose"):this.carousel.dispose(),this.carousel=null),this.modal&&(this.legacy?this.modal.modal("dispose"):this.modal.dispose(),this.modal=null),this.lightbox&&this.lightbox.parentElement&&this.lightbox.remove(),this.lightbox=null,this}_getImage(t){if(t instanceof HTMLImageElement||t instanceof HTMLPictureElement)return t;return t.querySelector("picture,img")}_getTitle(t,e){let s=t.dataset.bsTitle||t.dataset.title||t.title||null;return s||t===e||(s=e.dataset.bsTitle||e.dataset.title||null),s}_getCaption(t,e){if("FIGURE"!==t.tagName.toUpperCase()){let s=t.dataset.bsCaption||t.dataset.caption||null;return s||(s=e.dataset.bsCaption||e.dataset.caption||null),s}{let e=t.querySelector("FIGCAPTION");if(e&&e.innerText.trim().length>0)return e.innerText.trim()}}append(t){if(this.items.has(t))return this;let e=this._getImage(t);if(null===e)throw new Error(`The passed element is not nor contains a supported image source. Element HTML: ${t.outerHTML}.`);let s=e.cloneNode(!0);return s.className="w-100",t instanceof HTMLAnchorElement&&t.href.length>0&&(s instanceof HTMLImageElement?s.src=t.href:s instanceof HTMLPictureElement&&this.config.lightbox.replacePictures&&(s.querySelector("img").src=t.href,Array.from(s.querySelectorAll("source"),(t=>t.remove())))),this.items.set(t,{source:t,image:s,title:this._getTitle(t,s),caption:this._getCaption(t,s)}),t.setAttribute(this.legacy?"data-slide-to":"data-bs-slide-to",(this.items.size-1).toString()),t.addEventListener("click",(e=>{e.preventDefault(),this.show(t)})),this}toggle(){return this.lightbox?this.hide():this.show()}show(t=null){if(this.lightbox)return this;if(this._createLightbox(),this._createModal(),this._createCarousel(),this.legacy){let t=["slid.bs.carousel","slide.bs.carousel","hide.bs.modal","hidden.bs.modal","hidePrevented.bs.modal","show.bs.modal","shown.bs.modal"];for(let e of t)(e.endsWith("modal")?this.modal:this.carousel).on(e,(t=>{(e.endsWith("modal")?this.lightbox:this.lightbox.querySelector(".carousel")).dispatchEvent(new Event(e,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))}))}t instanceof HTMLElement&&(t.dataset.bsSlideTo||t.dataset.slideTo)&&this.lightbox.addEventListener("show.bs.modal",(e=>{let s=parseInt(t.dataset.bsSlideTo||t.dataset.slideTo,10);this.legacy?this.carousel.carousel(s):this.carousel.to(s)})),this.config.lightbox.loader&&this.lightbox.addEventListener("show.bs.modal",(t=>{Array.from(this.lightbox.querySelectorAll("[data-img-src]"),(t=>{let e=document.createElement("IMG");e.className="w-100",e.onload=s=>{t.replaceWith(e)},e.src=t.dataset.imgSrc}))}));let e=this.lightbox.querySelector(".carousel");for(let[t,s]of this.events.entries())t.endsWith("modal")&&s.forEach((e=>this.lightbox.addEventListener(t,e))),t.endsWith("carousel")&&s.forEach((s=>e.addEventListener(t,s)));return this.config.carousel.keyboard&&document.addEventListener("keyup",this.onKeyUpListener),this.lightbox.addEventListener("hidden.bs.modal",this.dispose.bind(this)),this.legacy?this.modal.modal("show"):this.modal.show(),this}hide(){return this.modal&&(this.legacy?this.modal.modal("hide"):this.modal.hide()),this}cycle(){return this.carousel&&(this.legacy?this.carousel.carousel("cycle"):this.carousel.cycle()),this}next(){return this.carousel&&(this.legacy?this.carousel.carousel("next"):this.carousel.next()),this}prev(){return this.carousel&&(this.legacy?this.carousel.carousel("prev"):this.carousel.prev()),this}to(t){return this.carousel?("prev"===t||"previous"===t?this.prev():"next"===t?this.next():this.legacy?this.carousel.carousel(t):this.carousel.to(t),this):this}on(t,e){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(e),this}off(t,e){return this.events.has(t)&&this.events.get(t).delete(e),this.lightbox&&t.endsWith("modal")&&this.lightbox.removeEventListener(t,e),this.lightbox&&t.endsWith("carousel")&&this.lightbox.querySelector(".carousel").removeEventListener(t,e),this}}t._jquery=null,t._carousel=null,t._modal=null,t.instances=new Map;export{t as default};//# sourceMappingURL=rat.lightbox.min.js.map diff --git a/dist/esm/rat.lightbox.min.js.map b/dist/esm/rat.lightbox.min.js.map index 9d63dfa..c4c1e20 100644 --- a/dist/esm/rat.lightbox.min.js.map +++ b/dist/esm/rat.lightbox.min.js.map @@ -1 +1 @@ -{"version":3,"file":"rat.lightbox.min.js","sources":["../../src/ts/Lightbox.ts"],"sourcesContent":[null],"names":["Lightbox","constructor","element","config","this","items","Map","events","key","dataset","bsGallery","gallery","instances","has","Error","set","legacy","CAROUSEL","VERSION","defaults","DEFAULTS","carousel","Object","assign","lightbox","modal","append","onKeyUpListener","_onKeyUp","bind","NAME","id","controls","indicators","interval","keyboard","pause","ride","touch","wrap","loader","replacePictures","backdrop","focus","size","$","jquery","_jquery","window","jQuery","_carousel","Carousel","object","MODAL","_modal","Modal","SELECTOR","static","selector","Array","from","document","querySelectorAll","el","getOrCreateInstance","source","hasAttribute","get","instance","getInstance","event","next","prev","_createLightbox","map","_","idx","join","createElement","className","tabIndex","innerHTML","values","item","image","HTMLImageElement","src","querySelector","outerHTML","caption","title","_createModal","show","_createCarousel","dispose","removeEventListener","parentElement","remove","_getImage","HTMLPictureElement","_getTitle","bsTitle","_getCaption","tagName","toUpperCase","bsCaption","temp","innerText","trim","length","original","cloneNode","HTMLAnchorElement","href","e","setAttribute","toString","addEventListener","ev","preventDefault","toggle","hide","endsWith","on","dispatchEvent","Event","bubbles","cancelable","composed","HTMLElement","bsSlideTo","slideTo","number","parseInt","to","onload","replaceWith","imgSrc","entries","forEach","c","cycle","direction","caller","Set","add","off","delete"],"mappings":";AAIA,MAAMA,EAwOFC,YAAmBC,EAAsBC,EAAkC,IAhCpEC,KAAKC,MAAmC,IAAIC,IAK5CF,KAAMG,OAAgD,IAAID,IA4B7D,IAAIE,EAAMN,EAAQO,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AdsE,EACP1I,KAAKmE,OAEDnE,KAAKY,OACLZ,KAAKiB,SAASA,SAASyH,GAEvB1I,KAAKiB,SAASiH,GAAGQ,GAGlB1I,MAdIA,IAed,CAQMuH,GAAGrD,EAA2ByE,GAKjC,OAJK3I,KAAKG,OAAOM,IAAIyD,IACjBlE,KAAKG,OAAOQ,IAAIuD,EAAO,IAAI0E,KAE/B5I,KAAKG,OAAO4D,IAAIG,GAAO2E,IAAIF,GACpB3I,IACV,CAQM8I,IAAI5E,EAA2ByE,GAWlC,OAVI3I,KAAKG,OAAOM,IAAIyD,IAChBlE,KAAKG,OAAO4D,IAAIG,GAAO6E,OAAOJ,GAG9B3I,KAAKoB,UAAY8C,EAAMoD,SAAS,UAChCtH,KAAKoB,SAASuE,oBAAoBzB,EAAOyE,GAEzC3I,KAAKoB,UAAY8C,EAAMoD,SAAS,aAChCtH,KAAKoB,SAAS+D,cAAc,aAAaQ,oBAAoBzB,EAAOyE,GAEjE3I,IACV,EA5sBcJ,EAAO+C,QAAG,KAKV/C,EAASkD,UAAG,KAKZlD,EAAMsD,OAAG,KAgHVtD,EAASY,UAAsC,IAAIN,WAAGN"} \ No newline at end of file +{"version":3,"file":"rat.lightbox.min.js","sources":["../../src/ts/lightbox.ts"],"sourcesContent":[null],"names":["Lightbox","NAME","VERSION","DEFAULTS","carousel","id","controls","indicators","interval","keyboard","pause","ride","touch","wrap","lightbox","loader","replacePictures","modal","backdrop","focus","size","$","jquery","_jquery","window","Error","jQuery","CAROUSEL","_carousel","Carousel","object","MODAL","_modal","Modal","SELECTOR","static","selector","config","this","Array","from","document","querySelectorAll","el","getOrCreateInstance","source","instances","has","key","hasAttribute","dataset","bsGallery","get","gallery","element","instance","getInstance","append","constructor","items","Map","events","set","legacy","defaults","Object","assign","onKeyUpListener","_onKeyUp","bind","event","next","prev","_createLightbox","map","_","idx","join","createElement","className","tabIndex","innerHTML","values","item","image","HTMLImageElement","src","querySelector","outerHTML","caption","title","_createModal","show","_createCarousel","dispose","removeEventListener","parentElement","remove","_getImage","HTMLPictureElement","_getTitle","bsTitle","_getCaption","tagName","toUpperCase","bsCaption","temp","innerText","trim","length","original","cloneNode","HTMLAnchorElement","href","e","setAttribute","toString","addEventListener","ev","preventDefault","toggle","hide","endsWith","on","dispatchEvent","Event","bubbles","cancelable","composed","HTMLElement","bsSlideTo","slideTo","number","parseInt","to","onload","replaceWith","imgSrc","entries","forEach","c","cycle","direction","caller","Set","add","off","delete"],"mappings":";AAIA,MAAMA,EAoBSC,kBACP,MAAO,UACV,CAKUC,qBACP,MAAO,OACV,CAKUC,sBACP,MAAO,CACHC,SAAU,CACNC,GAAI,KACJC,UAAU,EACVC,YAAY,EACZC,SAAU,IACVC,UAAU,EACVC,MAAO,QACPC,MAAM,EACNC,OAAO,EACPC,MAAM,GAEVC,SAAU,CACNC,QAAQ,EACRC,iBAAiB,GAErBC,MAAO,CACHZ,GAAI,KACJa,UAAU,EACVC,OAAO,EACPV,UAAU,EACVW,KAAM,MAGjB,CAKUC,eACP,IAAIC,EAAUtB,EAASuB,SAAWC,OAAU,GAAKA,OAAe,OAChE,IAAKF,EACD,MAAM,IAAIG,MAAM,6DAEpB,OAAOH,CACV,CAKUD,aAAEK,GACT1B,EAASuB,QAAUG,CACtB,CAKUC,sBACP,IAAIvB,EAAYJ,EAAS4B,YAAcJ,OAAkB,WAAKA,OAAkB,WAAK,CAAA,GAAIK,SACzF,IAAKzB,EACD,MAAM,IAAIqB,MAAM,+FAEpB,OAAOrB,CACV,CAKUuB,oBAASG,GAChB9B,EAAS4B,UAAYE,CACxB,CAKUC,mBACP,IAAId,EAASjB,EAASgC,SAAWR,OAAkB,WAAKA,OAAkB,WAAK,CAAA,GAAIS,MACnF,IAAKhB,EACD,MAAM,IAAIQ,MAAM,sFAEpB,OAAOR,CACV,CAKUc,iBAAMD,GACb9B,EAASgC,OAASF,CACrB,CAKUI,sBACP,MAAO,0EAGV,CAaMC,cAAcC,EAAwB,KAAMC,EAAkC,CAAA,GAEjF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dist/js/rat.lightbox.js @@ -6,7 +6,7 @@ | | @website https://github.com/RatMD/bs-lightbox | @license MIT License -| @copyright Copyright © 2021 - 2022 rat.md +| @copyright Copyright © 2021 - 2023 rat.md */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : @@ -16,24 +16,6 @@ "use strict"; class Lightbox { - constructor(element, config = {}) { - this.items = new Map; - this.events = new Map; - let key = element.dataset.bsGallery || element.dataset.gallery || element; - if (Lightbox.instances.has(key)) { - throw new Error('An instance with the passed element or gallery has already been created.'); - } - Lightbox.instances.set(key, this); - this.legacy = Lightbox.CAROUSEL.VERSION[0] === '4'; - let defaults = Lightbox.DEFAULTS; - this.config = { - carousel: Object.assign({}, defaults.carousel, config.carousel || {}), - lightbox: Object.assign({}, defaults.lightbox, config.lightbox || {}), - modal: Object.assign({}, defaults.modal, config.modal || {}) - }; - this.append(element); - this.onKeyUpListener = this._onKeyUp.bind(this); - } static get NAME() { return 'lightbox'; } @@ -135,6 +117,24 @@ } return instance; } + constructor(element, config = {}) { + this.items = new Map; + this.events = new Map; + let key = element.dataset.bsGallery || element.dataset.gallery || element; + if (Lightbox.instances.has(key)) { + throw new Error('An instance with the passed element or gallery has already been created.'); + } + Lightbox.instances.set(key, this); + this.legacy = Lightbox.CAROUSEL.VERSION[0] === '4'; + let defaults = Lightbox.DEFAULTS; + this.config = { + carousel: Object.assign({}, defaults.carousel, config.carousel || {}), + lightbox: Object.assign({}, defaults.lightbox, config.lightbox || {}), + modal: Object.assign({}, defaults.modal, config.modal || {}) + }; + this.append(element); + this.onKeyUpListener = this._onKeyUp.bind(this); + } _onKeyUp(event) { if (event.key === 'ArrowRight') { this.next(); diff --git a/dist/js/rat.lightbox.js.map b/dist/js/rat.lightbox.js.map index 23e11f3..bead4bd 100644 --- a/dist/js/rat.lightbox.js.map +++ b/dist/js/rat.lightbox.js.map @@ -1 +1 @@ -{"version":3,"file":"rat.lightbox.js","sources":["../../src/ts/Lightbox.ts"],"sourc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AAO,IAAI,CAAC;SACf;QAQM,GAAG,CAAC,KAAyB,EAAE,MAAqB,EAAA;YACvD,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;IACxB,YAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzC,SAAA;YAED,IAAI,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBAC1C,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACpD,SAAA;YACD,IAAI,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;IAC7C,YAAA,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/E,SAAA;IACD,QAAA,OAAO,IAAI,CAAC;SACf;;IA5sBc,QAAO,CAAA,OAAA,GAAG,IAAH,CAAQ;IAKf,QAAS,CAAA,SAAA,GAAG,IAAH,CAAQ;IAKjB,QAAM,CAAA,MAAA,GAAG,IAAH,CAAQ;IAgHf,QAAA,CAAA,SAAS,GAAsC,IAAI,GAA1C;;;;;;;;"} \ No newline at end of file diff --git a/dist/js/rat.lightbox.min.js b/dist/js/rat.lightbox.min.js index c6c6608..8d4b3f8 100644 --- a/dist/js/rat.lightbox.min.js +++ b/dist/js/rat.lightbox.min.js @@ -1,2 +1,2 @@ /*! @rat.md/bs-lightbox | @version 1.1.0 | @license MIT | @copyright rat.md */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rat.Lightbox",e):((t="undefined"!=typeof globalThis?globalThis:t||self).rat=t.rat||{},t.rat.Lightbox=e())}(this,(function(){"use strict";class t{constructor(e,s={}){this.items=new Map,this.events=new Map;let i=e.dataset.bsGallery||e.dataset.gallery||e;if(t.instances.has(i))throw new Error("An instance with the passed element or gallery has already been created.");t.instances.set(i,this),this.legacy="4"===t.CAROUSEL.VERSION[0];let a=t.DEFAULTS;this.config={carousel:Object.assign({},a.carousel,s.carousel||{}),lightbox:Object.assign({},a.lightbox,s.lightbox||{}),modal:Object.assign({},a.modal,s.modal||{})},this.append(e),this.onKeyUpListener=this._onKeyUp.bind(this)}static get NAME(){return"lightbox"}static get VERSION(){return"1.1.0"}static get DEFAULTS(){return{carousel:{id:null,controls:!0,indicators:!1,interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lightbox:{loader:!1,replacePictures:!1},modal:{id:null,backdrop:!0,focus:!0,keyboard:!0,size:"xl"}}}static get $(){let e=t._jquery||window.$||window.jQuery;if(!e)throw new Error("No jQuery object found, please use Lightbox.$ = .");return e}static set $(e){t._jquery=e}static get CAROUSEL(){let e=t._carousel||(window.bootstrap||window.Bootstrap||{}).Carousel;if(!e)throw new Error("No Bootstrap Carousel prototype found, please use Lightbox.CAROUSEL = .");return e}static set CAROUSEL(e){t._carousel=e}static get MODAL(){let e=t._modal||(window.bootstrap||window.Bootstrap||{}).Modal;if(!e)throw new Error("No Bootstrap Modal prototype found, please use Lightbox.MODAL = .");return e}static set MODAL(e){t._modal=e}static get SELECTOR(){return'[data-toggle="lightbox"],[data-bs-toggle="lightbox"],[data-rat-lightbox]'}static invoke(t=null,e={}){return t="string"!=typeof t?this.SELECTOR:t,Array.from(document.querySelectorAll(t),(t=>this.getOrCreateInstance(t,e)))}static hasInstance(t){if("string"==typeof t)return this.instances.has(t);{let e=t.hasAttribute("data-bs-gallery")?t.dataset.bsGallery:t;return this.instances.has(e)}}static getInstance(t){if("string"==typeof t)return this.instances.has(t)?this.instances.get(t):null;{let e=t.dataset.bsGallery||t.dataset.gallery||t;return this.instances.has(e)?this.instances.get(e):null}}static getOrCreateInstance(t,e={}){let s=this.getInstance(t);return null===s?s=new this(t,e):s.append(t),s}_onKeyUp(t){"ArrowRight"===t.key?this.next():"ArrowLeft"===t.key&&this.prev()}_createLightbox(){let t="";this.config.carousel.controls&&this.items.size>1&&(t=`\n \n \n `);let e="";this.config.carousel.indicators&&this.items.size>1&&(e=`\n \n `);let s=document.createElement("DIV");s.className="modal modal-lightbox fade",s.tabIndex=-1,s.innerHTML=`\n \n `,this.lightbox=s}_createModal(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.modal,{show:!1});this.modal=t.$(this.lightbox).modal(e)}else this.modal=t.MODAL.getOrCreateInstance(this.lightbox,this.config.modal)}_createCarousel(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.carousel);e.ride||(e.interval=!1),this.carousel=t.$(this.lightbox.querySelector(".carousel")).carousel(e)}else this.carousel=t.CAROUSEL.getOrCreateInstance(this.lightbox.querySelector(".carousel"),this.config.carousel)}dispose(){return document.removeEventListener("keyup",this.onKeyUpListener),this.carousel&&(this.legacy?this.carousel.carousel("dispose"):this.carousel.dispose(),this.carousel=null),this.modal&&(this.legacy?this.modal.modal("dispose"):this.modal.dispose(),this.modal=null),this.lightbox&&this.lightbox.parentElement&&this.lightbox.remove(),this.lightbox=null,this}_getImage(t){if(t instanceof HTMLImageElement||t instanceof HTMLPictureElement)return t;return t.querySelector("picture,img")}_getTitle(t,e){let s=t.dataset.bsTitle||t.dataset.title||t.title||null;return s||t===e||(s=e.dataset.bsTitle||e.dataset.title||null),s}_getCaption(t,e){if("FIGURE"!==t.tagName.toUpperCase()){let s=t.dataset.bsCaption||t.dataset.caption||null;return s||(s=e.dataset.bsCaption||e.dataset.caption||null),s}{let e=t.querySelector("FIGCAPTION");if(e&&e.innerText.trim().length>0)return e.innerText.trim()}}append(t){if(this.items.has(t))return this;let e=this._getImage(t);if(null===e)throw new Error(`The passed element is not nor contains a supported image source. Element HTML: ${t.outerHTML}.`);let s=e.cloneNode(!0);return s.className="w-100",t instanceof HTMLAnchorElement&&t.href.length>0&&(s instanceof HTMLImageElement?s.src=t.href:s instanceof HTMLPictureElement&&this.config.lightbox.replacePictures&&(s.querySelector("img").src=t.href,Array.from(s.querySelectorAll("source"),(t=>t.remove())))),this.items.set(t,{source:t,image:s,title:this._getTitle(t,s),caption:this._getCaption(t,s)}),t.setAttribute(this.legacy?"data-slide-to":"data-bs-slide-to",(this.items.size-1).toString()),t.addEventListener("click",(e=>{e.preventDefault(),this.show(t)})),this}toggle(){return this.lightbox?this.hide():this.show()}show(t=null){if(this.lightbox)return this;if(this._createLightbox(),this._createModal(),this._createCarousel(),this.legacy){let t=["slid.bs.carousel","slide.bs.carousel","hide.bs.modal","hidden.bs.modal","hidePrevented.bs.modal","show.bs.modal","shown.bs.modal"];for(let e of t)(e.endsWith("modal")?this.modal:this.carousel).on(e,(t=>{(e.endsWith("modal")?this.lightbox:this.lightbox.querySelector(".carousel")).dispatchEvent(new Event(e,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))}))}t instanceof HTMLElement&&(t.dataset.bsSlideTo||t.dataset.slideTo)&&this.lightbox.addEventListener("show.bs.modal",(e=>{let s=parseInt(t.dataset.bsSlideTo||t.dataset.slideTo,10);this.legacy?this.carousel.carousel(s):this.carousel.to(s)})),this.config.lightbox.loader&&this.lightbox.addEventListener("show.bs.modal",(t=>{Array.from(this.lightbox.querySelectorAll("[data-img-src]"),(t=>{let e=document.createElement("IMG");e.className="w-100",e.onload=s=>{t.replaceWith(e)},e.src=t.dataset.imgSrc}))}));let e=this.lightbox.querySelector(".carousel");for(let[t,s]of this.events.entries())t.endsWith("modal")&&s.forEach((e=>this.lightbox.addEventListener(t,e))),t.endsWith("carousel")&&s.forEach((s=>e.addEventListener(t,s)));return this.config.carousel.keyboard&&document.addEventListener("keyup",this.onKeyUpListener),this.lightbox.addEventListener("hidden.bs.modal",this.dispose.bind(this)),this.legacy?this.modal.modal("show"):this.modal.show(),this}hide(){return this.modal&&(this.legacy?this.modal.modal("hide"):this.modal.hide()),this}cycle(){return this.carousel&&(this.legacy?this.carousel.carousel("cycle"):this.carousel.cycle()),this}next(){return this.carousel&&(this.legacy?this.carousel.carousel("next"):this.carousel.next()),this}prev(){return this.carousel&&(this.legacy?this.carousel.carousel("prev"):this.carousel.prev()),this}to(t){return this.carousel?("prev"===t||"previous"===t?this.prev():"next"===t?this.next():this.legacy?this.carousel.carousel(t):this.carousel.to(t),this):this}on(t,e){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(e),this}off(t,e){return this.events.has(t)&&this.events.get(t).delete(e),this.lightbox&&t.endsWith("modal")&&this.lightbox.removeEventListener(t,e),this.lightbox&&t.endsWith("carousel")&&this.lightbox.querySelector(".carousel").removeEventListener(t,e),this}}return t._jquery=null,t._carousel=null,t._modal=null,t.instances=new Map,t}));//# sourceMappingURL=rat.lightbox.min.js.map +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rat.Lightbox",e):((t="undefined"!=typeof globalThis?globalThis:t||self).rat=t.rat||{},t.rat.Lightbox=e())}(this,(function(){"use strict";class t{static get NAME(){return"lightbox"}static get VERSION(){return"1.1.0"}static get DEFAULTS(){return{carousel:{id:null,controls:!0,indicators:!1,interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lightbox:{loader:!1,replacePictures:!1},modal:{id:null,backdrop:!0,focus:!0,keyboard:!0,size:"xl"}}}static get $(){let e=t._jquery||window.$||window.jQuery;if(!e)throw new Error("No jQuery object found, please use Lightbox.$ = .");return e}static set $(e){t._jquery=e}static get CAROUSEL(){let e=t._carousel||(window.bootstrap||window.Bootstrap||{}).Carousel;if(!e)throw new Error("No Bootstrap Carousel prototype found, please use Lightbox.CAROUSEL = .");return e}static set CAROUSEL(e){t._carousel=e}static get MODAL(){let e=t._modal||(window.bootstrap||window.Bootstrap||{}).Modal;if(!e)throw new Error("No Bootstrap Modal prototype found, please use Lightbox.MODAL = .");return e}static set MODAL(e){t._modal=e}static get SELECTOR(){return'[data-toggle="lightbox"],[data-bs-toggle="lightbox"],[data-rat-lightbox]'}static invoke(t=null,e={}){return t="string"!=typeof t?this.SELECTOR:t,Array.from(document.querySelectorAll(t),(t=>this.getOrCreateInstance(t,e)))}static hasInstance(t){if("string"==typeof t)return this.instances.has(t);{let e=t.hasAttribute("data-bs-gallery")?t.dataset.bsGallery:t;return this.instances.has(e)}}static getInstance(t){if("string"==typeof t)return this.instances.has(t)?this.instances.get(t):null;{let e=t.dataset.bsGallery||t.dataset.gallery||t;return this.instances.has(e)?this.instances.get(e):null}}static getOrCreateInstance(t,e={}){let s=this.getInstance(t);return null===s?s=new this(t,e):s.append(t),s}constructor(e,s={}){this.items=new Map,this.events=new Map;let i=e.dataset.bsGallery||e.dataset.gallery||e;if(t.instances.has(i))throw new Error("An instance with the passed element or gallery has already been created.");t.instances.set(i,this),this.legacy="4"===t.CAROUSEL.VERSION[0];let a=t.DEFAULTS;this.config={carousel:Object.assign({},a.carousel,s.carousel||{}),lightbox:Object.assign({},a.lightbox,s.lightbox||{}),modal:Object.assign({},a.modal,s.modal||{})},this.append(e),this.onKeyUpListener=this._onKeyUp.bind(this)}_onKeyUp(t){"ArrowRight"===t.key?this.next():"ArrowLeft"===t.key&&this.prev()}_createLightbox(){let t="";this.config.carousel.controls&&this.items.size>1&&(t=`\n \n \n `);let e="";this.config.carousel.indicators&&this.items.size>1&&(e=`\n \n `);let s=document.createElement("DIV");s.className="modal modal-lightbox fade",s.tabIndex=-1,s.innerHTML=`\n \n `,this.lightbox=s}_createModal(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.modal,{show:!1});this.modal=t.$(this.lightbox).modal(e)}else this.modal=t.MODAL.getOrCreateInstance(this.lightbox,this.config.modal)}_createCarousel(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.carousel);e.ride||(e.interval=!1),this.carousel=t.$(this.lightbox.querySelector(".carousel")).carousel(e)}else this.carousel=t.CAROUSEL.getOrCreateInstance(this.lightbox.querySelector(".carousel"),this.config.carousel)}dispose(){return document.removeEventListener("keyup",this.onKeyUpListener),this.carousel&&(this.legacy?this.carousel.carousel("dispose"):this.carousel.dispose(),this.carousel=null),this.modal&&(this.legacy?this.modal.modal("dispose"):this.modal.dispose(),this.modal=null),this.lightbox&&this.lightbox.parentElement&&this.lightbox.remove(),this.lightbox=null,this}_getImage(t){if(t instanceof HTMLImageElement||t instanceof HTMLPictureElement)return t;return t.querySelector("picture,img")}_getTitle(t,e){let s=t.dataset.bsTitle||t.dataset.title||t.title||null;return s||t===e||(s=e.dataset.bsTitle||e.dataset.title||null),s}_getCaption(t,e){if("FIGURE"!==t.tagName.toUpperCase()){let s=t.dataset.bsCaption||t.dataset.caption||null;return s||(s=e.dataset.bsCaption||e.dataset.caption||null),s}{let e=t.querySelector("FIGCAPTION");if(e&&e.innerText.trim().length>0)return e.innerText.trim()}}append(t){if(this.items.has(t))return this;let e=this._getImage(t);if(null===e)throw new Error(`The passed element is not nor contains a supported image source. Element HTML: ${t.outerHTML}.`);let s=e.cloneNode(!0);return s.className="w-100",t instanceof HTMLAnchorElement&&t.href.length>0&&(s instanceof HTMLImageElement?s.src=t.href:s instanceof HTMLPictureElement&&this.config.lightbox.replacePictures&&(s.querySelector("img").src=t.href,Array.from(s.querySelectorAll("source"),(t=>t.remove())))),this.items.set(t,{source:t,image:s,title:this._getTitle(t,s),caption:this._getCaption(t,s)}),t.setAttribute(this.legacy?"data-slide-to":"data-bs-slide-to",(this.items.size-1).toString()),t.addEventListener("click",(e=>{e.preventDefault(),this.show(t)})),this}toggle(){return this.lightbox?this.hide():this.show()}show(t=null){if(this.lightbox)return this;if(this._createLightbox(),this._createModal(),this._createCarousel(),this.legacy){let t=["slid.bs.carousel","slide.bs.carousel","hide.bs.modal","hidden.bs.modal","hidePrevented.bs.modal","show.bs.modal","shown.bs.modal"];for(let e of t)(e.endsWith("modal")?this.modal:this.carousel).on(e,(t=>{(e.endsWith("modal")?this.lightbox:this.lightbox.querySelector(".carousel")).dispatchEvent(new Event(e,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))}))}t instanceof HTMLElement&&(t.dataset.bsSlideTo||t.dataset.slideTo)&&this.lightbox.addEventListener("show.bs.modal",(e=>{let s=parseInt(t.dataset.bsSlideTo||t.dataset.slideTo,10);this.legacy?this.carousel.carousel(s):this.carousel.to(s)})),this.config.lightbox.loader&&this.lightbox.addEventListener("show.bs.modal",(t=>{Array.from(this.lightbox.querySelectorAll("[data-img-src]"),(t=>{let e=document.createElement("IMG");e.className="w-100",e.onload=s=>{t.replaceWith(e)},e.src=t.dataset.imgSrc}))}));let e=this.lightbox.querySelector(".carousel");for(let[t,s]of this.events.entries())t.endsWith("modal")&&s.forEach((e=>this.lightbox.addEventListener(t,e))),t.endsWith("carousel")&&s.forEach((s=>e.addEventListener(t,s)));return this.config.carousel.keyboard&&document.addEventListener("keyup",this.onKeyUpListener),this.lightbox.addEventListener("hidden.bs.modal",this.dispose.bind(this)),this.legacy?this.modal.modal("show"):this.modal.show(),this}hide(){return this.modal&&(this.legacy?this.modal.modal("hide"):this.modal.hide()),this}cycle(){return this.carousel&&(this.legacy?this.carousel.carousel("cycle"):this.carousel.cycle()),this}next(){return this.carousel&&(this.legacy?this.carousel.carousel("next"):this.carousel.next()),this}prev(){return this.carousel&&(this.legacy?this.carousel.carousel("prev"):this.carousel.prev()),this}to(t){return this.carousel?("prev"===t||"previous"===t?this.prev():"next"===t?this.next():this.legacy?this.carousel.carousel(t):this.carousel.to(t),this):this}on(t,e){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(e),this}off(t,e){return this.events.has(t)&&this.events.get(t).delete(e),this.lightbox&&t.endsWith("modal")&&this.lightbox.removeEventListener(t,e),this.lightbox&&t.endsWith("carousel")&&this.lightbox.querySelector(".carousel").removeEventListener(t,e),this}}return t._jquery=null,t._carousel=null,t._modal=null,t.instances=new Map,t}));//# sourceMappingURL=rat.lightbox.min.js.map diff --git a/dist/js/rat.lightbox.min.js.map b/dist/js/rat.lightbox.min.js.map index 102a87b..40728e8 100644 --- a/dist/js/rat.lightbox.min.js.map +++ b/dist/js/rat.lightbox.min.js.map @@ -1 +1 @@ -{"version":3,"file":"rat.lightbox.min.js","sources":["../../src/ts/Lightbox.ts"],"sourcesContent":[null],"names":["Lightbox","constructor","element","config","this","items","Map","events","key","dataset","bsGallery","gallery","instances","has","Error","set","legacy","CAROUSEL","VERSION","defaults","DEFAULTS","carousel","Object","assign","lightbox","modal","append","onKeyUpListener","_onKeyUp","bind","NAME","id","controls","indicators","interval","keyboard","pause","ride","touch","wrap","loader","replacePictures","backdrop","focus","size","$","jquery","_jquery","window","jQuery","_carousel","Carousel","object","MODAL","_modal","Modal","SELECTOR","static","selector","Array","from","document","querySelectorAll","el","getOrCreateInstance","source","hasAttribute","get","instance","getInstance","event","next","prev","_createLightbox","map","_","idx","join","createElement","className","tabIndex","innerHTML","values","item","image","HTMLImageElement","src","querySelector","outerHTML","caption","title","_createModal","show","_createCarousel","dispose","removeEventListener","parentElement","remove","_getImage","HTMLPictureElement","_getTitle","bsTitle","_getCaption","tagName","toUpperCase","bsCaption","temp","innerText","trim","length","original","cloneNode","HTMLAnchorElement","href","e","setAttribute","toString","addEventListener","ev","preventDefault","toggle","hide","endsWith","on","dispatchEvent","Event","bubbles","cancelable","composed","HTMLElement","bsSlideTo","slideTo","number","parseInt","to","onload","replaceWith","imgSrc","entries","forEach","c","cycle","direction","caller","Set","add","off","delete"],"mappings":";8QAIA,MAAMA,EAwOFC,YAAmBC,EAAsBC,EAAkC,IAhCpEC,KAAKC,MAAmC,IAAIC,IAK5CF,KAAMG,OAAgD,IAAID,IA4B7D,IAAIE,EAAMN,EAAQO,QAAQC,WAAaR,EAAQO,QAAQE,SAAWT,EAClE,GAAIF,EAASY,UAAUC,IAAIL,GACvB,MAAM,IAAIM,MAAM,4EAEpBd,EAASY,UAAUG,IAAIP,EAAKJ,MAG5BA,KAAKY,OAA0C,MAAjChB,EAASiB,SAASC,QAAQ,GAGxC,IAAIC,E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,OAAOQ,IAAIuD,EAAO,IAAI0E,KAE/B5I,KAAKG,OAAO4D,IAAIG,GAAO2E,IAAIF,GACpB3I,IACV,CAQM8I,IAAI5E,EAA2ByE,GAWlC,OAVI3I,KAAKG,OAAOM,IAAIyD,IAChBlE,KAAKG,OAAO4D,IAAIG,GAAO6E,OAAOJ,GAG9B3I,KAAKoB,UAAY8C,EAAMoD,SAAS,UAChCtH,KAAKoB,SAASuE,oBAAoBzB,EAAOyE,GAEzC3I,KAAKoB,UAAY8C,EAAMoD,SAAS,aAChCtH,KAAKoB,SAAS+D,cAAc,aAAaQ,oBAAoBzB,EAAOyE,GAEjE3I,IACV,EAllBmE,OA1HrDJ,EAAO+C,QAAG,KAKV/C,EAASkD,UAAG,KAKZlD,EAAMsD,OAAG,KAgHVtD,EAASY,UAAsC,IAAIN,IAAGN,CAAA"} \ No newline at end of file +{"version":3,"file":"rat.lightbox.min.js","sources":["../../src/ts/lightbox.ts"],"sourcesContent":[null],"names":["Lightbox","NAME","VERSION","DEFAULTS","carousel","id","controls","indicators","interval","keyboard","pause","ride","touch","wrap","lightbox","loader","replacePictures","modal","backdrop","focus","size","$","jquery","_jquery","window","Error","jQuery","CAROUSEL","_carousel","Carousel","object","MODAL","_modal","Modal","SELECTOR","static","selector","config","this","Array","from","document","querySelectorAll","el","getOrCreateInstance","source","instances","has","key","hasAttribute","dataset","bsGallery","get","gallery","element","instance","getInstance","append","constructor","items","Map","events","set","legacy","defaults","Object","assign","onKeyUpListener","_onKeyUp","bind","event","next","prev","_createLightbox","map","_","idx","join","createElement","className","tabIndex","innerHTML","values","item","image","HTMLImageElement","src","querySelector","outerHTML","caption","title","_createModal","show","_createCarousel","dispose","removeEventListener","parentElement","remove","_getImage","HTMLPictureElement","_getTitle","bsTitle","_getCaption","tagName","toUpperCase","bsCaption","temp","innerText","trim","length","original","cloneNode","HTMLAnchorElement","href","e","setAttribute","toString","addEventListener","ev","preventDefault","toggle","hide","endsWith","on","dispatchEvent","Event","bubbles","cancelable","composed","HTMLElement","bsSlideTo","slideTo","number","parseInt","to","onload","replaceWith","imgSrc","entries","forEach","c","cycle","direction","caller","Set","add","off","delete"],"mappings":";8QAIA,MAAMA,EAoBSC,kBACP,MAAO,UACV,CAKUC,qBACP,MAAO,OACV,CAKUC,sBACP,MAAO,CACHC,SAAU,CACNC,GAAI,KACJC,UAAU,EACVC,YAAY,EACZC,SAAU,IACVC,UAAU,EACVC,MAAO,QACPC,MAAM,EACNC,OAAO,EACPC,MAAM,GAEVC,SAAU,CACNC,QAAQ,EACRC,iBAAiB,GAErBC,MAAO,CACHZ,GAAI,KACJa,UAAU,EACVC,OAAO,EACPV,UAAU,EACVW,KAAM,MAGjB,CAKUC,eACP,IAAIC,EAAUtB,EAASuB,SAAWC,OAAU,GAAKA,OAAe,OAChE,IAAKF,EACD,MAAM,IAAIG,MAAM,6DAEpB,OAAOH,CACV,CAKUD,aAAEK,GACT1B,EAASuB,QAAUG,CACtB,CAKUC,sBACP,IAAIvB,EAAYJ,EAAS4B,YAAcJ,OAAkB,WAAKA,OAAkB,WAAK,CAAA,GAAIK,SACzF,IAAKzB,EACD,MAAM,IAAIqB,MAAM,+FAEpB,OAAOrB,CACV,CAKUuB,oBAASG,GAChB9B,EAAS4B,UAAYE,CACxB,CAKUC,mBACP,IAAId,EAASjB,EAASgC,SAAWR,OAAkB,WAAKA,OAAkB,WAAK,CAAA,GAAIS,MACnF,IAAKhB,EACD,MAAM,IAAIQ,MAAM,sFAEpB,OAAOR,CACV,CAKUc,iBAAMD,GACb9B,EAASgC,OAASF,CACrB,CAKUI,sBACP,MAAO,0EAGV,CAaMC,cAAcC,EAAwB,KAAMC,EAAkC,CAAA,GAEjF,OADAD,EAA+B,iBAAbA,EAAwBE,KAAKJ,SAAWE,EACnDG,MAAMC,KAAKC,SAASC,iBAAiBN,IAAYO,GAC7CL,KAAKM,oBAAoBD,EAAIN,IAE3C,CAOMF,mBAAmBU,GACtB,GAAsB,iBAAXA,EACP,OAAOP,KAA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QAGfjC,IACV,CAMMkC,OAQH,OAPIlC,KAAKlC,WACDkC,KAAKyB,OACLzB,KAAKlC,SAASA,SAAS,QAEvBkC,KAAKlC,SAASoE,QAGflC,IACV,CAQMgG,GAAGQ,GACN,OAAKxG,KAAKlC,UAIQ,SAAd0I,GAAsC,aAAdA,EACxBxG,KAAKkC,OACgB,SAAdsE,EACPxG,KAAKiC,OAEDjC,KAAKyB,OACLzB,KAAKlC,SAASA,SAAS0I,GAEvBxG,KAAKlC,SAASkI,GAAGQ,GAGlBxG,MAdIA,IAed,CAQMqF,GAAGrD,EAA2ByE,GAKjC,OAJKzG,KAAKuB,OAAOd,IAAIuB,IACjBhC,KAAKuB,OAAOC,IAAIQ,EAAO,IAAI0E,KAE/B1G,KAAKuB,OAAOT,IAAIkB,GAAO2E,IAAIF,GACpBzG,IACV,CAQM4G,IAAI5E,EAA2ByE,GAWlC,OAVIzG,KAAKuB,OAAOd,IAAIuB,IAChBhC,KAAKuB,OAAOT,IAAIkB,GAAO6E,OAAOJ,GAG9BzG,KAAKxB,UAAYwD,EAAMoD,SAAS,UAChCpF,KAAKxB,SAASiF,oBAAoBzB,EAAOyE,GAEzCzG,KAAKxB,UAAYwD,EAAMoD,SAAS,aAChCpF,KAAKxB,SAASyE,cAAc,aAAaQ,oBAAoBzB,EAAOyE,GAEjEzG,IACV,EAllBsB,OA1HRtC,EAAOuB,QAAG,KAKVvB,EAAS4B,UAAG,KAKZ5B,EAAMgC,OAAG,KAgHVhC,EAAA8C,UAA+C,IAAIc,IAA1C5D,CAAA"} \ No newline at end of file diff --git a/docs/dist/esm/rat.lightbox.js b/docs/dist/esm/rat.lightbox.js index 9bd91d1..e07fcec 100644 --- a/docs/dist/esm/rat.lightbox.js +++ b/docs/dist/esm/rat.lightbox.js @@ -6,29 +6,11 @@ | | @website https://github.com/RatMD/bs-lightbox | @license MIT License -| @copyright Copyright © 2021 - 2022 rat.md +| @copyright Copyright © 2021 - 2023 rat.md */ "use strict"; class Lightbox { - constructor(element, config = {}) { - this.items = new Map; - this.events = new Map; - let key = element.dataset.bsGallery || element.dataset.gallery || element; - if (Lightbox.instances.has(key)) { - throw new Error('An instance with the passed element or gallery has already been created.'); - } - Lightbox.instances.set(key, this); - this.legacy = Lightbox.CAROUSEL.VERSION[0] === '4'; - let defaults = Lightbox.DEFAULTS; - this.config = { - carousel: Object.assign({}, defaults.carousel, config.carousel || {}), - lightbox: Object.assign({}, defaults.lightbox, config.lightbox || {}), - modal: Object.assign({}, defaults.modal, config.modal || {}) - }; - this.append(element); - this.onKeyUpListener = this._onKeyUp.bind(this); - } static get NAME() { return 'lightbox'; } @@ -130,6 +112,24 @@ class Lightbox { } return instance; } + constructor(element, config = {}) { + this.items = new Map; + this.events = new Map; + let key = element.dataset.bsGallery || element.dataset.gallery || element; + if (Lightbox.instances.has(key)) { + throw new Error('An instance with the passed element or gallery has already been created.'); + } + Lightbox.instances.set(key, this); + this.legacy = Lightbox.CAROUSEL.VERSION[0] === '4'; + let defaults = Lightbox.DEFAULTS; + this.config = { + carousel: Object.assign({}, defaults.carousel, config.carousel || {}), + lightbox: Object.assign({}, defaults.lightbox, config.lightbox || {}), + modal: Object.assign({}, defaults.modal, config.modal || {}) + }; + this.append(element); + this.onKeyUpListener = this._onKeyUp.bind(this); + } _onKeyUp(event) { if (event.key === 'ArrowRight') { this.next(); diff --git a/docs/dist/esm/rat.lightbox.js.map b/docs/dist/esm/rat.lightbox.js.map index 6fd2918..8780bd0 100644 --- a/docs/dist/esm/rat.lightbox.js.map +++ b/docs/dist/esm/rat.lightbox.js.map @@ -1 +1 @@ -{"version":3,"file":"rat.lightbox.js","sources":["../../src/ts/Lightbox.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAM,QAAQ,CAAA;IAwOV,WAAmB,CAAA,OAAoB,EAAE,MAAA,GAAkC,EAAE,EAAA;QAhCtE,IAAK,CAAA,KAAA,GAAmC,IAAI,GAAG,CAAC;QAKhD,IAAM,CAAA,MA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,CAAC,EAAE;YAC1C,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACpD,SAAA;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;AAC7C,YAAA,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAC/E,SAAA;AACD,QAAA,OAAO,IAAI,CAAC;KACf;;AA5sBc,QAAO,CAAA,OAAA,GAAG,IAAH,CAAQ;AAKf,QAAS,CAAA,SAAA,GAAG,IAAH,CAAQ;AAKjB,QAAM,CAAA,MAAA,GAAG,IAAH,CAAQ;AAgHf,QAAA,CAAA,SAAS,GAAsC,IAAI,GAA1C;;;;"} \ No newline at end of file diff --git a/docs/dist/esm/rat.lightbox.min.js b/docs/dist/esm/rat.lightbox.min.js index 9f59ff0..1566a1e 100644 --- a/docs/dist/esm/rat.lightbox.min.js +++ b/docs/dist/esm/rat.lightbox.min.js @@ -1,2 +1,2 @@ /*! @rat.md/bs-lightbox | @version 1.1.0 | @license MIT | @copyright rat.md */ -class t{constructor(e,s={}){this.items=new Map,this.events=new Map;let i=e.dataset.bsGallery||e.dataset.gallery||e;if(t.instances.has(i))throw new Error("An instance with the passed element or gallery has already been created.");t.instances.set(i,this),this.legacy="4"===t.CAROUSEL.VERSION[0];let a=t.DEFAULTS;this.config={carousel:Object.assign({},a.carousel,s.carousel||{}),lightbox:Object.assign({},a.lightbox,s.lightbox||{}),modal:Object.assign({},a.modal,s.modal||{})},this.append(e),this.onKeyUpListener=this._onKeyUp.bind(this)}static get NAME(){return"lightbox"}static get VERSION(){return"1.1.0"}static get DEFAULTS(){return{carousel:{id:null,controls:!0,indicators:!1,interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lightbox:{loader:!1,replacePictures:!1},modal:{id:null,backdrop:!0,focus:!0,keyboard:!0,size:"xl"}}}static get $(){let e=t._jquery||window.$||window.jQuery;if(!e)throw new Error("No jQuery object found, please use Lightbox.$ = .");return e}static set $(e){t._jquery=e}static get CAROUSEL(){let e=t._carousel||(window.bootstrap||window.Bootstrap||{}).Carousel;if(!e)throw new Error("No Bootstrap Carousel prototype found, please use Lightbox.CAROUSEL = .");return e}static set CAROUSEL(e){t._carousel=e}static get MODAL(){let e=t._modal||(window.bootstrap||window.Bootstrap||{}).Modal;if(!e)throw new Error("No Bootstrap Modal prototype found, please use Lightbox.MODAL = .");return e}static set MODAL(e){t._modal=e}static get SELECTOR(){return'[data-toggle="lightbox"],[data-bs-toggle="lightbox"],[data-rat-lightbox]'}static invoke(t=null,e={}){return t="string"!=typeof t?this.SELECTOR:t,Array.from(document.querySelectorAll(t),(t=>this.getOrCreateInstance(t,e)))}static hasInstance(t){if("string"==typeof t)return this.instances.has(t);{let e=t.hasAttribute("data-bs-gallery")?t.dataset.bsGallery:t;return this.instances.has(e)}}static getInstance(t){if("string"==typeof t)return this.instances.has(t)?this.instances.get(t):null;{let e=t.dataset.bsGallery||t.dataset.gallery||t;return this.instances.has(e)?this.instances.get(e):null}}static getOrCreateInstance(t,e={}){let s=this.getInstance(t);return null===s?s=new this(t,e):s.append(t),s}_onKeyUp(t){"ArrowRight"===t.key?this.next():"ArrowLeft"===t.key&&this.prev()}_createLightbox(){let t="";this.config.carousel.controls&&this.items.size>1&&(t=`\n \n \n `);let e="";this.config.carousel.indicators&&this.items.size>1&&(e=`\n \n `);let s=document.createElement("DIV");s.className="modal modal-lightbox fade",s.tabIndex=-1,s.innerHTML=`\n \n `,this.lightbox=s}_createModal(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.modal,{show:!1});this.modal=t.$(this.lightbox).modal(e)}else this.modal=t.MODAL.getOrCreateInstance(this.lightbox,this.config.modal)}_createCarousel(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.carousel);e.ride||(e.interval=!1),this.carousel=t.$(this.lightbox.querySelector(".carousel")).carousel(e)}else this.carousel=t.CAROUSEL.getOrCreateInstance(this.lightbox.querySelector(".carousel"),this.config.carousel)}dispose(){return document.removeEventListener("keyup",this.onKeyUpListener),this.carousel&&(this.legacy?this.carousel.carousel("dispose"):this.carousel.dispose(),this.carousel=null),this.modal&&(this.legacy?this.modal.modal("dispose"):this.modal.dispose(),this.modal=null),this.lightbox&&this.lightbox.parentElement&&this.lightbox.remove(),this.lightbox=null,this}_getImage(t){if(t instanceof HTMLImageElement||t instanceof HTMLPictureElement)return t;return t.querySelector("picture,img")}_getTitle(t,e){let s=t.dataset.bsTitle||t.dataset.title||t.title||null;return s||t===e||(s=e.dataset.bsTitle||e.dataset.title||null),s}_getCaption(t,e){if("FIGURE"!==t.tagName.toUpperCase()){let s=t.dataset.bsCaption||t.dataset.caption||null;return s||(s=e.dataset.bsCaption||e.dataset.caption||null),s}{let e=t.querySelector("FIGCAPTION");if(e&&e.innerText.trim().length>0)return e.innerText.trim()}}append(t){if(this.items.has(t))return this;let e=this._getImage(t);if(null===e)throw new Error(`The passed element is not nor contains a supported image source. Element HTML: ${t.outerHTML}.`);let s=e.cloneNode(!0);return s.className="w-100",t instanceof HTMLAnchorElement&&t.href.length>0&&(s instanceof HTMLImageElement?s.src=t.href:s instanceof HTMLPictureElement&&this.config.lightbox.replacePictures&&(s.querySelector("img").src=t.href,Array.from(s.querySelectorAll("source"),(t=>t.remove())))),this.items.set(t,{source:t,image:s,title:this._getTitle(t,s),caption:this._getCaption(t,s)}),t.setAttribute(this.legacy?"data-slide-to":"data-bs-slide-to",(this.items.size-1).toString()),t.addEventListener("click",(e=>{e.preventDefault(),this.show(t)})),this}toggle(){return this.lightbox?this.hide():this.show()}show(t=null){if(this.lightbox)return this;if(this._createLightbox(),this._createModal(),this._createCarousel(),this.legacy){let t=["slid.bs.carousel","slide.bs.carousel","hide.bs.modal","hidden.bs.modal","hidePrevented.bs.modal","show.bs.modal","shown.bs.modal"];for(let e of t)(e.endsWith("modal")?this.modal:this.carousel).on(e,(t=>{(e.endsWith("modal")?this.lightbox:this.lightbox.querySelector(".carousel")).dispatchEvent(new Event(e,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))}))}t instanceof HTMLElement&&(t.dataset.bsSlideTo||t.dataset.slideTo)&&this.lightbox.addEventListener("show.bs.modal",(e=>{let s=parseInt(t.dataset.bsSlideTo||t.dataset.slideTo,10);this.legacy?this.carousel.carousel(s):this.carousel.to(s)})),this.config.lightbox.loader&&this.lightbox.addEventListener("show.bs.modal",(t=>{Array.from(this.lightbox.querySelectorAll("[data-img-src]"),(t=>{let e=document.createElement("IMG");e.className="w-100",e.onload=s=>{t.replaceWith(e)},e.src=t.dataset.imgSrc}))}));let e=this.lightbox.querySelector(".carousel");for(let[t,s]of this.events.entries())t.endsWith("modal")&&s.forEach((e=>this.lightbox.addEventListener(t,e))),t.endsWith("carousel")&&s.forEach((s=>e.addEventListener(t,s)));return this.config.carousel.keyboard&&document.addEventListener("keyup",this.onKeyUpListener),this.lightbox.addEventListener("hidden.bs.modal",this.dispose.bind(this)),this.legacy?this.modal.modal("show"):this.modal.show(),this}hide(){return this.modal&&(this.legacy?this.modal.modal("hide"):this.modal.hide()),this}cycle(){return this.carousel&&(this.legacy?this.carousel.carousel("cycle"):this.carousel.cycle()),this}next(){return this.carousel&&(this.legacy?this.carousel.carousel("next"):this.carousel.next()),this}prev(){return this.carousel&&(this.legacy?this.carousel.carousel("prev"):this.carousel.prev()),this}to(t){return this.carousel?("prev"===t||"previous"===t?this.prev():"next"===t?this.next():this.legacy?this.carousel.carousel(t):this.carousel.to(t),this):this}on(t,e){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(e),this}off(t,e){return this.events.has(t)&&this.events.get(t).delete(e),this.lightbox&&t.endsWith("modal")&&this.lightbox.removeEventListener(t,e),this.lightbox&&t.endsWith("carousel")&&this.lightbox.querySelector(".carousel").removeEventListener(t,e),this}}t._jquery=null,t._carousel=null,t._modal=null,t.instances=new Map;export{t as default};//# sourceMappingURL=rat.lightbox.min.js.map +class t{static get NAME(){return"lightbox"}static get VERSION(){return"1.1.0"}static get DEFAULTS(){return{carousel:{id:null,controls:!0,indicators:!1,interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lightbox:{loader:!1,replacePictures:!1},modal:{id:null,backdrop:!0,focus:!0,keyboard:!0,size:"xl"}}}static get $(){let e=t._jquery||window.$||window.jQuery;if(!e)throw new Error("No jQuery object found, please use Lightbox.$ = .");return e}static set $(e){t._jquery=e}static get CAROUSEL(){let e=t._carousel||(window.bootstrap||window.Bootstrap||{}).Carousel;if(!e)throw new Error("No Bootstrap Carousel prototype found, please use Lightbox.CAROUSEL = .");return e}static set CAROUSEL(e){t._carousel=e}static get MODAL(){let e=t._modal||(window.bootstrap||window.Bootstrap||{}).Modal;if(!e)throw new Error("No Bootstrap Modal prototype found, please use Lightbox.MODAL = .");return e}static set MODAL(e){t._modal=e}static get SELECTOR(){return'[data-toggle="lightbox"],[data-bs-toggle="lightbox"],[data-rat-lightbox]'}static invoke(t=null,e={}){return t="string"!=typeof t?this.SELECTOR:t,Array.from(document.querySelectorAll(t),(t=>this.getOrCreateInstance(t,e)))}static hasInstance(t){if("string"==typeof t)return this.instances.has(t);{let e=t.hasAttribute("data-bs-gallery")?t.dataset.bsGallery:t;return this.instances.has(e)}}static getInstance(t){if("string"==typeof t)return this.instances.has(t)?this.instances.get(t):null;{let e=t.dataset.bsGallery||t.dataset.gallery||t;return this.instances.has(e)?this.instances.get(e):null}}static getOrCreateInstance(t,e={}){let s=this.getInstance(t);return null===s?s=new this(t,e):s.append(t),s}constructor(e,s={}){this.items=new Map,this.events=new Map;let i=e.dataset.bsGallery||e.dataset.gallery||e;if(t.instances.has(i))throw new Error("An instance with the passed element or gallery has already been created.");t.instances.set(i,this),this.legacy="4"===t.CAROUSEL.VERSION[0];let a=t.DEFAULTS;this.config={carousel:Object.assign({},a.carousel,s.carousel||{}),lightbox:Object.assign({},a.lightbox,s.lightbox||{}),modal:Object.assign({},a.modal,s.modal||{})},this.append(e),this.onKeyUpListener=this._onKeyUp.bind(this)}_onKeyUp(t){"ArrowRight"===t.key?this.next():"ArrowLeft"===t.key&&this.prev()}_createLightbox(){let t="";this.config.carousel.controls&&this.items.size>1&&(t=`\n \n \n `);let e="";this.config.carousel.indicators&&this.items.size>1&&(e=`\n \n `);let s=document.createElement("DIV");s.className="modal modal-lightbox fade",s.tabIndex=-1,s.innerHTML=`\n \n `,this.lightbox=s}_createModal(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.modal,{show:!1});this.modal=t.$(this.lightbox).modal(e)}else this.modal=t.MODAL.getOrCreateInstance(this.lightbox,this.config.modal)}_createCarousel(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.carousel);e.ride||(e.interval=!1),this.carousel=t.$(this.lightbox.querySelector(".carousel")).carousel(e)}else this.carousel=t.CAROUSEL.getOrCreateInstance(this.lightbox.querySelector(".carousel"),this.config.carousel)}dispose(){return document.removeEventListener("keyup",this.onKeyUpListener),this.carousel&&(this.legacy?this.carousel.carousel("dispose"):this.carousel.dispose(),this.carousel=null),this.modal&&(this.legacy?this.modal.modal("dispose"):this.modal.dispose(),this.modal=null),this.lightbox&&this.lightbox.parentElement&&this.lightbox.remove(),this.lightbox=null,this}_getImage(t){if(t instanceof HTMLImageElement||t instanceof HTMLPictureElement)return t;return t.querySelector("picture,img")}_getTitle(t,e){let s=t.dataset.bsTitle||t.dataset.title||t.title||null;return s||t===e||(s=e.dataset.bsTitle||e.dataset.title||null),s}_getCaption(t,e){if("FIGURE"!==t.tagName.toUpperCase()){let s=t.dataset.bsCaption||t.dataset.caption||null;return s||(s=e.dataset.bsCaption||e.dataset.caption||null),s}{let e=t.querySelector("FIGCAPTION");if(e&&e.innerText.trim().length>0)return e.innerText.trim()}}append(t){if(this.items.has(t))return this;let e=this._getImage(t);if(null===e)throw new Error(`The passed element is not nor contains a supported image source. Element HTML: ${t.outerHTML}.`);let s=e.cloneNode(!0);return s.className="w-100",t instanceof HTMLAnchorElement&&t.href.length>0&&(s instanceof HTMLImageElement?s.src=t.href:s instanceof HTMLPictureElement&&this.config.lightbox.replacePictures&&(s.querySelector("img").src=t.href,Array.from(s.querySelectorAll("source"),(t=>t.remove())))),this.items.set(t,{source:t,image:s,title:this._getTitle(t,s),caption:this._getCaption(t,s)}),t.setAttribute(this.legacy?"data-slide-to":"data-bs-slide-to",(this.items.size-1).toString()),t.addEventListener("click",(e=>{e.preventDefault(),this.show(t)})),this}toggle(){return this.lightbox?this.hide():this.show()}show(t=null){if(this.lightbox)return this;if(this._createLightbox(),this._createModal(),this._createCarousel(),this.legacy){let t=["slid.bs.carousel","slide.bs.carousel","hide.bs.modal","hidden.bs.modal","hidePrevented.bs.modal","show.bs.modal","shown.bs.modal"];for(let e of t)(e.endsWith("modal")?this.modal:this.carousel).on(e,(t=>{(e.endsWith("modal")?this.lightbox:this.lightbox.querySelector(".carousel")).dispatchEvent(new Event(e,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))}))}t instanceof HTMLElement&&(t.dataset.bsSlideTo||t.dataset.slideTo)&&this.lightbox.addEventListener("show.bs.modal",(e=>{let s=parseInt(t.dataset.bsSlideTo||t.dataset.slideTo,10);this.legacy?this.carousel.carousel(s):this.carousel.to(s)})),this.config.lightbox.loader&&this.lightbox.addEventListener("show.bs.modal",(t=>{Array.from(this.lightbox.querySelectorAll("[data-img-src]"),(t=>{let e=document.createElement("IMG");e.className="w-100",e.onload=s=>{t.replaceWith(e)},e.src=t.dataset.imgSrc}))}));let e=this.lightbox.querySelector(".carousel");for(let[t,s]of this.events.entries())t.endsWith("modal")&&s.forEach((e=>this.lightbox.addEventListener(t,e))),t.endsWith("carousel")&&s.forEach((s=>e.addEventListener(t,s)));return this.config.carousel.keyboard&&document.addEventListener("keyup",this.onKeyUpListener),this.lightbox.addEventListener("hidden.bs.modal",this.dispose.bind(this)),this.legacy?this.modal.modal("show"):this.modal.show(),this}hide(){return this.modal&&(this.legacy?this.modal.modal("hide"):this.modal.hide()),this}cycle(){return this.carousel&&(this.legacy?this.carousel.carousel("cycle"):this.carousel.cycle()),this}next(){return this.carousel&&(this.legacy?this.carousel.carousel("next"):this.carousel.next()),this}prev(){return this.carousel&&(this.legacy?this.carousel.carousel("prev"):this.carousel.prev()),this}to(t){return this.carousel?("prev"===t||"previous"===t?this.prev():"next"===t?this.next():this.legacy?this.carousel.carousel(t):this.carousel.to(t),this):this}on(t,e){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(e),this}off(t,e){return this.events.has(t)&&this.events.get(t).delete(e),this.lightbox&&t.endsWith("modal")&&this.lightbox.removeEventListener(t,e),this.lightbox&&t.endsWith("carousel")&&this.lightbox.querySelector(".carousel").removeEventListener(t,e),this}}t._jquery=null,t._carousel=null,t._modal=null,t.instances=new Map;export{t as default};//# sourceMappingURL=rat.lightbox.min.js.map diff --git a/docs/dist/esm/rat.lightbox.min.js.map b/docs/dist/esm/rat.lightbox.min.js.map index 9d63dfa..c4c1e20 100644 --- a/docs/dist/esm/rat.lightbox.min.js.map +++ b/docs/dist/esm/rat.lightbox.min.js.map @@ -1 +1 @@ -{"version":3,"file":"rat.lightbox.min.js","sources":["../../src/ts/Lightbox.ts"],"sourcesContent":[null],"names":["Lightbox","constructor","element","config","this","items","Map","events","key","dataset","bsGallery","gallery","instances","has","Error","set","legacy","CAROUSEL","VERSION","defaults","DEFAULTS","carousel","Object","assign","lightbox","modal","append","onKeyUpListener","_onKeyUp","bind","NAME","id","controls","indicators","interval","keyboard","pause","ride","touch","wrap","loader","replacePictures","backdrop","focus","size","$","jquery","_jquery","window","jQuery","_carousel","Carousel","object","MODAL","_modal","Modal","SELECTOR","static","selector","Array","from","document","querySelectorAll","el","getOrCreateInstance","source","hasAttribute","get","instance","getInstance","event","next","prev","_createLightbox","map","_","idx","join","createElement","className","tabIndex","innerHTML","values","item","image","HTMLImageElement","src","querySelector","outerHTML","caption","title","_createModal","show","_createCarousel","dispose","removeEventListener","parentElement","remove","_getImage","HTMLPictureElement","_getTitle","bsTitle","_getCaption","tagName","toUpperCase","bsCaption","temp","innerText","trim","length","original","cloneNode","HTMLAnchorElement","href","e","setAttribute","toString","addEventListener","ev","preventDefault","toggle","hide","endsWith","on","dispatchEvent","Event","bubbles","cancelable","composed","HTMLElement","bsSlideTo","slideTo","number","parseInt","to","onload","replaceWith","imgSrc","entries","forEach","c","cycle","direction","caller","Set","add","off","delete"],"mappings":";AAIA,MAAMA,EAwOFC,YAAmBC,EAAsBC,EAAkC,IAhCpEC,KAAKC,MAAmC,IAAIC,IAK5CF,KAAMG,OAAgD,IAAID,IA4B7D,IAAIE,EAAMN,EAAQO,QAAQC,WAAaR,EAAQO,QAAQE,SAAWT,EAClE,GAAIF,EAASY,UAAUC,IAAIL,GACvB,MAAM,IAAIM,MAAM,4EAEpBd,EAASY,UAAUG,IAAIP,EAAKJ,MAG5BA,KAAKY,OAA0C,MAAjChB,EAASiB,SAASC,QAAQ,GAGxC,IAAIC,EAAWnB,EAASoB,SACxBhB,KAAKD,OAAS,CACVkB,SAAUC,OAAOC,OAAO,CAAE,EAAEJ,EAASE,SAAUlB,EAAOkB,UAAY,IAClEG,SAAUF,OAAOC,OAAO,CAAE,EAAEJ,EAASK,SAAUrB,EAAOqB,UAAY,IAClEC,MAAOH,OAAOC,OAAO,CAAE,EAAEJ,EAASM,MAAOtB,EAAOsB,OAAS,KAI7DrB,KAAKsB,OAAOxB,GAGZE,KAAKuB,gBAAkBvB,KAAKwB,SAASC,KAAKzB,KAC7C,CA3OU0B,kBACP,MAAO,UACV,CAKUZ,qBACP,MAAO,OACV,CAKUE,sBACP,MAAO,CACHC,SAAU,CACNU,GAAI,KACJC,UAAU,EACVC,YAAY,EACZC,SAAU,IACVC,UAAU,EACVC,MAAO,QACPC,MAAM,EACNC,OAAO,EACPC,MAAM,GAEVf,SAAU,CACNgB,QAAQ,EACRC,iBAAiB,GAErBh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ts"],"sourcesContent":[null],"names":["Lightbox","NAME","VERSION","DEFAULTS","carousel","id","controls","indicators","interval","keyboard","pause","ride","touch","wrap","lightbox","loader","replacePictures","modal","backdrop","focus","size","$","jquery","_jquery","window","Error","jQuery","CAROUSEL","_carousel","Carousel","object","MODAL","_modal","Modal","SELECTOR","static","selector","config","this","Array","from","document","querySelectorAll","el","getOrCreateInstance","source","instances","has","key","hasAttribute","dataset","bsGallery","get","gallery","element","instance","getInstance","append","constructor","items","Map","events","set","legacy","defaults","Object","assign","onKeyUpListener","_onKeyUp","bind","event","next","prev","_createLightbox","map","_","idx","join","createElement","className","tabIndex","innerHTML","values","item","image","HTMLImageElement","src","querySelector","outerHTML","caption","title","_createModal","show","_createCarousel","dispose","removeEventListener","parentElement","remove","_getImage","HTMLPictureElement","_getTitle","bsTitle","_getCaption","tagName","toUpperCase","bsCaption","temp","innerText","trim","length","original","cloneNode","HTMLAnchorElement","href","e","setAttribute","toString","addEventListener","ev","preventDefault","toggle","hide","endsWith","on","dispatchEvent","Event","bubbles","cancelable","composed","HTMLElement","bsSlideTo","slideTo","number","parseInt","to","onload","replaceWith","imgSrc","entries","forEach","c","cycle","direction","caller","Set","add","off","delete"],"mappings":";AAIA,MAAMA,EAoBSC,kBACP,MAAO,UACV,CAKUC,qBACP,MAAO,OACV,CAKUC,sBACP,MAAO,CACHC,SAAU,CACNC,GAAI,KACJC,UAAU,EACVC,YAAY,EACZC,SAAU,IACVC,UAAU,EACVC,MAAO,QACPC,MAAM,EACNC,OAAO,EACPC,MAAM,GAEVC,SAAU,CACNC,QAAQ,EACRC,iBAAiB,GAErBC,MAAO,CACHZ,GAAI,KACJa,UAAU,EACVC,OAAO,EACPV,UAAU,EACVW,KAAM,MAGjB,CAKUC,eACP,IAAIC,EAAUtB,EAASuB,SAAWC,OAAU,GAAKA,OAAe,OAChE,IAAKF,EACD,MAAM,IAAIG,MAAM,6DAEpB,OAAOH,CACV,CAKUD,aAAEK,GACT1B,EAASuB,QAAUG,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ChBhC,KAAKuB,OAAOT,IAAIkB,GAAO6E,OAAOJ,GAG9BzG,KAAKxB,UAAYwD,EAAMoD,SAAS,UAChCpF,KAAKxB,SAASiF,oBAAoBzB,EAAOyE,GAEzCzG,KAAKxB,UAAYwD,EAAMoD,SAAS,aAChCpF,KAAKxB,SAASyE,cAAc,aAAaQ,oBAAoBzB,EAAOyE,GAEjEzG,IACV,EA5sBctC,EAAOuB,QAAG,KAKVvB,EAAS4B,UAAG,KAKZ5B,EAAMgC,OAAG,KAgHVhC,EAAA8C,UAA+C,IAAIc,WAA1C5D"} \ No newline at end of file diff --git a/docs/dist/js/rat.lightbox.js b/docs/dist/js/rat.lightbox.js index 5286fbc..76971e3 100644 --- a/docs/dist/js/rat.lightbox.js +++ b/docs/dist/js/rat.lightbox.js @@ -6,7 +6,7 @@ | | @website https://github.com/RatMD/bs-lightbox | @license MIT License -| @copyright Copyright © 2021 - 2022 rat.md +| @copyright Copyright © 2021 - 2023 rat.md */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : @@ -16,24 +16,6 @@ "use strict"; class Lightbox { - constructor(element, config = {}) { - this.items = new Map; - this.events = new Map; - let key = element.dataset.bsGallery || element.dataset.gallery || element; - if (Lightbox.instances.has(key)) { - throw new Error('An instance with the passed element or gallery has already been created.'); - } - Lightbox.instances.set(key, this); - this.legacy = Lightbox.CAROUSEL.VERSION[0] === '4'; - let defaults = Lightbox.DEFAULTS; - this.config = { - carousel: Object.assign({}, defaults.carousel, config.carousel || {}), - lightbox: Object.assign({}, defaults.lightbox, config.lightbox || {}), - modal: Object.assign({}, defaults.modal, config.modal || {}) - }; - this.append(element); - this.onKeyUpListener = this._onKeyUp.bind(this); - } static get NAME() { return 'lightbox'; } @@ -135,6 +117,24 @@ } return instance; } + constructor(element, config = {}) { + this.items = new Map; + this.events = new Map; + let key = element.dataset.bsGallery || element.dataset.gallery || element; + if (Lightbox.instances.has(key)) { + throw new Error('An instance with the passed element or gallery has already been created.'); + } + Lightbox.instances.set(key, this); + this.legacy = Lightbox.CAROUSEL.VERSION[0] === '4'; + let defaults = Lightbox.DEFAULTS; + this.config = { + carousel: Object.assign({}, defaults.carousel, config.carousel || {}), + lightbox: Object.assign({}, defaults.lightbox, config.lightbox || {}), + modal: Object.assign({}, defaults.modal, config.modal || {}) + }; + this.append(element); + this.onKeyUpListener = this._onKeyUp.bind(this); + } _onKeyUp(event) { if (event.key === 'ArrowRight') { this.next(); diff --git a/docs/dist/js/rat.lightbox.js.map b/docs/dist/js/rat.lightbox.js.map index 23e11f3..bead4bd 100644 --- a/docs/dist/js/rat.lightbox.js.map +++ b/docs/dist/js/rat.lightbox.js.map @@ -1 +1 @@ -{"version":3,"file":"rat.lightbox.js","sources":["../../src/ts/Lightbox.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAIA,MAAM,QAAQ,CAAA;QAwOV,WAAmB,CAAA,OAAoB,EAAE,MAAA,GAAkC,EAAE,EAAA;YAhCtE,IAAK,CAAA,KAAA,GAAmC,IAAI,GAAG,CAAC;YAKhD,IAAM,CAAA,MAAA,GAAgD,IAAI,GAAG,CAAC;IA4BjE,QAAA,IAAI,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC;YAC1E,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;IAC7B,YAAA,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;IAC/F,SAAA;YACD,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAGlC,QAAA,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;IAGnD,QAAA,IAAI,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;YACjC,IAAI,CAAC,MAAM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jB,QAAM,CAAA,MAAA,GAAG,IAAH,CAAQ;IAgHf,QAAA,CAAA,SAAS,GAAsC,IAAI,GAA1C;;;;;;;;"} \ No newline at end of file diff --git a/docs/dist/js/rat.lightbox.min.js b/docs/dist/js/rat.lightbox.min.js index c6c6608..8d4b3f8 100644 --- a/docs/dist/js/rat.lightbox.min.js +++ b/docs/dist/js/rat.lightbox.min.js @@ -1,2 +1,2 @@ /*! @rat.md/bs-lightbox | @version 1.1.0 | @license MIT | @copyright rat.md */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rat.Lightbox",e):((t="undefined"!=typeof globalThis?globalThis:t||self).rat=t.rat||{},t.rat.Lightbox=e())}(this,(function(){"use strict";class t{constructor(e,s={}){this.items=new Map,this.events=new Map;let i=e.dataset.bsGallery||e.dataset.gallery||e;if(t.instances.has(i))throw new Error("An instance with the passed element or gallery has already been created.");t.instances.set(i,this),this.legacy="4"===t.CAROUSEL.VERSION[0];let a=t.DEFAULTS;this.config={carousel:Object.assign({},a.carousel,s.carousel||{}),lightbox:Object.assign({},a.lightbox,s.lightbox||{}),modal:Object.assign({},a.modal,s.modal||{})},this.append(e),this.onKeyUpListener=this._onKeyUp.bind(this)}static get NAME(){return"lightbox"}static get VERSION(){return"1.1.0"}static get DEFAULTS(){return{carousel:{id:null,controls:!0,indicators:!1,interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lightbox:{loader:!1,replacePictures:!1},modal:{id:null,backdrop:!0,focus:!0,keyboard:!0,size:"xl"}}}static get $(){let e=t._jquery||window.$||window.jQuery;if(!e)throw new Error("No jQuery object found, please use Lightbox.$ = .");return e}static set $(e){t._jquery=e}static get CAROUSEL(){let e=t._carousel||(window.bootstrap||window.Bootstrap||{}).Carousel;if(!e)throw new Error("No Bootstrap Carousel prototype found, please use Lightbox.CAROUSEL = .");return e}static set CAROUSEL(e){t._carousel=e}static get MODAL(){let e=t._modal||(window.bootstrap||window.Bootstrap||{}).Modal;if(!e)throw new Error("No Bootstrap Modal prototype found, please use Lightbox.MODAL = .");return e}static set MODAL(e){t._modal=e}static get SELECTOR(){return'[data-toggle="lightbox"],[data-bs-toggle="lightbox"],[data-rat-lightbox]'}static invoke(t=null,e={}){return t="string"!=typeof t?this.SELECTOR:t,Array.from(document.querySelectorAll(t),(t=>this.getOrCreateInstance(t,e)))}static hasInstance(t){if("string"==typeof t)return this.instances.has(t);{let e=t.hasAttribute("data-bs-gallery")?t.dataset.bsGallery:t;return this.instances.has(e)}}static getInstance(t){if("string"==typeof t)return this.instances.has(t)?this.instances.get(t):null;{let e=t.dataset.bsGallery||t.dataset.gallery||t;return this.instances.has(e)?this.instances.get(e):null}}static getOrCreateInstance(t,e={}){let s=this.getInstance(t);return null===s?s=new this(t,e):s.append(t),s}_onKeyUp(t){"ArrowRight"===t.key?this.next():"ArrowLeft"===t.key&&this.prev()}_createLightbox(){let t="";this.config.carousel.controls&&this.items.size>1&&(t=`\n \n \n `);let e="";this.config.carousel.indicators&&this.items.size>1&&(e=`\n \n `);let s=document.createElement("DIV");s.className="modal modal-lightbox fade",s.tabIndex=-1,s.innerHTML=`\n \n `,this.lightbox=s}_createModal(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.modal,{show:!1});this.modal=t.$(this.lightbox).modal(e)}else this.modal=t.MODAL.getOrCreateInstance(this.lightbox,this.config.modal)}_createCarousel(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.carousel);e.ride||(e.interval=!1),this.carousel=t.$(this.lightbox.querySelector(".carousel")).carousel(e)}else this.carousel=t.CAROUSEL.getOrCreateInstance(this.lightbox.querySelector(".carousel"),this.config.carousel)}dispose(){return document.removeEventListener("keyup",this.onKeyUpListener),this.carousel&&(this.legacy?this.carousel.carousel("dispose"):this.carousel.dispose(),this.carousel=null),this.modal&&(this.legacy?this.modal.modal("dispose"):this.modal.dispose(),this.modal=null),this.lightbox&&this.lightbox.parentElement&&this.lightbox.remove(),this.lightbox=null,this}_getImage(t){if(t instanceof HTMLImageElement||t instanceof HTMLPictureElement)return t;return t.querySelector("picture,img")}_getTitle(t,e){let s=t.dataset.bsTitle||t.dataset.title||t.title||null;return s||t===e||(s=e.dataset.bsTitle||e.dataset.title||null),s}_getCaption(t,e){if("FIGURE"!==t.tagName.toUpperCase()){let s=t.dataset.bsCaption||t.dataset.caption||null;return s||(s=e.dataset.bsCaption||e.dataset.caption||null),s}{let e=t.querySelector("FIGCAPTION");if(e&&e.innerText.trim().length>0)return e.innerText.trim()}}append(t){if(this.items.has(t))return this;let e=this._getImage(t);if(null===e)throw new Error(`The passed element is not nor contains a supported image source. Element HTML: ${t.outerHTML}.`);let s=e.cloneNode(!0);return s.className="w-100",t instanceof HTMLAnchorElement&&t.href.length>0&&(s instanceof HTMLImageElement?s.src=t.href:s instanceof HTMLPictureElement&&this.config.lightbox.replacePictures&&(s.querySelector("img").src=t.href,Array.from(s.querySelectorAll("source"),(t=>t.remove())))),this.items.set(t,{source:t,image:s,title:this._getTitle(t,s),caption:this._getCaption(t,s)}),t.setAttribute(this.legacy?"data-slide-to":"data-bs-slide-to",(this.items.size-1).toString()),t.addEventListener("click",(e=>{e.preventDefault(),this.show(t)})),this}toggle(){return this.lightbox?this.hide():this.show()}show(t=null){if(this.lightbox)return this;if(this._createLightbox(),this._createModal(),this._createCarousel(),this.legacy){let t=["slid.bs.carousel","slide.bs.carousel","hide.bs.modal","hidden.bs.modal","hidePrevented.bs.modal","show.bs.modal","shown.bs.modal"];for(let e of t)(e.endsWith("modal")?this.modal:this.carousel).on(e,(t=>{(e.endsWith("modal")?this.lightbox:this.lightbox.querySelector(".carousel")).dispatchEvent(new Event(e,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))}))}t instanceof HTMLElement&&(t.dataset.bsSlideTo||t.dataset.slideTo)&&this.lightbox.addEventListener("show.bs.modal",(e=>{let s=parseInt(t.dataset.bsSlideTo||t.dataset.slideTo,10);this.legacy?this.carousel.carousel(s):this.carousel.to(s)})),this.config.lightbox.loader&&this.lightbox.addEventListener("show.bs.modal",(t=>{Array.from(this.lightbox.querySelectorAll("[data-img-src]"),(t=>{let e=document.createElement("IMG");e.className="w-100",e.onload=s=>{t.replaceWith(e)},e.src=t.dataset.imgSrc}))}));let e=this.lightbox.querySelector(".carousel");for(let[t,s]of this.events.entries())t.endsWith("modal")&&s.forEach((e=>this.lightbox.addEventListener(t,e))),t.endsWith("carousel")&&s.forEach((s=>e.addEventListener(t,s)));return this.config.carousel.keyboard&&document.addEventListener("keyup",this.onKeyUpListener),this.lightbox.addEventListener("hidden.bs.modal",this.dispose.bind(this)),this.legacy?this.modal.modal("show"):this.modal.show(),this}hide(){return this.modal&&(this.legacy?this.modal.modal("hide"):this.modal.hide()),this}cycle(){return this.carousel&&(this.legacy?this.carousel.carousel("cycle"):this.carousel.cycle()),this}next(){return this.carousel&&(this.legacy?this.carousel.carousel("next"):this.carousel.next()),this}prev(){return this.carousel&&(this.legacy?this.carousel.carousel("prev"):this.carousel.prev()),this}to(t){return this.carousel?("prev"===t||"previous"===t?this.prev():"next"===t?this.next():this.legacy?this.carousel.carousel(t):this.carousel.to(t),this):this}on(t,e){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(e),this}off(t,e){return this.events.has(t)&&this.events.get(t).delete(e),this.lightbox&&t.endsWith("modal")&&this.lightbox.removeEventListener(t,e),this.lightbox&&t.endsWith("carousel")&&this.lightbox.querySelector(".carousel").removeEventListener(t,e),this}}return t._jquery=null,t._carousel=null,t._modal=null,t.instances=new Map,t}));//# sourceMappingURL=rat.lightbox.min.js.map +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rat.Lightbox",e):((t="undefined"!=typeof globalThis?globalThis:t||self).rat=t.rat||{},t.rat.Lightbox=e())}(this,(function(){"use strict";class t{static get NAME(){return"lightbox"}static get VERSION(){return"1.1.0"}static get DEFAULTS(){return{carousel:{id:null,controls:!0,indicators:!1,interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lightbox:{loader:!1,replacePictures:!1},modal:{id:null,backdrop:!0,focus:!0,keyboard:!0,size:"xl"}}}static get $(){let e=t._jquery||window.$||window.jQuery;if(!e)throw new Error("No jQuery object found, please use Lightbox.$ = .");return e}static set $(e){t._jquery=e}static get CAROUSEL(){let e=t._carousel||(window.bootstrap||window.Bootstrap||{}).Carousel;if(!e)throw new Error("No Bootstrap Carousel prototype found, please use Lightbox.CAROUSEL = .");return e}static set CAROUSEL(e){t._carousel=e}static get MODAL(){let e=t._modal||(window.bootstrap||window.Bootstrap||{}).Modal;if(!e)throw new Error("No Bootstrap Modal prototype found, please use Lightbox.MODAL = .");return e}static set MODAL(e){t._modal=e}static get SELECTOR(){return'[data-toggle="lightbox"],[data-bs-toggle="lightbox"],[data-rat-lightbox]'}static invoke(t=null,e={}){return t="string"!=typeof t?this.SELECTOR:t,Array.from(document.querySelectorAll(t),(t=>this.getOrCreateInstance(t,e)))}static hasInstance(t){if("string"==typeof t)return this.instances.has(t);{let e=t.hasAttribute("data-bs-gallery")?t.dataset.bsGallery:t;return this.instances.has(e)}}static getInstance(t){if("string"==typeof t)return this.instances.has(t)?this.instances.get(t):null;{let e=t.dataset.bsGallery||t.dataset.gallery||t;return this.instances.has(e)?this.instances.get(e):null}}static getOrCreateInstance(t,e={}){let s=this.getInstance(t);return null===s?s=new this(t,e):s.append(t),s}constructor(e,s={}){this.items=new Map,this.events=new Map;let i=e.dataset.bsGallery||e.dataset.gallery||e;if(t.instances.has(i))throw new Error("An instance with the passed element or gallery has already been created.");t.instances.set(i,this),this.legacy="4"===t.CAROUSEL.VERSION[0];let a=t.DEFAULTS;this.config={carousel:Object.assign({},a.carousel,s.carousel||{}),lightbox:Object.assign({},a.lightbox,s.lightbox||{}),modal:Object.assign({},a.modal,s.modal||{})},this.append(e),this.onKeyUpListener=this._onKeyUp.bind(this)}_onKeyUp(t){"ArrowRight"===t.key?this.next():"ArrowLeft"===t.key&&this.prev()}_createLightbox(){let t="";this.config.carousel.controls&&this.items.size>1&&(t=`\n \n \n `);let e="";this.config.carousel.indicators&&this.items.size>1&&(e=`\n \n `);let s=document.createElement("DIV");s.className="modal modal-lightbox fade",s.tabIndex=-1,s.innerHTML=`\n \n `,this.lightbox=s}_createModal(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.modal,{show:!1});this.modal=t.$(this.lightbox).modal(e)}else this.modal=t.MODAL.getOrCreateInstance(this.lightbox,this.config.modal)}_createCarousel(){if(null!==this.lightbox)if(this.legacy){let e=Object.assign({},this.config.carousel);e.ride||(e.interval=!1),this.carousel=t.$(this.lightbox.querySelector(".carousel")).carousel(e)}else this.carousel=t.CAROUSEL.getOrCreateInstance(this.lightbox.querySelector(".carousel"),this.config.carousel)}dispose(){return document.removeEventListener("keyup",this.onKeyUpListener),this.carousel&&(this.legacy?this.carousel.carousel("dispose"):this.carousel.dispose(),this.carousel=null),this.modal&&(this.legacy?this.modal.modal("dispose"):this.modal.dispose(),this.modal=null),this.lightbox&&this.lightbox.parentElement&&this.lightbox.remove(),this.lightbox=null,this}_getImage(t){if(t instanceof HTMLImageElement||t instanceof HTMLPictureElement)return t;return t.querySelector("picture,img")}_getTitle(t,e){let s=t.dataset.bsTitle||t.dataset.title||t.title||null;return s||t===e||(s=e.dataset.bsTitle||e.dataset.title||null),s}_getCaption(t,e){if("FIGURE"!==t.tagName.toUpperCase()){let s=t.dataset.bsCaption||t.dataset.caption||null;return s||(s=e.dataset.bsCaption||e.dataset.caption||null),s}{let e=t.querySelector("FIGCAPTION");if(e&&e.innerText.trim().length>0)return e.innerText.trim()}}append(t){if(this.items.has(t))return this;let e=this._getImage(t);if(null===e)throw new Error(`The passed element is not nor contains a supported image source. Element HTML: ${t.outerHTML}.`);let s=e.cloneNode(!0);return s.className="w-100",t instanceof HTMLAnchorElement&&t.href.length>0&&(s instanceof HTMLImageElement?s.src=t.href:s instanceof HTMLPictureElement&&this.config.lightbox.replacePictures&&(s.querySelector("img").src=t.href,Array.from(s.querySelectorAll("source"),(t=>t.remove())))),this.items.set(t,{source:t,image:s,title:this._getTitle(t,s),caption:this._getCaption(t,s)}),t.setAttribute(this.legacy?"data-slide-to":"data-bs-slide-to",(this.items.size-1).toString()),t.addEventListener("click",(e=>{e.preventDefault(),this.show(t)})),this}toggle(){return this.lightbox?this.hide():this.show()}show(t=null){if(this.lightbox)return this;if(this._createLightbox(),this._createModal(),this._createCarousel(),this.legacy){let t=["slid.bs.carousel","slide.bs.carousel","hide.bs.modal","hidden.bs.modal","hidePrevented.bs.modal","show.bs.modal","shown.bs.modal"];for(let e of t)(e.endsWith("modal")?this.modal:this.carousel).on(e,(t=>{(e.endsWith("modal")?this.lightbox:this.lightbox.querySelector(".carousel")).dispatchEvent(new Event(e,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))}))}t instanceof HTMLElement&&(t.dataset.bsSlideTo||t.dataset.slideTo)&&this.lightbox.addEventListener("show.bs.modal",(e=>{let s=parseInt(t.dataset.bsSlideTo||t.dataset.slideTo,10);this.legacy?this.carousel.carousel(s):this.carousel.to(s)})),this.config.lightbox.loader&&this.lightbox.addEventListener("show.bs.modal",(t=>{Array.from(this.lightbox.querySelectorAll("[data-img-src]"),(t=>{let e=document.createElement("IMG");e.className="w-100",e.onload=s=>{t.replaceWith(e)},e.src=t.dataset.imgSrc}))}));let e=this.lightbox.querySelector(".carousel");for(let[t,s]of this.events.entries())t.endsWith("modal")&&s.forEach((e=>this.lightbox.addEventListener(t,e))),t.endsWith("carousel")&&s.forEach((s=>e.addEventListener(t,s)));return this.config.carousel.keyboard&&document.addEventListener("keyup",this.onKeyUpListener),this.lightbox.addEventListener("hidden.bs.modal",this.dispose.bind(this)),this.legacy?this.modal.modal("show"):this.modal.show(),this}hide(){return this.modal&&(this.legacy?this.modal.modal("hide"):this.modal.hide()),this}cycle(){return this.carousel&&(this.legacy?this.carousel.carousel("cycle"):this.carousel.cycle()),this}next(){return this.carousel&&(this.legacy?this.carousel.carousel("next"):this.carousel.next()),this}prev(){return this.carousel&&(this.legacy?this.carousel.carousel("prev"):this.carousel.prev()),this}to(t){return this.carousel?("prev"===t||"previous"===t?this.prev():"next"===t?this.next():this.legacy?this.carousel.carousel(t):this.carousel.to(t),this):this}on(t,e){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(e),this}off(t,e){return this.events.has(t)&&this.events.get(t).delete(e),this.lightbox&&t.endsWith("modal")&&this.lightbox.removeEventListener(t,e),this.lightbox&&t.endsWith("carousel")&&this.lightbox.querySelector(".carousel").removeEventListener(t,e),this}}return t._jquery=null,t._carousel=null,t._modal=null,t.instances=new Map,t}));//# sourceMappingURL=rat.lightbox.min.js.map diff --git a/docs/dist/js/rat.lightbox.min.js.map b/docs/dist/js/rat.lightbox.min.js.map index 102a87b..40728e8 100644 --- a/docs/dist/js/rat.lightbox.min.js.map +++ b/docs/dist/js/rat.lightbox.min.js.map @@ -1 +1 @@ -{"version":3,"file":"rat.lightbox.min.js","sources":["../../src/ts/Lightbox.ts"],"sourcesContent":[null],"names":["Lightbox","constructor","element","config","this","items","Map","events","key","dataset","bsGallery","gallery","instances","has","Error","set","legacy","CAROUSEL","VERSION","defaults","DEFAULTS","carousel","Object","assign","lightbox","modal","append","onKeyUpListener","_onKeyUp","bind","NAME","id","controls","indicators","interval","keyboard","pause","ride","touch","wrap","loader","replacePictures","backdrop","focus","size","$","jquery","_jquery","window","jQuery","_carousel","Carousel","object","MODAL","_modal","Modal","SELECTOR","static","selector","Array","from","document","querySelectorAll","el","getOrCreateInstance","source","hasAttribute","get","instance","getInstance","event","next","prev","_createLightbox","map","_","idx","join","createElement","className","tabIndex","innerHTML","values","item","image","HTMLImageElement","src","querySelector","outerHTML","caption","title","_createModal","show","_createCarousel","dispose","removeEventListener","parentElement","remove","_getImage","HTMLPictureElement","_getTitle","bsTitle","_getCaption","tagName","toUpperCase","bsCaption","temp","innerText","trim","length","original","cloneNode","HTMLAnchorElement","href","e","setAttribute","toString","addEventListener","ev","preventDefault","toggle","hide","endsWith","on","dispatchEvent","Event","bubbles","cancelable","composed","HTMLElement","bsSlideTo","slideTo","number","parseInt","to","onload","replaceWith","imgSrc","entries","forEach","c","cycle","direction","caller","Set","add","off","delete"],"mappings":";8QAIA,MAAMA,EAwOFC,YAAmBC,EAAsBC,EAAkC,IAhCpEC,KAAKC,MAAmC,IAAIC,IAK5CF,KAAMG,OAAgD,IAAID,IA4B7D,IAAIE,EAAMN,EAAQO,QAAQC,WAAaR,EAAQO,QAAQE,SAAWT,EAClE,GAAIF,EAASY,UAAUC,IAAIL,GACvB,MAAM,IAAIM,MAAM,4EAEpBd,EAASY,UAAUG,IAAIP,EAAKJ,MAG5BA,KAAKY,OAA0C,MAAjChB,EAASiB,SAASC,QAAQ,GAGxC,IAAIC,EAAWnB,EAASoB,SACxBhB,KAAKD,OAAS,CACVkB,SAAUC,OAAOC,OAAO,CAAE,EAAEJ,EAASE,SAAUlB,EAAOkB,UAAY,IAClEG,SAAUF,OAAOC,OAAO,CAAE,EAAEJ,EAASK,SAAUrB,EAAOqB,UAAY,IAClEC,MAAOH,OAAOC,OAAO,CAAE,EAAEJ,EAASM,MAAOtB,EAAOsB,OAAS,KAI7DrB,KAAKsB,OAAOxB,GAGZE,KAAKuB,gBAAkBvB,KAAKwB,SAASC,KAAKzB,KAC7C,CA3OU0B,kBACP,MAAO,UACV,CAKUZ,qBACP,MAAO,OACV,CAKUE,sBACP,MAAO,CACHC,SAAU,CACNU,GAAI,KACJC,UAAU,EACVC,YAAY,EACZC,SAAU,IACVC,UAAU,EACVC,MAAO,QACPC,MAAM,EACNC,OAAO,EACPC,MAAM,GAEVf,SAAU,CACNgB,QAAQ,EACRC,iBAAiB,GAErBhB,MAAO,CACHM,GAAI,KACJW,UAAU,EACVC,OAAO,EACPR,UAAU,EACVS,KAAM,MAGjB,CAKUC,eACP,IAAIC,EAAU9C,EAAS+C,SAAWC,OAAU,GAAKA,OAAe,OAChE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CAMMmE,OAQH,OAPInE,KAAKiB,WACDjB,KAAKY,OACLZ,KAAKiB,SAASA,SAAS,QAEvBjB,KAAKiB,SAASkD,QAGfnE,IACV,CAMMoE,OAQH,OAPIpE,KAAKiB,WACDjB,KAAKY,OACLZ,KAAKiB,SAASA,SAAS,QAEvBjB,KAAKiB,SAASmD,QAGfpE,IACV,CAQMkI,GAAGQ,GACN,OAAK1I,KAAKiB,UAIQ,SAAdyH,GAAsC,aAAdA,EACxB1I,KAAKoE,OACgB,SAAdsE,EACP1I,KAAKmE,OAEDnE,KAAKY,OACLZ,KAAKiB,SAASA,SAASyH,GAEvB1I,KAAKiB,SAASiH,GAAGQ,GAGlB1I,MAdIA,IAed,CAQMuH,GAAGrD,EAA2ByE,GAKjC,OAJK3I,KAAKG,OAAOM,IAAIyD,IACjBlE,KAAKG,OAAOQ,IAAIuD,EAAO,IAAI0E,KAE/B5I,KAAKG,OAAO4D,IAAIG,GAAO2E,IAAIF,GACpB3I,IACV,CAQM8I,IAAI5E,EAA2ByE,GAWlC,OAVI3I,KAAKG,OAAOM,IAAIyD,IAChBlE,KAAKG,OAAO4D,IAAIG,GAAO6E,OAAOJ,GAG9B3I,KAAKoB,UAAY8C,EAAMoD,SAAS,UAChCtH,KAAKoB,SAASuE,oBAAoBzB,EAAOyE,GAEzC3I,KAAKoB,UAAY8C,EAAMoD,SAAS,aAChCtH,KAAKoB,SAAS+D,cAAc,aAAaQ,oBAAoBzB,EAAOyE,GAEjE3I,IACV,EAllBmE,OA1HrDJ,EAAO+C,QAAG,KAKV/C,EAASkD,UAAG,KAKZlD,EAAMsD,OAAG,KAgHVtD,EAASY,UAAsC,IAAIN,IAAGN,CAAA"} \ No newline at end of file +{"version":3,"file":"rat.lightbox.min.js","sources":["../../src/ts/lightbox.ts"],"sourcesContent":[null],"names":["Lightbox","NAME","VERSION","DEFAULTS","carousel","id","controls","indicators","interval","keyboard","pause","ride","touch","wrap","lightbox","loader","replacePictures","modal","backdrop","focus","size","$","jquery","_jquery","window","Error","jQuery","CAROUSEL","_carousel","Carousel","object","MODAL","_modal","Modal","SELECTOR","static","selector","config","this","Array","from","document","querySelectorAll","el","getOrCreateInstance","source","instances","has","key","hasAttribute","dataset","bsGallery","get","gallery","element","instance","getInstance","append","constructor","items","Map","events","set","legacy","defaults","Object","assign","onKeyUpListener","_onKeyUp","bind","event","next","prev","_createLightbox","map","_","idx","join","createElement","className","tabIndex","innerHTML","values","item","image","HTMLImageElement","src","querySelector","outerHTML","caption","title","_createModal","show","_createCarousel","dispose","removeEventListener","parentElement","remove","_getImage","HTMLPictureElement","_getTitle","bsTitle","_getCaption","tagName","toUpperCase","bsCaption","temp","innerText","trim","length","original","cloneNode","HTMLAnchorElement","href","e","setAttribute","toString","addEventListener","ev","preventDefault","toggle","hide","endsWith","on","dispatchEvent","Event","bubbles","cancelable","composed","HTMLElement","bsSlideTo","slideTo","number","parseInt","to","onload","replaceWith","imgSrc","entries","forEach","c","cycle","direction","caller","Set","add","off","delete"],"mappings":";8QAIA,MAAMA,EAoBSC,kBACP,MAAO,UACV,CAKUC,qBACP,MAAO,OACV,CAKUC,sBACP,MAAO,CACHC,SAAU,CACNC,GAAI,KACJC,UAAU,EACVC,YAAY,EACZC,SAAU,IACVC,UAAU,EACVC,MAAO,QACPC,MAAM,EACNC,OAAO,EACPC,MAAM,GAEVC,SAAU,CACNC,QAAQ,EACRC,iBAAiB,GAErBC,MAAO,CACHZ,GAAI,KACJa,UAAU,EACVC,OAAO,EACPV,UAAU,EACVW,KAAM,MAGjB,CAKUC,eACP,IAAIC,EAAUtB,EAASuB,SAAWC,OAAU,GAAKA,OAAe,OAChE,IAAKF,EACD,MAAM,IAAIG,MAAM,6DAEpB,OAAOH,CACV,CAKUD,aAAEK,GACT1B,EAASuB,QAAUG,CACtB,CAKUC,sBACP,IAAIvB,EAAYJ,EAAS4B,YAAcJ,OAAkB,WAAKA,OAAkB,WAAK,CAAA,GAAIK,SACzF,IAAKzB,EACD,MAAM,IAAIqB,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yE,GAEzCzG,KAAKxB,UAAYwD,EAAMoD,SAAS,aAChCpF,KAAKxB,SAASyE,cAAc,aAAaQ,oBAAoBzB,EAAOyE,GAEjEzG,IACV,EAllBsB,OA1HRtC,EAAOuB,QAAG,KAKVvB,EAAS4B,UAAG,KAKZ5B,EAAMgC,OAAG,KAgHVhC,EAAA8C,UAA+C,IAAIc,IAA1C5D,CAAA"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 18e6c6f..67584a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,647 +1,805 @@ { "name": "@rat.md/bs-lightbox", "version": "1.1.0", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dev": true, - "requires": { - "@babel/highlight": "^7.18.6" + "packages": { + "": { + "name": "@rat.md/bs-lightbox", + "version": "1.1.0", + "funding": [ + { + "type": "buymeacoffee", + "url": "https://buymeacoff.ee/ratmd" + } + ], + "license": "MIT", + "devDependencies": { + "@rollup/plugin-replace": "^5.0.2", + "@rollup/plugin-terser": "^0.4.3", + "@rollup/plugin-typescript": "^11.1.1", + "bootstrap": "^5.3.0", + "concurrently": "^8.2.0", + "rollup": "^3.25.1", + "tslib": "^2.5.3", + "typescript": "^5.1.3" } }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "node_modules/@babel/runtime": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.5.tgz", + "integrity": "sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==", "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" } }, - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, - "requires": { + "dependencies": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" } }, - "@jridgewell/resolve-uri": { + "node_modules/@jridgewell/resolve-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.0.0" + } }, - "@jridgewell/set-array": { + "node_modules/@jridgewell/set-array": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.0.0" + } }, - "@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "node_modules/@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", "dev": true, - "requires": { + "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" } }, - "@jridgewell/sourcemap-codec": { + "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", "dev": true }, - "@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", "dev": true, - "requires": { + "dependencies": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" } }, - "@rollup/plugin-replace": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-5.0.1.tgz", - "integrity": "sha512-Z3MfsJ4CK17BfGrZgvrcp/l6WXoKb0kokULO+zt/7bmcyayokDaQ2K3eDJcRLCTAlp5FPI4/gz9MHAsosz4Rag==", + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", "dev": true, - "requires": { + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@rollup/plugin-replace": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-5.0.2.tgz", + "integrity": "sha512-M9YXNekv/C/iHHK+cvORzfRYfPbq0RDD8r0G+bMiTXjNGKulPnCT9O3Ss46WfhI6ZOCgApOP7xAdmCQJ+U2LAA==", + "dev": true, + "dependencies": { "@rollup/pluginutils": "^5.0.1", - "magic-string": "^0.26.4" + "magic-string": "^0.27.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } } }, - "@rollup/plugin-typescript": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-9.0.2.tgz", - "integrity": "sha512-/sS93vmHUMjzDUsl5scNQr1mUlNE1QjBBvOhmRwJCH8k2RRhDIm3c977B3wdu3t3Ap17W6dDeXP3hj1P1Un1bA==", + "node_modules/@rollup/plugin-terser": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.3.tgz", + "integrity": "sha512-EF0oejTMtkyhrkwCdg0HJ0IpkcaVg1MMSf2olHb2Jp+1mnLM04OhjpJWGma4HobiDTF0WCyViWuvadyE9ch2XA==", "dev": true, - "requires": { + "dependencies": { + "serialize-javascript": "^6.0.1", + "smob": "^1.0.0", + "terser": "^5.17.4" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.x || ^3.x" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-terser/node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/@rollup/plugin-typescript": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-11.1.1.tgz", + "integrity": "sha512-Ioir+x5Bejv72Lx2Zbz3/qGg7tvGbxQZALCLoJaGrkNXak/19+vKgKYJYM3i/fJxvsb23I9FuFQ8CUBEfsmBRg==", + "dev": true, + "dependencies": { "@rollup/pluginutils": "^5.0.1", "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.14.0||^3.0.0", + "tslib": "*", + "typescript": ">=3.7.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + }, + "tslib": { + "optional": true + } } }, - "@rollup/pluginutils": { + "node_modules/@rollup/pluginutils": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.2.tgz", "integrity": "sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==", "dev": true, - "requires": { + "dependencies": { "@types/estree": "^1.0.0", "estree-walker": "^2.0.2", "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } } }, - "@types/estree": { + "node_modules/@types/estree": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.0.tgz", "integrity": "sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==", "dev": true }, - "@types/node": { - "version": "18.11.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", - "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", - "dev": true - }, - "acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", - "dev": true + "node_modules/acorn": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", + "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } }, - "ansi-regex": { + "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, - "requires": { - "color-convert": "^1.9.0" + "engines": { + "node": ">=8" } }, - "bootstrap": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.2.2.tgz", - "integrity": "sha512-dEtzMTV71n6Fhmbg4fYJzQsw1N29hJKO1js5ackCgIpDcGid2ETMGC6zwSYw09v05Y+oRdQ9loC54zB1La3hHQ==", - "dev": true + "node_modules/bootstrap": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.0.tgz", + "integrity": "sha512-UnBV3E3v4STVNQdms6jSGO2CvOkjUMdDAVR2V5N4uCMdaIkaQjbcEAMqRimDHIs4uqBYzDAKCQwCB+97tJgHQw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.7" + } }, - "buffer-from": { + "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "cliui": { + "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "requires": { + "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" } }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "commander": { + "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true }, - "concurrently": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-7.5.0.tgz", - "integrity": "sha512-5E3mwiS+i2JYBzr5BpXkFxOnleZTMsG+WnE/dCG4/P+oiVXrbmrBwJ2ozn4SxwB2EZDrKR568X+puVohxz3/Mg==", + "node_modules/concurrently": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-8.2.0.tgz", + "integrity": "sha512-nnLMxO2LU492mTUj9qX/az/lESonSZu81UznYDoXtz1IQf996ixVqPAgHXwvHiHCAef/7S8HIK+fTFK7Ifk8YA==", "dev": true, - "requires": { - "chalk": "^4.1.0", - "date-fns": "^2.29.1", + "dependencies": { + "chalk": "^4.1.2", + "date-fns": "^2.30.0", "lodash": "^4.17.21", - "rxjs": "^7.0.0", - "shell-quote": "^1.7.3", - "spawn-command": "^0.0.2-1", - "supports-color": "^8.1.0", + "rxjs": "^7.8.1", + "shell-quote": "^1.8.1", + "spawn-command": "0.0.2", + "supports-color": "^8.1.1", "tree-kill": "^1.2.2", - "yargs": "^17.3.1" + "yargs": "^17.7.2" + }, + "bin": { + "conc": "dist/bin/concurrently.js", + "concurrently": "dist/bin/concurrently.js" }, + "engines": { + "node": "^14.13.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/concurrently/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "date-fns": { - "version": "2.29.3", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", - "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==", + "node_modules/concurrently/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "emoji-regex": { + "node_modules/concurrently/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/concurrently/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.21.0" + }, + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, + "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "escalade": { + "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "estree-walker": { + "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", "dev": true }, - "fsevents": { + "node_modules/fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, - "optional": true + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } }, - "function-bind": { + "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "get-caller-file": { + "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } }, - "has": { + "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" } }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true - }, - "is-core-module": { + "node_modules/is-core-module": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", "dev": true, - "requires": { + "dependencies": { "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-fullwidth-code-point": { + "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=8" } }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "lodash": { + "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, - "magic-string": { - "version": "0.26.7", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.26.7.tgz", - "integrity": "sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==", + "node_modules/magic-string": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", + "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", "dev": true, - "requires": { - "sourcemap-codec": "^1.4.8" + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.13" + }, + "engines": { + "node": ">=12" } }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "path-parse": { + "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "picomatch": { + "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } }, - "randombytes": { + "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "^5.1.0" } }, - "require-directory": { + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true + }, + "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "resolve": { + "node_modules/resolve": { "version": "1.22.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dev": true, - "requires": { + "dependencies": { "is-core-module": "^2.9.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "rollup": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.2.5.tgz", - "integrity": "sha512-/Ha7HhVVofduy+RKWOQJrxe4Qb3xyZo+chcpYiD8SoQa4AG7llhupUtyfKSSrdBM2mWJjhM8wZwmbY23NmlIYw==", + "node_modules/rollup": { + "version": "3.25.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.25.1.tgz", + "integrity": "sha512-tywOR+rwIt5m2ZAWSe5AIJcTat8vGlnPFAv15ycCrw33t6iFsXZ6mzHVFh2psSjxQPmI+xgzMZZizUAukBI4aQ==", "dev": true, - "requires": { + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { "fsevents": "~2.3.2" } }, - "rollup-plugin-terser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", - "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", "dev": true, - "requires": { - "@babel/code-frame": "^7.10.4", - "jest-worker": "^26.2.1", - "serialize-javascript": "^4.0.0", - "terser": "^5.0.0" - } - }, - "rxjs": { - "version": "7.5.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz", - "integrity": "sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==", - "dev": true, - "requires": { + "dependencies": { "tslib": "^2.1.0" } }, - "safe-buffer": { + "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", "dev": true, - "requires": { - "randombytes": "^2.1.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "shell-quote": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.4.tgz", - "integrity": "sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw==", + "node_modules/smob": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/smob/-/smob-1.4.0.tgz", + "integrity": "sha512-MqR3fVulhjWuRNSMydnTlweu38UhQ0HXM4buStD/S3mc/BzX3CuM9OmhyQpmtYCvoYdl5ris6TI0ZqH355Ymqg==", "dev": true }, - "source-map": { + "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "source-map-support": { + "node_modules/source-map-support": { "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, - "requires": { + "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, - "sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "dev": true - }, - "spawn-command": { - "version": "0.0.2-1", - "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2-1.tgz", - "integrity": "sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==", + "node_modules/spawn-command": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2.tgz", + "integrity": "sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==", "dev": true }, - "string-width": { + "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "requires": { + "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" } }, - "strip-ansi": { + "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "supports-preserve-symlinks-flag": { + "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "terser": { - "version": "5.15.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.1.tgz", - "integrity": "sha512-K1faMUvpm/FBxjBXud0LWVAGxmvoPbZbfTCYbSgaaYQaIXI3/TdI7a7ZGA73Zrou6Q8Zmz3oeUTsp/dj+ag2Xw==", + "node_modules/terser": { + "version": "5.18.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.1.tgz", + "integrity": "sha512-j1n0Ao919h/Ai5r43VAnfV/7azUYW43GPxK7qSATzrsERfW7+y2QW9Cp9ufnRF5CQUWbnLSo7UJokSWCqg4tsQ==", "dev": true, - "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" } }, - "tree-kill": { + "node_modules/tree-kill": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "dev": true + "dev": true, + "bin": { + "tree-kill": "cli.js" + } }, - "tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", + "node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==", "dev": true }, - "typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true + "node_modules/typescript": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } }, - "wrap-ansi": { + "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "y18n": { + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + } }, - "yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "requires": { + "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", @@ -649,13 +807,19 @@ "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" } }, - "yargs-parser": { + "node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true + "dev": true, + "engines": { + "node": ">=12" + } } } } diff --git a/package.json b/package.json index 7cc4eb3..f5b20d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rat.md/bs-lightbox", - "version": "1.1.0", + "version": "1.1.1", "description": "A simple Bootstrap 4 and Bootstrap 5 Lightbox system using the native Carousel and Modal components.", "keywords": [ "bootstrap", @@ -29,9 +29,6 @@ "url": "https://buymeacoff.ee/ratmd" } ], - "engines": { - "node": "^14.13.0" - }, "scripts": { "build": "rollup -c", "watch": "rollup -c --watch", @@ -51,13 +48,13 @@ "reveal": true, "dependencies": {}, "devDependencies": { - "@rollup/plugin-replace": "^5.0.1", - "@rollup/plugin-typescript": "^9.0.2", - "bootstrap": "^5.2.2", - "concurrently": "^7.5.0", - "rollup": "^3.2.5", - "rollup-plugin-terser": "^7.0.2", - "tslib": "^2.4.1", - "typescript": "^4.8.4" + "@rollup/plugin-replace": "^5.0.2", + "@rollup/plugin-terser": "^0.4.3", + "@rollup/plugin-typescript": "^11.1.1", + "bootstrap": "^5.3.0", + "concurrently": "^8.2.0", + "rollup": "^3.25.1", + "tslib": "^2.5.3", + "typescript": "^5.1.3" } } diff --git a/rollup.config.js b/rollup.config.js index 9b2c57b..260deb1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -2,8 +2,8 @@ const fs = require('fs'); const path = require('path'); const replace = require('@rollup/plugin-replace'); +const terser = require('@rollup/plugin-terser'); const typescript = require('@rollup/plugin-typescript'); -const { terser } = require('rollup-plugin-terser'); const pkg = require('./package.json'); diff --git a/src/ts/index.ts b/src/ts/index.ts index dee03f5..cefa4fb 100644 --- a/src/ts/index.ts +++ b/src/ts/index.ts @@ -1,4 +1,4 @@ -import Lightbox from './Lightbox'; +import Lightbox from './lightbox'; export default Lightbox; diff --git a/tsconfig.json b/tsconfig.json index ddc5abc..204003e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,14 +5,15 @@ "baseUrl": ".", "lib": [ "DOM", + "DOM.Iterable", "ES5", "ES6", "ES2016", "ES2017", "ES2018", - "ES2019" + "ES2019", + "ES2020" ], - "locale": "en", "moduleResolution": "node", "newLine": "lf", "removeComments": true,