@d-zero/scaffold 5.0.0-beta.16 → 5.0.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-beta.18](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-beta.17...v5.0.0-beta.18) (2025-11-25)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **scaffold:** correct typo in script name from 'cleaer' to 'clear' ([1ad45c8](https://github.com/d-zero-dev/frontend-env/commit/1ad45c8b7bb43ca665b5fd03c3e414917778dfb9))
11
+
12
+ # [5.0.0-beta.17](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-beta.16...v5.0.0-beta.17) (2025-10-23)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **scaffold:** load jQuery before baserCMS editor scripts ([2d6130c](https://github.com/d-zero-dev/frontend-env/commit/2d6130c76393893950472d76d62bbaed2ed49890))
17
+
6
18
  # [5.0.0-beta.16](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-beta.15...v5.0.0-beta.16) (2025-10-23)
7
19
 
8
20
  ### Features
@@ -2,6 +2,7 @@ link(
2
2
  ⚠️="baserCMS組み込み時は削除してください"
3
3
  rel="stylesheet"
4
4
  href="/__tmpl/__burger_editor/css/colorbox.css")
5
+ script(src="/js/jquery.min.js")
5
6
  script(
6
7
  ⚠️="baserCMS組み込み時は削除してください"
7
8
  src="https://maps.google.com/maps/api/js?key=AIzaSyDc3Vko3MvdrlJuQyEmo0WiT50RIMMtk5g")
@@ -11,4 +12,3 @@ script(
11
12
  script(
12
13
  ⚠️="baserCMS組み込み時は削除してください"
13
14
  src="/__tmpl/__burger_editor/js/bge_modules/bge_functions.min.js")
14
- script(src="/js/jquery.min.js")
package/cspell.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "import": ["@d-zero/cspell-config"],
3
- "ignorePaths": ["./htdocs"],
3
+ "ignorePaths": ["./htdocs", "./CHANGELOG.md"],
4
4
  "words": [
5
5
  // Libraries
6
6
  "splide",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * BurgerEditor v2.25.2
3
+ *
4
+ * Copyright: D-ZERO Co.,Ltd.
5
+ * License: BurgerEditor License
6
+ */
7
+ ;(function () {var BgE=function(E){"use strict";var yt=E=>{throw TypeError(E)};var Ht=(E,S,T)=>S.has(E)||yt("Cannot "+T);var mt=(E,S,T)=>S.has(E)?yt("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(E):S.set(E,T);var z=(E,S,T)=>(Ht(E,S,"access private method"),T);var b,Pt,Et,wt,St;function S(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var T={},F={},J;function tt(){if(J)return F;J=1,Object.defineProperty(F,"__esModule",{value:!0});var h=function(){function o(){}return o.posAbs=function(s,i,r){return i===void 0&&(i=0),r===void 0&&(r=0),s.css({position:"absolute",top:i,left:r})},o.posBase=function(s){var i=s.css("position");return(i==null||i==="static"||i==="")&&s.css({position:"relative"}),s},o.z=function(s,i){return i===void 0&&(i=0),s.css({zIndex:i}),s},o.floating=function(s,i){return i===void 0&&(i=!0),s.css({float:i?"left":"none"}),s},o.isOverflowHidden=function(s){return s.css("overflow").toLowerCase()==="hidden"},o.saveCSS=function(s){s.each(function(i,r){var e=$(r);e.data("originStyle",e.attr("style"))})},o.restoreCSS=function(s){s.each(function(i,r){var e=$(r),t=""+e.data("originStyle");e.attr("style",t)})},o.cleanCSS=function(s){s.each(function(i,r){var e=$(r);e.attr("style","")})},o}();return F.default=h,F}var k={},et;function X(){if(et)return k;et=1,Object.defineProperty(k,"__esModule",{value:!0});var h=function(){function o(){}return o.INIT="init",o.TRANSITION_END="transitionEnd",o.RESIZE="resize",o.RESIZE_START="resizeStart",o.RESIZE_END="resizeEnd",o.REFLOW_METHOD="reflowMethod",o.LOAD="load",o}();return k.default=h,k}var j={},it;function G(){if(it)return j;it=1,Object.defineProperty(j,"__esModule",{value:!0});var h=function(){function o(s,i){this.name=s,$.extend(this,i)}return o.create=function(s){for(var i in s)if(s.hasOwnProperty(i)){var r=new o(i,s[i]);o.transitions[i]=r}},o.transitions={},o}();return j.default=h,j}var nt;function bt(){if(nt)return T;nt=1,Object.defineProperty(T,"__esModule",{value:!0});var h=tt(),o=X(),s=G();return s.default.create({fade:{init:function(){h.default.posBase(this.container.$el),h.default.posAbs(this.panels.$el)},reflow:function(i){switch(i.timing){case o.default.TRANSITION_END:case o.default.RESIZE_START:case o.default.RESIZE_END:case o.default.LOAD:{this.config.resizable&&this.stage.$el.height(this.panels.$el.height()||0),h.default.z(this.panels.$el,0),h.default.z(this.panels.item(this.to).$el,10),this.panels.$el.css({opacity:0}),this.panels.item(this.to).$el.css({opacity:1});break}}},silent:function(){},before:function(){},fire:function(){this.panels.item(this.to).$el.css({opacity:0}),h.default.z(this.panels.item(this.to).$el,20),this.animation&&this.animation.stop(),this.animation=this.panels.item(this.to).$el.animate({opacity:1},{duration:this.config.duration}),this.config.crossFade&&this.panels.item(this.from).$el.animate({opacity:0},{duration:this.config.duration})},cancel:function(){},after:function(){this.panels.$el.css({opacity:0}),this.panels.item(this.to).$el.css({opacity:1})}}}),T}bt();var Y={},W={},st;function rt(){if(st)return W;st=1,Object.defineProperty(W,"__esModule",{value:!0});var h=function(){function o(){}return o.getSpeed=function(s,i){return s/i},o.getDuration=function(s,i){return s/i},o.getDistance=function(s,i){return s*i},o.getloopSeriesNumber=function(s,i){var r;return r=s%i,r===0||s<0&&(r=i+Math.abs(s)%i*-1),r},o.getloopSeriesVector=function(s,i,r,e){var t;if(r!==0&&r!==1&&r!==-1)throw new RangeError("`direction` is must 1 or -1 or zero.");if(r===0){s=o.getloopSeriesNumber(s,e),i=o.getloopSeriesNumber(i,e);var n=s<i?i-e:i+e,f=Math.abs(i-s),p=Math.abs(n-s),_=Math.min(f,p);f===_?t=i<s?f*-1:f:t=n<s?p*-1:p}else if(s===i)t=e*r;else if(s<i&&r===-1){i=o.getloopSeriesNumber(i,e);var n=i-e;t=n-s}else if(i<s&&r===1){i=o.getloopSeriesNumber(i,e);var n=i+e;t=n-s}else t=i-s;return t},o.roundDown=function(s){return parseInt(""+s,10)},o.roundUp=function(s){return 0<s?Math.ceil(s):Math.ceil(s*-1)*-1},o}();return W.default=h,W}var H={},at;function ot(){if(at)return H;at=1,Object.defineProperty(H,"__esModule",{value:!0});var h=function(){function o(){}return o.NONE="none",o.RETURN="return",o.LOOP="loop",o}();return H.default=h,H}var lt;function Tt(){if(lt)return Y;lt=1,Object.defineProperty(Y,"__esModule",{value:!0});var h=tt(),o=rt(),s=X(),i=ot(),r=G(),e=function(){function t(n,f,p){var _=this;this.isDragging=!1,this.isSwiping=!1,this.$el=n,this.psycle=f,this.config=p;var y={passive:!0};this.$el[0].addEventListener("touchstart",function(u){_._dragStartX=u.touches[0].pageX,_._dragstart(u)},y),this.$el[0].addEventListener("touchmove",function(u){_._drag(u)},y),this.$el[0].addEventListener("touchend",function(u){_._dragend(u)}),this.$el[0].addEventListener("touchcancel",function(u){_._dragend(u)})}return t.prototype._tap=function(){this.isDragging=!1},t.prototype._dragstart=function(n){this.dragStartTimestamp=Date.now(),this.psycle.freeze(),this.dragStartPsycleLeftPosition=this.psycle.container.$el.position().left,this.currentIndex=this.psycle.index},t.prototype._drag=function(n){var f=this,p=n.touches[0].pageX-this._dragStartX,_=this.dragStartPsycleLeftPosition+p;this.isDragging=!0,this._moveValueFromPrevTouchMove=p,cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(function(){f.psycle.container.$el[0].style.left=_+"px"})},t.prototype._dragend=function(n){var f=.25,p=n.touches[0]||n.changedTouches[0],_=p.pageX-this._dragStartX,y=this.psycle.panelWidth,u=this.dragStartPsycleLeftPosition+_,l=this.psycle.cloneCount*this.psycle.length,c=l*y,a=u/y*-1;this.psycle.repeat===i.default.LOOP&&(a-=l);var d=a-this.psycle.index,v=0;if(0<d)f<d?v=a-f:v=this.psycle.index;else if(d<0)d<f*-1?v=a-f:v=this.psycle.index;else return;var m=o.default.roundUp(v-this.psycle.index),P=m*y,g=Math.abs(P-c-u),w=(g===0?0:m>0?1:-1)*-1,L=o.default.getSpeed(g,this.config.duration),V=o.default.getDuration(g,L),D=this.psycle.index+m,M=200,kt=5,jt=Date.now()-this.dragStartTimestamp<M,Wt=kt<Math.abs(this._moveValueFromPrevTouchMove);jt&&Wt&&(this._moveValueFromPrevTouchMove<0?this._swipeleft():this._swiperight()),!this.isSwiping&&g!==0&&this.psycle.transitionTo(D,V,w,m,!0),this.isSwiping=!1,this.isDragging=!1,this.psycle.isTransition=!1},t.prototype._swipeleft=function(){if(this.config.swipeable){this.isSwiping=!0,this.psycle.stop();var n=Date.now()-this.dragStartTimestamp;this.psycle.next(n)}},t.prototype._swiperight=function(){if(this.config.swipeable){this.isSwiping=!0,this.psycle.stop();var n=Date.now()-this.dragStartTimestamp;this.psycle.prev(n)}},t}();return r.default.create({slide:{init:function(){h.default.posBase(this.stage.$el),h.default.posAbs(this.container.$el),h.default.posBase(this.panels.$el),h.default.floating(this.panels.$el),h.default.saveCSS(this.panels.$el),this.config.draggable&&new e(this.stage.$el,this,this.config)},reflow:function(t){switch(t.timing){case s.default.TRANSITION_END:{var n=this.panelWidth*this.index*-1+this.cloneCount*this.panelWidth*this.length*-1;this.container.$el.css({left:n});break}case s.default.RESIZE_END:case s.default.RESIZE_START:case s.default.INIT:case s.default.LOAD:{t.timing===s.default.RESIZE_END&&(this.cloneCount=0,this.panels.removeClone());var f=this.panels.$el,p=this.container.$el;h.default.cleanCSS(f),h.default.posBase(f),h.default.floating(f),h.default.cleanCSS(p),h.default.posAbs(p);var _=f.width()||0,y=f.outerWidth(!0)||0;this.panelWidth=y,this.stageWidth=this.stage.$el.width()||0,f.width(_),this.panels.getClones().width(_);var u=y*this.length;if(this.repeat===i.default.LOOP){var l=this.stageWidth/u,c=Math.ceil(l/2)+1;c===1/0&&(c=this.cloneCount+1),this.cloneCount<c&&(this.panels.removeClone(),this.panels.cloneBefore(c),this.panels.cloneAfter(c),this.cloneCount=c),u=this.panelWidth*this.length*(this.cloneCount*2+1)}var n=this.panelWidth*this.index*-1+this.cloneCount*this.panelWidth*this.length*-1;if(p.css({width:u,left:n}),this.config.resizable){var a=void 0;switch(this.config.dimension){case"max":{a=this.panels.getMaxHeight();break}case"min":{a=this.panels.getMinHeight();break}default:a=this.panels.getHeight()}this.stage.setHeight(a)}break}}},silent:function(){},before:function(){},fire:function(){this.animation&&this.animation.stop();var t=this.duration||this.config.duration,n=this.panelWidth*(this.index+this.vector)*-1+this.cloneCount*this.panelWidth*this.length*-1;this.animation=this.container.$el.animate({left:n},{duration:t,easing:this.config.easing})},cancel:function(){},after:function(){}}}),Y}Tt();var C={},R={},U={},B={},ct;function ut(){if(ct)return B;ct=1,Object.defineProperty(B,"__esModule",{value:!0});var h=function(){function o(s){this.defaultPrevented=!1,this.type=s,this.timeStamp=new Date().valueOf()}return o.prototype.preventDefault=function(){this.defaultPrevented=!0},o.INIT="init",o.PANEL_CHANGE_START_BEFORE="panelChangeStartBefore",o.PANEL_CHANGE_START="panelChangeStart",o.PANEL_CHANGE_END="panelChangeEnd",o.PANEL_CHANGE_CANCEL="panelChangeCancel",o.WAIT_START="waitStart",o.WAIT_END="waitEnd",o.RESIZE_START="resizeStart",o.RESIZE_END="resizeEnd",o}();return B.default=h,B}var ht;function $t(){if(ht)return U;ht=1,Object.defineProperty(U,"__esModule",{value:!0});var h=ut(),o=function(){function s(){this._listeners={}}return s.prototype.on=function(i,r){var e;typeof i=="string"?e=i.split(/\s+/):e=i;for(var t=0,n=e.length;t<n;t++)this._listeners[e[t]]||(this._listeners[e[t]]=[]),this._listeners[e[t]].push(r)},s.prototype.off=function(i,r){for(var e=i.split(/\s+/),t=0,n=e.length;t<n;t++){var f=e[t];(r==null||this._listeners[f]===r)&&delete this._listeners[f]}},s.prototype.trigger=function(i,r,e){if(r===void 0&&(r={}),e===void 0&&(e=this),this._listeners[i])for(var t=this._listeners[i].length,n=0;n<t;n++){var f=this._listeners[i][n],p=new h.default(i);if(p.data=r,f.call(e,p),p.defaultPrevented)return!1}return!0},s}();return U.default=o,U}var ft;function q(){if(ft)return R;ft=1;var h=R&&R.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(r,e){i(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(R,"__esModule",{value:!0});var o=$t(),s=function(i){h(r,i);function r(e){var t=i.call(this)||this;if(!e.length)throw new ReferenceError("This jQuery object is empty.");return t.$el=e,t.el=e[0],t}return r.prototype.trigger=function(e,t,n){t===void 0&&(t={}),n===void 0&&(n=this);var f=i.prototype.trigger.call(this,e,t,n);return f&&this.$el.trigger(e,t),f},r.prototype.getWidth=function(){return this.$el.width()||0},r.prototype.getHeight=function(){return this.$el.height()||0},r.prototype.getMaxHeight=function(){var e=0;return this.$el.each(function(t,n){e=Math.max($(n).height()||0,e)}),e},r.prototype.getMinHeight=function(){var e=1/0;return this.$el.each(function(t,n){e=Math.min($(n).height()||0,e)}),e===1/0&&(e=NaN),e},r.prototype.setWidth=function(e){return this.$el.width(e),this},r.prototype.setHeight=function(e){return this.$el.height(e),this},r}(o.default);return R.default=s,R}var O={},pt;function xt(){if(pt)return O;pt=1;var h=O&&O.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(r,e){i(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var o=q(),s=function(i){h(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r}(o.default);return O.default=s,O}var N={},x={},dt;function It(){if(dt)return x;dt=1;var h=x&&x.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x,"__esModule",{value:!0});var o=q(),s=function(r){h(e,r);function e(t,n,f){var p=r.call(this,t)||this;return p.hasImages=!1,p.loaded=!1,p.index=n,p._list=f,p._loadImageObserve(),p}return e.prototype.show=function(){return this.$el.show(),this},e.prototype.hide=function(){return this.$el.hide(),this},e.prototype.clone=function(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);var f=new i(this.$el.clone(),this.index,this._list);return t&&this.$el.after(f.$el),n&&this._list.addClone(f),f},e.prototype._loadImageObserve=function(){var t=this,n=this.$el.find("img"),f=[];n.length&&(this.hasImages=!0,n.each(function(p,_){var y=$.Deferred(),u=function(){y.resolve()},l=function(){y.resolve()},c=function(){y.resolve()};_.onload=u,_.onerror=c,_.onabort=l,f.push(y.promise())}),$.when.apply($,f).done(function(){t.loaded=!0,t.trigger("load")}))},e}(o.default);x.default=s;var i=function(r){h(e,r);function e(t,n,f){var p=r.call(this,t,n,f)||this;return t.addClass("-psycle-clone-element"),t.attr("data-psycle-clone-element","true"),t.attr("data-psycle-clone-original-index",""+n),p}return e.prototype._loadImageObserve=function(){},e}(s);return x.PsyclePanelClone=i,x}var gt;function Ct(){if(gt)return N;gt=1;var h=N&&N.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(N,"__esModule",{value:!0});var o=q(),s=It(),i=function(r){h(e,r);function e(t){var n=r.call(this,t)||this;n.length=0,n._panels=[],n._clones=[];for(var f,p=0,_=t.length;p<_;p++)f=$(t[p]),n.add(f);var y=[];return n.each(function(u,l){var c=$.Deferred();l.hasImages&&(l.loaded?c.resolve():l.on("load",function(){c.resolve()}),y.push(c.promise()))}),$.when.apply($,y).done(function(){n.trigger("load")}),n}return e.prototype.setCurrent=function(t,n){return this.resetCurrent(n),this.item(t).$el.addClass(n),this},e.prototype.resetCurrent=function(t){return this.$el.removeClass(t),this.getClones().removeClass(t),this},e.prototype.add=function(t){var n=this._panels.length,f=new s.default(t,n,this);return this._panels.push(f),this.$el=this.$el.add(t),this.length+=1,this},e.prototype.addClone=function(t){return this._clones.push(t),this},e.prototype.cloneAfter=function(t){return this.clone(t)},e.prototype.cloneBefore=function(t){return this.clone(t,!0)},e.prototype.clone=function(t,n){n===void 0&&(n=!1);for(var f=[],p=$(),_=0,y=t;_<y;_++)this.each(function(u,l){var c=l.clone(!1,!1);f.push(c);var a=c.$el;p=p.add(a)});return n?this.$el.eq(0).before(p):this.$el.eq(-1).after(p),this._clones=this._clones.concat(f),this},e.prototype.remove=function(t,n){return n===void 0&&(n=!0),n&&this.$el.eq(t).remove(),this._panels.splice(t,1),this._renumbering(),this.length-=1,this},e.prototype.item=function(t){var n=this._getRealIndex(t);return this._panels[n]},e.prototype.each=function(t){for(var n=0,f=this._panels.length;n<f;n++){var p=this._panels[n];t.call(p,p.index,p)}return this},e.prototype.show=function(){return this.$el.show(),this},e.prototype.hide=function(){return this.$el.hide(),this},e.prototype.removeClone=function(){for(var t=0,n=this._clones.length;t<n;t++)this._clones[t].$el.remove();return this._clones=[],this},e.prototype.getClones=function(){for(var t=$(),n=0,f=this._clones.length;n<f;n++)t=t.add(this._clones[n].$el);return t},e.prototype._getRealIndex=function(t){var n=this._panels.length;t=t%n;var f=t<0?n+t:t;return f},e.prototype._renumbering=function(){for(var t=this._panels.length,n=0;n<t;n++)this._panels[n].index=n;return t},e}(o.default);return N.default=i,N}var A={},vt;function Rt(){if(vt)return A;vt=1;var h=A&&A.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(r,e){i(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(A,"__esModule",{value:!0});var o=q(),s=function(i){h(r,i);function r(e,t){var n=i.call(this,e)||this;return n._panels=t,n._panels.on("load",function(){n.trigger("load")}),n}return r}(o.default);return A.default=s,A}var _t;function Ot(){if(_t)return C;_t=1;var h=C&&C.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)l.hasOwnProperty(c)&&(u[c]=l[c])};return function(u,l){y(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(C,"__esModule",{value:!0});var o=q(),s=ut(),i=rt(),r=xt(),e=Ct(),t=X(),n=ot(),f=Rt(),p=G(),_=function(y){h(u,y);function u(l,c){var a=y.call(this,l)||this;a.index=0,a.vector=0,a.isTransition=!1,a.isPaused=!1,a.cloneCount=0,a._times=[],a._ignoreIndexes=[],a.config=$.extend({instanceKey:"psycle",startIndex:0,transition:"slide",duration:600,easing:"swing",delay:3e3,auto:!0,cancel:!0,repeat:n.default.RETURN,container:">ul:eq(0)",panels:">li",currentClass:"current",delayWhenFire:0,clone:2,cols:1,rows:1,offsetX:0,offsetY:0,nearby:!1,innerFocus:!1,noFocus:!0,resizable:!1,draggable:!1,swipeable:!1,dragBlockVertical:!1,bindKeyboard:!1,showOnlyOnce:".once",controller:null,marker:null,thumbnail:null,css3:!0,loopCloneLength:null,scenes:[],dimension:"auto",crossFade:!0},c);var d=l,v=d.find(a.config.container),m=v.find(a.config.panels);if(a.panels=new e.default(m),a.container=new r.default(v),a.stage=new f.default(d,a.panels),a.transition=p.default.transitions[a.config.transition],a.transition==null)throw new ReferenceError("'"+a.config.transition+"' is not transition type.");if(a.transition.fallback&&a.transition.fallbackFilter&&a.transition.fallbackFilter()&&(a.transition=p.default.transitions[a.transition.fallback],a.transition==null))throw new ReferenceError("'"+a.config.transition+"' is not transition type.");return a.index=+a.config.startIndex||0,a.to=a.index,a.from=a.index,a.repeat=a.config.repeat,a.length=a.panels.length,a.progressIndex=a.index,a._resizeable(),a._init(),a._silent(),a.panels.on("load",function(){a._load()}),l.data(a.config.instanceKey,a),setTimeout(function(){a._initFinished(),a.config.auto&&a.play()},0),a}return u.prototype.play=function(){var l=this,c=this.trigger("play");return c&&(this.config.auto=!0,clearTimeout(this.timer),this.timer=setTimeout(function(){l.next()},this.config.delay)),this},u.prototype.stop=function(){return clearTimeout(this.timer),this.isPaused=!0,this},u.prototype.freeze=function(){return this.animation&&this.animation.stop(),this.stop(),this},u.prototype.gotoPanel=function(l,c,a){return a===void 0&&(a=0),this.isTransition?this:(this.transitionTo(l,c,a),this)},u.prototype.prev=function(l){if(this.isTransition)return this;var c=-1;return this.gotoPanel(this.index-1,l,c),this},u.prototype.next=function(l){if(this.isTransition)return this;var c=1;return this.gotoPanel(this.index+1,l,c),this},u.prototype.reflow=function(l){return this.transition.reflow.call(this,{timing:t.default.REFLOW_METHOD,data:l}),this},u.prototype.isFirst=function(){return this._isFirst(this.index)},u.prototype.isLast=function(){return this._isLast(this.index)},u.prototype.marker=function(l,c){var a=this,d=$("<ul />");c=c||s.default.PANEL_CHANGE_END;for(var v=0,m=this.length;v<m;v++){var P=$("<li />");P.appendTo(d),this.panels.item(v).$el.filter(this.config.showOnlyOnce).length&&P.addClass(this.config.showOnlyOnce).hide()}var g=d.find("li");return this.on(c,function(w){g.removeClass(a.config.currentClass),g.eq(w.data.to).addClass(a.config.currentClass)}),g.eq(this.config.startIndex).addClass(this.config.currentClass),g.on("click",function(w){a.gotoPanel($(w.target).index(),l),w.preventDefault()}),d},u.prototype.marked=function(l,c){var a=this,d=$.extend({type:"li",duration:null},c),v=l[0].nodeName,m=""+d.type;(v==="UL"||v==="OL")&&(m="li");var P;switch(m.toLowerCase()){case"li":case"list":case"ls":case"ul":case"ol":{P="li";break}case"i":case"in":case"inline":case"span":{P="span";break}default:P="div"}for(var g=$("<"+P+" />"),w=0,L=this.length;w<L;w++){var V=g.clone();V.appendTo(l),this.panels.item(w).$el.filter(this.config.showOnlyOnce).length&&V.addClass(this.config.showOnlyOnce).hide()}var D=l.find(">"+P);D.eq(this.config.startIndex).addClass(this.config.currentClass),this.on(s.default.PANEL_CHANGE_END,function(M){D.removeClass(a.config.currentClass),D.eq(M.data.index).addClass(a.config.currentClass)}),D.on("click",function(M){a.gotoPanel($(M.target).index(),d.duration),M.preventDefault()})},u.prototype.controller=function(l,c){var a=this,d=$.extend({prev:".prev",next:".next",duration:null,ifFirstClass:"is-first",ifLastClass:"is-last",ifIgnoreClass:"is-ignore"},c),v=d.prev,m=d.next;$(v),$(m),l.on("click",v,function(g){a.prev(d.duration),g.preventDefault()}),l.on("click",m,function(g){a.next(d.duration),g.preventDefault()});var P=function(){a.isFirst()?l.addClass(d.ifFirstClass):l.removeClass(d.ifFirstClass),a.isLast()?l.addClass(d.ifLastClass):l.removeClass(d.ifLastClass),a._ignoreIndexes[a.index]?l.addClass(d.ifIgnoreClass):l.removeClass(d.ifIgnoreClass)};this.on(s.default.PANEL_CHANGE_END,P),P()},u.prototype.ctrl=function(l,c){this.controller(l,c)},u.prototype.transitionTo=function(l,c,a,d,v){var m=this;a===void 0&&(a=0),v===void 0&&(v=!1),this.before();var P=d&&$.isNumeric(d)?d:this._optimizeVector(l,a),g=this._optimizeCounter(this.index+P,l);if(v){if(this._ignoreIndexes[g]&&this._times[g]>=1)return this.progressIndex!==g?(this.progressIndex=g,this.transitionTo(l+a,c,0,P+a,v)):this._finaly(),this;this.index===g&&(P=0)}else{for(var w=0;this._ignoreIndexes[g]&&this._times[g]>=1&&w++<50;){if(P=d&&$.isNumeric(d)?d:this._optimizeVector(g+a,a),g=this._optimizeCounter(this.index+P,g+a),this.progressIndex===g)return this._finaly(),this;this.progressIndex=g}if(this.index===g)return this._finaly(),this}this.duration=c||this.config.duration,this.vector=P,this.from=this.index,this.to=g,this.progressIndex=g,this.config.delayWhenFire?(clearTimeout(this._delayTimer),this._delayTimer=setTimeout(function(){m._fire()},this.config.delayWhenFire)):this._fire();var L=this.animation.promise();return L.done(function(){m._done()}),L.fail(function(){m._fail()}),this},u.prototype.before=function(){this.transition.before.call(this),this.panels.resetCurrent(this.config.currentClass),this.trigger(s.default.PANEL_CHANGE_START_BEFORE,this._getState())},u.prototype._optimizeVector=function(l,c){var a=(l+this.length)%this.length,d=Math.abs(this.index-a),v,m=this.index<a?1:-1;return this.length-1<=this.index&&this.index<l?m=-1:l<this.index&&this.index<=0&&(m=1),this.repeat===n.default.LOOP?v=i.default.getloopSeriesVector(this.index,l,c,this.length):v=d*m,v},u.prototype._optimizeCounter=function(l,c){var a;switch(this.repeat){case n.default.LOOP:{a=i.default.getloopSeriesNumber(l,this.length);break}case n.default.RETURN:{a=(l+this.length)%this.length;break}default:{var d=this.length-1;a=c<0?0:c,a=a<d?a:d}}return a},u.prototype._isFirst=function(l){for(var c=0;this._ignoreIndexes[c]&&this._times[c]>=1;)c+=1;return l===c},u.prototype._isLast=function(l){for(var c=this.length-1;this._ignoreIndexes[c]&&this._times[c]>=1;)c-=1;return l===c},u.prototype._resizeable=function(){var l=this,c=300,a,d=!1;$(window).on("resize",function(v){d||(d=!0,l._resizeStart()),clearTimeout(a),l._resize(),a=setTimeout(function(){l._resizeEnd(),d=!1},c)})},u.prototype._getState=function(){return{index:this.index,stage:this.stage,container:this.container,panel:this.panels.item(this.index),panels:this.panels,stageWidth:this.stageWidth,panelWidth:this.panelWidth,length:this.length,from:this.from,to:this.to,vector:this.vector,isTransition:this.isTransition,isPaused:this.isPaused}},u.prototype._load=function(){this.transition.reflow.call(this,{timing:t.default.LOAD})},u.prototype._init=function(){var l=this;this._times[this.config.startIndex]=1,this.panels.each(function(c,a){a.$el.filter(l.config.showOnlyOnce).length?l._ignoreIndexes[c]=!0:l._ignoreIndexes[c]=!1}),this.transition.init.call(this),this.transition.reflow.call(this,{timing:t.default.INIT})},u.prototype._initFinished=function(){this.trigger(s.default.INIT,this._getState())},u.prototype._silent=function(){this.transition.silent.call(this),this.transition.reflow.call(this,{timing:t.default.TRANSITION_END}),this.panels.setCurrent(this.index,this.config.currentClass)},u.prototype._before=function(){this.before()},u.prototype._fire=function(){this.isTransition=!0,this.trigger(s.default.PANEL_CHANGE_START,this._getState()),this.transition.fire.call(this)},u.prototype._cancel=function(){this.transition.cancel.call(this)},u.prototype._done=function(){this.index=this.to,this.progressIndex=this.to,this.isTransition=!1,this._after(),this._silent(),this.trigger(s.default.PANEL_CHANGE_END,this._getState()),this._times[this.to]=this._times[this.to]+1||1,this._finaly()},u.prototype._after=function(){this.transition.after.call(this)},u.prototype._fail=function(){this.stop(),this._cancel(),this.isTransition=!1,this.trigger(s.default.PANEL_CHANGE_CANCEL,this._getState()),this._finaly()},u.prototype._finaly=function(){this.config.auto?this.repeat===n.default.NONE&&this.isLast()?this.stop():this.play():this.stop()},u.prototype._resize=function(){this.transition.reflow.call(this,{timing:t.default.RESIZE})},u.prototype._resizeStart=function(){this.transition.reflow.call(this,{timing:t.default.RESIZE_START}),this.trigger(s.default.RESIZE_START,this._getState()),this.animation&&this.isTransition&&this.freeze()},u.prototype._resizeEnd=function(){this.transition.reflow.call(this,{timing:t.default.RESIZE_END}),this.trigger(s.default.RESIZE_END,this._getState()),this.isPaused&&this.config.auto&&this.gotoPanel(this.to)},u}(o.default);return C.default=_,C}var Nt=Ot();const At=S(Nt);function Lt(h,o){const s=$(o),i=s.find(".bgt-gallery"),r=new At(i,{transition:i.attr("data-gallery-effect"),container:".bgt-gallery__group",panels:".bgt-gallery__item",dragBlockVertical:!0,draggable:!0,swipeable:!0,duration:Number.parseInt(i.attr("data-gallery-duration")||"",10),delay:Number.parseInt(i.attr("data-gallery-delay")||"",10),auto:i.attr("data-gallery-autoplay")==="true",repeat:"loop"}),e=r.marker();if(e.addClass("bgt-gallery-marker"),e.appendTo(s),e.find("li").each((t,n)=>{const f=s.find(".bgt-gallery__item").eq(t).find("img").prop("src");f&&(n.style.backgroundImage=`url("${f}")`)}),i.attr("data-gallery-ctrl")==="true"){const t=$(`<div class="bgt-gallery-ctrl">
8
+ <button class="bgt-gallery-ctrl__prev"><span>Prev</span></button>
9
+ <button class="bgt-gallery-ctrl__next"><span>Next</span></button>
10
+ </div>`);t.appendTo(i),r.controller(t,{prev:".bgt-gallery-ctrl__prev",next:".bgt-gallery-ctrl__next",ifFirstClass:"bgt-gallery-ctrl__state-is-first",ifLastClass:"bgt-gallery-ctrl__state-is-last",ifIgnoreClass:"bgt-gallery-ctrl__state-is-ignore"})}}const Dt="bge-map-";let Mt=0;async function qt(h){if(!window?.google?.maps)return;google.maps.marker=await google.maps.importLibrary("marker");const o=$(h),s=35.681382,i=139.766084,r=14,e=+o.data("lat")||s,t=+o.data("lng")||i,n=+o.data("zoom")||r,f=new google.maps.LatLng(e,t),p={mapId:`${Dt}${Mt++}`,zoom:n,scrollwheel:!1,center:f,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.HYBRID,google.maps.MapTypeId.ROADMAP]}},_=new google.maps.Map(h,p);new google.maps.marker.AdvancedMarkerElement({position:f,map:_})}function zt(h){h.dataset.id&&new K(h)}const I=class I{constructor(o){mt(this,b);this.isEmbedded=!1,this.player=null;const s=$(o);this.movieId=s.data("id"),this.title=s.data("title")||"YouTube動画";const i={version:3,rel:0,autoplay:0,controls:1,disablekb:1,iv_load_policy:3,loop:0,modestbranding:1,showinfo:1,wmode:"transparent",enablejsapi:1};this.src=I.getURI(this.movieId,i),this.playerDomId=this.movieId+"-Player",z(this,b,Et).call(this,o),z(this,b,wt).call(this)}static getURI(o,s){const i=$.param(s);return`${/https?:/i.test(location.protocol)?"":"http:"}${I.PLAYER_URL}${o}?${i}`}};b=new WeakSet,Pt=function(o){this.player=new YT.Player(o,{videoId:this.movieId})},Et=function(o){const s=$('<iframe class="-bc-youtube-player-frame-element" loading="lazy" allowfullscreen />');s.attr("title",this.title),s.prop({src:this.src,id:this.playerDomId}),$(o).empty(),s.prependTo(o)},wt=function(){if(!("YT"in window&&YT.Player)){const s=/https?:/i.test(location.protocol)?"":"http:";$.getScript(`${s}${I.API_URL}`)}const o=setInterval(()=>{!this.player&&"YT"in window&&YT.Player&&z(this,b,Pt).call(this,this.playerDomId),this.player&&this.player.pauseVideo!=null&&this.player.playVideo!=null&&(clearInterval(o),z(this,b,St).call(this))},300)},St=function(){this.isEmbedded=!0},I.PLAYER_URL="//www.youtube.com/embed/",I.API_URL="//www.youtube.com/player_api";let K=I;const Q={colorbox:{maxWidth:"95%",maxHeight:"95%"}};function Ft(h){h.find('[data-bge-popup="true"] a').each((s,i)=>{const r=$(i),t=r.find(".bgt-box__image").css("background-image");if(t){const n=t.replace(/\s*url\s*\((["']?)(.+?)\1\)\s*;?\s*/i,"$2");r.attr("href",n)}}),h.find('[data-bgb] [target="false"]').each((s,i)=>{$(i).removeAttr("target")}),h.find('[data-bge-popup="true"] a, [data-bge-popup="1"] a, .bgt-colorbox').each((s,i)=>{const r=$(i),e=i.href;e&&(i.dataset.href=e,i.removeAttribute("href"),i.tabIndex=0,i.role="button"),r.colorbox({href:e,maxWidth:Q.colorbox.maxWidth??"auto",maxHeight:Q.colorbox.maxHeight??"auto",rel:"bgt-colorbox",current:"{current} / {total}"}),r.on("keydown",t=>{switch(t.key){case"Enter":case" ":t.preventDefault(),i.click()}})})}var Z;return(h=>{h.execute=(o,s)=>{const i=$(o);Ft(i),i.find(".bgt-google-maps").each((r,e)=>void qt(e)),i.find(".bgt-youtube").each((r,e)=>zt(e)),i.find('[data-bgt="gallery"]').each(s?.gallery||Lt)}})(Z||(Z={})),window.BgE={...window.BgE,...Z},window.addEventListener("DOMContentLoaded",()=>Z.execute(document,window.BgE.options)),E.options=Q,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});
11
+ })();
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/scaffold",
3
- "version": "5.0.0-beta.16",
3
+ "version": "5.0.0-beta.18",
4
4
  "description": "Frontend scaffold files of D-ZERO Co., Ltd.",
5
5
  "repository": "https://github.com/d-zero-dev/frontend-env.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -18,7 +18,7 @@
18
18
  "build": "yarn lint && npx @d-zero/builder",
19
19
  "build:only": "npx @d-zero/builder",
20
20
  "build:clear": "yarn lint && npx @d-zero/builder --clear-cache",
21
- "build:only:cleaer": "npx @d-zero/builder --clear-cache",
21
+ "build:only:clear": "npx @d-zero/builder --clear-cache",
22
22
  "dev": "npx eleventy --serve --watch",
23
23
  "d": "yarn dev",
24
24
  "lint": "run-s \"lint:*\"",
@@ -45,40 +45,40 @@
45
45
  "last 2 ios_saf version"
46
46
  ],
47
47
  "devDependencies": {
48
- "@burger-editor/local": "4.0.0-alpha.29",
49
- "@d-zero/builder": "5.0.0-beta.16",
48
+ "@burger-editor/local": "4.0.0-alpha.30",
49
+ "@d-zero/builder": "5.0.0-beta.18",
50
50
  "@d-zero/cspell-config": "5.0.0-alpha.73",
51
51
  "@d-zero/eslint-config": "5.0.0-alpha.73",
52
52
  "@d-zero/lint-staged-config": "5.0.0-alpha.73",
53
53
  "@d-zero/markuplint-config": "5.0.0-alpha.73",
54
- "@d-zero/postcss-config": "5.0.0-beta.16",
54
+ "@d-zero/postcss-config": "5.0.0-beta.18",
55
55
  "@d-zero/prettier-config": "5.0.0-alpha.73",
56
56
  "@d-zero/pug-lint-config": "5.0.0-alpha.73",
57
57
  "@d-zero/stylelint-config": "5.0.0-alpha.73",
58
58
  "@d-zero/textlint-config": "5.0.0-alpha.73",
59
59
  "@d-zero/tsconfig": "0.5.0",
60
60
  "@prettier/plugin-pug": "3.4.2",
61
- "@types/node": "24.9.1",
61
+ "@types/node": "24.10.1",
62
62
  "cross-env": "10.1.0",
63
63
  "dotenv": "17.2.3",
64
64
  "husky": "9.1.7",
65
- "jsdom": "27.0.1",
65
+ "jsdom": "27.2.0",
66
66
  "npm-run-all2": "8.0.4",
67
67
  "typescript": "5.9.3",
68
- "vitest": "3.2.4"
68
+ "vitest": "4.0.13"
69
69
  },
70
70
  "dependencies": {
71
- "@burger-editor/css": "4.0.0-alpha.29",
72
- "@d-zero/custom-components": "5.0.0-beta.16",
71
+ "@burger-editor/css": "4.0.0-alpha.30",
72
+ "@d-zero/custom-components": "5.0.0-beta.18",
73
73
  "dialog-toggle-events-polyfill": "1.1.4",
74
74
  "invokers-polyfill": "0.5.7",
75
75
  "kiso.css": "1.2.2",
76
76
  "tslib": "2.8.1"
77
77
  },
78
- "packageManager": "yarn@4.10.3",
78
+ "packageManager": "yarn@4.12.0",
79
79
  "volta": {
80
- "node": "24.10.0",
81
- "yarn": "4.10.3"
80
+ "node": "24.11.1",
81
+ "yarn": "4.12.0"
82
82
  },
83
- "gitHead": "1c4941c9c616481599b50d8be059b4376d91b952"
83
+ "gitHead": "5bac6d04a240a9a5e37c7f23cfb308ab68a95664"
84
84
  }