@fsystem/fswt-ui-tools 0.3.7 → 0.3.8
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/fswt-ui-tools.es.js +10 -2
- package/dist/fswt-ui-tools.umd.js +1 -1
- package/dist/types/index.d.ts +15 -15
- package/dist/types/tools/Array.d.ts +133 -133
- package/dist/types/tools/Color.d.ts +17 -17
- package/dist/types/tools/Date.d.ts +85 -85
- package/dist/types/tools/Element.d.ts +32 -32
- package/dist/types/tools/Exec.d.ts +7 -7
- package/dist/types/tools/Interact.d.ts +37 -37
- package/dist/types/tools/Judge.d.ts +61 -61
- package/dist/types/tools/Map.d.ts +7 -7
- package/dist/types/tools/Number.d.ts +14 -14
- package/dist/types/tools/Object.d.ts +13 -13
- package/dist/types/tools/Path.d.ts +5 -5
- package/dist/types/tools/Storage.d.ts +9 -9
- package/dist/types/tools/String.d.ts +74 -74
- package/dist/types/tools/Util.d.ts +69 -69
- package/dist/types/tools/pe/MicrosoftPeFileVersion.d.ts +5 -5
- package/dist/types/utils/index.d.ts +5 -5
- package/package.json +39 -39
package/dist/fswt-ui-tools.es.js
CHANGED
|
@@ -11757,8 +11757,16 @@ function nt(t, e, r) {
|
|
|
11757
11757
|
return -1;
|
|
11758
11758
|
}
|
|
11759
11759
|
function zr(t, e, r) {
|
|
11760
|
-
|
|
11761
|
-
|
|
11760
|
+
if (!Array.isArray(r) || r.length === 0)
|
|
11761
|
+
return [];
|
|
11762
|
+
const i = Math.max(1, parseInt(t) || 1), s = Math.max(1, parseInt(e) || 10);
|
|
11763
|
+
if (i < 1 || s < 1 || r.length === 0)
|
|
11764
|
+
return [];
|
|
11765
|
+
const u = (i - 1) * s;
|
|
11766
|
+
if (u >= r.length)
|
|
11767
|
+
return [];
|
|
11768
|
+
const h = Math.min(u + s, r.length);
|
|
11769
|
+
return r.slice(u, h);
|
|
11762
11770
|
}
|
|
11763
11771
|
function jr(t, e) {
|
|
11764
11772
|
const r = /* @__PURE__ */ new Map();
|