Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp committed Jul 21, 2024
1 parent 3234da8 commit ea53f6b
Show file tree
Hide file tree
Showing 127 changed files with 609 additions and 454 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: pnpm build
- run: pnpm test

- name: Upload coverage report on Node 16 to coveralls.io...
- name: Upload coverage report to coveralls.io...
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![typescript version](https://img.shields.io/badge/typescript-5.5.3-brightgreen)](https://www.typescriptlang.org/)
[![eslint version](https://img.shields.io/badge/eslint-8.57.0-brightgreen)](https://github.com/eslint)
[![cypress version](https://img.shields.io/badge/cypress-13.13.1-brightgreen)](https://www.cypress.io/)
[![vite version](https://img.shields.io/badge/vite-4.5.3-brightgreen)](https://vitejs.dev/)
[![vite version](https://img.shields.io/badge/vite-5.3.4-brightgreen)](https://vitejs.dev/)
[![prettier version](https://img.shields.io/badge/prettier-2.8.8-brightgreen)](https://prettier.io/)


Expand Down
2 changes: 1 addition & 1 deletion dist/bootstrap-native.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.js.map

Large diffs are not rendered by default.

51 changes: 18 additions & 33 deletions dist/bootstrap-native.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var Bo = Object.defineProperty;
var Ro = (t, s, e) => s in t ? Bo(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
var d = (t, s, e) => (Ro(t, typeof s != "symbol" ? s + "" : s, e), e);
var d = (t, s, e) => Ro(t, typeof s != "symbol" ? s + "" : s, e);
const Nn = "aria-describedby", De = "aria-expanded", ke = "aria-hidden", Ne = "aria-modal", Ns = "aria-pressed", Qe = "aria-selected", Wo = "DOMContentLoaded", ws = "focus", Es = "focusin", On = "focusout", Oe = "keydown", Fo = "keyup", N = "click", Mn = "mousedown", jo = "hover", Me = "mouseenter", $s = "mouseleave", zo = "pointerdown", Vo = "pointermove", Ko = "pointerup", _e = "resize", Be = "scroll", Ts = "touchstart", Xo = "dragstart", as = "ArrowDown", rs = "ArrowUp", Os = "ArrowLeft", Ms = "ArrowRight", ys = "Escape", Yo = "transitionDuration", Uo = "transitionDelay", Ze = "transitionend", _n = "transitionProperty", qo = navigator.userAgentData, Ae = qo, { userAgent: Qo } = navigator, Le = Qo, _s = /iPhone|iPad|iPod|Android/i;
Ae ? Ae.brands.some((t) => _s.test(t.brand)) : _s.test(Le);
const Bs = /(iPhone|iPod|iPad)/, Zo = Ae ? Ae.brands.some((t) => Bs.test(t.brand)) : (
Expand Down Expand Up @@ -68,8 +68,7 @@ const it = (t, s) => t.getAttribute(s), Ie = (t, s) => t.hasAttribute(s), O = (t
* @returns the instance
*/
get: (t, s) => {
if (!y(t) || !s)
return null;
if (!y(t) || !s) return null;
const e = At.getAllFor(s);
return t && e && e.get(t) || null;
},
Expand All @@ -84,13 +83,11 @@ const it = (t, s) => t.getAttribute(s), Ie = (t, s) => t.hasAttribute(s), O = (t
!e || !y(t) || (e.delete(t), e.size === 0 && Ft.delete(s));
}
}, F = (t, s) => At.get(t, s), be = (t) => typeof t == "string" || !1, Cs = (t) => ve(t) && t.constructor.name === "Window" || !1, Bn = (t) => L(t) && t.nodeType === 9 || !1, E = (t) => Cs(t) ? t.document : Bn(t) ? t : L(t) ? t.ownerDocument : window.document, dt = (t, ...s) => Object.assign(t, ...s), $t = (t) => {
if (!t)
return;
if (!t) return;
if (be(t))
return E().createElement(t);
const { tagName: s } = t, e = $t(s);
if (!e)
return;
if (!e) return;
const n = { ...t };
return delete n.tagName, dt(e, n);
}, w = (t, s) => t.dispatchEvent(s), V = (t, s) => {
Expand Down Expand Up @@ -135,7 +132,7 @@ const it = (t, s) => t.getAttribute(s), Ie = (t, s) => t.hasAttribute(s), O = (t
}, ht = (t, s) => t.focus(s), Rs = (t) => ["true", !0].includes(t) ? !0 : ["false", !1].includes(t) ? !1 : ["null", "", null, void 0].includes(t) ? null : t !== "" && !Number.isNaN(+t) ? +t : t, Ce = (t) => Object.entries(t), Xt = (t) => t.toLowerCase(), si = (t, s, e, n) => {
const o = { ...e }, i = { ...t.dataset }, c = { ...s }, a = {}, l = "title";
return Ce(i).forEach(([r, f]) => {
const p = n && typeof r == "string" && r.includes(n) ? r.replace(n, "").replace(/[A-Z]/g, (v) => Xt(v)) : r;
const p = typeof r == "string" && r.includes(n) ? r.replace(n, "").replace(/[A-Z]/g, (v) => Xt(v)) : r;
a[p] = Rs(f);
}), Ce(o).forEach(([r, f]) => {
o[r] = Rs(f);
Expand Down Expand Up @@ -177,8 +174,7 @@ const it = (t, s) => t.getAttribute(s), Ie = (t, s) => t.hasAttribute(s), O = (t
* @returns the timer
*/
get: (t, s) => {
if (!y(t))
return null;
if (!y(t)) return null;
const e = bt.get(t);
return s && e && ls(e) ? e.get(s) || /* istanbul ignore next */
null : ni(e) ? e : null;
Expand All @@ -190,8 +186,7 @@ const it = (t, s) => t.getAttribute(s), Ie = (t, s) => t.hasAttribute(s), O = (t
* @param key a unique key
*/
clear: (t, s) => {
if (!y(t))
return;
if (!y(t)) return;
const e = bt.get(t);
s && s.length && ls(e) ? (clearTimeout(e.get(s)), e.delete(s), e.size === 0 && bt.delete(t)) : (clearTimeout(e), bt.delete(t));
}
Expand Down Expand Up @@ -237,8 +232,7 @@ const jt = /* @__PURE__ */ new Map(), Wn = (t, s) => {
var s;
return t ? Bn(t) ? t.defaultView : L(t) ? (s = t == null ? void 0 : t.ownerDocument) == null ? void 0 : s.defaultView : t : window;
}, ii = (t) => Array.isArray(t) || !1, Fn = (t) => {
if (!L(t))
return !1;
if (!L(t)) return !1;
const { top: s, bottom: e } = we(t), { clientHeight: n } = ft(t);
return s <= n && e >= 0;
}, ci = (t) => typeof t == "function" || !1, ai = (t) => ve(t) && t.constructor.name === "NodeList" || !1, Ct = (t) => ft(t).dir === "rtl", ri = (t) => L(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, M = (t, s) => t ? t.closest(s) || // break out of `ShadowRoot`
Expand All @@ -264,7 +258,7 @@ M(t.getRootNode().host, s) : null, P = (t, s) => y(t) ? t : (L(s) ? s : E()).que
zn,
a
);
}, R = "fade", m = "show", We = "data-bs-dismiss", Fe = "alert", Vn = "Alert", li = "5.0.13", di = li;
}, R = "fade", m = "show", We = "data-bs-dismiss", Fe = "alert", Vn = "Alert", li = "5.0.14", di = li;
class nt {
/**
* @param target `HTMLElement` or selector string
Expand Down Expand Up @@ -739,8 +733,7 @@ const Ot = ["dropdown", "dropup", "dropstart", "dropend"], Qn = "Dropdown", Zn =
)]), w(n, to);
}
}, Wi = (t) => [...t.children].map((s) => {
if (s && tn.includes(s.tagName))
return s;
if (s && tn.includes(s.tagName)) return s;
const { firstElementChild: e } = s;
return e && tn.includes(e.tagName) ? e : null;
}).filter((s) => s), nn = (t) => {
Expand Down Expand Up @@ -1212,8 +1205,7 @@ const It = "popover", Ke = "Popover", lt = "tooltip", yo = (t) => {
ci(e) && (n = e(n));
const i = new DOMParser().parseFromString(n, "text/html");
t.append(...i.body.childNodes);
} else
y(s) ? t.append(s) : (ai(s) || ii(s) && s.every(L)) && t.append(...s);
} else y(s) ? t.append(s) : (ai(s) || ii(s) && s.every(L)) && t.append(...s);
}, gc = (t) => {
const s = t.name === Pt, { id: e, element: n, options: o } = t, { title: i, placement: c, template: a, animation: l, customClass: r, sanitizeFn: f, dismissible: p, content: v, btnClose: D } = o, q = s ? lt : It, T = { ...Co };
let j = [], Y = [];
Expand All @@ -1236,28 +1228,24 @@ const It = "popover", Ke = "Popover", lt = "tooltip", yo = (t) => {
const J = s ? `${lt}-inner` : `${It}-body`, ot = s ? null : P(`.${It}-header`, S), W = P(`.${J}`, S);
t.arrow = P(`.${q}-arrow`, S);
const { arrow: z } = t;
if (y(i))
j = [i.cloneNode(!0)];
if (y(i)) j = [i.cloneNode(!0)];
else {
const H = $t("div");
wt(H, i, f), j = [...H.childNodes];
}
if (y(v))
Y = [v.cloneNode(!0)];
if (y(v)) Y = [v.cloneNode(!0)];
else {
const H = $t("div");
wt(H, v, f), Y = [...H.childNodes];
}
if (p)
if (i)
if (y(D))
j = [...j, D.cloneNode(!0)];
if (y(D)) j = [...j, D.cloneNode(!0)];
else {
const H = $t("div");
wt(H, D, f), j = [...j, H.firstChild];
}
else if (ot && ot.remove(), y(D))
Y = [...Y, D.cloneNode(!0)];
else if (ot && ot.remove(), y(D)) Y = [...Y, D.cloneNode(!0)];
else {
const H = $t("div");
wt(H, D, f), Y = [...Y, H.firstChild];
Expand Down Expand Up @@ -1554,8 +1542,7 @@ const $e = "tab", Io = "Tab", $n = `[${ct}="${$e}"]`, ko = (t) => F(t, Io), Ac =
c === a ? Cn(t) : setTimeout(() => {
e.style.height = `${a}px`, Mt(e), x(e, () => Cn(t));
}, 50);
} else
o && u.clear(o);
} else o && u.clear(o);
Tn.relatedTarget = i, w(s, Tn);
}, Hn = (t) => {
const { element: s, content: e, tabContent: n, nav: o } = t, { tab: i, content: c } = o && me.get(o) || /* istanbul ignore next */
Expand All @@ -1581,16 +1568,14 @@ const $e = "tab", Io = "Tab", $n = `[${ct}="${$e}"]`, ko = (t) => F(t, Io), Ac =
}
}, xn = (t) => {
const { nav: s } = t;
if (!y(s))
return { tab: null, content: null };
if (!y(s)) return { tab: null, content: null };
const e = rt(C, s);
let n = null;
e.length === 1 && !Ot.some((i) => h(e[0].parentElement, i)) ? [n] = e : e.length > 1 && (n = e[e.length - 1]);
const o = y(n) ? X(n) : null;
return { tab: n, content: o };
}, Pn = (t) => {
if (!y(t))
return null;
if (!y(t)) return null;
const s = M(t, `.${Ot.join(",.")}`);
return s ? P(`.${Ot[0]}-toggle`, s) : null;
}, Lc = (t) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/bootstrap-native.mjs.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions dist/components/activeClass-b231b21b.mjs

This file was deleted.

5 changes: 5 additions & 0 deletions dist/components/activeClass-iqaD75Su.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const a = "active";
export {
a
};
//# sourceMappingURL=activeClass-iqaD75Su.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/components/alert.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"use strict";var C=Object.defineProperty;var g=(s,t,e)=>t in s?C(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var o=(s,t,e)=>(g(s,typeof t!="symbol"?t+"":t,e),e);const n=require("@thednp/shorty"),a=require("@thednp/event-listener"),E=require("./fadeClass-a4944cf1.js"),l=require("./showClass-2174a6d6.js"),p=require("./dataBsDismiss-4ee313a7.js"),q=require("./base-component-f3cef043.js"),r="alert",u="Alert",L=`.${r}`,f=`[${p.dataBsDismiss}="${r}"]`,$=s=>n.getInstance(s,u),b=s=>new i(s),d=n.createCustomEvent(`close.bs.${r}`),w=n.createCustomEvent(`closed.bs.${r}`),m=s=>{const{element:t}=s;n.dispatchEvent(t,w),s._toggleEventListeners(),s.dispose(),t.remove()};class i extends q.BaseComponent{constructor(e){super(e);o(this,"dismiss");o(this,"close",()=>{const{element:e}=this;e&&n.hasClass(e,l.showClass)&&(n.dispatchEvent(e,d),d.defaultPrevented||(n.removeClass(e,l.showClass),n.hasClass(e,E.fadeClass)?n.emulateTransitionEnd(e,()=>m(this)):m(this)))});o(this,"_toggleEventListeners",e=>{const h=e?a.addListener:a.removeListener,{dismiss:c,close:v}=this;c&&h(c,n.mouseclickEvent,v)});this.dismiss=n.querySelector(f,this.element),this._toggleEventListeners(!0)}get name(){return u}dispose(){this._toggleEventListeners(),super.dispose()}}o(i,"selector",L),o(i,"init",b),o(i,"getInstance",$);module.exports=i;
"use strict";var C=Object.defineProperty;var g=(s,t,e)=>t in s?C(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var o=(s,t,e)=>g(s,typeof t!="symbol"?t+"":t,e);const n=require("@thednp/shorty"),a=require("@thednp/event-listener"),E=require("./fadeClass-Co6nOzNJ.js"),l=require("./showClass-D_Ms1FgG.js"),p=require("./dataBsDismiss-CMHF7If_.js"),q=require("./base-component-j_bwTL_x.js"),r="alert",u="Alert",L=`.${r}`,f=`[${p.dataBsDismiss}="${r}"]`,$=s=>n.getInstance(s,u),b=s=>new i(s),d=n.createCustomEvent(`close.bs.${r}`),w=n.createCustomEvent(`closed.bs.${r}`),m=s=>{const{element:t}=s;n.dispatchEvent(t,w),s._toggleEventListeners(),s.dispose(),t.remove()};class i extends q.BaseComponent{constructor(e){super(e);o(this,"dismiss");o(this,"close",()=>{const{element:e}=this;e&&n.hasClass(e,l.showClass)&&(n.dispatchEvent(e,d),d.defaultPrevented||(n.removeClass(e,l.showClass),n.hasClass(e,E.fadeClass)?n.emulateTransitionEnd(e,()=>m(this)):m(this)))});o(this,"_toggleEventListeners",e=>{const h=e?a.addListener:a.removeListener,{dismiss:c,close:v}=this;c&&h(c,n.mouseclickEvent,v)});this.dismiss=n.querySelector(f,this.element),this._toggleEventListeners(!0)}get name(){return u}dispose(){this._toggleEventListeners(),super.dispose()}}o(i,"selector",L),o(i,"init",b),o(i,"getInstance",$);module.exports=i;
//# sourceMappingURL=alert.cjs.map
Loading

0 comments on commit ea53f6b

Please sign in to comment.