@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260827101843 → 0.8.1-dev.20260829045216
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/{CommentRendererClient-DY2NS3WO.mjs → CommentRendererClient-IAXFBEMF.mjs} +166 -11
- package/dist/{CommentRendererClient-2XBMECUR.mjs → CommentRendererClient-XPZN5L64.mjs} +166 -11
- package/dist/index.js +865 -700
- package/dist/index.mjs +1 -1
- package/dist/server.js +642 -477
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -959,12 +959,62 @@ var init_commentParser = __esm({
|
|
|
959
959
|
});
|
|
960
960
|
|
|
961
961
|
// src/components/controls/view/commentImages.ts
|
|
962
|
-
var pickUrl, pickAlt, resolveCommentImageUrl, collectCommentImages;
|
|
962
|
+
var INDIVIDUAL_IMAGE_THRESHOLD, MAX_VISIBLE_GALLERY_IMAGES, isImageNode, flattenText, isBlankFiller, groupConsecutiveImages, pickUrl, pickAlt, resolveCommentImageUrl, collectCommentImages;
|
|
963
963
|
var init_commentImages = __esm({
|
|
964
964
|
"src/components/controls/view/commentImages.ts"() {
|
|
965
965
|
"use strict";
|
|
966
966
|
init_AssetUtility();
|
|
967
967
|
init_commentTypes();
|
|
968
|
+
INDIVIDUAL_IMAGE_THRESHOLD = 1;
|
|
969
|
+
MAX_VISIBLE_GALLERY_IMAGES = 4;
|
|
970
|
+
isImageNode = (node) => !!node && !isTextNode(node) && asElementNode(node).type === "image";
|
|
971
|
+
flattenText = (node) => {
|
|
972
|
+
if (!node) return "";
|
|
973
|
+
if (isTextNode(node)) return node.text ?? "";
|
|
974
|
+
return (asElementNode(node).children ?? []).map(flattenText).join("");
|
|
975
|
+
};
|
|
976
|
+
isBlankFiller = (node) => {
|
|
977
|
+
if (!node || isTextNode(node)) return false;
|
|
978
|
+
const element = asElementNode(node);
|
|
979
|
+
if (element.type === "linebreak" || element.type === "line-break") return true;
|
|
980
|
+
if (element.type === "paragraph") return flattenText(node).trim() === "";
|
|
981
|
+
return false;
|
|
982
|
+
};
|
|
983
|
+
groupConsecutiveImages = (nodes) => {
|
|
984
|
+
const groups = [];
|
|
985
|
+
let i = 0;
|
|
986
|
+
while (i < nodes.length) {
|
|
987
|
+
const node = nodes[i];
|
|
988
|
+
if (!isImageNode(node)) {
|
|
989
|
+
groups.push({ kind: "other", node });
|
|
990
|
+
i += 1;
|
|
991
|
+
continue;
|
|
992
|
+
}
|
|
993
|
+
const runImages = [asElementNode(node)];
|
|
994
|
+
let cursor = i + 1;
|
|
995
|
+
while (cursor < nodes.length) {
|
|
996
|
+
if (isImageNode(nodes[cursor])) {
|
|
997
|
+
runImages.push(asElementNode(nodes[cursor]));
|
|
998
|
+
cursor += 1;
|
|
999
|
+
continue;
|
|
1000
|
+
}
|
|
1001
|
+
if (isBlankFiller(nodes[cursor])) {
|
|
1002
|
+
let peek = cursor + 1;
|
|
1003
|
+
while (peek < nodes.length && isBlankFiller(nodes[peek])) {
|
|
1004
|
+
peek += 1;
|
|
1005
|
+
}
|
|
1006
|
+
if (peek < nodes.length && isImageNode(nodes[peek])) {
|
|
1007
|
+
cursor = peek;
|
|
1008
|
+
continue;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
break;
|
|
1012
|
+
}
|
|
1013
|
+
groups.push({ kind: "images", nodes: runImages });
|
|
1014
|
+
i = cursor;
|
|
1015
|
+
}
|
|
1016
|
+
return groups;
|
|
1017
|
+
};
|
|
968
1018
|
pickUrl = (node) => typeof node.url === "string" && node.url || typeof node.src === "string" && node.src || typeof node.assetUrl === "string" && node.assetUrl || "";
|
|
969
1019
|
pickAlt = (node) => typeof node.fileName === "string" && node.fileName || typeof node.altText === "string" && node.altText || typeof node.alt === "string" && node.alt || "";
|
|
970
1020
|
resolveCommentImageUrl = (node, assetBaseUrl) => {
|
|
@@ -1250,9 +1300,12 @@ var init_CommentImageNode = __esm({
|
|
|
1250
1300
|
loading: "lazy",
|
|
1251
1301
|
onClick: clickable ? () => preview?.openPreview(resolvedUrl) : void 0,
|
|
1252
1302
|
style: {
|
|
1253
|
-
maxWidth: "100%",
|
|
1254
|
-
height: "auto",
|
|
1255
1303
|
display: "block",
|
|
1304
|
+
width: "auto",
|
|
1305
|
+
height: "auto",
|
|
1306
|
+
objectFit: "cover",
|
|
1307
|
+
borderRadius: "0.375rem",
|
|
1308
|
+
margin: "0.5rem 0",
|
|
1256
1309
|
cursor: clickable ? "zoom-in" : "default"
|
|
1257
1310
|
}
|
|
1258
1311
|
}
|
|
@@ -1765,12 +1818,98 @@ var init_CommentNodeRenderer = __esm({
|
|
|
1765
1818
|
}
|
|
1766
1819
|
});
|
|
1767
1820
|
|
|
1821
|
+
// src/components/controls/view/CommentImageGallery.tsx
|
|
1822
|
+
var import_jsx_runtime26, gridStyle, cellStyle, cellImgStyle, moreOverlayStyle, CommentImageGallery, CommentImageGallery_default;
|
|
1823
|
+
var init_CommentImageGallery = __esm({
|
|
1824
|
+
"src/components/controls/view/CommentImageGallery.tsx"() {
|
|
1825
|
+
"use strict";
|
|
1826
|
+
"use client";
|
|
1827
|
+
init_commentImages();
|
|
1828
|
+
init_CommentImagePreviewContext();
|
|
1829
|
+
import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1830
|
+
gridStyle = {
|
|
1831
|
+
display: "grid",
|
|
1832
|
+
gridTemplateColumns: "repeat(2, 1fr)",
|
|
1833
|
+
gap: "2px",
|
|
1834
|
+
maxWidth: "360px",
|
|
1835
|
+
borderRadius: "0.375rem",
|
|
1836
|
+
overflow: "hidden",
|
|
1837
|
+
margin: "0.5rem 0"
|
|
1838
|
+
};
|
|
1839
|
+
cellStyle = {
|
|
1840
|
+
position: "relative",
|
|
1841
|
+
display: "block",
|
|
1842
|
+
// Landscape cells keep the grid short when a run wraps onto 2+ rows.
|
|
1843
|
+
aspectRatio: "3 / 2",
|
|
1844
|
+
width: "100%",
|
|
1845
|
+
padding: 0,
|
|
1846
|
+
border: "none",
|
|
1847
|
+
background: "none",
|
|
1848
|
+
cursor: "zoom-in",
|
|
1849
|
+
overflow: "hidden"
|
|
1850
|
+
};
|
|
1851
|
+
cellImgStyle = {
|
|
1852
|
+
display: "block",
|
|
1853
|
+
width: "100%",
|
|
1854
|
+
height: "100%",
|
|
1855
|
+
objectFit: "cover"
|
|
1856
|
+
};
|
|
1857
|
+
moreOverlayStyle = {
|
|
1858
|
+
position: "absolute",
|
|
1859
|
+
inset: 0,
|
|
1860
|
+
display: "flex",
|
|
1861
|
+
alignItems: "center",
|
|
1862
|
+
justifyContent: "center",
|
|
1863
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
1864
|
+
color: "#fff",
|
|
1865
|
+
fontSize: "1.25rem",
|
|
1866
|
+
fontWeight: 600
|
|
1867
|
+
};
|
|
1868
|
+
CommentImageGallery = ({ nodes, assetBaseUrl }) => {
|
|
1869
|
+
const preview = useCommentImagePreview();
|
|
1870
|
+
const cells = nodes.map((node) => ({
|
|
1871
|
+
id: typeof node.id === "string" && node.id || void 0,
|
|
1872
|
+
src: resolveCommentImageUrl(node, assetBaseUrl),
|
|
1873
|
+
alt: typeof node.fileName === "string" && node.fileName || typeof node.alt === "string" && node.alt || ""
|
|
1874
|
+
})).filter((cell) => !!cell.src);
|
|
1875
|
+
if (cells.length === 0) {
|
|
1876
|
+
return null;
|
|
1877
|
+
}
|
|
1878
|
+
const visibleCount = Math.min(cells.length, MAX_VISIBLE_GALLERY_IMAGES);
|
|
1879
|
+
const remaining = cells.length - MAX_VISIBLE_GALLERY_IMAGES;
|
|
1880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "comment-image-gallery", style: gridStyle, children: cells.slice(0, visibleCount).map((cell, i) => {
|
|
1881
|
+
const isLastVisible = i === visibleCount - 1;
|
|
1882
|
+
const showMoreOverlay = isLastVisible && remaining > 0;
|
|
1883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1884
|
+
"button",
|
|
1885
|
+
{
|
|
1886
|
+
type: "button",
|
|
1887
|
+
className: "comment-image-gallery-cell",
|
|
1888
|
+
style: cellStyle,
|
|
1889
|
+
"aria-label": showMoreOverlay ? `Show ${remaining} more photo${remaining === 1 ? "" : "s"}` : cell.alt || "View image",
|
|
1890
|
+
onClick: () => preview?.openPreview(cell.src),
|
|
1891
|
+
children: [
|
|
1892
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("img", { src: cell.src, alt: cell.alt, loading: "lazy", style: cellImgStyle }),
|
|
1893
|
+
showMoreOverlay ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "comment-image-gallery-more-overlay", style: moreOverlayStyle, children: [
|
|
1894
|
+
"+",
|
|
1895
|
+
remaining
|
|
1896
|
+
] }) : null
|
|
1897
|
+
]
|
|
1898
|
+
},
|
|
1899
|
+
cell.id ?? `comment-gallery-${i}`
|
|
1900
|
+
);
|
|
1901
|
+
}) });
|
|
1902
|
+
};
|
|
1903
|
+
CommentImageGallery_default = CommentImageGallery;
|
|
1904
|
+
}
|
|
1905
|
+
});
|
|
1906
|
+
|
|
1768
1907
|
// src/components/controls/view/CommentRendererClient.tsx
|
|
1769
1908
|
var CommentRendererClient_exports = {};
|
|
1770
1909
|
__export(CommentRendererClient_exports, {
|
|
1771
1910
|
default: () => CommentRendererClient_default
|
|
1772
1911
|
});
|
|
1773
|
-
var import_react20,
|
|
1912
|
+
var import_react20, import_jsx_runtime27, CommentRendererClient, CommentRendererClient_default;
|
|
1774
1913
|
var init_CommentRendererClient = __esm({
|
|
1775
1914
|
"src/components/controls/view/CommentRendererClient.tsx"() {
|
|
1776
1915
|
"use strict";
|
|
@@ -1779,8 +1918,9 @@ var init_CommentRendererClient = __esm({
|
|
|
1779
1918
|
init_commentParser();
|
|
1780
1919
|
init_commentImages();
|
|
1781
1920
|
init_CommentNodeRenderer();
|
|
1921
|
+
init_CommentImageGallery();
|
|
1782
1922
|
init_CommentImagePreviewContext();
|
|
1783
|
-
|
|
1923
|
+
import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1784
1924
|
CommentRendererClient = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
|
|
1785
1925
|
const nodes = import_react20.default.useMemo(() => parseSerializedContent(value), [value]);
|
|
1786
1926
|
const resolvedAssetBaseUrl = assetBaseUrl ?? apiBaseUrl;
|
|
@@ -1788,29 +1928,54 @@ var init_CommentRendererClient = __esm({
|
|
|
1788
1928
|
() => collectCommentImages(nodes, resolvedAssetBaseUrl),
|
|
1789
1929
|
[nodes, resolvedAssetBaseUrl]
|
|
1790
1930
|
);
|
|
1931
|
+
const groups = import_react20.default.useMemo(() => groupConsecutiveImages(nodes), [nodes]);
|
|
1791
1932
|
if (!nodes || nodes.length === 0) {
|
|
1792
1933
|
return null;
|
|
1793
1934
|
}
|
|
1794
|
-
return /* @__PURE__ */ (0,
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CommentImagePreviewProvider, { images, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: className ?? "comment-renderer", children: groups.map((group, groupIndex) => {
|
|
1936
|
+
if (group.kind === "images") {
|
|
1937
|
+
const key = group.nodes[0]?.id ?? `comment-group-${groupIndex}`;
|
|
1938
|
+
if (group.nodes.length <= INDIVIDUAL_IMAGE_THRESHOLD) {
|
|
1939
|
+
return group.nodes.map((node2, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1940
|
+
CommentNodeRenderer_default,
|
|
1941
|
+
{
|
|
1942
|
+
node: node2,
|
|
1943
|
+
assetBaseUrl: resolvedAssetBaseUrl
|
|
1944
|
+
},
|
|
1945
|
+
node2.id ?? `${key}-${i}`
|
|
1946
|
+
));
|
|
1947
|
+
}
|
|
1948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1949
|
+
CommentImageGallery_default,
|
|
1950
|
+
{
|
|
1951
|
+
nodes: group.nodes,
|
|
1952
|
+
assetBaseUrl: resolvedAssetBaseUrl
|
|
1953
|
+
},
|
|
1954
|
+
key
|
|
1955
|
+
);
|
|
1956
|
+
}
|
|
1957
|
+
const node = group.node;
|
|
1958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1959
|
+
CommentNodeRenderer_default,
|
|
1960
|
+
{
|
|
1961
|
+
node,
|
|
1962
|
+
assetBaseUrl: resolvedAssetBaseUrl
|
|
1963
|
+
},
|
|
1964
|
+
node.id ?? `comment-group-${groupIndex}`
|
|
1965
|
+
);
|
|
1966
|
+
}) }) });
|
|
1802
1967
|
};
|
|
1803
1968
|
CommentRendererClient_default = CommentRendererClient;
|
|
1804
1969
|
}
|
|
1805
1970
|
});
|
|
1806
1971
|
|
|
1807
1972
|
// src/components/controls/edit/MultilineTextInput.tsx
|
|
1808
|
-
var import_react22,
|
|
1973
|
+
var import_react22, import_jsx_runtime29, MultilineTextInput, MultilineTextInput_default;
|
|
1809
1974
|
var init_MultilineTextInput = __esm({
|
|
1810
1975
|
"src/components/controls/edit/MultilineTextInput.tsx"() {
|
|
1811
1976
|
"use strict";
|
|
1812
1977
|
import_react22 = __toESM(require("react"));
|
|
1813
|
-
|
|
1978
|
+
import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1814
1979
|
MultilineTextInput = (props) => {
|
|
1815
1980
|
const textChangeHandler = (event) => {
|
|
1816
1981
|
const text = event.target.value;
|
|
@@ -1829,11 +1994,11 @@ var init_MultilineTextInput = __esm({
|
|
|
1829
1994
|
if (props.value !== void 0 && props.value !== null) {
|
|
1830
1995
|
value = props.value;
|
|
1831
1996
|
}
|
|
1832
|
-
return /* @__PURE__ */ (0,
|
|
1833
|
-
/* @__PURE__ */ (0,
|
|
1997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react22.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block mb-1", children: [
|
|
1998
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1834
1999
|
" ",
|
|
1835
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1836
|
-
/* @__PURE__ */ (0,
|
|
2000
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2001
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1837
2002
|
"textarea",
|
|
1838
2003
|
{
|
|
1839
2004
|
name: props.name,
|
|
@@ -1850,7 +2015,7 @@ var init_MultilineTextInput = __esm({
|
|
|
1850
2015
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
|
|
1851
2016
|
}
|
|
1852
2017
|
),
|
|
1853
|
-
/* @__PURE__ */ (0,
|
|
2018
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
1854
2019
|
] }) });
|
|
1855
2020
|
};
|
|
1856
2021
|
MultilineTextInput_default = MultilineTextInput;
|
|
@@ -1858,12 +2023,12 @@ var init_MultilineTextInput = __esm({
|
|
|
1858
2023
|
});
|
|
1859
2024
|
|
|
1860
2025
|
// src/components/controls/edit/LineTextInput.tsx
|
|
1861
|
-
var import_react23,
|
|
2026
|
+
var import_react23, import_jsx_runtime30, LineTextInput, LineTextInput_default;
|
|
1862
2027
|
var init_LineTextInput = __esm({
|
|
1863
2028
|
"src/components/controls/edit/LineTextInput.tsx"() {
|
|
1864
2029
|
"use strict";
|
|
1865
2030
|
import_react23 = __toESM(require("react"));
|
|
1866
|
-
|
|
2031
|
+
import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1867
2032
|
LineTextInput = (props) => {
|
|
1868
2033
|
const textChangeHandler = (event) => {
|
|
1869
2034
|
const text = event.target.value;
|
|
@@ -1882,11 +2047,11 @@ var init_LineTextInput = __esm({
|
|
|
1882
2047
|
if (props.value !== void 0 && props.value !== null) {
|
|
1883
2048
|
value = props.value;
|
|
1884
2049
|
}
|
|
1885
|
-
return /* @__PURE__ */ (0,
|
|
1886
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
2050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react23.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block", children: [
|
|
2051
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
1887
2052
|
" ",
|
|
1888
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1889
|
-
/* @__PURE__ */ (0,
|
|
2053
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
|
|
2054
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1890
2055
|
"input",
|
|
1891
2056
|
{
|
|
1892
2057
|
type: "text",
|
|
@@ -1906,7 +2071,7 @@ var init_LineTextInput = __esm({
|
|
|
1906
2071
|
`
|
|
1907
2072
|
}
|
|
1908
2073
|
),
|
|
1909
|
-
/* @__PURE__ */ (0,
|
|
2074
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
1910
2075
|
] }) });
|
|
1911
2076
|
};
|
|
1912
2077
|
LineTextInput_default = LineTextInput;
|
|
@@ -1914,12 +2079,12 @@ var init_LineTextInput = __esm({
|
|
|
1914
2079
|
});
|
|
1915
2080
|
|
|
1916
2081
|
// src/components/controls/edit/MoneyInput.tsx
|
|
1917
|
-
var import_react24,
|
|
2082
|
+
var import_react24, import_jsx_runtime31, MoneyInput, MoneyInput_default;
|
|
1918
2083
|
var init_MoneyInput = __esm({
|
|
1919
2084
|
"src/components/controls/edit/MoneyInput.tsx"() {
|
|
1920
2085
|
"use strict";
|
|
1921
2086
|
import_react24 = __toESM(require("react"));
|
|
1922
|
-
|
|
2087
|
+
import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1923
2088
|
MoneyInput = (props) => {
|
|
1924
2089
|
const textChangeHandler = (event) => {
|
|
1925
2090
|
const rawValue = event.target.value;
|
|
@@ -1948,11 +2113,11 @@ var init_MoneyInput = __esm({
|
|
|
1948
2113
|
e.preventDefault();
|
|
1949
2114
|
}
|
|
1950
2115
|
};
|
|
1951
|
-
return /* @__PURE__ */ (0,
|
|
1952
|
-
/* @__PURE__ */ (0,
|
|
2116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react24.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block mb-1", children: [
|
|
2117
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1953
2118
|
" ",
|
|
1954
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1955
|
-
/* @__PURE__ */ (0,
|
|
2119
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2120
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1956
2121
|
"input",
|
|
1957
2122
|
{
|
|
1958
2123
|
type: "number",
|
|
@@ -1972,7 +2137,7 @@ var init_MoneyInput = __esm({
|
|
|
1972
2137
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
|
|
1973
2138
|
}
|
|
1974
2139
|
),
|
|
1975
|
-
/* @__PURE__ */ (0,
|
|
2140
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
1976
2141
|
] }) });
|
|
1977
2142
|
};
|
|
1978
2143
|
MoneyInput_default = MoneyInput;
|
|
@@ -2018,12 +2183,12 @@ var init_InputControlType = __esm({
|
|
|
2018
2183
|
});
|
|
2019
2184
|
|
|
2020
2185
|
// src/components/controls/edit/Select.tsx
|
|
2021
|
-
var import_react25,
|
|
2186
|
+
var import_react25, import_jsx_runtime32, Select, Select_default;
|
|
2022
2187
|
var init_Select = __esm({
|
|
2023
2188
|
"src/components/controls/edit/Select.tsx"() {
|
|
2024
2189
|
"use strict";
|
|
2025
2190
|
import_react25 = require("react");
|
|
2026
|
-
|
|
2191
|
+
import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2027
2192
|
Select = (props) => {
|
|
2028
2193
|
const [list, setList] = (0, import_react25.useState)();
|
|
2029
2194
|
const getSafeValue = (val) => {
|
|
@@ -2095,11 +2260,11 @@ var init_Select = __esm({
|
|
|
2095
2260
|
props.dataSourceDependsOn
|
|
2096
2261
|
]);
|
|
2097
2262
|
const value = getSafeValue(props.value);
|
|
2098
|
-
return /* @__PURE__ */ (0,
|
|
2099
|
-
props.attributes?.label && /* @__PURE__ */ (0,
|
|
2263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("label", { className: "block", children: [
|
|
2264
|
+
props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
|
|
2100
2265
|
" ",
|
|
2101
|
-
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0,
|
|
2102
|
-
list && list.length === 0 && /* @__PURE__ */ (0,
|
|
2266
|
+
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2267
|
+
list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2103
2268
|
"input",
|
|
2104
2269
|
{
|
|
2105
2270
|
type: "text",
|
|
@@ -2116,7 +2281,7 @@ var init_Select = __esm({
|
|
|
2116
2281
|
className: `peer input select mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
|
|
2117
2282
|
}
|
|
2118
2283
|
),
|
|
2119
|
-
list && list.length > 0 && /* @__PURE__ */ (0,
|
|
2284
|
+
list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2120
2285
|
"select",
|
|
2121
2286
|
{
|
|
2122
2287
|
name: props.name,
|
|
@@ -2129,16 +2294,16 @@ var init_Select = __esm({
|
|
|
2129
2294
|
focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
|
|
2130
2295
|
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none ${props.inputClasses ?? ""}`,
|
|
2131
2296
|
children: [
|
|
2132
|
-
/* @__PURE__ */ (0,
|
|
2297
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
|
|
2133
2298
|
list.map((item, index) => {
|
|
2134
2299
|
const keyField = props.dataKeyFieldName;
|
|
2135
2300
|
const textField = props.dataTextFieldName;
|
|
2136
|
-
return /* @__PURE__ */ (0,
|
|
2301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: item[keyField], children: item[textField] }, index);
|
|
2137
2302
|
})
|
|
2138
2303
|
]
|
|
2139
2304
|
}
|
|
2140
2305
|
),
|
|
2141
|
-
/* @__PURE__ */ (0,
|
|
2306
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
|
|
2142
2307
|
] });
|
|
2143
2308
|
};
|
|
2144
2309
|
Select_default = Select;
|
|
@@ -2146,12 +2311,12 @@ var init_Select = __esm({
|
|
|
2146
2311
|
});
|
|
2147
2312
|
|
|
2148
2313
|
// src/components/controls/edit/PercentageInput.tsx
|
|
2149
|
-
var import_react26,
|
|
2314
|
+
var import_react26, import_jsx_runtime33, PercentageInput, PercentageInput_default;
|
|
2150
2315
|
var init_PercentageInput = __esm({
|
|
2151
2316
|
"src/components/controls/edit/PercentageInput.tsx"() {
|
|
2152
2317
|
"use strict";
|
|
2153
2318
|
import_react26 = __toESM(require("react"));
|
|
2154
|
-
|
|
2319
|
+
import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2155
2320
|
PercentageInput = (props) => {
|
|
2156
2321
|
const textChangeHandler = (event) => {
|
|
2157
2322
|
const rawValue = event.target.value;
|
|
@@ -2180,11 +2345,11 @@ var init_PercentageInput = __esm({
|
|
|
2180
2345
|
e.preventDefault();
|
|
2181
2346
|
}
|
|
2182
2347
|
};
|
|
2183
|
-
return /* @__PURE__ */ (0,
|
|
2184
|
-
/* @__PURE__ */ (0,
|
|
2348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react26.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("label", { className: "block mb-1", children: [
|
|
2349
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
|
|
2185
2350
|
" ",
|
|
2186
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2187
|
-
/* @__PURE__ */ (0,
|
|
2351
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2352
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2188
2353
|
"input",
|
|
2189
2354
|
{
|
|
2190
2355
|
type: "number",
|
|
@@ -2203,7 +2368,7 @@ var init_PercentageInput = __esm({
|
|
|
2203
2368
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
|
|
2204
2369
|
}
|
|
2205
2370
|
),
|
|
2206
|
-
/* @__PURE__ */ (0,
|
|
2371
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
2207
2372
|
] }) });
|
|
2208
2373
|
};
|
|
2209
2374
|
PercentageInput_default = PercentageInput;
|
|
@@ -2211,12 +2376,12 @@ var init_PercentageInput = __esm({
|
|
|
2211
2376
|
});
|
|
2212
2377
|
|
|
2213
2378
|
// src/components/controls/edit/PhoneInput.tsx
|
|
2214
|
-
var import_react27,
|
|
2379
|
+
var import_react27, import_jsx_runtime34, PhoneInput, PhoneInput_default;
|
|
2215
2380
|
var init_PhoneInput = __esm({
|
|
2216
2381
|
"src/components/controls/edit/PhoneInput.tsx"() {
|
|
2217
2382
|
"use strict";
|
|
2218
2383
|
import_react27 = __toESM(require("react"));
|
|
2219
|
-
|
|
2384
|
+
import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2220
2385
|
PhoneInput = (props) => {
|
|
2221
2386
|
const textChangeHandler = (event) => {
|
|
2222
2387
|
const text = event.target.value;
|
|
@@ -2235,13 +2400,13 @@ var init_PhoneInput = __esm({
|
|
|
2235
2400
|
if (props.value !== void 0 && props.value !== null) {
|
|
2236
2401
|
value = props.value;
|
|
2237
2402
|
}
|
|
2238
|
-
return /* @__PURE__ */ (0,
|
|
2239
|
-
/* @__PURE__ */ (0,
|
|
2403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react27.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "block mb-1", children: [
|
|
2404
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
2240
2405
|
" ",
|
|
2241
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2242
|
-
/* @__PURE__ */ (0,
|
|
2243
|
-
/* @__PURE__ */ (0,
|
|
2244
|
-
/* @__PURE__ */ (0,
|
|
2406
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2407
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center rounded border ", children: [
|
|
2408
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "px-3", children: props.prefix }),
|
|
2409
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2245
2410
|
"input",
|
|
2246
2411
|
{
|
|
2247
2412
|
type: "text",
|
|
@@ -2259,7 +2424,7 @@ var init_PhoneInput = __esm({
|
|
|
2259
2424
|
}
|
|
2260
2425
|
)
|
|
2261
2426
|
] }),
|
|
2262
|
-
/* @__PURE__ */ (0,
|
|
2427
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
2263
2428
|
] }) });
|
|
2264
2429
|
};
|
|
2265
2430
|
PhoneInput_default = PhoneInput;
|
|
@@ -2267,12 +2432,12 @@ var init_PhoneInput = __esm({
|
|
|
2267
2432
|
});
|
|
2268
2433
|
|
|
2269
2434
|
// src/components/controls/edit/NumberInput.tsx
|
|
2270
|
-
var import_react28,
|
|
2435
|
+
var import_react28, import_jsx_runtime35, NumberInput, NumberInput_default;
|
|
2271
2436
|
var init_NumberInput = __esm({
|
|
2272
2437
|
"src/components/controls/edit/NumberInput.tsx"() {
|
|
2273
2438
|
"use strict";
|
|
2274
2439
|
import_react28 = __toESM(require("react"));
|
|
2275
|
-
|
|
2440
|
+
import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2276
2441
|
NumberInput = (props) => {
|
|
2277
2442
|
const textChangeHandler = (event) => {
|
|
2278
2443
|
const text = event.target.value;
|
|
@@ -2295,11 +2460,11 @@ var init_NumberInput = __esm({
|
|
|
2295
2460
|
if (props.value !== void 0 && props.value !== null) {
|
|
2296
2461
|
value = props.value;
|
|
2297
2462
|
}
|
|
2298
|
-
return /* @__PURE__ */ (0,
|
|
2299
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
2463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: "block", children: [
|
|
2464
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
2300
2465
|
" ",
|
|
2301
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2302
|
-
/* @__PURE__ */ (0,
|
|
2466
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2467
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2303
2468
|
"input",
|
|
2304
2469
|
{
|
|
2305
2470
|
type: "number",
|
|
@@ -2318,7 +2483,7 @@ var init_NumberInput = __esm({
|
|
|
2318
2483
|
className: "peer py-1.5 block w-full rounded shadow-sm number-input input\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
2319
2484
|
}
|
|
2320
2485
|
),
|
|
2321
|
-
/* @__PURE__ */ (0,
|
|
2486
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
2322
2487
|
] }) });
|
|
2323
2488
|
};
|
|
2324
2489
|
NumberInput_default = NumberInput;
|
|
@@ -2326,12 +2491,12 @@ var init_NumberInput = __esm({
|
|
|
2326
2491
|
});
|
|
2327
2492
|
|
|
2328
2493
|
// src/components/controls/edit/CheckboxInput.tsx
|
|
2329
|
-
var import_react29,
|
|
2494
|
+
var import_react29, import_jsx_runtime36, CheckboxInput, CheckboxInput_default;
|
|
2330
2495
|
var init_CheckboxInput = __esm({
|
|
2331
2496
|
"src/components/controls/edit/CheckboxInput.tsx"() {
|
|
2332
2497
|
"use strict";
|
|
2333
2498
|
import_react29 = __toESM(require("react"));
|
|
2334
|
-
|
|
2499
|
+
import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2335
2500
|
CheckboxInput = (props) => {
|
|
2336
2501
|
const textChangeHandler = (event) => {
|
|
2337
2502
|
let text = event.target.checked;
|
|
@@ -2348,9 +2513,9 @@ var init_CheckboxInput = __esm({
|
|
|
2348
2513
|
if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
|
|
2349
2514
|
value = true;
|
|
2350
2515
|
}
|
|
2351
|
-
return /* @__PURE__ */ (0,
|
|
2352
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
2353
|
-
/* @__PURE__ */ (0,
|
|
2516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "mb-1", children: [
|
|
2517
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
2518
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2354
2519
|
"label",
|
|
2355
2520
|
{
|
|
2356
2521
|
htmlFor: props.name,
|
|
@@ -2358,9 +2523,9 @@ var init_CheckboxInput = __esm({
|
|
|
2358
2523
|
children: props.attributes.label
|
|
2359
2524
|
}
|
|
2360
2525
|
),
|
|
2361
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2526
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
2362
2527
|
] }),
|
|
2363
|
-
/* @__PURE__ */ (0,
|
|
2528
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2364
2529
|
"input",
|
|
2365
2530
|
{
|
|
2366
2531
|
type: "checkbox",
|
|
@@ -2377,7 +2542,7 @@ var init_CheckboxInput = __esm({
|
|
|
2377
2542
|
className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
2378
2543
|
}
|
|
2379
2544
|
),
|
|
2380
|
-
/* @__PURE__ */ (0,
|
|
2545
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
|
|
2381
2546
|
] }) });
|
|
2382
2547
|
};
|
|
2383
2548
|
CheckboxInput_default = CheckboxInput;
|
|
@@ -2385,12 +2550,12 @@ var init_CheckboxInput = __esm({
|
|
|
2385
2550
|
});
|
|
2386
2551
|
|
|
2387
2552
|
// src/components/controls/edit/OtpInput.tsx
|
|
2388
|
-
var import_react30,
|
|
2553
|
+
var import_react30, import_jsx_runtime37, OtpInput, OtpInput_default;
|
|
2389
2554
|
var init_OtpInput = __esm({
|
|
2390
2555
|
"src/components/controls/edit/OtpInput.tsx"() {
|
|
2391
2556
|
"use strict";
|
|
2392
2557
|
import_react30 = __toESM(require("react"));
|
|
2393
|
-
|
|
2558
|
+
import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2394
2559
|
OtpInput = (props) => {
|
|
2395
2560
|
const textChangeHandler = (event) => {
|
|
2396
2561
|
const text = event.target.value;
|
|
@@ -2412,11 +2577,11 @@ var init_OtpInput = __esm({
|
|
|
2412
2577
|
if (props.value !== void 0 && props.value !== null) {
|
|
2413
2578
|
value = props.value;
|
|
2414
2579
|
}
|
|
2415
|
-
return /* @__PURE__ */ (0,
|
|
2416
|
-
/* @__PURE__ */ (0,
|
|
2580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react30.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
|
|
2581
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
2417
2582
|
" ",
|
|
2418
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2419
|
-
/* @__PURE__ */ (0,
|
|
2583
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2584
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2420
2585
|
"input",
|
|
2421
2586
|
{
|
|
2422
2587
|
type: "text",
|
|
@@ -2436,7 +2601,7 @@ var init_OtpInput = __esm({
|
|
|
2436
2601
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
|
|
2437
2602
|
}
|
|
2438
2603
|
),
|
|
2439
|
-
/* @__PURE__ */ (0,
|
|
2604
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
2440
2605
|
] }) });
|
|
2441
2606
|
};
|
|
2442
2607
|
OtpInput_default = OtpInput;
|
|
@@ -2444,12 +2609,12 @@ var init_OtpInput = __esm({
|
|
|
2444
2609
|
});
|
|
2445
2610
|
|
|
2446
2611
|
// src/components/controls/edit/DateTimeInput.tsx
|
|
2447
|
-
var import_react31,
|
|
2612
|
+
var import_react31, import_jsx_runtime38, DateTimeInput, DateTimeInput_default;
|
|
2448
2613
|
var init_DateTimeInput = __esm({
|
|
2449
2614
|
"src/components/controls/edit/DateTimeInput.tsx"() {
|
|
2450
2615
|
"use strict";
|
|
2451
2616
|
import_react31 = __toESM(require("react"));
|
|
2452
|
-
|
|
2617
|
+
import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2453
2618
|
DateTimeInput = (props) => {
|
|
2454
2619
|
const textChangeHandler = (event) => {
|
|
2455
2620
|
const localDate = new Date(event.target.value);
|
|
@@ -2481,12 +2646,12 @@ var init_DateTimeInput = __esm({
|
|
|
2481
2646
|
e.preventDefault();
|
|
2482
2647
|
}
|
|
2483
2648
|
};
|
|
2484
|
-
return /* @__PURE__ */ (0,
|
|
2485
|
-
/* @__PURE__ */ (0,
|
|
2649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react31.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "block mb-1", children: [
|
|
2650
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
2486
2651
|
" ",
|
|
2487
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2488
|
-
/* @__PURE__ */ (0,
|
|
2489
|
-
/* @__PURE__ */ (0,
|
|
2652
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2653
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2654
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2490
2655
|
"input",
|
|
2491
2656
|
{
|
|
2492
2657
|
type: "datetime-local",
|
|
@@ -2504,9 +2669,9 @@ var init_DateTimeInput = __esm({
|
|
|
2504
2669
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
2505
2670
|
}
|
|
2506
2671
|
),
|
|
2507
|
-
/* @__PURE__ */ (0,
|
|
2672
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: timeZoneAbbr })
|
|
2508
2673
|
] }),
|
|
2509
|
-
/* @__PURE__ */ (0,
|
|
2674
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
2510
2675
|
] }) });
|
|
2511
2676
|
};
|
|
2512
2677
|
DateTimeInput_default = DateTimeInput;
|
|
@@ -2514,12 +2679,12 @@ var init_DateTimeInput = __esm({
|
|
|
2514
2679
|
});
|
|
2515
2680
|
|
|
2516
2681
|
// src/components/controls/edit/ColorInput.tsx
|
|
2517
|
-
var import_react32,
|
|
2682
|
+
var import_react32, import_jsx_runtime39, ColorInput, ColorInput_default;
|
|
2518
2683
|
var init_ColorInput = __esm({
|
|
2519
2684
|
"src/components/controls/edit/ColorInput.tsx"() {
|
|
2520
2685
|
"use strict";
|
|
2521
2686
|
import_react32 = __toESM(require("react"));
|
|
2522
|
-
|
|
2687
|
+
import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2523
2688
|
ColorInput = (props) => {
|
|
2524
2689
|
const [color, setColor] = import_react32.default.useState("#3b82f6");
|
|
2525
2690
|
(0, import_react32.useEffect)(() => {
|
|
@@ -2541,11 +2706,11 @@ var init_ColorInput = __esm({
|
|
|
2541
2706
|
});
|
|
2542
2707
|
}
|
|
2543
2708
|
};
|
|
2544
|
-
return /* @__PURE__ */ (0,
|
|
2545
|
-
/* @__PURE__ */ (0,
|
|
2709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("label", { className: "block mb-1", children: [
|
|
2710
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
2546
2711
|
" ",
|
|
2547
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2548
|
-
/* @__PURE__ */ (0,
|
|
2712
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2713
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2549
2714
|
"input",
|
|
2550
2715
|
{
|
|
2551
2716
|
type: "color",
|
|
@@ -2558,7 +2723,7 @@ var init_ColorInput = __esm({
|
|
|
2558
2723
|
className: `w-[78px] h-12 block cursor-pointer`
|
|
2559
2724
|
}
|
|
2560
2725
|
),
|
|
2561
|
-
props?.attributes?.errorMessage && /* @__PURE__ */ (0,
|
|
2726
|
+
props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
|
|
2562
2727
|
] });
|
|
2563
2728
|
};
|
|
2564
2729
|
ColorInput_default = ColorInput;
|
|
@@ -2566,13 +2731,13 @@ var init_ColorInput = __esm({
|
|
|
2566
2731
|
});
|
|
2567
2732
|
|
|
2568
2733
|
// src/components/controls/edit/SelectWithSearchInput.tsx
|
|
2569
|
-
var import_react33,
|
|
2734
|
+
var import_react33, import_jsx_runtime40, SelectWithSearchInput, SelectWithSearchInput_default;
|
|
2570
2735
|
var init_SelectWithSearchInput = __esm({
|
|
2571
2736
|
"src/components/controls/edit/SelectWithSearchInput.tsx"() {
|
|
2572
2737
|
"use strict";
|
|
2573
2738
|
"use client";
|
|
2574
2739
|
import_react33 = __toESM(require("react"));
|
|
2575
|
-
|
|
2740
|
+
import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2576
2741
|
SelectWithSearchInput = (props) => {
|
|
2577
2742
|
const [isOpen, setIsOpen] = (0, import_react33.useState)(false);
|
|
2578
2743
|
const [searchTerm, setSearchTerm] = (0, import_react33.useState)("");
|
|
@@ -2667,14 +2832,14 @@ var init_SelectWithSearchInput = __esm({
|
|
|
2667
2832
|
}
|
|
2668
2833
|
}, [highlightedIndex]);
|
|
2669
2834
|
const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
|
|
2670
|
-
return /* @__PURE__ */ (0,
|
|
2671
|
-
/* @__PURE__ */ (0,
|
|
2835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative", children: [
|
|
2836
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("label", { className: "pb-1", children: [
|
|
2672
2837
|
props.attributes?.label,
|
|
2673
2838
|
" ",
|
|
2674
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2839
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
2675
2840
|
] }),
|
|
2676
|
-
/* @__PURE__ */ (0,
|
|
2677
|
-
/* @__PURE__ */ (0,
|
|
2841
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative", children: [
|
|
2842
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2678
2843
|
"input",
|
|
2679
2844
|
{
|
|
2680
2845
|
type: "text",
|
|
@@ -2696,7 +2861,7 @@ var init_SelectWithSearchInput = __esm({
|
|
|
2696
2861
|
`
|
|
2697
2862
|
}
|
|
2698
2863
|
),
|
|
2699
|
-
/* @__PURE__ */ (0,
|
|
2864
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2700
2865
|
"button",
|
|
2701
2866
|
{
|
|
2702
2867
|
type: "button",
|
|
@@ -2707,7 +2872,7 @@ var init_SelectWithSearchInput = __esm({
|
|
|
2707
2872
|
}
|
|
2708
2873
|
},
|
|
2709
2874
|
className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
|
|
2710
|
-
children: /* @__PURE__ */ (0,
|
|
2875
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2711
2876
|
"svg",
|
|
2712
2877
|
{
|
|
2713
2878
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2716,7 +2881,7 @@ var init_SelectWithSearchInput = __esm({
|
|
|
2716
2881
|
strokeWidth: 1.5,
|
|
2717
2882
|
stroke: "currentColor",
|
|
2718
2883
|
className: "w-full h-full",
|
|
2719
|
-
children: /* @__PURE__ */ (0,
|
|
2884
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2720
2885
|
"path",
|
|
2721
2886
|
{
|
|
2722
2887
|
strokeLinecap: "round",
|
|
@@ -2729,12 +2894,12 @@ var init_SelectWithSearchInput = __esm({
|
|
|
2729
2894
|
}
|
|
2730
2895
|
)
|
|
2731
2896
|
] }),
|
|
2732
|
-
!isReadOnly && isOpen && /* @__PURE__ */ (0,
|
|
2897
|
+
!isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2733
2898
|
"div",
|
|
2734
2899
|
{
|
|
2735
2900
|
ref: dropdownRef,
|
|
2736
2901
|
className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
|
|
2737
|
-
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0,
|
|
2902
|
+
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2738
2903
|
"button",
|
|
2739
2904
|
{
|
|
2740
2905
|
onClick: (e) => handleSelect(e, item),
|
|
@@ -2742,10 +2907,10 @@ var init_SelectWithSearchInput = __esm({
|
|
|
2742
2907
|
role: "option",
|
|
2743
2908
|
tabIndex: -1,
|
|
2744
2909
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
2745
|
-
children: /* @__PURE__ */ (0,
|
|
2910
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: item[props.dataTextFieldName] })
|
|
2746
2911
|
},
|
|
2747
2912
|
item[props.dataKeyFieldName]
|
|
2748
|
-
)) : /* @__PURE__ */ (0,
|
|
2913
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
|
|
2749
2914
|
}
|
|
2750
2915
|
)
|
|
2751
2916
|
] });
|
|
@@ -2833,7 +2998,7 @@ var init_StyleTypes = __esm({
|
|
|
2833
2998
|
});
|
|
2834
2999
|
|
|
2835
3000
|
// src/components/ClientButton.tsx
|
|
2836
|
-
var import_react34,
|
|
3001
|
+
var import_react34, import_jsx_runtime41, ClientButton, ClientButton_default;
|
|
2837
3002
|
var init_ClientButton = __esm({
|
|
2838
3003
|
"src/components/ClientButton.tsx"() {
|
|
2839
3004
|
"use strict";
|
|
@@ -2841,7 +3006,7 @@ var init_ClientButton = __esm({
|
|
|
2841
3006
|
import_react34 = __toESM(require("react"));
|
|
2842
3007
|
init_ToastService();
|
|
2843
3008
|
init_StyleTypes();
|
|
2844
|
-
|
|
3009
|
+
import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2845
3010
|
ClientButton = (props) => {
|
|
2846
3011
|
const execute = async (event) => {
|
|
2847
3012
|
if (props.onClick !== void 0) {
|
|
@@ -2851,7 +3016,7 @@ var init_ClientButton = __esm({
|
|
|
2851
3016
|
}
|
|
2852
3017
|
};
|
|
2853
3018
|
let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
|
|
2854
|
-
return /* @__PURE__ */ (0,
|
|
3019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2855
3020
|
"button",
|
|
2856
3021
|
{
|
|
2857
3022
|
type: "button",
|
|
@@ -2866,7 +3031,7 @@ var init_ClientButton = __esm({
|
|
|
2866
3031
|
});
|
|
2867
3032
|
|
|
2868
3033
|
// src/components/Confirm.tsx
|
|
2869
|
-
var import_react35,
|
|
3034
|
+
var import_react35, import_jsx_runtime42, Confirm, Confirm_default;
|
|
2870
3035
|
var init_Confirm = __esm({
|
|
2871
3036
|
"src/components/Confirm.tsx"() {
|
|
2872
3037
|
"use strict";
|
|
@@ -2874,7 +3039,7 @@ var init_Confirm = __esm({
|
|
|
2874
3039
|
import_react35 = require("react");
|
|
2875
3040
|
init_ClientButton();
|
|
2876
3041
|
init_StyleTypes();
|
|
2877
|
-
|
|
3042
|
+
import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2878
3043
|
Confirm = ({ message, onConfirm, onCancel }) => {
|
|
2879
3044
|
const [showModal, setShowModal] = (0, import_react35.useState)(true);
|
|
2880
3045
|
const handleConfirmAction = () => {
|
|
@@ -2889,13 +3054,13 @@ var init_Confirm = __esm({
|
|
|
2889
3054
|
onCancel();
|
|
2890
3055
|
}
|
|
2891
3056
|
};
|
|
2892
|
-
return /* @__PURE__ */ (0,
|
|
2893
|
-
/* @__PURE__ */ (0,
|
|
2894
|
-
/* @__PURE__ */ (0,
|
|
2895
|
-
/* @__PURE__ */ (0,
|
|
2896
|
-
/* @__PURE__ */ (0,
|
|
2897
|
-
/* @__PURE__ */ (0,
|
|
2898
|
-
/* @__PURE__ */ (0,
|
|
3057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: showModal && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
|
|
3058
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
|
|
3059
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
|
|
3060
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
|
|
3061
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "mb-4", children: message }),
|
|
3062
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex justify-end gap-8", children: [
|
|
3063
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2899
3064
|
ClientButton_default,
|
|
2900
3065
|
{
|
|
2901
3066
|
onClick: handleCancelAction,
|
|
@@ -2903,7 +3068,7 @@ var init_Confirm = __esm({
|
|
|
2903
3068
|
children: "Cancel"
|
|
2904
3069
|
}
|
|
2905
3070
|
),
|
|
2906
|
-
/* @__PURE__ */ (0,
|
|
3071
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2907
3072
|
ClientButton_default,
|
|
2908
3073
|
{
|
|
2909
3074
|
onClick: handleConfirmAction,
|
|
@@ -2921,7 +3086,7 @@ var init_Confirm = __esm({
|
|
|
2921
3086
|
});
|
|
2922
3087
|
|
|
2923
3088
|
// src/components/Button.tsx
|
|
2924
|
-
var import_react36,
|
|
3089
|
+
var import_react36, import_jsx_runtime43, Button, Button_default;
|
|
2925
3090
|
var init_Button = __esm({
|
|
2926
3091
|
"src/components/Button.tsx"() {
|
|
2927
3092
|
"use strict";
|
|
@@ -2930,7 +3095,7 @@ var init_Button = __esm({
|
|
|
2930
3095
|
init_ToastService();
|
|
2931
3096
|
init_StyleTypes();
|
|
2932
3097
|
init_Confirm();
|
|
2933
|
-
|
|
3098
|
+
import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2934
3099
|
Button = (props) => {
|
|
2935
3100
|
const [inProgress, setInProgress] = (0, import_react36.useState)(false);
|
|
2936
3101
|
const [isActionPerformed, setIsActionPerformed] = (0, import_react36.useState)(false);
|
|
@@ -2984,7 +3149,7 @@ var init_Button = __esm({
|
|
|
2984
3149
|
const onConfirm = () => resolve(true);
|
|
2985
3150
|
const onCancel = () => resolve(false);
|
|
2986
3151
|
setShowModal(
|
|
2987
|
-
/* @__PURE__ */ (0,
|
|
3152
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2988
3153
|
Confirm_default,
|
|
2989
3154
|
{
|
|
2990
3155
|
message: props.confirmationMessage,
|
|
@@ -2998,8 +3163,8 @@ var init_Button = __esm({
|
|
|
2998
3163
|
let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
|
|
2999
3164
|
let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
|
|
3000
3165
|
const isDisabled = inProgress || isActionPerformed && props.oneTimeAction;
|
|
3001
|
-
return /* @__PURE__ */ (0,
|
|
3002
|
-
/* @__PURE__ */ (0,
|
|
3166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react36.default.Fragment, { children: [
|
|
3167
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3003
3168
|
"button",
|
|
3004
3169
|
{
|
|
3005
3170
|
type: "submit",
|
|
@@ -3009,7 +3174,7 @@ var init_Button = __esm({
|
|
|
3009
3174
|
className: `${buttonClass} relative inline-flex items-center justify-center gap-2 ${props.className ?? ""}`,
|
|
3010
3175
|
children: [
|
|
3011
3176
|
isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
|
|
3012
|
-
inProgress && /* @__PURE__ */ (0,
|
|
3177
|
+
inProgress && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_jsx_runtime43.Fragment, { children: props.hideProgressIndicator ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3013
3178
|
"svg",
|
|
3014
3179
|
{
|
|
3015
3180
|
className: `animate-spin h-5 w-5 flex-shrink-0 ${progressClass}`,
|
|
@@ -3017,7 +3182,7 @@ var init_Button = __esm({
|
|
|
3017
3182
|
fill: "none",
|
|
3018
3183
|
viewBox: "0 0 24 24",
|
|
3019
3184
|
children: [
|
|
3020
|
-
/* @__PURE__ */ (0,
|
|
3185
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3021
3186
|
"circle",
|
|
3022
3187
|
{
|
|
3023
3188
|
className: "opacity-25",
|
|
@@ -3028,7 +3193,7 @@ var init_Button = __esm({
|
|
|
3028
3193
|
strokeWidth: "4"
|
|
3029
3194
|
}
|
|
3030
3195
|
),
|
|
3031
|
-
/* @__PURE__ */ (0,
|
|
3196
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3032
3197
|
"path",
|
|
3033
3198
|
{
|
|
3034
3199
|
className: "opacity-75",
|
|
@@ -3050,14 +3215,14 @@ var init_Button = __esm({
|
|
|
3050
3215
|
});
|
|
3051
3216
|
|
|
3052
3217
|
// src/components/controls/edit/SelectWithSearchPanel.tsx
|
|
3053
|
-
var import_react37,
|
|
3218
|
+
var import_react37, import_jsx_runtime44, SelectWithSearchPanel, SelectWithSearchPanel_default;
|
|
3054
3219
|
var init_SelectWithSearchPanel = __esm({
|
|
3055
3220
|
"src/components/controls/edit/SelectWithSearchPanel.tsx"() {
|
|
3056
3221
|
"use strict";
|
|
3057
3222
|
"use client";
|
|
3058
3223
|
init_Button();
|
|
3059
3224
|
import_react37 = __toESM(require("react"));
|
|
3060
|
-
|
|
3225
|
+
import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3061
3226
|
SelectWithSearchPanel = (props) => {
|
|
3062
3227
|
const [isOpen, setIsOpen] = (0, import_react37.useState)(false);
|
|
3063
3228
|
const [searchTerm, setSearchTerm] = (0, import_react37.useState)("");
|
|
@@ -3193,14 +3358,14 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3193
3358
|
console.log("Form Data:", formData);
|
|
3194
3359
|
return formData;
|
|
3195
3360
|
}, []);
|
|
3196
|
-
return /* @__PURE__ */ (0,
|
|
3197
|
-
/* @__PURE__ */ (0,
|
|
3361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "relative", children: [
|
|
3362
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
|
|
3198
3363
|
props.attributes?.label,
|
|
3199
3364
|
" ",
|
|
3200
3365
|
" ",
|
|
3201
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3366
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
3202
3367
|
] }),
|
|
3203
|
-
/* @__PURE__ */ (0,
|
|
3368
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3204
3369
|
"input",
|
|
3205
3370
|
{
|
|
3206
3371
|
type: "text",
|
|
@@ -3214,14 +3379,14 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3214
3379
|
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
|
|
3215
3380
|
}
|
|
3216
3381
|
) }),
|
|
3217
|
-
/* @__PURE__ */ (0,
|
|
3218
|
-
/* @__PURE__ */ (0,
|
|
3219
|
-
/* @__PURE__ */ (0,
|
|
3382
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react37.default.Fragment, { children: [
|
|
3383
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
|
|
3384
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("h5", { className: "text-md text-white font-medium", children: [
|
|
3220
3385
|
"Select a",
|
|
3221
3386
|
" ",
|
|
3222
3387
|
props.attributes?.label || props.attributes?.heading
|
|
3223
3388
|
] }) }),
|
|
3224
|
-
/* @__PURE__ */ (0,
|
|
3389
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3225
3390
|
"button",
|
|
3226
3391
|
{
|
|
3227
3392
|
type: "button",
|
|
@@ -3234,12 +3399,12 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3234
3399
|
}
|
|
3235
3400
|
) })
|
|
3236
3401
|
] }),
|
|
3237
|
-
isCreateOpen && /* @__PURE__ */ (0,
|
|
3238
|
-
/* @__PURE__ */ (0,
|
|
3402
|
+
isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
|
|
3403
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("h5", { className: "text-md font-medium text-white", children: [
|
|
3239
3404
|
"Create New ",
|
|
3240
3405
|
props.attributes?.label
|
|
3241
3406
|
] }) }),
|
|
3242
|
-
/* @__PURE__ */ (0,
|
|
3407
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3243
3408
|
"button",
|
|
3244
3409
|
{
|
|
3245
3410
|
type: "button",
|
|
@@ -3248,10 +3413,10 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3248
3413
|
children: "Close"
|
|
3249
3414
|
}
|
|
3250
3415
|
) }),
|
|
3251
|
-
/* @__PURE__ */ (0,
|
|
3252
|
-
props.createFields?.map((field) => /* @__PURE__ */ (0,
|
|
3253
|
-
/* @__PURE__ */ (0,
|
|
3254
|
-
/* @__PURE__ */ (0,
|
|
3416
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "p-4", children: [
|
|
3417
|
+
props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "mb-4", children: [
|
|
3418
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
|
|
3419
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3255
3420
|
"input",
|
|
3256
3421
|
{
|
|
3257
3422
|
type: field.type,
|
|
@@ -3267,7 +3432,7 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3267
3432
|
}
|
|
3268
3433
|
)
|
|
3269
3434
|
] }, field.name)),
|
|
3270
|
-
/* @__PURE__ */ (0,
|
|
3435
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Button_default, { onClick: async () => {
|
|
3271
3436
|
handleSaveModal();
|
|
3272
3437
|
return { isSuccessful: true };
|
|
3273
3438
|
}, className: "w-full", children: [
|
|
@@ -3276,13 +3441,13 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3276
3441
|
] })
|
|
3277
3442
|
] })
|
|
3278
3443
|
] }),
|
|
3279
|
-
/* @__PURE__ */ (0,
|
|
3444
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3280
3445
|
"div",
|
|
3281
3446
|
{
|
|
3282
3447
|
ref: listRef,
|
|
3283
3448
|
className: "fixed z-10 right-0 mt-[130px] top-0 w-1/4 bg-white border-l border-gray-200 shadow-lg overflow-y-auto",
|
|
3284
3449
|
style: { height: "calc(100vh - 130px)" },
|
|
3285
|
-
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0,
|
|
3450
|
+
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3286
3451
|
"button",
|
|
3287
3452
|
{
|
|
3288
3453
|
onClick: (e) => {
|
|
@@ -3292,9 +3457,9 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3292
3457
|
role: "option",
|
|
3293
3458
|
tabIndex: -1,
|
|
3294
3459
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
3295
|
-
children: /* @__PURE__ */ (0,
|
|
3460
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
|
|
3296
3461
|
}
|
|
3297
|
-
) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0,
|
|
3462
|
+
) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
|
|
3298
3463
|
}
|
|
3299
3464
|
)
|
|
3300
3465
|
] }) })
|
|
@@ -3305,12 +3470,12 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
3305
3470
|
});
|
|
3306
3471
|
|
|
3307
3472
|
// src/components/controls/edit/BooleanSelect.tsx
|
|
3308
|
-
var import_react38,
|
|
3473
|
+
var import_react38, import_jsx_runtime45, BooleanSelect, BooleanSelect_default;
|
|
3309
3474
|
var init_BooleanSelect = __esm({
|
|
3310
3475
|
"src/components/controls/edit/BooleanSelect.tsx"() {
|
|
3311
3476
|
"use strict";
|
|
3312
3477
|
import_react38 = __toESM(require("react"));
|
|
3313
|
-
|
|
3478
|
+
import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3314
3479
|
BooleanSelect = (props) => {
|
|
3315
3480
|
const [list, setList] = (0, import_react38.useState)();
|
|
3316
3481
|
const textChangeHandler = (event) => {
|
|
@@ -3359,11 +3524,11 @@ var init_BooleanSelect = __esm({
|
|
|
3359
3524
|
if (props.value !== void 0 && props.value !== null) {
|
|
3360
3525
|
value = props.value;
|
|
3361
3526
|
}
|
|
3362
|
-
return /* @__PURE__ */ (0,
|
|
3363
|
-
/* @__PURE__ */ (0,
|
|
3527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("label", { className: "block", children: [
|
|
3528
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
3364
3529
|
" ",
|
|
3365
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3366
|
-
/* @__PURE__ */ (0,
|
|
3530
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3531
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3367
3532
|
"select",
|
|
3368
3533
|
{
|
|
3369
3534
|
name: props.name,
|
|
@@ -3375,9 +3540,9 @@ var init_BooleanSelect = __esm({
|
|
|
3375
3540
|
disabled: props?.attributes?.readOnly,
|
|
3376
3541
|
className: "peer mt-1 py-1.5 block w-full text-black rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n ",
|
|
3377
3542
|
children: [
|
|
3378
|
-
/* @__PURE__ */ (0,
|
|
3543
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
|
|
3379
3544
|
list && list.map((item, i) => {
|
|
3380
|
-
return /* @__PURE__ */ (0,
|
|
3545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3381
3546
|
"option",
|
|
3382
3547
|
{
|
|
3383
3548
|
className: "fac-select-option",
|
|
@@ -3390,7 +3555,7 @@ var init_BooleanSelect = __esm({
|
|
|
3390
3555
|
]
|
|
3391
3556
|
}
|
|
3392
3557
|
),
|
|
3393
|
-
/* @__PURE__ */ (0,
|
|
3558
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
3394
3559
|
] }) });
|
|
3395
3560
|
};
|
|
3396
3561
|
BooleanSelect_default = BooleanSelect;
|
|
@@ -3398,12 +3563,12 @@ var init_BooleanSelect = __esm({
|
|
|
3398
3563
|
});
|
|
3399
3564
|
|
|
3400
3565
|
// src/components/controls/edit/EmailInput.tsx
|
|
3401
|
-
var import_react39,
|
|
3566
|
+
var import_react39, import_jsx_runtime46, EmailInput, EmailInput_default;
|
|
3402
3567
|
var init_EmailInput = __esm({
|
|
3403
3568
|
"src/components/controls/edit/EmailInput.tsx"() {
|
|
3404
3569
|
"use strict";
|
|
3405
3570
|
import_react39 = __toESM(require("react"));
|
|
3406
|
-
|
|
3571
|
+
import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3407
3572
|
EmailInput = (props) => {
|
|
3408
3573
|
const textChangeHandler = (event) => {
|
|
3409
3574
|
const text = event.target.value;
|
|
@@ -3428,11 +3593,11 @@ var init_EmailInput = __esm({
|
|
|
3428
3593
|
if (props.value !== void 0 && props.value !== null) {
|
|
3429
3594
|
value = props.value;
|
|
3430
3595
|
}
|
|
3431
|
-
return /* @__PURE__ */ (0,
|
|
3432
|
-
/* @__PURE__ */ (0,
|
|
3596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { className: "block mb-1", children: [
|
|
3597
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
|
|
3433
3598
|
" ",
|
|
3434
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3435
|
-
/* @__PURE__ */ (0,
|
|
3599
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3600
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3436
3601
|
"input",
|
|
3437
3602
|
{
|
|
3438
3603
|
type: "email",
|
|
@@ -3448,7 +3613,7 @@ var init_EmailInput = __esm({
|
|
|
3448
3613
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
|
|
3449
3614
|
}
|
|
3450
3615
|
),
|
|
3451
|
-
/* @__PURE__ */ (0,
|
|
3616
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
3452
3617
|
] }) });
|
|
3453
3618
|
};
|
|
3454
3619
|
EmailInput_default = EmailInput;
|
|
@@ -3456,13 +3621,13 @@ var init_EmailInput = __esm({
|
|
|
3456
3621
|
});
|
|
3457
3622
|
|
|
3458
3623
|
// src/components/controls/edit/TimeInput.tsx
|
|
3459
|
-
var import_react40,
|
|
3624
|
+
var import_react40, import_jsx_runtime47, TimeInput, TimeInput_default;
|
|
3460
3625
|
var init_TimeInput = __esm({
|
|
3461
3626
|
"src/components/controls/edit/TimeInput.tsx"() {
|
|
3462
3627
|
"use strict";
|
|
3463
3628
|
"use client";
|
|
3464
3629
|
import_react40 = __toESM(require("react"));
|
|
3465
|
-
|
|
3630
|
+
import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3466
3631
|
TimeInput = (props) => {
|
|
3467
3632
|
const timeChangeHandler = (event) => {
|
|
3468
3633
|
const timeValue = event.target.value;
|
|
@@ -3475,11 +3640,11 @@ var init_TimeInput = __esm({
|
|
|
3475
3640
|
});
|
|
3476
3641
|
}
|
|
3477
3642
|
};
|
|
3478
|
-
return /* @__PURE__ */ (0,
|
|
3479
|
-
/* @__PURE__ */ (0,
|
|
3643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { className: "block mb-1", children: [
|
|
3644
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
3480
3645
|
" ",
|
|
3481
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3482
|
-
/* @__PURE__ */ (0,
|
|
3646
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3647
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3483
3648
|
"input",
|
|
3484
3649
|
{
|
|
3485
3650
|
type: "time",
|
|
@@ -3492,7 +3657,7 @@ var init_TimeInput = __esm({
|
|
|
3492
3657
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none"
|
|
3493
3658
|
}
|
|
3494
3659
|
) }),
|
|
3495
|
-
/* @__PURE__ */ (0,
|
|
3660
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
|
|
3496
3661
|
] }) });
|
|
3497
3662
|
};
|
|
3498
3663
|
TimeInput_default = TimeInput;
|
|
@@ -3507,7 +3672,7 @@ function Hyperlink(props) {
|
|
|
3507
3672
|
if (target == "_blank") {
|
|
3508
3673
|
additionalProps.rel = "noopener noreferrer";
|
|
3509
3674
|
}
|
|
3510
|
-
return /* @__PURE__ */ (0,
|
|
3675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3511
3676
|
import_link.default,
|
|
3512
3677
|
{
|
|
3513
3678
|
href: props.href,
|
|
@@ -3517,65 +3682,65 @@ function Hyperlink(props) {
|
|
|
3517
3682
|
target,
|
|
3518
3683
|
children: props.children
|
|
3519
3684
|
}
|
|
3520
|
-
) : props.isHeading ? /* @__PURE__ */ (0,
|
|
3685
|
+
) : props.isHeading ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: props.className, children: props.children }) });
|
|
3521
3686
|
}
|
|
3522
|
-
var import_link,
|
|
3687
|
+
var import_link, import_jsx_runtime48;
|
|
3523
3688
|
var init_Hyperlink = __esm({
|
|
3524
3689
|
"src/components/dataForm/Hyperlink.tsx"() {
|
|
3525
3690
|
"use strict";
|
|
3526
3691
|
import_link = __toESM(require("next/link"));
|
|
3527
3692
|
init_StyleTypes();
|
|
3528
|
-
|
|
3693
|
+
import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3529
3694
|
}
|
|
3530
3695
|
});
|
|
3531
3696
|
|
|
3532
3697
|
// src/svg/chevron-updown.tsx
|
|
3533
|
-
var
|
|
3698
|
+
var import_jsx_runtime49, ChevronUpDown, chevron_updown_default;
|
|
3534
3699
|
var init_chevron_updown = __esm({
|
|
3535
3700
|
"src/svg/chevron-updown.tsx"() {
|
|
3536
3701
|
"use strict";
|
|
3537
|
-
|
|
3702
|
+
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3538
3703
|
ChevronUpDown = (props) => {
|
|
3539
|
-
return /* @__PURE__ */ (0,
|
|
3704
|
+
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: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
|
|
3540
3705
|
};
|
|
3541
3706
|
chevron_updown_default = ChevronUpDown;
|
|
3542
3707
|
}
|
|
3543
3708
|
});
|
|
3544
3709
|
|
|
3545
3710
|
// src/svg/chevron-down.tsx
|
|
3546
|
-
var
|
|
3711
|
+
var import_jsx_runtime50, ChevronDown, chevron_down_default;
|
|
3547
3712
|
var init_chevron_down = __esm({
|
|
3548
3713
|
"src/svg/chevron-down.tsx"() {
|
|
3549
3714
|
"use strict";
|
|
3550
|
-
|
|
3715
|
+
import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3551
3716
|
ChevronDown = (props) => {
|
|
3552
|
-
return /* @__PURE__ */ (0,
|
|
3717
|
+
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: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
|
|
3553
3718
|
};
|
|
3554
3719
|
chevron_down_default = ChevronDown;
|
|
3555
3720
|
}
|
|
3556
3721
|
});
|
|
3557
3722
|
|
|
3558
3723
|
// src/svg/chevron-up.tsx
|
|
3559
|
-
var
|
|
3724
|
+
var import_jsx_runtime51, ChevronUp, chevron_up_default;
|
|
3560
3725
|
var init_chevron_up = __esm({
|
|
3561
3726
|
"src/svg/chevron-up.tsx"() {
|
|
3562
3727
|
"use strict";
|
|
3563
|
-
|
|
3728
|
+
import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3564
3729
|
ChevronUp = (props) => {
|
|
3565
|
-
return /* @__PURE__ */ (0,
|
|
3730
|
+
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: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
|
|
3566
3731
|
};
|
|
3567
3732
|
chevron_up_default = ChevronUp;
|
|
3568
3733
|
}
|
|
3569
3734
|
});
|
|
3570
3735
|
|
|
3571
3736
|
// src/svg/plus.tsx
|
|
3572
|
-
var
|
|
3737
|
+
var import_jsx_runtime52, Plus, plus_default;
|
|
3573
3738
|
var init_plus = __esm({
|
|
3574
3739
|
"src/svg/plus.tsx"() {
|
|
3575
3740
|
"use strict";
|
|
3576
|
-
|
|
3741
|
+
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3577
3742
|
Plus = (props) => {
|
|
3578
|
-
return /* @__PURE__ */ (0,
|
|
3743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.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_runtime52.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
|
|
3579
3744
|
};
|
|
3580
3745
|
plus_default = Plus;
|
|
3581
3746
|
}
|
|
@@ -3601,26 +3766,26 @@ var init_Icons = __esm({
|
|
|
3601
3766
|
});
|
|
3602
3767
|
|
|
3603
3768
|
// src/svg/Icon.tsx
|
|
3604
|
-
var
|
|
3769
|
+
var import_jsx_runtime53, Icon, Icon_default;
|
|
3605
3770
|
var init_Icon = __esm({
|
|
3606
3771
|
"src/svg/Icon.tsx"() {
|
|
3607
3772
|
"use strict";
|
|
3608
3773
|
init_Icons();
|
|
3609
|
-
|
|
3774
|
+
import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3610
3775
|
Icon = ({ name, className, ...props }) => {
|
|
3611
3776
|
const IconComponent = Icons_default[name];
|
|
3612
3777
|
if (!IconComponent) {
|
|
3613
3778
|
console.error(`Icon "${name}" not found.`);
|
|
3614
3779
|
return null;
|
|
3615
3780
|
}
|
|
3616
|
-
return /* @__PURE__ */ (0,
|
|
3781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(IconComponent, { ...props, className });
|
|
3617
3782
|
};
|
|
3618
3783
|
Icon_default = Icon;
|
|
3619
3784
|
}
|
|
3620
3785
|
});
|
|
3621
3786
|
|
|
3622
3787
|
// src/components/controls/edit/AssetUpload.tsx
|
|
3623
|
-
var import_react41,
|
|
3788
|
+
var import_react41, import_jsx_runtime54, AssetUpload, AssetUpload_default;
|
|
3624
3789
|
var init_AssetUpload = __esm({
|
|
3625
3790
|
"src/components/controls/edit/AssetUpload.tsx"() {
|
|
3626
3791
|
"use strict";
|
|
@@ -3631,7 +3796,7 @@ var init_AssetUpload = __esm({
|
|
|
3631
3796
|
init_AssetUtility();
|
|
3632
3797
|
init_Hyperlink();
|
|
3633
3798
|
init_Icon();
|
|
3634
|
-
|
|
3799
|
+
import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3635
3800
|
AssetUpload = (props) => {
|
|
3636
3801
|
const isDisabled = props.attributes?.disable ?? false;
|
|
3637
3802
|
let allValues = [];
|
|
@@ -3728,10 +3893,10 @@ var init_AssetUpload = __esm({
|
|
|
3728
3893
|
}
|
|
3729
3894
|
return false;
|
|
3730
3895
|
};
|
|
3731
|
-
return /* @__PURE__ */ (0,
|
|
3732
|
-
/* @__PURE__ */ (0,
|
|
3733
|
-
/* @__PURE__ */ (0,
|
|
3734
|
-
/* @__PURE__ */ (0,
|
|
3896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_react41.default.Fragment, { children: [
|
|
3897
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
|
|
3898
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
|
|
3899
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3735
3900
|
ClientButton_default,
|
|
3736
3901
|
{
|
|
3737
3902
|
className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
|
|
@@ -3741,7 +3906,7 @@ var init_AssetUpload = __esm({
|
|
|
3741
3906
|
children: "Image Upload"
|
|
3742
3907
|
}
|
|
3743
3908
|
),
|
|
3744
|
-
/* @__PURE__ */ (0,
|
|
3909
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3745
3910
|
ClientButton_default,
|
|
3746
3911
|
{
|
|
3747
3912
|
className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
|
|
@@ -3752,13 +3917,13 @@ var init_AssetUpload = __esm({
|
|
|
3752
3917
|
}
|
|
3753
3918
|
)
|
|
3754
3919
|
] }),
|
|
3755
|
-
shouldShowDetails() && /* @__PURE__ */ (0,
|
|
3756
|
-
/* @__PURE__ */ (0,
|
|
3757
|
-
/* @__PURE__ */ (0,
|
|
3758
|
-
/* @__PURE__ */ (0,
|
|
3759
|
-
/* @__PURE__ */ (0,
|
|
3760
|
-
/* @__PURE__ */ (0,
|
|
3761
|
-
/* @__PURE__ */ (0,
|
|
3920
|
+
shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
|
|
3921
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
|
|
3922
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
|
|
3923
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
|
|
3924
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { children: [
|
|
3925
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-gray-500", children: "Title" }),
|
|
3926
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3762
3927
|
"input",
|
|
3763
3928
|
{
|
|
3764
3929
|
type: "text",
|
|
@@ -3770,18 +3935,18 @@ var init_AssetUpload = __esm({
|
|
|
3770
3935
|
}
|
|
3771
3936
|
)
|
|
3772
3937
|
] }),
|
|
3773
|
-
digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0,
|
|
3774
|
-
/* @__PURE__ */ (0,
|
|
3775
|
-
/* @__PURE__ */ (0,
|
|
3938
|
+
digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { children: [
|
|
3939
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
|
|
3940
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
|
|
3776
3941
|
digitalAsset.intrinsicWidth,
|
|
3777
3942
|
"\xD7",
|
|
3778
3943
|
digitalAsset.intrinsicHeight
|
|
3779
3944
|
] })
|
|
3780
3945
|
] }),
|
|
3781
|
-
(digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0,
|
|
3782
|
-
/* @__PURE__ */ (0,
|
|
3783
|
-
/* @__PURE__ */ (0,
|
|
3784
|
-
getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0,
|
|
3946
|
+
(digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { children: [
|
|
3947
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
|
|
3948
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
|
|
3949
|
+
getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3785
3950
|
"img",
|
|
3786
3951
|
{
|
|
3787
3952
|
src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
|
|
@@ -3789,7 +3954,7 @@ var init_AssetUpload = __esm({
|
|
|
3789
3954
|
className: "w-32 h-auto object-cover rounded border p-1"
|
|
3790
3955
|
}
|
|
3791
3956
|
),
|
|
3792
|
-
getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0,
|
|
3957
|
+
getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3793
3958
|
"img",
|
|
3794
3959
|
{
|
|
3795
3960
|
src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
|
|
@@ -3799,9 +3964,9 @@ var init_AssetUpload = __esm({
|
|
|
3799
3964
|
)
|
|
3800
3965
|
] })
|
|
3801
3966
|
] }),
|
|
3802
|
-
digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0,
|
|
3803
|
-
/* @__PURE__ */ (0,
|
|
3804
|
-
/* @__PURE__ */ (0,
|
|
3967
|
+
digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "col-span-2", children: [
|
|
3968
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
|
|
3969
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3805
3970
|
Hyperlink,
|
|
3806
3971
|
{
|
|
3807
3972
|
href: digitalAsset.assetUrl,
|
|
@@ -3812,12 +3977,12 @@ var init_AssetUpload = __esm({
|
|
|
3812
3977
|
)
|
|
3813
3978
|
] })
|
|
3814
3979
|
] }),
|
|
3815
|
-
/* @__PURE__ */ (0,
|
|
3980
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3816
3981
|
"span",
|
|
3817
3982
|
{
|
|
3818
3983
|
onClick: () => !isDisabled && deleteFile(index),
|
|
3819
3984
|
className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
3820
|
-
children: /* @__PURE__ */ (0,
|
|
3985
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
|
|
3821
3986
|
}
|
|
3822
3987
|
)
|
|
3823
3988
|
] }, index)) })
|
|
@@ -3829,12 +3994,12 @@ var init_AssetUpload = __esm({
|
|
|
3829
3994
|
});
|
|
3830
3995
|
|
|
3831
3996
|
// src/components/controls/edit/SwitchInput.tsx
|
|
3832
|
-
var import_react42,
|
|
3997
|
+
var import_react42, import_jsx_runtime55, SwitchInput, SwitchInput_default;
|
|
3833
3998
|
var init_SwitchInput = __esm({
|
|
3834
3999
|
"src/components/controls/edit/SwitchInput.tsx"() {
|
|
3835
4000
|
"use strict";
|
|
3836
4001
|
import_react42 = __toESM(require("react"));
|
|
3837
|
-
|
|
4002
|
+
import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3838
4003
|
SwitchInput = (props) => {
|
|
3839
4004
|
const textChangeHandler = (event) => {
|
|
3840
4005
|
let text = event.target.checked;
|
|
@@ -3851,28 +4016,28 @@ var init_SwitchInput = __esm({
|
|
|
3851
4016
|
if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
|
|
3852
4017
|
value = true;
|
|
3853
4018
|
}
|
|
3854
|
-
return /* @__PURE__ */ (0,
|
|
3855
|
-
/* @__PURE__ */ (0,
|
|
3856
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
4019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
|
|
4020
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "min-w-0", children: [
|
|
4021
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
3857
4022
|
"label",
|
|
3858
4023
|
{
|
|
3859
4024
|
htmlFor: props.name,
|
|
3860
4025
|
className: "inline-block text-sm font-semibold text-slate-800",
|
|
3861
4026
|
children: [
|
|
3862
4027
|
props.attributes.label,
|
|
3863
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4028
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
3864
4029
|
]
|
|
3865
4030
|
}
|
|
3866
4031
|
),
|
|
3867
|
-
/* @__PURE__ */ (0,
|
|
4032
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
|
|
3868
4033
|
] }),
|
|
3869
|
-
/* @__PURE__ */ (0,
|
|
4034
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
3870
4035
|
"label",
|
|
3871
4036
|
{
|
|
3872
4037
|
htmlFor: props.name,
|
|
3873
4038
|
className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
|
|
3874
4039
|
children: [
|
|
3875
|
-
/* @__PURE__ */ (0,
|
|
4040
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3876
4041
|
"input",
|
|
3877
4042
|
{
|
|
3878
4043
|
type: "checkbox",
|
|
@@ -3885,13 +4050,13 @@ var init_SwitchInput = __esm({
|
|
|
3885
4050
|
className: "peer sr-only"
|
|
3886
4051
|
}
|
|
3887
4052
|
),
|
|
3888
|
-
/* @__PURE__ */ (0,
|
|
4053
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3889
4054
|
"div",
|
|
3890
4055
|
{
|
|
3891
4056
|
className: "h-6 w-11 rounded-full bg-slate-200 shadow-inner\n transition-colors duration-200 ease-in-out\n peer-checked:bg-blue-600\n peer-focus-visible:ring-2 peer-focus-visible:ring-blue-300 peer-focus-visible:ring-offset-2\n peer-disabled:bg-slate-100"
|
|
3892
4057
|
}
|
|
3893
4058
|
),
|
|
3894
|
-
/* @__PURE__ */ (0,
|
|
4059
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3895
4060
|
"div",
|
|
3896
4061
|
{
|
|
3897
4062
|
className: "absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-default shadow\n transition-transform duration-200 ease-in-out\n peer-checked:translate-x-5\n peer-disabled:bg-slate-50"
|
|
@@ -3989,13 +4154,13 @@ var init_DateTimeUtility = __esm({
|
|
|
3989
4154
|
});
|
|
3990
4155
|
|
|
3991
4156
|
// src/components/controls/edit/DateInput.tsx
|
|
3992
|
-
var import_react43,
|
|
4157
|
+
var import_react43, import_jsx_runtime56, DateInput, DateInput_default;
|
|
3993
4158
|
var init_DateInput = __esm({
|
|
3994
4159
|
"src/components/controls/edit/DateInput.tsx"() {
|
|
3995
4160
|
"use strict";
|
|
3996
4161
|
import_react43 = require("react");
|
|
3997
4162
|
init_DateTimeUtility();
|
|
3998
|
-
|
|
4163
|
+
import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3999
4164
|
DateInput = (props) => {
|
|
4000
4165
|
const value = (0, import_react43.useMemo)(() => {
|
|
4001
4166
|
if (props.value === void 0 || props.value === null || props.value === "") {
|
|
@@ -4029,11 +4194,11 @@ var init_DateInput = __esm({
|
|
|
4029
4194
|
groupKey: props.groupKey
|
|
4030
4195
|
});
|
|
4031
4196
|
};
|
|
4032
|
-
return /* @__PURE__ */ (0,
|
|
4033
|
-
props.attributes?.label && /* @__PURE__ */ (0,
|
|
4197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("label", { className: "block mb-1", children: [
|
|
4198
|
+
props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
|
|
4034
4199
|
" ",
|
|
4035
|
-
props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0,
|
|
4036
|
-
/* @__PURE__ */ (0,
|
|
4200
|
+
props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
4201
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4037
4202
|
"input",
|
|
4038
4203
|
{
|
|
4039
4204
|
type: "date",
|
|
@@ -4047,7 +4212,7 @@ var init_DateInput = __esm({
|
|
|
4047
4212
|
className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
|
|
4048
4213
|
}
|
|
4049
4214
|
),
|
|
4050
|
-
/* @__PURE__ */ (0,
|
|
4215
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
4051
4216
|
] });
|
|
4052
4217
|
};
|
|
4053
4218
|
DateInput_default = DateInput;
|
|
@@ -4055,13 +4220,13 @@ var init_DateInput = __esm({
|
|
|
4055
4220
|
});
|
|
4056
4221
|
|
|
4057
4222
|
// src/components/controls/edit/RadioInput.tsx
|
|
4058
|
-
var import_react44,
|
|
4223
|
+
var import_react44, import_jsx_runtime57, RadioInput, RadioInput_default;
|
|
4059
4224
|
var init_RadioInput = __esm({
|
|
4060
4225
|
"src/components/controls/edit/RadioInput.tsx"() {
|
|
4061
4226
|
"use strict";
|
|
4062
4227
|
import_react44 = require("react");
|
|
4063
4228
|
init_Icon();
|
|
4064
|
-
|
|
4229
|
+
import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4065
4230
|
RadioInput = (props) => {
|
|
4066
4231
|
const [list, setList] = (0, import_react44.useState)([]);
|
|
4067
4232
|
(0, import_react44.useEffect)(() => {
|
|
@@ -4106,22 +4271,22 @@ var init_RadioInput = __esm({
|
|
|
4106
4271
|
});
|
|
4107
4272
|
}
|
|
4108
4273
|
};
|
|
4109
|
-
return /* @__PURE__ */ (0,
|
|
4110
|
-
/* @__PURE__ */ (0,
|
|
4111
|
-
/* @__PURE__ */ (0,
|
|
4274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "block", children: [
|
|
4275
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
|
|
4276
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
|
|
4112
4277
|
const itemValue = item[props.dataKeyFieldName];
|
|
4113
4278
|
const isSelected = String(itemValue) === String(props.value ?? "");
|
|
4114
4279
|
const isRecommended = props.dataRecommendedValue !== void 0 && String(itemValue) === String(props.dataRecommendedValue);
|
|
4115
4280
|
const resultClassName = isSelected ? isRecommended ? "bg-success" : props.dataRecommendedValue ? "bg-alert" : "border-transparent" : "border-transparent";
|
|
4116
4281
|
const iconName = isSelected && props.dataRecommendedValue ? isRecommended ? "checkCircle" : "xCircle" : void 0;
|
|
4117
4282
|
const inputId = `${props.name}-${props.index ?? 0}-id-${index}`;
|
|
4118
|
-
return /* @__PURE__ */ (0,
|
|
4283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
4119
4284
|
"div",
|
|
4120
4285
|
{
|
|
4121
4286
|
className: `font-normal flex items-center justify-between gap-4 cursor-pointer border rounded p-2 ${resultClassName}`,
|
|
4122
4287
|
children: [
|
|
4123
|
-
/* @__PURE__ */ (0,
|
|
4124
|
-
/* @__PURE__ */ (0,
|
|
4288
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex gap-4 items-start", children: [
|
|
4289
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4125
4290
|
"input",
|
|
4126
4291
|
{
|
|
4127
4292
|
type: "radio",
|
|
@@ -4135,15 +4300,15 @@ var init_RadioInput = __esm({
|
|
|
4135
4300
|
required: props.attributes?.required
|
|
4136
4301
|
}
|
|
4137
4302
|
),
|
|
4138
|
-
/* @__PURE__ */ (0,
|
|
4303
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
|
|
4139
4304
|
] }),
|
|
4140
|
-
iconName && /* @__PURE__ */ (0,
|
|
4305
|
+
iconName && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
|
|
4141
4306
|
]
|
|
4142
4307
|
},
|
|
4143
4308
|
String(itemValue)
|
|
4144
4309
|
);
|
|
4145
4310
|
}) }),
|
|
4146
|
-
/* @__PURE__ */ (0,
|
|
4311
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
4147
4312
|
] });
|
|
4148
4313
|
};
|
|
4149
4314
|
RadioInput_default = RadioInput;
|
|
@@ -4151,12 +4316,12 @@ var init_RadioInput = __esm({
|
|
|
4151
4316
|
});
|
|
4152
4317
|
|
|
4153
4318
|
// src/components/controls/edit/Switcher.tsx
|
|
4154
|
-
var import_react45,
|
|
4319
|
+
var import_react45, import_jsx_runtime58, Switcher, Switcher_default;
|
|
4155
4320
|
var init_Switcher = __esm({
|
|
4156
4321
|
"src/components/controls/edit/Switcher.tsx"() {
|
|
4157
4322
|
"use strict";
|
|
4158
4323
|
import_react45 = require("react");
|
|
4159
|
-
|
|
4324
|
+
import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4160
4325
|
Switcher = (props) => {
|
|
4161
4326
|
const [list, setList] = (0, import_react45.useState)([]);
|
|
4162
4327
|
(0, import_react45.useEffect)(() => {
|
|
@@ -4200,9 +4365,9 @@ var init_Switcher = __esm({
|
|
|
4200
4365
|
});
|
|
4201
4366
|
};
|
|
4202
4367
|
const value = props.value === void 0 || props.value === null ? "" : String(props.value);
|
|
4203
|
-
return /* @__PURE__ */ (0,
|
|
4204
|
-
/* @__PURE__ */ (0,
|
|
4205
|
-
list.length === 0 ? /* @__PURE__ */ (0,
|
|
4368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("label", { className: "block mb-1", children: [
|
|
4369
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
|
|
4370
|
+
list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4206
4371
|
"input",
|
|
4207
4372
|
{
|
|
4208
4373
|
type: "text",
|
|
@@ -4215,7 +4380,7 @@ var init_Switcher = __esm({
|
|
|
4215
4380
|
disabled: props.attributes?.readOnly,
|
|
4216
4381
|
className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
|
|
4217
4382
|
}
|
|
4218
|
-
) : /* @__PURE__ */ (0,
|
|
4383
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4219
4384
|
"select",
|
|
4220
4385
|
{
|
|
4221
4386
|
name: props.name,
|
|
@@ -4226,8 +4391,8 @@ var init_Switcher = __esm({
|
|
|
4226
4391
|
disabled: props.attributes?.readOnly,
|
|
4227
4392
|
className: `peer select my-1 py-1 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`,
|
|
4228
4393
|
children: [
|
|
4229
|
-
/* @__PURE__ */ (0,
|
|
4230
|
-
list.map((item) => /* @__PURE__ */ (0,
|
|
4394
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
|
|
4395
|
+
list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4231
4396
|
"option",
|
|
4232
4397
|
{
|
|
4233
4398
|
value: item[props.dataKeyFieldName],
|
|
@@ -4238,7 +4403,7 @@ var init_Switcher = __esm({
|
|
|
4238
4403
|
]
|
|
4239
4404
|
}
|
|
4240
4405
|
),
|
|
4241
|
-
/* @__PURE__ */ (0,
|
|
4406
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
4242
4407
|
] });
|
|
4243
4408
|
};
|
|
4244
4409
|
Switcher_default = Switcher;
|
|
@@ -4246,14 +4411,14 @@ var init_Switcher = __esm({
|
|
|
4246
4411
|
});
|
|
4247
4412
|
|
|
4248
4413
|
// src/components/controls/edit/ReferenceInput.tsx
|
|
4249
|
-
var
|
|
4414
|
+
var import_jsx_runtime59, ReferenceInput, ReferenceInput_default;
|
|
4250
4415
|
var init_ReferenceInput = __esm({
|
|
4251
4416
|
"src/components/controls/edit/ReferenceInput.tsx"() {
|
|
4252
4417
|
"use strict";
|
|
4253
4418
|
init_SelectWithSearchInput();
|
|
4254
|
-
|
|
4419
|
+
import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4255
4420
|
ReferenceInput = (props) => {
|
|
4256
|
-
return /* @__PURE__ */ (0,
|
|
4421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectWithSearchInput_default, { ...props });
|
|
4257
4422
|
};
|
|
4258
4423
|
ReferenceInput_default = ReferenceInput;
|
|
4259
4424
|
}
|
|
@@ -4264,7 +4429,7 @@ var InputControlClient_exports = {};
|
|
|
4264
4429
|
__export(InputControlClient_exports, {
|
|
4265
4430
|
default: () => InputControlClient_default
|
|
4266
4431
|
});
|
|
4267
|
-
var import_react46,
|
|
4432
|
+
var import_react46, import_jsx_runtime60, InputControl, InputControlClient_default;
|
|
4268
4433
|
var init_InputControlClient = __esm({
|
|
4269
4434
|
"src/components/controls/edit/InputControlClient.tsx"() {
|
|
4270
4435
|
"use strict";
|
|
@@ -4293,7 +4458,7 @@ var init_InputControlClient = __esm({
|
|
|
4293
4458
|
init_RadioInput();
|
|
4294
4459
|
init_Switcher();
|
|
4295
4460
|
init_ReferenceInput();
|
|
4296
|
-
|
|
4461
|
+
import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4297
4462
|
InputControl = import_react46.default.forwardRef(
|
|
4298
4463
|
(props, ref) => {
|
|
4299
4464
|
const ControlComponents = {
|
|
@@ -4322,7 +4487,7 @@ var init_InputControlClient = __esm({
|
|
|
4322
4487
|
[InputControlType_default.referenceInput]: ReferenceInput_default
|
|
4323
4488
|
};
|
|
4324
4489
|
const SelectedControlComponent = ControlComponents[props.controlType];
|
|
4325
|
-
return /* @__PURE__ */ (0,
|
|
4490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react46.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
4326
4491
|
}
|
|
4327
4492
|
);
|
|
4328
4493
|
InputControl.displayName = "InputControl";
|
|
@@ -4578,7 +4743,7 @@ var LinkNodeButton_exports = {};
|
|
|
4578
4743
|
__export(LinkNodeButton_exports, {
|
|
4579
4744
|
default: () => LinkNodeButton_default
|
|
4580
4745
|
});
|
|
4581
|
-
var import_react47,
|
|
4746
|
+
var import_react47, import_jsx_runtime64, LinkNodeButton, LinkNodeButton_default;
|
|
4582
4747
|
var init_LinkNodeButton = __esm({
|
|
4583
4748
|
"src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
|
|
4584
4749
|
"use strict";
|
|
@@ -4587,7 +4752,7 @@ var init_LinkNodeButton = __esm({
|
|
|
4587
4752
|
init_Button();
|
|
4588
4753
|
init_ServiceClient();
|
|
4589
4754
|
init_ToastService();
|
|
4590
|
-
|
|
4755
|
+
import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4591
4756
|
LinkNodeButton = (props) => {
|
|
4592
4757
|
const { node, dataitem, children, linkText, linkType, linkUrl } = props;
|
|
4593
4758
|
const [isLoading, setIsLoading] = (0, import_react47.useState)(false);
|
|
@@ -4754,32 +4919,32 @@ var init_LinkNodeButton = __esm({
|
|
|
4754
4919
|
return children;
|
|
4755
4920
|
}
|
|
4756
4921
|
if (linkText) {
|
|
4757
|
-
return /* @__PURE__ */ (0,
|
|
4922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: linkText });
|
|
4758
4923
|
}
|
|
4759
4924
|
return node.title || "Button";
|
|
4760
4925
|
};
|
|
4761
4926
|
const fontSize = node.children?.[0]?.style?.match(/font-size:\s*([^;]+)/)?.[1];
|
|
4762
|
-
return /* @__PURE__ */ (0,
|
|
4927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4763
4928
|
Button_default,
|
|
4764
4929
|
{
|
|
4765
4930
|
ButtonType: linkType,
|
|
4766
4931
|
onClick,
|
|
4767
4932
|
disabled: isLoading || !!successMessage,
|
|
4768
4933
|
className: "w-full",
|
|
4769
|
-
children: successMessage ? /* @__PURE__ */ (0,
|
|
4934
|
+
children: successMessage ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4770
4935
|
"span",
|
|
4771
4936
|
{
|
|
4772
4937
|
style: fontSize ? { fontSize } : void 0,
|
|
4773
4938
|
className: "inline-flex items-center gap-2",
|
|
4774
4939
|
children: [
|
|
4775
|
-
/* @__PURE__ */ (0,
|
|
4940
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4776
4941
|
"svg",
|
|
4777
4942
|
{
|
|
4778
4943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4779
4944
|
viewBox: "0 0 20 20",
|
|
4780
4945
|
fill: "currentColor",
|
|
4781
4946
|
className: "w-5 h-5",
|
|
4782
|
-
children: /* @__PURE__ */ (0,
|
|
4947
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4783
4948
|
"path",
|
|
4784
4949
|
{
|
|
4785
4950
|
fillRule: "evenodd",
|
|
@@ -4789,7 +4954,7 @@ var init_LinkNodeButton = __esm({
|
|
|
4789
4954
|
)
|
|
4790
4955
|
}
|
|
4791
4956
|
),
|
|
4792
|
-
/* @__PURE__ */ (0,
|
|
4957
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: successMessage })
|
|
4793
4958
|
]
|
|
4794
4959
|
}
|
|
4795
4960
|
) : renderButtonContent()
|
|
@@ -4823,13 +4988,13 @@ function CopyButton({ text }) {
|
|
|
4823
4988
|
console.error("Failed to copy: ", err);
|
|
4824
4989
|
}
|
|
4825
4990
|
};
|
|
4826
|
-
return /* @__PURE__ */ (0,
|
|
4991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4827
4992
|
"button",
|
|
4828
4993
|
{
|
|
4829
4994
|
onClick: handleCopy,
|
|
4830
4995
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
4831
4996
|
children: [
|
|
4832
|
-
/* @__PURE__ */ (0,
|
|
4997
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4833
4998
|
"svg",
|
|
4834
4999
|
{
|
|
4835
5000
|
width: "16",
|
|
@@ -4837,7 +5002,7 @@ function CopyButton({ text }) {
|
|
|
4837
5002
|
viewBox: "0 0 24 24",
|
|
4838
5003
|
className: "w-4 h-4",
|
|
4839
5004
|
fill: "currentColor",
|
|
4840
|
-
children: /* @__PURE__ */ (0,
|
|
5005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4841
5006
|
"path",
|
|
4842
5007
|
{
|
|
4843
5008
|
fillRule: "evenodd",
|
|
@@ -4852,54 +5017,54 @@ function CopyButton({ text }) {
|
|
|
4852
5017
|
}
|
|
4853
5018
|
);
|
|
4854
5019
|
}
|
|
4855
|
-
var import_react54,
|
|
5020
|
+
var import_react54, import_jsx_runtime74;
|
|
4856
5021
|
var init_CopyButton = __esm({
|
|
4857
5022
|
"src/components/CopyButton.tsx"() {
|
|
4858
5023
|
"use strict";
|
|
4859
5024
|
"use client";
|
|
4860
5025
|
import_react54 = require("react");
|
|
4861
|
-
|
|
5026
|
+
import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4862
5027
|
}
|
|
4863
5028
|
});
|
|
4864
5029
|
|
|
4865
5030
|
// src/components/IFrameLoaderView.tsx
|
|
4866
|
-
var import_react57,
|
|
5031
|
+
var import_react57, import_jsx_runtime78, IFrameLoaderView, IFrameLoaderView_default;
|
|
4867
5032
|
var init_IFrameLoaderView = __esm({
|
|
4868
5033
|
"src/components/IFrameLoaderView.tsx"() {
|
|
4869
5034
|
"use strict";
|
|
4870
5035
|
import_react57 = __toESM(require("react"));
|
|
4871
|
-
|
|
5036
|
+
import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4872
5037
|
IFrameLoaderView = (props) => {
|
|
4873
|
-
return /* @__PURE__ */ (0,
|
|
4874
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
4875
|
-
/* @__PURE__ */ (0,
|
|
4876
|
-
/* @__PURE__ */ (0,
|
|
4877
|
-
/* @__PURE__ */ (0,
|
|
4878
|
-
/* @__PURE__ */ (0,
|
|
4879
|
-
/* @__PURE__ */ (0,
|
|
5038
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react57.default.Fragment, { children: [
|
|
5039
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
5040
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
5041
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
5042
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "ml-2", children: [
|
|
5043
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
5044
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
4880
5045
|
] })
|
|
4881
5046
|
] }),
|
|
4882
|
-
/* @__PURE__ */ (0,
|
|
4883
|
-
/* @__PURE__ */ (0,
|
|
4884
|
-
/* @__PURE__ */ (0,
|
|
4885
|
-
/* @__PURE__ */ (0,
|
|
4886
|
-
/* @__PURE__ */ (0,
|
|
4887
|
-
/* @__PURE__ */ (0,
|
|
4888
|
-
/* @__PURE__ */ (0,
|
|
5047
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
5048
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
|
|
5049
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
5050
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
5051
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
5052
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
5053
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
4889
5054
|
] }),
|
|
4890
|
-
/* @__PURE__ */ (0,
|
|
4891
|
-
/* @__PURE__ */ (0,
|
|
4892
|
-
/* @__PURE__ */ (0,
|
|
4893
|
-
/* @__PURE__ */ (0,
|
|
4894
|
-
/* @__PURE__ */ (0,
|
|
4895
|
-
/* @__PURE__ */ (0,
|
|
5055
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
|
|
5056
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
5057
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
5058
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
5059
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
5060
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
4896
5061
|
] }),
|
|
4897
|
-
/* @__PURE__ */ (0,
|
|
4898
|
-
/* @__PURE__ */ (0,
|
|
4899
|
-
/* @__PURE__ */ (0,
|
|
4900
|
-
/* @__PURE__ */ (0,
|
|
4901
|
-
/* @__PURE__ */ (0,
|
|
4902
|
-
/* @__PURE__ */ (0,
|
|
5062
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "animate-pulse", children: [
|
|
5063
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
5064
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
5065
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
5066
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
5067
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
4903
5068
|
] })
|
|
4904
5069
|
] })
|
|
4905
5070
|
] }) }),
|
|
@@ -4915,14 +5080,14 @@ var IframeClient_exports = {};
|
|
|
4915
5080
|
__export(IframeClient_exports, {
|
|
4916
5081
|
default: () => IframeClient_default
|
|
4917
5082
|
});
|
|
4918
|
-
var import_react58,
|
|
5083
|
+
var import_react58, import_jsx_runtime79, IframeClient, IframeClient_default;
|
|
4919
5084
|
var init_IframeClient = __esm({
|
|
4920
5085
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
4921
5086
|
"use strict";
|
|
4922
5087
|
"use client";
|
|
4923
5088
|
import_react58 = __toESM(require("react"));
|
|
4924
5089
|
init_IFrameLoaderView();
|
|
4925
|
-
|
|
5090
|
+
import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4926
5091
|
IframeClient = ({
|
|
4927
5092
|
src,
|
|
4928
5093
|
width,
|
|
@@ -4961,7 +5126,7 @@ var init_IframeClient = __esm({
|
|
|
4961
5126
|
const handleIframeLoad = () => {
|
|
4962
5127
|
setIsDataFound(true);
|
|
4963
5128
|
};
|
|
4964
|
-
return /* @__PURE__ */ (0,
|
|
5129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4965
5130
|
"iframe",
|
|
4966
5131
|
{
|
|
4967
5132
|
ref: iframeRef,
|
|
@@ -5220,7 +5385,7 @@ var Pagination_exports = {};
|
|
|
5220
5385
|
__export(Pagination_exports, {
|
|
5221
5386
|
default: () => Pagination_default
|
|
5222
5387
|
});
|
|
5223
|
-
var import_react59,
|
|
5388
|
+
var import_react59, import_jsx_runtime85, Pagination, Pagination_default;
|
|
5224
5389
|
var init_Pagination = __esm({
|
|
5225
5390
|
"src/components/Pagination.tsx"() {
|
|
5226
5391
|
"use strict";
|
|
@@ -5231,7 +5396,7 @@ var init_Pagination = __esm({
|
|
|
5231
5396
|
init_StyleTypes();
|
|
5232
5397
|
init_InputControlType();
|
|
5233
5398
|
init_Hyperlink();
|
|
5234
|
-
|
|
5399
|
+
import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5235
5400
|
Pagination = (props) => {
|
|
5236
5401
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
5237
5402
|
const builder = (0, import_react59.useMemo)(() => {
|
|
@@ -5275,7 +5440,7 @@ var init_Pagination = __esm({
|
|
|
5275
5440
|
return range;
|
|
5276
5441
|
};
|
|
5277
5442
|
const paginationRange = getPaginationRange();
|
|
5278
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
5443
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5279
5444
|
Hyperlink,
|
|
5280
5445
|
{
|
|
5281
5446
|
linkType: "Link" /* Link */,
|
|
@@ -5290,9 +5455,9 @@ var init_Pagination = __esm({
|
|
|
5290
5455
|
);
|
|
5291
5456
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
5292
5457
|
if (disabled) {
|
|
5293
|
-
return /* @__PURE__ */ (0,
|
|
5458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.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 });
|
|
5294
5459
|
}
|
|
5295
|
-
return /* @__PURE__ */ (0,
|
|
5460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5296
5461
|
Hyperlink,
|
|
5297
5462
|
{
|
|
5298
5463
|
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",
|
|
@@ -5302,35 +5467,35 @@ var init_Pagination = __esm({
|
|
|
5302
5467
|
);
|
|
5303
5468
|
};
|
|
5304
5469
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
5305
|
-
return /* @__PURE__ */ (0,
|
|
5306
|
-
/* @__PURE__ */ (0,
|
|
5307
|
-
/* @__PURE__ */ (0,
|
|
5470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
5471
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
5472
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-sm", children: [
|
|
5308
5473
|
"Showing ",
|
|
5309
|
-
/* @__PURE__ */ (0,
|
|
5474
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("span", { className: "font-semibold", children: [
|
|
5310
5475
|
startItem,
|
|
5311
5476
|
"-",
|
|
5312
5477
|
endItem
|
|
5313
5478
|
] }),
|
|
5314
5479
|
" ",
|
|
5315
5480
|
"out of ",
|
|
5316
|
-
/* @__PURE__ */ (0,
|
|
5481
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
5317
5482
|
" results"
|
|
5318
5483
|
] }),
|
|
5319
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
5320
|
-
/* @__PURE__ */ (0,
|
|
5484
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
5485
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
5321
5486
|
NavigationButton,
|
|
5322
5487
|
{
|
|
5323
5488
|
page: activePageNumber - 1,
|
|
5324
5489
|
disabled: activePageNumber === 1,
|
|
5325
5490
|
children: [
|
|
5326
|
-
/* @__PURE__ */ (0,
|
|
5327
|
-
/* @__PURE__ */ (0,
|
|
5491
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
5492
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
5328
5493
|
]
|
|
5329
5494
|
}
|
|
5330
5495
|
),
|
|
5331
5496
|
paginationRange.map((item, index) => {
|
|
5332
5497
|
if (item === "...") {
|
|
5333
|
-
return /* @__PURE__ */ (0,
|
|
5498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5334
5499
|
"span",
|
|
5335
5500
|
{
|
|
5336
5501
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -5340,23 +5505,23 @@ var init_Pagination = __esm({
|
|
|
5340
5505
|
);
|
|
5341
5506
|
}
|
|
5342
5507
|
const page = item;
|
|
5343
|
-
return /* @__PURE__ */ (0,
|
|
5508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(PageButton, { page, children: page }, page);
|
|
5344
5509
|
}),
|
|
5345
|
-
/* @__PURE__ */ (0,
|
|
5510
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
5346
5511
|
NavigationButton,
|
|
5347
5512
|
{
|
|
5348
5513
|
page: activePageNumber + 1,
|
|
5349
5514
|
disabled: activePageNumber === totalPages,
|
|
5350
5515
|
children: [
|
|
5351
|
-
/* @__PURE__ */ (0,
|
|
5352
|
-
/* @__PURE__ */ (0,
|
|
5516
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
5517
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
5353
5518
|
]
|
|
5354
5519
|
}
|
|
5355
5520
|
)
|
|
5356
5521
|
] }),
|
|
5357
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
5358
|
-
/* @__PURE__ */ (0,
|
|
5359
|
-
/* @__PURE__ */ (0,
|
|
5522
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
5523
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
5524
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5360
5525
|
"input",
|
|
5361
5526
|
{
|
|
5362
5527
|
type: "number",
|
|
@@ -5377,9 +5542,9 @@ var init_Pagination = __esm({
|
|
|
5377
5542
|
) })
|
|
5378
5543
|
] })
|
|
5379
5544
|
] }),
|
|
5380
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
5381
|
-
/* @__PURE__ */ (0,
|
|
5382
|
-
/* @__PURE__ */ (0,
|
|
5545
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
5546
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
5547
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5383
5548
|
Hyperlink,
|
|
5384
5549
|
{
|
|
5385
5550
|
className: `
|
|
@@ -5391,7 +5556,7 @@ var init_Pagination = __esm({
|
|
|
5391
5556
|
},
|
|
5392
5557
|
size
|
|
5393
5558
|
)) }),
|
|
5394
|
-
/* @__PURE__ */ (0,
|
|
5559
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm", children: "per page" })
|
|
5395
5560
|
] }) })
|
|
5396
5561
|
] });
|
|
5397
5562
|
};
|
|
@@ -5404,7 +5569,7 @@ var DataBindingControls_exports = {};
|
|
|
5404
5569
|
__export(DataBindingControls_exports, {
|
|
5405
5570
|
default: () => DataBindingControls_default
|
|
5406
5571
|
});
|
|
5407
|
-
var import_react60, import_navigation,
|
|
5572
|
+
var import_react60, import_navigation, import_jsx_runtime86, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
|
|
5408
5573
|
var init_DataBindingControls = __esm({
|
|
5409
5574
|
"src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
|
|
5410
5575
|
"use strict";
|
|
@@ -5413,7 +5578,7 @@ var init_DataBindingControls = __esm({
|
|
|
5413
5578
|
import_navigation = require("next/navigation");
|
|
5414
5579
|
init_InputControl();
|
|
5415
5580
|
init_InputControlType();
|
|
5416
|
-
|
|
5581
|
+
import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5417
5582
|
humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
5418
5583
|
escapeODataString = (value) => value.replace(/'/g, "''");
|
|
5419
5584
|
parseFacetSelections = (filter) => {
|
|
@@ -5562,8 +5727,8 @@ var init_DataBindingControls = __esm({
|
|
|
5562
5727
|
if (!shouldShowToolbar && !shouldShowFacets) {
|
|
5563
5728
|
return null;
|
|
5564
5729
|
}
|
|
5565
|
-
const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0,
|
|
5566
|
-
/* @__PURE__ */ (0,
|
|
5730
|
+
const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
|
|
5731
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5567
5732
|
"button",
|
|
5568
5733
|
{
|
|
5569
5734
|
type: "button",
|
|
@@ -5575,7 +5740,7 @@ var init_DataBindingControls = __esm({
|
|
|
5575
5740
|
),
|
|
5576
5741
|
values.map((facet) => {
|
|
5577
5742
|
const isSelected = selectedFacetValues.get(field) === facet.value;
|
|
5578
|
-
return /* @__PURE__ */ (0,
|
|
5743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
5579
5744
|
"button",
|
|
5580
5745
|
{
|
|
5581
5746
|
type: "button",
|
|
@@ -5593,9 +5758,9 @@ var init_DataBindingControls = __esm({
|
|
|
5593
5758
|
);
|
|
5594
5759
|
})
|
|
5595
5760
|
] });
|
|
5596
|
-
return /* @__PURE__ */ (0,
|
|
5597
|
-
shouldShowToolbar && /* @__PURE__ */ (0,
|
|
5598
|
-
showSearchBar && /* @__PURE__ */ (0,
|
|
5761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
|
|
5762
|
+
shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
|
|
5763
|
+
showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5599
5764
|
InputControl_default,
|
|
5600
5765
|
{
|
|
5601
5766
|
name: "searchText",
|
|
@@ -5606,9 +5771,9 @@ var init_DataBindingControls = __esm({
|
|
|
5606
5771
|
inputClasses: "!mt-0"
|
|
5607
5772
|
}
|
|
5608
5773
|
) }),
|
|
5609
|
-
hasSortControls && /* @__PURE__ */ (0,
|
|
5610
|
-
/* @__PURE__ */ (0,
|
|
5611
|
-
/* @__PURE__ */ (0,
|
|
5774
|
+
hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
|
|
5775
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "font-medium", children: "Sort by" }),
|
|
5776
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5612
5777
|
InputControl_default,
|
|
5613
5778
|
{
|
|
5614
5779
|
name: "sortOptions",
|
|
@@ -5629,10 +5794,10 @@ var init_DataBindingControls = __esm({
|
|
|
5629
5794
|
)
|
|
5630
5795
|
] })
|
|
5631
5796
|
] }),
|
|
5632
|
-
shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0,
|
|
5633
|
-
shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0,
|
|
5634
|
-
/* @__PURE__ */ (0,
|
|
5635
|
-
/* @__PURE__ */ (0,
|
|
5797
|
+
shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
|
|
5798
|
+
shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("details", { className: "border-b", open: true, children: [
|
|
5799
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
|
|
5800
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
|
|
5636
5801
|
] }, field)) })
|
|
5637
5802
|
] });
|
|
5638
5803
|
};
|
|
@@ -5645,13 +5810,13 @@ var Slider_exports = {};
|
|
|
5645
5810
|
__export(Slider_exports, {
|
|
5646
5811
|
default: () => Slider_default
|
|
5647
5812
|
});
|
|
5648
|
-
var import_react61,
|
|
5813
|
+
var import_react61, import_jsx_runtime87, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
5649
5814
|
var init_Slider = __esm({
|
|
5650
5815
|
"src/components/Slider.tsx"() {
|
|
5651
5816
|
"use strict";
|
|
5652
5817
|
"use client";
|
|
5653
5818
|
import_react61 = __toESM(require("react"));
|
|
5654
|
-
|
|
5819
|
+
import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5655
5820
|
Slider = ({
|
|
5656
5821
|
children,
|
|
5657
5822
|
slidesToShow = 4,
|
|
@@ -5748,7 +5913,7 @@ var init_Slider = __esm({
|
|
|
5748
5913
|
if (!import_react61.default.isValidElement(child)) return null;
|
|
5749
5914
|
const childProps = child.props;
|
|
5750
5915
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
5751
|
-
return /* @__PURE__ */ (0,
|
|
5916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5752
5917
|
"div",
|
|
5753
5918
|
{
|
|
5754
5919
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -5771,14 +5936,14 @@ var init_Slider = __esm({
|
|
|
5771
5936
|
return "bottom-4";
|
|
5772
5937
|
}
|
|
5773
5938
|
};
|
|
5774
|
-
return /* @__PURE__ */ (0,
|
|
5939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
5775
5940
|
"div",
|
|
5776
5941
|
{
|
|
5777
5942
|
className: `relative w-full overflow-hidden ${className}`,
|
|
5778
5943
|
onMouseEnter: handleMouseEnter,
|
|
5779
5944
|
onMouseLeave: handleMouseLeave,
|
|
5780
5945
|
children: [
|
|
5781
|
-
/* @__PURE__ */ (0,
|
|
5946
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5782
5947
|
"div",
|
|
5783
5948
|
{
|
|
5784
5949
|
className: "flex h-full",
|
|
@@ -5789,18 +5954,18 @@ var init_Slider = __esm({
|
|
|
5789
5954
|
children: slides
|
|
5790
5955
|
}
|
|
5791
5956
|
),
|
|
5792
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
5793
|
-
/* @__PURE__ */ (0,
|
|
5957
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
|
|
5958
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5794
5959
|
ArrowButton,
|
|
5795
5960
|
{
|
|
5796
5961
|
direction: "left",
|
|
5797
5962
|
onClick: prevSlide,
|
|
5798
5963
|
visible: infinite_scroll || currentSlide > 0,
|
|
5799
5964
|
className: arrowClassName,
|
|
5800
|
-
children: /* @__PURE__ */ (0,
|
|
5965
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime87.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_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
5801
5966
|
}
|
|
5802
5967
|
),
|
|
5803
|
-
/* @__PURE__ */ (0,
|
|
5968
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
5804
5969
|
ArrowButton,
|
|
5805
5970
|
{
|
|
5806
5971
|
direction: "right",
|
|
@@ -5808,13 +5973,13 @@ var init_Slider = __esm({
|
|
|
5808
5973
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
5809
5974
|
className: arrowClassName,
|
|
5810
5975
|
children: [
|
|
5811
|
-
/* @__PURE__ */ (0,
|
|
5976
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.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_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
|
|
5812
5977
|
" "
|
|
5813
5978
|
]
|
|
5814
5979
|
}
|
|
5815
5980
|
)
|
|
5816
5981
|
] }),
|
|
5817
|
-
show_dots && /* @__PURE__ */ (0,
|
|
5982
|
+
show_dots && /* @__PURE__ */ (0, import_jsx_runtime87.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_runtime87.jsx)(
|
|
5818
5983
|
ProgressPill,
|
|
5819
5984
|
{
|
|
5820
5985
|
active: index === currentSlide,
|
|
@@ -5840,7 +6005,7 @@ var init_Slider = __esm({
|
|
|
5840
6005
|
visible,
|
|
5841
6006
|
children,
|
|
5842
6007
|
className = ""
|
|
5843
|
-
}) => /* @__PURE__ */ (0,
|
|
6008
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5844
6009
|
"button",
|
|
5845
6010
|
{
|
|
5846
6011
|
className: `
|
|
@@ -5927,7 +6092,7 @@ var init_Slider = __esm({
|
|
|
5927
6092
|
const renderProgressBar = () => {
|
|
5928
6093
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
5929
6094
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
5930
|
-
return /* @__PURE__ */ (0,
|
|
6095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5931
6096
|
"div",
|
|
5932
6097
|
{
|
|
5933
6098
|
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`,
|
|
@@ -5939,7 +6104,7 @@ var init_Slider = __esm({
|
|
|
5939
6104
|
};
|
|
5940
6105
|
const renderCumulativeFill = () => {
|
|
5941
6106
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
5942
|
-
return /* @__PURE__ */ (0,
|
|
6107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5943
6108
|
"div",
|
|
5944
6109
|
{
|
|
5945
6110
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -5949,7 +6114,7 @@ var init_Slider = __esm({
|
|
|
5949
6114
|
}
|
|
5950
6115
|
return null;
|
|
5951
6116
|
};
|
|
5952
|
-
return /* @__PURE__ */ (0,
|
|
6117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
5953
6118
|
"button",
|
|
5954
6119
|
{
|
|
5955
6120
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -6374,7 +6539,7 @@ var CommentRenderer = (0, import_dynamic5.default)(() => Promise.resolve().then(
|
|
|
6374
6539
|
var Commentrenderer_default = CommentRenderer;
|
|
6375
6540
|
|
|
6376
6541
|
// src/components/controls/view/ViewControl.tsx
|
|
6377
|
-
var
|
|
6542
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
6378
6543
|
var ViewControl = (props) => {
|
|
6379
6544
|
const ControlComponents = {
|
|
6380
6545
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -6405,7 +6570,7 @@ var ViewControl = (props) => {
|
|
|
6405
6570
|
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
6406
6571
|
};
|
|
6407
6572
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
6408
|
-
return /* @__PURE__ */ (0,
|
|
6573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react21.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
6409
6574
|
};
|
|
6410
6575
|
var ViewControl_default = ViewControl;
|
|
6411
6576
|
|
|
@@ -6420,7 +6585,7 @@ var import_react63 = __toESM(require("react"));
|
|
|
6420
6585
|
var import_react49 = __toESM(require("react"));
|
|
6421
6586
|
|
|
6422
6587
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
6423
|
-
var
|
|
6588
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
6424
6589
|
var TextNode = (props) => {
|
|
6425
6590
|
function cssStringToJson(cssString) {
|
|
6426
6591
|
const styleObject = {};
|
|
@@ -6475,26 +6640,26 @@ var TextNode = (props) => {
|
|
|
6475
6640
|
});
|
|
6476
6641
|
}
|
|
6477
6642
|
function renderWithLineBreaks(text) {
|
|
6478
|
-
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0,
|
|
6643
|
+
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { children: [
|
|
6479
6644
|
line,
|
|
6480
|
-
index < arr.length - 1 && /* @__PURE__ */ (0,
|
|
6645
|
+
index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("br", {})
|
|
6481
6646
|
] }, index));
|
|
6482
6647
|
}
|
|
6483
6648
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
6484
6649
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
6485
6650
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
6486
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0,
|
|
6651
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("sub", { children: content }) : content;
|
|
6487
6652
|
return (
|
|
6488
6653
|
// @ts-expect-error custom code
|
|
6489
|
-
/* @__PURE__ */ (0,
|
|
6654
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
6490
6655
|
);
|
|
6491
6656
|
};
|
|
6492
6657
|
var TextNode_default = TextNode;
|
|
6493
6658
|
|
|
6494
6659
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
6495
|
-
var
|
|
6660
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
6496
6661
|
var LineBreakNode = () => {
|
|
6497
|
-
return /* @__PURE__ */ (0,
|
|
6662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "py-0.5 lg:py-1.5" });
|
|
6498
6663
|
};
|
|
6499
6664
|
var LineBreakNode_default = LineBreakNode;
|
|
6500
6665
|
|
|
@@ -6504,7 +6669,7 @@ var import_react48 = __toESM(require("react"));
|
|
|
6504
6669
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
6505
6670
|
init_AssetUtility();
|
|
6506
6671
|
var import_dynamic7 = __toESM(require("next/dynamic"));
|
|
6507
|
-
var
|
|
6672
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
6508
6673
|
var HlsPlayer3 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
6509
6674
|
var getNestedValue = (obj, path) => {
|
|
6510
6675
|
if (!obj || !path) return void 0;
|
|
@@ -6537,7 +6702,7 @@ var ImageNode = (props) => {
|
|
|
6537
6702
|
assets = [image];
|
|
6538
6703
|
}
|
|
6539
6704
|
if (assets && assets.length > 0) {
|
|
6540
|
-
return /* @__PURE__ */ (0,
|
|
6705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6541
6706
|
DeviceAssetSelector_default,
|
|
6542
6707
|
{
|
|
6543
6708
|
device: props.device,
|
|
@@ -6578,7 +6743,7 @@ var ImageNode = (props) => {
|
|
|
6578
6743
|
right: "justify-end"
|
|
6579
6744
|
};
|
|
6580
6745
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
6581
|
-
const renderMedia = () => isHls ? /* @__PURE__ */ (0,
|
|
6746
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6582
6747
|
HlsPlayer3,
|
|
6583
6748
|
{
|
|
6584
6749
|
assetUrl: imageUrl,
|
|
@@ -6591,7 +6756,7 @@ var ImageNode = (props) => {
|
|
|
6591
6756
|
apiBaseUrl: props.apiBaseUrl,
|
|
6592
6757
|
session: props.session
|
|
6593
6758
|
}
|
|
6594
|
-
) : /* @__PURE__ */ (0,
|
|
6759
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6595
6760
|
"img",
|
|
6596
6761
|
{
|
|
6597
6762
|
style: styles,
|
|
@@ -6604,7 +6769,7 @@ var ImageNode = (props) => {
|
|
|
6604
6769
|
}
|
|
6605
6770
|
);
|
|
6606
6771
|
if (props.node.width) {
|
|
6607
|
-
return /* @__PURE__ */ (0,
|
|
6772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
6608
6773
|
}
|
|
6609
6774
|
return renderMedia();
|
|
6610
6775
|
};
|
|
@@ -6614,7 +6779,7 @@ var ImageNode_default = ImageNode;
|
|
|
6614
6779
|
init_StyleTypes();
|
|
6615
6780
|
init_Hyperlink();
|
|
6616
6781
|
var import_dynamic8 = __toESM(require("next/dynamic"));
|
|
6617
|
-
var
|
|
6782
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6618
6783
|
var LinkNodeButton2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
|
|
6619
6784
|
ssr: false
|
|
6620
6785
|
});
|
|
@@ -6667,13 +6832,13 @@ var LinkNode = (props) => {
|
|
|
6667
6832
|
const isButton = node.isButton === true;
|
|
6668
6833
|
const renderChildren2 = () => {
|
|
6669
6834
|
if (!node.children || node.children.length === 0) return null;
|
|
6670
|
-
return /* @__PURE__ */ (0,
|
|
6835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: node.children.map((childNode, index) => {
|
|
6671
6836
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
6672
6837
|
if (!SelectedNode) {
|
|
6673
6838
|
console.warn("Unknown node type:", childNode.type);
|
|
6674
6839
|
return null;
|
|
6675
6840
|
}
|
|
6676
|
-
return /* @__PURE__ */ (0,
|
|
6841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react48.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
6677
6842
|
SelectedNode,
|
|
6678
6843
|
{
|
|
6679
6844
|
node: childNode,
|
|
@@ -6686,15 +6851,15 @@ var LinkNode = (props) => {
|
|
|
6686
6851
|
};
|
|
6687
6852
|
const renderFallback = () => {
|
|
6688
6853
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
6689
|
-
return /* @__PURE__ */ (0,
|
|
6854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: linkText });
|
|
6690
6855
|
}
|
|
6691
6856
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
6692
|
-
return /* @__PURE__ */ (0,
|
|
6857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("br", {});
|
|
6693
6858
|
}
|
|
6694
6859
|
return null;
|
|
6695
6860
|
};
|
|
6696
6861
|
if (isButton) {
|
|
6697
|
-
return /* @__PURE__ */ (0,
|
|
6862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
6698
6863
|
LinkNodeButton2,
|
|
6699
6864
|
{
|
|
6700
6865
|
node,
|
|
@@ -6712,7 +6877,7 @@ var LinkNode = (props) => {
|
|
|
6712
6877
|
}
|
|
6713
6878
|
);
|
|
6714
6879
|
}
|
|
6715
|
-
return /* @__PURE__ */ (0,
|
|
6880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
6716
6881
|
Hyperlink,
|
|
6717
6882
|
{
|
|
6718
6883
|
href: linkUrl || "#",
|
|
@@ -6728,10 +6893,10 @@ var LinkNode = (props) => {
|
|
|
6728
6893
|
var LinkNode_default = LinkNode;
|
|
6729
6894
|
|
|
6730
6895
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
6731
|
-
var
|
|
6896
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6732
6897
|
var SVGIconNode = ({ node }) => {
|
|
6733
6898
|
if (!node?.svgCode) return null;
|
|
6734
|
-
return /* @__PURE__ */ (0,
|
|
6899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6735
6900
|
"span",
|
|
6736
6901
|
{
|
|
6737
6902
|
style: {
|
|
@@ -6748,7 +6913,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
6748
6913
|
|
|
6749
6914
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
6750
6915
|
var import_katex = __toESM(require("katex"));
|
|
6751
|
-
var
|
|
6916
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6752
6917
|
var EquationNode = ({ node }) => {
|
|
6753
6918
|
const { equation, inline } = node;
|
|
6754
6919
|
let html = "";
|
|
@@ -6763,7 +6928,7 @@ var EquationNode = ({ node }) => {
|
|
|
6763
6928
|
});
|
|
6764
6929
|
}
|
|
6765
6930
|
if (inline) {
|
|
6766
|
-
return /* @__PURE__ */ (0,
|
|
6931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6767
6932
|
"span",
|
|
6768
6933
|
{
|
|
6769
6934
|
className: "katex-inline",
|
|
@@ -6771,7 +6936,7 @@ var EquationNode = ({ node }) => {
|
|
|
6771
6936
|
}
|
|
6772
6937
|
);
|
|
6773
6938
|
}
|
|
6774
|
-
return /* @__PURE__ */ (0,
|
|
6939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6775
6940
|
"div",
|
|
6776
6941
|
{
|
|
6777
6942
|
className: "katex-block my-3 text-center",
|
|
@@ -6782,7 +6947,7 @@ var EquationNode = ({ node }) => {
|
|
|
6782
6947
|
var EquationNode_default = EquationNode;
|
|
6783
6948
|
|
|
6784
6949
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
6785
|
-
var
|
|
6950
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6786
6951
|
function getNestedProperty(obj, path) {
|
|
6787
6952
|
if (!obj || !path) return null;
|
|
6788
6953
|
if (path.includes(".")) {
|
|
@@ -6795,7 +6960,7 @@ function getNestedProperty(obj, path) {
|
|
|
6795
6960
|
}
|
|
6796
6961
|
const value = obj[path];
|
|
6797
6962
|
if (Array.isArray(value)) {
|
|
6798
|
-
return value.map((item, index) => /* @__PURE__ */ (0,
|
|
6963
|
+
return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { children: String(item) }, index));
|
|
6799
6964
|
}
|
|
6800
6965
|
return value;
|
|
6801
6966
|
}
|
|
@@ -6858,7 +7023,7 @@ var DatafieldNode = (props) => {
|
|
|
6858
7023
|
const dataType = props.node.dataType;
|
|
6859
7024
|
if (isEmptyValue) return null;
|
|
6860
7025
|
if (dataType === "rawContent") {
|
|
6861
|
-
return /* @__PURE__ */ (0,
|
|
7026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6862
7027
|
PageBodyRenderer_default,
|
|
6863
7028
|
{
|
|
6864
7029
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -6874,13 +7039,13 @@ var DatafieldNode = (props) => {
|
|
|
6874
7039
|
}
|
|
6875
7040
|
);
|
|
6876
7041
|
}
|
|
6877
|
-
return /* @__PURE__ */ (0,
|
|
7042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6878
7043
|
"span",
|
|
6879
7044
|
{
|
|
6880
7045
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
6881
7046
|
style: styles,
|
|
6882
7047
|
title,
|
|
6883
|
-
children: /* @__PURE__ */ (0,
|
|
7048
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6884
7049
|
ViewControl_default,
|
|
6885
7050
|
{
|
|
6886
7051
|
controlType: dataType,
|
|
@@ -6895,7 +7060,7 @@ var DatafieldNode = (props) => {
|
|
|
6895
7060
|
var DatafieldNode_default = DatafieldNode;
|
|
6896
7061
|
|
|
6897
7062
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
6898
|
-
var
|
|
7063
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
6899
7064
|
var ParagraphNode = (props) => {
|
|
6900
7065
|
const NodeTypes2 = {
|
|
6901
7066
|
["text"]: TextNode_default,
|
|
@@ -6915,9 +7080,9 @@ var ParagraphNode = (props) => {
|
|
|
6915
7080
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
6916
7081
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
6917
7082
|
if (isInlineOnlyParent) {
|
|
6918
|
-
return /* @__PURE__ */ (0,
|
|
7083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
6919
7084
|
const SelectedNode = NodeTypes2[node.type];
|
|
6920
|
-
return /* @__PURE__ */ (0,
|
|
7085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6921
7086
|
SelectedNode,
|
|
6922
7087
|
{
|
|
6923
7088
|
node,
|
|
@@ -6930,10 +7095,10 @@ var ParagraphNode = (props) => {
|
|
|
6930
7095
|
) }, index);
|
|
6931
7096
|
}) });
|
|
6932
7097
|
}
|
|
6933
|
-
return /* @__PURE__ */ (0,
|
|
7098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: " " + formatClasses, children: [
|
|
6934
7099
|
hasChildren && props.node.children.map((node, index) => {
|
|
6935
7100
|
const SelectedNode = NodeTypes2[node.type];
|
|
6936
|
-
return /* @__PURE__ */ (0,
|
|
7101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6937
7102
|
SelectedNode,
|
|
6938
7103
|
{
|
|
6939
7104
|
node,
|
|
@@ -6945,14 +7110,14 @@ var ParagraphNode = (props) => {
|
|
|
6945
7110
|
}
|
|
6946
7111
|
) }, index);
|
|
6947
7112
|
}),
|
|
6948
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
7113
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
6949
7114
|
] });
|
|
6950
7115
|
};
|
|
6951
7116
|
var ParagraphNode_default = ParagraphNode;
|
|
6952
7117
|
|
|
6953
7118
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
6954
7119
|
var import_react50 = __toESM(require("react"));
|
|
6955
|
-
var
|
|
7120
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
6956
7121
|
var HeadingNode = (props) => {
|
|
6957
7122
|
const NodeTypes2 = {
|
|
6958
7123
|
["text"]: TextNode_default,
|
|
@@ -6968,12 +7133,12 @@ var HeadingNode = (props) => {
|
|
|
6968
7133
|
{
|
|
6969
7134
|
}
|
|
6970
7135
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
6971
|
-
return /* @__PURE__ */ (0,
|
|
7136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: import_react50.default.createElement(
|
|
6972
7137
|
HeadingTag,
|
|
6973
7138
|
{ className: formatClasses },
|
|
6974
7139
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
6975
7140
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
6976
|
-
return /* @__PURE__ */ (0,
|
|
7141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react50.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
6977
7142
|
})
|
|
6978
7143
|
) });
|
|
6979
7144
|
};
|
|
@@ -6984,7 +7149,7 @@ var import_react52 = __toESM(require("react"));
|
|
|
6984
7149
|
|
|
6985
7150
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
6986
7151
|
var import_react51 = __toESM(require("react"));
|
|
6987
|
-
var
|
|
7152
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6988
7153
|
var ListItemNode = (props) => {
|
|
6989
7154
|
const NodeTypes2 = {
|
|
6990
7155
|
text: TextNode_default,
|
|
@@ -7001,37 +7166,37 @@ var ListItemNode = (props) => {
|
|
|
7001
7166
|
liStyle.fontSize = match[1].trim();
|
|
7002
7167
|
}
|
|
7003
7168
|
}
|
|
7004
|
-
return /* @__PURE__ */ (0,
|
|
7169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
7005
7170
|
const SelectedNode = NodeTypes2[node.type];
|
|
7006
7171
|
if (node.type === "linebreak") {
|
|
7007
7172
|
if (!foundFirstBreak) {
|
|
7008
7173
|
foundFirstBreak = true;
|
|
7009
|
-
return /* @__PURE__ */ (0,
|
|
7174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", {}, index);
|
|
7010
7175
|
} else {
|
|
7011
|
-
return /* @__PURE__ */ (0,
|
|
7176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
7012
7177
|
}
|
|
7013
7178
|
} else {
|
|
7014
7179
|
foundFirstBreak = false;
|
|
7015
|
-
return /* @__PURE__ */ (0,
|
|
7180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react51.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
7016
7181
|
}
|
|
7017
7182
|
}) });
|
|
7018
7183
|
};
|
|
7019
7184
|
var ListItemNode_default = ListItemNode;
|
|
7020
7185
|
|
|
7021
7186
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
7022
|
-
var
|
|
7187
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
7023
7188
|
var ListNode = (props) => {
|
|
7024
7189
|
const NodeTypes2 = {
|
|
7025
7190
|
listitem: ListItemNode_default
|
|
7026
7191
|
};
|
|
7027
|
-
return /* @__PURE__ */ (0,
|
|
7028
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
7192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_react52.default.Fragment, { children: [
|
|
7193
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
7029
7194
|
const SelectedNode = NodeTypes2[node.type];
|
|
7030
|
-
return /* @__PURE__ */ (0,
|
|
7195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react52.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
7031
7196
|
}) }),
|
|
7032
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
7197
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
7033
7198
|
const SelectedNode = NodeTypes2[node.type];
|
|
7034
|
-
return /* @__PURE__ */ (0,
|
|
7199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react52.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
7035
7200
|
}) })
|
|
7036
7201
|
] });
|
|
7037
7202
|
};
|
|
@@ -7039,16 +7204,16 @@ var ListNode_default = ListNode;
|
|
|
7039
7204
|
|
|
7040
7205
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
7041
7206
|
var import_react53 = __toESM(require("react"));
|
|
7042
|
-
var
|
|
7207
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
7043
7208
|
var QuoteNode = (props) => {
|
|
7044
7209
|
const NodeTypes2 = {
|
|
7045
7210
|
["text"]: TextNode_default,
|
|
7046
7211
|
["linebreak"]: LineBreakNode_default,
|
|
7047
7212
|
["link"]: LinkNode_default
|
|
7048
7213
|
};
|
|
7049
|
-
return /* @__PURE__ */ (0,
|
|
7214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
7050
7215
|
const SelectedNode = NodeTypes2[node.type];
|
|
7051
|
-
return /* @__PURE__ */ (0,
|
|
7216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
7052
7217
|
}) });
|
|
7053
7218
|
};
|
|
7054
7219
|
var QuoteNode_default = QuoteNode;
|
|
@@ -7056,11 +7221,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
7056
7221
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
7057
7222
|
var import_react55 = __toESM(require("react"));
|
|
7058
7223
|
var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
7059
|
-
var
|
|
7224
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
7060
7225
|
var CopyButton2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
7061
7226
|
ssr: false,
|
|
7062
7227
|
// optional: fallback UI while loading
|
|
7063
|
-
loading: () => /* @__PURE__ */ (0,
|
|
7228
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
7064
7229
|
});
|
|
7065
7230
|
var CodeNode = (props) => {
|
|
7066
7231
|
const NodeTypes2 = {
|
|
@@ -7074,14 +7239,14 @@ var CodeNode = (props) => {
|
|
|
7074
7239
|
if (node.type === "link") return node.text || node.url || "";
|
|
7075
7240
|
return "";
|
|
7076
7241
|
}).join("") ?? "";
|
|
7077
|
-
return /* @__PURE__ */ (0,
|
|
7078
|
-
/* @__PURE__ */ (0,
|
|
7079
|
-
/* @__PURE__ */ (0,
|
|
7080
|
-
/* @__PURE__ */ (0,
|
|
7242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { children: [
|
|
7243
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
7244
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: "Code Snippet" }),
|
|
7245
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CopyButton2, { text: textContent })
|
|
7081
7246
|
] }),
|
|
7082
|
-
/* @__PURE__ */ (0,
|
|
7247
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
|
|
7083
7248
|
const SelectedNode = NodeTypes2[node.type];
|
|
7084
|
-
return /* @__PURE__ */ (0,
|
|
7249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react55.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
7085
7250
|
SelectedNode,
|
|
7086
7251
|
{
|
|
7087
7252
|
node,
|
|
@@ -7096,15 +7261,15 @@ var CodeNode = (props) => {
|
|
|
7096
7261
|
var CodeNode_default = CodeNode;
|
|
7097
7262
|
|
|
7098
7263
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
7099
|
-
var
|
|
7264
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
7100
7265
|
var HorizontalRuleNode = () => {
|
|
7101
|
-
return /* @__PURE__ */ (0,
|
|
7266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("hr", {});
|
|
7102
7267
|
};
|
|
7103
7268
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
7104
7269
|
|
|
7105
7270
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
7106
7271
|
var import_react56 = __toESM(require("react"));
|
|
7107
|
-
var
|
|
7272
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
7108
7273
|
var WidgetNode = (props) => {
|
|
7109
7274
|
const getWidgetParameters = () => {
|
|
7110
7275
|
const widgetInputParameters = {
|
|
@@ -7168,7 +7333,7 @@ var WidgetNode = (props) => {
|
|
|
7168
7333
|
};
|
|
7169
7334
|
const widgetCode = props.node?.widgetCode;
|
|
7170
7335
|
if (!widgetCode) {
|
|
7171
|
-
return /* @__PURE__ */ (0,
|
|
7336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: "Invalid widget" });
|
|
7172
7337
|
}
|
|
7173
7338
|
const widgetParams = getWidgetParameters();
|
|
7174
7339
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -7177,7 +7342,7 @@ var WidgetNode = (props) => {
|
|
|
7177
7342
|
}
|
|
7178
7343
|
return (
|
|
7179
7344
|
// eslint-disable-next-line react-hooks/static-components
|
|
7180
|
-
/* @__PURE__ */ (0,
|
|
7345
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
7181
7346
|
WidgetRenderer,
|
|
7182
7347
|
{
|
|
7183
7348
|
params: widgetParams,
|
|
@@ -7199,7 +7364,7 @@ var import_react62 = __toESM(require("react"));
|
|
|
7199
7364
|
|
|
7200
7365
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
7201
7366
|
var import_dynamic10 = __toESM(require("next/dynamic"));
|
|
7202
|
-
var
|
|
7367
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
7203
7368
|
var IframeClient2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
7204
7369
|
ssr: false
|
|
7205
7370
|
});
|
|
@@ -7212,7 +7377,7 @@ var EmbedNode = (props) => {
|
|
|
7212
7377
|
} else {
|
|
7213
7378
|
src = props.node.embedSrc;
|
|
7214
7379
|
}
|
|
7215
|
-
return /* @__PURE__ */ (0,
|
|
7380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(IframeClient2, { src }) });
|
|
7216
7381
|
};
|
|
7217
7382
|
var EmbedNode_default = EmbedNode;
|
|
7218
7383
|
|
|
@@ -7412,10 +7577,10 @@ var PathUtility = class {
|
|
|
7412
7577
|
var PathUtility_default = new PathUtility();
|
|
7413
7578
|
|
|
7414
7579
|
// src/components/NoDataFound.tsx
|
|
7415
|
-
var
|
|
7580
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7416
7581
|
var NoDataFound = () => {
|
|
7417
|
-
return /* @__PURE__ */ (0,
|
|
7418
|
-
/* @__PURE__ */ (0,
|
|
7582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
7583
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7419
7584
|
"svg",
|
|
7420
7585
|
{
|
|
7421
7586
|
className: "w-10 h-10",
|
|
@@ -7423,7 +7588,7 @@ var NoDataFound = () => {
|
|
|
7423
7588
|
stroke: "currentColor",
|
|
7424
7589
|
viewBox: "0 0 24 24",
|
|
7425
7590
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7426
|
-
children: /* @__PURE__ */ (0,
|
|
7591
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7427
7592
|
"path",
|
|
7428
7593
|
{
|
|
7429
7594
|
strokeLinecap: "round",
|
|
@@ -7434,8 +7599,8 @@ var NoDataFound = () => {
|
|
|
7434
7599
|
)
|
|
7435
7600
|
}
|
|
7436
7601
|
) }) }),
|
|
7437
|
-
/* @__PURE__ */ (0,
|
|
7438
|
-
/* @__PURE__ */ (0,
|
|
7602
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
7603
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
7439
7604
|
] });
|
|
7440
7605
|
};
|
|
7441
7606
|
var NoDataFound_default = NoDataFound;
|
|
@@ -7443,7 +7608,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
7443
7608
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
7444
7609
|
init_AssetUtility();
|
|
7445
7610
|
var import_dynamic11 = __toESM(require("next/dynamic"));
|
|
7446
|
-
var
|
|
7611
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7447
7612
|
var HlsPlayer4 = (0, import_dynamic11.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
7448
7613
|
var deviceToMediaQuery = (device) => {
|
|
7449
7614
|
switch (device) {
|
|
@@ -7599,8 +7764,8 @@ var ImageGalleryNode = (props) => {
|
|
|
7599
7764
|
right: "justify-end"
|
|
7600
7765
|
};
|
|
7601
7766
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
7602
|
-
return /* @__PURE__ */ (0,
|
|
7603
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
7767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
7768
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7604
7769
|
HlsPlayer4,
|
|
7605
7770
|
{
|
|
7606
7771
|
sources: hlsSources,
|
|
@@ -7615,7 +7780,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7615
7780
|
styles: hlsStyles
|
|
7616
7781
|
}
|
|
7617
7782
|
) }),
|
|
7618
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
7783
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("picture", { children: [
|
|
7619
7784
|
DEVICE_ORDER.map((deviceKey) => {
|
|
7620
7785
|
const match = staticSources.find(
|
|
7621
7786
|
(img) => img.device === deviceKey
|
|
@@ -7631,7 +7796,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7631
7796
|
if (!srcUrl) {
|
|
7632
7797
|
return null;
|
|
7633
7798
|
}
|
|
7634
|
-
return /* @__PURE__ */ (0,
|
|
7799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7635
7800
|
"source",
|
|
7636
7801
|
{
|
|
7637
7802
|
media: deviceToMediaQuery(match.device),
|
|
@@ -7656,7 +7821,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7656
7821
|
if (img.borderRadius) {
|
|
7657
7822
|
styles.borderRadius = img.borderRadius;
|
|
7658
7823
|
}
|
|
7659
|
-
return /* @__PURE__ */ (0,
|
|
7824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7660
7825
|
"img",
|
|
7661
7826
|
{
|
|
7662
7827
|
loading: "lazy",
|
|
@@ -7671,7 +7836,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7671
7836
|
})()
|
|
7672
7837
|
] }) : (
|
|
7673
7838
|
/* Case 2: Only device-specific images exist */
|
|
7674
|
-
/* @__PURE__ */ (0,
|
|
7839
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children: staticSources.map((img, index) => {
|
|
7675
7840
|
const resolved = resolveImage(img);
|
|
7676
7841
|
const imageUrl = resolved?.imageUrl;
|
|
7677
7842
|
if (!imageUrl) {
|
|
@@ -7698,7 +7863,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7698
7863
|
default:
|
|
7699
7864
|
display = "block";
|
|
7700
7865
|
}
|
|
7701
|
-
return /* @__PURE__ */ (0,
|
|
7866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7702
7867
|
"img",
|
|
7703
7868
|
{
|
|
7704
7869
|
loading: "lazy",
|
|
@@ -7839,28 +8004,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
7839
8004
|
|
|
7840
8005
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
7841
8006
|
init_AssetUtility();
|
|
7842
|
-
var
|
|
8007
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
7843
8008
|
var getNestedValue5 = (obj, path) => {
|
|
7844
8009
|
if (!obj || !path) return void 0;
|
|
7845
8010
|
return path.split(".").reduce((current, key) => {
|
|
7846
8011
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
7847
8012
|
}, obj);
|
|
7848
8013
|
};
|
|
7849
|
-
var PdfIcon2 = () => /* @__PURE__ */ (0,
|
|
8014
|
+
var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
7850
8015
|
"svg",
|
|
7851
8016
|
{
|
|
7852
8017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7853
8018
|
viewBox: "0 0 48 48",
|
|
7854
8019
|
className: "w-10 h-10",
|
|
7855
8020
|
children: [
|
|
7856
|
-
/* @__PURE__ */ (0,
|
|
8021
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7857
8022
|
"path",
|
|
7858
8023
|
{
|
|
7859
8024
|
fill: "#e53935",
|
|
7860
8025
|
d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
|
|
7861
8026
|
}
|
|
7862
8027
|
),
|
|
7863
|
-
/* @__PURE__ */ (0,
|
|
8028
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7864
8029
|
"path",
|
|
7865
8030
|
{
|
|
7866
8031
|
fill: "#fff",
|
|
@@ -7870,55 +8035,55 @@ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
7870
8035
|
]
|
|
7871
8036
|
}
|
|
7872
8037
|
);
|
|
7873
|
-
var ExcelIcon2 = () => /* @__PURE__ */ (0,
|
|
8038
|
+
var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
7874
8039
|
"svg",
|
|
7875
8040
|
{
|
|
7876
8041
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7877
8042
|
viewBox: "0 0 48 48",
|
|
7878
8043
|
className: "w-10 h-10",
|
|
7879
8044
|
children: [
|
|
7880
|
-
/* @__PURE__ */ (0,
|
|
8045
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7881
8046
|
"path",
|
|
7882
8047
|
{
|
|
7883
8048
|
fill: "#169154",
|
|
7884
8049
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
7885
8050
|
}
|
|
7886
8051
|
),
|
|
7887
|
-
/* @__PURE__ */ (0,
|
|
8052
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7888
8053
|
"path",
|
|
7889
8054
|
{
|
|
7890
8055
|
fill: "#18482a",
|
|
7891
8056
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
7892
8057
|
}
|
|
7893
8058
|
),
|
|
7894
|
-
/* @__PURE__ */ (0,
|
|
7895
|
-
/* @__PURE__ */ (0,
|
|
7896
|
-
/* @__PURE__ */ (0,
|
|
7897
|
-
/* @__PURE__ */ (0,
|
|
8059
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
8060
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
8061
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("g", { children: [
|
|
8062
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7898
8063
|
"path",
|
|
7899
8064
|
{
|
|
7900
8065
|
fill: "#29c27f",
|
|
7901
8066
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
7902
8067
|
}
|
|
7903
8068
|
),
|
|
7904
|
-
/* @__PURE__ */ (0,
|
|
8069
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7905
8070
|
"path",
|
|
7906
8071
|
{
|
|
7907
8072
|
fill: "#27663f",
|
|
7908
8073
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
7909
8074
|
}
|
|
7910
8075
|
),
|
|
7911
|
-
/* @__PURE__ */ (0,
|
|
7912
|
-
/* @__PURE__ */ (0,
|
|
8076
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
8077
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
7913
8078
|
] }),
|
|
7914
|
-
/* @__PURE__ */ (0,
|
|
8079
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7915
8080
|
"path",
|
|
7916
8081
|
{
|
|
7917
8082
|
fill: "#0c7238",
|
|
7918
8083
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
7919
8084
|
}
|
|
7920
8085
|
),
|
|
7921
|
-
/* @__PURE__ */ (0,
|
|
8086
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7922
8087
|
"path",
|
|
7923
8088
|
{
|
|
7924
8089
|
fill: "#fff",
|
|
@@ -7928,7 +8093,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
7928
8093
|
]
|
|
7929
8094
|
}
|
|
7930
8095
|
);
|
|
7931
|
-
var WordIcon2 = () => /* @__PURE__ */ (0,
|
|
8096
|
+
var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
7932
8097
|
"svg",
|
|
7933
8098
|
{
|
|
7934
8099
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7936,14 +8101,14 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
7936
8101
|
className: "w-10 h-10",
|
|
7937
8102
|
baseProfile: "basic",
|
|
7938
8103
|
children: [
|
|
7939
|
-
/* @__PURE__ */ (0,
|
|
8104
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7940
8105
|
"path",
|
|
7941
8106
|
{
|
|
7942
8107
|
fill: "#283593",
|
|
7943
8108
|
d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
|
|
7944
8109
|
}
|
|
7945
8110
|
),
|
|
7946
|
-
/* @__PURE__ */ (0,
|
|
8111
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
7947
8112
|
"linearGradient",
|
|
7948
8113
|
{
|
|
7949
8114
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -7954,19 +8119,19 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
7954
8119
|
gradientTransform: "translate(0 -339.89)",
|
|
7955
8120
|
gradientUnits: "userSpaceOnUse",
|
|
7956
8121
|
children: [
|
|
7957
|
-
/* @__PURE__ */ (0,
|
|
7958
|
-
/* @__PURE__ */ (0,
|
|
8122
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
8123
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
7959
8124
|
]
|
|
7960
8125
|
}
|
|
7961
8126
|
),
|
|
7962
|
-
/* @__PURE__ */ (0,
|
|
8127
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7963
8128
|
"path",
|
|
7964
8129
|
{
|
|
7965
8130
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
7966
8131
|
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
7967
8132
|
}
|
|
7968
8133
|
),
|
|
7969
|
-
/* @__PURE__ */ (0,
|
|
8134
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7970
8135
|
"path",
|
|
7971
8136
|
{
|
|
7972
8137
|
fill: "#1e88e5",
|
|
@@ -7974,21 +8139,21 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
7974
8139
|
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
7975
8140
|
}
|
|
7976
8141
|
),
|
|
7977
|
-
/* @__PURE__ */ (0,
|
|
8142
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7978
8143
|
"path",
|
|
7979
8144
|
{
|
|
7980
8145
|
fill: "#00e5ff",
|
|
7981
8146
|
d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
|
|
7982
8147
|
}
|
|
7983
8148
|
),
|
|
7984
|
-
/* @__PURE__ */ (0,
|
|
8149
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7985
8150
|
"path",
|
|
7986
8151
|
{
|
|
7987
8152
|
fill: "#1565c0",
|
|
7988
8153
|
d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
|
|
7989
8154
|
}
|
|
7990
8155
|
),
|
|
7991
|
-
/* @__PURE__ */ (0,
|
|
8156
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7992
8157
|
"path",
|
|
7993
8158
|
{
|
|
7994
8159
|
fill: "#fff",
|
|
@@ -7998,42 +8163,42 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
7998
8163
|
]
|
|
7999
8164
|
}
|
|
8000
8165
|
);
|
|
8001
|
-
var StandardIcon2 = () => /* @__PURE__ */ (0,
|
|
8166
|
+
var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8002
8167
|
"svg",
|
|
8003
8168
|
{
|
|
8004
8169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8005
8170
|
viewBox: "0 0 48 48",
|
|
8006
8171
|
className: "w-10 h-10",
|
|
8007
8172
|
children: [
|
|
8008
|
-
/* @__PURE__ */ (0,
|
|
8009
|
-
/* @__PURE__ */ (0,
|
|
8173
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
8174
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
8010
8175
|
]
|
|
8011
8176
|
}
|
|
8012
8177
|
);
|
|
8013
|
-
var PowerPointIcon2 = () => /* @__PURE__ */ (0,
|
|
8178
|
+
var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8014
8179
|
"svg",
|
|
8015
8180
|
{
|
|
8016
8181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8017
8182
|
viewBox: "0 0 48 48",
|
|
8018
8183
|
className: "w-10 h-10",
|
|
8019
8184
|
children: [
|
|
8020
|
-
/* @__PURE__ */ (0,
|
|
8185
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8021
8186
|
"path",
|
|
8022
8187
|
{
|
|
8023
8188
|
fill: "#dc4c2c",
|
|
8024
8189
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
8025
8190
|
}
|
|
8026
8191
|
),
|
|
8027
|
-
/* @__PURE__ */ (0,
|
|
8028
|
-
/* @__PURE__ */ (0,
|
|
8029
|
-
/* @__PURE__ */ (0,
|
|
8192
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
8193
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
8194
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8030
8195
|
"path",
|
|
8031
8196
|
{
|
|
8032
8197
|
fill: "#9b341f",
|
|
8033
8198
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
8034
8199
|
}
|
|
8035
8200
|
),
|
|
8036
|
-
/* @__PURE__ */ (0,
|
|
8201
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8037
8202
|
"path",
|
|
8038
8203
|
{
|
|
8039
8204
|
fill: "#fff",
|
|
@@ -8043,16 +8208,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8043
8208
|
]
|
|
8044
8209
|
}
|
|
8045
8210
|
);
|
|
8046
|
-
var TextIcon2 = () => /* @__PURE__ */ (0,
|
|
8211
|
+
var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8047
8212
|
"svg",
|
|
8048
8213
|
{
|
|
8049
8214
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8050
8215
|
viewBox: "0 0 48 48",
|
|
8051
8216
|
className: "w-10 h-10",
|
|
8052
8217
|
children: [
|
|
8053
|
-
/* @__PURE__ */ (0,
|
|
8054
|
-
/* @__PURE__ */ (0,
|
|
8055
|
-
/* @__PURE__ */ (0,
|
|
8218
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
8219
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
8220
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8056
8221
|
"path",
|
|
8057
8222
|
{
|
|
8058
8223
|
fill: "#1976D2",
|
|
@@ -8062,7 +8227,7 @@ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8062
8227
|
]
|
|
8063
8228
|
}
|
|
8064
8229
|
);
|
|
8065
|
-
var ArchiveIcon2 = () => /* @__PURE__ */ (0,
|
|
8230
|
+
var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8066
8231
|
"svg",
|
|
8067
8232
|
{
|
|
8068
8233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8072,14 +8237,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8072
8237
|
version: "1.0",
|
|
8073
8238
|
className: "w-10 h-10",
|
|
8074
8239
|
children: [
|
|
8075
|
-
/* @__PURE__ */ (0,
|
|
8240
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8076
8241
|
"path",
|
|
8077
8242
|
{
|
|
8078
8243
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
8079
8244
|
"clip-rule": "nonzero"
|
|
8080
8245
|
}
|
|
8081
8246
|
) }) }),
|
|
8082
|
-
/* @__PURE__ */ (0,
|
|
8247
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8083
8248
|
"path",
|
|
8084
8249
|
{
|
|
8085
8250
|
fill: "#ff9100",
|
|
@@ -8088,7 +8253,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8088
8253
|
"fill-rule": "nonzero"
|
|
8089
8254
|
}
|
|
8090
8255
|
) }),
|
|
8091
|
-
/* @__PURE__ */ (0,
|
|
8256
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8092
8257
|
"path",
|
|
8093
8258
|
{
|
|
8094
8259
|
fill: "#fbe9e7",
|
|
@@ -8097,7 +8262,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8097
8262
|
"fill-rule": "nonzero"
|
|
8098
8263
|
}
|
|
8099
8264
|
),
|
|
8100
|
-
/* @__PURE__ */ (0,
|
|
8265
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8101
8266
|
"path",
|
|
8102
8267
|
{
|
|
8103
8268
|
fill: "#ffe0b2",
|
|
@@ -8106,7 +8271,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8106
8271
|
"fill-rule": "nonzero"
|
|
8107
8272
|
}
|
|
8108
8273
|
),
|
|
8109
|
-
/* @__PURE__ */ (0,
|
|
8274
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8110
8275
|
"path",
|
|
8111
8276
|
{
|
|
8112
8277
|
fill: "#ffe0b2",
|
|
@@ -8115,7 +8280,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
|
8115
8280
|
"fill-rule": "nonzero"
|
|
8116
8281
|
}
|
|
8117
8282
|
),
|
|
8118
|
-
/* @__PURE__ */ (0,
|
|
8283
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8119
8284
|
"path",
|
|
8120
8285
|
{
|
|
8121
8286
|
fill: "#ffe0b2",
|
|
@@ -8190,8 +8355,8 @@ var DocumentNode = (props) => {
|
|
|
8190
8355
|
}
|
|
8191
8356
|
}
|
|
8192
8357
|
if (documents.length === 0) {
|
|
8193
|
-
return /* @__PURE__ */ (0,
|
|
8194
|
-
/* @__PURE__ */ (0,
|
|
8358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_jsx_runtime83.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
8359
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8195
8360
|
"svg",
|
|
8196
8361
|
{
|
|
8197
8362
|
className: "w-5 h-5",
|
|
@@ -8199,7 +8364,7 @@ var DocumentNode = (props) => {
|
|
|
8199
8364
|
stroke: "currentColor",
|
|
8200
8365
|
viewBox: "0 0 24 24",
|
|
8201
8366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8202
|
-
children: /* @__PURE__ */ (0,
|
|
8367
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8203
8368
|
"path",
|
|
8204
8369
|
{
|
|
8205
8370
|
strokeLinecap: "round",
|
|
@@ -8210,11 +8375,11 @@ var DocumentNode = (props) => {
|
|
|
8210
8375
|
)
|
|
8211
8376
|
}
|
|
8212
8377
|
) }),
|
|
8213
|
-
/* @__PURE__ */ (0,
|
|
8214
|
-
/* @__PURE__ */ (0,
|
|
8378
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
8379
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
8215
8380
|
] }) });
|
|
8216
8381
|
}
|
|
8217
|
-
return /* @__PURE__ */ (0,
|
|
8382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
8218
8383
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
8219
8384
|
props.assetBaseUrl,
|
|
8220
8385
|
doc.assetUrl
|
|
@@ -8232,16 +8397,16 @@ var DocumentNode = (props) => {
|
|
|
8232
8397
|
}
|
|
8233
8398
|
}
|
|
8234
8399
|
const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
|
|
8235
|
-
return /* @__PURE__ */ (0,
|
|
8400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8236
8401
|
"div",
|
|
8237
8402
|
{
|
|
8238
8403
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
8239
8404
|
children: [
|
|
8240
|
-
/* @__PURE__ */ (0,
|
|
8241
|
-
/* @__PURE__ */ (0,
|
|
8242
|
-
/* @__PURE__ */ (0,
|
|
8405
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
8406
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon2, {}) }),
|
|
8407
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
8243
8408
|
] }),
|
|
8244
|
-
/* @__PURE__ */ (0,
|
|
8409
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8245
8410
|
"a",
|
|
8246
8411
|
{
|
|
8247
8412
|
href: documentUrl,
|
|
@@ -8249,7 +8414,7 @@ var DocumentNode = (props) => {
|
|
|
8249
8414
|
rel: "noopener noreferrer",
|
|
8250
8415
|
className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
|
|
8251
8416
|
children: [
|
|
8252
|
-
/* @__PURE__ */ (0,
|
|
8417
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
8253
8418
|
"svg",
|
|
8254
8419
|
{
|
|
8255
8420
|
className: "w-4 h-4 mr-2",
|
|
@@ -8257,7 +8422,7 @@ var DocumentNode = (props) => {
|
|
|
8257
8422
|
stroke: "currentColor",
|
|
8258
8423
|
viewBox: "0 0 24 24",
|
|
8259
8424
|
children: [
|
|
8260
|
-
/* @__PURE__ */ (0,
|
|
8425
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8261
8426
|
"path",
|
|
8262
8427
|
{
|
|
8263
8428
|
strokeLinecap: "round",
|
|
@@ -8266,7 +8431,7 @@ var DocumentNode = (props) => {
|
|
|
8266
8431
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
8267
8432
|
}
|
|
8268
8433
|
),
|
|
8269
|
-
/* @__PURE__ */ (0,
|
|
8434
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8270
8435
|
"path",
|
|
8271
8436
|
{
|
|
8272
8437
|
strokeLinecap: "round",
|
|
@@ -8292,13 +8457,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
8292
8457
|
|
|
8293
8458
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
8294
8459
|
var import_dynamic12 = __toESM(require("next/dynamic"));
|
|
8295
|
-
var
|
|
8460
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
8296
8461
|
var IframeClient3 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
8297
8462
|
ssr: false
|
|
8298
8463
|
});
|
|
8299
8464
|
var GoogleMapNode = (props) => {
|
|
8300
8465
|
let src = props.node.embedUrl;
|
|
8301
|
-
return /* @__PURE__ */ (0,
|
|
8466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8302
8467
|
IframeClient3,
|
|
8303
8468
|
{
|
|
8304
8469
|
src,
|
|
@@ -8310,7 +8475,7 @@ var GoogleMapNode = (props) => {
|
|
|
8310
8475
|
var GoogleMapNode_default = GoogleMapNode;
|
|
8311
8476
|
|
|
8312
8477
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
8313
|
-
var
|
|
8478
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
8314
8479
|
var Pagination2 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
8315
8480
|
var DataBindingControls2 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
|
|
8316
8481
|
ssr: true
|
|
@@ -8569,7 +8734,7 @@ var DivContainer = async (props) => {
|
|
|
8569
8734
|
response = await serviceClient.get(endpoint);
|
|
8570
8735
|
result = response?.result;
|
|
8571
8736
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
8572
|
-
return /* @__PURE__ */ (0,
|
|
8737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NoDataFound_default, {});
|
|
8573
8738
|
}
|
|
8574
8739
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
8575
8740
|
childCollectionData = getNestedValue6(
|
|
@@ -8589,7 +8754,7 @@ var DivContainer = async (props) => {
|
|
|
8589
8754
|
}
|
|
8590
8755
|
const SelectedNode = NodeTypes2[node.type];
|
|
8591
8756
|
if (!SelectedNode) return null;
|
|
8592
|
-
return /* @__PURE__ */ (0,
|
|
8757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8593
8758
|
SelectedNode,
|
|
8594
8759
|
{
|
|
8595
8760
|
node,
|
|
@@ -8726,7 +8891,7 @@ var DivContainer = async (props) => {
|
|
|
8726
8891
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
8727
8892
|
);
|
|
8728
8893
|
const WrapperComponent = Wrapper;
|
|
8729
|
-
const renderedContainer = /* @__PURE__ */ (0,
|
|
8894
|
+
const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8730
8895
|
WrapperComponent,
|
|
8731
8896
|
{
|
|
8732
8897
|
id: guid,
|
|
@@ -8740,11 +8905,11 @@ var DivContainer = async (props) => {
|
|
|
8740
8905
|
item,
|
|
8741
8906
|
idx,
|
|
8742
8907
|
props.href ? void 0 : item?.links?.view
|
|
8743
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
8908
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
|
|
8744
8909
|
)
|
|
8745
8910
|
}
|
|
8746
8911
|
);
|
|
8747
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0,
|
|
8912
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8748
8913
|
Pagination2,
|
|
8749
8914
|
{
|
|
8750
8915
|
path: props.path,
|
|
@@ -8752,15 +8917,15 @@ var DivContainer = async (props) => {
|
|
|
8752
8917
|
dataset: response
|
|
8753
8918
|
}
|
|
8754
8919
|
) : null;
|
|
8755
|
-
return /* @__PURE__ */ (0,
|
|
8756
|
-
/* @__PURE__ */ (0,
|
|
8920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
|
|
8921
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8757
8922
|
"style",
|
|
8758
8923
|
{
|
|
8759
8924
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
8760
8925
|
}
|
|
8761
8926
|
),
|
|
8762
|
-
showDataBindingControls ? /* @__PURE__ */ (0,
|
|
8763
|
-
/* @__PURE__ */ (0,
|
|
8927
|
+
showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
|
|
8928
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8764
8929
|
DataBindingControls2,
|
|
8765
8930
|
{
|
|
8766
8931
|
mode: "toolbar",
|
|
@@ -8772,18 +8937,18 @@ var DivContainer = async (props) => {
|
|
|
8772
8937
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
8773
8938
|
}
|
|
8774
8939
|
),
|
|
8775
|
-
/* @__PURE__ */ (0,
|
|
8940
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
8776
8941
|
"div",
|
|
8777
8942
|
{
|
|
8778
8943
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
8779
8944
|
children: [
|
|
8780
|
-
/* @__PURE__ */ (0,
|
|
8945
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0", children: [
|
|
8781
8946
|
renderedContainer,
|
|
8782
8947
|
paginationControl
|
|
8783
8948
|
] }),
|
|
8784
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */ (0,
|
|
8785
|
-
/* @__PURE__ */ (0,
|
|
8786
|
-
/* @__PURE__ */ (0,
|
|
8949
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
8950
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
8951
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8787
8952
|
DataBindingControls2,
|
|
8788
8953
|
{
|
|
8789
8954
|
mode: "facets",
|
|
@@ -8797,16 +8962,16 @@ var DivContainer = async (props) => {
|
|
|
8797
8962
|
]
|
|
8798
8963
|
}
|
|
8799
8964
|
)
|
|
8800
|
-
] }) : /* @__PURE__ */ (0,
|
|
8965
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react62.default.Fragment, { children: [
|
|
8801
8966
|
renderedContainer,
|
|
8802
|
-
paginationControl && /* @__PURE__ */ (0,
|
|
8967
|
+
paginationControl && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: paginationControl })
|
|
8803
8968
|
] })
|
|
8804
8969
|
] });
|
|
8805
8970
|
};
|
|
8806
8971
|
var DivContainer_default = DivContainer;
|
|
8807
8972
|
|
|
8808
8973
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
8809
|
-
var
|
|
8974
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
8810
8975
|
var NodeTypes = {
|
|
8811
8976
|
["paragraph"]: ParagraphNode_default,
|
|
8812
8977
|
["heading"]: HeadingNode_default,
|
|
@@ -8844,14 +9009,14 @@ var PageBodyRenderer = (props) => {
|
|
|
8844
9009
|
}
|
|
8845
9010
|
return true;
|
|
8846
9011
|
};
|
|
8847
|
-
return /* @__PURE__ */ (0,
|
|
9012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
8848
9013
|
{
|
|
8849
9014
|
}
|
|
8850
9015
|
const SelectedNode = NodeTypes[node.type];
|
|
8851
9016
|
if (!shouldRenderNode(node)) {
|
|
8852
9017
|
return null;
|
|
8853
9018
|
}
|
|
8854
|
-
return /* @__PURE__ */ (0,
|
|
9019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8855
9020
|
SelectedNode,
|
|
8856
9021
|
{
|
|
8857
9022
|
node,
|
|
@@ -8867,7 +9032,7 @@ var PageBodyRenderer = (props) => {
|
|
|
8867
9032
|
device: props.device,
|
|
8868
9033
|
widgetRenderer: props.widgetRenderer
|
|
8869
9034
|
}
|
|
8870
|
-
) }) : /* @__PURE__ */ (0,
|
|
9035
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8871
9036
|
SelectedNode,
|
|
8872
9037
|
{
|
|
8873
9038
|
node,
|
|
@@ -8938,7 +9103,7 @@ function EnterAnimationHydrator() {
|
|
|
8938
9103
|
// src/components/Toast.tsx
|
|
8939
9104
|
var import_react65 = require("react");
|
|
8940
9105
|
init_ToastService();
|
|
8941
|
-
var
|
|
9106
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
8942
9107
|
var Toast = () => {
|
|
8943
9108
|
const [showToast, setShowToast] = (0, import_react65.useState)(false);
|
|
8944
9109
|
const [message, setMessage] = (0, import_react65.useState)("");
|
|
@@ -8972,8 +9137,8 @@ var Toast = () => {
|
|
|
8972
9137
|
});
|
|
8973
9138
|
};
|
|
8974
9139
|
}, [closeToast, showMessage]);
|
|
8975
|
-
return /* @__PURE__ */ (0,
|
|
8976
|
-
/* @__PURE__ */ (0,
|
|
9140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
9141
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
8977
9142
|
"span",
|
|
8978
9143
|
{
|
|
8979
9144
|
className: "font-medium text-inherit text-sm",
|
|
@@ -8981,7 +9146,7 @@ var Toast = () => {
|
|
|
8981
9146
|
children: message
|
|
8982
9147
|
}
|
|
8983
9148
|
),
|
|
8984
|
-
/* @__PURE__ */ (0,
|
|
9149
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
8985
9150
|
"svg",
|
|
8986
9151
|
{
|
|
8987
9152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8989,7 +9154,7 @@ var Toast = () => {
|
|
|
8989
9154
|
fill: "none",
|
|
8990
9155
|
viewBox: "0 0 24 24",
|
|
8991
9156
|
stroke: "currentColor",
|
|
8992
|
-
children: /* @__PURE__ */ (0,
|
|
9157
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
8993
9158
|
}
|
|
8994
9159
|
) })
|
|
8995
9160
|
] }) }) });
|
|
@@ -9020,7 +9185,7 @@ init_Switcher();
|
|
|
9020
9185
|
// src/components/NavigationTabsV2.tsx
|
|
9021
9186
|
var import_link3 = __toESM(require("next/link"));
|
|
9022
9187
|
var import_navigation2 = require("next/navigation");
|
|
9023
|
-
var
|
|
9188
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
9024
9189
|
function resolveRoutePlaceholders(route, params) {
|
|
9025
9190
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
9026
9191
|
const value = params[key];
|
|
@@ -9045,8 +9210,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
9045
9210
|
isActive: tab.isActive
|
|
9046
9211
|
})) || [];
|
|
9047
9212
|
if (mappedTabs.length === 0) return null;
|
|
9048
|
-
return /* @__PURE__ */ (0,
|
|
9049
|
-
return /* @__PURE__ */ (0,
|
|
9213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
9214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
9050
9215
|
"div",
|
|
9051
9216
|
{
|
|
9052
9217
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -9065,9 +9230,9 @@ var import_navigation3 = require("next/navigation");
|
|
|
9065
9230
|
|
|
9066
9231
|
// src/components/dataForm/NoContentView.tsx
|
|
9067
9232
|
var import_react66 = __toESM(require("react"));
|
|
9068
|
-
var
|
|
9233
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
9069
9234
|
var NoContentView = (props) => {
|
|
9070
|
-
return /* @__PURE__ */ (0,
|
|
9235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react66.default.Fragment, { children: props.isDataFound === false && props.children });
|
|
9071
9236
|
};
|
|
9072
9237
|
var NoContentView_default = NoContentView;
|
|
9073
9238
|
|
|
@@ -9076,38 +9241,38 @@ init_InputControlType();
|
|
|
9076
9241
|
|
|
9077
9242
|
// src/components/dataForm/ContentView.tsx
|
|
9078
9243
|
var import_react67 = __toESM(require("react"));
|
|
9079
|
-
var
|
|
9244
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
9080
9245
|
var ContentView = (props) => {
|
|
9081
|
-
return /* @__PURE__ */ (0,
|
|
9082
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
9083
|
-
/* @__PURE__ */ (0,
|
|
9084
|
-
/* @__PURE__ */ (0,
|
|
9085
|
-
/* @__PURE__ */ (0,
|
|
9086
|
-
/* @__PURE__ */ (0,
|
|
9087
|
-
/* @__PURE__ */ (0,
|
|
9246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_react67.default.Fragment, { children: [
|
|
9247
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
9248
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
9249
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
9250
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "ml-2", children: [
|
|
9251
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
9252
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
9088
9253
|
] })
|
|
9089
9254
|
] }),
|
|
9090
|
-
/* @__PURE__ */ (0,
|
|
9091
|
-
/* @__PURE__ */ (0,
|
|
9092
|
-
/* @__PURE__ */ (0,
|
|
9093
|
-
/* @__PURE__ */ (0,
|
|
9094
|
-
/* @__PURE__ */ (0,
|
|
9095
|
-
/* @__PURE__ */ (0,
|
|
9096
|
-
/* @__PURE__ */ (0,
|
|
9255
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
9256
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
|
|
9257
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
9258
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
9259
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
9260
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
9261
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
9097
9262
|
] }),
|
|
9098
|
-
/* @__PURE__ */ (0,
|
|
9099
|
-
/* @__PURE__ */ (0,
|
|
9100
|
-
/* @__PURE__ */ (0,
|
|
9101
|
-
/* @__PURE__ */ (0,
|
|
9102
|
-
/* @__PURE__ */ (0,
|
|
9103
|
-
/* @__PURE__ */ (0,
|
|
9263
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
|
|
9264
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
9265
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
9266
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
9267
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
9268
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
9104
9269
|
] }),
|
|
9105
|
-
/* @__PURE__ */ (0,
|
|
9106
|
-
/* @__PURE__ */ (0,
|
|
9107
|
-
/* @__PURE__ */ (0,
|
|
9108
|
-
/* @__PURE__ */ (0,
|
|
9109
|
-
/* @__PURE__ */ (0,
|
|
9110
|
-
/* @__PURE__ */ (0,
|
|
9270
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "animate-pulse", children: [
|
|
9271
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
9272
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
9273
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
9274
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
9275
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
9111
9276
|
] })
|
|
9112
9277
|
] })
|
|
9113
9278
|
] }) }),
|
|
@@ -9167,7 +9332,7 @@ function FormReducer(state, action) {
|
|
|
9167
9332
|
var FormReducer_default = FormReducer;
|
|
9168
9333
|
|
|
9169
9334
|
// src/components/dataForm/DataList.tsx
|
|
9170
|
-
var
|
|
9335
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
9171
9336
|
var DataList = (props) => {
|
|
9172
9337
|
const router = (0, import_navigation3.useRouter)();
|
|
9173
9338
|
let builder = new OdataBuilder(props.path);
|
|
@@ -9208,7 +9373,7 @@ var DataList = (props) => {
|
|
|
9208
9373
|
if (path.includes(".")) {
|
|
9209
9374
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
9210
9375
|
} else if (Array.isArray(obj[path])) {
|
|
9211
|
-
return obj[path].map((item, index) => /* @__PURE__ */ (0,
|
|
9376
|
+
return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: item }, index));
|
|
9212
9377
|
} else {
|
|
9213
9378
|
return obj[path];
|
|
9214
9379
|
}
|
|
@@ -9290,30 +9455,30 @@ var DataList = (props) => {
|
|
|
9290
9455
|
const renderPageNumbers = () => {
|
|
9291
9456
|
if (pages <= 10) {
|
|
9292
9457
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
9293
|
-
(page) => /* @__PURE__ */ (0,
|
|
9458
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9294
9459
|
Hyperlink,
|
|
9295
9460
|
{
|
|
9296
9461
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9297
9462
|
href: builder.getNewPageUrl(page),
|
|
9298
9463
|
children: page
|
|
9299
9464
|
}
|
|
9300
|
-
) : /* @__PURE__ */ (0,
|
|
9465
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
9301
9466
|
);
|
|
9302
9467
|
} else {
|
|
9303
9468
|
const showFirstPages = activePageNumber <= 5;
|
|
9304
9469
|
const showLastPages = activePageNumber > pages - 5;
|
|
9305
9470
|
if (showFirstPages) {
|
|
9306
|
-
return /* @__PURE__ */ (0,
|
|
9307
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0,
|
|
9471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
9472
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9308
9473
|
Hyperlink,
|
|
9309
9474
|
{
|
|
9310
9475
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9311
9476
|
href: builder.getNewPageUrl(page),
|
|
9312
9477
|
children: page
|
|
9313
9478
|
}
|
|
9314
|
-
) : /* @__PURE__ */ (0,
|
|
9315
|
-
/* @__PURE__ */ (0,
|
|
9316
|
-
/* @__PURE__ */ (0,
|
|
9479
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
9480
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9481
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9317
9482
|
Hyperlink,
|
|
9318
9483
|
{
|
|
9319
9484
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9321,7 +9486,7 @@ var DataList = (props) => {
|
|
|
9321
9486
|
children: pages - 1
|
|
9322
9487
|
}
|
|
9323
9488
|
),
|
|
9324
|
-
/* @__PURE__ */ (0,
|
|
9489
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9325
9490
|
Hyperlink,
|
|
9326
9491
|
{
|
|
9327
9492
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9329,7 +9494,7 @@ var DataList = (props) => {
|
|
|
9329
9494
|
children: pages
|
|
9330
9495
|
}
|
|
9331
9496
|
),
|
|
9332
|
-
/* @__PURE__ */ (0,
|
|
9497
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9333
9498
|
"select",
|
|
9334
9499
|
{
|
|
9335
9500
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -9341,18 +9506,18 @@ var DataList = (props) => {
|
|
|
9341
9506
|
}
|
|
9342
9507
|
},
|
|
9343
9508
|
children: [
|
|
9344
|
-
/* @__PURE__ */ (0,
|
|
9509
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { className: "", value: "", children: "Jump to" }),
|
|
9345
9510
|
Array.from(
|
|
9346
9511
|
{ length: Math.max(0, pages - 10) },
|
|
9347
9512
|
(_, index) => index + 9
|
|
9348
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
9513
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: page, children: page }, page))
|
|
9349
9514
|
]
|
|
9350
9515
|
}
|
|
9351
9516
|
) })
|
|
9352
9517
|
] });
|
|
9353
9518
|
} else if (showLastPages) {
|
|
9354
|
-
return /* @__PURE__ */ (0,
|
|
9355
|
-
/* @__PURE__ */ (0,
|
|
9519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
9520
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9356
9521
|
Hyperlink,
|
|
9357
9522
|
{
|
|
9358
9523
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9360,7 +9525,7 @@ var DataList = (props) => {
|
|
|
9360
9525
|
children: "1"
|
|
9361
9526
|
}
|
|
9362
9527
|
),
|
|
9363
|
-
/* @__PURE__ */ (0,
|
|
9528
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9364
9529
|
Hyperlink,
|
|
9365
9530
|
{
|
|
9366
9531
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9368,21 +9533,21 @@ var DataList = (props) => {
|
|
|
9368
9533
|
children: "2"
|
|
9369
9534
|
}
|
|
9370
9535
|
),
|
|
9371
|
-
/* @__PURE__ */ (0,
|
|
9536
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9372
9537
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
9373
|
-
(page) => /* @__PURE__ */ (0,
|
|
9538
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9374
9539
|
Hyperlink,
|
|
9375
9540
|
{
|
|
9376
9541
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9377
9542
|
href: builder.getNewPageUrl(page),
|
|
9378
9543
|
children: page
|
|
9379
9544
|
}
|
|
9380
|
-
) : /* @__PURE__ */ (0,
|
|
9545
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
9381
9546
|
)
|
|
9382
9547
|
] });
|
|
9383
9548
|
} else {
|
|
9384
|
-
return /* @__PURE__ */ (0,
|
|
9385
|
-
/* @__PURE__ */ (0,
|
|
9549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
9550
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9386
9551
|
Hyperlink,
|
|
9387
9552
|
{
|
|
9388
9553
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9390,7 +9555,7 @@ var DataList = (props) => {
|
|
|
9390
9555
|
children: "1"
|
|
9391
9556
|
}
|
|
9392
9557
|
),
|
|
9393
|
-
/* @__PURE__ */ (0,
|
|
9558
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9394
9559
|
Hyperlink,
|
|
9395
9560
|
{
|
|
9396
9561
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9398,20 +9563,20 @@ var DataList = (props) => {
|
|
|
9398
9563
|
children: "2"
|
|
9399
9564
|
}
|
|
9400
9565
|
),
|
|
9401
|
-
/* @__PURE__ */ (0,
|
|
9566
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9402
9567
|
Array.from(
|
|
9403
9568
|
{ length: 5 },
|
|
9404
9569
|
(_, index) => activePageNumber - 2 + index
|
|
9405
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
9570
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9406
9571
|
Hyperlink,
|
|
9407
9572
|
{
|
|
9408
9573
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
9409
9574
|
href: builder.getNewPageUrl(page),
|
|
9410
9575
|
children: page
|
|
9411
9576
|
}
|
|
9412
|
-
) : /* @__PURE__ */ (0,
|
|
9413
|
-
/* @__PURE__ */ (0,
|
|
9414
|
-
/* @__PURE__ */ (0,
|
|
9577
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
9578
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
9579
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9415
9580
|
Hyperlink,
|
|
9416
9581
|
{
|
|
9417
9582
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9419,7 +9584,7 @@ var DataList = (props) => {
|
|
|
9419
9584
|
children: pages - 1
|
|
9420
9585
|
}
|
|
9421
9586
|
),
|
|
9422
|
-
/* @__PURE__ */ (0,
|
|
9587
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9423
9588
|
Hyperlink,
|
|
9424
9589
|
{
|
|
9425
9590
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -9427,7 +9592,7 @@ var DataList = (props) => {
|
|
|
9427
9592
|
children: pages
|
|
9428
9593
|
}
|
|
9429
9594
|
),
|
|
9430
|
-
/* @__PURE__ */ (0,
|
|
9595
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9431
9596
|
"select",
|
|
9432
9597
|
{
|
|
9433
9598
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -9439,8 +9604,8 @@ var DataList = (props) => {
|
|
|
9439
9604
|
}
|
|
9440
9605
|
},
|
|
9441
9606
|
children: [
|
|
9442
|
-
/* @__PURE__ */ (0,
|
|
9443
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0,
|
|
9607
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: "", children: "Jump to" }),
|
|
9608
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("option", { value: page, children: page }, page))
|
|
9444
9609
|
]
|
|
9445
9610
|
}
|
|
9446
9611
|
) })
|
|
@@ -9448,16 +9613,16 @@ var DataList = (props) => {
|
|
|
9448
9613
|
}
|
|
9449
9614
|
}
|
|
9450
9615
|
};
|
|
9451
|
-
return /* @__PURE__ */ (0,
|
|
9452
|
-
/* @__PURE__ */ (0,
|
|
9453
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
9616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_react68.default.Fragment, { children: [
|
|
9617
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(ContentView_default, { isDataFound, children: [
|
|
9618
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9454
9619
|
"div",
|
|
9455
9620
|
{
|
|
9456
9621
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
9457
9622
|
children: [
|
|
9458
|
-
props.title ? /* @__PURE__ */ (0,
|
|
9459
|
-
/* @__PURE__ */ (0,
|
|
9460
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
9623
|
+
props.title ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", {}),
|
|
9624
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
9625
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9461
9626
|
InputControl_default,
|
|
9462
9627
|
{
|
|
9463
9628
|
name: "Search_input",
|
|
@@ -9469,7 +9634,7 @@ var DataList = (props) => {
|
|
|
9469
9634
|
}
|
|
9470
9635
|
}
|
|
9471
9636
|
),
|
|
9472
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
9637
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9473
9638
|
InputControl_default,
|
|
9474
9639
|
{
|
|
9475
9640
|
name: filter.name,
|
|
@@ -9484,15 +9649,15 @@ var DataList = (props) => {
|
|
|
9484
9649
|
},
|
|
9485
9650
|
filter.name
|
|
9486
9651
|
)),
|
|
9487
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
9652
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9488
9653
|
Hyperlink,
|
|
9489
9654
|
{
|
|
9490
9655
|
className: "gap-1",
|
|
9491
9656
|
linkType: "Primary" /* Solid */,
|
|
9492
9657
|
href: props.addLinkHref,
|
|
9493
9658
|
children: [
|
|
9494
|
-
/* @__PURE__ */ (0,
|
|
9495
|
-
/* @__PURE__ */ (0,
|
|
9659
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
9660
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
9496
9661
|
]
|
|
9497
9662
|
}
|
|
9498
9663
|
)
|
|
@@ -9500,8 +9665,8 @@ var DataList = (props) => {
|
|
|
9500
9665
|
]
|
|
9501
9666
|
}
|
|
9502
9667
|
),
|
|
9503
|
-
/* @__PURE__ */ (0,
|
|
9504
|
-
/* @__PURE__ */ (0,
|
|
9668
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
9669
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("tr", { children: [
|
|
9505
9670
|
props?.columns?.map((column) => {
|
|
9506
9671
|
let url = builder.getNewOrderByUrl(column.name);
|
|
9507
9672
|
let icon = "chevronUpDown";
|
|
@@ -9512,18 +9677,18 @@ var DataList = (props) => {
|
|
|
9512
9677
|
icon = "chevronUp";
|
|
9513
9678
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
9514
9679
|
}
|
|
9515
|
-
return /* @__PURE__ */ (0,
|
|
9680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9516
9681
|
"th",
|
|
9517
9682
|
{
|
|
9518
9683
|
className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
9519
|
-
children: /* @__PURE__ */ (0,
|
|
9684
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9520
9685
|
Hyperlink,
|
|
9521
9686
|
{
|
|
9522
9687
|
href: column.enableSorting ? url : void 0,
|
|
9523
9688
|
className: "!text-neutral-contrast ",
|
|
9524
|
-
children: /* @__PURE__ */ (0,
|
|
9525
|
-
/* @__PURE__ */ (0,
|
|
9526
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
9689
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
9690
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-black", children: column.label }),
|
|
9691
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
9527
9692
|
] })
|
|
9528
9693
|
}
|
|
9529
9694
|
)
|
|
@@ -9531,25 +9696,25 @@ var DataList = (props) => {
|
|
|
9531
9696
|
column.name
|
|
9532
9697
|
);
|
|
9533
9698
|
}),
|
|
9534
|
-
props.onQuickView && /* @__PURE__ */ (0,
|
|
9699
|
+
props.onQuickView && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
|
|
9535
9700
|
] }) }),
|
|
9536
|
-
/* @__PURE__ */ (0,
|
|
9701
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
9537
9702
|
let validityClass = "";
|
|
9538
9703
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
9539
9704
|
validityClass = "bg-alert-200";
|
|
9540
9705
|
}
|
|
9541
|
-
return /* @__PURE__ */ (0,
|
|
9706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("tr", { className: validityClass, children: [
|
|
9542
9707
|
props?.columns?.map((column, colindex) => {
|
|
9543
|
-
return /* @__PURE__ */ (0,
|
|
9708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react68.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9544
9709
|
"td",
|
|
9545
9710
|
{
|
|
9546
9711
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
9547
|
-
children: column.addhref === true ? /* @__PURE__ */ (0,
|
|
9712
|
+
children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9548
9713
|
Hyperlink,
|
|
9549
9714
|
{
|
|
9550
9715
|
className: "",
|
|
9551
9716
|
href: `https://${dataitem[column.name]}`,
|
|
9552
|
-
children: /* @__PURE__ */ (0,
|
|
9717
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9553
9718
|
ViewControl_default,
|
|
9554
9719
|
{
|
|
9555
9720
|
controlType: column.controlType,
|
|
@@ -9562,11 +9727,11 @@ var DataList = (props) => {
|
|
|
9562
9727
|
}
|
|
9563
9728
|
)
|
|
9564
9729
|
}
|
|
9565
|
-
) : column.showAsLink ? /* @__PURE__ */ (0,
|
|
9730
|
+
) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9566
9731
|
Hyperlink,
|
|
9567
9732
|
{
|
|
9568
9733
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
9569
|
-
children: /* @__PURE__ */ (0,
|
|
9734
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9570
9735
|
ViewControl_default,
|
|
9571
9736
|
{
|
|
9572
9737
|
controlType: column.controlType,
|
|
@@ -9576,7 +9741,7 @@ var DataList = (props) => {
|
|
|
9576
9741
|
}
|
|
9577
9742
|
)
|
|
9578
9743
|
}
|
|
9579
|
-
) : /* @__PURE__ */ (0,
|
|
9744
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9580
9745
|
ViewControl_default,
|
|
9581
9746
|
{
|
|
9582
9747
|
controlType: column.controlType,
|
|
@@ -9588,7 +9753,7 @@ var DataList = (props) => {
|
|
|
9588
9753
|
}
|
|
9589
9754
|
) }, colindex);
|
|
9590
9755
|
}),
|
|
9591
|
-
props.onQuickView && /* @__PURE__ */ (0,
|
|
9756
|
+
props.onQuickView && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9592
9757
|
"button",
|
|
9593
9758
|
{
|
|
9594
9759
|
type: "button",
|
|
@@ -9598,7 +9763,7 @@ var DataList = (props) => {
|
|
|
9598
9763
|
},
|
|
9599
9764
|
className: "inline-flex items-center gap-1.5 px-3 py-1 text-xs font-semibold rounded-md border border-neutral-300 bg-white hover:bg-neutral-100 text-neutral-800 transition-colors shadow-xs",
|
|
9600
9765
|
children: [
|
|
9601
|
-
/* @__PURE__ */ (0,
|
|
9766
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9602
9767
|
"svg",
|
|
9603
9768
|
{
|
|
9604
9769
|
className: "w-3.5 h-3.5",
|
|
@@ -9609,22 +9774,22 @@ var DataList = (props) => {
|
|
|
9609
9774
|
strokeLinecap: "round",
|
|
9610
9775
|
strokeLinejoin: "round",
|
|
9611
9776
|
children: [
|
|
9612
|
-
/* @__PURE__ */ (0,
|
|
9613
|
-
/* @__PURE__ */ (0,
|
|
9777
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
9778
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("circle", { cx: "12", cy: "12", r: "3" })
|
|
9614
9779
|
]
|
|
9615
9780
|
}
|
|
9616
9781
|
),
|
|
9617
|
-
/* @__PURE__ */ (0,
|
|
9782
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: props.quickViewLabel || "Quick View" })
|
|
9618
9783
|
]
|
|
9619
9784
|
}
|
|
9620
9785
|
) })
|
|
9621
9786
|
] }, index);
|
|
9622
9787
|
}) })
|
|
9623
9788
|
] }) }),
|
|
9624
|
-
/* @__PURE__ */ (0,
|
|
9625
|
-
/* @__PURE__ */ (0,
|
|
9626
|
-
/* @__PURE__ */ (0,
|
|
9627
|
-
activePageNumber > 1 && /* @__PURE__ */ (0,
|
|
9789
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
9790
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "text-gray-700", children: label }),
|
|
9791
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex space-x-2 items-center", children: [
|
|
9792
|
+
activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9628
9793
|
Hyperlink,
|
|
9629
9794
|
{
|
|
9630
9795
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -9632,9 +9797,9 @@ var DataList = (props) => {
|
|
|
9632
9797
|
children: "Prev"
|
|
9633
9798
|
}
|
|
9634
9799
|
),
|
|
9635
|
-
activePageNumber <= 1 && /* @__PURE__ */ (0,
|
|
9800
|
+
activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
|
|
9636
9801
|
renderPageNumbers(),
|
|
9637
|
-
activePageNumber < pages && /* @__PURE__ */ (0,
|
|
9802
|
+
activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9638
9803
|
Hyperlink,
|
|
9639
9804
|
{
|
|
9640
9805
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -9642,19 +9807,19 @@ var DataList = (props) => {
|
|
|
9642
9807
|
children: "Next"
|
|
9643
9808
|
}
|
|
9644
9809
|
),
|
|
9645
|
-
activePageNumber >= pages && /* @__PURE__ */ (0,
|
|
9810
|
+
activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
9646
9811
|
] })
|
|
9647
9812
|
] }) })
|
|
9648
9813
|
] }),
|
|
9649
|
-
/* @__PURE__ */ (0,
|
|
9650
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
9814
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(NoContentView_default, { isDataFound, children: [
|
|
9815
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9651
9816
|
"div",
|
|
9652
9817
|
{
|
|
9653
9818
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200`,
|
|
9654
9819
|
children: [
|
|
9655
|
-
props.title ? /* @__PURE__ */ (0,
|
|
9656
|
-
/* @__PURE__ */ (0,
|
|
9657
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
9820
|
+
props.title ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", {}),
|
|
9821
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
9822
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9658
9823
|
InputControl_default,
|
|
9659
9824
|
{
|
|
9660
9825
|
name: "Search_input",
|
|
@@ -9666,7 +9831,7 @@ var DataList = (props) => {
|
|
|
9666
9831
|
}
|
|
9667
9832
|
}
|
|
9668
9833
|
),
|
|
9669
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
9834
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9670
9835
|
InputControl_default,
|
|
9671
9836
|
{
|
|
9672
9837
|
name: filter.name,
|
|
@@ -9681,15 +9846,15 @@ var DataList = (props) => {
|
|
|
9681
9846
|
},
|
|
9682
9847
|
filter.name
|
|
9683
9848
|
)),
|
|
9684
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
9849
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
9685
9850
|
Hyperlink,
|
|
9686
9851
|
{
|
|
9687
9852
|
className: "gap-1",
|
|
9688
9853
|
linkType: "Primary" /* Solid */,
|
|
9689
9854
|
href: props.addLinkHref,
|
|
9690
9855
|
children: [
|
|
9691
|
-
/* @__PURE__ */ (0,
|
|
9692
|
-
/* @__PURE__ */ (0,
|
|
9856
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
9857
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
9693
9858
|
]
|
|
9694
9859
|
}
|
|
9695
9860
|
)
|
|
@@ -9697,8 +9862,8 @@ var DataList = (props) => {
|
|
|
9697
9862
|
]
|
|
9698
9863
|
}
|
|
9699
9864
|
),
|
|
9700
|
-
/* @__PURE__ */ (0,
|
|
9701
|
-
/* @__PURE__ */ (0,
|
|
9865
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
9866
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tr", { children: props?.columns?.map((column) => {
|
|
9702
9867
|
let url = builder.getNewOrderByUrl(column.name);
|
|
9703
9868
|
let icon = "chevronUpDown";
|
|
9704
9869
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -9708,18 +9873,18 @@ var DataList = (props) => {
|
|
|
9708
9873
|
icon = "chevronUp";
|
|
9709
9874
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
9710
9875
|
}
|
|
9711
|
-
return /* @__PURE__ */ (0,
|
|
9876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9712
9877
|
"th",
|
|
9713
9878
|
{
|
|
9714
9879
|
className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
9715
|
-
children: /* @__PURE__ */ (0,
|
|
9880
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9716
9881
|
Hyperlink,
|
|
9717
9882
|
{
|
|
9718
9883
|
href: column.enableSorting ? url : void 0,
|
|
9719
9884
|
className: "text-body-950",
|
|
9720
|
-
children: /* @__PURE__ */ (0,
|
|
9721
|
-
/* @__PURE__ */ (0,
|
|
9722
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
9885
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
9886
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { children: column.label }),
|
|
9887
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
9723
9888
|
] })
|
|
9724
9889
|
}
|
|
9725
9890
|
)
|
|
@@ -9727,7 +9892,7 @@ var DataList = (props) => {
|
|
|
9727
9892
|
column.name
|
|
9728
9893
|
);
|
|
9729
9894
|
}) }) }) }) }),
|
|
9730
|
-
/* @__PURE__ */ (0,
|
|
9895
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
9731
9896
|
] })
|
|
9732
9897
|
] })
|
|
9733
9898
|
] });
|
|
@@ -9740,7 +9905,7 @@ init_ServiceClient();
|
|
|
9740
9905
|
init_OdataBuilder();
|
|
9741
9906
|
init_SelectWithSearchInput();
|
|
9742
9907
|
var import_navigation4 = require("next/navigation");
|
|
9743
|
-
var
|
|
9908
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
9744
9909
|
var viewControlMap = {
|
|
9745
9910
|
number: ViewControlTypes.number,
|
|
9746
9911
|
lineText: ViewControlTypes.lineText,
|
|
@@ -9835,13 +10000,13 @@ var DataListRenderer = ({
|
|
|
9835
10000
|
isActive: landingPageUrl === pathname
|
|
9836
10001
|
};
|
|
9837
10002
|
});
|
|
9838
|
-
return /* @__PURE__ */ (0,
|
|
10003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react69.default.Fragment, { children: [
|
|
9839
10004
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
9840
10005
|
// tabs={resolvedTabs}
|
|
9841
10006
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
9842
10007
|
// />
|
|
9843
|
-
/* @__PURE__ */ (0,
|
|
9844
|
-
/* @__PURE__ */ (0,
|
|
10008
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
10009
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
9845
10010
|
DataList_default,
|
|
9846
10011
|
{
|
|
9847
10012
|
addLinkHref,
|
|
@@ -9898,7 +10063,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
9898
10063
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
9899
10064
|
|
|
9900
10065
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
9901
|
-
var
|
|
10066
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
9902
10067
|
var DataFormChildSection = (props) => {
|
|
9903
10068
|
const { section } = props;
|
|
9904
10069
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -9966,14 +10131,14 @@ var DataFormChildSection = (props) => {
|
|
|
9966
10131
|
childItemsToRender,
|
|
9967
10132
|
allChildItems: childItems
|
|
9968
10133
|
});
|
|
9969
|
-
return /* @__PURE__ */ (0,
|
|
9970
|
-
section.sectionTitle && /* @__PURE__ */ (0,
|
|
9971
|
-
/* @__PURE__ */ (0,
|
|
9972
|
-
/* @__PURE__ */ (0,
|
|
9973
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0,
|
|
9974
|
-
return /* @__PURE__ */ (0,
|
|
10134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react70.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
10135
|
+
section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
10136
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
10137
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
10138
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
10139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("tr", { className: "", children: [
|
|
9975
10140
|
sectionRow.elements.map((field, index) => {
|
|
9976
|
-
return /* @__PURE__ */ (0,
|
|
10141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
9977
10142
|
"th",
|
|
9978
10143
|
{
|
|
9979
10144
|
className: "py-3 font-normal text-left",
|
|
@@ -9982,21 +10147,21 @@ var DataFormChildSection = (props) => {
|
|
|
9982
10147
|
field.name
|
|
9983
10148
|
);
|
|
9984
10149
|
}),
|
|
9985
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
10150
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
9986
10151
|
] }, sectionRowIndex);
|
|
9987
10152
|
}) }),
|
|
9988
|
-
/* @__PURE__ */ (0,
|
|
10153
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
9989
10154
|
const { item, originalIndex } = visibleItem;
|
|
9990
10155
|
const rowKey = originalIndex;
|
|
9991
|
-
return /* @__PURE__ */ (0,
|
|
10156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react70.default.Fragment, { children: section.sectionRows.map(
|
|
9992
10157
|
(sectionRow, sectionRowIndex) => {
|
|
9993
|
-
return /* @__PURE__ */ (0,
|
|
10158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
9994
10159
|
"tr",
|
|
9995
10160
|
{
|
|
9996
10161
|
className: "",
|
|
9997
10162
|
children: [
|
|
9998
10163
|
sectionRow.elements.map((field, index) => {
|
|
9999
|
-
return /* @__PURE__ */ (0,
|
|
10164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10000
10165
|
InputControl_default,
|
|
10001
10166
|
{
|
|
10002
10167
|
index: filteredIndex,
|
|
@@ -10016,7 +10181,7 @@ var DataFormChildSection = (props) => {
|
|
|
10016
10181
|
}
|
|
10017
10182
|
) }) }) }, field.name);
|
|
10018
10183
|
}),
|
|
10019
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
10184
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10020
10185
|
ClientButton_default,
|
|
10021
10186
|
{
|
|
10022
10187
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -10025,7 +10190,7 @@ var DataFormChildSection = (props) => {
|
|
|
10025
10190
|
},
|
|
10026
10191
|
dataRole: "delete",
|
|
10027
10192
|
tabIndex: -1,
|
|
10028
|
-
children: /* @__PURE__ */ (0,
|
|
10193
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10029
10194
|
Icon_default,
|
|
10030
10195
|
{
|
|
10031
10196
|
className: "w-4 h-4",
|
|
@@ -10042,7 +10207,7 @@ var DataFormChildSection = (props) => {
|
|
|
10042
10207
|
) }, rowKey);
|
|
10043
10208
|
}) })
|
|
10044
10209
|
] }) }),
|
|
10045
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
10210
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10046
10211
|
ClientButton_default,
|
|
10047
10212
|
{
|
|
10048
10213
|
ButtonType: "Link" /* Link */,
|
|
@@ -10057,7 +10222,7 @@ var DataFormChildSection = (props) => {
|
|
|
10057
10222
|
var DataFormChildSection_default = DataFormChildSection;
|
|
10058
10223
|
|
|
10059
10224
|
// src/components/dataForm/DataForm.tsx
|
|
10060
|
-
var
|
|
10225
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
10061
10226
|
var DataForm = (props) => {
|
|
10062
10227
|
const formRef = (0, import_react71.useRef)(null);
|
|
10063
10228
|
console.log(props.dataItem, "dssads");
|
|
@@ -10277,19 +10442,19 @@ var DataForm = (props) => {
|
|
|
10277
10442
|
return false;
|
|
10278
10443
|
}
|
|
10279
10444
|
}
|
|
10280
|
-
return /* @__PURE__ */ (0,
|
|
10281
|
-
props.title && /* @__PURE__ */ (0,
|
|
10445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react71.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
10446
|
+
props.title && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
10282
10447
|
"div",
|
|
10283
10448
|
{
|
|
10284
10449
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
10285
10450
|
onClick: () => window.history.back(),
|
|
10286
10451
|
children: [
|
|
10287
|
-
/* @__PURE__ */ (0,
|
|
10288
|
-
/* @__PURE__ */ (0,
|
|
10452
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
10453
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
10289
10454
|
]
|
|
10290
10455
|
}
|
|
10291
10456
|
) }),
|
|
10292
|
-
/* @__PURE__ */ (0,
|
|
10457
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10293
10458
|
"form",
|
|
10294
10459
|
{
|
|
10295
10460
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -10310,8 +10475,8 @@ var DataForm = (props) => {
|
|
|
10310
10475
|
}
|
|
10311
10476
|
}
|
|
10312
10477
|
},
|
|
10313
|
-
children: /* @__PURE__ */ (0,
|
|
10314
|
-
return /* @__PURE__ */ (0,
|
|
10478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
10479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react71.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
10315
10480
|
section.sectionRows?.map(
|
|
10316
10481
|
(sectionRow, sectionRowIndex) => {
|
|
10317
10482
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -10322,14 +10487,14 @@ var DataForm = (props) => {
|
|
|
10322
10487
|
sectionRow.visible
|
|
10323
10488
|
);
|
|
10324
10489
|
}
|
|
10325
|
-
return /* @__PURE__ */ (0,
|
|
10326
|
-
return /* @__PURE__ */ (0,
|
|
10490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react71.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
10491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
10327
10492
|
"div",
|
|
10328
10493
|
{
|
|
10329
10494
|
className: sectionRow.grow ? "grow" : "",
|
|
10330
10495
|
children: [
|
|
10331
|
-
/* @__PURE__ */ (0,
|
|
10332
|
-
/* @__PURE__ */ (0,
|
|
10496
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: field.controlType }),
|
|
10497
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10333
10498
|
InputControl_default,
|
|
10334
10499
|
{
|
|
10335
10500
|
name: field.name,
|
|
@@ -10359,12 +10524,12 @@ var DataForm = (props) => {
|
|
|
10359
10524
|
}) }) }, sectionRowIndex);
|
|
10360
10525
|
}
|
|
10361
10526
|
),
|
|
10362
|
-
/* @__PURE__ */ (0,
|
|
10527
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: section.childSections?.map(
|
|
10363
10528
|
(childSection, childSectionIndex) => {
|
|
10364
|
-
return /* @__PURE__ */ (0,
|
|
10529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: childSection.name && evalutateCondition(
|
|
10365
10530
|
formState.inputValues,
|
|
10366
10531
|
childSection.visible
|
|
10367
|
-
) && /* @__PURE__ */ (0,
|
|
10532
|
+
) && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10368
10533
|
DataFormChildSection_default,
|
|
10369
10534
|
{
|
|
10370
10535
|
section: childSection,
|
|
@@ -10379,8 +10544,8 @@ var DataForm = (props) => {
|
|
|
10379
10544
|
}) })
|
|
10380
10545
|
}
|
|
10381
10546
|
),
|
|
10382
|
-
/* @__PURE__ */ (0,
|
|
10383
|
-
/* @__PURE__ */ (0,
|
|
10547
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
10548
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10384
10549
|
Button_default,
|
|
10385
10550
|
{
|
|
10386
10551
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -10388,7 +10553,7 @@ var DataForm = (props) => {
|
|
|
10388
10553
|
children: props.additionalActions.title
|
|
10389
10554
|
}
|
|
10390
10555
|
) }),
|
|
10391
|
-
/* @__PURE__ */ (0,
|
|
10556
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10392
10557
|
Button_default,
|
|
10393
10558
|
{
|
|
10394
10559
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -10399,7 +10564,7 @@ var DataForm = (props) => {
|
|
|
10399
10564
|
children: "Delete"
|
|
10400
10565
|
}
|
|
10401
10566
|
) }),
|
|
10402
|
-
/* @__PURE__ */ (0,
|
|
10567
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10403
10568
|
Button_default,
|
|
10404
10569
|
{
|
|
10405
10570
|
onValidate,
|
|
@@ -10417,7 +10582,7 @@ var DataForm_default = DataForm;
|
|
|
10417
10582
|
|
|
10418
10583
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
10419
10584
|
init_ServiceClient();
|
|
10420
|
-
var
|
|
10585
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
10421
10586
|
function getAction(actions, code) {
|
|
10422
10587
|
return actions?.find((a) => a.actionCode === code);
|
|
10423
10588
|
}
|
|
@@ -10443,9 +10608,9 @@ var DataFormRenderer = ({
|
|
|
10443
10608
|
"Delete"
|
|
10444
10609
|
);
|
|
10445
10610
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
10446
|
-
return /* @__PURE__ */ (0,
|
|
10447
|
-
widgetProps && /* @__PURE__ */ (0,
|
|
10448
|
-
/* @__PURE__ */ (0,
|
|
10611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
10612
|
+
widgetProps && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
10613
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
10449
10614
|
DataForm_default,
|
|
10450
10615
|
{
|
|
10451
10616
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|