@xwadex/fesd 0.0.14-re.26 → 0.0.14-re.28

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.
@@ -376,7 +376,7 @@ class tc {
376
376
  this.__storage__ = {
377
377
  el: n,
378
378
  options: t
379
- }, ge(this, sa, Or).call(this);
379
+ }, this.active = "data-anchor-active", ge(this, sa, Or).call(this);
380
380
  }
381
381
  destroy() {
382
382
  const { elements: n } = this;
@@ -409,14 +409,14 @@ sa = new WeakSet(), Or = function() {
409
409
  if (!ha(n) || !_t(n))
410
410
  return;
411
411
  const { SETTINGS: a, EVENTS: r } = _a;
412
- if (this.elements = Pi(n + ":not([data-anchor-active])"), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
412
+ if (this.elements = Pi(n + `:not([${this.active}])`), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
413
413
  for (const [l, f] of Object.entries(this.options.on))
414
414
  this.__events__[l] = [f];
415
415
  ge(this, Ga, nc).call(this);
416
416
  }, Ga = new WeakSet(), nc = function() {
417
417
  const { elements: n, options: t } = this;
418
418
  n.forEach((a) => {
419
- a.anchor = {}, a.anchor.instance = this, a.anchor.eventHandler = ge(this, Xa, ic), a.anchor.defaultOptions = t, a.anchor.methods = {}, a.anchor.methods.destroy = this.destroy, a.anchor.methods.update = this.update, a.addEventListener("click", a.anchor.eventHandler), a.setAttribute("data-anchor-active", "");
419
+ a.anchor = {}, a.anchor.instance = this, a.anchor.eventHandler = ge(this, Xa, ic), a.anchor.defaultOptions = t, a.anchor.methods = {}, a.anchor.methods.destroy = this.destroy, a.anchor.methods.update = this.update, a.addEventListener("click", a.anchor.eventHandler), a.setAttribute(this.active, "");
420
420
  }), this.emit("afterInit");
421
421
  }, Xa = new WeakSet(), ic = function() {
422
422
  const { defaultOptions: n, eventHandler: t, instance: a } = this.anchor, r = {
@@ -1909,7 +1909,7 @@ const si = class si {
1909
1909
  this.__storage__ = {
1910
1910
  el: n,
1911
1911
  options: t
1912
- }, ge(this, ra, Zr).call(this);
1912
+ }, this.active = "data-modal-active", ge(this, ra, Zr).call(this);
1913
1913
  }
1914
1914
  destroy() {
1915
1915
  const { elements: n } = this;
@@ -1940,14 +1940,14 @@ ra = new WeakSet(), Zr = function() {
1940
1940
  if (!ha(n) || !_t(n))
1941
1941
  return;
1942
1942
  const { SETTINGS: a, EVENTS: r } = Bn;
1943
- if (this.elements = Pi(n + ":not([data-modal-active])"), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
1943
+ if (this.elements = Pi(n + `:not([${this.active}])`), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
1944
1944
  for (const [l, f] of Object.entries(this.options.on))
1945
1945
  this.__events__[l] = [f];
1946
1946
  ge(this, Qa, Qc).call(this);
1947
1947
  }, Qa = new WeakSet(), Qc = function() {
1948
1948
  const { elements: n, options: t } = this;
1949
1949
  n.forEach((a) => {
1950
- a.modal = {}, a.modal.instance = this, a.modal.eventHandler = ge(this, es, eu), a.modal.defaultOptions = t, a.modal.methods = {}, a.modal.methods.destroy = this.destroy, a.modal.methods.update = this.update, a.addEventListener("click", a.modal.eventHandler), a.setAttribute("data-modal-active", "");
1950
+ a.modal = {}, a.modal.instance = this, a.modal.eventHandler = ge(this, es, eu), a.modal.defaultOptions = t, a.modal.methods = {}, a.modal.methods.destroy = this.destroy, a.modal.methods.update = this.update, a.addEventListener("click", a.modal.eventHandler), a.setAttribute(this.active, "");
1951
1951
  }), this.emit("init");
1952
1952
  }, es = new WeakSet(), eu = function(n) {
1953
1953
  const { defaultOptions: t, eventHandler: a, instance: r } = this.modal, l = hf(this.getAttribute("data-modal-on"));
@@ -1990,7 +1990,7 @@ class tu {
1990
1990
  this.__storage__ = {
1991
1991
  el: n,
1992
1992
  options: t
1993
- }, ge(this, oa, Qr).call(this);
1993
+ }, this.active = "data-aost-active", ge(this, oa, Qr).call(this);
1994
1994
  }
1995
1995
  destroy(n) {
1996
1996
  const { elements: t, options: a } = this;
@@ -2014,7 +2014,7 @@ oa = new WeakSet(), Qr = function() {
2014
2014
  if (!ha(n) || !_t(n))
2015
2015
  return;
2016
2016
  const { SETTINGS: a, EVENTS: r } = Jl;
2017
- if (this.elements = Pi(n + ":not([data-aost-active])"), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
2017
+ if (this.elements = Pi(n + `:not([${this.active}])`), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
2018
2018
  for (const [l, f] of Object.entries(this.options.on))
2019
2019
  this.__events__[l] = [f];
2020
2020
  ge(this, ts, nu).call(this);
@@ -2023,7 +2023,7 @@ oa = new WeakSet(), Qr = function() {
2023
2023
  this.eventHandler = () => {
2024
2024
  bp(r, n);
2025
2025
  }, n.forEach((f) => {
2026
- f.aost = {}, f.aost.class = f.getAttribute("data-aost-class") || t.class, f.aost.delay = parseInt(f.getAttribute("data-aost-delay")) || t.delay, f.aost.start = parseInt(f.getAttribute("data-aost-start")) || t.start, f.aost.end = parseInt(f.getAttribute("data-aost-end")) || t.end, f.aost.repeat = Tp(f.getAttribute("data-aost-repeat"), t), f.aost.methods = {}, f.aost.methods.destroy = this.destroy, f.aost.methods.update = this.update, f.aost.instance = this, f.setAttribute("data-aost-active", "");
2026
+ f.aost = {}, f.aost.class = f.getAttribute("data-aost-class") || t.class, f.aost.delay = parseInt(f.getAttribute("data-aost-delay")) || t.delay, f.aost.start = parseInt(f.getAttribute("data-aost-start")) || t.start, f.aost.end = parseInt(f.getAttribute("data-aost-end")) || t.end, f.aost.repeat = Tp(f.getAttribute("data-aost-repeat"), t), f.aost.methods = {}, f.aost.methods.destroy = this.destroy, f.aost.methods.update = this.update, f.aost.instance = this, f.setAttribute(this.active, "");
2027
2027
  });
2028
2028
  const { eventHandler: l } = this;
2029
2029
  l(), r.aost = {}, r.aost.eventHandler = l, r.addEventListener("scroll", r.aost.eventHandler, !1);
@@ -13055,14 +13055,14 @@ class yv {
13055
13055
  }
13056
13056
  la = new WeakSet(), ro = function() {
13057
13057
  const { el: n, options: t } = this.__storage__, { SETTINGS: a, EVENTS: r } = Ki;
13058
- if (this.elements = Pi(n + ":not([data-video-active])"), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
13058
+ if (this.elements = Pi(n), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
13059
13059
  for (const [l, f] of Object.entries(this.options.on))
13060
13060
  this.__events__[l] = [f];
13061
13061
  ge(this, cs, Ju).call(this);
13062
13062
  }, cs = new WeakSet(), Ju = function() {
13063
13063
  const { elements: n, options: t } = this;
13064
13064
  n.forEach((a) => {
13065
- a.video = {}, a.video.instance = this, a.video.defaultOptions = t, a.video.params = ge(this, ds, Qu).call(this, a), a.video.methods = {}, a.video.methods.update = this.update, a.setAttribute("data-video-active", ""), Vl(a.video.params) && !vv(a.video.params) && (a.setAttribute("video4-active", "on"), ge(this, us, Zu).call(this, a)), Vl(a.video.params) || ul("video4", "無法取得影片 ID");
13065
+ a.video = {}, a.video.instance = this, a.video.defaultOptions = t, a.video.params = ge(this, ds, Qu).call(this, a), a.video.methods = {}, a.video.methods.update = this.update, Vl(a.video.params) && !vv(a.video.params) && (a.setAttribute("video4-active", "on"), ge(this, us, Zu).call(this, a)), Vl(a.video.params) || ul("video4", "無法取得影片 ID");
13066
13066
  }), this.emit("init");
13067
13067
  }, us = new WeakSet(), Zu = function(n) {
13068
13068
  const { LAYOUT: t } = Ki, a = n.video.params, { $selector: r, videoLayoutNo: l, videoId: f, videoType: m, videoMode: c, videoButton: u, videoCover: h } = a;
@@ -14597,7 +14597,7 @@ class $v {
14597
14597
  !ha(n) && !Ns(n) && !ho(n) && !_t(n) || (this.__storage__ = {
14598
14598
  el: n,
14599
14599
  options: t
14600
- }, ge(this, da, co).call(this));
14600
+ }, this.active = "data-collapse-active", ge(this, da, co).call(this));
14601
14601
  }
14602
14602
  update() {
14603
14603
  ge(this, da, co).call(this);
@@ -14605,14 +14605,14 @@ class $v {
14605
14605
  }
14606
14606
  da = new WeakSet(), co = function() {
14607
14607
  const { el: n, options: t } = this.__storage__, { SETTINGS: a, EVENTS: r } = Ql;
14608
- if (this.elements = Pi(n + ":not([data-collapse-active])"), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
14608
+ if (this.elements = Pi(n + `:not([${this.active}])`), this.options = Object.assign({}, a, t), this.__events__ = Object.assign({}, r), this.options.on)
14609
14609
  for (const [l, f] of Object.entries(this.options.on))
14610
14610
  this.__events__[l] = [f];
14611
14611
  ge(this, Ls, xd).call(this);
14612
14612
  }, Ls = new WeakSet(), xd = function() {
14613
14613
  const { elements: n, options: t } = this;
14614
14614
  n.forEach((a) => {
14615
- a.collapse = {}, a.collapse.instance = this, a.collapse.defaultOptions = t, a.collapse.methods = {}, a.collapse.methods.update = this.update, a.setAttribute("data-collapse-active", ""), ge(this, _s, Ed).call(this, a);
14615
+ a.collapse = {}, a.collapse.instance = this, a.collapse.defaultOptions = t, a.collapse.methods = {}, a.collapse.methods.update = this.update, a.setAttribute(this.active, ""), ge(this, _s, Ed).call(this, a);
14616
14616
  }), this.emit("init");
14617
14617
  }, _s = new WeakSet(), Ed = function(n) {
14618
14618
  const { options: t } = this, { collapseClass: a, block: r, target: l, defaultOpen: f, targetStopPropagation: m, defaultActiveMark: c } = t, u = n, h = u.querySelector(l);