Browse Source

5.0.18

pull/517/head v5.0.18
Jānis Skarnelis 2 years ago
parent
commit
10538c737b
  1. 10
      CHANGELOG.md
  2. 2
      dist/carousel/carousel.autoplay.esm.js
  3. 2
      dist/carousel/carousel.autoplay.umd.js
  4. 2
      dist/carousel/carousel.esm.js
  5. 2
      dist/carousel/carousel.thumbs.esm.js
  6. 2
      dist/carousel/carousel.thumbs.umd.js
  7. 2
      dist/carousel/carousel.umd.js
  8. 1
      dist/carousel/l10n/cs.esm.js
  9. 1
      dist/carousel/l10n/cs.umd.js
  10. 1
      dist/carousel/l10n/zh_CN.esm.js
  11. 1
      dist/carousel/l10n/zh_CN.umd.js
  12. 2
      dist/fancybox/fancybox.esm.js
  13. 2
      dist/fancybox/fancybox.umd.js
  14. 1
      dist/fancybox/l10n/cs.esm.js
  15. 1
      dist/fancybox/l10n/cs.umd.js
  16. 1
      dist/fancybox/l10n/zh_CN.esm.js
  17. 1
      dist/fancybox/l10n/zh_CN.umd.js
  18. 2
      dist/index.esm.js
  19. 2
      dist/index.umd.js
  20. 1
      dist/panzoom/l10n/cs.esm.js
  21. 1
      dist/panzoom/l10n/cs.umd.js
  22. 1
      dist/panzoom/l10n/zh_CN.esm.js
  23. 1
      dist/panzoom/l10n/zh_CN.umd.js
  24. 2
      dist/panzoom/panzoom.esm.js
  25. 2
      dist/panzoom/panzoom.pins.esm.js
  26. 2
      dist/panzoom/panzoom.pins.umd.js
  27. 2
      dist/panzoom/panzoom.toolbar.esm.js
  28. 2
      dist/panzoom/panzoom.toolbar.umd.js
  29. 2
      dist/panzoom/panzoom.umd.js
  30. 5
      l10n/Carousel/cs.ts
  31. 5
      l10n/Carousel/zh_CN.ts
  32. 20
      l10n/Fancybox/cs.ts
  33. 20
      l10n/Fancybox/zh_CN.ts
  34. 26
      l10n/Panzoom/cs.ts
  35. 26
      l10n/Panzoom/zh_CN.ts
  36. 2
      package.json

10
CHANGELOG.md

@ -1,3 +1,13 @@
# 5.0.18 (2023-05-22)
### Features
- **Fancybox** Add `startSlideshow` and `endSlideshow` events
- **Fancybox** Add navigation using the mouse wheel above the thumbnails
- **Fancybox** Add option to show custom content instead of default error message ([388](https://github.com/fancyapps/ui/issues/388))
- Add Czech translations
- Add Chinese (Simplified) translations
# 5.0.17 (2023-04-26)
### Features

2
dist/carousel/carousel.autoplay.esm.js

File diff suppressed because one or more lines are too long

2
dist/carousel/carousel.autoplay.umd.js

File diff suppressed because one or more lines are too long

2
dist/carousel/carousel.esm.js

File diff suppressed because one or more lines are too long

2
dist/carousel/carousel.thumbs.esm.js

File diff suppressed because one or more lines are too long

2
dist/carousel/carousel.thumbs.umd.js

File diff suppressed because one or more lines are too long

2
dist/carousel/carousel.umd.js

File diff suppressed because one or more lines are too long

1
dist/carousel/l10n/cs.esm.js

@ -0,0 +1 @@
const e={NEXT:"Další",PREV:"Předchozí",GOTO:"Přejít na %d. snímek"};export{e as cs};

1
dist/carousel/l10n/cs.umd.js

@ -0,0 +1 @@
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o(((e="undefined"!=typeof globalThis?globalThis:e||self).Carousel=e.Carousel||{},e.Carousel.l10n=e.Carousel.l10n||{}))}(this,(function(e){"use strict";e.cs={NEXT:"Další",PREV:"Předchozí",GOTO:"Přejít na %d. snímek"}}));

1
dist/carousel/l10n/zh_CN.esm.js

@ -0,0 +1 @@
const o={NEXT:"下一张",PREV:"上一张",GOTO:"转至幻灯片 #%d"};export{o as zh_CN};

1
dist/carousel/l10n/zh_CN.umd.js

@ -0,0 +1 @@
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o(((e="undefined"!=typeof globalThis?globalThis:e||self).Carousel=e.Carousel||{},e.Carousel.l10n=e.Carousel.l10n||{}))}(this,(function(e){"use strict";e.zh_CN={NEXT:"下一张",PREV:"上一张",GOTO:"转至幻灯片 #%d"}}));

