@hybr1d-tech/charizard 1.1.14 → 1.1.16
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/hybr1d-ui.js +16 -8
- package/dist/hybr1d-ui.umd.cjs +2 -2
- package/dist/index.d.ts +2 -1
- package/package.json +4 -6
package/dist/hybr1d-ui.js
CHANGED
|
@@ -848,7 +848,7 @@ const p6 = (e, l, n) => e === 1 || e === 0 || e === void 0 || e === null ? l : n
|
|
|
848
848
|
"Control",
|
|
849
849
|
"Meta"
|
|
850
850
|
], Mb = 0, Rb = 25;
|
|
851
|
-
var b6 = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.SORT_BY = "sort_by", e.SORT_ORDER = "sort_order", e.INITIAL_FILTER = "initial_filter", e.FILTER = "filter", e.RESET_FILTERS = "reset_filters", e.RESET_ALL = "reset_all", e.SELECTOR_FILTER = "selector_filter", e.PAGE = "page", e.LIMIT = "limit", e))(b6 || {});
|
|
851
|
+
var b6 = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.SORT_BY = "sort_by", e.SORT_ORDER = "sort_order", e.INITIAL_FILTER = "initial_filter", e.FILTER = "filter", e.RESET_FILTERS = "reset_filters", e.RESET_ALL = "reset_all", e.SELECTOR_FILTER = "selector_filter", e.PAGE = "page", e.LIMIT = "limit", e.SET_DURATION = "set_duration", e))(b6 || {});
|
|
852
852
|
const s8 = (e, { payload: l, type: n }, c) => {
|
|
853
853
|
switch (n) {
|
|
854
854
|
case "search":
|
|
@@ -878,6 +878,14 @@ const s8 = (e, { payload: l, type: n }, c) => {
|
|
|
878
878
|
return { ...e, page: l };
|
|
879
879
|
case "limit":
|
|
880
880
|
return { ...e, limit: l, page: 0 };
|
|
881
|
+
case "set_duration":
|
|
882
|
+
return {
|
|
883
|
+
...e,
|
|
884
|
+
filters: {
|
|
885
|
+
...e.filters,
|
|
886
|
+
duration: l
|
|
887
|
+
}
|
|
888
|
+
};
|
|
881
889
|
default:
|
|
882
890
|
throw new Error(`Unhandled action type: ${n}`);
|
|
883
891
|
}
|
|
@@ -3659,11 +3667,7 @@ function rc(e, l) {
|
|
|
3659
3667
|
}
|
|
3660
3668
|
}));
|
|
3661
3669
|
}
|
|
3662
|
-
|
|
3663
|
-
x: e,
|
|
3664
|
-
y: e
|
|
3665
|
-
});
|
|
3666
|
-
function dc(e) {
|
|
3670
|
+
function ic(e) {
|
|
3667
3671
|
const {
|
|
3668
3672
|
x: l,
|
|
3669
3673
|
y: n,
|
|
@@ -3681,6 +3685,10 @@ function dc(e) {
|
|
|
3681
3685
|
y: n
|
|
3682
3686
|
};
|
|
3683
3687
|
}
|
|
3688
|
+
const uc = Math.min, dc = Math.max, v3 = Math.round, K1 = Math.floor, g3 = (e) => ({
|
|
3689
|
+
x: e,
|
|
3690
|
+
y: e
|
|
3691
|
+
});
|
|
3684
3692
|
function j3() {
|
|
3685
3693
|
return typeof window < "u";
|
|
3686
3694
|
}
|
|
@@ -3808,7 +3816,7 @@ function v5(e, l, n, c) {
|
|
|
3808
3816
|
o *= b.x, u *= b.y, m *= b.x, d *= b.y, o += I, u += z, _ = R2(x), x = s4(_);
|
|
3809
3817
|
}
|
|
3810
3818
|
}
|
|
3811
|
-
return
|
|
3819
|
+
return ic({
|
|
3812
3820
|
width: m,
|
|
3813
3821
|
height: d,
|
|
3814
3822
|
x: o,
|
|
@@ -3834,7 +3842,7 @@ function xc(e, l) {
|
|
|
3834
3842
|
return;
|
|
3835
3843
|
const h = K1(m), _ = K1(a.clientWidth - (u + d)), x = K1(a.clientHeight - (m + v)), b = K1(u), p = {
|
|
3836
3844
|
rootMargin: -h + "px " + -_ + "px " + -x + "px " + -b + "px",
|
|
3837
|
-
threshold:
|
|
3845
|
+
threshold: dc(0, uc(1, o)) || 1
|
|
3838
3846
|
};
|
|
3839
3847
|
let I = !0;
|
|
3840
3848
|
function z(A) {
|