@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260729064437 → 0.8.1-dev.20260803093422
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/{HlsPlayer-5AWFZ2P6.mjs → HlsPlayer-2P7SBFDP.mjs} +10 -2
- package/dist/{HlsPlayer-57543DTW.mjs → HlsPlayer-TZM3MFPW.mjs} +10 -2
- package/dist/{InputControlClient-VFHLKYVF.mjs → InputControlClient-XR37ZIQ2.mjs} +12 -4
- package/dist/{chunk-6JFCMNX2.mjs → chunk-65QPOTZ4.mjs} +16 -6
- package/dist/index.js +444 -410
- package/dist/index.mjs +5 -5
- package/dist/server.js +10 -2
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -522,8 +522,16 @@ var init_HlsPlayer = __esm({
|
|
|
522
522
|
loop,
|
|
523
523
|
playsInline: true,
|
|
524
524
|
preload: playOptions === "autoplay" ? "auto" : "none",
|
|
525
|
-
onClick:
|
|
526
|
-
|
|
525
|
+
onClick: (e) => {
|
|
526
|
+
e.preventDefault();
|
|
527
|
+
e.stopPropagation();
|
|
528
|
+
handleVideoClick();
|
|
529
|
+
},
|
|
530
|
+
onDoubleClick: (e) => {
|
|
531
|
+
e.preventDefault();
|
|
532
|
+
e.stopPropagation();
|
|
533
|
+
handleVideoDoubleClick();
|
|
534
|
+
},
|
|
527
535
|
children: playOptions === "autoplay" && resolvedSources.map(({ src, media }, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
528
536
|
"source",
|
|
529
537
|
{
|
|
@@ -1674,8 +1682,9 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1674
1682
|
});
|
|
1675
1683
|
}
|
|
1676
1684
|
}, [highlightedIndex]);
|
|
1685
|
+
const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
|
|
1677
1686
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", children: [
|
|
1678
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { children: [
|
|
1687
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "pb-1", children: [
|
|
1679
1688
|
props.attributes?.label,
|
|
1680
1689
|
" ",
|
|
1681
1690
|
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
@@ -1694,16 +1703,25 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1694
1703
|
onFocus: () => setIsOpen(true),
|
|
1695
1704
|
onKeyDown: handleKeyDown,
|
|
1696
1705
|
placeholder: props.attributes?.placeholder ?? "Search...",
|
|
1697
|
-
readOnly:
|
|
1706
|
+
readOnly: isReadOnly,
|
|
1698
1707
|
disabled: props.disable || props.attributes?.disable,
|
|
1699
|
-
className:
|
|
1708
|
+
className: `peer mt-2 py-1.5 select block w-full text-black rounded border-gray-300 shadow-sm
|
|
1709
|
+
focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
|
|
1710
|
+
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none
|
|
1711
|
+
${isReadOnly ? "bg-neutral-soft opacity-50 cursor-not-allowed" : "bg-default"}
|
|
1712
|
+
`
|
|
1700
1713
|
}
|
|
1701
1714
|
),
|
|
1702
1715
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1703
1716
|
"button",
|
|
1704
1717
|
{
|
|
1705
1718
|
type: "button",
|
|
1706
|
-
|
|
1719
|
+
disabled: isReadOnly,
|
|
1720
|
+
onClick: () => {
|
|
1721
|
+
if (!isReadOnly) {
|
|
1722
|
+
setIsOpen(!isOpen);
|
|
1723
|
+
}
|
|
1724
|
+
},
|
|
1707
1725
|
className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
|
|
1708
1726
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1709
1727
|
"svg",
|
|
@@ -1727,11 +1745,11 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1727
1745
|
}
|
|
1728
1746
|
)
|
|
1729
1747
|
] }),
|
|
1730
|
-
isOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1748
|
+
!isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1731
1749
|
"div",
|
|
1732
1750
|
{
|
|
1733
1751
|
ref: dropdownRef,
|
|
1734
|
-
className: "absolute z-10
|
|
1752
|
+
className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
|
|
1735
1753
|
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1736
1754
|
"button",
|
|
1737
1755
|
{
|
|
@@ -3243,12 +3261,26 @@ var init_Switcher = __esm({
|
|
|
3243
3261
|
}
|
|
3244
3262
|
});
|
|
3245
3263
|
|
|
3264
|
+
// src/components/controls/edit/ReferenceInput.tsx
|
|
3265
|
+
var import_jsx_runtime49, ReferenceInput, ReferenceInput_default;
|
|
3266
|
+
var init_ReferenceInput = __esm({
|
|
3267
|
+
"src/components/controls/edit/ReferenceInput.tsx"() {
|
|
3268
|
+
"use strict";
|
|
3269
|
+
init_SelectWithSearchInput();
|
|
3270
|
+
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3271
|
+
ReferenceInput = (props) => {
|
|
3272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectWithSearchInput_default, { ...props });
|
|
3273
|
+
};
|
|
3274
|
+
ReferenceInput_default = ReferenceInput;
|
|
3275
|
+
}
|
|
3276
|
+
});
|
|
3277
|
+
|
|
3246
3278
|
// src/components/controls/edit/InputControlClient.tsx
|
|
3247
3279
|
var InputControlClient_exports = {};
|
|
3248
3280
|
__export(InputControlClient_exports, {
|
|
3249
3281
|
default: () => InputControlClient_default
|
|
3250
3282
|
});
|
|
3251
|
-
var import_react40,
|
|
3283
|
+
var import_react40, import_jsx_runtime50, InputControl, InputControlClient_default;
|
|
3252
3284
|
var init_InputControlClient = __esm({
|
|
3253
3285
|
"src/components/controls/edit/InputControlClient.tsx"() {
|
|
3254
3286
|
"use strict";
|
|
@@ -3276,7 +3308,8 @@ var init_InputControlClient = __esm({
|
|
|
3276
3308
|
init_DateInput();
|
|
3277
3309
|
init_RadioInput();
|
|
3278
3310
|
init_Switcher();
|
|
3279
|
-
|
|
3311
|
+
init_ReferenceInput();
|
|
3312
|
+
import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3280
3313
|
InputControl = import_react40.default.forwardRef(
|
|
3281
3314
|
(props, ref) => {
|
|
3282
3315
|
const ControlComponents = {
|
|
@@ -3301,10 +3334,11 @@ var init_InputControlClient = __esm({
|
|
|
3301
3334
|
[InputControlType_default.switchInput]: SwitchInput_default,
|
|
3302
3335
|
[InputControlType_default.dateInput]: DateInput_default,
|
|
3303
3336
|
[InputControlType_default.radioInput]: RadioInput_default,
|
|
3304
|
-
[InputControlType_default.switcher]: Switcher_default
|
|
3337
|
+
[InputControlType_default.switcher]: Switcher_default,
|
|
3338
|
+
[InputControlType_default.referenceInput]: ReferenceInput_default
|
|
3305
3339
|
};
|
|
3306
3340
|
const SelectedControlComponent = ControlComponents[props.controlType];
|
|
3307
|
-
return /* @__PURE__ */ (0,
|
|
3341
|
+
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 });
|
|
3308
3342
|
}
|
|
3309
3343
|
);
|
|
3310
3344
|
InputControl.displayName = "InputControl";
|
|
@@ -3531,7 +3565,7 @@ var LinkNodeButton_exports = {};
|
|
|
3531
3565
|
__export(LinkNodeButton_exports, {
|
|
3532
3566
|
default: () => LinkNodeButton_default
|
|
3533
3567
|
});
|
|
3534
|
-
var import_react41,
|
|
3568
|
+
var import_react41, import_jsx_runtime54, LinkNodeButton, LinkNodeButton_default;
|
|
3535
3569
|
var init_LinkNodeButton = __esm({
|
|
3536
3570
|
"src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
|
|
3537
3571
|
"use strict";
|
|
@@ -3540,7 +3574,7 @@ var init_LinkNodeButton = __esm({
|
|
|
3540
3574
|
init_Button();
|
|
3541
3575
|
init_ServiceClient();
|
|
3542
3576
|
init_ToastService();
|
|
3543
|
-
|
|
3577
|
+
import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3544
3578
|
LinkNodeButton = (props) => {
|
|
3545
3579
|
const { node, dataitem, children, linkText, linkType, linkUrl } = props;
|
|
3546
3580
|
const [isLoading, setIsLoading] = (0, import_react41.useState)(false);
|
|
@@ -3707,32 +3741,32 @@ var init_LinkNodeButton = __esm({
|
|
|
3707
3741
|
return children;
|
|
3708
3742
|
}
|
|
3709
3743
|
if (linkText) {
|
|
3710
|
-
return /* @__PURE__ */ (0,
|
|
3744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: linkText });
|
|
3711
3745
|
}
|
|
3712
3746
|
return node.title || "Button";
|
|
3713
3747
|
};
|
|
3714
3748
|
const fontSize = node.children?.[0]?.style?.match(/font-size:\s*([^;]+)/)?.[1];
|
|
3715
|
-
return /* @__PURE__ */ (0,
|
|
3749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3716
3750
|
Button_default,
|
|
3717
3751
|
{
|
|
3718
3752
|
ButtonType: linkType,
|
|
3719
3753
|
onClick,
|
|
3720
3754
|
disabled: isLoading || !!successMessage,
|
|
3721
3755
|
className: "w-full",
|
|
3722
|
-
children: successMessage ? /* @__PURE__ */ (0,
|
|
3756
|
+
children: successMessage ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3723
3757
|
"span",
|
|
3724
3758
|
{
|
|
3725
3759
|
style: fontSize ? { fontSize } : void 0,
|
|
3726
3760
|
className: "inline-flex items-center gap-2",
|
|
3727
3761
|
children: [
|
|
3728
|
-
/* @__PURE__ */ (0,
|
|
3762
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3729
3763
|
"svg",
|
|
3730
3764
|
{
|
|
3731
3765
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3732
3766
|
viewBox: "0 0 20 20",
|
|
3733
3767
|
fill: "currentColor",
|
|
3734
3768
|
className: "w-5 h-5",
|
|
3735
|
-
children: /* @__PURE__ */ (0,
|
|
3769
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3736
3770
|
"path",
|
|
3737
3771
|
{
|
|
3738
3772
|
fillRule: "evenodd",
|
|
@@ -3742,7 +3776,7 @@ var init_LinkNodeButton = __esm({
|
|
|
3742
3776
|
)
|
|
3743
3777
|
}
|
|
3744
3778
|
),
|
|
3745
|
-
/* @__PURE__ */ (0,
|
|
3779
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: successMessage })
|
|
3746
3780
|
]
|
|
3747
3781
|
}
|
|
3748
3782
|
) : renderButtonContent()
|
|
@@ -3776,13 +3810,13 @@ function CopyButton({ text }) {
|
|
|
3776
3810
|
console.error("Failed to copy: ", err);
|
|
3777
3811
|
}
|
|
3778
3812
|
};
|
|
3779
|
-
return /* @__PURE__ */ (0,
|
|
3813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
3780
3814
|
"button",
|
|
3781
3815
|
{
|
|
3782
3816
|
onClick: handleCopy,
|
|
3783
3817
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
3784
3818
|
children: [
|
|
3785
|
-
/* @__PURE__ */ (0,
|
|
3819
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
3786
3820
|
"svg",
|
|
3787
3821
|
{
|
|
3788
3822
|
width: "16",
|
|
@@ -3790,7 +3824,7 @@ function CopyButton({ text }) {
|
|
|
3790
3824
|
viewBox: "0 0 24 24",
|
|
3791
3825
|
className: "w-4 h-4",
|
|
3792
3826
|
fill: "currentColor",
|
|
3793
|
-
children: /* @__PURE__ */ (0,
|
|
3827
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
3794
3828
|
"path",
|
|
3795
3829
|
{
|
|
3796
3830
|
fillRule: "evenodd",
|
|
@@ -3805,54 +3839,54 @@ function CopyButton({ text }) {
|
|
|
3805
3839
|
}
|
|
3806
3840
|
);
|
|
3807
3841
|
}
|
|
3808
|
-
var import_react48,
|
|
3842
|
+
var import_react48, import_jsx_runtime64;
|
|
3809
3843
|
var init_CopyButton = __esm({
|
|
3810
3844
|
"src/components/CopyButton.tsx"() {
|
|
3811
3845
|
"use strict";
|
|
3812
3846
|
"use client";
|
|
3813
3847
|
import_react48 = require("react");
|
|
3814
|
-
|
|
3848
|
+
import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3815
3849
|
}
|
|
3816
3850
|
});
|
|
3817
3851
|
|
|
3818
3852
|
// src/components/IFrameLoaderView.tsx
|
|
3819
|
-
var import_react51,
|
|
3853
|
+
var import_react51, import_jsx_runtime68, IFrameLoaderView, IFrameLoaderView_default;
|
|
3820
3854
|
var init_IFrameLoaderView = __esm({
|
|
3821
3855
|
"src/components/IFrameLoaderView.tsx"() {
|
|
3822
3856
|
"use strict";
|
|
3823
3857
|
import_react51 = __toESM(require("react"));
|
|
3824
|
-
|
|
3858
|
+
import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3825
3859
|
IFrameLoaderView = (props) => {
|
|
3826
|
-
return /* @__PURE__ */ (0,
|
|
3827
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
3828
|
-
/* @__PURE__ */ (0,
|
|
3829
|
-
/* @__PURE__ */ (0,
|
|
3830
|
-
/* @__PURE__ */ (0,
|
|
3831
|
-
/* @__PURE__ */ (0,
|
|
3832
|
-
/* @__PURE__ */ (0,
|
|
3860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_react51.default.Fragment, { children: [
|
|
3861
|
+
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: [
|
|
3862
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
3863
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
3864
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "ml-2", children: [
|
|
3865
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
3866
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
3833
3867
|
] })
|
|
3834
3868
|
] }),
|
|
3835
|
-
/* @__PURE__ */ (0,
|
|
3836
|
-
/* @__PURE__ */ (0,
|
|
3837
|
-
/* @__PURE__ */ (0,
|
|
3838
|
-
/* @__PURE__ */ (0,
|
|
3839
|
-
/* @__PURE__ */ (0,
|
|
3840
|
-
/* @__PURE__ */ (0,
|
|
3841
|
-
/* @__PURE__ */ (0,
|
|
3869
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
3870
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "animate-pulse", children: [
|
|
3871
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3872
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3873
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3874
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3875
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3842
3876
|
] }),
|
|
3843
|
-
/* @__PURE__ */ (0,
|
|
3844
|
-
/* @__PURE__ */ (0,
|
|
3845
|
-
/* @__PURE__ */ (0,
|
|
3846
|
-
/* @__PURE__ */ (0,
|
|
3847
|
-
/* @__PURE__ */ (0,
|
|
3848
|
-
/* @__PURE__ */ (0,
|
|
3877
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "animate-pulse", children: [
|
|
3878
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3879
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3880
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3881
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3882
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3849
3883
|
] }),
|
|
3850
|
-
/* @__PURE__ */ (0,
|
|
3851
|
-
/* @__PURE__ */ (0,
|
|
3852
|
-
/* @__PURE__ */ (0,
|
|
3853
|
-
/* @__PURE__ */ (0,
|
|
3854
|
-
/* @__PURE__ */ (0,
|
|
3855
|
-
/* @__PURE__ */ (0,
|
|
3884
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "animate-pulse", children: [
|
|
3885
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3886
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3887
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3888
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3889
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3856
3890
|
] })
|
|
3857
3891
|
] })
|
|
3858
3892
|
] }) }),
|
|
@@ -3868,14 +3902,14 @@ var IframeClient_exports = {};
|
|
|
3868
3902
|
__export(IframeClient_exports, {
|
|
3869
3903
|
default: () => IframeClient_default
|
|
3870
3904
|
});
|
|
3871
|
-
var import_react52,
|
|
3905
|
+
var import_react52, import_jsx_runtime69, IframeClient, IframeClient_default;
|
|
3872
3906
|
var init_IframeClient = __esm({
|
|
3873
3907
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
3874
3908
|
"use strict";
|
|
3875
3909
|
"use client";
|
|
3876
3910
|
import_react52 = __toESM(require("react"));
|
|
3877
3911
|
init_IFrameLoaderView();
|
|
3878
|
-
|
|
3912
|
+
import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3879
3913
|
IframeClient = ({ src }) => {
|
|
3880
3914
|
const iframeRef = (0, import_react52.useRef)(null);
|
|
3881
3915
|
const [iframeHeight, setIframeHeight] = (0, import_react52.useState)("100%");
|
|
@@ -3907,7 +3941,7 @@ var init_IframeClient = __esm({
|
|
|
3907
3941
|
const handleIframeLoad = () => {
|
|
3908
3942
|
setIsDataFound(true);
|
|
3909
3943
|
};
|
|
3910
|
-
return /* @__PURE__ */ (0,
|
|
3944
|
+
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)(
|
|
3911
3945
|
"iframe",
|
|
3912
3946
|
{
|
|
3913
3947
|
ref: iframeRef,
|
|
@@ -4127,7 +4161,7 @@ var Pagination_exports = {};
|
|
|
4127
4161
|
__export(Pagination_exports, {
|
|
4128
4162
|
default: () => Pagination_default
|
|
4129
4163
|
});
|
|
4130
|
-
var import_react53,
|
|
4164
|
+
var import_react53, import_jsx_runtime74, Pagination, Pagination_default;
|
|
4131
4165
|
var init_Pagination = __esm({
|
|
4132
4166
|
"src/components/Pagination.tsx"() {
|
|
4133
4167
|
"use strict";
|
|
@@ -4138,7 +4172,7 @@ var init_Pagination = __esm({
|
|
|
4138
4172
|
init_StyleTypes();
|
|
4139
4173
|
init_InputControlType();
|
|
4140
4174
|
init_Hyperlink();
|
|
4141
|
-
|
|
4175
|
+
import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4142
4176
|
Pagination = (props) => {
|
|
4143
4177
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
4144
4178
|
const builder = (0, import_react53.useMemo)(() => {
|
|
@@ -4182,7 +4216,7 @@ var init_Pagination = __esm({
|
|
|
4182
4216
|
return range;
|
|
4183
4217
|
};
|
|
4184
4218
|
const paginationRange = getPaginationRange();
|
|
4185
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
4219
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4186
4220
|
Hyperlink,
|
|
4187
4221
|
{
|
|
4188
4222
|
linkType: "Link" /* Link */,
|
|
@@ -4197,9 +4231,9 @@ var init_Pagination = __esm({
|
|
|
4197
4231
|
);
|
|
4198
4232
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
4199
4233
|
if (disabled) {
|
|
4200
|
-
return /* @__PURE__ */ (0,
|
|
4234
|
+
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 });
|
|
4201
4235
|
}
|
|
4202
|
-
return /* @__PURE__ */ (0,
|
|
4236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4203
4237
|
Hyperlink,
|
|
4204
4238
|
{
|
|
4205
4239
|
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",
|
|
@@ -4209,35 +4243,35 @@ var init_Pagination = __esm({
|
|
|
4209
4243
|
);
|
|
4210
4244
|
};
|
|
4211
4245
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
4212
|
-
return /* @__PURE__ */ (0,
|
|
4213
|
-
/* @__PURE__ */ (0,
|
|
4214
|
-
/* @__PURE__ */ (0,
|
|
4246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
4247
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
4248
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "text-sm", children: [
|
|
4215
4249
|
"Showing ",
|
|
4216
|
-
/* @__PURE__ */ (0,
|
|
4250
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "font-semibold", children: [
|
|
4217
4251
|
startItem,
|
|
4218
4252
|
"-",
|
|
4219
4253
|
endItem
|
|
4220
4254
|
] }),
|
|
4221
4255
|
" ",
|
|
4222
4256
|
"out of ",
|
|
4223
|
-
/* @__PURE__ */ (0,
|
|
4257
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
4224
4258
|
" results"
|
|
4225
4259
|
] }),
|
|
4226
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
4227
|
-
/* @__PURE__ */ (0,
|
|
4260
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
4261
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4228
4262
|
NavigationButton,
|
|
4229
4263
|
{
|
|
4230
4264
|
page: activePageNumber - 1,
|
|
4231
4265
|
disabled: activePageNumber === 1,
|
|
4232
4266
|
children: [
|
|
4233
|
-
/* @__PURE__ */ (0,
|
|
4234
|
-
/* @__PURE__ */ (0,
|
|
4267
|
+
/* @__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" }) }),
|
|
4268
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
4235
4269
|
]
|
|
4236
4270
|
}
|
|
4237
4271
|
),
|
|
4238
4272
|
paginationRange.map((item, index) => {
|
|
4239
4273
|
if (item === "...") {
|
|
4240
|
-
return /* @__PURE__ */ (0,
|
|
4274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4241
4275
|
"span",
|
|
4242
4276
|
{
|
|
4243
4277
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -4247,23 +4281,23 @@ var init_Pagination = __esm({
|
|
|
4247
4281
|
);
|
|
4248
4282
|
}
|
|
4249
4283
|
const page = item;
|
|
4250
|
-
return /* @__PURE__ */ (0,
|
|
4284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PageButton, { page, children: page }, page);
|
|
4251
4285
|
}),
|
|
4252
|
-
/* @__PURE__ */ (0,
|
|
4286
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4253
4287
|
NavigationButton,
|
|
4254
4288
|
{
|
|
4255
4289
|
page: activePageNumber + 1,
|
|
4256
4290
|
disabled: activePageNumber === totalPages,
|
|
4257
4291
|
children: [
|
|
4258
|
-
/* @__PURE__ */ (0,
|
|
4259
|
-
/* @__PURE__ */ (0,
|
|
4292
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
4293
|
+
/* @__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" }) })
|
|
4260
4294
|
]
|
|
4261
4295
|
}
|
|
4262
4296
|
)
|
|
4263
4297
|
] }),
|
|
4264
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
4265
|
-
/* @__PURE__ */ (0,
|
|
4266
|
-
/* @__PURE__ */ (0,
|
|
4298
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
4299
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
4300
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4267
4301
|
"input",
|
|
4268
4302
|
{
|
|
4269
4303
|
type: "number",
|
|
@@ -4284,9 +4318,9 @@ var init_Pagination = __esm({
|
|
|
4284
4318
|
) })
|
|
4285
4319
|
] })
|
|
4286
4320
|
] }),
|
|
4287
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
4288
|
-
/* @__PURE__ */ (0,
|
|
4289
|
-
/* @__PURE__ */ (0,
|
|
4321
|
+
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: [
|
|
4322
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
4323
|
+
/* @__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)(
|
|
4290
4324
|
Hyperlink,
|
|
4291
4325
|
{
|
|
4292
4326
|
className: `
|
|
@@ -4298,7 +4332,7 @@ var init_Pagination = __esm({
|
|
|
4298
4332
|
},
|
|
4299
4333
|
size
|
|
4300
4334
|
)) }),
|
|
4301
|
-
/* @__PURE__ */ (0,
|
|
4335
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm", children: "per page" })
|
|
4302
4336
|
] }) })
|
|
4303
4337
|
] });
|
|
4304
4338
|
};
|
|
@@ -4311,13 +4345,13 @@ var Slider_exports = {};
|
|
|
4311
4345
|
__export(Slider_exports, {
|
|
4312
4346
|
default: () => Slider_default
|
|
4313
4347
|
});
|
|
4314
|
-
var import_react54,
|
|
4348
|
+
var import_react54, import_jsx_runtime75, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
4315
4349
|
var init_Slider = __esm({
|
|
4316
4350
|
"src/components/Slider.tsx"() {
|
|
4317
4351
|
"use strict";
|
|
4318
4352
|
"use client";
|
|
4319
4353
|
import_react54 = __toESM(require("react"));
|
|
4320
|
-
|
|
4354
|
+
import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4321
4355
|
Slider = ({
|
|
4322
4356
|
children,
|
|
4323
4357
|
slidesToShow = 4,
|
|
@@ -4414,7 +4448,7 @@ var init_Slider = __esm({
|
|
|
4414
4448
|
if (!import_react54.default.isValidElement(child)) return null;
|
|
4415
4449
|
const childProps = child.props;
|
|
4416
4450
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
4417
|
-
return /* @__PURE__ */ (0,
|
|
4451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4418
4452
|
"div",
|
|
4419
4453
|
{
|
|
4420
4454
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -4437,14 +4471,14 @@ var init_Slider = __esm({
|
|
|
4437
4471
|
return "bottom-4";
|
|
4438
4472
|
}
|
|
4439
4473
|
};
|
|
4440
|
-
return /* @__PURE__ */ (0,
|
|
4474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
4441
4475
|
"div",
|
|
4442
4476
|
{
|
|
4443
4477
|
className: `relative w-full overflow-hidden ${className}`,
|
|
4444
4478
|
onMouseEnter: handleMouseEnter,
|
|
4445
4479
|
onMouseLeave: handleMouseLeave,
|
|
4446
4480
|
children: [
|
|
4447
|
-
/* @__PURE__ */ (0,
|
|
4481
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4448
4482
|
"div",
|
|
4449
4483
|
{
|
|
4450
4484
|
className: "flex h-full",
|
|
@@ -4455,18 +4489,18 @@ var init_Slider = __esm({
|
|
|
4455
4489
|
children: slides
|
|
4456
4490
|
}
|
|
4457
4491
|
),
|
|
4458
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
4459
|
-
/* @__PURE__ */ (0,
|
|
4492
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
|
|
4493
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4460
4494
|
ArrowButton,
|
|
4461
4495
|
{
|
|
4462
4496
|
direction: "left",
|
|
4463
4497
|
onClick: prevSlide,
|
|
4464
4498
|
visible: infinite_scroll || currentSlide > 0,
|
|
4465
4499
|
className: arrowClassName,
|
|
4466
|
-
children: /* @__PURE__ */ (0,
|
|
4500
|
+
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" }) })
|
|
4467
4501
|
}
|
|
4468
4502
|
),
|
|
4469
|
-
/* @__PURE__ */ (0,
|
|
4503
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
4470
4504
|
ArrowButton,
|
|
4471
4505
|
{
|
|
4472
4506
|
direction: "right",
|
|
@@ -4474,13 +4508,13 @@ var init_Slider = __esm({
|
|
|
4474
4508
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
4475
4509
|
className: arrowClassName,
|
|
4476
4510
|
children: [
|
|
4477
|
-
/* @__PURE__ */ (0,
|
|
4511
|
+
/* @__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" }) }),
|
|
4478
4512
|
" "
|
|
4479
4513
|
]
|
|
4480
4514
|
}
|
|
4481
4515
|
)
|
|
4482
4516
|
] }),
|
|
4483
|
-
show_dots && /* @__PURE__ */ (0,
|
|
4517
|
+
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)(
|
|
4484
4518
|
ProgressPill,
|
|
4485
4519
|
{
|
|
4486
4520
|
active: index === currentSlide,
|
|
@@ -4506,7 +4540,7 @@ var init_Slider = __esm({
|
|
|
4506
4540
|
visible,
|
|
4507
4541
|
children,
|
|
4508
4542
|
className = ""
|
|
4509
|
-
}) => /* @__PURE__ */ (0,
|
|
4543
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4510
4544
|
"button",
|
|
4511
4545
|
{
|
|
4512
4546
|
className: `
|
|
@@ -4593,7 +4627,7 @@ var init_Slider = __esm({
|
|
|
4593
4627
|
const renderProgressBar = () => {
|
|
4594
4628
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
4595
4629
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
4596
|
-
return /* @__PURE__ */ (0,
|
|
4630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4597
4631
|
"div",
|
|
4598
4632
|
{
|
|
4599
4633
|
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`,
|
|
@@ -4605,7 +4639,7 @@ var init_Slider = __esm({
|
|
|
4605
4639
|
};
|
|
4606
4640
|
const renderCumulativeFill = () => {
|
|
4607
4641
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
4608
|
-
return /* @__PURE__ */ (0,
|
|
4642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4609
4643
|
"div",
|
|
4610
4644
|
{
|
|
4611
4645
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -4615,7 +4649,7 @@ var init_Slider = __esm({
|
|
|
4615
4649
|
}
|
|
4616
4650
|
return null;
|
|
4617
4651
|
};
|
|
4618
|
-
return /* @__PURE__ */ (0,
|
|
4652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
4619
4653
|
"button",
|
|
4620
4654
|
{
|
|
4621
4655
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -5058,7 +5092,7 @@ var import_react56 = __toESM(require("react"));
|
|
|
5058
5092
|
var import_react43 = __toESM(require("react"));
|
|
5059
5093
|
|
|
5060
5094
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
5061
|
-
var
|
|
5095
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5062
5096
|
var TextNode = (props) => {
|
|
5063
5097
|
function cssStringToJson(cssString) {
|
|
5064
5098
|
const styleObject = {};
|
|
@@ -5113,26 +5147,26 @@ var TextNode = (props) => {
|
|
|
5113
5147
|
});
|
|
5114
5148
|
}
|
|
5115
5149
|
function renderWithLineBreaks(text) {
|
|
5116
|
-
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0,
|
|
5150
|
+
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { children: [
|
|
5117
5151
|
line,
|
|
5118
|
-
index < arr.length - 1 && /* @__PURE__ */ (0,
|
|
5152
|
+
index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("br", {})
|
|
5119
5153
|
] }, index));
|
|
5120
5154
|
}
|
|
5121
5155
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
5122
5156
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
5123
5157
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
5124
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0,
|
|
5158
|
+
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;
|
|
5125
5159
|
return (
|
|
5126
5160
|
// @ts-expect-error custom code
|
|
5127
|
-
/* @__PURE__ */ (0,
|
|
5161
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
5128
5162
|
);
|
|
5129
5163
|
};
|
|
5130
5164
|
var TextNode_default = TextNode;
|
|
5131
5165
|
|
|
5132
5166
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
5133
|
-
var
|
|
5167
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5134
5168
|
var LineBreakNode = () => {
|
|
5135
|
-
return /* @__PURE__ */ (0,
|
|
5169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "py-0.5 lg:py-1.5" });
|
|
5136
5170
|
};
|
|
5137
5171
|
var LineBreakNode_default = LineBreakNode;
|
|
5138
5172
|
|
|
@@ -5142,7 +5176,7 @@ var import_react42 = __toESM(require("react"));
|
|
|
5142
5176
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
5143
5177
|
init_AssetUtility();
|
|
5144
5178
|
var import_dynamic5 = __toESM(require("next/dynamic"));
|
|
5145
|
-
var
|
|
5179
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5146
5180
|
var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
5147
5181
|
var getNestedValue = (obj, path) => {
|
|
5148
5182
|
if (!obj || !path) return void 0;
|
|
@@ -5175,7 +5209,7 @@ var ImageNode = (props) => {
|
|
|
5175
5209
|
assets = [image];
|
|
5176
5210
|
}
|
|
5177
5211
|
if (assets && assets.length > 0) {
|
|
5178
|
-
return /* @__PURE__ */ (0,
|
|
5212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5179
5213
|
DeviceAssetSelector_default,
|
|
5180
5214
|
{
|
|
5181
5215
|
device: props.device,
|
|
@@ -5216,7 +5250,7 @@ var ImageNode = (props) => {
|
|
|
5216
5250
|
right: "justify-end"
|
|
5217
5251
|
};
|
|
5218
5252
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
5219
|
-
const renderMedia = () => isHls ? /* @__PURE__ */ (0,
|
|
5253
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5220
5254
|
HlsPlayer3,
|
|
5221
5255
|
{
|
|
5222
5256
|
assetUrl: imageUrl,
|
|
@@ -5229,7 +5263,7 @@ var ImageNode = (props) => {
|
|
|
5229
5263
|
apiBaseUrl: props.apiBaseUrl,
|
|
5230
5264
|
session: props.session
|
|
5231
5265
|
}
|
|
5232
|
-
) : /* @__PURE__ */ (0,
|
|
5266
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5233
5267
|
"img",
|
|
5234
5268
|
{
|
|
5235
5269
|
style: styles,
|
|
@@ -5242,7 +5276,7 @@ var ImageNode = (props) => {
|
|
|
5242
5276
|
}
|
|
5243
5277
|
);
|
|
5244
5278
|
if (props.node.width) {
|
|
5245
|
-
return /* @__PURE__ */ (0,
|
|
5279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
5246
5280
|
}
|
|
5247
5281
|
return renderMedia();
|
|
5248
5282
|
};
|
|
@@ -5252,7 +5286,7 @@ var ImageNode_default = ImageNode;
|
|
|
5252
5286
|
init_StyleTypes();
|
|
5253
5287
|
init_Hyperlink();
|
|
5254
5288
|
var import_dynamic6 = __toESM(require("next/dynamic"));
|
|
5255
|
-
var
|
|
5289
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5256
5290
|
var LinkNodeButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
|
|
5257
5291
|
ssr: false
|
|
5258
5292
|
});
|
|
@@ -5305,13 +5339,13 @@ var LinkNode = (props) => {
|
|
|
5305
5339
|
const isButton = node.isButton === true;
|
|
5306
5340
|
const renderChildren = () => {
|
|
5307
5341
|
if (!node.children || node.children.length === 0) return null;
|
|
5308
|
-
return /* @__PURE__ */ (0,
|
|
5342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: node.children.map((childNode, index) => {
|
|
5309
5343
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
5310
5344
|
if (!SelectedNode) {
|
|
5311
5345
|
console.warn("Unknown node type:", childNode.type);
|
|
5312
5346
|
return null;
|
|
5313
5347
|
}
|
|
5314
|
-
return /* @__PURE__ */ (0,
|
|
5348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5315
5349
|
SelectedNode,
|
|
5316
5350
|
{
|
|
5317
5351
|
node: childNode,
|
|
@@ -5324,15 +5358,15 @@ var LinkNode = (props) => {
|
|
|
5324
5358
|
};
|
|
5325
5359
|
const renderFallback = () => {
|
|
5326
5360
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
5327
|
-
return /* @__PURE__ */ (0,
|
|
5361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: linkText });
|
|
5328
5362
|
}
|
|
5329
5363
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
5330
|
-
return /* @__PURE__ */ (0,
|
|
5364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("br", {});
|
|
5331
5365
|
}
|
|
5332
5366
|
return null;
|
|
5333
5367
|
};
|
|
5334
5368
|
if (isButton) {
|
|
5335
|
-
return /* @__PURE__ */ (0,
|
|
5369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
5336
5370
|
LinkNodeButton2,
|
|
5337
5371
|
{
|
|
5338
5372
|
node,
|
|
@@ -5350,7 +5384,7 @@ var LinkNode = (props) => {
|
|
|
5350
5384
|
}
|
|
5351
5385
|
);
|
|
5352
5386
|
}
|
|
5353
|
-
return /* @__PURE__ */ (0,
|
|
5387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
5354
5388
|
Hyperlink,
|
|
5355
5389
|
{
|
|
5356
5390
|
href: linkUrl || "#",
|
|
@@ -5366,10 +5400,10 @@ var LinkNode = (props) => {
|
|
|
5366
5400
|
var LinkNode_default = LinkNode;
|
|
5367
5401
|
|
|
5368
5402
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
5369
|
-
var
|
|
5403
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5370
5404
|
var SVGIconNode = ({ node }) => {
|
|
5371
5405
|
if (!node?.svgCode) return null;
|
|
5372
|
-
return /* @__PURE__ */ (0,
|
|
5406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5373
5407
|
"span",
|
|
5374
5408
|
{
|
|
5375
5409
|
style: {
|
|
@@ -5386,7 +5420,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
5386
5420
|
|
|
5387
5421
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
5388
5422
|
var import_katex = __toESM(require("katex"));
|
|
5389
|
-
var
|
|
5423
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5390
5424
|
var EquationNode = ({ node }) => {
|
|
5391
5425
|
const { equation, inline } = node;
|
|
5392
5426
|
let html = "";
|
|
@@ -5401,7 +5435,7 @@ var EquationNode = ({ node }) => {
|
|
|
5401
5435
|
});
|
|
5402
5436
|
}
|
|
5403
5437
|
if (inline) {
|
|
5404
|
-
return /* @__PURE__ */ (0,
|
|
5438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5405
5439
|
"span",
|
|
5406
5440
|
{
|
|
5407
5441
|
className: "katex-inline",
|
|
@@ -5409,7 +5443,7 @@ var EquationNode = ({ node }) => {
|
|
|
5409
5443
|
}
|
|
5410
5444
|
);
|
|
5411
5445
|
}
|
|
5412
|
-
return /* @__PURE__ */ (0,
|
|
5446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5413
5447
|
"div",
|
|
5414
5448
|
{
|
|
5415
5449
|
className: "katex-block my-3 text-center",
|
|
@@ -5420,7 +5454,7 @@ var EquationNode = ({ node }) => {
|
|
|
5420
5454
|
var EquationNode_default = EquationNode;
|
|
5421
5455
|
|
|
5422
5456
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
5423
|
-
var
|
|
5457
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5424
5458
|
function getNestedProperty(obj, path) {
|
|
5425
5459
|
if (!obj || !path) return null;
|
|
5426
5460
|
if (path.includes(".")) {
|
|
@@ -5433,7 +5467,7 @@ function getNestedProperty(obj, path) {
|
|
|
5433
5467
|
}
|
|
5434
5468
|
const value = obj[path];
|
|
5435
5469
|
if (Array.isArray(value)) {
|
|
5436
|
-
return value.map((item, index) => /* @__PURE__ */ (0,
|
|
5470
|
+
return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children: String(item) }, index));
|
|
5437
5471
|
}
|
|
5438
5472
|
return value;
|
|
5439
5473
|
}
|
|
@@ -5494,7 +5528,7 @@ var DatafieldNode = (props) => {
|
|
|
5494
5528
|
const dataType = props.node.dataType;
|
|
5495
5529
|
if (isEmptyValue) return null;
|
|
5496
5530
|
if (dataType === "rawContent") {
|
|
5497
|
-
return /* @__PURE__ */ (0,
|
|
5531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5498
5532
|
PageBodyRenderer_default,
|
|
5499
5533
|
{
|
|
5500
5534
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -5510,12 +5544,12 @@ var DatafieldNode = (props) => {
|
|
|
5510
5544
|
}
|
|
5511
5545
|
);
|
|
5512
5546
|
}
|
|
5513
|
-
return /* @__PURE__ */ (0,
|
|
5547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5514
5548
|
"span",
|
|
5515
5549
|
{
|
|
5516
5550
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
5517
5551
|
style: styles,
|
|
5518
|
-
children: /* @__PURE__ */ (0,
|
|
5552
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5519
5553
|
ViewControl_default,
|
|
5520
5554
|
{
|
|
5521
5555
|
controlType: dataType,
|
|
@@ -5528,7 +5562,7 @@ var DatafieldNode = (props) => {
|
|
|
5528
5562
|
var DatafieldNode_default = DatafieldNode;
|
|
5529
5563
|
|
|
5530
5564
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
5531
|
-
var
|
|
5565
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5532
5566
|
var ParagraphNode = (props) => {
|
|
5533
5567
|
const NodeTypes2 = {
|
|
5534
5568
|
["text"]: TextNode_default,
|
|
@@ -5548,9 +5582,9 @@ var ParagraphNode = (props) => {
|
|
|
5548
5582
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
5549
5583
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
5550
5584
|
if (isInlineOnlyParent) {
|
|
5551
|
-
return /* @__PURE__ */ (0,
|
|
5585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
5552
5586
|
const SelectedNode = NodeTypes2[node.type];
|
|
5553
|
-
return /* @__PURE__ */ (0,
|
|
5587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5554
5588
|
SelectedNode,
|
|
5555
5589
|
{
|
|
5556
5590
|
node,
|
|
@@ -5562,10 +5596,10 @@ var ParagraphNode = (props) => {
|
|
|
5562
5596
|
) }, index);
|
|
5563
5597
|
}) });
|
|
5564
5598
|
}
|
|
5565
|
-
return /* @__PURE__ */ (0,
|
|
5599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: " " + formatClasses, children: [
|
|
5566
5600
|
hasChildren && props.node.children.map((node, index) => {
|
|
5567
5601
|
const SelectedNode = NodeTypes2[node.type];
|
|
5568
|
-
return /* @__PURE__ */ (0,
|
|
5602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5569
5603
|
SelectedNode,
|
|
5570
5604
|
{
|
|
5571
5605
|
node,
|
|
@@ -5576,14 +5610,14 @@ var ParagraphNode = (props) => {
|
|
|
5576
5610
|
}
|
|
5577
5611
|
) }, index);
|
|
5578
5612
|
}),
|
|
5579
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
5613
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
5580
5614
|
] });
|
|
5581
5615
|
};
|
|
5582
5616
|
var ParagraphNode_default = ParagraphNode;
|
|
5583
5617
|
|
|
5584
5618
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
5585
5619
|
var import_react44 = __toESM(require("react"));
|
|
5586
|
-
var
|
|
5620
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5587
5621
|
var HeadingNode = (props) => {
|
|
5588
5622
|
const NodeTypes2 = {
|
|
5589
5623
|
["text"]: TextNode_default,
|
|
@@ -5599,12 +5633,12 @@ var HeadingNode = (props) => {
|
|
|
5599
5633
|
{
|
|
5600
5634
|
}
|
|
5601
5635
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
5602
|
-
return /* @__PURE__ */ (0,
|
|
5636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children: import_react44.default.createElement(
|
|
5603
5637
|
HeadingTag,
|
|
5604
5638
|
{ className: formatClasses },
|
|
5605
5639
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
5606
5640
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
5607
|
-
return /* @__PURE__ */ (0,
|
|
5641
|
+
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);
|
|
5608
5642
|
})
|
|
5609
5643
|
) });
|
|
5610
5644
|
};
|
|
@@ -5615,7 +5649,7 @@ var import_react46 = __toESM(require("react"));
|
|
|
5615
5649
|
|
|
5616
5650
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
5617
5651
|
var import_react45 = __toESM(require("react"));
|
|
5618
|
-
var
|
|
5652
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5619
5653
|
var ListItemNode = (props) => {
|
|
5620
5654
|
const NodeTypes2 = {
|
|
5621
5655
|
text: TextNode_default,
|
|
@@ -5632,37 +5666,37 @@ var ListItemNode = (props) => {
|
|
|
5632
5666
|
liStyle.fontSize = match[1].trim();
|
|
5633
5667
|
}
|
|
5634
5668
|
}
|
|
5635
|
-
return /* @__PURE__ */ (0,
|
|
5669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
5636
5670
|
const SelectedNode = NodeTypes2[node.type];
|
|
5637
5671
|
if (node.type === "linebreak") {
|
|
5638
5672
|
if (!foundFirstBreak) {
|
|
5639
5673
|
foundFirstBreak = true;
|
|
5640
|
-
return /* @__PURE__ */ (0,
|
|
5674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {}, index);
|
|
5641
5675
|
} else {
|
|
5642
|
-
return /* @__PURE__ */ (0,
|
|
5676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
5643
5677
|
}
|
|
5644
5678
|
} else {
|
|
5645
5679
|
foundFirstBreak = false;
|
|
5646
|
-
return /* @__PURE__ */ (0,
|
|
5680
|
+
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);
|
|
5647
5681
|
}
|
|
5648
5682
|
}) });
|
|
5649
5683
|
};
|
|
5650
5684
|
var ListItemNode_default = ListItemNode;
|
|
5651
5685
|
|
|
5652
5686
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
5653
|
-
var
|
|
5687
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5654
5688
|
var ListNode = (props) => {
|
|
5655
5689
|
const NodeTypes2 = {
|
|
5656
5690
|
listitem: ListItemNode_default
|
|
5657
5691
|
};
|
|
5658
|
-
return /* @__PURE__ */ (0,
|
|
5659
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
5692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react46.default.Fragment, { children: [
|
|
5693
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5660
5694
|
const SelectedNode = NodeTypes2[node.type];
|
|
5661
|
-
return /* @__PURE__ */ (0,
|
|
5695
|
+
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);
|
|
5662
5696
|
}) }),
|
|
5663
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
5697
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5664
5698
|
const SelectedNode = NodeTypes2[node.type];
|
|
5665
|
-
return /* @__PURE__ */ (0,
|
|
5699
|
+
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);
|
|
5666
5700
|
}) })
|
|
5667
5701
|
] });
|
|
5668
5702
|
};
|
|
@@ -5670,16 +5704,16 @@ var ListNode_default = ListNode;
|
|
|
5670
5704
|
|
|
5671
5705
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
5672
5706
|
var import_react47 = __toESM(require("react"));
|
|
5673
|
-
var
|
|
5707
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5674
5708
|
var QuoteNode = (props) => {
|
|
5675
5709
|
const NodeTypes2 = {
|
|
5676
5710
|
["text"]: TextNode_default,
|
|
5677
5711
|
["linebreak"]: LineBreakNode_default,
|
|
5678
5712
|
["link"]: LinkNode_default
|
|
5679
5713
|
};
|
|
5680
|
-
return /* @__PURE__ */ (0,
|
|
5714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5681
5715
|
const SelectedNode = NodeTypes2[node.type];
|
|
5682
|
-
return /* @__PURE__ */ (0,
|
|
5716
|
+
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);
|
|
5683
5717
|
}) });
|
|
5684
5718
|
};
|
|
5685
5719
|
var QuoteNode_default = QuoteNode;
|
|
@@ -5687,11 +5721,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
5687
5721
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
5688
5722
|
var import_react49 = __toESM(require("react"));
|
|
5689
5723
|
var import_dynamic7 = __toESM(require("next/dynamic"));
|
|
5690
|
-
var
|
|
5724
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5691
5725
|
var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
5692
5726
|
ssr: false,
|
|
5693
5727
|
// optional: fallback UI while loading
|
|
5694
|
-
loading: () => /* @__PURE__ */ (0,
|
|
5728
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
5695
5729
|
});
|
|
5696
5730
|
var CodeNode = (props) => {
|
|
5697
5731
|
const NodeTypes2 = {
|
|
@@ -5705,14 +5739,14 @@ var CodeNode = (props) => {
|
|
|
5705
5739
|
if (node.type === "link") return node.text || node.url || "";
|
|
5706
5740
|
return "";
|
|
5707
5741
|
}).join("") ?? "";
|
|
5708
|
-
return /* @__PURE__ */ (0,
|
|
5709
|
-
/* @__PURE__ */ (0,
|
|
5710
|
-
/* @__PURE__ */ (0,
|
|
5711
|
-
/* @__PURE__ */ (0,
|
|
5742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { children: [
|
|
5743
|
+
/* @__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: [
|
|
5744
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: "Code Snippet" }),
|
|
5745
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(CopyButton2, { text: textContent })
|
|
5712
5746
|
] }),
|
|
5713
|
-
/* @__PURE__ */ (0,
|
|
5747
|
+
/* @__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) => {
|
|
5714
5748
|
const SelectedNode = NodeTypes2[node.type];
|
|
5715
|
-
return /* @__PURE__ */ (0,
|
|
5749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react49.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5716
5750
|
SelectedNode,
|
|
5717
5751
|
{
|
|
5718
5752
|
node,
|
|
@@ -5727,15 +5761,15 @@ var CodeNode = (props) => {
|
|
|
5727
5761
|
var CodeNode_default = CodeNode;
|
|
5728
5762
|
|
|
5729
5763
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
5730
|
-
var
|
|
5764
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5731
5765
|
var HorizontalRuleNode = () => {
|
|
5732
|
-
return /* @__PURE__ */ (0,
|
|
5766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("hr", {});
|
|
5733
5767
|
};
|
|
5734
5768
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
5735
5769
|
|
|
5736
5770
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
5737
5771
|
var import_react50 = __toESM(require("react"));
|
|
5738
|
-
var
|
|
5772
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5739
5773
|
var WidgetNode = (props) => {
|
|
5740
5774
|
const getWidgetParameters = () => {
|
|
5741
5775
|
const widgetInputParameters = {
|
|
@@ -5799,7 +5833,7 @@ var WidgetNode = (props) => {
|
|
|
5799
5833
|
};
|
|
5800
5834
|
const widgetCode = props.node?.widgetCode;
|
|
5801
5835
|
if (!widgetCode) {
|
|
5802
|
-
return /* @__PURE__ */ (0,
|
|
5836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: "Invalid widget" });
|
|
5803
5837
|
}
|
|
5804
5838
|
const widgetParams = getWidgetParameters();
|
|
5805
5839
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -5808,7 +5842,7 @@ var WidgetNode = (props) => {
|
|
|
5808
5842
|
}
|
|
5809
5843
|
return (
|
|
5810
5844
|
// eslint-disable-next-line react-hooks/static-components
|
|
5811
|
-
/* @__PURE__ */ (0,
|
|
5845
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react50.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5812
5846
|
WidgetRenderer,
|
|
5813
5847
|
{
|
|
5814
5848
|
params: widgetParams,
|
|
@@ -5830,7 +5864,7 @@ var import_react55 = __toESM(require("react"));
|
|
|
5830
5864
|
|
|
5831
5865
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
5832
5866
|
var import_dynamic8 = __toESM(require("next/dynamic"));
|
|
5833
|
-
var
|
|
5867
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5834
5868
|
var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
5835
5869
|
ssr: false
|
|
5836
5870
|
});
|
|
@@ -5843,7 +5877,7 @@ var EmbedNode = (props) => {
|
|
|
5843
5877
|
} else {
|
|
5844
5878
|
src = props.node.embedSrc;
|
|
5845
5879
|
}
|
|
5846
|
-
return /* @__PURE__ */ (0,
|
|
5880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(IframeClient2, { src }) });
|
|
5847
5881
|
};
|
|
5848
5882
|
var EmbedNode_default = EmbedNode;
|
|
5849
5883
|
|
|
@@ -6043,10 +6077,10 @@ var PathUtility = class {
|
|
|
6043
6077
|
var PathUtility_default = new PathUtility();
|
|
6044
6078
|
|
|
6045
6079
|
// src/components/NoDataFound.tsx
|
|
6046
|
-
var
|
|
6080
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6047
6081
|
var NoDataFound = () => {
|
|
6048
|
-
return /* @__PURE__ */ (0,
|
|
6049
|
-
/* @__PURE__ */ (0,
|
|
6082
|
+
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: [
|
|
6083
|
+
/* @__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)(
|
|
6050
6084
|
"svg",
|
|
6051
6085
|
{
|
|
6052
6086
|
className: "w-10 h-10",
|
|
@@ -6054,7 +6088,7 @@ var NoDataFound = () => {
|
|
|
6054
6088
|
stroke: "currentColor",
|
|
6055
6089
|
viewBox: "0 0 24 24",
|
|
6056
6090
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6057
|
-
children: /* @__PURE__ */ (0,
|
|
6091
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6058
6092
|
"path",
|
|
6059
6093
|
{
|
|
6060
6094
|
strokeLinecap: "round",
|
|
@@ -6065,8 +6099,8 @@ var NoDataFound = () => {
|
|
|
6065
6099
|
)
|
|
6066
6100
|
}
|
|
6067
6101
|
) }) }),
|
|
6068
|
-
/* @__PURE__ */ (0,
|
|
6069
|
-
/* @__PURE__ */ (0,
|
|
6102
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
6103
|
+
/* @__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." })
|
|
6070
6104
|
] });
|
|
6071
6105
|
};
|
|
6072
6106
|
var NoDataFound_default = NoDataFound;
|
|
@@ -6074,7 +6108,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
6074
6108
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
6075
6109
|
init_AssetUtility();
|
|
6076
6110
|
var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
6077
|
-
var
|
|
6111
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
6078
6112
|
var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
6079
6113
|
var deviceToMediaQuery = (device) => {
|
|
6080
6114
|
switch (device) {
|
|
@@ -6203,8 +6237,8 @@ var ImageGalleryNode = (props) => {
|
|
|
6203
6237
|
right: "justify-end"
|
|
6204
6238
|
};
|
|
6205
6239
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
6206
|
-
return /* @__PURE__ */ (0,
|
|
6207
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
6240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
|
|
6241
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6208
6242
|
HlsPlayer4,
|
|
6209
6243
|
{
|
|
6210
6244
|
sources: hlsSources,
|
|
@@ -6219,7 +6253,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6219
6253
|
styles: hlsStyles
|
|
6220
6254
|
}
|
|
6221
6255
|
) }),
|
|
6222
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
6256
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("picture", { children: [
|
|
6223
6257
|
DEVICE_ORDER.map((deviceKey) => {
|
|
6224
6258
|
const match = staticSources.find(
|
|
6225
6259
|
(img) => img.device === deviceKey
|
|
@@ -6231,7 +6265,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6231
6265
|
if (!srcUrl) {
|
|
6232
6266
|
return null;
|
|
6233
6267
|
}
|
|
6234
|
-
return /* @__PURE__ */ (0,
|
|
6268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6235
6269
|
"source",
|
|
6236
6270
|
{
|
|
6237
6271
|
media: deviceToMediaQuery(match.device),
|
|
@@ -6255,7 +6289,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6255
6289
|
if (img.borderRadius) {
|
|
6256
6290
|
styles.borderRadius = img.borderRadius;
|
|
6257
6291
|
}
|
|
6258
|
-
return /* @__PURE__ */ (0,
|
|
6292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6259
6293
|
"img",
|
|
6260
6294
|
{
|
|
6261
6295
|
loading: "lazy",
|
|
@@ -6270,7 +6304,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6270
6304
|
})()
|
|
6271
6305
|
] }) : (
|
|
6272
6306
|
/* Case 2: Only device-specific images exist */
|
|
6273
|
-
/* @__PURE__ */ (0,
|
|
6307
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: staticSources.map((img, index) => {
|
|
6274
6308
|
const imageUrl = resolveImageUrl(img);
|
|
6275
6309
|
if (!imageUrl) {
|
|
6276
6310
|
return null;
|
|
@@ -6296,7 +6330,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6296
6330
|
default:
|
|
6297
6331
|
display = "block";
|
|
6298
6332
|
}
|
|
6299
|
-
return /* @__PURE__ */ (0,
|
|
6333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6300
6334
|
"img",
|
|
6301
6335
|
{
|
|
6302
6336
|
loading: "lazy",
|
|
@@ -6437,28 +6471,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
6437
6471
|
|
|
6438
6472
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
6439
6473
|
init_AssetUtility();
|
|
6440
|
-
var
|
|
6474
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
6441
6475
|
var getNestedValue5 = (obj, path) => {
|
|
6442
6476
|
if (!obj || !path) return void 0;
|
|
6443
6477
|
return path.split(".").reduce((current, key) => {
|
|
6444
6478
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
6445
6479
|
}, obj);
|
|
6446
6480
|
};
|
|
6447
|
-
var PdfIcon = () => /* @__PURE__ */ (0,
|
|
6481
|
+
var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6448
6482
|
"svg",
|
|
6449
6483
|
{
|
|
6450
6484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6451
6485
|
viewBox: "0 0 48 48",
|
|
6452
6486
|
className: "w-10 h-10",
|
|
6453
6487
|
children: [
|
|
6454
|
-
/* @__PURE__ */ (0,
|
|
6488
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6455
6489
|
"path",
|
|
6456
6490
|
{
|
|
6457
6491
|
fill: "#e53935",
|
|
6458
6492
|
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"
|
|
6459
6493
|
}
|
|
6460
6494
|
),
|
|
6461
|
-
/* @__PURE__ */ (0,
|
|
6495
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6462
6496
|
"path",
|
|
6463
6497
|
{
|
|
6464
6498
|
fill: "#fff",
|
|
@@ -6468,55 +6502,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6468
6502
|
]
|
|
6469
6503
|
}
|
|
6470
6504
|
);
|
|
6471
|
-
var ExcelIcon = () => /* @__PURE__ */ (0,
|
|
6505
|
+
var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6472
6506
|
"svg",
|
|
6473
6507
|
{
|
|
6474
6508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6475
6509
|
viewBox: "0 0 48 48",
|
|
6476
6510
|
className: "w-10 h-10",
|
|
6477
6511
|
children: [
|
|
6478
|
-
/* @__PURE__ */ (0,
|
|
6512
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6479
6513
|
"path",
|
|
6480
6514
|
{
|
|
6481
6515
|
fill: "#169154",
|
|
6482
6516
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
6483
6517
|
}
|
|
6484
6518
|
),
|
|
6485
|
-
/* @__PURE__ */ (0,
|
|
6519
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6486
6520
|
"path",
|
|
6487
6521
|
{
|
|
6488
6522
|
fill: "#18482a",
|
|
6489
6523
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
6490
6524
|
}
|
|
6491
6525
|
),
|
|
6492
|
-
/* @__PURE__ */ (0,
|
|
6493
|
-
/* @__PURE__ */ (0,
|
|
6494
|
-
/* @__PURE__ */ (0,
|
|
6495
|
-
/* @__PURE__ */ (0,
|
|
6526
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
6527
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
6528
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("g", { children: [
|
|
6529
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6496
6530
|
"path",
|
|
6497
6531
|
{
|
|
6498
6532
|
fill: "#29c27f",
|
|
6499
6533
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
6500
6534
|
}
|
|
6501
6535
|
),
|
|
6502
|
-
/* @__PURE__ */ (0,
|
|
6536
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6503
6537
|
"path",
|
|
6504
6538
|
{
|
|
6505
6539
|
fill: "#27663f",
|
|
6506
6540
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
6507
6541
|
}
|
|
6508
6542
|
),
|
|
6509
|
-
/* @__PURE__ */ (0,
|
|
6510
|
-
/* @__PURE__ */ (0,
|
|
6543
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
6544
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
6511
6545
|
] }),
|
|
6512
|
-
/* @__PURE__ */ (0,
|
|
6546
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6513
6547
|
"path",
|
|
6514
6548
|
{
|
|
6515
6549
|
fill: "#0c7238",
|
|
6516
6550
|
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"
|
|
6517
6551
|
}
|
|
6518
6552
|
),
|
|
6519
|
-
/* @__PURE__ */ (0,
|
|
6553
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6520
6554
|
"path",
|
|
6521
6555
|
{
|
|
6522
6556
|
fill: "#fff",
|
|
@@ -6526,7 +6560,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6526
6560
|
]
|
|
6527
6561
|
}
|
|
6528
6562
|
);
|
|
6529
|
-
var WordIcon = () => /* @__PURE__ */ (0,
|
|
6563
|
+
var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6530
6564
|
"svg",
|
|
6531
6565
|
{
|
|
6532
6566
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6534,14 +6568,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6534
6568
|
className: "w-10 h-10",
|
|
6535
6569
|
baseProfile: "basic",
|
|
6536
6570
|
children: [
|
|
6537
|
-
/* @__PURE__ */ (0,
|
|
6571
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6538
6572
|
"path",
|
|
6539
6573
|
{
|
|
6540
6574
|
fill: "#283593",
|
|
6541
6575
|
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"
|
|
6542
6576
|
}
|
|
6543
6577
|
),
|
|
6544
|
-
/* @__PURE__ */ (0,
|
|
6578
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6545
6579
|
"linearGradient",
|
|
6546
6580
|
{
|
|
6547
6581
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -6552,19 +6586,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6552
6586
|
gradientTransform: "translate(0 -339.89)",
|
|
6553
6587
|
gradientUnits: "userSpaceOnUse",
|
|
6554
6588
|
children: [
|
|
6555
|
-
/* @__PURE__ */ (0,
|
|
6556
|
-
/* @__PURE__ */ (0,
|
|
6589
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
6590
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
6557
6591
|
]
|
|
6558
6592
|
}
|
|
6559
6593
|
),
|
|
6560
|
-
/* @__PURE__ */ (0,
|
|
6594
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6561
6595
|
"path",
|
|
6562
6596
|
{
|
|
6563
6597
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
6564
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"
|
|
6565
6599
|
}
|
|
6566
6600
|
),
|
|
6567
|
-
/* @__PURE__ */ (0,
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6568
6602
|
"path",
|
|
6569
6603
|
{
|
|
6570
6604
|
fill: "#1e88e5",
|
|
@@ -6572,21 +6606,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6572
6606
|
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"
|
|
6573
6607
|
}
|
|
6574
6608
|
),
|
|
6575
|
-
/* @__PURE__ */ (0,
|
|
6609
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6576
6610
|
"path",
|
|
6577
6611
|
{
|
|
6578
6612
|
fill: "#00e5ff",
|
|
6579
6613
|
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"
|
|
6580
6614
|
}
|
|
6581
6615
|
),
|
|
6582
|
-
/* @__PURE__ */ (0,
|
|
6616
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6583
6617
|
"path",
|
|
6584
6618
|
{
|
|
6585
6619
|
fill: "#1565c0",
|
|
6586
6620
|
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"
|
|
6587
6621
|
}
|
|
6588
6622
|
),
|
|
6589
|
-
/* @__PURE__ */ (0,
|
|
6623
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6590
6624
|
"path",
|
|
6591
6625
|
{
|
|
6592
6626
|
fill: "#fff",
|
|
@@ -6596,42 +6630,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6596
6630
|
]
|
|
6597
6631
|
}
|
|
6598
6632
|
);
|
|
6599
|
-
var StandardIcon = () => /* @__PURE__ */ (0,
|
|
6633
|
+
var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6600
6634
|
"svg",
|
|
6601
6635
|
{
|
|
6602
6636
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6603
6637
|
viewBox: "0 0 48 48",
|
|
6604
6638
|
className: "w-10 h-10",
|
|
6605
6639
|
children: [
|
|
6606
|
-
/* @__PURE__ */ (0,
|
|
6607
|
-
/* @__PURE__ */ (0,
|
|
6640
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
6641
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
6608
6642
|
]
|
|
6609
6643
|
}
|
|
6610
6644
|
);
|
|
6611
|
-
var PowerPointIcon = () => /* @__PURE__ */ (0,
|
|
6645
|
+
var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6612
6646
|
"svg",
|
|
6613
6647
|
{
|
|
6614
6648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6615
6649
|
viewBox: "0 0 48 48",
|
|
6616
6650
|
className: "w-10 h-10",
|
|
6617
6651
|
children: [
|
|
6618
|
-
/* @__PURE__ */ (0,
|
|
6652
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6619
6653
|
"path",
|
|
6620
6654
|
{
|
|
6621
6655
|
fill: "#dc4c2c",
|
|
6622
6656
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
6623
6657
|
}
|
|
6624
6658
|
),
|
|
6625
|
-
/* @__PURE__ */ (0,
|
|
6626
|
-
/* @__PURE__ */ (0,
|
|
6627
|
-
/* @__PURE__ */ (0,
|
|
6659
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
6660
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
6661
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6628
6662
|
"path",
|
|
6629
6663
|
{
|
|
6630
6664
|
fill: "#9b341f",
|
|
6631
6665
|
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"
|
|
6632
6666
|
}
|
|
6633
6667
|
),
|
|
6634
|
-
/* @__PURE__ */ (0,
|
|
6668
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6635
6669
|
"path",
|
|
6636
6670
|
{
|
|
6637
6671
|
fill: "#fff",
|
|
@@ -6641,16 +6675,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6641
6675
|
]
|
|
6642
6676
|
}
|
|
6643
6677
|
);
|
|
6644
|
-
var TextIcon = () => /* @__PURE__ */ (0,
|
|
6678
|
+
var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6645
6679
|
"svg",
|
|
6646
6680
|
{
|
|
6647
6681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6648
6682
|
viewBox: "0 0 48 48",
|
|
6649
6683
|
className: "w-10 h-10",
|
|
6650
6684
|
children: [
|
|
6651
|
-
/* @__PURE__ */ (0,
|
|
6652
|
-
/* @__PURE__ */ (0,
|
|
6653
|
-
/* @__PURE__ */ (0,
|
|
6685
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
6686
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
6687
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6654
6688
|
"path",
|
|
6655
6689
|
{
|
|
6656
6690
|
fill: "#1976D2",
|
|
@@ -6660,7 +6694,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6660
6694
|
]
|
|
6661
6695
|
}
|
|
6662
6696
|
);
|
|
6663
|
-
var ArchiveIcon = () => /* @__PURE__ */ (0,
|
|
6697
|
+
var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6664
6698
|
"svg",
|
|
6665
6699
|
{
|
|
6666
6700
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6670,14 +6704,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6670
6704
|
version: "1.0",
|
|
6671
6705
|
className: "w-10 h-10",
|
|
6672
6706
|
children: [
|
|
6673
|
-
/* @__PURE__ */ (0,
|
|
6707
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6674
6708
|
"path",
|
|
6675
6709
|
{
|
|
6676
6710
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
6677
6711
|
"clip-rule": "nonzero"
|
|
6678
6712
|
}
|
|
6679
6713
|
) }) }),
|
|
6680
|
-
/* @__PURE__ */ (0,
|
|
6714
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6681
6715
|
"path",
|
|
6682
6716
|
{
|
|
6683
6717
|
fill: "#ff9100",
|
|
@@ -6686,7 +6720,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6686
6720
|
"fill-rule": "nonzero"
|
|
6687
6721
|
}
|
|
6688
6722
|
) }),
|
|
6689
|
-
/* @__PURE__ */ (0,
|
|
6723
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6690
6724
|
"path",
|
|
6691
6725
|
{
|
|
6692
6726
|
fill: "#fbe9e7",
|
|
@@ -6695,7 +6729,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6695
6729
|
"fill-rule": "nonzero"
|
|
6696
6730
|
}
|
|
6697
6731
|
),
|
|
6698
|
-
/* @__PURE__ */ (0,
|
|
6732
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6699
6733
|
"path",
|
|
6700
6734
|
{
|
|
6701
6735
|
fill: "#ffe0b2",
|
|
@@ -6704,7 +6738,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6704
6738
|
"fill-rule": "nonzero"
|
|
6705
6739
|
}
|
|
6706
6740
|
),
|
|
6707
|
-
/* @__PURE__ */ (0,
|
|
6741
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6708
6742
|
"path",
|
|
6709
6743
|
{
|
|
6710
6744
|
fill: "#ffe0b2",
|
|
@@ -6713,7 +6747,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
|
6713
6747
|
"fill-rule": "nonzero"
|
|
6714
6748
|
}
|
|
6715
6749
|
),
|
|
6716
|
-
/* @__PURE__ */ (0,
|
|
6750
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6717
6751
|
"path",
|
|
6718
6752
|
{
|
|
6719
6753
|
fill: "#ffe0b2",
|
|
@@ -6789,8 +6823,8 @@ var DocumentNode = (props) => {
|
|
|
6789
6823
|
}
|
|
6790
6824
|
}
|
|
6791
6825
|
if (documents.length === 0) {
|
|
6792
|
-
return /* @__PURE__ */ (0,
|
|
6793
|
-
/* @__PURE__ */ (0,
|
|
6826
|
+
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: [
|
|
6827
|
+
/* @__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)(
|
|
6794
6828
|
"svg",
|
|
6795
6829
|
{
|
|
6796
6830
|
className: "w-5 h-5",
|
|
@@ -6798,7 +6832,7 @@ var DocumentNode = (props) => {
|
|
|
6798
6832
|
stroke: "currentColor",
|
|
6799
6833
|
viewBox: "0 0 24 24",
|
|
6800
6834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6801
|
-
children: /* @__PURE__ */ (0,
|
|
6835
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6802
6836
|
"path",
|
|
6803
6837
|
{
|
|
6804
6838
|
strokeLinecap: "round",
|
|
@@ -6809,11 +6843,11 @@ var DocumentNode = (props) => {
|
|
|
6809
6843
|
)
|
|
6810
6844
|
}
|
|
6811
6845
|
) }),
|
|
6812
|
-
/* @__PURE__ */ (0,
|
|
6813
|
-
/* @__PURE__ */ (0,
|
|
6846
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
6847
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
6814
6848
|
] }) });
|
|
6815
6849
|
}
|
|
6816
|
-
return /* @__PURE__ */ (0,
|
|
6850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
6817
6851
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
6818
6852
|
props.assetBaseUrl,
|
|
6819
6853
|
doc.assetUrl
|
|
@@ -6831,16 +6865,16 @@ var DocumentNode = (props) => {
|
|
|
6831
6865
|
}
|
|
6832
6866
|
}
|
|
6833
6867
|
const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
|
|
6834
|
-
return /* @__PURE__ */ (0,
|
|
6868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6835
6869
|
"div",
|
|
6836
6870
|
{
|
|
6837
6871
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
6838
6872
|
children: [
|
|
6839
|
-
/* @__PURE__ */ (0,
|
|
6840
|
-
/* @__PURE__ */ (0,
|
|
6841
|
-
/* @__PURE__ */ (0,
|
|
6873
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
6874
|
+
/* @__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, {}) }),
|
|
6875
|
+
/* @__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 }) })
|
|
6842
6876
|
] }),
|
|
6843
|
-
/* @__PURE__ */ (0,
|
|
6877
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6844
6878
|
"a",
|
|
6845
6879
|
{
|
|
6846
6880
|
href: documentUrl,
|
|
@@ -6848,7 +6882,7 @@ var DocumentNode = (props) => {
|
|
|
6848
6882
|
rel: "noopener noreferrer",
|
|
6849
6883
|
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",
|
|
6850
6884
|
children: [
|
|
6851
|
-
/* @__PURE__ */ (0,
|
|
6885
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
6852
6886
|
"svg",
|
|
6853
6887
|
{
|
|
6854
6888
|
className: "w-4 h-4 mr-2",
|
|
@@ -6856,7 +6890,7 @@ var DocumentNode = (props) => {
|
|
|
6856
6890
|
stroke: "currentColor",
|
|
6857
6891
|
viewBox: "0 0 24 24",
|
|
6858
6892
|
children: [
|
|
6859
|
-
/* @__PURE__ */ (0,
|
|
6893
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6860
6894
|
"path",
|
|
6861
6895
|
{
|
|
6862
6896
|
strokeLinecap: "round",
|
|
@@ -6865,7 +6899,7 @@ var DocumentNode = (props) => {
|
|
|
6865
6899
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
6866
6900
|
}
|
|
6867
6901
|
),
|
|
6868
|
-
/* @__PURE__ */ (0,
|
|
6902
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6869
6903
|
"path",
|
|
6870
6904
|
{
|
|
6871
6905
|
strokeLinecap: "round",
|
|
@@ -6890,7 +6924,7 @@ var DocumentNode = (props) => {
|
|
|
6890
6924
|
var DocumentNode_default = DocumentNode;
|
|
6891
6925
|
|
|
6892
6926
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
6893
|
-
var
|
|
6927
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6894
6928
|
var Pagination2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
6895
6929
|
var Slider2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
|
|
6896
6930
|
ssr: false
|
|
@@ -7145,7 +7179,7 @@ var DivContainer = async (props) => {
|
|
|
7145
7179
|
response = await serviceClient.get(endpoint);
|
|
7146
7180
|
result = response?.result;
|
|
7147
7181
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
7148
|
-
return /* @__PURE__ */ (0,
|
|
7182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(NoDataFound_default, {});
|
|
7149
7183
|
}
|
|
7150
7184
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
7151
7185
|
childCollectionData = getNestedValue6(
|
|
@@ -7165,7 +7199,7 @@ var DivContainer = async (props) => {
|
|
|
7165
7199
|
}
|
|
7166
7200
|
const SelectedNode = NodeTypes2[node.type];
|
|
7167
7201
|
if (!SelectedNode) return null;
|
|
7168
|
-
return /* @__PURE__ */ (0,
|
|
7202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react55.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
7169
7203
|
SelectedNode,
|
|
7170
7204
|
{
|
|
7171
7205
|
node,
|
|
@@ -7298,14 +7332,14 @@ var DivContainer = async (props) => {
|
|
|
7298
7332
|
noLinkColor && "no-link-color",
|
|
7299
7333
|
!!props.node.enterAnimation && "enter-animation"
|
|
7300
7334
|
].filter(Boolean).join(" ");
|
|
7301
|
-
return /* @__PURE__ */ (0,
|
|
7302
|
-
/* @__PURE__ */ (0,
|
|
7335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_react55.default.Fragment, { children: [
|
|
7336
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
7303
7337
|
"style",
|
|
7304
7338
|
{
|
|
7305
7339
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
7306
7340
|
}
|
|
7307
7341
|
),
|
|
7308
|
-
/* @__PURE__ */ (0,
|
|
7342
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
7309
7343
|
Wrapper,
|
|
7310
7344
|
{
|
|
7311
7345
|
id: guid,
|
|
@@ -7319,11 +7353,11 @@ var DivContainer = async (props) => {
|
|
|
7319
7353
|
item,
|
|
7320
7354
|
idx,
|
|
7321
7355
|
props.href ? void 0 : item?.links?.view
|
|
7322
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
7356
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react55.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
7323
7357
|
)
|
|
7324
7358
|
}
|
|
7325
7359
|
),
|
|
7326
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0,
|
|
7360
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
7327
7361
|
Pagination2,
|
|
7328
7362
|
{
|
|
7329
7363
|
path: props.path,
|
|
@@ -7336,7 +7370,7 @@ var DivContainer = async (props) => {
|
|
|
7336
7370
|
var DivContainer_default = DivContainer;
|
|
7337
7371
|
|
|
7338
7372
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
7339
|
-
var
|
|
7373
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
7340
7374
|
var NodeTypes = {
|
|
7341
7375
|
["paragraph"]: ParagraphNode_default,
|
|
7342
7376
|
["heading"]: HeadingNode_default,
|
|
@@ -7373,14 +7407,14 @@ var PageBodyRenderer = (props) => {
|
|
|
7373
7407
|
}
|
|
7374
7408
|
return true;
|
|
7375
7409
|
};
|
|
7376
|
-
return /* @__PURE__ */ (0,
|
|
7410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
7377
7411
|
{
|
|
7378
7412
|
}
|
|
7379
7413
|
const SelectedNode = NodeTypes[node.type];
|
|
7380
7414
|
if (!shouldRenderNode(node)) {
|
|
7381
7415
|
return null;
|
|
7382
7416
|
}
|
|
7383
|
-
return /* @__PURE__ */ (0,
|
|
7417
|
+
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)(
|
|
7384
7418
|
SelectedNode,
|
|
7385
7419
|
{
|
|
7386
7420
|
node,
|
|
@@ -7396,7 +7430,7 @@ var PageBodyRenderer = (props) => {
|
|
|
7396
7430
|
device: props.device,
|
|
7397
7431
|
widgetRenderer: props.widgetRenderer
|
|
7398
7432
|
}
|
|
7399
|
-
) }) : /* @__PURE__ */ (0,
|
|
7433
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react56.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
7400
7434
|
SelectedNode,
|
|
7401
7435
|
{
|
|
7402
7436
|
node,
|
|
@@ -7467,7 +7501,7 @@ function EnterAnimationHydrator() {
|
|
|
7467
7501
|
// src/components/Toast.tsx
|
|
7468
7502
|
var import_react58 = require("react");
|
|
7469
7503
|
init_ToastService();
|
|
7470
|
-
var
|
|
7504
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
7471
7505
|
var Toast = () => {
|
|
7472
7506
|
const [showToast, setShowToast] = (0, import_react58.useState)(false);
|
|
7473
7507
|
const [message, setMessage] = (0, import_react58.useState)("");
|
|
@@ -7501,8 +7535,8 @@ var Toast = () => {
|
|
|
7501
7535
|
});
|
|
7502
7536
|
};
|
|
7503
7537
|
}, [closeToast, showMessage]);
|
|
7504
|
-
return /* @__PURE__ */ (0,
|
|
7505
|
-
/* @__PURE__ */ (0,
|
|
7538
|
+
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: [
|
|
7539
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
7506
7540
|
"span",
|
|
7507
7541
|
{
|
|
7508
7542
|
className: "font-medium text-inherit text-sm",
|
|
@@ -7510,7 +7544,7 @@ var Toast = () => {
|
|
|
7510
7544
|
children: message
|
|
7511
7545
|
}
|
|
7512
7546
|
),
|
|
7513
|
-
/* @__PURE__ */ (0,
|
|
7547
|
+
/* @__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)(
|
|
7514
7548
|
"svg",
|
|
7515
7549
|
{
|
|
7516
7550
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7518,7 +7552,7 @@ var Toast = () => {
|
|
|
7518
7552
|
fill: "none",
|
|
7519
7553
|
viewBox: "0 0 24 24",
|
|
7520
7554
|
stroke: "currentColor",
|
|
7521
|
-
children: /* @__PURE__ */ (0,
|
|
7555
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
7522
7556
|
}
|
|
7523
7557
|
) })
|
|
7524
7558
|
] }) }) });
|
|
@@ -7549,7 +7583,7 @@ init_Switcher();
|
|
|
7549
7583
|
// src/components/NavigationTabsV2.tsx
|
|
7550
7584
|
var import_link3 = __toESM(require("next/link"));
|
|
7551
7585
|
var import_navigation = require("next/navigation");
|
|
7552
|
-
var
|
|
7586
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
7553
7587
|
function resolveRoutePlaceholders(route, params) {
|
|
7554
7588
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
7555
7589
|
const value = params[key];
|
|
@@ -7574,8 +7608,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
7574
7608
|
isActive: tab.isActive
|
|
7575
7609
|
})) || [];
|
|
7576
7610
|
if (mappedTabs.length === 0) return null;
|
|
7577
|
-
return /* @__PURE__ */ (0,
|
|
7578
|
-
return /* @__PURE__ */ (0,
|
|
7611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
7612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
7579
7613
|
"div",
|
|
7580
7614
|
{
|
|
7581
7615
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -7593,9 +7627,9 @@ var import_navigation2 = require("next/navigation");
|
|
|
7593
7627
|
|
|
7594
7628
|
// src/components/dataForm/NoContentView.tsx
|
|
7595
7629
|
var import_react59 = __toESM(require("react"));
|
|
7596
|
-
var
|
|
7630
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
7597
7631
|
var NoContentView = (props) => {
|
|
7598
|
-
return /* @__PURE__ */ (0,
|
|
7632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react59.default.Fragment, { children: props.isDataFound === false && props.children });
|
|
7599
7633
|
};
|
|
7600
7634
|
var NoContentView_default = NoContentView;
|
|
7601
7635
|
|
|
@@ -7604,38 +7638,38 @@ init_InputControlType();
|
|
|
7604
7638
|
|
|
7605
7639
|
// src/components/dataForm/ContentView.tsx
|
|
7606
7640
|
var import_react60 = __toESM(require("react"));
|
|
7607
|
-
var
|
|
7641
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7608
7642
|
var ContentView = (props) => {
|
|
7609
|
-
return /* @__PURE__ */ (0,
|
|
7610
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
7611
|
-
/* @__PURE__ */ (0,
|
|
7612
|
-
/* @__PURE__ */ (0,
|
|
7613
|
-
/* @__PURE__ */ (0,
|
|
7614
|
-
/* @__PURE__ */ (0,
|
|
7615
|
-
/* @__PURE__ */ (0,
|
|
7643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react60.default.Fragment, { children: [
|
|
7644
|
+
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: [
|
|
7645
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
7646
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
7647
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "ml-2", children: [
|
|
7648
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
7649
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
7616
7650
|
] })
|
|
7617
7651
|
] }),
|
|
7618
|
-
/* @__PURE__ */ (0,
|
|
7619
|
-
/* @__PURE__ */ (0,
|
|
7620
|
-
/* @__PURE__ */ (0,
|
|
7621
|
-
/* @__PURE__ */ (0,
|
|
7622
|
-
/* @__PURE__ */ (0,
|
|
7623
|
-
/* @__PURE__ */ (0,
|
|
7624
|
-
/* @__PURE__ */ (0,
|
|
7652
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
7653
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "animate-pulse", children: [
|
|
7654
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7655
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7656
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7657
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7658
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7625
7659
|
] }),
|
|
7626
|
-
/* @__PURE__ */ (0,
|
|
7627
|
-
/* @__PURE__ */ (0,
|
|
7628
|
-
/* @__PURE__ */ (0,
|
|
7629
|
-
/* @__PURE__ */ (0,
|
|
7630
|
-
/* @__PURE__ */ (0,
|
|
7631
|
-
/* @__PURE__ */ (0,
|
|
7660
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "animate-pulse", children: [
|
|
7661
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7662
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7663
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7664
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7665
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7632
7666
|
] }),
|
|
7633
|
-
/* @__PURE__ */ (0,
|
|
7634
|
-
/* @__PURE__ */ (0,
|
|
7635
|
-
/* @__PURE__ */ (0,
|
|
7636
|
-
/* @__PURE__ */ (0,
|
|
7637
|
-
/* @__PURE__ */ (0,
|
|
7638
|
-
/* @__PURE__ */ (0,
|
|
7667
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "animate-pulse", children: [
|
|
7668
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7669
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7670
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7671
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7672
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7639
7673
|
] })
|
|
7640
7674
|
] })
|
|
7641
7675
|
] }) }),
|
|
@@ -7695,7 +7729,7 @@ function FormReducer(state, action) {
|
|
|
7695
7729
|
var FormReducer_default = FormReducer;
|
|
7696
7730
|
|
|
7697
7731
|
// src/components/dataForm/DataList.tsx
|
|
7698
|
-
var
|
|
7732
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7699
7733
|
var DataList = (props) => {
|
|
7700
7734
|
const router = (0, import_navigation2.useRouter)();
|
|
7701
7735
|
let builder = new OdataBuilder(props.path);
|
|
@@ -7733,7 +7767,7 @@ var DataList = (props) => {
|
|
|
7733
7767
|
if (path.includes(".")) {
|
|
7734
7768
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
7735
7769
|
} else if (Array.isArray(obj[path])) {
|
|
7736
|
-
return obj[path].map((item, index) => /* @__PURE__ */ (0,
|
|
7770
|
+
return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: item }, index));
|
|
7737
7771
|
} else {
|
|
7738
7772
|
return obj[path];
|
|
7739
7773
|
}
|
|
@@ -7812,30 +7846,30 @@ var DataList = (props) => {
|
|
|
7812
7846
|
const renderPageNumbers = () => {
|
|
7813
7847
|
if (pages <= 10) {
|
|
7814
7848
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
7815
|
-
(page) => /* @__PURE__ */ (0,
|
|
7849
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7816
7850
|
Hyperlink,
|
|
7817
7851
|
{
|
|
7818
7852
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7819
7853
|
href: builder.getNewPageUrl(page),
|
|
7820
7854
|
children: page
|
|
7821
7855
|
}
|
|
7822
|
-
) : /* @__PURE__ */ (0,
|
|
7856
|
+
) : /* @__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)
|
|
7823
7857
|
);
|
|
7824
7858
|
} else {
|
|
7825
7859
|
const showFirstPages = activePageNumber <= 5;
|
|
7826
7860
|
const showLastPages = activePageNumber > pages - 5;
|
|
7827
7861
|
if (showFirstPages) {
|
|
7828
|
-
return /* @__PURE__ */ (0,
|
|
7829
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0,
|
|
7862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
7863
|
+
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)(
|
|
7830
7864
|
Hyperlink,
|
|
7831
7865
|
{
|
|
7832
7866
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7833
7867
|
href: builder.getNewPageUrl(page),
|
|
7834
7868
|
children: page
|
|
7835
7869
|
}
|
|
7836
|
-
) : /* @__PURE__ */ (0,
|
|
7837
|
-
/* @__PURE__ */ (0,
|
|
7838
|
-
/* @__PURE__ */ (0,
|
|
7870
|
+
) : /* @__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)),
|
|
7871
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7872
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7839
7873
|
Hyperlink,
|
|
7840
7874
|
{
|
|
7841
7875
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7843,7 +7877,7 @@ var DataList = (props) => {
|
|
|
7843
7877
|
children: pages - 1
|
|
7844
7878
|
}
|
|
7845
7879
|
),
|
|
7846
|
-
/* @__PURE__ */ (0,
|
|
7880
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7847
7881
|
Hyperlink,
|
|
7848
7882
|
{
|
|
7849
7883
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7851,7 +7885,7 @@ var DataList = (props) => {
|
|
|
7851
7885
|
children: pages
|
|
7852
7886
|
}
|
|
7853
7887
|
),
|
|
7854
|
-
/* @__PURE__ */ (0,
|
|
7888
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7855
7889
|
"select",
|
|
7856
7890
|
{
|
|
7857
7891
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -7863,18 +7897,18 @@ var DataList = (props) => {
|
|
|
7863
7897
|
}
|
|
7864
7898
|
},
|
|
7865
7899
|
children: [
|
|
7866
|
-
/* @__PURE__ */ (0,
|
|
7900
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("option", { className: "", value: "", children: "Jump to" }),
|
|
7867
7901
|
Array.from(
|
|
7868
7902
|
{ length: Math.max(0, pages - 10) },
|
|
7869
7903
|
(_, index) => index + 9
|
|
7870
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
7904
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("option", { value: page, children: page }, page))
|
|
7871
7905
|
]
|
|
7872
7906
|
}
|
|
7873
7907
|
) })
|
|
7874
7908
|
] });
|
|
7875
7909
|
} else if (showLastPages) {
|
|
7876
|
-
return /* @__PURE__ */ (0,
|
|
7877
|
-
/* @__PURE__ */ (0,
|
|
7910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
7911
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7878
7912
|
Hyperlink,
|
|
7879
7913
|
{
|
|
7880
7914
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7882,7 +7916,7 @@ var DataList = (props) => {
|
|
|
7882
7916
|
children: "1"
|
|
7883
7917
|
}
|
|
7884
7918
|
),
|
|
7885
|
-
/* @__PURE__ */ (0,
|
|
7919
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7886
7920
|
Hyperlink,
|
|
7887
7921
|
{
|
|
7888
7922
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7890,21 +7924,21 @@ var DataList = (props) => {
|
|
|
7890
7924
|
children: "2"
|
|
7891
7925
|
}
|
|
7892
7926
|
),
|
|
7893
|
-
/* @__PURE__ */ (0,
|
|
7927
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7894
7928
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
7895
|
-
(page) => /* @__PURE__ */ (0,
|
|
7929
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7896
7930
|
Hyperlink,
|
|
7897
7931
|
{
|
|
7898
7932
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7899
7933
|
href: builder.getNewPageUrl(page),
|
|
7900
7934
|
children: page
|
|
7901
7935
|
}
|
|
7902
|
-
) : /* @__PURE__ */ (0,
|
|
7936
|
+
) : /* @__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)
|
|
7903
7937
|
)
|
|
7904
7938
|
] });
|
|
7905
7939
|
} else {
|
|
7906
|
-
return /* @__PURE__ */ (0,
|
|
7907
|
-
/* @__PURE__ */ (0,
|
|
7940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
7941
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7908
7942
|
Hyperlink,
|
|
7909
7943
|
{
|
|
7910
7944
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7912,7 +7946,7 @@ var DataList = (props) => {
|
|
|
7912
7946
|
children: "1"
|
|
7913
7947
|
}
|
|
7914
7948
|
),
|
|
7915
|
-
/* @__PURE__ */ (0,
|
|
7949
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7916
7950
|
Hyperlink,
|
|
7917
7951
|
{
|
|
7918
7952
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7920,20 +7954,20 @@ var DataList = (props) => {
|
|
|
7920
7954
|
children: "2"
|
|
7921
7955
|
}
|
|
7922
7956
|
),
|
|
7923
|
-
/* @__PURE__ */ (0,
|
|
7957
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7924
7958
|
Array.from(
|
|
7925
7959
|
{ length: 5 },
|
|
7926
7960
|
(_, index) => activePageNumber - 2 + index
|
|
7927
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
7961
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7928
7962
|
Hyperlink,
|
|
7929
7963
|
{
|
|
7930
7964
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7931
7965
|
href: builder.getNewPageUrl(page),
|
|
7932
7966
|
children: page
|
|
7933
7967
|
}
|
|
7934
|
-
) : /* @__PURE__ */ (0,
|
|
7935
|
-
/* @__PURE__ */ (0,
|
|
7936
|
-
/* @__PURE__ */ (0,
|
|
7968
|
+
) : /* @__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)),
|
|
7969
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7970
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7937
7971
|
Hyperlink,
|
|
7938
7972
|
{
|
|
7939
7973
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7941,7 +7975,7 @@ var DataList = (props) => {
|
|
|
7941
7975
|
children: pages - 1
|
|
7942
7976
|
}
|
|
7943
7977
|
),
|
|
7944
|
-
/* @__PURE__ */ (0,
|
|
7978
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7945
7979
|
Hyperlink,
|
|
7946
7980
|
{
|
|
7947
7981
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7949,7 +7983,7 @@ var DataList = (props) => {
|
|
|
7949
7983
|
children: pages
|
|
7950
7984
|
}
|
|
7951
7985
|
),
|
|
7952
|
-
/* @__PURE__ */ (0,
|
|
7986
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7953
7987
|
"select",
|
|
7954
7988
|
{
|
|
7955
7989
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -7961,8 +7995,8 @@ var DataList = (props) => {
|
|
|
7961
7995
|
}
|
|
7962
7996
|
},
|
|
7963
7997
|
children: [
|
|
7964
|
-
/* @__PURE__ */ (0,
|
|
7965
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0,
|
|
7998
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("option", { value: "", children: "Jump to" }),
|
|
7999
|
+
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))
|
|
7966
8000
|
]
|
|
7967
8001
|
}
|
|
7968
8002
|
) })
|
|
@@ -7970,16 +8004,16 @@ var DataList = (props) => {
|
|
|
7970
8004
|
}
|
|
7971
8005
|
}
|
|
7972
8006
|
};
|
|
7973
|
-
return /* @__PURE__ */ (0,
|
|
7974
|
-
/* @__PURE__ */ (0,
|
|
7975
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
8007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_react61.default.Fragment, { children: [
|
|
8008
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(ContentView_default, { isDataFound, children: [
|
|
8009
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7976
8010
|
"div",
|
|
7977
8011
|
{
|
|
7978
8012
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
7979
8013
|
children: [
|
|
7980
|
-
props.title ? /* @__PURE__ */ (0,
|
|
7981
|
-
/* @__PURE__ */ (0,
|
|
7982
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
8014
|
+
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", {}),
|
|
8015
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
8016
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7983
8017
|
InputControl_default,
|
|
7984
8018
|
{
|
|
7985
8019
|
name: "Search_input",
|
|
@@ -7991,7 +8025,7 @@ var DataList = (props) => {
|
|
|
7991
8025
|
}
|
|
7992
8026
|
}
|
|
7993
8027
|
),
|
|
7994
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
8028
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7995
8029
|
InputControl_default,
|
|
7996
8030
|
{
|
|
7997
8031
|
name: filter.name,
|
|
@@ -8006,15 +8040,15 @@ var DataList = (props) => {
|
|
|
8006
8040
|
},
|
|
8007
8041
|
filter.name
|
|
8008
8042
|
)),
|
|
8009
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
8043
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8010
8044
|
Hyperlink,
|
|
8011
8045
|
{
|
|
8012
8046
|
className: "gap-1",
|
|
8013
8047
|
linkType: "Primary" /* Solid */,
|
|
8014
8048
|
href: props.addLinkHref,
|
|
8015
8049
|
children: [
|
|
8016
|
-
/* @__PURE__ */ (0,
|
|
8017
|
-
/* @__PURE__ */ (0,
|
|
8050
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
8051
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
8018
8052
|
]
|
|
8019
8053
|
}
|
|
8020
8054
|
)
|
|
@@ -8022,8 +8056,8 @@ var DataList = (props) => {
|
|
|
8022
8056
|
]
|
|
8023
8057
|
}
|
|
8024
8058
|
),
|
|
8025
|
-
/* @__PURE__ */ (0,
|
|
8026
|
-
/* @__PURE__ */ (0,
|
|
8059
|
+
/* @__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: [
|
|
8060
|
+
/* @__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) => {
|
|
8027
8061
|
let url = builder.getNewOrderByUrl(column.name);
|
|
8028
8062
|
let icon = "chevronUpDown";
|
|
8029
8063
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -8033,18 +8067,18 @@ var DataList = (props) => {
|
|
|
8033
8067
|
icon = "chevronUp";
|
|
8034
8068
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
8035
8069
|
}
|
|
8036
|
-
return /* @__PURE__ */ (0,
|
|
8070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8037
8071
|
"th",
|
|
8038
8072
|
{
|
|
8039
8073
|
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" : ""),
|
|
8040
|
-
children: /* @__PURE__ */ (0,
|
|
8074
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8041
8075
|
Hyperlink,
|
|
8042
8076
|
{
|
|
8043
8077
|
href: column.enableSorting ? url : void 0,
|
|
8044
8078
|
className: "!text-neutral-contrast ",
|
|
8045
|
-
children: /* @__PURE__ */ (0,
|
|
8046
|
-
/* @__PURE__ */ (0,
|
|
8047
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
8079
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
8080
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-black", children: column.label }),
|
|
8081
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
8048
8082
|
] })
|
|
8049
8083
|
}
|
|
8050
8084
|
)
|
|
@@ -8052,24 +8086,24 @@ var DataList = (props) => {
|
|
|
8052
8086
|
column.name
|
|
8053
8087
|
);
|
|
8054
8088
|
}) }) }),
|
|
8055
|
-
/* @__PURE__ */ (0,
|
|
8089
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
8056
8090
|
let validityClass = "";
|
|
8057
8091
|
console.log("dataitem", dataitem);
|
|
8058
8092
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
8059
8093
|
validityClass = "bg-alert-200";
|
|
8060
8094
|
}
|
|
8061
|
-
return /* @__PURE__ */ (0,
|
|
8095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
8062
8096
|
console.log("column", column);
|
|
8063
|
-
return /* @__PURE__ */ (0,
|
|
8097
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8064
8098
|
"td",
|
|
8065
8099
|
{
|
|
8066
8100
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
8067
|
-
children: column.addhref === true ? /* @__PURE__ */ (0,
|
|
8101
|
+
children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8068
8102
|
Hyperlink,
|
|
8069
8103
|
{
|
|
8070
8104
|
className: "",
|
|
8071
8105
|
href: `https://${dataitem[column.name]}`,
|
|
8072
|
-
children: /* @__PURE__ */ (0,
|
|
8106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8073
8107
|
ViewControl_default,
|
|
8074
8108
|
{
|
|
8075
8109
|
controlType: column.controlType,
|
|
@@ -8082,11 +8116,11 @@ var DataList = (props) => {
|
|
|
8082
8116
|
}
|
|
8083
8117
|
)
|
|
8084
8118
|
}
|
|
8085
|
-
) : column.showAsLink ? /* @__PURE__ */ (0,
|
|
8119
|
+
) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8086
8120
|
Hyperlink,
|
|
8087
8121
|
{
|
|
8088
8122
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
8089
|
-
children: /* @__PURE__ */ (0,
|
|
8123
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8090
8124
|
ViewControl_default,
|
|
8091
8125
|
{
|
|
8092
8126
|
controlType: column.controlType,
|
|
@@ -8096,7 +8130,7 @@ var DataList = (props) => {
|
|
|
8096
8130
|
}
|
|
8097
8131
|
)
|
|
8098
8132
|
}
|
|
8099
|
-
) : /* @__PURE__ */ (0,
|
|
8133
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8100
8134
|
ViewControl_default,
|
|
8101
8135
|
{
|
|
8102
8136
|
controlType: column.controlType,
|
|
@@ -8110,10 +8144,10 @@ var DataList = (props) => {
|
|
|
8110
8144
|
}) }, index);
|
|
8111
8145
|
}) })
|
|
8112
8146
|
] }) }),
|
|
8113
|
-
/* @__PURE__ */ (0,
|
|
8114
|
-
/* @__PURE__ */ (0,
|
|
8115
|
-
/* @__PURE__ */ (0,
|
|
8116
|
-
activePageNumber > 1 && /* @__PURE__ */ (0,
|
|
8147
|
+
/* @__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: [
|
|
8148
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "text-gray-700", children: label }),
|
|
8149
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex space-x-2 items-center", children: [
|
|
8150
|
+
activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8117
8151
|
Hyperlink,
|
|
8118
8152
|
{
|
|
8119
8153
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -8121,9 +8155,9 @@ var DataList = (props) => {
|
|
|
8121
8155
|
children: "Prev"
|
|
8122
8156
|
}
|
|
8123
8157
|
),
|
|
8124
|
-
activePageNumber <= 1 && /* @__PURE__ */ (0,
|
|
8158
|
+
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" }),
|
|
8125
8159
|
renderPageNumbers(),
|
|
8126
|
-
activePageNumber < pages && /* @__PURE__ */ (0,
|
|
8160
|
+
activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8127
8161
|
Hyperlink,
|
|
8128
8162
|
{
|
|
8129
8163
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -8131,19 +8165,19 @@ var DataList = (props) => {
|
|
|
8131
8165
|
children: "Next"
|
|
8132
8166
|
}
|
|
8133
8167
|
),
|
|
8134
|
-
activePageNumber >= pages && /* @__PURE__ */ (0,
|
|
8168
|
+
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" })
|
|
8135
8169
|
] })
|
|
8136
8170
|
] }) })
|
|
8137
8171
|
] }),
|
|
8138
|
-
/* @__PURE__ */ (0,
|
|
8139
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
8172
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(NoContentView_default, { isDataFound, children: [
|
|
8173
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8140
8174
|
"div",
|
|
8141
8175
|
{
|
|
8142
8176
|
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`,
|
|
8143
8177
|
children: [
|
|
8144
|
-
props.title ? /* @__PURE__ */ (0,
|
|
8145
|
-
/* @__PURE__ */ (0,
|
|
8146
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
8178
|
+
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", {}),
|
|
8179
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
8180
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8147
8181
|
InputControl_default,
|
|
8148
8182
|
{
|
|
8149
8183
|
name: "Search_input",
|
|
@@ -8155,7 +8189,7 @@ var DataList = (props) => {
|
|
|
8155
8189
|
}
|
|
8156
8190
|
}
|
|
8157
8191
|
),
|
|
8158
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
8192
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8159
8193
|
InputControl_default,
|
|
8160
8194
|
{
|
|
8161
8195
|
name: filter.name,
|
|
@@ -8170,15 +8204,15 @@ var DataList = (props) => {
|
|
|
8170
8204
|
},
|
|
8171
8205
|
filter.name
|
|
8172
8206
|
)),
|
|
8173
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
8207
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8174
8208
|
Hyperlink,
|
|
8175
8209
|
{
|
|
8176
8210
|
className: "gap-1",
|
|
8177
8211
|
linkType: "Primary" /* Solid */,
|
|
8178
8212
|
href: props.addLinkHref,
|
|
8179
8213
|
children: [
|
|
8180
|
-
/* @__PURE__ */ (0,
|
|
8181
|
-
/* @__PURE__ */ (0,
|
|
8214
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
8215
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
8182
8216
|
]
|
|
8183
8217
|
}
|
|
8184
8218
|
)
|
|
@@ -8186,8 +8220,8 @@ var DataList = (props) => {
|
|
|
8186
8220
|
]
|
|
8187
8221
|
}
|
|
8188
8222
|
),
|
|
8189
|
-
/* @__PURE__ */ (0,
|
|
8190
|
-
/* @__PURE__ */ (0,
|
|
8223
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
8224
|
+
/* @__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) => {
|
|
8191
8225
|
let url = builder.getNewOrderByUrl(column.name);
|
|
8192
8226
|
let icon = "chevronUpDown";
|
|
8193
8227
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -8197,18 +8231,18 @@ var DataList = (props) => {
|
|
|
8197
8231
|
icon = "chevronUp";
|
|
8198
8232
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
8199
8233
|
}
|
|
8200
|
-
return /* @__PURE__ */ (0,
|
|
8234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8201
8235
|
"th",
|
|
8202
8236
|
{
|
|
8203
8237
|
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" : ""),
|
|
8204
|
-
children: /* @__PURE__ */ (0,
|
|
8238
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8205
8239
|
Hyperlink,
|
|
8206
8240
|
{
|
|
8207
8241
|
href: column.enableSorting ? url : void 0,
|
|
8208
8242
|
className: "text-body-950",
|
|
8209
|
-
children: /* @__PURE__ */ (0,
|
|
8210
|
-
/* @__PURE__ */ (0,
|
|
8211
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
8243
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
8244
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { children: column.label }),
|
|
8245
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
8212
8246
|
] })
|
|
8213
8247
|
}
|
|
8214
8248
|
)
|
|
@@ -8216,7 +8250,7 @@ var DataList = (props) => {
|
|
|
8216
8250
|
column.name
|
|
8217
8251
|
);
|
|
8218
8252
|
}) }) }) }) }),
|
|
8219
|
-
/* @__PURE__ */ (0,
|
|
8253
|
+
/* @__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." })
|
|
8220
8254
|
] })
|
|
8221
8255
|
] })
|
|
8222
8256
|
] });
|
|
@@ -8229,7 +8263,7 @@ init_ServiceClient();
|
|
|
8229
8263
|
init_OdataBuilder();
|
|
8230
8264
|
init_SelectWithSearchInput();
|
|
8231
8265
|
var import_navigation3 = require("next/navigation");
|
|
8232
|
-
var
|
|
8266
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
8233
8267
|
var viewControlMap = {
|
|
8234
8268
|
number: ViewControlTypes.number,
|
|
8235
8269
|
lineText: ViewControlTypes.lineText,
|
|
@@ -8324,13 +8358,13 @@ var DataListRenderer = ({
|
|
|
8324
8358
|
isActive: landingPageUrl === pathname
|
|
8325
8359
|
};
|
|
8326
8360
|
});
|
|
8327
|
-
return /* @__PURE__ */ (0,
|
|
8361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_react62.default.Fragment, { children: [
|
|
8328
8362
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
8329
8363
|
// tabs={resolvedTabs}
|
|
8330
8364
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
8331
8365
|
// />
|
|
8332
|
-
/* @__PURE__ */ (0,
|
|
8333
|
-
/* @__PURE__ */ (0,
|
|
8366
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
8367
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8334
8368
|
DataList_default,
|
|
8335
8369
|
{
|
|
8336
8370
|
addLinkHref,
|
|
@@ -8385,7 +8419,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
8385
8419
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
8386
8420
|
|
|
8387
8421
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
8388
|
-
var
|
|
8422
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
8389
8423
|
var DataFormChildSection = (props) => {
|
|
8390
8424
|
const { section } = props;
|
|
8391
8425
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -8453,14 +8487,14 @@ var DataFormChildSection = (props) => {
|
|
|
8453
8487
|
childItemsToRender,
|
|
8454
8488
|
allChildItems: childItems
|
|
8455
8489
|
});
|
|
8456
|
-
return /* @__PURE__ */ (0,
|
|
8457
|
-
section.sectionTitle && /* @__PURE__ */ (0,
|
|
8458
|
-
/* @__PURE__ */ (0,
|
|
8459
|
-
/* @__PURE__ */ (0,
|
|
8460
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0,
|
|
8461
|
-
return /* @__PURE__ */ (0,
|
|
8490
|
+
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: [
|
|
8491
|
+
section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
8492
|
+
/* @__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: [
|
|
8493
|
+
/* @__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: [
|
|
8494
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
8495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("tr", { className: "", children: [
|
|
8462
8496
|
sectionRow.elements.map((field, index) => {
|
|
8463
|
-
return /* @__PURE__ */ (0,
|
|
8497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8464
8498
|
"th",
|
|
8465
8499
|
{
|
|
8466
8500
|
className: "py-3 font-normal text-left",
|
|
@@ -8469,21 +8503,21 @@ var DataFormChildSection = (props) => {
|
|
|
8469
8503
|
field.name
|
|
8470
8504
|
);
|
|
8471
8505
|
}),
|
|
8472
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8506
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
8473
8507
|
] }, sectionRowIndex);
|
|
8474
8508
|
}) }),
|
|
8475
|
-
/* @__PURE__ */ (0,
|
|
8509
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
8476
8510
|
const { item, originalIndex } = visibleItem;
|
|
8477
8511
|
const rowKey = originalIndex;
|
|
8478
|
-
return /* @__PURE__ */ (0,
|
|
8512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react63.default.Fragment, { children: section.sectionRows.map(
|
|
8479
8513
|
(sectionRow, sectionRowIndex) => {
|
|
8480
|
-
return /* @__PURE__ */ (0,
|
|
8514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
8481
8515
|
"tr",
|
|
8482
8516
|
{
|
|
8483
8517
|
className: "",
|
|
8484
8518
|
children: [
|
|
8485
8519
|
sectionRow.elements.map((field, index) => {
|
|
8486
|
-
return /* @__PURE__ */ (0,
|
|
8520
|
+
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)(
|
|
8487
8521
|
InputControl_default,
|
|
8488
8522
|
{
|
|
8489
8523
|
index: filteredIndex,
|
|
@@ -8503,7 +8537,7 @@ var DataFormChildSection = (props) => {
|
|
|
8503
8537
|
}
|
|
8504
8538
|
) }) }) }, field.name);
|
|
8505
8539
|
}),
|
|
8506
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8540
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8507
8541
|
ClientButton_default,
|
|
8508
8542
|
{
|
|
8509
8543
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -8512,7 +8546,7 @@ var DataFormChildSection = (props) => {
|
|
|
8512
8546
|
},
|
|
8513
8547
|
dataRole: "delete",
|
|
8514
8548
|
tabIndex: -1,
|
|
8515
|
-
children: /* @__PURE__ */ (0,
|
|
8549
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8516
8550
|
Icon_default,
|
|
8517
8551
|
{
|
|
8518
8552
|
className: "w-4 h-4",
|
|
@@ -8529,7 +8563,7 @@ var DataFormChildSection = (props) => {
|
|
|
8529
8563
|
) }, rowKey);
|
|
8530
8564
|
}) })
|
|
8531
8565
|
] }) }),
|
|
8532
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8566
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8533
8567
|
ClientButton_default,
|
|
8534
8568
|
{
|
|
8535
8569
|
ButtonType: "Link" /* Link */,
|
|
@@ -8544,7 +8578,7 @@ var DataFormChildSection = (props) => {
|
|
|
8544
8578
|
var DataFormChildSection_default = DataFormChildSection;
|
|
8545
8579
|
|
|
8546
8580
|
// src/components/dataForm/DataForm.tsx
|
|
8547
|
-
var
|
|
8581
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
8548
8582
|
var DataForm = (props) => {
|
|
8549
8583
|
const formRef = (0, import_react64.useRef)(null);
|
|
8550
8584
|
console.log(props.dataItem, "dssads");
|
|
@@ -8764,19 +8798,19 @@ var DataForm = (props) => {
|
|
|
8764
8798
|
return false;
|
|
8765
8799
|
}
|
|
8766
8800
|
}
|
|
8767
|
-
return /* @__PURE__ */ (0,
|
|
8768
|
-
props.title && /* @__PURE__ */ (0,
|
|
8801
|
+
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: [
|
|
8802
|
+
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)(
|
|
8769
8803
|
"div",
|
|
8770
8804
|
{
|
|
8771
8805
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
8772
8806
|
onClick: () => window.history.back(),
|
|
8773
8807
|
children: [
|
|
8774
|
-
/* @__PURE__ */ (0,
|
|
8775
|
-
/* @__PURE__ */ (0,
|
|
8808
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
8809
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
8776
8810
|
]
|
|
8777
8811
|
}
|
|
8778
8812
|
) }),
|
|
8779
|
-
/* @__PURE__ */ (0,
|
|
8813
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8780
8814
|
"form",
|
|
8781
8815
|
{
|
|
8782
8816
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -8797,8 +8831,8 @@ var DataForm = (props) => {
|
|
|
8797
8831
|
}
|
|
8798
8832
|
}
|
|
8799
8833
|
},
|
|
8800
|
-
children: /* @__PURE__ */ (0,
|
|
8801
|
-
return /* @__PURE__ */ (0,
|
|
8834
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
8835
|
+
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: [
|
|
8802
8836
|
section.sectionRows?.map(
|
|
8803
8837
|
(sectionRow, sectionRowIndex) => {
|
|
8804
8838
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -8809,14 +8843,14 @@ var DataForm = (props) => {
|
|
|
8809
8843
|
sectionRow.visible
|
|
8810
8844
|
);
|
|
8811
8845
|
}
|
|
8812
|
-
return /* @__PURE__ */ (0,
|
|
8813
|
-
return /* @__PURE__ */ (0,
|
|
8846
|
+
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) => {
|
|
8847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
8814
8848
|
"div",
|
|
8815
8849
|
{
|
|
8816
8850
|
className: sectionRow.grow ? "grow" : "",
|
|
8817
8851
|
children: [
|
|
8818
|
-
/* @__PURE__ */ (0,
|
|
8819
|
-
/* @__PURE__ */ (0,
|
|
8852
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: field.controlType }),
|
|
8853
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8820
8854
|
InputControl_default,
|
|
8821
8855
|
{
|
|
8822
8856
|
name: field.name,
|
|
@@ -8846,12 +8880,12 @@ var DataForm = (props) => {
|
|
|
8846
8880
|
}) }) }, sectionRowIndex);
|
|
8847
8881
|
}
|
|
8848
8882
|
),
|
|
8849
|
-
/* @__PURE__ */ (0,
|
|
8883
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: section.childSections?.map(
|
|
8850
8884
|
(childSection, childSectionIndex) => {
|
|
8851
|
-
return /* @__PURE__ */ (0,
|
|
8885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: childSection.name && evalutateCondition(
|
|
8852
8886
|
formState.inputValues,
|
|
8853
8887
|
childSection.visible
|
|
8854
|
-
) && /* @__PURE__ */ (0,
|
|
8888
|
+
) && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8855
8889
|
DataFormChildSection_default,
|
|
8856
8890
|
{
|
|
8857
8891
|
section: childSection,
|
|
@@ -8866,8 +8900,8 @@ var DataForm = (props) => {
|
|
|
8866
8900
|
}) })
|
|
8867
8901
|
}
|
|
8868
8902
|
),
|
|
8869
|
-
/* @__PURE__ */ (0,
|
|
8870
|
-
/* @__PURE__ */ (0,
|
|
8903
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
8904
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8871
8905
|
Button_default,
|
|
8872
8906
|
{
|
|
8873
8907
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -8875,7 +8909,7 @@ var DataForm = (props) => {
|
|
|
8875
8909
|
children: props.additionalActions.title
|
|
8876
8910
|
}
|
|
8877
8911
|
) }),
|
|
8878
|
-
/* @__PURE__ */ (0,
|
|
8912
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8879
8913
|
Button_default,
|
|
8880
8914
|
{
|
|
8881
8915
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -8886,7 +8920,7 @@ var DataForm = (props) => {
|
|
|
8886
8920
|
children: "Delete"
|
|
8887
8921
|
}
|
|
8888
8922
|
) }),
|
|
8889
|
-
/* @__PURE__ */ (0,
|
|
8923
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8890
8924
|
Button_default,
|
|
8891
8925
|
{
|
|
8892
8926
|
onValidate,
|
|
@@ -8904,7 +8938,7 @@ var DataForm_default = DataForm;
|
|
|
8904
8938
|
|
|
8905
8939
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
8906
8940
|
init_ServiceClient();
|
|
8907
|
-
var
|
|
8941
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
8908
8942
|
function getAction(actions, code) {
|
|
8909
8943
|
return actions?.find((a) => a.actionCode === code);
|
|
8910
8944
|
}
|
|
@@ -8930,9 +8964,9 @@ var DataFormRenderer = ({
|
|
|
8930
8964
|
"Delete"
|
|
8931
8965
|
);
|
|
8932
8966
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
8933
|
-
return /* @__PURE__ */ (0,
|
|
8934
|
-
widgetProps && /* @__PURE__ */ (0,
|
|
8935
|
-
/* @__PURE__ */ (0,
|
|
8967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
8968
|
+
widgetProps && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
8969
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
8936
8970
|
DataForm_default,
|
|
8937
8971
|
{
|
|
8938
8972
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|