2
dist/fancybox/fancybox.esm.js

File diff suppressed because one or more lines are too long

2
dist/fancybox/fancybox.umd.js

File diff suppressed because one or more lines are too long

1
dist/fancybox/l10n/cs.esm.js

@ -0,0 +1 @@
const o={PANUP:"Posunout nahoru",PANDOWN:"Posunout dolů",PANLEFT:"Posunout vlevo",PANRIGHT:"Posunout vpravo",ZOOMIN:"Přiblížit",ZOOMOUT:"Oddálit",TOGGLEZOOM:"Přepnout úroveň přiblížení",TOGGLE1TO1:"Přepnout úroveň přiblížení",ITERATEZOOM:"Přepnout úroveň přiblížení",ROTATECCW:"Otočit směrem vlevo",ROTATECW:"Otočit směrem vpravo",FLIPX:"Převrátit vodorovně",FLIPY:"Převrátit svisle",FITX:"Přizpůsobit na šířku",FITY:"Přizpůsobit na výšku",RESET:"Resetovat",TOGGLEFS:"Režim celé obrazovky",CLOSE:"Zavřít",NEXT:"Další",PREV:"Předchozí",MODAL:"Toto okno lze zavřít klávesou ESC",ERROR:"Někde se stala chyba, zkuste to prosím znovu",IMAGE_ERROR:"Obrázek nenalezen",ELEMENT_NOT_FOUND:"HTML element nenalezen",AJAX_NOT_FOUND:"Chyba AJAX načítání: Nenalezeno",AJAX_FORBIDDEN:"Chyba AJAX načítání: Zamítnuto",IFRAME_ERROR:"Chyba načítání stránky",TOGGLE_ZOOM:"Přepnout úroveň přiblížení",TOGGLE_THUMBS:"Zobrazit/skrýt miniatury",TOGGLE_SLIDESHOW:"Spustit/zastavit automatické přehrávání",TOGGLE_FULLSCREEN:"Režim celé obrazovky",DOWNLOAD:"Stáhnout"};export{o as cs};

1
dist/fancybox/l10n/cs.umd.js

@ -0,0 +1 @@
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((o="undefined"!=typeof globalThis?globalThis:o||self).Fancybox=o.Fancybox||{},o.Fancybox.l10n=o.Fancybox.l10n||{}))}(this,(function(o){"use strict";const e={PANUP:"Posunout nahoru",PANDOWN:"Posunout dolů",PANLEFT:"Posunout vlevo",PANRIGHT:"Posunout vpravo",ZOOMIN:"Přiblížit",ZOOMOUT:"Oddálit",TOGGLEZOOM:"Přepnout úroveň přiblížení",TOGGLE1TO1:"Přepnout úroveň přiblížení",ITERATEZOOM:"Přepnout úroveň přiblížení",ROTATECCW:"Otočit směrem vlevo",ROTATECW:"Otočit směrem vpravo",FLIPX:"Převrátit vodorovně",FLIPY:"Převrátit svisle",FITX:"Přizpůsobit na šířku",FITY:"Přizpůsobit na výšku",RESET:"Resetovat",TOGGLEFS:"Režim celé obrazovky",CLOSE:"Zavřít",NEXT:"Další",PREV:"Předchozí",MODAL:"Toto okno lze zavřít klávesou ESC",ERROR:"Někde se stala chyba, zkuste to prosím znovu",IMAGE_ERROR:"Obrázek nenalezen",ELEMENT_NOT_FOUND:"HTML element nenalezen",AJAX_NOT_FOUND:"Chyba AJAX načítání: Nenalezeno",AJAX_FORBIDDEN:"Chyba AJAX načítání: Zamítnuto",IFRAME_ERROR:"Chyba načítání stránky",TOGGLE_ZOOM:"Přepnout úroveň přiblížení",TOGGLE_THUMBS:"Zobrazit/skrýt miniatury",TOGGLE_SLIDESHOW:"Spustit/zastavit automatické přehrávání",TOGGLE_FULLSCREEN:"Režim celé obrazovky",DOWNLOAD:"Stáhnout"};o.cs=e}));

