@yoyaflow/yoya-ui 0.3.0 → 0.3.2

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.
@@ -454,7 +454,7 @@ var _ = class extends m {}, v = [
454
454
  ];
455
455
  function y() {
456
456
  return v.reduce((e, t) => {
457
- let { aliases: n = [], name: r, tagName: i } = G(t), a = h(i, _);
457
+ let { aliases: n = [], name: r, tagName: i } = W(t), a = h(i, _);
458
458
  return e[r] = a, n.forEach((t) => {
459
459
  e[t] = a;
460
460
  }), e;
@@ -462,14 +462,21 @@ function y() {
462
462
  }
463
463
  var b = y();
464
464
  g(_, b);
465
- var { a: ee, abbr: te, address: ne, area: re, article: ie, aside: ae, audio: oe, b: se, base: ce, bdi: le, bdo: ue, blockquote: x, body: S, br: C, button: w, canvas: T, caption: E, cite: D, code: O, col: k, colgroup: A, data: j, datalist: M, dd: N, del: P, details: F, dfn: I, dialog: L, div: R, dl: z, dt: B, em: V, embed: H, fieldset: U, figcaption: de, figure: fe, footer: pe, form: me, h1: he, h2: ge, h3: _e, h4: ve, h5: ye, h6: be, head: xe, header: Se, hgroup: Ce, hr: we, html: Te, i: Ee, iframe: De, img: Oe, input: ke, ins: Ae, kbd: je, label: Me, legend: Ne, li: Pe, link: Fe, main: Ie, map: Le, mark: Re, menu: ze, meta: Be, meter: Ve, nav: He, noscript: Ue, object: We, ol: Ge, optgroup: Ke, option: qe, output: Je, p: Ye, picture: Xe, pre: Ze, progress: Qe, q: $e, rp: et, rt: tt, ruby: nt, s: rt, samp: it, script: at, search: ot, section: st, select: ct, selectedcontent: lt, slot: ut, small: dt, source: ft, span: pt, strong: mt, style: ht, styleTag: gt, sub: _t, summary: vt, sup: yt, table: bt, tbody: xt, td: St, template: Ct, textarea: wt, tfoot: Tt, th: Et, thead: Dt, time: Ot, title: kt, tr: At, track: jt, u: Mt, ul: Nt, varTag: Pt, video: Ft, wbr: W } = b;
466
- function G(e) {
465
+ var { a: ee, abbr: te, address: ne, area: re, article: ie, aside: ae, audio: oe, b: se, base: ce, bdi: le, bdo: ue, blockquote: de, body: x, br: S, button: C, canvas: w, caption: T, cite: E, code: D, col: O, colgroup: k, data: A, datalist: j, dd: M, del: N, details: P, dfn: F, dialog: I, div: L, dl: R, dt: z, em: B, embed: V, fieldset: H, figcaption: fe, figure: pe, footer: me, form: he, h1: ge, h2: _e, h3: ve, h4: ye, h5: be, h6: xe, head: Se, header: Ce, hgroup: we, hr: Te, html: Ee, i: De, iframe: Oe, img: ke, input: Ae, ins: je, kbd: Me, label: Ne, legend: Pe, li: Fe, link: Ie, main: Le, map: Re, mark: ze, menu: Be, meta: Ve, meter: He, nav: Ue, noscript: We, object: Ge, ol: Ke, optgroup: qe, option: Je, output: Ye, p: Xe, picture: Ze, pre: Qe, progress: $e, q: et, rp: tt, rt: nt, ruby: rt, s: it, samp: at, script: ot, search: st, section: ct, select: lt, selectedcontent: ut, slot: dt, small: ft, source: pt, span: mt, strong: ht, style: gt, styleTag: _t, sub: vt, summary: yt, sup: bt, table: xt, tbody: St, td: Ct, template: wt, textarea: Tt, tfoot: Et, th: Dt, thead: Ot, time: kt, title: At, tr: jt, track: Mt, u: Nt, ul: Pt, varTag: Ft, video: It, wbr: U } = b;
466
+ function W(e) {
467
467
  return typeof e == "string" ? {
468
468
  name: e,
469
469
  tagName: e
470
470
  } : e;
471
471
  }
472
472
  //#endregion
473
+ //#region src/core/document-events.js
474
+ function G(e, t, n = void 0) {
475
+ return typeof window > "u" ? () => {} : (window.addEventListener(e, t, n), () => {
476
+ window.removeEventListener(e, t, n);
477
+ });
478
+ }
479
+ //#endregion
473
480
  //#region src/components/shared.js
474
481
  var K = "yoya-component";
475
482
  function q(e = null, t = null, n = null) {
@@ -610,7 +617,7 @@ var Q = class extends _ {
610
617
  }), this._el && this._resizeObserver.observe(this._el);
611
618
  return;
612
619
  }
613
- this._resizeHandler = () => this._handleResize(), window.addEventListener("resize", this._resizeHandler);
620
+ this._resizeHandler = () => this._handleResize(), this._resizeUnbind = G("resize", this._resizeHandler);
614
621
  }
615
622
  _handleResize(e, t) {
616
623
  this._chartInstance && (this._chartInstance.resize(), this._onResizeCallbacks.forEach((n) => {
@@ -625,7 +632,7 @@ var Q = class extends _ {
625
632
  }));
626
633
  }
627
634
  _disposeChart() {
628
- this._resizeObserver &&= (this._resizeObserver.disconnect(), null), this._resizeHandler &&= (window.removeEventListener("resize", this._resizeHandler), null), this._chartInstance &&= (this._chartInstance.dispose(), null);
635
+ this._resizeObserver &&= (this._resizeObserver.disconnect(), null), this._resizeHandler && (this._resizeUnbind?.(), this._resizeHandler = null, this._resizeUnbind = null), this._chartInstance &&= (this._chartInstance.dispose(), null);
629
636
  }
630
637
  };
631
638
  function $(e = null, t = null, n = null) {