@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260808091030 → 0.8.1-dev.20260808143630
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/{IframeClient-E6VGPN6S.mjs → IframeClient-WF2KLXZB.mjs} +4 -1
- package/dist/{IframeClient-J64QAFNK.mjs → IframeClient-XEWQLGUQ.mjs} +4 -1
- package/dist/index.js +243 -219
- package/dist/index.mjs +169 -148
- package/dist/server.js +98 -74
- package/dist/server.mjs +38 -17
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1811,7 +1811,10 @@ var init_IframeClient = __esm({
|
|
|
1811
1811
|
src,
|
|
1812
1812
|
className: "w-full h-full border-none",
|
|
1813
1813
|
scrolling: "no",
|
|
1814
|
-
style: {
|
|
1814
|
+
style: {
|
|
1815
|
+
width: width != null ? `${width}px` : "100%",
|
|
1816
|
+
height: height != null ? `${height}px` : iframeHeight
|
|
1817
|
+
},
|
|
1815
1818
|
onLoad: handleIframeLoad
|
|
1816
1819
|
}
|
|
1817
1820
|
) }) });
|
|
@@ -2031,52 +2034,52 @@ var init_OdataBuilder = __esm({
|
|
|
2031
2034
|
});
|
|
2032
2035
|
|
|
2033
2036
|
// src/svg/chevron-updown.tsx
|
|
2034
|
-
var
|
|
2037
|
+
var import_jsx_runtime48, ChevronUpDown, chevron_updown_default;
|
|
2035
2038
|
var init_chevron_updown = __esm({
|
|
2036
2039
|
"src/svg/chevron-updown.tsx"() {
|
|
2037
2040
|
"use strict";
|
|
2038
|
-
|
|
2041
|
+
import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2039
2042
|
ChevronUpDown = (props) => {
|
|
2040
|
-
return /* @__PURE__ */ (0,
|
|
2043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
|
|
2041
2044
|
};
|
|
2042
2045
|
chevron_updown_default = ChevronUpDown;
|
|
2043
2046
|
}
|
|
2044
2047
|
});
|
|
2045
2048
|
|
|
2046
2049
|
// src/svg/chevron-down.tsx
|
|
2047
|
-
var
|
|
2050
|
+
var import_jsx_runtime49, ChevronDown, chevron_down_default;
|
|
2048
2051
|
var init_chevron_down = __esm({
|
|
2049
2052
|
"src/svg/chevron-down.tsx"() {
|
|
2050
2053
|
"use strict";
|
|
2051
|
-
|
|
2054
|
+
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2052
2055
|
ChevronDown = (props) => {
|
|
2053
|
-
return /* @__PURE__ */ (0,
|
|
2056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
|
|
2054
2057
|
};
|
|
2055
2058
|
chevron_down_default = ChevronDown;
|
|
2056
2059
|
}
|
|
2057
2060
|
});
|
|
2058
2061
|
|
|
2059
2062
|
// src/svg/chevron-up.tsx
|
|
2060
|
-
var
|
|
2063
|
+
var import_jsx_runtime50, ChevronUp, chevron_up_default;
|
|
2061
2064
|
var init_chevron_up = __esm({
|
|
2062
2065
|
"src/svg/chevron-up.tsx"() {
|
|
2063
2066
|
"use strict";
|
|
2064
|
-
|
|
2067
|
+
import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2065
2068
|
ChevronUp = (props) => {
|
|
2066
|
-
return /* @__PURE__ */ (0,
|
|
2069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
|
|
2067
2070
|
};
|
|
2068
2071
|
chevron_up_default = ChevronUp;
|
|
2069
2072
|
}
|
|
2070
2073
|
});
|
|
2071
2074
|
|
|
2072
2075
|
// src/svg/plus.tsx
|
|
2073
|
-
var
|
|
2076
|
+
var import_jsx_runtime51, Plus, plus_default;
|
|
2074
2077
|
var init_plus = __esm({
|
|
2075
2078
|
"src/svg/plus.tsx"() {
|
|
2076
2079
|
"use strict";
|
|
2077
|
-
|
|
2080
|
+
import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2078
2081
|
Plus = (props) => {
|
|
2079
|
-
return /* @__PURE__ */ (0,
|
|
2082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
|
|
2080
2083
|
};
|
|
2081
2084
|
plus_default = Plus;
|
|
2082
2085
|
}
|
|
@@ -2102,19 +2105,19 @@ var init_Icons = __esm({
|
|
|
2102
2105
|
});
|
|
2103
2106
|
|
|
2104
2107
|
// src/svg/Icon.tsx
|
|
2105
|
-
var
|
|
2108
|
+
var import_jsx_runtime52, Icon, Icon_default;
|
|
2106
2109
|
var init_Icon = __esm({
|
|
2107
2110
|
"src/svg/Icon.tsx"() {
|
|
2108
2111
|
"use strict";
|
|
2109
2112
|
init_Icons();
|
|
2110
|
-
|
|
2113
|
+
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2111
2114
|
Icon = ({ name, className, ...props }) => {
|
|
2112
2115
|
const IconComponent = Icons_default[name];
|
|
2113
2116
|
if (!IconComponent) {
|
|
2114
2117
|
console.error(`Icon "${name}" not found.`);
|
|
2115
2118
|
return null;
|
|
2116
2119
|
}
|
|
2117
|
-
return /* @__PURE__ */ (0,
|
|
2120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(IconComponent, { ...props, className });
|
|
2118
2121
|
};
|
|
2119
2122
|
Icon_default = Icon;
|
|
2120
2123
|
}
|
|
@@ -2125,7 +2128,7 @@ var Pagination_exports = {};
|
|
|
2125
2128
|
__export(Pagination_exports, {
|
|
2126
2129
|
default: () => Pagination_default
|
|
2127
2130
|
});
|
|
2128
|
-
var import_react32,
|
|
2131
|
+
var import_react32, import_jsx_runtime53, Pagination, Pagination_default;
|
|
2129
2132
|
var init_Pagination = __esm({
|
|
2130
2133
|
"src/components/Pagination.tsx"() {
|
|
2131
2134
|
"use strict";
|
|
@@ -2136,7 +2139,7 @@ var init_Pagination = __esm({
|
|
|
2136
2139
|
init_StyleTypes();
|
|
2137
2140
|
init_InputControlType();
|
|
2138
2141
|
init_Hyperlink();
|
|
2139
|
-
|
|
2142
|
+
import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2140
2143
|
Pagination = (props) => {
|
|
2141
2144
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
2142
2145
|
const builder = (0, import_react32.useMemo)(() => {
|
|
@@ -2180,7 +2183,7 @@ var init_Pagination = __esm({
|
|
|
2180
2183
|
return range;
|
|
2181
2184
|
};
|
|
2182
2185
|
const paginationRange = getPaginationRange();
|
|
2183
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
2186
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2184
2187
|
Hyperlink,
|
|
2185
2188
|
{
|
|
2186
2189
|
linkType: "Link" /* Link */,
|
|
@@ -2195,9 +2198,9 @@ var init_Pagination = __esm({
|
|
|
2195
2198
|
);
|
|
2196
2199
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
2197
2200
|
if (disabled) {
|
|
2198
|
-
return /* @__PURE__ */ (0,
|
|
2201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
|
|
2199
2202
|
}
|
|
2200
|
-
return /* @__PURE__ */ (0,
|
|
2203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2201
2204
|
Hyperlink,
|
|
2202
2205
|
{
|
|
2203
2206
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border transition-colors duration-150",
|
|
@@ -2207,35 +2210,35 @@ var init_Pagination = __esm({
|
|
|
2207
2210
|
);
|
|
2208
2211
|
};
|
|
2209
2212
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
2210
|
-
return /* @__PURE__ */ (0,
|
|
2211
|
-
/* @__PURE__ */ (0,
|
|
2212
|
-
/* @__PURE__ */ (0,
|
|
2213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
2214
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
2215
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "text-sm", children: [
|
|
2213
2216
|
"Showing ",
|
|
2214
|
-
/* @__PURE__ */ (0,
|
|
2217
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className: "font-semibold", children: [
|
|
2215
2218
|
startItem,
|
|
2216
2219
|
"-",
|
|
2217
2220
|
endItem
|
|
2218
2221
|
] }),
|
|
2219
2222
|
" ",
|
|
2220
2223
|
"out of ",
|
|
2221
|
-
/* @__PURE__ */ (0,
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
2222
2225
|
" results"
|
|
2223
2226
|
] }),
|
|
2224
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
2225
|
-
/* @__PURE__ */ (0,
|
|
2227
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
2228
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2226
2229
|
NavigationButton,
|
|
2227
2230
|
{
|
|
2228
2231
|
page: activePageNumber - 1,
|
|
2229
2232
|
disabled: activePageNumber === 1,
|
|
2230
2233
|
children: [
|
|
2231
|
-
/* @__PURE__ */ (0,
|
|
2232
|
-
/* @__PURE__ */ (0,
|
|
2234
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
2235
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
2233
2236
|
]
|
|
2234
2237
|
}
|
|
2235
2238
|
),
|
|
2236
2239
|
paginationRange.map((item, index) => {
|
|
2237
2240
|
if (item === "...") {
|
|
2238
|
-
return /* @__PURE__ */ (0,
|
|
2241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2239
2242
|
"span",
|
|
2240
2243
|
{
|
|
2241
2244
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -2245,23 +2248,23 @@ var init_Pagination = __esm({
|
|
|
2245
2248
|
);
|
|
2246
2249
|
}
|
|
2247
2250
|
const page = item;
|
|
2248
|
-
return /* @__PURE__ */ (0,
|
|
2251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(PageButton, { page, children: page }, page);
|
|
2249
2252
|
}),
|
|
2250
|
-
/* @__PURE__ */ (0,
|
|
2253
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2251
2254
|
NavigationButton,
|
|
2252
2255
|
{
|
|
2253
2256
|
page: activePageNumber + 1,
|
|
2254
2257
|
disabled: activePageNumber === totalPages,
|
|
2255
2258
|
children: [
|
|
2256
|
-
/* @__PURE__ */ (0,
|
|
2257
|
-
/* @__PURE__ */ (0,
|
|
2259
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
2260
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
2258
2261
|
]
|
|
2259
2262
|
}
|
|
2260
2263
|
)
|
|
2261
2264
|
] }),
|
|
2262
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
2263
|
-
/* @__PURE__ */ (0,
|
|
2264
|
-
/* @__PURE__ */ (0,
|
|
2265
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
2266
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
2267
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2265
2268
|
"input",
|
|
2266
2269
|
{
|
|
2267
2270
|
type: "number",
|
|
@@ -2282,9 +2285,9 @@ var init_Pagination = __esm({
|
|
|
2282
2285
|
) })
|
|
2283
2286
|
] })
|
|
2284
2287
|
] }),
|
|
2285
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
2286
|
-
/* @__PURE__ */ (0,
|
|
2287
|
-
/* @__PURE__ */ (0,
|
|
2288
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
2289
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
2290
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2288
2291
|
Hyperlink,
|
|
2289
2292
|
{
|
|
2290
2293
|
className: `
|
|
@@ -2296,7 +2299,7 @@ var init_Pagination = __esm({
|
|
|
2296
2299
|
},
|
|
2297
2300
|
size
|
|
2298
2301
|
)) }),
|
|
2299
|
-
/* @__PURE__ */ (0,
|
|
2302
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm", children: "per page" })
|
|
2300
2303
|
] }) })
|
|
2301
2304
|
] });
|
|
2302
2305
|
};
|
|
@@ -2309,13 +2312,13 @@ var Slider_exports = {};
|
|
|
2309
2312
|
__export(Slider_exports, {
|
|
2310
2313
|
default: () => Slider_default
|
|
2311
2314
|
});
|
|
2312
|
-
var import_react33,
|
|
2315
|
+
var import_react33, import_jsx_runtime54, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
2313
2316
|
var init_Slider = __esm({
|
|
2314
2317
|
"src/components/Slider.tsx"() {
|
|
2315
2318
|
"use strict";
|
|
2316
2319
|
"use client";
|
|
2317
2320
|
import_react33 = __toESM(require("react"));
|
|
2318
|
-
|
|
2321
|
+
import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2319
2322
|
Slider = ({
|
|
2320
2323
|
children,
|
|
2321
2324
|
slidesToShow = 4,
|
|
@@ -2412,7 +2415,7 @@ var init_Slider = __esm({
|
|
|
2412
2415
|
if (!import_react33.default.isValidElement(child)) return null;
|
|
2413
2416
|
const childProps = child.props;
|
|
2414
2417
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
2415
|
-
return /* @__PURE__ */ (0,
|
|
2418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2416
2419
|
"div",
|
|
2417
2420
|
{
|
|
2418
2421
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -2435,14 +2438,14 @@ var init_Slider = __esm({
|
|
|
2435
2438
|
return "bottom-4";
|
|
2436
2439
|
}
|
|
2437
2440
|
};
|
|
2438
|
-
return /* @__PURE__ */ (0,
|
|
2441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
2439
2442
|
"div",
|
|
2440
2443
|
{
|
|
2441
2444
|
className: `relative w-full overflow-hidden ${className}`,
|
|
2442
2445
|
onMouseEnter: handleMouseEnter,
|
|
2443
2446
|
onMouseLeave: handleMouseLeave,
|
|
2444
2447
|
children: [
|
|
2445
|
-
/* @__PURE__ */ (0,
|
|
2448
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2446
2449
|
"div",
|
|
2447
2450
|
{
|
|
2448
2451
|
className: "flex h-full",
|
|
@@ -2453,18 +2456,18 @@ var init_Slider = __esm({
|
|
|
2453
2456
|
children: slides
|
|
2454
2457
|
}
|
|
2455
2458
|
),
|
|
2456
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
2457
|
-
/* @__PURE__ */ (0,
|
|
2459
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
2460
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2458
2461
|
ArrowButton,
|
|
2459
2462
|
{
|
|
2460
2463
|
direction: "left",
|
|
2461
2464
|
onClick: prevSlide,
|
|
2462
2465
|
visible: infinite_scroll || currentSlide > 0,
|
|
2463
2466
|
className: arrowClassName,
|
|
2464
|
-
children: /* @__PURE__ */ (0,
|
|
2467
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
2465
2468
|
}
|
|
2466
2469
|
),
|
|
2467
|
-
/* @__PURE__ */ (0,
|
|
2470
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
2468
2471
|
ArrowButton,
|
|
2469
2472
|
{
|
|
2470
2473
|
direction: "right",
|
|
@@ -2472,13 +2475,13 @@ var init_Slider = __esm({
|
|
|
2472
2475
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
2473
2476
|
className: arrowClassName,
|
|
2474
2477
|
children: [
|
|
2475
|
-
/* @__PURE__ */ (0,
|
|
2478
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
|
|
2476
2479
|
" "
|
|
2477
2480
|
]
|
|
2478
2481
|
}
|
|
2479
2482
|
)
|
|
2480
2483
|
] }),
|
|
2481
|
-
show_dots && /* @__PURE__ */ (0,
|
|
2484
|
+
show_dots && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2482
2485
|
ProgressPill,
|
|
2483
2486
|
{
|
|
2484
2487
|
active: index === currentSlide,
|
|
@@ -2504,7 +2507,7 @@ var init_Slider = __esm({
|
|
|
2504
2507
|
visible,
|
|
2505
2508
|
children,
|
|
2506
2509
|
className = ""
|
|
2507
|
-
}) => /* @__PURE__ */ (0,
|
|
2510
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2508
2511
|
"button",
|
|
2509
2512
|
{
|
|
2510
2513
|
className: `
|
|
@@ -2591,7 +2594,7 @@ var init_Slider = __esm({
|
|
|
2591
2594
|
const renderProgressBar = () => {
|
|
2592
2595
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
2593
2596
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
2594
|
-
return /* @__PURE__ */ (0,
|
|
2597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2595
2598
|
"div",
|
|
2596
2599
|
{
|
|
2597
2600
|
className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
|
|
@@ -2603,7 +2606,7 @@ var init_Slider = __esm({
|
|
|
2603
2606
|
};
|
|
2604
2607
|
const renderCumulativeFill = () => {
|
|
2605
2608
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
2606
|
-
return /* @__PURE__ */ (0,
|
|
2609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2607
2610
|
"div",
|
|
2608
2611
|
{
|
|
2609
2612
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -2613,7 +2616,7 @@ var init_Slider = __esm({
|
|
|
2613
2616
|
}
|
|
2614
2617
|
return null;
|
|
2615
2618
|
};
|
|
2616
|
-
return /* @__PURE__ */ (0,
|
|
2619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
2617
2620
|
"button",
|
|
2618
2621
|
{
|
|
2619
2622
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -3812,7 +3815,7 @@ var WidgetNode = (props) => {
|
|
|
3812
3815
|
var WidgetNode_default = WidgetNode;
|
|
3813
3816
|
|
|
3814
3817
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
3815
|
-
var
|
|
3818
|
+
var import_dynamic11 = __toESM(require("next/dynamic"));
|
|
3816
3819
|
var import_react34 = __toESM(require("react"));
|
|
3817
3820
|
|
|
3818
3821
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
@@ -4906,10 +4909,29 @@ var DocumentNode = (props) => {
|
|
|
4906
4909
|
};
|
|
4907
4910
|
var DocumentNode_default = DocumentNode;
|
|
4908
4911
|
|
|
4912
|
+
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
4913
|
+
var import_dynamic10 = __toESM(require("next/dynamic"));
|
|
4914
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4915
|
+
var IframeClient3 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
4916
|
+
ssr: false
|
|
4917
|
+
});
|
|
4918
|
+
var GoogleMapNode = (props) => {
|
|
4919
|
+
let src = props.node.embedUrl;
|
|
4920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4921
|
+
IframeClient3,
|
|
4922
|
+
{
|
|
4923
|
+
src,
|
|
4924
|
+
width: props.node.width,
|
|
4925
|
+
height: props.node.height
|
|
4926
|
+
}
|
|
4927
|
+
) });
|
|
4928
|
+
};
|
|
4929
|
+
var GoogleMapNode_default = GoogleMapNode;
|
|
4930
|
+
|
|
4909
4931
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4910
|
-
var
|
|
4911
|
-
var Pagination2 = (0,
|
|
4912
|
-
var Slider2 = (0,
|
|
4932
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4933
|
+
var Pagination2 = (0, import_dynamic11.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
4934
|
+
var Slider2 = (0, import_dynamic11.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
|
|
4913
4935
|
ssr: false
|
|
4914
4936
|
});
|
|
4915
4937
|
function toCamelCase(str) {
|
|
@@ -5090,7 +5112,8 @@ var DivContainer = async (props) => {
|
|
|
5090
5112
|
text: TextNode_default,
|
|
5091
5113
|
datafield: DatafieldNode_default,
|
|
5092
5114
|
"svg-icon": SVGIconNode_default,
|
|
5093
|
-
document: DocumentNode_default
|
|
5115
|
+
document: DocumentNode_default,
|
|
5116
|
+
"google-map": GoogleMapNode_default
|
|
5094
5117
|
};
|
|
5095
5118
|
const styles = props.node.cssProperties;
|
|
5096
5119
|
const mobileStyles = props.node.mobileCssProperties;
|
|
@@ -5162,7 +5185,7 @@ var DivContainer = async (props) => {
|
|
|
5162
5185
|
response = await serviceClient.get(endpoint);
|
|
5163
5186
|
result = response?.result;
|
|
5164
5187
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
5165
|
-
return /* @__PURE__ */ (0,
|
|
5188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(NoDataFound_default, {});
|
|
5166
5189
|
}
|
|
5167
5190
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
5168
5191
|
childCollectionData = getNestedValue6(
|
|
@@ -5182,7 +5205,7 @@ var DivContainer = async (props) => {
|
|
|
5182
5205
|
}
|
|
5183
5206
|
const SelectedNode = NodeTypes2[node.type];
|
|
5184
5207
|
if (!SelectedNode) return null;
|
|
5185
|
-
return /* @__PURE__ */ (0,
|
|
5208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5186
5209
|
SelectedNode,
|
|
5187
5210
|
{
|
|
5188
5211
|
node,
|
|
@@ -5315,14 +5338,14 @@ var DivContainer = async (props) => {
|
|
|
5315
5338
|
noLinkColor && "no-link-color",
|
|
5316
5339
|
!!props.node.enterAnimation && "enter-animation"
|
|
5317
5340
|
].filter(Boolean).join(" ");
|
|
5318
|
-
return /* @__PURE__ */ (0,
|
|
5319
|
-
/* @__PURE__ */ (0,
|
|
5341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_react34.default.Fragment, { children: [
|
|
5342
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5320
5343
|
"style",
|
|
5321
5344
|
{
|
|
5322
5345
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
5323
5346
|
}
|
|
5324
5347
|
),
|
|
5325
|
-
/* @__PURE__ */ (0,
|
|
5348
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5326
5349
|
Wrapper,
|
|
5327
5350
|
{
|
|
5328
5351
|
id: guid,
|
|
@@ -5336,11 +5359,11 @@ var DivContainer = async (props) => {
|
|
|
5336
5359
|
item,
|
|
5337
5360
|
idx,
|
|
5338
5361
|
props.href ? void 0 : item?.links?.view
|
|
5339
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
5362
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react34.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
5340
5363
|
)
|
|
5341
5364
|
}
|
|
5342
5365
|
),
|
|
5343
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0,
|
|
5366
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5344
5367
|
Pagination2,
|
|
5345
5368
|
{
|
|
5346
5369
|
path: props.path,
|
|
@@ -5353,7 +5376,7 @@ var DivContainer = async (props) => {
|
|
|
5353
5376
|
var DivContainer_default = DivContainer;
|
|
5354
5377
|
|
|
5355
5378
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
5356
|
-
var
|
|
5379
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5357
5380
|
var NodeTypes = {
|
|
5358
5381
|
["paragraph"]: ParagraphNode_default,
|
|
5359
5382
|
["heading"]: HeadingNode_default,
|
|
@@ -5368,7 +5391,8 @@ var NodeTypes = {
|
|
|
5368
5391
|
["div-container"]: DivContainer_default,
|
|
5369
5392
|
["svg-icon"]: SVGIconNode_default,
|
|
5370
5393
|
["embed"]: EmbedNode_default,
|
|
5371
|
-
["document"]: DocumentNode_default
|
|
5394
|
+
["document"]: DocumentNode_default,
|
|
5395
|
+
["google-map"]: GoogleMapNode_default
|
|
5372
5396
|
};
|
|
5373
5397
|
var PageBodyRenderer = (props) => {
|
|
5374
5398
|
let pageBodyTree;
|
|
@@ -5390,14 +5414,14 @@ var PageBodyRenderer = (props) => {
|
|
|
5390
5414
|
}
|
|
5391
5415
|
return true;
|
|
5392
5416
|
};
|
|
5393
|
-
return /* @__PURE__ */ (0,
|
|
5417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react35.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
5394
5418
|
{
|
|
5395
5419
|
}
|
|
5396
5420
|
const SelectedNode = NodeTypes[node.type];
|
|
5397
5421
|
if (!shouldRenderNode(node)) {
|
|
5398
5422
|
return null;
|
|
5399
5423
|
}
|
|
5400
|
-
return /* @__PURE__ */ (0,
|
|
5424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react35.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react35.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5401
5425
|
SelectedNode,
|
|
5402
5426
|
{
|
|
5403
5427
|
node,
|
|
@@ -5413,7 +5437,7 @@ var PageBodyRenderer = (props) => {
|
|
|
5413
5437
|
device: props.device,
|
|
5414
5438
|
widgetRenderer: props.widgetRenderer
|
|
5415
5439
|
}
|
|
5416
|
-
) }) : /* @__PURE__ */ (0,
|
|
5440
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5417
5441
|
SelectedNode,
|
|
5418
5442
|
{
|
|
5419
5443
|
node,
|
package/dist/server.mjs
CHANGED
|
@@ -1177,13 +1177,13 @@ var WidgetNode = (props) => {
|
|
|
1177
1177
|
var WidgetNode_default = WidgetNode;
|
|
1178
1178
|
|
|
1179
1179
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1180
|
-
import
|
|
1180
|
+
import dynamic11 from "next/dynamic";
|
|
1181
1181
|
import React22 from "react";
|
|
1182
1182
|
|
|
1183
1183
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1184
1184
|
import dynamic8 from "next/dynamic";
|
|
1185
1185
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1186
|
-
var IframeClient = dynamic8(() => import("./IframeClient-
|
|
1186
|
+
var IframeClient = dynamic8(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
1187
1187
|
ssr: false
|
|
1188
1188
|
});
|
|
1189
1189
|
var EmbedNode = (props) => {
|
|
@@ -2265,10 +2265,29 @@ var DocumentNode = (props) => {
|
|
|
2265
2265
|
};
|
|
2266
2266
|
var DocumentNode_default = DocumentNode;
|
|
2267
2267
|
|
|
2268
|
+
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2269
|
+
import dynamic10 from "next/dynamic";
|
|
2270
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2271
|
+
var IframeClient2 = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
2272
|
+
ssr: false
|
|
2273
|
+
});
|
|
2274
|
+
var GoogleMapNode = (props) => {
|
|
2275
|
+
let src = props.node.embedUrl;
|
|
2276
|
+
return /* @__PURE__ */ jsx34("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx34(
|
|
2277
|
+
IframeClient2,
|
|
2278
|
+
{
|
|
2279
|
+
src,
|
|
2280
|
+
width: props.node.width,
|
|
2281
|
+
height: props.node.height
|
|
2282
|
+
}
|
|
2283
|
+
) });
|
|
2284
|
+
};
|
|
2285
|
+
var GoogleMapNode_default = GoogleMapNode;
|
|
2286
|
+
|
|
2268
2287
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2269
|
-
import { jsx as
|
|
2270
|
-
var Pagination =
|
|
2271
|
-
var Slider =
|
|
2288
|
+
import { jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2289
|
+
var Pagination = dynamic11(() => import("./Pagination-6OFACRMQ.mjs"), { ssr: true });
|
|
2290
|
+
var Slider = dynamic11(() => import("./Slider-PEIVH6A5.mjs"), {
|
|
2272
2291
|
ssr: false
|
|
2273
2292
|
});
|
|
2274
2293
|
function toCamelCase(str) {
|
|
@@ -2449,7 +2468,8 @@ var DivContainer = async (props) => {
|
|
|
2449
2468
|
text: TextNode_default,
|
|
2450
2469
|
datafield: DatafieldNode_default,
|
|
2451
2470
|
"svg-icon": SVGIconNode_default,
|
|
2452
|
-
document: DocumentNode_default
|
|
2471
|
+
document: DocumentNode_default,
|
|
2472
|
+
"google-map": GoogleMapNode_default
|
|
2453
2473
|
};
|
|
2454
2474
|
const styles = props.node.cssProperties;
|
|
2455
2475
|
const mobileStyles = props.node.mobileCssProperties;
|
|
@@ -2521,7 +2541,7 @@ var DivContainer = async (props) => {
|
|
|
2521
2541
|
response = await serviceClient.get(endpoint);
|
|
2522
2542
|
result = response?.result;
|
|
2523
2543
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2524
|
-
return /* @__PURE__ */
|
|
2544
|
+
return /* @__PURE__ */ jsx35(NoDataFound_default, {});
|
|
2525
2545
|
}
|
|
2526
2546
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2527
2547
|
childCollectionData = getNestedValue6(
|
|
@@ -2541,7 +2561,7 @@ var DivContainer = async (props) => {
|
|
|
2541
2561
|
}
|
|
2542
2562
|
const SelectedNode = NodeTypes2[node.type];
|
|
2543
2563
|
if (!SelectedNode) return null;
|
|
2544
|
-
return /* @__PURE__ */
|
|
2564
|
+
return /* @__PURE__ */ jsx35(React22.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2545
2565
|
SelectedNode,
|
|
2546
2566
|
{
|
|
2547
2567
|
node,
|
|
@@ -2675,13 +2695,13 @@ var DivContainer = async (props) => {
|
|
|
2675
2695
|
!!props.node.enterAnimation && "enter-animation"
|
|
2676
2696
|
].filter(Boolean).join(" ");
|
|
2677
2697
|
return /* @__PURE__ */ jsxs13(React22.Fragment, { children: [
|
|
2678
|
-
/* @__PURE__ */
|
|
2698
|
+
/* @__PURE__ */ jsx35(
|
|
2679
2699
|
"style",
|
|
2680
2700
|
{
|
|
2681
2701
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2682
2702
|
}
|
|
2683
2703
|
),
|
|
2684
|
-
/* @__PURE__ */
|
|
2704
|
+
/* @__PURE__ */ jsx35(
|
|
2685
2705
|
Wrapper,
|
|
2686
2706
|
{
|
|
2687
2707
|
id: guid,
|
|
@@ -2695,11 +2715,11 @@ var DivContainer = async (props) => {
|
|
|
2695
2715
|
item,
|
|
2696
2716
|
idx,
|
|
2697
2717
|
props.href ? void 0 : item?.links?.view
|
|
2698
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2718
|
+
)?.map((child, i) => /* @__PURE__ */ jsx35(React22.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2699
2719
|
)
|
|
2700
2720
|
}
|
|
2701
2721
|
),
|
|
2702
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */
|
|
2722
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx35("div", { children: /* @__PURE__ */ jsx35(
|
|
2703
2723
|
Pagination,
|
|
2704
2724
|
{
|
|
2705
2725
|
path: props.path,
|
|
@@ -2712,7 +2732,7 @@ var DivContainer = async (props) => {
|
|
|
2712
2732
|
var DivContainer_default = DivContainer;
|
|
2713
2733
|
|
|
2714
2734
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2715
|
-
import { jsx as
|
|
2735
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2716
2736
|
var NodeTypes = {
|
|
2717
2737
|
["paragraph"]: ParagraphNode_default,
|
|
2718
2738
|
["heading"]: HeadingNode_default,
|
|
@@ -2727,7 +2747,8 @@ var NodeTypes = {
|
|
|
2727
2747
|
["div-container"]: DivContainer_default,
|
|
2728
2748
|
["svg-icon"]: SVGIconNode_default,
|
|
2729
2749
|
["embed"]: EmbedNode_default,
|
|
2730
|
-
["document"]: DocumentNode_default
|
|
2750
|
+
["document"]: DocumentNode_default,
|
|
2751
|
+
["google-map"]: GoogleMapNode_default
|
|
2731
2752
|
};
|
|
2732
2753
|
var PageBodyRenderer = (props) => {
|
|
2733
2754
|
let pageBodyTree;
|
|
@@ -2749,14 +2770,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2749
2770
|
}
|
|
2750
2771
|
return true;
|
|
2751
2772
|
};
|
|
2752
|
-
return /* @__PURE__ */
|
|
2773
|
+
return /* @__PURE__ */ jsx36(React23.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2753
2774
|
{
|
|
2754
2775
|
}
|
|
2755
2776
|
const SelectedNode = NodeTypes[node.type];
|
|
2756
2777
|
if (!shouldRenderNode(node)) {
|
|
2757
2778
|
return null;
|
|
2758
2779
|
}
|
|
2759
|
-
return /* @__PURE__ */
|
|
2780
|
+
return /* @__PURE__ */ jsx36(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx36(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
|
|
2760
2781
|
SelectedNode,
|
|
2761
2782
|
{
|
|
2762
2783
|
node,
|
|
@@ -2772,7 +2793,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2772
2793
|
device: props.device,
|
|
2773
2794
|
widgetRenderer: props.widgetRenderer
|
|
2774
2795
|
}
|
|
2775
|
-
) }) : /* @__PURE__ */
|
|
2796
|
+
) }) : /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
|
|
2776
2797
|
SelectedNode,
|
|
2777
2798
|
{
|
|
2778
2799
|
node,
|