1
dist/fancybox/l10n/zh_CN.esm.js

@ -0,0 +1 @@
const O={PANUP:"上移",PANDOWN:"下移",PANLEFT:"左移",PANRIGHT:"右移",ZOOMIN:"放大",ZOOMOUT:"缩小",TOGGLEZOOM:"切换缩放级别",TOGGLE1TO1:"切换缩放级别",ITERATEZOOM:"切换缩放级别",ROTATECCW:"逆时针旋转",ROTATECW:"顺时针旋转",FLIPX:"水平翻转",FLIPY:"垂直翻转",FITX:"水平适应",FITY:"垂直适应",RESET:"重置",TOGGLEFS:"切换全屏",CLOSE:"关闭",NEXT:"上一个",PREV:"下一个",MODAL:"使用 ESC 键关闭",ERROR:"发生了错误,请稍后再试",IMAGE_ERROR:"找不到图像",ELEMENT_NOT_FOUND:"找不到 HTML 元素",AJAX_NOT_FOUND:"载入 AJAX 时出错: 未找到",AJAX_FORBIDDEN:"载入 AJAX 时出错: 被阻止",IFRAME_ERROR:"加载页面出错",TOGGLE_ZOOM:"切换缩放级别",TOGGLE_THUMBS:"切换缩略图",TOGGLE_SLIDESHOW:"切换幻灯片",TOGGLE_FULLSCREEN:"切换全屏",DOWNLOAD:"下载"};export{O as zh_CN};

1
dist/fancybox/l10n/zh_CN.umd.js

@ -0,0 +1 @@
!function(O,E){"object"==typeof exports&&"undefined"!=typeof module?E(exports):"function"==typeof define&&define.amd?define(["exports"],E):E(((O="undefined"!=typeof globalThis?globalThis:O||self).Fancybox=O.Fancybox||{},O.Fancybox.l10n=O.Fancybox.l10n||{}))}(this,(function(O){"use strict";const E={PANUP:"上移",PANDOWN:"下移",PANLEFT:"左移",PANRIGHT:"右移",ZOOMIN:"放大",ZOOMOUT:"缩小",TOGGLEZOOM:"切换缩放级别",TOGGLE1TO1:"切换缩放级别",ITERATEZOOM:"切换缩放级别",ROTATECCW:"逆时针旋转",ROTATECW:"顺时针旋转",FLIPX:"水平翻转",FLIPY:"垂直翻转",FITX:"水平适应",FITY:"垂直适应",RESET:"重置",TOGGLEFS:"切换全屏",CLOSE:"关闭",NEXT:"上一个",PREV:"下一个",MODAL:"使用 ESC 键关闭",ERROR:"发生了错误,请稍后再试",IMAGE_ERROR:"找不到图像",ELEMENT_NOT_FOUND:"找不到 HTML 元素",AJAX_NOT_FOUND:"载入 AJAX 时出错: 未找到",AJAX_FORBIDDEN:"载入 AJAX 时出错: 被阻止",IFRAME_ERROR:"加载页面出错",TOGGLE_ZOOM:"切换缩放级别",TOGGLE_THUMBS:"切换缩略图",TOGGLE_SLIDESHOW:"切换幻灯片",TOGGLE_FULLSCREEN:"切换全屏",DOWNLOAD:"下载"};O.zh_CN=E}));

2
dist/index.esm.js

File diff suppressed because one or more lines are too long

2
dist/index.umd.js

File diff suppressed because one or more lines are too long

1
dist/panzoom/l10n/cs.esm.js

