@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261017071846 → 0.8.1-dev.20261024093423
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.
|
@@ -73,7 +73,7 @@ var Slider = ({
|
|
|
73
73
|
return 100 / (numColumns - 1 + pct / 100);
|
|
74
74
|
})();
|
|
75
75
|
const effectiveSlidesToShow = 100 / slideWidthPercentage;
|
|
76
|
-
const maxSlide = Math.max(0,
|
|
76
|
+
const maxSlide = Math.max(0, totalSlides - effectiveSlidesToShow);
|
|
77
77
|
const step = scrollByColumns ? Math.max(1, Math.floor(effectiveSlidesToShow)) : 1;
|
|
78
78
|
const rawPositions = Array.from(
|
|
79
79
|
{ length: Math.ceil(maxSlide / step) + 1 },
|
|
@@ -71,7 +71,7 @@ var Slider = ({
|
|
|
71
71
|
return 100 / (numColumns - 1 + pct / 100);
|
|
72
72
|
})();
|
|
73
73
|
const effectiveSlidesToShow = 100 / slideWidthPercentage;
|
|
74
|
-
const maxSlide = Math.max(0,
|
|
74
|
+
const maxSlide = Math.max(0, totalSlides - effectiveSlidesToShow);
|
|
75
75
|
const step = scrollByColumns ? Math.max(1, Math.floor(effectiveSlidesToShow)) : 1;
|
|
76
76
|
const rawPositions = Array.from(
|
|
77
77
|
{ length: Math.ceil(maxSlide / step) + 1 },
|
package/dist/index.js
CHANGED
|
@@ -7235,7 +7235,7 @@ var init_Slider = __esm({
|
|
|
7235
7235
|
return 100 / (numColumns - 1 + pct / 100);
|
|
7236
7236
|
})();
|
|
7237
7237
|
const effectiveSlidesToShow = 100 / slideWidthPercentage;
|
|
7238
|
-
const maxSlide = Math.max(0,
|
|
7238
|
+
const maxSlide = Math.max(0, totalSlides - effectiveSlidesToShow);
|
|
7239
7239
|
const step = scrollByColumns ? Math.max(1, Math.floor(effectiveSlidesToShow)) : 1;
|
|
7240
7240
|
const rawPositions = Array.from(
|
|
7241
7241
|
{ length: Math.ceil(maxSlide / step) + 1 },
|
|
@@ -9481,6 +9481,24 @@ var ImageGalleryNode = (props) => {
|
|
|
9481
9481
|
hlsStyles.aspectRatio = videoWidth && videoHeight ? `${videoWidth} / ${videoHeight}` : "16 / 9";
|
|
9482
9482
|
if (primaryHls?.borderRadius)
|
|
9483
9483
|
hlsStyles.borderRadius = primaryHls.borderRadius;
|
|
9484
|
+
const hlsFallback = hlsImages.find((img) => !img.device) ?? null;
|
|
9485
|
+
if (!hlsFallback) {
|
|
9486
|
+
let display = "none";
|
|
9487
|
+
switch (props.device) {
|
|
9488
|
+
case "sm":
|
|
9489
|
+
display = hlsImages.some((img) => img.device === "sm") ? "block" : "none";
|
|
9490
|
+
break;
|
|
9491
|
+
case "md":
|
|
9492
|
+
display = hlsImages.some((img) => img.device === "md") ? "block" : "none";
|
|
9493
|
+
break;
|
|
9494
|
+
case "lg":
|
|
9495
|
+
display = hlsImages.some((img) => img.device === "lg") ? "block" : "none";
|
|
9496
|
+
break;
|
|
9497
|
+
default:
|
|
9498
|
+
display = "block";
|
|
9499
|
+
}
|
|
9500
|
+
hlsStyles.display = display;
|
|
9501
|
+
}
|
|
9484
9502
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
9485
9503
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
9486
9504
|
const FormatClass = {
|
|
@@ -9490,7 +9508,7 @@ var ImageGalleryNode = (props) => {
|
|
|
9490
9508
|
};
|
|
9491
9509
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
9492
9510
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
|
|
9493
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { style: hlsStyles, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9511
|
+
hlsSources.length > 0 && hlsStyles.display !== "none" && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { style: hlsStyles, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9494
9512
|
HlsPlayer4,
|
|
9495
9513
|
{
|
|
9496
9514
|
sources: hlsSources,
|
package/dist/index.mjs
CHANGED
|
@@ -1749,6 +1749,24 @@ var ImageGalleryNode = (props) => {
|
|
|
1749
1749
|
hlsStyles.aspectRatio = videoWidth && videoHeight ? `${videoWidth} / ${videoHeight}` : "16 / 9";
|
|
1750
1750
|
if (primaryHls?.borderRadius)
|
|
1751
1751
|
hlsStyles.borderRadius = primaryHls.borderRadius;
|
|
1752
|
+
const hlsFallback = hlsImages.find((img) => !img.device) ?? null;
|
|
1753
|
+
if (!hlsFallback) {
|
|
1754
|
+
let display = "none";
|
|
1755
|
+
switch (props.device) {
|
|
1756
|
+
case "sm":
|
|
1757
|
+
display = hlsImages.some((img) => img.device === "sm") ? "block" : "none";
|
|
1758
|
+
break;
|
|
1759
|
+
case "md":
|
|
1760
|
+
display = hlsImages.some((img) => img.device === "md") ? "block" : "none";
|
|
1761
|
+
break;
|
|
1762
|
+
case "lg":
|
|
1763
|
+
display = hlsImages.some((img) => img.device === "lg") ? "block" : "none";
|
|
1764
|
+
break;
|
|
1765
|
+
default:
|
|
1766
|
+
display = "block";
|
|
1767
|
+
}
|
|
1768
|
+
hlsStyles.display = display;
|
|
1769
|
+
}
|
|
1752
1770
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
1753
1771
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
1754
1772
|
const FormatClass = {
|
|
@@ -1758,7 +1776,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1758
1776
|
};
|
|
1759
1777
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1760
1778
|
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1761
|
-
hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35("div", { style: hlsStyles, children: /* @__PURE__ */ jsx35(
|
|
1779
|
+
hlsSources.length > 0 && hlsStyles.display !== "none" && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35("div", { style: hlsStyles, children: /* @__PURE__ */ jsx35(
|
|
1762
1780
|
HlsPlayer3,
|
|
1763
1781
|
{
|
|
1764
1782
|
sources: hlsSources,
|
|
@@ -2569,7 +2587,7 @@ var Pagination = dynamic16(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: tru
|
|
|
2569
2587
|
var DataBindingControls = dynamic16(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
|
|
2570
2588
|
ssr: true
|
|
2571
2589
|
});
|
|
2572
|
-
var Slider = dynamic16(() => import("./Slider-
|
|
2590
|
+
var Slider = dynamic16(() => import("./Slider-3EPDXTUZ.mjs"), {
|
|
2573
2591
|
ssr: false
|
|
2574
2592
|
});
|
|
2575
2593
|
function toCamelCase(str) {
|
package/dist/server.js
CHANGED
|
@@ -4869,7 +4869,7 @@ var init_Slider = __esm({
|
|
|
4869
4869
|
return 100 / (numColumns - 1 + pct / 100);
|
|
4870
4870
|
})();
|
|
4871
4871
|
const effectiveSlidesToShow = 100 / slideWidthPercentage;
|
|
4872
|
-
const maxSlide = Math.max(0,
|
|
4872
|
+
const maxSlide = Math.max(0, totalSlides - effectiveSlidesToShow);
|
|
4873
4873
|
const step = scrollByColumns ? Math.max(1, Math.floor(effectiveSlidesToShow)) : 1;
|
|
4874
4874
|
const rawPositions = Array.from(
|
|
4875
4875
|
{ length: Math.ceil(maxSlide / step) + 1 },
|
|
@@ -7073,6 +7073,24 @@ var ImageGalleryNode = (props) => {
|
|
|
7073
7073
|
hlsStyles.aspectRatio = videoWidth && videoHeight ? `${videoWidth} / ${videoHeight}` : "16 / 9";
|
|
7074
7074
|
if (primaryHls?.borderRadius)
|
|
7075
7075
|
hlsStyles.borderRadius = primaryHls.borderRadius;
|
|
7076
|
+
const hlsFallback = hlsImages.find((img) => !img.device) ?? null;
|
|
7077
|
+
if (!hlsFallback) {
|
|
7078
|
+
let display = "none";
|
|
7079
|
+
switch (props.device) {
|
|
7080
|
+
case "sm":
|
|
7081
|
+
display = hlsImages.some((img) => img.device === "sm") ? "block" : "none";
|
|
7082
|
+
break;
|
|
7083
|
+
case "md":
|
|
7084
|
+
display = hlsImages.some((img) => img.device === "md") ? "block" : "none";
|
|
7085
|
+
break;
|
|
7086
|
+
case "lg":
|
|
7087
|
+
display = hlsImages.some((img) => img.device === "lg") ? "block" : "none";
|
|
7088
|
+
break;
|
|
7089
|
+
default:
|
|
7090
|
+
display = "block";
|
|
7091
|
+
}
|
|
7092
|
+
hlsStyles.display = display;
|
|
7093
|
+
}
|
|
7076
7094
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
7077
7095
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
7078
7096
|
const FormatClass = {
|
|
@@ -7082,7 +7100,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7082
7100
|
};
|
|
7083
7101
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
7084
7102
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
7085
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: hlsStyles, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7103
|
+
hlsSources.length > 0 && hlsStyles.display !== "none" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: hlsStyles, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7086
7104
|
HlsPlayer4,
|
|
7087
7105
|
{
|
|
7088
7106
|
sources: hlsSources,
|
package/dist/server.mjs
CHANGED
|
@@ -1705,6 +1705,24 @@ var ImageGalleryNode = (props) => {
|
|
|
1705
1705
|
hlsStyles.aspectRatio = videoWidth && videoHeight ? `${videoWidth} / ${videoHeight}` : "16 / 9";
|
|
1706
1706
|
if (primaryHls?.borderRadius)
|
|
1707
1707
|
hlsStyles.borderRadius = primaryHls.borderRadius;
|
|
1708
|
+
const hlsFallback = hlsImages.find((img) => !img.device) ?? null;
|
|
1709
|
+
if (!hlsFallback) {
|
|
1710
|
+
let display = "none";
|
|
1711
|
+
switch (props.device) {
|
|
1712
|
+
case "sm":
|
|
1713
|
+
display = hlsImages.some((img) => img.device === "sm") ? "block" : "none";
|
|
1714
|
+
break;
|
|
1715
|
+
case "md":
|
|
1716
|
+
display = hlsImages.some((img) => img.device === "md") ? "block" : "none";
|
|
1717
|
+
break;
|
|
1718
|
+
case "lg":
|
|
1719
|
+
display = hlsImages.some((img) => img.device === "lg") ? "block" : "none";
|
|
1720
|
+
break;
|
|
1721
|
+
default:
|
|
1722
|
+
display = "block";
|
|
1723
|
+
}
|
|
1724
|
+
hlsStyles.display = display;
|
|
1725
|
+
}
|
|
1708
1726
|
const staticSources = staticImages.filter((img) => !!img.device);
|
|
1709
1727
|
const staticFallback = staticImages.find((img) => !img.device) ?? null;
|
|
1710
1728
|
const FormatClass = {
|
|
@@ -1714,7 +1732,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1714
1732
|
};
|
|
1715
1733
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1716
1734
|
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1717
|
-
hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35("div", { style: hlsStyles, children: /* @__PURE__ */ jsx35(
|
|
1735
|
+
hlsSources.length > 0 && hlsStyles.display !== "none" && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35("div", { style: hlsStyles, children: /* @__PURE__ */ jsx35(
|
|
1718
1736
|
HlsPlayer3,
|
|
1719
1737
|
{
|
|
1720
1738
|
sources: hlsSources,
|
|
@@ -2525,7 +2543,7 @@ var Pagination = dynamic15(() => import("./Pagination-RMAXCIL7.mjs"), { ssr: tru
|
|
|
2525
2543
|
var DataBindingControls = dynamic15(() => import("./DataBindingControls-Z2AHWFYX.mjs"), {
|
|
2526
2544
|
ssr: true
|
|
2527
2545
|
});
|
|
2528
|
-
var Slider = dynamic15(() => import("./Slider-
|
|
2546
|
+
var Slider = dynamic15(() => import("./Slider-7MKCFSIB.mjs"), {
|
|
2529
2547
|
ssr: false
|
|
2530
2548
|
});
|
|
2531
2549
|
function toCamelCase(str) {
|