@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260728103223 → 0.8.1-dev.20260731062325
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/{InputControlClient-IKTP3566.mjs → InputControlClient-XR37ZIQ2.mjs} +13 -5
- package/dist/{Pagination-Y7PNQUJ2.mjs → Pagination-YKNCYVXV.mjs} +2 -2
- package/dist/{chunk-6GS7N4EV.mjs → chunk-65QPOTZ4.mjs} +66 -32
- package/dist/{chunk-6MHIZOLR.mjs → chunk-KL2YKXXS.mjs} +1 -1
- package/dist/{chunk-GFVCUX6O.mjs → chunk-YDPISYMP.mjs} +2 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +485 -434
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1018,7 +1018,8 @@ var init_InputControlType = __esm({
|
|
|
1018
1018
|
dateInput: "dateInput",
|
|
1019
1019
|
radioInput: "radioInput",
|
|
1020
1020
|
switcher: "switcher",
|
|
1021
|
-
videoInput: "videoInput"
|
|
1021
|
+
videoInput: "videoInput",
|
|
1022
|
+
referenceInput: "referenceInput"
|
|
1022
1023
|
};
|
|
1023
1024
|
InputControlType_default = InputControlType;
|
|
1024
1025
|
}
|
|
@@ -1578,50 +1579,73 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1578
1579
|
"src/components/controls/edit/SelectWithSearchInput.tsx"() {
|
|
1579
1580
|
"use strict";
|
|
1580
1581
|
"use client";
|
|
1581
|
-
import_react27 = require("react");
|
|
1582
|
+
import_react27 = __toESM(require("react"));
|
|
1582
1583
|
import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1583
1584
|
SelectWithSearchInput = (props) => {
|
|
1584
1585
|
const [isOpen, setIsOpen] = (0, import_react27.useState)(false);
|
|
1585
1586
|
const [searchTerm, setSearchTerm] = (0, import_react27.useState)("");
|
|
1586
1587
|
const [highlightedIndex, setHighlightedIndex] = (0, import_react27.useState)(-1);
|
|
1587
|
-
const [selectedItem, setSelectedItem] = (0, import_react27.useState)(
|
|
1588
|
+
const [selectedItem, setSelectedItem] = (0, import_react27.useState)(
|
|
1589
|
+
null
|
|
1590
|
+
);
|
|
1588
1591
|
const [list, setList] = (0, import_react27.useState)([]);
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1592
|
+
const loadData = import_react27.default.useCallback(async () => {
|
|
1593
|
+
if (props.dataset) {
|
|
1594
|
+
setList(props.dataset);
|
|
1595
|
+
return;
|
|
1596
|
+
}
|
|
1597
|
+
if (props.dataSource && props.serviceClient) {
|
|
1598
|
+
let url = props.dataSource;
|
|
1599
|
+
if (props.dataSourceDependsOn && props.dependentValue) {
|
|
1600
|
+
url = url.replace(
|
|
1601
|
+
`{${props.dataSourceDependsOn}}`,
|
|
1602
|
+
props.dependentValue
|
|
1603
|
+
);
|
|
1604
|
+
}
|
|
1605
|
+
const response = await props.serviceClient.get(url);
|
|
1606
|
+
if (response?.result) {
|
|
1607
|
+
setList(response.result);
|
|
1603
1608
|
}
|
|
1604
1609
|
}
|
|
1605
|
-
fetchData();
|
|
1606
1610
|
}, [
|
|
1607
|
-
props.dataSource,
|
|
1608
|
-
props.dependentValue,
|
|
1609
1611
|
props.dataset,
|
|
1610
|
-
props.
|
|
1612
|
+
props.dataSource,
|
|
1613
|
+
props.serviceClient,
|
|
1614
|
+
props.dataSourceDependsOn,
|
|
1615
|
+
props.dependentValue
|
|
1611
1616
|
]);
|
|
1612
|
-
|
|
1613
|
-
(
|
|
1614
|
-
);
|
|
1617
|
+
(0, import_react27.useEffect)(() => {
|
|
1618
|
+
loadData();
|
|
1619
|
+
}, [loadData]);
|
|
1620
|
+
(0, import_react27.useEffect)(() => {
|
|
1621
|
+
if (props.value && list.length && props.dataKeyFieldName && props.dataTextFieldName) {
|
|
1622
|
+
const selected = list.find(
|
|
1623
|
+
(x) => x[props.dataKeyFieldName] == props.value
|
|
1624
|
+
);
|
|
1625
|
+
if (selected) {
|
|
1626
|
+
setSearchTerm(selected[props.dataTextFieldName]);
|
|
1627
|
+
setSelectedItem(selected);
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
}, [props.value, list]);
|
|
1631
|
+
const filteredItems = list.filter((item) => {
|
|
1632
|
+
const text = item[props.dataTextFieldName] ?? "";
|
|
1633
|
+
return text.toString().toLowerCase().includes(searchTerm.toLowerCase());
|
|
1634
|
+
});
|
|
1615
1635
|
const handleSelect = (event, item) => {
|
|
1616
1636
|
event.preventDefault();
|
|
1617
1637
|
setSearchTerm(item[props.dataTextFieldName]);
|
|
1618
1638
|
setSelectedItem(item);
|
|
1619
1639
|
setIsOpen(false);
|
|
1620
1640
|
setHighlightedIndex(-1);
|
|
1641
|
+
const selectedValue = item[props.dataKeyFieldName];
|
|
1642
|
+
if (props.onChange) {
|
|
1643
|
+
props.onChange(selectedValue);
|
|
1644
|
+
}
|
|
1621
1645
|
if (props.callback) {
|
|
1622
1646
|
props.callback({
|
|
1623
1647
|
name: props.name,
|
|
1624
|
-
value:
|
|
1648
|
+
value: selectedValue,
|
|
1625
1649
|
index: props.index,
|
|
1626
1650
|
groupKey: props.groupKey
|
|
1627
1651
|
});
|
|
@@ -1650,11 +1674,11 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1650
1674
|
});
|
|
1651
1675
|
}
|
|
1652
1676
|
}, [highlightedIndex]);
|
|
1677
|
+
const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
|
|
1653
1678
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", children: [
|
|
1654
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { children: [
|
|
1679
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "pb-1", children: [
|
|
1655
1680
|
props.attributes?.label,
|
|
1656
1681
|
" ",
|
|
1657
|
-
" ",
|
|
1658
1682
|
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
1659
1683
|
] }),
|
|
1660
1684
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", children: [
|
|
@@ -1670,15 +1694,26 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1670
1694
|
},
|
|
1671
1695
|
onFocus: () => setIsOpen(true),
|
|
1672
1696
|
onKeyDown: handleKeyDown,
|
|
1673
|
-
placeholder:
|
|
1674
|
-
|
|
1697
|
+
placeholder: props.attributes?.placeholder ?? "Search...",
|
|
1698
|
+
readOnly: isReadOnly,
|
|
1699
|
+
disabled: props.disable || props.attributes?.disable,
|
|
1700
|
+
className: `peer mt-2 py-1.5 select block w-full text-black rounded border-gray-300 shadow-sm
|
|
1701
|
+
focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
|
|
1702
|
+
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none
|
|
1703
|
+
${isReadOnly ? "bg-neutral-soft opacity-50 cursor-not-allowed" : "bg-default"}
|
|
1704
|
+
`
|
|
1675
1705
|
}
|
|
1676
1706
|
),
|
|
1677
1707
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1678
1708
|
"button",
|
|
1679
1709
|
{
|
|
1680
1710
|
type: "button",
|
|
1681
|
-
|
|
1711
|
+
disabled: isReadOnly,
|
|
1712
|
+
onClick: () => {
|
|
1713
|
+
if (!isReadOnly) {
|
|
1714
|
+
setIsOpen(!isOpen);
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1682
1717
|
className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
|
|
1683
1718
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1684
1719
|
"svg",
|
|
@@ -1702,11 +1737,11 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1702
1737
|
}
|
|
1703
1738
|
)
|
|
1704
1739
|
] }),
|
|
1705
|
-
isOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1740
|
+
!isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1706
1741
|
"div",
|
|
1707
1742
|
{
|
|
1708
1743
|
ref: dropdownRef,
|
|
1709
|
-
className: "absolute z-10
|
|
1744
|
+
className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
|
|
1710
1745
|
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1711
1746
|
"button",
|
|
1712
1747
|
{
|
|
@@ -3218,12 +3253,26 @@ var init_Switcher = __esm({
|
|
|
3218
3253
|
}
|
|
3219
3254
|
});
|
|
3220
3255
|
|
|
3256
|
+
// src/components/controls/edit/ReferenceInput.tsx
|
|
3257
|
+
var import_jsx_runtime49, ReferenceInput, ReferenceInput_default;
|
|
3258
|
+
var init_ReferenceInput = __esm({
|
|
3259
|
+
"src/components/controls/edit/ReferenceInput.tsx"() {
|
|
3260
|
+
"use strict";
|
|
3261
|
+
init_SelectWithSearchInput();
|
|
3262
|
+
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3263
|
+
ReferenceInput = (props) => {
|
|
3264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectWithSearchInput_default, { ...props });
|
|
3265
|
+
};
|
|
3266
|
+
ReferenceInput_default = ReferenceInput;
|
|
3267
|
+
}
|
|
3268
|
+
});
|
|
3269
|
+
|
|
3221
3270
|
// src/components/controls/edit/InputControlClient.tsx
|
|
3222
3271
|
var InputControlClient_exports = {};
|
|
3223
3272
|
__export(InputControlClient_exports, {
|
|
3224
3273
|
default: () => InputControlClient_default
|
|
3225
3274
|
});
|
|
3226
|
-
var import_react40,
|
|
3275
|
+
var import_react40, import_jsx_runtime50, InputControl, InputControlClient_default;
|
|
3227
3276
|
var init_InputControlClient = __esm({
|
|
3228
3277
|
"src/components/controls/edit/InputControlClient.tsx"() {
|
|
3229
3278
|
"use strict";
|
|
@@ -3251,7 +3300,8 @@ var init_InputControlClient = __esm({
|
|
|
3251
3300
|
init_DateInput();
|
|
3252
3301
|
init_RadioInput();
|
|
3253
3302
|
init_Switcher();
|
|
3254
|
-
|
|
3303
|
+
init_ReferenceInput();
|
|
3304
|
+
import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3255
3305
|
InputControl = import_react40.default.forwardRef(
|
|
3256
3306
|
(props, ref) => {
|
|
3257
3307
|
const ControlComponents = {
|
|
@@ -3276,10 +3326,11 @@ var init_InputControlClient = __esm({
|
|
|
3276
3326
|
[InputControlType_default.switchInput]: SwitchInput_default,
|
|
3277
3327
|
[InputControlType_default.dateInput]: DateInput_default,
|
|
3278
3328
|
[InputControlType_default.radioInput]: RadioInput_default,
|
|
3279
|
-
[InputControlType_default.switcher]: Switcher_default
|
|
3329
|
+
[InputControlType_default.switcher]: Switcher_default,
|
|
3330
|
+
[InputControlType_default.referenceInput]: ReferenceInput_default
|
|
3280
3331
|
};
|
|
3281
3332
|
const SelectedControlComponent = ControlComponents[props.controlType];
|
|
3282
|
-
return /* @__PURE__ */ (0,
|
|
3333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react40.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
3283
3334
|
}
|
|
3284
3335
|
);
|
|
3285
3336
|
InputControl.displayName = "InputControl";
|
|
@@ -3506,7 +3557,7 @@ var LinkNodeButton_exports = {};
|
|
|
3506
3557
|
__export(LinkNodeButton_exports, {
|
|
3507
3558
|
default: () => LinkNodeButton_default
|
|
3508
3559
|
});
|
|
3509
|
-
var import_react41,
|
|
3560
|
+
var import_react41, import_jsx_runtime54, LinkNodeButton, LinkNodeButton_default;
|
|
3510
3561
|
var init_LinkNodeButton = __esm({
|
|
3511
3562
|
"src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
|
|
3512
3563
|
"use strict";
|
|
@@ -3515,7 +3566,7 @@ var init_LinkNodeButton = __esm({
|
|
|
3515
3566
|
init_Button();
|
|
3516
3567
|
init_ServiceClient();
|
|
3517
3568
|
init_ToastService();
|
|
3518
|
-
|
|
3569
|
+
import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3519
3570
|
LinkNodeButton = (props) => {
|
|
3520
3571
|
const { node, dataitem, children, linkText, linkType, linkUrl } = props;
|
|
3521
3572
|
const [isLoading, setIsLoading] = (0, import_react41.useState)(false);
|
|
@@ -3682,32 +3733,32 @@ var init_LinkNodeButton = __esm({
|
|
|
3682
3733
|
return children;
|
|
3683
3734
|
}
|
|
3684
3735
|
if (linkText) {
|
|
3685
|
-
return /* @__PURE__ */ (0,
|
|
3736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: linkText });
|
|
3686
3737
|
}
|
|
3687
3738
|
return node.title || "Button";
|
|
3688
3739
|
};
|
|
3689
3740
|
const fontSize = node.children?.[0]?.style?.match(/font-size:\s*([^;]+)/)?.[1];
|
|
3690
|
-
return /* @__PURE__ */ (0,
|
|
3741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3691
3742
|
Button_default,
|
|
3692
3743
|
{
|
|
3693
3744
|
ButtonType: linkType,
|
|
3694
3745
|
onClick,
|
|
3695
3746
|
disabled: isLoading || !!successMessage,
|
|
3696
3747
|
className: "w-full",
|
|
3697
|
-
children: successMessage ? /* @__PURE__ */ (0,
|
|
3748
|
+
children: successMessage ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3698
3749
|
"span",
|
|
3699
3750
|
{
|
|
3700
3751
|
style: fontSize ? { fontSize } : void 0,
|
|
3701
3752
|
className: "inline-flex items-center gap-2",
|
|
3702
3753
|
children: [
|
|
3703
|
-
/* @__PURE__ */ (0,
|
|
3754
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3704
3755
|
"svg",
|
|
3705
3756
|
{
|
|
3706
3757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3707
3758
|
viewBox: "0 0 20 20",
|
|
3708
3759
|
fill: "currentColor",
|
|
3709
3760
|
className: "w-5 h-5",
|
|
3710
|
-
children: /* @__PURE__ */ (0,
|
|
3761
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3711
3762
|
"path",
|
|
3712
3763
|
{
|
|
3713
3764
|
fillRule: "evenodd",
|
|
@@ -3717,7 +3768,7 @@ var init_LinkNodeButton = __esm({
|
|
|
3717
3768
|
)
|
|
3718
3769
|
}
|
|
3719
3770
|
),
|
|
3720
|
-
/* @__PURE__ */ (0,
|
|
3771
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: successMessage })
|
|
3721
3772
|
]
|
|
3722
3773
|
}
|
|
3723
3774
|
) : renderButtonContent()
|
|
@@ -3751,13 +3802,13 @@ function CopyButton({ text }) {
|
|
|
3751
3802
|
console.error("Failed to copy: ", err);
|
|
3752
3803
|
}
|
|
3753
3804
|
};
|
|
3754
|
-
return /* @__PURE__ */ (0,
|
|
3805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
3755
3806
|
"button",
|
|
3756
3807
|
{
|
|
3757
3808
|
onClick: handleCopy,
|
|
3758
3809
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
3759
3810
|
children: [
|
|
3760
|
-
/* @__PURE__ */ (0,
|
|
3811
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
3761
3812
|
"svg",
|
|
3762
3813
|
{
|
|
3763
3814
|
width: "16",
|
|
@@ -3765,7 +3816,7 @@ function CopyButton({ text }) {
|
|
|
3765
3816
|
viewBox: "0 0 24 24",
|
|
3766
3817
|
className: "w-4 h-4",
|
|
3767
3818
|
fill: "currentColor",
|
|
3768
|
-
children: /* @__PURE__ */ (0,
|
|
3819
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
3769
3820
|
"path",
|
|
3770
3821
|
{
|
|
3771
3822
|
fillRule: "evenodd",
|
|
@@ -3780,54 +3831,54 @@ function CopyButton({ text }) {
|
|
|
3780
3831
|
}
|
|
3781
3832
|
);
|
|
3782
3833
|
}
|
|
3783
|
-
var import_react48,
|
|
3834
|
+
var import_react48, import_jsx_runtime64;
|
|
3784
3835
|
var init_CopyButton = __esm({
|
|
3785
3836
|
"src/components/CopyButton.tsx"() {
|
|
3786
3837
|
"use strict";
|
|
3787
3838
|
"use client";
|
|
3788
3839
|
import_react48 = require("react");
|
|
3789
|
-
|
|
3840
|
+
import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3790
3841
|
}
|
|
3791
3842
|
});
|
|
3792
3843
|
|
|
3793
3844
|
// src/components/IFrameLoaderView.tsx
|
|
3794
|
-
var import_react51,
|
|
3845
|
+
var import_react51, import_jsx_runtime68, IFrameLoaderView, IFrameLoaderView_default;
|
|
3795
3846
|
var init_IFrameLoaderView = __esm({
|
|
3796
3847
|
"src/components/IFrameLoaderView.tsx"() {
|
|
3797
3848
|
"use strict";
|
|
3798
3849
|
import_react51 = __toESM(require("react"));
|
|
3799
|
-
|
|
3850
|
+
import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3800
3851
|
IFrameLoaderView = (props) => {
|
|
3801
|
-
return /* @__PURE__ */ (0,
|
|
3802
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
3803
|
-
/* @__PURE__ */ (0,
|
|
3804
|
-
/* @__PURE__ */ (0,
|
|
3805
|
-
/* @__PURE__ */ (0,
|
|
3806
|
-
/* @__PURE__ */ (0,
|
|
3807
|
-
/* @__PURE__ */ (0,
|
|
3852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_react51.default.Fragment, { children: [
|
|
3853
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
3854
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
3855
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
3856
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "ml-2", children: [
|
|
3857
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
3858
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
3808
3859
|
] })
|
|
3809
3860
|
] }),
|
|
3810
|
-
/* @__PURE__ */ (0,
|
|
3811
|
-
/* @__PURE__ */ (0,
|
|
3812
|
-
/* @__PURE__ */ (0,
|
|
3813
|
-
/* @__PURE__ */ (0,
|
|
3814
|
-
/* @__PURE__ */ (0,
|
|
3815
|
-
/* @__PURE__ */ (0,
|
|
3816
|
-
/* @__PURE__ */ (0,
|
|
3861
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
3862
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "animate-pulse", children: [
|
|
3863
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3864
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3865
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3866
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3867
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3817
3868
|
] }),
|
|
3818
|
-
/* @__PURE__ */ (0,
|
|
3819
|
-
/* @__PURE__ */ (0,
|
|
3820
|
-
/* @__PURE__ */ (0,
|
|
3821
|
-
/* @__PURE__ */ (0,
|
|
3822
|
-
/* @__PURE__ */ (0,
|
|
3823
|
-
/* @__PURE__ */ (0,
|
|
3869
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "animate-pulse", children: [
|
|
3870
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3871
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3872
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3873
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3874
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3824
3875
|
] }),
|
|
3825
|
-
/* @__PURE__ */ (0,
|
|
3826
|
-
/* @__PURE__ */ (0,
|
|
3827
|
-
/* @__PURE__ */ (0,
|
|
3828
|
-
/* @__PURE__ */ (0,
|
|
3829
|
-
/* @__PURE__ */ (0,
|
|
3830
|
-
/* @__PURE__ */ (0,
|
|
3876
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "animate-pulse", children: [
|
|
3877
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3878
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3879
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3880
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3881
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3831
3882
|
] })
|
|
3832
3883
|
] })
|
|
3833
3884
|
] }) }),
|
|
@@ -3843,14 +3894,14 @@ var IframeClient_exports = {};
|
|
|
3843
3894
|
__export(IframeClient_exports, {
|
|
3844
3895
|
default: () => IframeClient_default
|
|
3845
3896
|
});
|
|
3846
|
-
var import_react52,
|
|
3897
|
+
var import_react52, import_jsx_runtime69, IframeClient, IframeClient_default;
|
|
3847
3898
|
var init_IframeClient = __esm({
|
|
3848
3899
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
3849
3900
|
"use strict";
|
|
3850
3901
|
"use client";
|
|
3851
3902
|
import_react52 = __toESM(require("react"));
|
|
3852
3903
|
init_IFrameLoaderView();
|
|
3853
|
-
|
|
3904
|
+
import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3854
3905
|
IframeClient = ({ src }) => {
|
|
3855
3906
|
const iframeRef = (0, import_react52.useRef)(null);
|
|
3856
3907
|
const [iframeHeight, setIframeHeight] = (0, import_react52.useState)("100%");
|
|
@@ -3882,7 +3933,7 @@ var init_IframeClient = __esm({
|
|
|
3882
3933
|
const handleIframeLoad = () => {
|
|
3883
3934
|
setIsDataFound(true);
|
|
3884
3935
|
};
|
|
3885
|
-
return /* @__PURE__ */ (0,
|
|
3936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3886
3937
|
"iframe",
|
|
3887
3938
|
{
|
|
3888
3939
|
ref: iframeRef,
|
|
@@ -4102,7 +4153,7 @@ var Pagination_exports = {};
|
|
|
4102
4153
|
__export(Pagination_exports, {
|
|
4103
4154
|
default: () => Pagination_default
|
|
4104
4155
|
});
|
|
4105
|
-
var import_react53,
|
|
4156
|
+
var import_react53, import_jsx_runtime74, Pagination, Pagination_default;
|
|
4106
4157
|
var init_Pagination = __esm({
|
|
4107
4158
|
"src/components/Pagination.tsx"() {
|
|
4108
4159
|
"use strict";
|
|
@@ -4113,7 +4164,7 @@ var init_Pagination = __esm({
|
|
|
4113
4164
|
init_StyleTypes();
|
|
4114
4165
|
init_InputControlType();
|
|
4115
4166
|
init_Hyperlink();
|
|
4116
|
-
|
|
4167
|
+
import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4117
4168
|
Pagination = (props) => {
|
|
4118
4169
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
4119
4170
|
const builder = (0, import_react53.useMemo)(() => {
|
|
@@ -4157,7 +4208,7 @@ var init_Pagination = __esm({
|
|
|
4157
4208
|
return range;
|
|
4158
4209
|
};
|
|
4159
4210
|
const paginationRange = getPaginationRange();
|
|
4160
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
4211
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4161
4212
|
Hyperlink,
|
|
4162
4213
|
{
|
|
4163
4214
|
linkType: "Link" /* Link */,
|
|
@@ -4172,9 +4223,9 @@ var init_Pagination = __esm({
|
|
|
4172
4223
|
);
|
|
4173
4224
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
4174
4225
|
if (disabled) {
|
|
4175
|
-
return /* @__PURE__ */ (0,
|
|
4226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.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 });
|
|
4176
4227
|
}
|
|
4177
|
-
return /* @__PURE__ */ (0,
|
|
4228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4178
4229
|
Hyperlink,
|
|
4179
4230
|
{
|
|
4180
4231
|
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",
|
|
@@ -4184,35 +4235,35 @@ var init_Pagination = __esm({
|
|
|
4184
4235
|
);
|
|
4185
4236
|
};
|
|
4186
4237
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
4187
|
-
return /* @__PURE__ */ (0,
|
|
4188
|
-
/* @__PURE__ */ (0,
|
|
4189
|
-
/* @__PURE__ */ (0,
|
|
4238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
4239
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
4240
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "text-sm", children: [
|
|
4190
4241
|
"Showing ",
|
|
4191
|
-
/* @__PURE__ */ (0,
|
|
4242
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "font-semibold", children: [
|
|
4192
4243
|
startItem,
|
|
4193
4244
|
"-",
|
|
4194
4245
|
endItem
|
|
4195
4246
|
] }),
|
|
4196
4247
|
" ",
|
|
4197
4248
|
"out of ",
|
|
4198
|
-
/* @__PURE__ */ (0,
|
|
4249
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
4199
4250
|
" results"
|
|
4200
4251
|
] }),
|
|
4201
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
4202
|
-
/* @__PURE__ */ (0,
|
|
4252
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
4253
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4203
4254
|
NavigationButton,
|
|
4204
4255
|
{
|
|
4205
4256
|
page: activePageNumber - 1,
|
|
4206
4257
|
disabled: activePageNumber === 1,
|
|
4207
4258
|
children: [
|
|
4208
|
-
/* @__PURE__ */ (0,
|
|
4209
|
-
/* @__PURE__ */ (0,
|
|
4259
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
4260
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
4210
4261
|
]
|
|
4211
4262
|
}
|
|
4212
4263
|
),
|
|
4213
4264
|
paginationRange.map((item, index) => {
|
|
4214
4265
|
if (item === "...") {
|
|
4215
|
-
return /* @__PURE__ */ (0,
|
|
4266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4216
4267
|
"span",
|
|
4217
4268
|
{
|
|
4218
4269
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -4222,23 +4273,23 @@ var init_Pagination = __esm({
|
|
|
4222
4273
|
);
|
|
4223
4274
|
}
|
|
4224
4275
|
const page = item;
|
|
4225
|
-
return /* @__PURE__ */ (0,
|
|
4276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PageButton, { page, children: page }, page);
|
|
4226
4277
|
}),
|
|
4227
|
-
/* @__PURE__ */ (0,
|
|
4278
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4228
4279
|
NavigationButton,
|
|
4229
4280
|
{
|
|
4230
4281
|
page: activePageNumber + 1,
|
|
4231
4282
|
disabled: activePageNumber === totalPages,
|
|
4232
4283
|
children: [
|
|
4233
|
-
/* @__PURE__ */ (0,
|
|
4234
|
-
/* @__PURE__ */ (0,
|
|
4284
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
4285
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
4235
4286
|
]
|
|
4236
4287
|
}
|
|
4237
4288
|
)
|
|
4238
4289
|
] }),
|
|
4239
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
4240
|
-
/* @__PURE__ */ (0,
|
|
4241
|
-
/* @__PURE__ */ (0,
|
|
4290
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
4291
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
4292
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4242
4293
|
"input",
|
|
4243
4294
|
{
|
|
4244
4295
|
type: "number",
|
|
@@ -4259,9 +4310,9 @@ var init_Pagination = __esm({
|
|
|
4259
4310
|
) })
|
|
4260
4311
|
] })
|
|
4261
4312
|
] }),
|
|
4262
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
4263
|
-
/* @__PURE__ */ (0,
|
|
4264
|
-
/* @__PURE__ */ (0,
|
|
4313
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
4314
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
4315
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4265
4316
|
Hyperlink,
|
|
4266
4317
|
{
|
|
4267
4318
|
className: `
|
|
@@ -4273,7 +4324,7 @@ var init_Pagination = __esm({
|
|
|
4273
4324
|
},
|
|
4274
4325
|
size
|
|
4275
4326
|
)) }),
|
|
4276
|
-
/* @__PURE__ */ (0,
|
|
4327
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "per page" })
|
|
4277
4328
|
] }) })
|
|
4278
4329
|
] });
|
|
4279
4330
|
};
|
|
@@ -4286,13 +4337,13 @@ var Slider_exports = {};
|
|
|
4286
4337
|
__export(Slider_exports, {
|
|
4287
4338
|
default: () => Slider_default
|
|
4288
4339
|
});
|
|
4289
|
-
var import_react54,
|
|
4340
|
+
var import_react54, import_jsx_runtime75, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
4290
4341
|
var init_Slider = __esm({
|
|
4291
4342
|
"src/components/Slider.tsx"() {
|
|
4292
4343
|
"use strict";
|
|
4293
4344
|
"use client";
|
|
4294
4345
|
import_react54 = __toESM(require("react"));
|
|
4295
|
-
|
|
4346
|
+
import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4296
4347
|
Slider = ({
|
|
4297
4348
|
children,
|
|
4298
4349
|
slidesToShow = 4,
|
|
@@ -4389,7 +4440,7 @@ var init_Slider = __esm({
|
|
|
4389
4440
|
if (!import_react54.default.isValidElement(child)) return null;
|
|
4390
4441
|
const childProps = child.props;
|
|
4391
4442
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
4392
|
-
return /* @__PURE__ */ (0,
|
|
4443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4393
4444
|
"div",
|
|
4394
4445
|
{
|
|
4395
4446
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -4412,14 +4463,14 @@ var init_Slider = __esm({
|
|
|
4412
4463
|
return "bottom-4";
|
|
4413
4464
|
}
|
|
4414
4465
|
};
|
|
4415
|
-
return /* @__PURE__ */ (0,
|
|
4466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
4416
4467
|
"div",
|
|
4417
4468
|
{
|
|
4418
4469
|
className: `relative w-full overflow-hidden ${className}`,
|
|
4419
4470
|
onMouseEnter: handleMouseEnter,
|
|
4420
4471
|
onMouseLeave: handleMouseLeave,
|
|
4421
4472
|
children: [
|
|
4422
|
-
/* @__PURE__ */ (0,
|
|
4473
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4423
4474
|
"div",
|
|
4424
4475
|
{
|
|
4425
4476
|
className: "flex h-full",
|
|
@@ -4430,18 +4481,18 @@ var init_Slider = __esm({
|
|
|
4430
4481
|
children: slides
|
|
4431
4482
|
}
|
|
4432
4483
|
),
|
|
4433
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
4434
|
-
/* @__PURE__ */ (0,
|
|
4484
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
|
|
4485
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4435
4486
|
ArrowButton,
|
|
4436
4487
|
{
|
|
4437
4488
|
direction: "left",
|
|
4438
4489
|
onClick: prevSlide,
|
|
4439
4490
|
visible: infinite_scroll || currentSlide > 0,
|
|
4440
4491
|
className: arrowClassName,
|
|
4441
|
-
children: /* @__PURE__ */ (0,
|
|
4492
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.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_runtime75.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
4442
4493
|
}
|
|
4443
4494
|
),
|
|
4444
|
-
/* @__PURE__ */ (0,
|
|
4495
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
4445
4496
|
ArrowButton,
|
|
4446
4497
|
{
|
|
4447
4498
|
direction: "right",
|
|
@@ -4449,13 +4500,13 @@ var init_Slider = __esm({
|
|
|
4449
4500
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
4450
4501
|
className: arrowClassName,
|
|
4451
4502
|
children: [
|
|
4452
|
-
/* @__PURE__ */ (0,
|
|
4503
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.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_runtime75.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
|
|
4453
4504
|
" "
|
|
4454
4505
|
]
|
|
4455
4506
|
}
|
|
4456
4507
|
)
|
|
4457
4508
|
] }),
|
|
4458
|
-
show_dots && /* @__PURE__ */ (0,
|
|
4509
|
+
show_dots && /* @__PURE__ */ (0, import_jsx_runtime75.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_runtime75.jsx)(
|
|
4459
4510
|
ProgressPill,
|
|
4460
4511
|
{
|
|
4461
4512
|
active: index === currentSlide,
|
|
@@ -4481,7 +4532,7 @@ var init_Slider = __esm({
|
|
|
4481
4532
|
visible,
|
|
4482
4533
|
children,
|
|
4483
4534
|
className = ""
|
|
4484
|
-
}) => /* @__PURE__ */ (0,
|
|
4535
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4485
4536
|
"button",
|
|
4486
4537
|
{
|
|
4487
4538
|
className: `
|
|
@@ -4568,7 +4619,7 @@ var init_Slider = __esm({
|
|
|
4568
4619
|
const renderProgressBar = () => {
|
|
4569
4620
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
4570
4621
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
4571
|
-
return /* @__PURE__ */ (0,
|
|
4622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4572
4623
|
"div",
|
|
4573
4624
|
{
|
|
4574
4625
|
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`,
|
|
@@ -4580,7 +4631,7 @@ var init_Slider = __esm({
|
|
|
4580
4631
|
};
|
|
4581
4632
|
const renderCumulativeFill = () => {
|
|
4582
4633
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
4583
|
-
return /* @__PURE__ */ (0,
|
|
4634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4584
4635
|
"div",
|
|
4585
4636
|
{
|
|
4586
4637
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -4590,7 +4641,7 @@ var init_Slider = __esm({
|
|
|
4590
4641
|
}
|
|
4591
4642
|
return null;
|
|
4592
4643
|
};
|
|
4593
|
-
return /* @__PURE__ */ (0,
|
|
4644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
4594
4645
|
"button",
|
|
4595
4646
|
{
|
|
4596
4647
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -5033,7 +5084,7 @@ var import_react56 = __toESM(require("react"));
|
|
|
5033
5084
|
var import_react43 = __toESM(require("react"));
|
|
5034
5085
|
|
|
5035
5086
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
5036
|
-
var
|
|
5087
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5037
5088
|
var TextNode = (props) => {
|
|
5038
5089
|
function cssStringToJson(cssString) {
|
|
5039
5090
|
const styleObject = {};
|
|
@@ -5088,26 +5139,26 @@ var TextNode = (props) => {
|
|
|
5088
5139
|
});
|
|
5089
5140
|
}
|
|
5090
5141
|
function renderWithLineBreaks(text) {
|
|
5091
|
-
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0,
|
|
5142
|
+
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { children: [
|
|
5092
5143
|
line,
|
|
5093
|
-
index < arr.length - 1 && /* @__PURE__ */ (0,
|
|
5144
|
+
index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("br", {})
|
|
5094
5145
|
] }, index));
|
|
5095
5146
|
}
|
|
5096
5147
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
5097
5148
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
5098
5149
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
5099
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0,
|
|
5150
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("sub", { children: content }) : content;
|
|
5100
5151
|
return (
|
|
5101
5152
|
// @ts-expect-error custom code
|
|
5102
|
-
/* @__PURE__ */ (0,
|
|
5153
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
5103
5154
|
);
|
|
5104
5155
|
};
|
|
5105
5156
|
var TextNode_default = TextNode;
|
|
5106
5157
|
|
|
5107
5158
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
5108
|
-
var
|
|
5159
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5109
5160
|
var LineBreakNode = () => {
|
|
5110
|
-
return /* @__PURE__ */ (0,
|
|
5161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "py-0.5 lg:py-1.5" });
|
|
5111
5162
|
};
|
|
5112
5163
|
var LineBreakNode_default = LineBreakNode;
|
|
5113
5164
|
|
|
@@ -5117,7 +5168,7 @@ var import_react42 = __toESM(require("react"));
|
|
|
5117
5168
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
5118
5169
|
init_AssetUtility();
|
|
5119
5170
|
var import_dynamic5 = __toESM(require("next/dynamic"));
|
|
5120
|
-
var
|
|
5171
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5121
5172
|
var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
5122
5173
|
var getNestedValue = (obj, path) => {
|
|
5123
5174
|
if (!obj || !path) return void 0;
|
|
@@ -5150,7 +5201,7 @@ var ImageNode = (props) => {
|
|
|
5150
5201
|
assets = [image];
|
|
5151
5202
|
}
|
|
5152
5203
|
if (assets && assets.length > 0) {
|
|
5153
|
-
return /* @__PURE__ */ (0,
|
|
5204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5154
5205
|
DeviceAssetSelector_default,
|
|
5155
5206
|
{
|
|
5156
5207
|
device: props.device,
|
|
@@ -5191,7 +5242,7 @@ var ImageNode = (props) => {
|
|
|
5191
5242
|
right: "justify-end"
|
|
5192
5243
|
};
|
|
5193
5244
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
5194
|
-
const renderMedia = () => isHls ? /* @__PURE__ */ (0,
|
|
5245
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5195
5246
|
HlsPlayer3,
|
|
5196
5247
|
{
|
|
5197
5248
|
assetUrl: imageUrl,
|
|
@@ -5204,7 +5255,7 @@ var ImageNode = (props) => {
|
|
|
5204
5255
|
apiBaseUrl: props.apiBaseUrl,
|
|
5205
5256
|
session: props.session
|
|
5206
5257
|
}
|
|
5207
|
-
) : /* @__PURE__ */ (0,
|
|
5258
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5208
5259
|
"img",
|
|
5209
5260
|
{
|
|
5210
5261
|
style: styles,
|
|
@@ -5217,7 +5268,7 @@ var ImageNode = (props) => {
|
|
|
5217
5268
|
}
|
|
5218
5269
|
);
|
|
5219
5270
|
if (props.node.width) {
|
|
5220
|
-
return /* @__PURE__ */ (0,
|
|
5271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
5221
5272
|
}
|
|
5222
5273
|
return renderMedia();
|
|
5223
5274
|
};
|
|
@@ -5227,7 +5278,7 @@ var ImageNode_default = ImageNode;
|
|
|
5227
5278
|
init_StyleTypes();
|
|
5228
5279
|
init_Hyperlink();
|
|
5229
5280
|
var import_dynamic6 = __toESM(require("next/dynamic"));
|
|
5230
|
-
var
|
|
5281
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5231
5282
|
var LinkNodeButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
|
|
5232
5283
|
ssr: false
|
|
5233
5284
|
});
|
|
@@ -5280,13 +5331,13 @@ var LinkNode = (props) => {
|
|
|
5280
5331
|
const isButton = node.isButton === true;
|
|
5281
5332
|
const renderChildren = () => {
|
|
5282
5333
|
if (!node.children || node.children.length === 0) return null;
|
|
5283
|
-
return /* @__PURE__ */ (0,
|
|
5334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: node.children.map((childNode, index) => {
|
|
5284
5335
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
5285
5336
|
if (!SelectedNode) {
|
|
5286
5337
|
console.warn("Unknown node type:", childNode.type);
|
|
5287
5338
|
return null;
|
|
5288
5339
|
}
|
|
5289
|
-
return /* @__PURE__ */ (0,
|
|
5340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5290
5341
|
SelectedNode,
|
|
5291
5342
|
{
|
|
5292
5343
|
node: childNode,
|
|
@@ -5299,15 +5350,15 @@ var LinkNode = (props) => {
|
|
|
5299
5350
|
};
|
|
5300
5351
|
const renderFallback = () => {
|
|
5301
5352
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
5302
|
-
return /* @__PURE__ */ (0,
|
|
5353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: linkText });
|
|
5303
5354
|
}
|
|
5304
5355
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
5305
|
-
return /* @__PURE__ */ (0,
|
|
5356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("br", {});
|
|
5306
5357
|
}
|
|
5307
5358
|
return null;
|
|
5308
5359
|
};
|
|
5309
5360
|
if (isButton) {
|
|
5310
|
-
return /* @__PURE__ */ (0,
|
|
5361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
5311
5362
|
LinkNodeButton2,
|
|
5312
5363
|
{
|
|
5313
5364
|
node,
|
|
@@ -5325,7 +5376,7 @@ var LinkNode = (props) => {
|
|
|
5325
5376
|
}
|
|
5326
5377
|
);
|
|
5327
5378
|
}
|
|
5328
|
-
return /* @__PURE__ */ (0,
|
|
5379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
5329
5380
|
Hyperlink,
|
|
5330
5381
|
{
|
|
5331
5382
|
href: linkUrl || "#",
|
|
@@ -5341,10 +5392,10 @@ var LinkNode = (props) => {
|
|
|
5341
5392
|
var LinkNode_default = LinkNode;
|
|
5342
5393
|
|
|
5343
5394
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
5344
|
-
var
|
|
5395
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5345
5396
|
var SVGIconNode = ({ node }) => {
|
|
5346
5397
|
if (!node?.svgCode) return null;
|
|
5347
|
-
return /* @__PURE__ */ (0,
|
|
5398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5348
5399
|
"span",
|
|
5349
5400
|
{
|
|
5350
5401
|
style: {
|
|
@@ -5361,7 +5412,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
5361
5412
|
|
|
5362
5413
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
5363
5414
|
var import_katex = __toESM(require("katex"));
|
|
5364
|
-
var
|
|
5415
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5365
5416
|
var EquationNode = ({ node }) => {
|
|
5366
5417
|
const { equation, inline } = node;
|
|
5367
5418
|
let html = "";
|
|
@@ -5376,7 +5427,7 @@ var EquationNode = ({ node }) => {
|
|
|
5376
5427
|
});
|
|
5377
5428
|
}
|
|
5378
5429
|
if (inline) {
|
|
5379
|
-
return /* @__PURE__ */ (0,
|
|
5430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5380
5431
|
"span",
|
|
5381
5432
|
{
|
|
5382
5433
|
className: "katex-inline",
|
|
@@ -5384,7 +5435,7 @@ var EquationNode = ({ node }) => {
|
|
|
5384
5435
|
}
|
|
5385
5436
|
);
|
|
5386
5437
|
}
|
|
5387
|
-
return /* @__PURE__ */ (0,
|
|
5438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5388
5439
|
"div",
|
|
5389
5440
|
{
|
|
5390
5441
|
className: "katex-block my-3 text-center",
|
|
@@ -5395,7 +5446,7 @@ var EquationNode = ({ node }) => {
|
|
|
5395
5446
|
var EquationNode_default = EquationNode;
|
|
5396
5447
|
|
|
5397
5448
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
5398
|
-
var
|
|
5449
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5399
5450
|
function getNestedProperty(obj, path) {
|
|
5400
5451
|
if (!obj || !path) return null;
|
|
5401
5452
|
if (path.includes(".")) {
|
|
@@ -5408,7 +5459,7 @@ function getNestedProperty(obj, path) {
|
|
|
5408
5459
|
}
|
|
5409
5460
|
const value = obj[path];
|
|
5410
5461
|
if (Array.isArray(value)) {
|
|
5411
|
-
return value.map((item, index) => /* @__PURE__ */ (0,
|
|
5462
|
+
return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children: String(item) }, index));
|
|
5412
5463
|
}
|
|
5413
5464
|
return value;
|
|
5414
5465
|
}
|
|
@@ -5469,7 +5520,7 @@ var DatafieldNode = (props) => {
|
|
|
5469
5520
|
const dataType = props.node.dataType;
|
|
5470
5521
|
if (isEmptyValue) return null;
|
|
5471
5522
|
if (dataType === "rawContent") {
|
|
5472
|
-
return /* @__PURE__ */ (0,
|
|
5523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5473
5524
|
PageBodyRenderer_default,
|
|
5474
5525
|
{
|
|
5475
5526
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -5485,12 +5536,12 @@ var DatafieldNode = (props) => {
|
|
|
5485
5536
|
}
|
|
5486
5537
|
);
|
|
5487
5538
|
}
|
|
5488
|
-
return /* @__PURE__ */ (0,
|
|
5539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5489
5540
|
"span",
|
|
5490
5541
|
{
|
|
5491
5542
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
5492
5543
|
style: styles,
|
|
5493
|
-
children: /* @__PURE__ */ (0,
|
|
5544
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5494
5545
|
ViewControl_default,
|
|
5495
5546
|
{
|
|
5496
5547
|
controlType: dataType,
|
|
@@ -5503,7 +5554,7 @@ var DatafieldNode = (props) => {
|
|
|
5503
5554
|
var DatafieldNode_default = DatafieldNode;
|
|
5504
5555
|
|
|
5505
5556
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
5506
|
-
var
|
|
5557
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5507
5558
|
var ParagraphNode = (props) => {
|
|
5508
5559
|
const NodeTypes2 = {
|
|
5509
5560
|
["text"]: TextNode_default,
|
|
@@ -5523,9 +5574,9 @@ var ParagraphNode = (props) => {
|
|
|
5523
5574
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
5524
5575
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
5525
5576
|
if (isInlineOnlyParent) {
|
|
5526
|
-
return /* @__PURE__ */ (0,
|
|
5577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
5527
5578
|
const SelectedNode = NodeTypes2[node.type];
|
|
5528
|
-
return /* @__PURE__ */ (0,
|
|
5579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5529
5580
|
SelectedNode,
|
|
5530
5581
|
{
|
|
5531
5582
|
node,
|
|
@@ -5537,10 +5588,10 @@ var ParagraphNode = (props) => {
|
|
|
5537
5588
|
) }, index);
|
|
5538
5589
|
}) });
|
|
5539
5590
|
}
|
|
5540
|
-
return /* @__PURE__ */ (0,
|
|
5591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: " " + formatClasses, children: [
|
|
5541
5592
|
hasChildren && props.node.children.map((node, index) => {
|
|
5542
5593
|
const SelectedNode = NodeTypes2[node.type];
|
|
5543
|
-
return /* @__PURE__ */ (0,
|
|
5594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5544
5595
|
SelectedNode,
|
|
5545
5596
|
{
|
|
5546
5597
|
node,
|
|
@@ -5551,14 +5602,14 @@ var ParagraphNode = (props) => {
|
|
|
5551
5602
|
}
|
|
5552
5603
|
) }, index);
|
|
5553
5604
|
}),
|
|
5554
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
5605
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
5555
5606
|
] });
|
|
5556
5607
|
};
|
|
5557
5608
|
var ParagraphNode_default = ParagraphNode;
|
|
5558
5609
|
|
|
5559
5610
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
5560
5611
|
var import_react44 = __toESM(require("react"));
|
|
5561
|
-
var
|
|
5612
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5562
5613
|
var HeadingNode = (props) => {
|
|
5563
5614
|
const NodeTypes2 = {
|
|
5564
5615
|
["text"]: TextNode_default,
|
|
@@ -5574,12 +5625,12 @@ var HeadingNode = (props) => {
|
|
|
5574
5625
|
{
|
|
5575
5626
|
}
|
|
5576
5627
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
5577
|
-
return /* @__PURE__ */ (0,
|
|
5628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children: import_react44.default.createElement(
|
|
5578
5629
|
HeadingTag,
|
|
5579
5630
|
{ className: formatClasses },
|
|
5580
5631
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
5581
5632
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
5582
|
-
return /* @__PURE__ */ (0,
|
|
5633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react44.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
5583
5634
|
})
|
|
5584
5635
|
) });
|
|
5585
5636
|
};
|
|
@@ -5590,7 +5641,7 @@ var import_react46 = __toESM(require("react"));
|
|
|
5590
5641
|
|
|
5591
5642
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
5592
5643
|
var import_react45 = __toESM(require("react"));
|
|
5593
|
-
var
|
|
5644
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5594
5645
|
var ListItemNode = (props) => {
|
|
5595
5646
|
const NodeTypes2 = {
|
|
5596
5647
|
text: TextNode_default,
|
|
@@ -5607,37 +5658,37 @@ var ListItemNode = (props) => {
|
|
|
5607
5658
|
liStyle.fontSize = match[1].trim();
|
|
5608
5659
|
}
|
|
5609
5660
|
}
|
|
5610
|
-
return /* @__PURE__ */ (0,
|
|
5661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
5611
5662
|
const SelectedNode = NodeTypes2[node.type];
|
|
5612
5663
|
if (node.type === "linebreak") {
|
|
5613
5664
|
if (!foundFirstBreak) {
|
|
5614
5665
|
foundFirstBreak = true;
|
|
5615
|
-
return /* @__PURE__ */ (0,
|
|
5666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {}, index);
|
|
5616
5667
|
} else {
|
|
5617
|
-
return /* @__PURE__ */ (0,
|
|
5668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
5618
5669
|
}
|
|
5619
5670
|
} else {
|
|
5620
5671
|
foundFirstBreak = false;
|
|
5621
|
-
return /* @__PURE__ */ (0,
|
|
5672
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react45.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
5622
5673
|
}
|
|
5623
5674
|
}) });
|
|
5624
5675
|
};
|
|
5625
5676
|
var ListItemNode_default = ListItemNode;
|
|
5626
5677
|
|
|
5627
5678
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
5628
|
-
var
|
|
5679
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5629
5680
|
var ListNode = (props) => {
|
|
5630
5681
|
const NodeTypes2 = {
|
|
5631
5682
|
listitem: ListItemNode_default
|
|
5632
5683
|
};
|
|
5633
|
-
return /* @__PURE__ */ (0,
|
|
5634
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
5684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react46.default.Fragment, { children: [
|
|
5685
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5635
5686
|
const SelectedNode = NodeTypes2[node.type];
|
|
5636
|
-
return /* @__PURE__ */ (0,
|
|
5687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
5637
5688
|
}) }),
|
|
5638
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
5689
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5639
5690
|
const SelectedNode = NodeTypes2[node.type];
|
|
5640
|
-
return /* @__PURE__ */ (0,
|
|
5691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
5641
5692
|
}) })
|
|
5642
5693
|
] });
|
|
5643
5694
|
};
|
|
@@ -5645,16 +5696,16 @@ var ListNode_default = ListNode;
|
|
|
5645
5696
|
|
|
5646
5697
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
5647
5698
|
var import_react47 = __toESM(require("react"));
|
|
5648
|
-
var
|
|
5699
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5649
5700
|
var QuoteNode = (props) => {
|
|
5650
5701
|
const NodeTypes2 = {
|
|
5651
5702
|
["text"]: TextNode_default,
|
|
5652
5703
|
["linebreak"]: LineBreakNode_default,
|
|
5653
5704
|
["link"]: LinkNode_default
|
|
5654
5705
|
};
|
|
5655
|
-
return /* @__PURE__ */ (0,
|
|
5706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5656
5707
|
const SelectedNode = NodeTypes2[node.type];
|
|
5657
|
-
return /* @__PURE__ */ (0,
|
|
5708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react47.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
5658
5709
|
}) });
|
|
5659
5710
|
};
|
|
5660
5711
|
var QuoteNode_default = QuoteNode;
|
|
@@ -5662,11 +5713,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
5662
5713
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
5663
5714
|
var import_react49 = __toESM(require("react"));
|
|
5664
5715
|
var import_dynamic7 = __toESM(require("next/dynamic"));
|
|
5665
|
-
var
|
|
5716
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5666
5717
|
var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
5667
5718
|
ssr: false,
|
|
5668
5719
|
// optional: fallback UI while loading
|
|
5669
|
-
loading: () => /* @__PURE__ */ (0,
|
|
5720
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
5670
5721
|
});
|
|
5671
5722
|
var CodeNode = (props) => {
|
|
5672
5723
|
const NodeTypes2 = {
|
|
@@ -5680,14 +5731,14 @@ var CodeNode = (props) => {
|
|
|
5680
5731
|
if (node.type === "link") return node.text || node.url || "";
|
|
5681
5732
|
return "";
|
|
5682
5733
|
}).join("") ?? "";
|
|
5683
|
-
return /* @__PURE__ */ (0,
|
|
5684
|
-
/* @__PURE__ */ (0,
|
|
5685
|
-
/* @__PURE__ */ (0,
|
|
5686
|
-
/* @__PURE__ */ (0,
|
|
5734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { children: [
|
|
5735
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
5736
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: "Code Snippet" }),
|
|
5737
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(CopyButton2, { text: textContent })
|
|
5687
5738
|
] }),
|
|
5688
|
-
/* @__PURE__ */ (0,
|
|
5739
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.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) => {
|
|
5689
5740
|
const SelectedNode = NodeTypes2[node.type];
|
|
5690
|
-
return /* @__PURE__ */ (0,
|
|
5741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5691
5742
|
SelectedNode,
|
|
5692
5743
|
{
|
|
5693
5744
|
node,
|
|
@@ -5702,15 +5753,15 @@ var CodeNode = (props) => {
|
|
|
5702
5753
|
var CodeNode_default = CodeNode;
|
|
5703
5754
|
|
|
5704
5755
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
5705
|
-
var
|
|
5756
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5706
5757
|
var HorizontalRuleNode = () => {
|
|
5707
|
-
return /* @__PURE__ */ (0,
|
|
5758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("hr", {});
|
|
5708
5759
|
};
|
|
5709
5760
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
5710
5761
|
|
|
5711
5762
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
5712
5763
|
var import_react50 = __toESM(require("react"));
|
|
5713
|
-
var
|
|
5764
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5714
5765
|
var WidgetNode = (props) => {
|
|
5715
5766
|
const getWidgetParameters = () => {
|
|
5716
5767
|
const widgetInputParameters = {
|
|
@@ -5774,7 +5825,7 @@ var WidgetNode = (props) => {
|
|
|
5774
5825
|
};
|
|
5775
5826
|
const widgetCode = props.node?.widgetCode;
|
|
5776
5827
|
if (!widgetCode) {
|
|
5777
|
-
return /* @__PURE__ */ (0,
|
|
5828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: "Invalid widget" });
|
|
5778
5829
|
}
|
|
5779
5830
|
const widgetParams = getWidgetParameters();
|
|
5780
5831
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -5783,7 +5834,7 @@ var WidgetNode = (props) => {
|
|
|
5783
5834
|
}
|
|
5784
5835
|
return (
|
|
5785
5836
|
// eslint-disable-next-line react-hooks/static-components
|
|
5786
|
-
/* @__PURE__ */ (0,
|
|
5837
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5787
5838
|
WidgetRenderer,
|
|
5788
5839
|
{
|
|
5789
5840
|
params: widgetParams,
|
|
@@ -5805,7 +5856,7 @@ var import_react55 = __toESM(require("react"));
|
|
|
5805
5856
|
|
|
5806
5857
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
5807
5858
|
var import_dynamic8 = __toESM(require("next/dynamic"));
|
|
5808
|
-
var
|
|
5859
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5809
5860
|
var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
5810
5861
|
ssr: false
|
|
5811
5862
|
});
|
|
@@ -5818,7 +5869,7 @@ var EmbedNode = (props) => {
|
|
|
5818
5869
|
} else {
|
|
5819
5870
|
src = props.node.embedSrc;
|
|
5820
5871
|
}
|
|
5821
|
-
return /* @__PURE__ */ (0,
|
|
5872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IframeClient2, { src }) });
|
|
5822
5873
|
};
|
|
5823
5874
|
var EmbedNode_default = EmbedNode;
|
|
5824
5875
|
|
|
@@ -6018,10 +6069,10 @@ var PathUtility = class {
|
|
|
6018
6069
|
var PathUtility_default = new PathUtility();
|
|
6019
6070
|
|
|
6020
6071
|
// src/components/NoDataFound.tsx
|
|
6021
|
-
var
|
|
6072
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6022
6073
|
var NoDataFound = () => {
|
|
6023
|
-
return /* @__PURE__ */ (0,
|
|
6024
|
-
/* @__PURE__ */ (0,
|
|
6074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
6075
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6025
6076
|
"svg",
|
|
6026
6077
|
{
|
|
6027
6078
|
className: "w-10 h-10",
|
|
@@ -6029,7 +6080,7 @@ var NoDataFound = () => {
|
|
|
6029
6080
|
stroke: "currentColor",
|
|
6030
6081
|
viewBox: "0 0 24 24",
|
|
6031
6082
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6032
|
-
children: /* @__PURE__ */ (0,
|
|
6083
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6033
6084
|
"path",
|
|
6034
6085
|
{
|
|
6035
6086
|
strokeLinecap: "round",
|
|
@@ -6040,8 +6091,8 @@ var NoDataFound = () => {
|
|
|
6040
6091
|
)
|
|
6041
6092
|
}
|
|
6042
6093
|
) }) }),
|
|
6043
|
-
/* @__PURE__ */ (0,
|
|
6044
|
-
/* @__PURE__ */ (0,
|
|
6094
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
6095
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
6045
6096
|
] });
|
|
6046
6097
|
};
|
|
6047
6098
|
var NoDataFound_default = NoDataFound;
|
|
@@ -6049,7 +6100,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
6049
6100
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
6050
6101
|
init_AssetUtility();
|
|
6051
6102
|
var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
6052
|
-
var
|
|
6103
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
6053
6104
|
var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
6054
6105
|
var deviceToMediaQuery = (device) => {
|
|
6055
6106
|
switch (device) {
|
|
@@ -6178,8 +6229,8 @@ var ImageGalleryNode = (props) => {
|
|
|
6178
6229
|
right: "justify-end"
|
|
6179
6230
|
};
|
|
6180
6231
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
6181
|
-
return /* @__PURE__ */ (0,
|
|
6182
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
6232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
|
|
6233
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6183
6234
|
HlsPlayer4,
|
|
6184
6235
|
{
|
|
6185
6236
|
sources: hlsSources,
|
|
@@ -6194,7 +6245,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6194
6245
|
styles: hlsStyles
|
|
6195
6246
|
}
|
|
6196
6247
|
) }),
|
|
6197
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
6248
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("picture", { children: [
|
|
6198
6249
|
DEVICE_ORDER.map((deviceKey) => {
|
|
6199
6250
|
const match = staticSources.find(
|
|
6200
6251
|
(img) => img.device === deviceKey
|
|
@@ -6206,7 +6257,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6206
6257
|
if (!srcUrl) {
|
|
6207
6258
|
return null;
|
|
6208
6259
|
}
|
|
6209
|
-
return /* @__PURE__ */ (0,
|
|
6260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6210
6261
|
"source",
|
|
6211
6262
|
{
|
|
6212
6263
|
media: deviceToMediaQuery(match.device),
|
|
@@ -6230,7 +6281,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6230
6281
|
if (img.borderRadius) {
|
|
6231
6282
|
styles.borderRadius = img.borderRadius;
|
|
6232
6283
|
}
|
|
6233
|
-
return /* @__PURE__ */ (0,
|
|
6284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6234
6285
|
"img",
|
|
6235
6286
|
{
|
|
6236
6287
|
loading: "lazy",
|
|
@@ -6245,7 +6296,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6245
6296
|
})()
|
|
6246
6297
|
] }) : (
|
|
6247
6298
|
/* Case 2: Only device-specific images exist */
|
|
6248
|
-
/* @__PURE__ */ (0,
|
|
6299
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: staticSources.map((img, index) => {
|
|
6249
6300
|
const imageUrl = resolveImageUrl(img);
|
|
6250
6301
|
if (!imageUrl) {
|
|
6251
6302
|
return null;
|
|
@@ -6271,7 +6322,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6271
6322
|
default:
|
|
6272
6323
|
display = "block";
|
|
6273
6324
|
}
|
|
6274
|
-
return /* @__PURE__ */ (0,
|
|
6325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6275
6326
|
"img",
|
|
6276
6327
|
{
|
|
6277
6328
|
loading: "lazy",
|
|
@@ -6412,28 +6463,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
6412
6463
|
|
|
6413
6464
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
6414
6465
|
init_AssetUtility();
|
|
6415
|
-
var
|
|
6466
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
6416
6467
|
var getNestedValue5 = (obj, path) => {
|
|
6417
6468
|
if (!obj || !path) return void 0;
|
|
6418
6469
|
return path.split(".").reduce((current, key) => {
|
|
6419
6470
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
6420
6471
|
}, obj);
|
|
6421
6472
|
};
|
|
6422
|
-
var PdfIcon = () => /* @__PURE__ */ (0,
|
|
6473
|
+
var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6423
6474
|
"svg",
|
|
6424
6475
|
{
|
|
6425
6476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6426
6477
|
viewBox: "0 0 48 48",
|
|
6427
6478
|
className: "w-10 h-10",
|
|
6428
6479
|
children: [
|
|
6429
|
-
/* @__PURE__ */ (0,
|
|
6480
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6430
6481
|
"path",
|
|
6431
6482
|
{
|
|
6432
6483
|
fill: "#e53935",
|
|
6433
6484
|
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"
|
|
6434
6485
|
}
|
|
6435
6486
|
),
|
|
6436
|
-
/* @__PURE__ */ (0,
|
|
6487
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6437
6488
|
"path",
|
|
6438
6489
|
{
|
|
6439
6490
|
fill: "#fff",
|
|
@@ -6443,55 +6494,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6443
6494
|
]
|
|
6444
6495
|
}
|
|
6445
6496
|
);
|
|
6446
|
-
var ExcelIcon = () => /* @__PURE__ */ (0,
|
|
6497
|
+
var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6447
6498
|
"svg",
|
|
6448
6499
|
{
|
|
6449
6500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6450
6501
|
viewBox: "0 0 48 48",
|
|
6451
6502
|
className: "w-10 h-10",
|
|
6452
6503
|
children: [
|
|
6453
|
-
/* @__PURE__ */ (0,
|
|
6504
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6454
6505
|
"path",
|
|
6455
6506
|
{
|
|
6456
6507
|
fill: "#169154",
|
|
6457
6508
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
6458
6509
|
}
|
|
6459
6510
|
),
|
|
6460
|
-
/* @__PURE__ */ (0,
|
|
6511
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6461
6512
|
"path",
|
|
6462
6513
|
{
|
|
6463
6514
|
fill: "#18482a",
|
|
6464
6515
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
6465
6516
|
}
|
|
6466
6517
|
),
|
|
6467
|
-
/* @__PURE__ */ (0,
|
|
6468
|
-
/* @__PURE__ */ (0,
|
|
6469
|
-
/* @__PURE__ */ (0,
|
|
6470
|
-
/* @__PURE__ */ (0,
|
|
6518
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
6519
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
6520
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("g", { children: [
|
|
6521
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6471
6522
|
"path",
|
|
6472
6523
|
{
|
|
6473
6524
|
fill: "#29c27f",
|
|
6474
6525
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
6475
6526
|
}
|
|
6476
6527
|
),
|
|
6477
|
-
/* @__PURE__ */ (0,
|
|
6528
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6478
6529
|
"path",
|
|
6479
6530
|
{
|
|
6480
6531
|
fill: "#27663f",
|
|
6481
6532
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
6482
6533
|
}
|
|
6483
6534
|
),
|
|
6484
|
-
/* @__PURE__ */ (0,
|
|
6485
|
-
/* @__PURE__ */ (0,
|
|
6535
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
6536
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
6486
6537
|
] }),
|
|
6487
|
-
/* @__PURE__ */ (0,
|
|
6538
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6488
6539
|
"path",
|
|
6489
6540
|
{
|
|
6490
6541
|
fill: "#0c7238",
|
|
6491
6542
|
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"
|
|
6492
6543
|
}
|
|
6493
6544
|
),
|
|
6494
|
-
/* @__PURE__ */ (0,
|
|
6545
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6495
6546
|
"path",
|
|
6496
6547
|
{
|
|
6497
6548
|
fill: "#fff",
|
|
@@ -6501,7 +6552,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6501
6552
|
]
|
|
6502
6553
|
}
|
|
6503
6554
|
);
|
|
6504
|
-
var WordIcon = () => /* @__PURE__ */ (0,
|
|
6555
|
+
var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6505
6556
|
"svg",
|
|
6506
6557
|
{
|
|
6507
6558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6509,14 +6560,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6509
6560
|
className: "w-10 h-10",
|
|
6510
6561
|
baseProfile: "basic",
|
|
6511
6562
|
children: [
|
|
6512
|
-
/* @__PURE__ */ (0,
|
|
6563
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6513
6564
|
"path",
|
|
6514
6565
|
{
|
|
6515
6566
|
fill: "#283593",
|
|
6516
6567
|
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"
|
|
6517
6568
|
}
|
|
6518
6569
|
),
|
|
6519
|
-
/* @__PURE__ */ (0,
|
|
6570
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6520
6571
|
"linearGradient",
|
|
6521
6572
|
{
|
|
6522
6573
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -6527,19 +6578,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6527
6578
|
gradientTransform: "translate(0 -339.89)",
|
|
6528
6579
|
gradientUnits: "userSpaceOnUse",
|
|
6529
6580
|
children: [
|
|
6530
|
-
/* @__PURE__ */ (0,
|
|
6531
|
-
/* @__PURE__ */ (0,
|
|
6581
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
6582
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
6532
6583
|
]
|
|
6533
6584
|
}
|
|
6534
6585
|
),
|
|
6535
|
-
/* @__PURE__ */ (0,
|
|
6586
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6536
6587
|
"path",
|
|
6537
6588
|
{
|
|
6538
6589
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
6539
6590
|
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"
|
|
6540
6591
|
}
|
|
6541
6592
|
),
|
|
6542
|
-
/* @__PURE__ */ (0,
|
|
6593
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6543
6594
|
"path",
|
|
6544
6595
|
{
|
|
6545
6596
|
fill: "#1e88e5",
|
|
@@ -6547,21 +6598,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6547
6598
|
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"
|
|
6548
6599
|
}
|
|
6549
6600
|
),
|
|
6550
|
-
/* @__PURE__ */ (0,
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6551
6602
|
"path",
|
|
6552
6603
|
{
|
|
6553
6604
|
fill: "#00e5ff",
|
|
6554
6605
|
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"
|
|
6555
6606
|
}
|
|
6556
6607
|
),
|
|
6557
|
-
/* @__PURE__ */ (0,
|
|
6608
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6558
6609
|
"path",
|
|
6559
6610
|
{
|
|
6560
6611
|
fill: "#1565c0",
|
|
6561
6612
|
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"
|
|
6562
6613
|
}
|
|
6563
6614
|
),
|
|
6564
|
-
/* @__PURE__ */ (0,
|
|
6615
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6565
6616
|
"path",
|
|
6566
6617
|
{
|
|
6567
6618
|
fill: "#fff",
|
|
@@ -6571,42 +6622,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6571
6622
|
]
|
|
6572
6623
|
}
|
|
6573
6624
|
);
|
|
6574
|
-
var StandardIcon = () => /* @__PURE__ */ (0,
|
|
6625
|
+
var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6575
6626
|
"svg",
|
|
6576
6627
|
{
|
|
6577
6628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6578
6629
|
viewBox: "0 0 48 48",
|
|
6579
6630
|
className: "w-10 h-10",
|
|
6580
6631
|
children: [
|
|
6581
|
-
/* @__PURE__ */ (0,
|
|
6582
|
-
/* @__PURE__ */ (0,
|
|
6632
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
6633
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
6583
6634
|
]
|
|
6584
6635
|
}
|
|
6585
6636
|
);
|
|
6586
|
-
var PowerPointIcon = () => /* @__PURE__ */ (0,
|
|
6637
|
+
var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6587
6638
|
"svg",
|
|
6588
6639
|
{
|
|
6589
6640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6590
6641
|
viewBox: "0 0 48 48",
|
|
6591
6642
|
className: "w-10 h-10",
|
|
6592
6643
|
children: [
|
|
6593
|
-
/* @__PURE__ */ (0,
|
|
6644
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6594
6645
|
"path",
|
|
6595
6646
|
{
|
|
6596
6647
|
fill: "#dc4c2c",
|
|
6597
6648
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
6598
6649
|
}
|
|
6599
6650
|
),
|
|
6600
|
-
/* @__PURE__ */ (0,
|
|
6601
|
-
/* @__PURE__ */ (0,
|
|
6602
|
-
/* @__PURE__ */ (0,
|
|
6651
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
6652
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
6653
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6603
6654
|
"path",
|
|
6604
6655
|
{
|
|
6605
6656
|
fill: "#9b341f",
|
|
6606
6657
|
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"
|
|
6607
6658
|
}
|
|
6608
6659
|
),
|
|
6609
|
-
/* @__PURE__ */ (0,
|
|
6660
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6610
6661
|
"path",
|
|
6611
6662
|
{
|
|
6612
6663
|
fill: "#fff",
|
|
@@ -6616,16 +6667,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6616
6667
|
]
|
|
6617
6668
|
}
|
|
6618
6669
|
);
|
|
6619
|
-
var TextIcon = () => /* @__PURE__ */ (0,
|
|
6670
|
+
var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6620
6671
|
"svg",
|
|
6621
6672
|
{
|
|
6622
6673
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6623
6674
|
viewBox: "0 0 48 48",
|
|
6624
6675
|
className: "w-10 h-10",
|
|
6625
6676
|
children: [
|
|
6626
|
-
/* @__PURE__ */ (0,
|
|
6627
|
-
/* @__PURE__ */ (0,
|
|
6628
|
-
/* @__PURE__ */ (0,
|
|
6677
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
6678
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
6679
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6629
6680
|
"path",
|
|
6630
6681
|
{
|
|
6631
6682
|
fill: "#1976D2",
|
|
@@ -6635,7 +6686,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6635
6686
|
]
|
|
6636
6687
|
}
|
|
6637
6688
|
);
|
|
6638
|
-
var ArchiveIcon = () => /* @__PURE__ */ (0,
|
|
6689
|
+
var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6639
6690
|
"svg",
|
|
6640
6691
|
{
|
|
6641
6692
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6645,14 +6696,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6645
6696
|
version: "1.0",
|
|
6646
6697
|
className: "w-10 h-10",
|
|
6647
6698
|
children: [
|
|
6648
|
-
/* @__PURE__ */ (0,
|
|
6699
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6649
6700
|
"path",
|
|
6650
6701
|
{
|
|
6651
6702
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
6652
6703
|
"clip-rule": "nonzero"
|
|
6653
6704
|
}
|
|
6654
6705
|
) }) }),
|
|
6655
|
-
/* @__PURE__ */ (0,
|
|
6706
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6656
6707
|
"path",
|
|
6657
6708
|
{
|
|
6658
6709
|
fill: "#ff9100",
|
|
@@ -6661,7 +6712,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6661
6712
|
"fill-rule": "nonzero"
|
|
6662
6713
|
}
|
|
6663
6714
|
) }),
|
|
6664
|
-
/* @__PURE__ */ (0,
|
|
6715
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6665
6716
|
"path",
|
|
6666
6717
|
{
|
|
6667
6718
|
fill: "#fbe9e7",
|
|
@@ -6670,7 +6721,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6670
6721
|
"fill-rule": "nonzero"
|
|
6671
6722
|
}
|
|
6672
6723
|
),
|
|
6673
|
-
/* @__PURE__ */ (0,
|
|
6724
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6674
6725
|
"path",
|
|
6675
6726
|
{
|
|
6676
6727
|
fill: "#ffe0b2",
|
|
@@ -6679,7 +6730,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6679
6730
|
"fill-rule": "nonzero"
|
|
6680
6731
|
}
|
|
6681
6732
|
),
|
|
6682
|
-
/* @__PURE__ */ (0,
|
|
6733
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6683
6734
|
"path",
|
|
6684
6735
|
{
|
|
6685
6736
|
fill: "#ffe0b2",
|
|
@@ -6688,7 +6739,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6688
6739
|
"fill-rule": "nonzero"
|
|
6689
6740
|
}
|
|
6690
6741
|
),
|
|
6691
|
-
/* @__PURE__ */ (0,
|
|
6742
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6692
6743
|
"path",
|
|
6693
6744
|
{
|
|
6694
6745
|
fill: "#ffe0b2",
|
|
@@ -6764,8 +6815,8 @@ var DocumentNode = (props) => {
|
|
|
6764
6815
|
}
|
|
6765
6816
|
}
|
|
6766
6817
|
if (documents.length === 0) {
|
|
6767
|
-
return /* @__PURE__ */ (0,
|
|
6768
|
-
/* @__PURE__ */ (0,
|
|
6818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_jsx_runtime73.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
6819
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6769
6820
|
"svg",
|
|
6770
6821
|
{
|
|
6771
6822
|
className: "w-5 h-5",
|
|
@@ -6773,7 +6824,7 @@ var DocumentNode = (props) => {
|
|
|
6773
6824
|
stroke: "currentColor",
|
|
6774
6825
|
viewBox: "0 0 24 24",
|
|
6775
6826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6776
|
-
children: /* @__PURE__ */ (0,
|
|
6827
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6777
6828
|
"path",
|
|
6778
6829
|
{
|
|
6779
6830
|
strokeLinecap: "round",
|
|
@@ -6784,11 +6835,11 @@ var DocumentNode = (props) => {
|
|
|
6784
6835
|
)
|
|
6785
6836
|
}
|
|
6786
6837
|
) }),
|
|
6787
|
-
/* @__PURE__ */ (0,
|
|
6788
|
-
/* @__PURE__ */ (0,
|
|
6838
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
6839
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
6789
6840
|
] }) });
|
|
6790
6841
|
}
|
|
6791
|
-
return /* @__PURE__ */ (0,
|
|
6842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
6792
6843
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
6793
6844
|
props.assetBaseUrl,
|
|
6794
6845
|
doc.assetUrl
|
|
@@ -6806,16 +6857,16 @@ var DocumentNode = (props) => {
|
|
|
6806
6857
|
}
|
|
6807
6858
|
}
|
|
6808
6859
|
const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
|
|
6809
|
-
return /* @__PURE__ */ (0,
|
|
6860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6810
6861
|
"div",
|
|
6811
6862
|
{
|
|
6812
6863
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
6813
6864
|
children: [
|
|
6814
|
-
/* @__PURE__ */ (0,
|
|
6815
|
-
/* @__PURE__ */ (0,
|
|
6816
|
-
/* @__PURE__ */ (0,
|
|
6865
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
6866
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon2, {}) }),
|
|
6867
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
6817
6868
|
] }),
|
|
6818
|
-
/* @__PURE__ */ (0,
|
|
6869
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6819
6870
|
"a",
|
|
6820
6871
|
{
|
|
6821
6872
|
href: documentUrl,
|
|
@@ -6823,7 +6874,7 @@ var DocumentNode = (props) => {
|
|
|
6823
6874
|
rel: "noopener noreferrer",
|
|
6824
6875
|
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",
|
|
6825
6876
|
children: [
|
|
6826
|
-
/* @__PURE__ */ (0,
|
|
6877
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6827
6878
|
"svg",
|
|
6828
6879
|
{
|
|
6829
6880
|
className: "w-4 h-4 mr-2",
|
|
@@ -6831,7 +6882,7 @@ var DocumentNode = (props) => {
|
|
|
6831
6882
|
stroke: "currentColor",
|
|
6832
6883
|
viewBox: "0 0 24 24",
|
|
6833
6884
|
children: [
|
|
6834
|
-
/* @__PURE__ */ (0,
|
|
6885
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6835
6886
|
"path",
|
|
6836
6887
|
{
|
|
6837
6888
|
strokeLinecap: "round",
|
|
@@ -6840,7 +6891,7 @@ var DocumentNode = (props) => {
|
|
|
6840
6891
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
6841
6892
|
}
|
|
6842
6893
|
),
|
|
6843
|
-
/* @__PURE__ */ (0,
|
|
6894
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6844
6895
|
"path",
|
|
6845
6896
|
{
|
|
6846
6897
|
strokeLinecap: "round",
|
|
@@ -6865,7 +6916,7 @@ var DocumentNode = (props) => {
|
|
|
6865
6916
|
var DocumentNode_default = DocumentNode;
|
|
6866
6917
|
|
|
6867
6918
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
6868
|
-
var
|
|
6919
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6869
6920
|
var Pagination2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
6870
6921
|
var Slider2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
|
|
6871
6922
|
ssr: false
|
|
@@ -7120,7 +7171,7 @@ var DivContainer = async (props) => {
|
|
|
7120
7171
|
response = await serviceClient.get(endpoint);
|
|
7121
7172
|
result = response?.result;
|
|
7122
7173
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
7123
|
-
return /* @__PURE__ */ (0,
|
|
7174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(NoDataFound_default, {});
|
|
7124
7175
|
}
|
|
7125
7176
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
7126
7177
|
childCollectionData = getNestedValue6(
|
|
@@ -7140,7 +7191,7 @@ var DivContainer = async (props) => {
|
|
|
7140
7191
|
}
|
|
7141
7192
|
const SelectedNode = NodeTypes2[node.type];
|
|
7142
7193
|
if (!SelectedNode) return null;
|
|
7143
|
-
return /* @__PURE__ */ (0,
|
|
7194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react55.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
7144
7195
|
SelectedNode,
|
|
7145
7196
|
{
|
|
7146
7197
|
node,
|
|
@@ -7273,14 +7324,14 @@ var DivContainer = async (props) => {
|
|
|
7273
7324
|
noLinkColor && "no-link-color",
|
|
7274
7325
|
!!props.node.enterAnimation && "enter-animation"
|
|
7275
7326
|
].filter(Boolean).join(" ");
|
|
7276
|
-
return /* @__PURE__ */ (0,
|
|
7277
|
-
/* @__PURE__ */ (0,
|
|
7327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_react55.default.Fragment, { children: [
|
|
7328
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
7278
7329
|
"style",
|
|
7279
7330
|
{
|
|
7280
7331
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
7281
7332
|
}
|
|
7282
7333
|
),
|
|
7283
|
-
/* @__PURE__ */ (0,
|
|
7334
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
7284
7335
|
Wrapper,
|
|
7285
7336
|
{
|
|
7286
7337
|
id: guid,
|
|
@@ -7294,11 +7345,11 @@ var DivContainer = async (props) => {
|
|
|
7294
7345
|
item,
|
|
7295
7346
|
idx,
|
|
7296
7347
|
props.href ? void 0 : item?.links?.view
|
|
7297
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
7348
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react55.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
7298
7349
|
)
|
|
7299
7350
|
}
|
|
7300
7351
|
),
|
|
7301
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0,
|
|
7352
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
7302
7353
|
Pagination2,
|
|
7303
7354
|
{
|
|
7304
7355
|
path: props.path,
|
|
@@ -7311,7 +7362,7 @@ var DivContainer = async (props) => {
|
|
|
7311
7362
|
var DivContainer_default = DivContainer;
|
|
7312
7363
|
|
|
7313
7364
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
7314
|
-
var
|
|
7365
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
7315
7366
|
var NodeTypes = {
|
|
7316
7367
|
["paragraph"]: ParagraphNode_default,
|
|
7317
7368
|
["heading"]: HeadingNode_default,
|
|
@@ -7348,14 +7399,14 @@ var PageBodyRenderer = (props) => {
|
|
|
7348
7399
|
}
|
|
7349
7400
|
return true;
|
|
7350
7401
|
};
|
|
7351
|
-
return /* @__PURE__ */ (0,
|
|
7402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
7352
7403
|
{
|
|
7353
7404
|
}
|
|
7354
7405
|
const SelectedNode = NodeTypes[node.type];
|
|
7355
7406
|
if (!shouldRenderNode(node)) {
|
|
7356
7407
|
return null;
|
|
7357
7408
|
}
|
|
7358
|
-
return /* @__PURE__ */ (0,
|
|
7409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
7359
7410
|
SelectedNode,
|
|
7360
7411
|
{
|
|
7361
7412
|
node,
|
|
@@ -7371,7 +7422,7 @@ var PageBodyRenderer = (props) => {
|
|
|
7371
7422
|
device: props.device,
|
|
7372
7423
|
widgetRenderer: props.widgetRenderer
|
|
7373
7424
|
}
|
|
7374
|
-
) }) : /* @__PURE__ */ (0,
|
|
7425
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
7375
7426
|
SelectedNode,
|
|
7376
7427
|
{
|
|
7377
7428
|
node,
|
|
@@ -7442,7 +7493,7 @@ function EnterAnimationHydrator() {
|
|
|
7442
7493
|
// src/components/Toast.tsx
|
|
7443
7494
|
var import_react58 = require("react");
|
|
7444
7495
|
init_ToastService();
|
|
7445
|
-
var
|
|
7496
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
7446
7497
|
var Toast = () => {
|
|
7447
7498
|
const [showToast, setShowToast] = (0, import_react58.useState)(false);
|
|
7448
7499
|
const [message, setMessage] = (0, import_react58.useState)("");
|
|
@@ -7476,8 +7527,8 @@ var Toast = () => {
|
|
|
7476
7527
|
});
|
|
7477
7528
|
};
|
|
7478
7529
|
}, [closeToast, showMessage]);
|
|
7479
|
-
return /* @__PURE__ */ (0,
|
|
7480
|
-
/* @__PURE__ */ (0,
|
|
7530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_jsx_runtime78.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime78.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_runtime78.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
7531
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
7481
7532
|
"span",
|
|
7482
7533
|
{
|
|
7483
7534
|
className: "font-medium text-inherit text-sm",
|
|
@@ -7485,7 +7536,7 @@ var Toast = () => {
|
|
|
7485
7536
|
children: message
|
|
7486
7537
|
}
|
|
7487
7538
|
),
|
|
7488
|
-
/* @__PURE__ */ (0,
|
|
7539
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
7489
7540
|
"svg",
|
|
7490
7541
|
{
|
|
7491
7542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7493,7 +7544,7 @@ var Toast = () => {
|
|
|
7493
7544
|
fill: "none",
|
|
7494
7545
|
viewBox: "0 0 24 24",
|
|
7495
7546
|
stroke: "currentColor",
|
|
7496
|
-
children: /* @__PURE__ */ (0,
|
|
7547
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
7497
7548
|
}
|
|
7498
7549
|
) })
|
|
7499
7550
|
] }) }) });
|
|
@@ -7524,7 +7575,7 @@ init_Switcher();
|
|
|
7524
7575
|
// src/components/NavigationTabsV2.tsx
|
|
7525
7576
|
var import_link3 = __toESM(require("next/link"));
|
|
7526
7577
|
var import_navigation = require("next/navigation");
|
|
7527
|
-
var
|
|
7578
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
7528
7579
|
function resolveRoutePlaceholders(route, params) {
|
|
7529
7580
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
7530
7581
|
const value = params[key];
|
|
@@ -7549,8 +7600,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
7549
7600
|
isActive: tab.isActive
|
|
7550
7601
|
})) || [];
|
|
7551
7602
|
if (mappedTabs.length === 0) return null;
|
|
7552
|
-
return /* @__PURE__ */ (0,
|
|
7553
|
-
return /* @__PURE__ */ (0,
|
|
7603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
7604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
7554
7605
|
"div",
|
|
7555
7606
|
{
|
|
7556
7607
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -7568,9 +7619,9 @@ var import_navigation2 = require("next/navigation");
|
|
|
7568
7619
|
|
|
7569
7620
|
// src/components/dataForm/NoContentView.tsx
|
|
7570
7621
|
var import_react59 = __toESM(require("react"));
|
|
7571
|
-
var
|
|
7622
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
7572
7623
|
var NoContentView = (props) => {
|
|
7573
|
-
return /* @__PURE__ */ (0,
|
|
7624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react59.default.Fragment, { children: props.isDataFound === false && props.children });
|
|
7574
7625
|
};
|
|
7575
7626
|
var NoContentView_default = NoContentView;
|
|
7576
7627
|
|
|
@@ -7579,38 +7630,38 @@ init_InputControlType();
|
|
|
7579
7630
|
|
|
7580
7631
|
// src/components/dataForm/ContentView.tsx
|
|
7581
7632
|
var import_react60 = __toESM(require("react"));
|
|
7582
|
-
var
|
|
7633
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7583
7634
|
var ContentView = (props) => {
|
|
7584
|
-
return /* @__PURE__ */ (0,
|
|
7585
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
7586
|
-
/* @__PURE__ */ (0,
|
|
7587
|
-
/* @__PURE__ */ (0,
|
|
7588
|
-
/* @__PURE__ */ (0,
|
|
7589
|
-
/* @__PURE__ */ (0,
|
|
7590
|
-
/* @__PURE__ */ (0,
|
|
7635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react60.default.Fragment, { children: [
|
|
7636
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
7637
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
7638
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
7639
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "ml-2", children: [
|
|
7640
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
7641
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
7591
7642
|
] })
|
|
7592
7643
|
] }),
|
|
7593
|
-
/* @__PURE__ */ (0,
|
|
7594
|
-
/* @__PURE__ */ (0,
|
|
7595
|
-
/* @__PURE__ */ (0,
|
|
7596
|
-
/* @__PURE__ */ (0,
|
|
7597
|
-
/* @__PURE__ */ (0,
|
|
7598
|
-
/* @__PURE__ */ (0,
|
|
7599
|
-
/* @__PURE__ */ (0,
|
|
7644
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
7645
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "animate-pulse", children: [
|
|
7646
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7647
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7648
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7649
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7650
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7600
7651
|
] }),
|
|
7601
|
-
/* @__PURE__ */ (0,
|
|
7602
|
-
/* @__PURE__ */ (0,
|
|
7603
|
-
/* @__PURE__ */ (0,
|
|
7604
|
-
/* @__PURE__ */ (0,
|
|
7605
|
-
/* @__PURE__ */ (0,
|
|
7606
|
-
/* @__PURE__ */ (0,
|
|
7652
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "animate-pulse", children: [
|
|
7653
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7654
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7655
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7656
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7657
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7607
7658
|
] }),
|
|
7608
|
-
/* @__PURE__ */ (0,
|
|
7609
|
-
/* @__PURE__ */ (0,
|
|
7610
|
-
/* @__PURE__ */ (0,
|
|
7611
|
-
/* @__PURE__ */ (0,
|
|
7612
|
-
/* @__PURE__ */ (0,
|
|
7613
|
-
/* @__PURE__ */ (0,
|
|
7659
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "animate-pulse", children: [
|
|
7660
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7661
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7662
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7663
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7664
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7614
7665
|
] })
|
|
7615
7666
|
] })
|
|
7616
7667
|
] }) }),
|
|
@@ -7670,7 +7721,7 @@ function FormReducer(state, action) {
|
|
|
7670
7721
|
var FormReducer_default = FormReducer;
|
|
7671
7722
|
|
|
7672
7723
|
// src/components/dataForm/DataList.tsx
|
|
7673
|
-
var
|
|
7724
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7674
7725
|
var DataList = (props) => {
|
|
7675
7726
|
const router = (0, import_navigation2.useRouter)();
|
|
7676
7727
|
let builder = new OdataBuilder(props.path);
|
|
@@ -7708,7 +7759,7 @@ var DataList = (props) => {
|
|
|
7708
7759
|
if (path.includes(".")) {
|
|
7709
7760
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
7710
7761
|
} else if (Array.isArray(obj[path])) {
|
|
7711
|
-
return obj[path].map((item, index) => /* @__PURE__ */ (0,
|
|
7762
|
+
return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: item }, index));
|
|
7712
7763
|
} else {
|
|
7713
7764
|
return obj[path];
|
|
7714
7765
|
}
|
|
@@ -7787,30 +7838,30 @@ var DataList = (props) => {
|
|
|
7787
7838
|
const renderPageNumbers = () => {
|
|
7788
7839
|
if (pages <= 10) {
|
|
7789
7840
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
7790
|
-
(page) => /* @__PURE__ */ (0,
|
|
7841
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7791
7842
|
Hyperlink,
|
|
7792
7843
|
{
|
|
7793
7844
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7794
7845
|
href: builder.getNewPageUrl(page),
|
|
7795
7846
|
children: page
|
|
7796
7847
|
}
|
|
7797
|
-
) : /* @__PURE__ */ (0,
|
|
7848
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
7798
7849
|
);
|
|
7799
7850
|
} else {
|
|
7800
7851
|
const showFirstPages = activePageNumber <= 5;
|
|
7801
7852
|
const showLastPages = activePageNumber > pages - 5;
|
|
7802
7853
|
if (showFirstPages) {
|
|
7803
|
-
return /* @__PURE__ */ (0,
|
|
7804
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0,
|
|
7854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
7855
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7805
7856
|
Hyperlink,
|
|
7806
7857
|
{
|
|
7807
7858
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7808
7859
|
href: builder.getNewPageUrl(page),
|
|
7809
7860
|
children: page
|
|
7810
7861
|
}
|
|
7811
|
-
) : /* @__PURE__ */ (0,
|
|
7812
|
-
/* @__PURE__ */ (0,
|
|
7813
|
-
/* @__PURE__ */ (0,
|
|
7862
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
7863
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7864
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7814
7865
|
Hyperlink,
|
|
7815
7866
|
{
|
|
7816
7867
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7818,7 +7869,7 @@ var DataList = (props) => {
|
|
|
7818
7869
|
children: pages - 1
|
|
7819
7870
|
}
|
|
7820
7871
|
),
|
|
7821
|
-
/* @__PURE__ */ (0,
|
|
7872
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7822
7873
|
Hyperlink,
|
|
7823
7874
|
{
|
|
7824
7875
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7826,7 +7877,7 @@ var DataList = (props) => {
|
|
|
7826
7877
|
children: pages
|
|
7827
7878
|
}
|
|
7828
7879
|
),
|
|
7829
|
-
/* @__PURE__ */ (0,
|
|
7880
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7830
7881
|
"select",
|
|
7831
7882
|
{
|
|
7832
7883
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -7838,18 +7889,18 @@ var DataList = (props) => {
|
|
|
7838
7889
|
}
|
|
7839
7890
|
},
|
|
7840
7891
|
children: [
|
|
7841
|
-
/* @__PURE__ */ (0,
|
|
7892
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("option", { className: "", value: "", children: "Jump to" }),
|
|
7842
7893
|
Array.from(
|
|
7843
7894
|
{ length: Math.max(0, pages - 10) },
|
|
7844
7895
|
(_, index) => index + 9
|
|
7845
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
7896
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("option", { value: page, children: page }, page))
|
|
7846
7897
|
]
|
|
7847
7898
|
}
|
|
7848
7899
|
) })
|
|
7849
7900
|
] });
|
|
7850
7901
|
} else if (showLastPages) {
|
|
7851
|
-
return /* @__PURE__ */ (0,
|
|
7852
|
-
/* @__PURE__ */ (0,
|
|
7902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
7903
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7853
7904
|
Hyperlink,
|
|
7854
7905
|
{
|
|
7855
7906
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7857,7 +7908,7 @@ var DataList = (props) => {
|
|
|
7857
7908
|
children: "1"
|
|
7858
7909
|
}
|
|
7859
7910
|
),
|
|
7860
|
-
/* @__PURE__ */ (0,
|
|
7911
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7861
7912
|
Hyperlink,
|
|
7862
7913
|
{
|
|
7863
7914
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7865,21 +7916,21 @@ var DataList = (props) => {
|
|
|
7865
7916
|
children: "2"
|
|
7866
7917
|
}
|
|
7867
7918
|
),
|
|
7868
|
-
/* @__PURE__ */ (0,
|
|
7919
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7869
7920
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
7870
|
-
(page) => /* @__PURE__ */ (0,
|
|
7921
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7871
7922
|
Hyperlink,
|
|
7872
7923
|
{
|
|
7873
7924
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7874
7925
|
href: builder.getNewPageUrl(page),
|
|
7875
7926
|
children: page
|
|
7876
7927
|
}
|
|
7877
|
-
) : /* @__PURE__ */ (0,
|
|
7928
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
7878
7929
|
)
|
|
7879
7930
|
] });
|
|
7880
7931
|
} else {
|
|
7881
|
-
return /* @__PURE__ */ (0,
|
|
7882
|
-
/* @__PURE__ */ (0,
|
|
7932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
7933
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7883
7934
|
Hyperlink,
|
|
7884
7935
|
{
|
|
7885
7936
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7887,7 +7938,7 @@ var DataList = (props) => {
|
|
|
7887
7938
|
children: "1"
|
|
7888
7939
|
}
|
|
7889
7940
|
),
|
|
7890
|
-
/* @__PURE__ */ (0,
|
|
7941
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7891
7942
|
Hyperlink,
|
|
7892
7943
|
{
|
|
7893
7944
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7895,20 +7946,20 @@ var DataList = (props) => {
|
|
|
7895
7946
|
children: "2"
|
|
7896
7947
|
}
|
|
7897
7948
|
),
|
|
7898
|
-
/* @__PURE__ */ (0,
|
|
7949
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7899
7950
|
Array.from(
|
|
7900
7951
|
{ length: 5 },
|
|
7901
7952
|
(_, index) => activePageNumber - 2 + index
|
|
7902
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
7953
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7903
7954
|
Hyperlink,
|
|
7904
7955
|
{
|
|
7905
7956
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7906
7957
|
href: builder.getNewPageUrl(page),
|
|
7907
7958
|
children: page
|
|
7908
7959
|
}
|
|
7909
|
-
) : /* @__PURE__ */ (0,
|
|
7910
|
-
/* @__PURE__ */ (0,
|
|
7911
|
-
/* @__PURE__ */ (0,
|
|
7960
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
7961
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7962
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7912
7963
|
Hyperlink,
|
|
7913
7964
|
{
|
|
7914
7965
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7916,7 +7967,7 @@ var DataList = (props) => {
|
|
|
7916
7967
|
children: pages - 1
|
|
7917
7968
|
}
|
|
7918
7969
|
),
|
|
7919
|
-
/* @__PURE__ */ (0,
|
|
7970
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7920
7971
|
Hyperlink,
|
|
7921
7972
|
{
|
|
7922
7973
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7924,7 +7975,7 @@ var DataList = (props) => {
|
|
|
7924
7975
|
children: pages
|
|
7925
7976
|
}
|
|
7926
7977
|
),
|
|
7927
|
-
/* @__PURE__ */ (0,
|
|
7978
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7928
7979
|
"select",
|
|
7929
7980
|
{
|
|
7930
7981
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -7936,8 +7987,8 @@ var DataList = (props) => {
|
|
|
7936
7987
|
}
|
|
7937
7988
|
},
|
|
7938
7989
|
children: [
|
|
7939
|
-
/* @__PURE__ */ (0,
|
|
7940
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0,
|
|
7990
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("option", { value: "", children: "Jump to" }),
|
|
7991
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("option", { value: page, children: page }, page))
|
|
7941
7992
|
]
|
|
7942
7993
|
}
|
|
7943
7994
|
) })
|
|
@@ -7945,16 +7996,16 @@ var DataList = (props) => {
|
|
|
7945
7996
|
}
|
|
7946
7997
|
}
|
|
7947
7998
|
};
|
|
7948
|
-
return /* @__PURE__ */ (0,
|
|
7949
|
-
/* @__PURE__ */ (0,
|
|
7950
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
7999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_react61.default.Fragment, { children: [
|
|
8000
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(ContentView_default, { isDataFound, children: [
|
|
8001
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7951
8002
|
"div",
|
|
7952
8003
|
{
|
|
7953
8004
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
7954
8005
|
children: [
|
|
7955
|
-
props.title ? /* @__PURE__ */ (0,
|
|
7956
|
-
/* @__PURE__ */ (0,
|
|
7957
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
8006
|
+
props.title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", {}),
|
|
8007
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
8008
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7958
8009
|
InputControl_default,
|
|
7959
8010
|
{
|
|
7960
8011
|
name: "Search_input",
|
|
@@ -7966,7 +8017,7 @@ var DataList = (props) => {
|
|
|
7966
8017
|
}
|
|
7967
8018
|
}
|
|
7968
8019
|
),
|
|
7969
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
8020
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7970
8021
|
InputControl_default,
|
|
7971
8022
|
{
|
|
7972
8023
|
name: filter.name,
|
|
@@ -7981,15 +8032,15 @@ var DataList = (props) => {
|
|
|
7981
8032
|
},
|
|
7982
8033
|
filter.name
|
|
7983
8034
|
)),
|
|
7984
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
8035
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7985
8036
|
Hyperlink,
|
|
7986
8037
|
{
|
|
7987
8038
|
className: "gap-1",
|
|
7988
8039
|
linkType: "Primary" /* Solid */,
|
|
7989
8040
|
href: props.addLinkHref,
|
|
7990
8041
|
children: [
|
|
7991
|
-
/* @__PURE__ */ (0,
|
|
7992
|
-
/* @__PURE__ */ (0,
|
|
8042
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
8043
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
7993
8044
|
]
|
|
7994
8045
|
}
|
|
7995
8046
|
)
|
|
@@ -7997,8 +8048,8 @@ var DataList = (props) => {
|
|
|
7997
8048
|
]
|
|
7998
8049
|
}
|
|
7999
8050
|
),
|
|
8000
|
-
/* @__PURE__ */ (0,
|
|
8001
|
-
/* @__PURE__ */ (0,
|
|
8051
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
8052
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tr", { children: props?.columns?.map((column) => {
|
|
8002
8053
|
let url = builder.getNewOrderByUrl(column.name);
|
|
8003
8054
|
let icon = "chevronUpDown";
|
|
8004
8055
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -8008,18 +8059,18 @@ var DataList = (props) => {
|
|
|
8008
8059
|
icon = "chevronUp";
|
|
8009
8060
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
8010
8061
|
}
|
|
8011
|
-
return /* @__PURE__ */ (0,
|
|
8062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8012
8063
|
"th",
|
|
8013
8064
|
{
|
|
8014
8065
|
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" : ""),
|
|
8015
|
-
children: /* @__PURE__ */ (0,
|
|
8066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8016
8067
|
Hyperlink,
|
|
8017
8068
|
{
|
|
8018
8069
|
href: column.enableSorting ? url : void 0,
|
|
8019
8070
|
className: "!text-neutral-contrast ",
|
|
8020
|
-
children: /* @__PURE__ */ (0,
|
|
8021
|
-
/* @__PURE__ */ (0,
|
|
8022
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
8071
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
8072
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-black", children: column.label }),
|
|
8073
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
8023
8074
|
] })
|
|
8024
8075
|
}
|
|
8025
8076
|
)
|
|
@@ -8027,24 +8078,24 @@ var DataList = (props) => {
|
|
|
8027
8078
|
column.name
|
|
8028
8079
|
);
|
|
8029
8080
|
}) }) }),
|
|
8030
|
-
/* @__PURE__ */ (0,
|
|
8081
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
8031
8082
|
let validityClass = "";
|
|
8032
8083
|
console.log("dataitem", dataitem);
|
|
8033
8084
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
8034
8085
|
validityClass = "bg-alert-200";
|
|
8035
8086
|
}
|
|
8036
|
-
return /* @__PURE__ */ (0,
|
|
8087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
8037
8088
|
console.log("column", column);
|
|
8038
|
-
return /* @__PURE__ */ (0,
|
|
8089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8039
8090
|
"td",
|
|
8040
8091
|
{
|
|
8041
8092
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
8042
|
-
children: column.addhref === true ? /* @__PURE__ */ (0,
|
|
8093
|
+
children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8043
8094
|
Hyperlink,
|
|
8044
8095
|
{
|
|
8045
8096
|
className: "",
|
|
8046
8097
|
href: `https://${dataitem[column.name]}`,
|
|
8047
|
-
children: /* @__PURE__ */ (0,
|
|
8098
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8048
8099
|
ViewControl_default,
|
|
8049
8100
|
{
|
|
8050
8101
|
controlType: column.controlType,
|
|
@@ -8057,11 +8108,11 @@ var DataList = (props) => {
|
|
|
8057
8108
|
}
|
|
8058
8109
|
)
|
|
8059
8110
|
}
|
|
8060
|
-
) : column.showAsLink ? /* @__PURE__ */ (0,
|
|
8111
|
+
) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8061
8112
|
Hyperlink,
|
|
8062
8113
|
{
|
|
8063
8114
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
8064
|
-
children: /* @__PURE__ */ (0,
|
|
8115
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8065
8116
|
ViewControl_default,
|
|
8066
8117
|
{
|
|
8067
8118
|
controlType: column.controlType,
|
|
@@ -8071,7 +8122,7 @@ var DataList = (props) => {
|
|
|
8071
8122
|
}
|
|
8072
8123
|
)
|
|
8073
8124
|
}
|
|
8074
|
-
) : /* @__PURE__ */ (0,
|
|
8125
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8075
8126
|
ViewControl_default,
|
|
8076
8127
|
{
|
|
8077
8128
|
controlType: column.controlType,
|
|
@@ -8085,10 +8136,10 @@ var DataList = (props) => {
|
|
|
8085
8136
|
}) }, index);
|
|
8086
8137
|
}) })
|
|
8087
8138
|
] }) }),
|
|
8088
|
-
/* @__PURE__ */ (0,
|
|
8089
|
-
/* @__PURE__ */ (0,
|
|
8090
|
-
/* @__PURE__ */ (0,
|
|
8091
|
-
activePageNumber > 1 && /* @__PURE__ */ (0,
|
|
8139
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
8140
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "text-gray-700", children: label }),
|
|
8141
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex space-x-2 items-center", children: [
|
|
8142
|
+
activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8092
8143
|
Hyperlink,
|
|
8093
8144
|
{
|
|
8094
8145
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -8096,9 +8147,9 @@ var DataList = (props) => {
|
|
|
8096
8147
|
children: "Prev"
|
|
8097
8148
|
}
|
|
8098
8149
|
),
|
|
8099
|
-
activePageNumber <= 1 && /* @__PURE__ */ (0,
|
|
8150
|
+
activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime82.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" }),
|
|
8100
8151
|
renderPageNumbers(),
|
|
8101
|
-
activePageNumber < pages && /* @__PURE__ */ (0,
|
|
8152
|
+
activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8102
8153
|
Hyperlink,
|
|
8103
8154
|
{
|
|
8104
8155
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -8106,19 +8157,19 @@ var DataList = (props) => {
|
|
|
8106
8157
|
children: "Next"
|
|
8107
8158
|
}
|
|
8108
8159
|
),
|
|
8109
|
-
activePageNumber >= pages && /* @__PURE__ */ (0,
|
|
8160
|
+
activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
8110
8161
|
] })
|
|
8111
8162
|
] }) })
|
|
8112
8163
|
] }),
|
|
8113
|
-
/* @__PURE__ */ (0,
|
|
8114
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
8164
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(NoContentView_default, { isDataFound, children: [
|
|
8165
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8115
8166
|
"div",
|
|
8116
8167
|
{
|
|
8117
8168
|
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`,
|
|
8118
8169
|
children: [
|
|
8119
|
-
props.title ? /* @__PURE__ */ (0,
|
|
8120
|
-
/* @__PURE__ */ (0,
|
|
8121
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
8170
|
+
props.title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", {}),
|
|
8171
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
8172
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8122
8173
|
InputControl_default,
|
|
8123
8174
|
{
|
|
8124
8175
|
name: "Search_input",
|
|
@@ -8130,7 +8181,7 @@ var DataList = (props) => {
|
|
|
8130
8181
|
}
|
|
8131
8182
|
}
|
|
8132
8183
|
),
|
|
8133
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
8184
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8134
8185
|
InputControl_default,
|
|
8135
8186
|
{
|
|
8136
8187
|
name: filter.name,
|
|
@@ -8145,15 +8196,15 @@ var DataList = (props) => {
|
|
|
8145
8196
|
},
|
|
8146
8197
|
filter.name
|
|
8147
8198
|
)),
|
|
8148
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
8199
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8149
8200
|
Hyperlink,
|
|
8150
8201
|
{
|
|
8151
8202
|
className: "gap-1",
|
|
8152
8203
|
linkType: "Primary" /* Solid */,
|
|
8153
8204
|
href: props.addLinkHref,
|
|
8154
8205
|
children: [
|
|
8155
|
-
/* @__PURE__ */ (0,
|
|
8156
|
-
/* @__PURE__ */ (0,
|
|
8206
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
8207
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
8157
8208
|
]
|
|
8158
8209
|
}
|
|
8159
8210
|
)
|
|
@@ -8161,8 +8212,8 @@ var DataList = (props) => {
|
|
|
8161
8212
|
]
|
|
8162
8213
|
}
|
|
8163
8214
|
),
|
|
8164
|
-
/* @__PURE__ */ (0,
|
|
8165
|
-
/* @__PURE__ */ (0,
|
|
8215
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
8216
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tr", { children: props?.columns?.map((column) => {
|
|
8166
8217
|
let url = builder.getNewOrderByUrl(column.name);
|
|
8167
8218
|
let icon = "chevronUpDown";
|
|
8168
8219
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -8172,18 +8223,18 @@ var DataList = (props) => {
|
|
|
8172
8223
|
icon = "chevronUp";
|
|
8173
8224
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
8174
8225
|
}
|
|
8175
|
-
return /* @__PURE__ */ (0,
|
|
8226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8176
8227
|
"th",
|
|
8177
8228
|
{
|
|
8178
8229
|
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" : ""),
|
|
8179
|
-
children: /* @__PURE__ */ (0,
|
|
8230
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8180
8231
|
Hyperlink,
|
|
8181
8232
|
{
|
|
8182
8233
|
href: column.enableSorting ? url : void 0,
|
|
8183
8234
|
className: "text-body-950",
|
|
8184
|
-
children: /* @__PURE__ */ (0,
|
|
8185
|
-
/* @__PURE__ */ (0,
|
|
8186
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
8235
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
8236
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { children: column.label }),
|
|
8237
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
8187
8238
|
] })
|
|
8188
8239
|
}
|
|
8189
8240
|
)
|
|
@@ -8191,7 +8242,7 @@ var DataList = (props) => {
|
|
|
8191
8242
|
column.name
|
|
8192
8243
|
);
|
|
8193
8244
|
}) }) }) }) }),
|
|
8194
|
-
/* @__PURE__ */ (0,
|
|
8245
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
8195
8246
|
] })
|
|
8196
8247
|
] })
|
|
8197
8248
|
] });
|
|
@@ -8204,7 +8255,7 @@ init_ServiceClient();
|
|
|
8204
8255
|
init_OdataBuilder();
|
|
8205
8256
|
init_SelectWithSearchInput();
|
|
8206
8257
|
var import_navigation3 = require("next/navigation");
|
|
8207
|
-
var
|
|
8258
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
8208
8259
|
var viewControlMap = {
|
|
8209
8260
|
number: ViewControlTypes.number,
|
|
8210
8261
|
lineText: ViewControlTypes.lineText,
|
|
@@ -8299,13 +8350,13 @@ var DataListRenderer = ({
|
|
|
8299
8350
|
isActive: landingPageUrl === pathname
|
|
8300
8351
|
};
|
|
8301
8352
|
});
|
|
8302
|
-
return /* @__PURE__ */ (0,
|
|
8353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_react62.default.Fragment, { children: [
|
|
8303
8354
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
8304
8355
|
// tabs={resolvedTabs}
|
|
8305
8356
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
8306
8357
|
// />
|
|
8307
|
-
/* @__PURE__ */ (0,
|
|
8308
|
-
/* @__PURE__ */ (0,
|
|
8358
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
8359
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8309
8360
|
DataList_default,
|
|
8310
8361
|
{
|
|
8311
8362
|
addLinkHref,
|
|
@@ -8360,7 +8411,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
8360
8411
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
8361
8412
|
|
|
8362
8413
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
8363
|
-
var
|
|
8414
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
8364
8415
|
var DataFormChildSection = (props) => {
|
|
8365
8416
|
const { section } = props;
|
|
8366
8417
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -8428,14 +8479,14 @@ var DataFormChildSection = (props) => {
|
|
|
8428
8479
|
childItemsToRender,
|
|
8429
8480
|
allChildItems: childItems
|
|
8430
8481
|
});
|
|
8431
|
-
return /* @__PURE__ */ (0,
|
|
8432
|
-
section.sectionTitle && /* @__PURE__ */ (0,
|
|
8433
|
-
/* @__PURE__ */ (0,
|
|
8434
|
-
/* @__PURE__ */ (0,
|
|
8435
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0,
|
|
8436
|
-
return /* @__PURE__ */ (0,
|
|
8482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
8483
|
+
section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
8484
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
8485
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
8486
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
8487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("tr", { className: "", children: [
|
|
8437
8488
|
sectionRow.elements.map((field, index) => {
|
|
8438
|
-
return /* @__PURE__ */ (0,
|
|
8489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8439
8490
|
"th",
|
|
8440
8491
|
{
|
|
8441
8492
|
className: "py-3 font-normal text-left",
|
|
@@ -8444,21 +8495,21 @@ var DataFormChildSection = (props) => {
|
|
|
8444
8495
|
field.name
|
|
8445
8496
|
);
|
|
8446
8497
|
}),
|
|
8447
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8498
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
8448
8499
|
] }, sectionRowIndex);
|
|
8449
8500
|
}) }),
|
|
8450
|
-
/* @__PURE__ */ (0,
|
|
8501
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
8451
8502
|
const { item, originalIndex } = visibleItem;
|
|
8452
8503
|
const rowKey = originalIndex;
|
|
8453
|
-
return /* @__PURE__ */ (0,
|
|
8504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react63.default.Fragment, { children: section.sectionRows.map(
|
|
8454
8505
|
(sectionRow, sectionRowIndex) => {
|
|
8455
|
-
return /* @__PURE__ */ (0,
|
|
8506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
8456
8507
|
"tr",
|
|
8457
8508
|
{
|
|
8458
8509
|
className: "",
|
|
8459
8510
|
children: [
|
|
8460
8511
|
sectionRow.elements.map((field, index) => {
|
|
8461
|
-
return /* @__PURE__ */ (0,
|
|
8512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8462
8513
|
InputControl_default,
|
|
8463
8514
|
{
|
|
8464
8515
|
index: filteredIndex,
|
|
@@ -8478,7 +8529,7 @@ var DataFormChildSection = (props) => {
|
|
|
8478
8529
|
}
|
|
8479
8530
|
) }) }) }, field.name);
|
|
8480
8531
|
}),
|
|
8481
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8532
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8482
8533
|
ClientButton_default,
|
|
8483
8534
|
{
|
|
8484
8535
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -8487,7 +8538,7 @@ var DataFormChildSection = (props) => {
|
|
|
8487
8538
|
},
|
|
8488
8539
|
dataRole: "delete",
|
|
8489
8540
|
tabIndex: -1,
|
|
8490
|
-
children: /* @__PURE__ */ (0,
|
|
8541
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8491
8542
|
Icon_default,
|
|
8492
8543
|
{
|
|
8493
8544
|
className: "w-4 h-4",
|
|
@@ -8504,7 +8555,7 @@ var DataFormChildSection = (props) => {
|
|
|
8504
8555
|
) }, rowKey);
|
|
8505
8556
|
}) })
|
|
8506
8557
|
] }) }),
|
|
8507
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8558
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8508
8559
|
ClientButton_default,
|
|
8509
8560
|
{
|
|
8510
8561
|
ButtonType: "Link" /* Link */,
|
|
@@ -8519,7 +8570,7 @@ var DataFormChildSection = (props) => {
|
|
|
8519
8570
|
var DataFormChildSection_default = DataFormChildSection;
|
|
8520
8571
|
|
|
8521
8572
|
// src/components/dataForm/DataForm.tsx
|
|
8522
|
-
var
|
|
8573
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
8523
8574
|
var DataForm = (props) => {
|
|
8524
8575
|
const formRef = (0, import_react64.useRef)(null);
|
|
8525
8576
|
console.log(props.dataItem, "dssads");
|
|
@@ -8739,19 +8790,19 @@ var DataForm = (props) => {
|
|
|
8739
8790
|
return false;
|
|
8740
8791
|
}
|
|
8741
8792
|
}
|
|
8742
|
-
return /* @__PURE__ */ (0,
|
|
8743
|
-
props.title && /* @__PURE__ */ (0,
|
|
8793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react64.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
8794
|
+
props.title && /* @__PURE__ */ (0, import_jsx_runtime85.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_runtime85.jsxs)(
|
|
8744
8795
|
"div",
|
|
8745
8796
|
{
|
|
8746
8797
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
8747
8798
|
onClick: () => window.history.back(),
|
|
8748
8799
|
children: [
|
|
8749
|
-
/* @__PURE__ */ (0,
|
|
8750
|
-
/* @__PURE__ */ (0,
|
|
8800
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
8801
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
8751
8802
|
]
|
|
8752
8803
|
}
|
|
8753
8804
|
) }),
|
|
8754
|
-
/* @__PURE__ */ (0,
|
|
8805
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8755
8806
|
"form",
|
|
8756
8807
|
{
|
|
8757
8808
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -8772,8 +8823,8 @@ var DataForm = (props) => {
|
|
|
8772
8823
|
}
|
|
8773
8824
|
}
|
|
8774
8825
|
},
|
|
8775
|
-
children: /* @__PURE__ */ (0,
|
|
8776
|
-
return /* @__PURE__ */ (0,
|
|
8826
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
8827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react64.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
8777
8828
|
section.sectionRows?.map(
|
|
8778
8829
|
(sectionRow, sectionRowIndex) => {
|
|
8779
8830
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -8784,14 +8835,14 @@ var DataForm = (props) => {
|
|
|
8784
8835
|
sectionRow.visible
|
|
8785
8836
|
);
|
|
8786
8837
|
}
|
|
8787
|
-
return /* @__PURE__ */ (0,
|
|
8788
|
-
return /* @__PURE__ */ (0,
|
|
8838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react64.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
8839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
8789
8840
|
"div",
|
|
8790
8841
|
{
|
|
8791
8842
|
className: sectionRow.grow ? "grow" : "",
|
|
8792
8843
|
children: [
|
|
8793
|
-
/* @__PURE__ */ (0,
|
|
8794
|
-
/* @__PURE__ */ (0,
|
|
8844
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: field.controlType }),
|
|
8845
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8795
8846
|
InputControl_default,
|
|
8796
8847
|
{
|
|
8797
8848
|
name: field.name,
|
|
@@ -8821,12 +8872,12 @@ var DataForm = (props) => {
|
|
|
8821
8872
|
}) }) }, sectionRowIndex);
|
|
8822
8873
|
}
|
|
8823
8874
|
),
|
|
8824
|
-
/* @__PURE__ */ (0,
|
|
8875
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: section.childSections?.map(
|
|
8825
8876
|
(childSection, childSectionIndex) => {
|
|
8826
|
-
return /* @__PURE__ */ (0,
|
|
8877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: childSection.name && evalutateCondition(
|
|
8827
8878
|
formState.inputValues,
|
|
8828
8879
|
childSection.visible
|
|
8829
|
-
) && /* @__PURE__ */ (0,
|
|
8880
|
+
) && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8830
8881
|
DataFormChildSection_default,
|
|
8831
8882
|
{
|
|
8832
8883
|
section: childSection,
|
|
@@ -8841,8 +8892,8 @@ var DataForm = (props) => {
|
|
|
8841
8892
|
}) })
|
|
8842
8893
|
}
|
|
8843
8894
|
),
|
|
8844
|
-
/* @__PURE__ */ (0,
|
|
8845
|
-
/* @__PURE__ */ (0,
|
|
8895
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
8896
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8846
8897
|
Button_default,
|
|
8847
8898
|
{
|
|
8848
8899
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -8850,7 +8901,7 @@ var DataForm = (props) => {
|
|
|
8850
8901
|
children: props.additionalActions.title
|
|
8851
8902
|
}
|
|
8852
8903
|
) }),
|
|
8853
|
-
/* @__PURE__ */ (0,
|
|
8904
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8854
8905
|
Button_default,
|
|
8855
8906
|
{
|
|
8856
8907
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -8861,7 +8912,7 @@ var DataForm = (props) => {
|
|
|
8861
8912
|
children: "Delete"
|
|
8862
8913
|
}
|
|
8863
8914
|
) }),
|
|
8864
|
-
/* @__PURE__ */ (0,
|
|
8915
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8865
8916
|
Button_default,
|
|
8866
8917
|
{
|
|
8867
8918
|
onValidate,
|
|
@@ -8879,7 +8930,7 @@ var DataForm_default = DataForm;
|
|
|
8879
8930
|
|
|
8880
8931
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
8881
8932
|
init_ServiceClient();
|
|
8882
|
-
var
|
|
8933
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
8883
8934
|
function getAction(actions, code) {
|
|
8884
8935
|
return actions?.find((a) => a.actionCode === code);
|
|
8885
8936
|
}
|
|
@@ -8905,9 +8956,9 @@ var DataFormRenderer = ({
|
|
|
8905
8956
|
"Delete"
|
|
8906
8957
|
);
|
|
8907
8958
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
8908
|
-
return /* @__PURE__ */ (0,
|
|
8909
|
-
widgetProps && /* @__PURE__ */ (0,
|
|
8910
|
-
/* @__PURE__ */ (0,
|
|
8959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
8960
|
+
widgetProps && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
8961
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
8911
8962
|
DataForm_default,
|
|
8912
8963
|
{
|
|
8913
8964
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|