@ -0,0 +1 @@
const o={PANUP:"Posunout nahoru",PANDOWN:"Posunout dolů",PANLEFT:"Posunout vlevo",PANRIGHT:"Posunout vpravo",ZOOMIN:"Přiblížit",ZOOMOUT:"Oddálit",TOGGLEZOOM:"Přepnout úroveň přiblížení",TOGGLE1TO1:"Přepnout úroveň přiblížení",ITERATEZOOM:"Přepnout úroveň přiblížení",ROTATECCW:"Otočit směrem vlevo",ROTATECW:"Otočit směrem vpravo",FLIPX:"Převrátit vodorovně",FLIPY:"Převrátit svisle",FITX:"Přizpůsobit na šířku",FITY:"Přizpůsobit na výšku",RESET:"Resetovat",TOGGLEFS:"Režim celé obrazovky"};export{o as cs};

1
dist/panzoom/l10n/cs.umd.js

@ -0,0 +1 @@
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((o="undefined"!=typeof globalThis?globalThis:o||self).Panzoom=o.Panzoom||{},o.Panzoom.l10n=o.Panzoom.l10n||{}))}(this,(function(o){"use strict";o.cs={PANUP:"Posunout nahoru",PANDOWN:"Posunout dolů",PANLEFT:"Posunout vlevo",PANRIGHT:"Posunout vpravo",ZOOMIN:"Přiblížit",ZOOMOUT:"Oddálit",TOGGLEZOOM:"Přepnout úroveň přiblížení",TOGGLE1TO1:"Přepnout úroveň přiblížení",ITERATEZOOM:"Přepnout úroveň přiblížení",ROTATECCW:"Otočit směrem vlevo",ROTATECW:"Otočit směrem vpravo",FLIPX:"Převrátit vodorovně",FLIPY:"Převrátit svisle",FITX:"Přizpůsobit na šířku",FITY:"Přizpůsobit na výšku",RESET:"Resetovat",TOGGLEFS:"Režim celé obrazovky"}}));

1
dist/panzoom/l10n/zh_CN.esm.js

@ -0,0 +1 @@
const O={PANUP:"上移",PANDOWN:"下移",PANLEFT:"左移",PANRIGHT:"右移",ZOOMIN:"放大",ZOOMOUT:"缩小",TOGGLEZOOM:"切换缩放级别",TOGGLE1TO1:"切换缩放级别",ITERATEZOOM:"切换缩放级别",ROTATECCW:"逆时针旋转",ROTATECW:"顺时针旋转",FLIPX:"水平翻转",FLIPY:"垂直翻转",FITX:"水平适应",FITY:"垂直适应",RESET:"重置",TOGGLEFS:"切换全屏"};export{O as zh_CN};

1
dist/panzoom/l10n/zh_CN.umd.js

@ -0,0 +1 @@
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((o="undefined"!=typeof globalThis?globalThis:o||self).Panzoom=o.Panzoom||{},o.Panzoom.l10n=o.Panzoom.l10n||{}))}(this,(function(o){"use strict";o.zh_CN={PANUP:"上移",PANDOWN:"下移",PANLEFT:"左移",PANRIGHT:"右移",ZOOMIN:"放大",ZOOMOUT:"缩小",TOGGLEZOOM:"切换缩放级别",TOGGLE1TO1:"切换缩放级别",ITERATEZOOM:"切换缩放级别",ROTATECCW:"逆时针旋转",ROTATECW:"顺时针旋转",FLIPX:"水平翻转",FLIPY:"垂直翻转",FITX:"水平适应",FITY:"垂直适应",RESET:"重置",TOGGLEFS:"切换全屏"}}));

2
dist/panzoom/panzoom.esm.js

File diff suppressed because one or more lines are too long

2
dist/panzoom/panzoom.pins.esm.js

