@yuneta/gobj-js 7.16.5 → 7.16.6
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/dist/gobj-js.cjs.js +10 -4
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +283 -277
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +10 -4
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +11 -5
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +10 -4
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +601 -595
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +10 -4
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +601 -595
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.es.min.js
CHANGED
|
@@ -2275,22 +2275,28 @@ function Ul(e) {
|
|
|
2275
2275
|
return new DOMParser().parseFromString(e, "image/svg+xml").firstChild;
|
|
2276
2276
|
}
|
|
2277
2277
|
function Fl(e, t) {
|
|
2278
|
-
vr(t)
|
|
2278
|
+
if (!vr(t)) return void xn("You must supply a translation function");
|
|
2279
|
+
e || (e = document);
|
|
2280
|
+
const n = (t) => {
|
|
2281
|
+
let n = [];
|
|
2282
|
+
return "function" == typeof e.matches && e.matches(t) && n.push(e), n.push(...e.querySelectorAll(t)), n;
|
|
2283
|
+
};
|
|
2284
|
+
n("[data-i18n]").forEach(function(e) {
|
|
2279
2285
|
let n = e.getAttribute("data-i18n");
|
|
2280
2286
|
for (let r of e.childNodes) if (r.nodeType === Node.TEXT_NODE) {
|
|
2281
2287
|
n || (n = r.nodeValue), r.nodeValue = t(n);
|
|
2282
2288
|
break;
|
|
2283
2289
|
}
|
|
2284
|
-
}),
|
|
2290
|
+
}), n("[data-i18n-title]").forEach(function(e) {
|
|
2285
2291
|
let n = e.getAttribute("data-i18n-title");
|
|
2286
2292
|
n && e.setAttribute("title", t(n));
|
|
2287
|
-
}),
|
|
2293
|
+
}), n("[data-i18n-aria-label]").forEach(function(e) {
|
|
2288
2294
|
let n = e.getAttribute("data-i18n-aria-label");
|
|
2289
2295
|
n && e.setAttribute("aria-label", t(n));
|
|
2290
|
-
}),
|
|
2296
|
+
}), n("[data-i18n-placeholder]").forEach(function(e) {
|
|
2291
2297
|
let n = e.getAttribute("data-i18n-placeholder");
|
|
2292
2298
|
n && e.setAttribute("placeholder", t(n));
|
|
2293
|
-
})
|
|
2299
|
+
});
|
|
2294
2300
|
}
|
|
2295
2301
|
function Gl(e = "Time Tracker", t = !1) {
|
|
2296
2302
|
const n = e, r = performance.now();
|