@ -1 +1 @@
const t=(e,...s)=>{const n=s.length;for(let i=0;i<n;i++){const n=s[i]||{};Object.entries(n).forEach((([s,n])=>{const i=Array.isArray(n)?[]:{};var r;e[s]||Object.assign(e,{[s]:i}),"object"==typeof(r=n)&&null!==r&&r.constructor===Object&&"[object Object]"===Object.prototype.toString.call(r)?Object.assign(e[s],t(i,n)):Array.isArray(n)?Object.assign(e,{[s]:[...n]}):Object.assign(e,{[s]:n})}))}return e},e=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class s{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(e){this.options=e?t({},this.constructor.defaults,e):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...s){let n=e(t,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...s)),n}optionFor(t,s,n,...i){let r=e(s,t);var o;"string"!=typeof(o=r)||isNaN(o)||isNaN(parseFloat(o))||(r=parseFloat(r)),"true"===r&&(r=!0),"false"===r&&(r=!1),r&&"function"==typeof r&&(r=r.call(this,this,t,...i));let a=e(s,this.options);return a&&"function"==typeof a?r=a.call(this,this,t,...i,r):void 0===r&&(r=a),void 0===r?n:r}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,s)=>{let n="";return s?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${s}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let s=0;s<e.length;s++)t=t.split(e[s][0]).join(e[s][1]);return t=t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let s=[];"string"==typeof t?s=t.split(" "):Array.isArray(t)&&(s=t),this.events||(this.events=new Map),s.forEach((t=>{let s=this.events.get(t);s||(this.events.set(t,[]),s=[]),s.includes(e)||s.push(e),this.events.set(t,s)}))}off(t,e){let s=[];"string"==typeof t?s=t.split(" "):Array.isArray(t)&&(s=t),s.forEach((t=>{const s=this.events.get(t);if(Array.isArray(s)){const t=s.indexOf(e);t>-1&&s.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(s,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.17"}),Object.defineProperty(s,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class n extends s{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class i extends n{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pins",{enumerable:!0,configurable:!0,writable:!0,value:[]})}onTransform(t){for(const s of this.pins){if(!((e=s)&&null!==e&&e instanceof Element&&"nodeType"in e))continue;const{fitWidth:n,fitHeight:i,fullWidth:r,fullHeight:o}=t.contentRect,a=s.dataset.x||"",c=s.dataset.y||"";let l=0,f=0;l=a.includes("%")?n*(parseFloat(a)/100):parseFloat(a)/r*n,l-=.5*n,f=c.includes("%")?i*(parseFloat(c)/100):parseFloat(c)/o*i,f-=.5*i;const h=new DOMPoint(l,f).matrixTransform(t.getMatrix());s.style.transform=`translate3d(${h.x||0}px, ${h.y||0}px, 0)`}var e}attach(){this.pins=Array.from(this.instance.container.querySelectorAll("[data-panzoom-pin]")),this.pins.length&&(this.instance.container.classList.add("has-pins"),this.instance.on("afterTransform",this.onTransform))}detach(){this.pins=[],this.instance.container.classList.remove("has-pins"),this.instance.off("afterTransform",this.onTransform)}}Object.defineProperty(i,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});export{i as Pins};
const t=(e,...s)=>{const n=s.length;for(let i=0;i<n;i++){const n=s[i]||{};Object.entries(n).forEach((([s,n])=>{const i=Array.isArray(n)?[]:{};var r;e[s]||Object.assign(e,{[s]:i}),"object"==typeof(r=n)&&null!==r&&r.constructor===Object&&"[object Object]"===Object.prototype.toString.call(r)?Object.assign(e[s],t(i,n)):Array.isArray(n)?Object.assign(e,{[s]:[...n]}):Object.assign(e,{[s]:n})}))}return e},e=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class s{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(e){this.options=e?t({},this.constructor.defaults,e):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...s){let n=e(t,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...s)),n}optionFor(t,s,n,...i){let r=e(s,t);var o;"string"!=typeof(o=r)||isNaN(o)||isNaN(parseFloat(o))||(r=parseFloat(r)),"true"===r&&(r=!0),"false"===r&&(r=!1),r&&"function"==typeof r&&(r=r.call(this,this,t,...i));let a=e(s,this.options);return a&&"function"==typeof a?r=a.call(this,this,t,...i,r):void 0===r&&(r=a),void 0===r?n:r}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,s)=>{let n="";return s?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${s}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let s=0;s<e.length;s++)t=t.split(e[s][0]).join(e[s][1]);return t=t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let s=[];"string"==typeof t?s=t.split(" "):Array.isArray(t)&&(s=t),this.events||(this.events=new Map),s.forEach((t=>{let s=this.events.get(t);s||(this.events.set(t,[]),s=[]),s.includes(e)||s.push(e),this.events.set(t,s)}))}off(t,e){let s=[];"string"==typeof t?s=t.split(" "):Array.isArray(t)&&(s=t),s.forEach((t=>{const s=this.events.get(t);if(Array.isArray(s)){const t=s.indexOf(e);t>-1&&s.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(s,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.18"}),Object.defineProperty(s,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class n extends s{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class i extends n{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pins",{enumerable:!0,configurable:!0,writable:!0,value:[]})}onTransform(t){for(const s of this.pins){if(!((e=s)&&null!==e&&e instanceof Element&&"nodeType"in e))continue;const{fitWidth:n,fitHeight:i,fullWidth:r,fullHeight:o}=t.contentRect,a=s.dataset.x||"",c=s.dataset.y||"";let l=0,f=0;l=a.includes("%")?n*(parseFloat(a)/100):parseFloat(a)/r*n,l-=.5*n,f=c.includes("%")?i*(parseFloat(c)/100):parseFloat(c)/o*i,f-=.5*i;const h=new DOMPoint(l,f).matrixTransform(t.getMatrix());s.style.transform=`translate3d(${h.x||0}px, ${h.y||0}px, 0)`}var e}attach(){this.pins=Array.from(this.instance.container.querySelectorAll("[data-panzoom-pin]")),this.pins.length&&(this.instance.container.classList.add("has-pins"),this.instance.on("afterTransform",this.onTransform))}detach(){this.pins=[],this.instance.container.classList.remove("has-pins"),this.instance.off("afterTransform",this.onTransform)}}Object.defineProperty(i,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});export{i as Pins};

2
dist/panzoom/panzoom.pins.umd.js

@ -1 +1 @@
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";const e=(t,...s)=>{const n=s.length;for(let i=0;i<n;i++){const n=s[i]||{};Object.entries(n).forEach((([s,n])=>{const i=Array.isArray(n)?[]:{};var o;t[s]||Object.assign(t,{[s]:i}),"object"==typeof(o=n)&&null!==o&&o.constructor===Object&&"[object Object]"===Object.prototype.toString.call(o)?Object.assign(t[s],e(i,n)):Array.isArray(n)?Object.assign(t,{[s]:[...n]}):Object.assign(t,{[s]:n})}))}return t},s=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class n{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?e({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let n=s(t,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...e)),n}optionFor(t,e,n,...i){let o=s(e,t);var r;"string"!=typeof(r=o)||isNaN(r)||isNaN(parseFloat(r))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,t,...i));let a=s(e,this.options);return a&&"function"==typeof a?o=a.call(this,this,t,...i,o):void 0===o&&(o=a),void 0===o?n:o}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,s)=>{let n="";return s?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${s}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let s=0;s<e.length;s++)t=t.split(e[s][0]).join(e[s][1]);return t=t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let s=[];"string"==typeof t?s=t.split(" "):Array.isArray(t)&&(s=t),this.events||(this.events=new Map),s.forEach((t=>{let s=this.events.get(t);s||(this.events.set(t,[]),s=[]),s.includes(e)||s.push(e),this.events.set(t,s)}))}off(t,e){let s=[];"string"==typeof t?s=t.split(" "):Array.isArray(t)&&(s=t),s.forEach((t=>{const s=this.events.get(t);if(Array.isArray(s)){const t=s.indexOf(e);t>-1&&s.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(n,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.17"}),Object.defineProperty(n,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class i extends n{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class o extends i{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pins",{enumerable:!0,configurable:!0,writable:!0,value:[]})}onTransform(t){for(const s of this.pins){if(!((e=s)&&null!==e&&e instanceof Element&&"nodeType"in e))continue;const{fitWidth:n,fitHeight:i,fullWidth:o,fullHeight:r}=t.contentRect,a=s.dataset.x||"",l=s.dataset.y||"";let c=0,f=0;c=a.includes("%")?n*(parseFloat(a)/100):parseFloat(a)/o*n,c-=.5*n,f=l.includes("%")?i*(parseFloat(l)/100):parseFloat(l)/r*i,f-=.5*i;const p=new DOMPoint(c,f).matrixTransform(t.getMatrix());s.style.transform=`translate3d(${p.x||0}px, ${p.y||0}px, 0)`}var e}attach(){this.pins=Array.from(this.instance.container.querySelectorAll("[data-panzoom-pin]")),this.pins.length&&(this.instance.container.classList.add("has-pins"),this.instance.on("afterTransform",this.onTransform))}detach(){this.pins=[],this.instance.container.classList.remove("has-pins"),this.instance.off("afterTransform",this.onTransform)}}Object.defineProperty(o,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}}),t.Pins=o}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";const e=(t,...s)=>{const n=s.length;for(let i=0;i<n;i++){const n=s[i]||{};Object.entries(n).forEach((([s,n])=>{const i=Array.isArray(n)?[]:{};var o;t[s]||Object.assign(t,{[s]:i}),"object"==typeof(o=n)&&null!==o&&o.constructor===Object&&"[object Object]"===Object.prototype.toString.call(o)?Object.assign(t[s],e(i,n)):Array.isArray(n)?Object.assign(t,{[s]:[...n]}):Object.assign(t,{[s]:n})}))}return t},s=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class n{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?e({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let n=s(t,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...e)),n}optionFor(t,e,n,...i){let o=s(e,t);var r;"string"!=typeof(r=o)||isNaN(r)||isNaN(parseFloat(r))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,t,...i));let a=s(e,this.options);return a&&"function"==typeof a?o=a.call(this,this,t,...i,o):void 0===o&&(o=a),void 0===o?n:o}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,s)=>{let n="";return s?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${s}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let s=0;s<e.length;s++)t=t.split(e[s][0]).join(e[s][1]);return t=t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let s=[];"string"==typeof t?s=t.split(" "):Array.isArray(t)&&(s=t),this.events||(this.events=new Map),s.forEach((t=>{let s=this.events.get(t);s||(this.events.set(t,[]),s=[]),s.includes(e)||s.push(e),this.events.set(t,s)}))}off(t,e){let s=[];"string"==typeof t?s=t.split(" "):Array.isArray(t)&&(s=t),s.forEach((t=>{const s=this.events.get(t);if(Array.isArray(s)){const t=s.indexOf(e);t>-1&&s.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(n,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.18"}),Object.defineProperty(n,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class i extends n{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class o extends i{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pins",{enumerable:!0,configurable:!0,writable:!0,value:[]})}onTransform(t){for(const s of this.pins){if(!((e=s)&&null!==e&&e instanceof Element&&"nodeType"in e))continue;const{fitWidth:n,fitHeight:i,fullWidth:o,fullHeight:r}=t.contentRect,a=s.dataset.x||"",l=s.dataset.y||"";let c=0,f=0;c=a.includes("%")?n*(parseFloat(a)/100):parseFloat(a)/o*n,c-=.5*n,f=l.includes("%")?i*(parseFloat(l)/100):parseFloat(l)/r*i,f-=.5*i;const p=new DOMPoint(c,f).matrixTransform(t.getMatrix());s.style.transform=`translate3d(${p.x||0}px, ${p.y||0}px, 0)`}var e}attach(){this.pins=Array.from(this.instance.container.querySelectorAll("[data-panzoom-pin]")),this.pins.length&&(this.instance.container.classList.add("has-pins"),this.instance.on("afterTransform",this.onTransform))}detach(){this.pins=[],this.instance.container.classList.remove("has-pins"),this.instance.off("afterTransform",this.onTransform)}}Object.defineProperty(o,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}}),t.Pins=o}));

2
dist/panzoom/panzoom.toolbar.esm.js

File diff suppressed because one or more lines are too long

2
dist/panzoom/panzoom.toolbar.umd.js

File diff suppressed because one or more lines are too long

2
dist/panzoom/panzoom.umd.js

File diff suppressed because one or more lines are too long

5
l10n/Carousel/cs.ts

@ -0,0 +1,5 @@
export const cs = {
NEXT: "Další",
PREV: "Předchozí",
GOTO: "Přejít na %d. snímek",
};

5
l10n/Carousel/zh_CN.ts

@ -0,0 +1,5 @@
export const zh_CN = {
NEXT: "下一张",
PREV: "上一张",
GOTO: "转至幻灯片 #%d",
};

20
l10n/Fancybox/cs.ts

@ -0,0 +1,20 @@
import { cs as PANZOOM_CS } from "../Panzoom/cs";
export const cs = {
...PANZOOM_CS,
CLOSE: "Zavřít",
NEXT: "Další",
PREV: "Předchozí",
MODAL: "Toto okno lze zavřít klávesou ESC",
ERROR: "Někde se stala chyba, zkuste to prosím znovu",
IMAGE_ERROR: "Obrázek nenalezen",
ELEMENT_NOT_FOUND: "HTML element nenalezen",
AJAX_NOT_FOUND: "Chyba AJAX načítání: Nenalezeno",
AJAX_FORBIDDEN: "Chyba AJAX načítání: Zamítnuto",
IFRAME_ERROR: "Chyba načítání stránky",
TOGGLE_ZOOM: "Přepnout úroveň přiblížení",
TOGGLE_THUMBS: "Zobrazit/skrýt miniatury",
TOGGLE_SLIDESHOW: "Spustit/zastavit automatické přehrávání",
TOGGLE_FULLSCREEN: "Režim celé obrazovky",
DOWNLOAD: "Stáhnout",
};

20
l10n/Fancybox/zh_CN.ts

@ -0,0 +1,20 @@
import { zh_CN as PANZOOM_ZH_CN } from "../Panzoom/zh_CN";
export const zh_CN = {
...PANZOOM_ZH_CN,
CLOSE: "关闭",
NEXT: "上一个",
PREV: "下一个",
MODAL: "使用 ESC 键关闭",
ERROR: "发生了错误,请稍后再试",
IMAGE_ERROR: "找不到图像",
ELEMENT_NOT_FOUND: "找不到 HTML 元素",
AJAX_NOT_FOUND: "载入 AJAX 时出错: 未找到",
AJAX_FORBIDDEN: "载入 AJAX 时出错: 被阻止",
IFRAME_ERROR: "加载页面出错",
TOGGLE_ZOOM: "切换缩放级别",
TOGGLE_THUMBS: "切换缩略图",
TOGGLE_SLIDESHOW: "切换幻灯片",
TOGGLE_FULLSCREEN: "切换全屏",
DOWNLOAD: "下载",
};

26
l10n/Panzoom/cs.ts

@ -0,0 +1,26 @@
export const cs = {
PANUP: "Posunout nahoru",
PANDOWN: "Posunout dolů",
PANLEFT: "Posunout vlevo",
PANRIGHT: "Posunout vpravo",
ZOOMIN: "Přiblížit",
ZOOMOUT: "Oddálit",
TOGGLEZOOM: "Přepnout úroveň přiblížení",
TOGGLE1TO1: "Přepnout úroveň přiblížení",
ITERATEZOOM: "Přepnout úroveň přiblížení",
ROTATECCW: "Otočit směrem vlevo",
ROTATECW: "Otočit směrem vpravo",
FLIPX: "Převrátit vodorovně",
FLIPY: "Převrátit svisle",
FITX: "Přizpůsobit na šířku",
FITY: "Přizpůsobit na výšku",
RESET: "Resetovat",
TOGGLEFS: "Režim celé obrazovky",
};

26
l10n/Panzoom/zh_CN.ts

@ -0,0 +1,26 @@
export const zh_CN = {
PANUP: "上移",
PANDOWN: "下移",
PANLEFT: "左移",
PANRIGHT: "右移",
ZOOMIN: "放大",
ZOOMOUT: "缩小",
TOGGLEZOOM: "切换缩放级别",
TOGGLE1TO1: "切换缩放级别",
ITERATEZOOM: "切换缩放级别",
ROTATECCW: "逆时针旋转",
ROTATECW: "顺时针旋转",
FLIPX: "水平翻转",
FLIPY: "垂直翻转",
FITX: "水平适应",
FITY: "垂直适应",
RESET: "重置",
TOGGLEFS: "切换全屏",
};

2
package.json

@ -1,6 +1,6 @@
{
"name": "@fancyapps/ui",
"version": "5.0.17",
"version": "5.0.18",
"description": "Robust JavaScript UI Component Library",
"files": [
"dist",

Loading…
Cancel
Save