@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260903053106 → 0.8.1-dev.20260903094942
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/AvatarViewClient-4GOKYZYT.mjs +108 -0
- package/dist/AvatarViewClient-S3GJZZZS.mjs +106 -0
- package/dist/{DataBindingControls-GWNAJ7PR.mjs → DataBindingControls-UUDERFAD.mjs} +1 -1
- package/dist/{chunk-Q3LFGHLM.mjs → chunk-7JWVEYJY.mjs} +1 -1
- package/dist/index.js +380 -314
- package/dist/index.mjs +306 -351
- package/dist/server.js +293 -227
- package/dist/server.mjs +136 -181
- package/package.json +1 -1
- package/dist/{InputControlClient-GRH7VSJR.mjs → InputControlClient-5NX4CEZB.mjs} +5 -5
- package/dist/{Pagination-PGAK7KDA.mjs → Pagination-CQKMBXXJ.mjs} +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
ServiceClient_default
|
|
5
|
+
} from "./chunk-TKDSRAM6.mjs";
|
|
3
6
|
import {
|
|
4
7
|
OdataBuilder
|
|
5
8
|
} from "./chunk-RG3CISAA.mjs";
|
|
6
9
|
import {
|
|
7
10
|
InputControl_default
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7JWVEYJY.mjs";
|
|
9
12
|
import "./chunk-JDX47MFV.mjs";
|
|
10
13
|
import {
|
|
11
14
|
CheckboxInput_default,
|
|
@@ -25,10 +28,16 @@ import {
|
|
|
25
28
|
Select_default,
|
|
26
29
|
TimeInput_default
|
|
27
30
|
} from "./chunk-5VGTT4A5.mjs";
|
|
31
|
+
import {
|
|
32
|
+
Button_default,
|
|
33
|
+
ClientButton_default,
|
|
34
|
+
ToastService_default
|
|
35
|
+
} from "./chunk-23WJE3YB.mjs";
|
|
28
36
|
import {
|
|
29
37
|
Hyperlink,
|
|
30
38
|
Icon_default
|
|
31
39
|
} from "./chunk-GCG4OYDJ.mjs";
|
|
40
|
+
import "./chunk-IMNQO57B.mjs";
|
|
32
41
|
import {
|
|
33
42
|
Constants,
|
|
34
43
|
InputControlType_default
|
|
@@ -36,15 +45,6 @@ import {
|
|
|
36
45
|
import {
|
|
37
46
|
AssetUtility_default
|
|
38
47
|
} from "./chunk-UPCAOGEY.mjs";
|
|
39
|
-
import {
|
|
40
|
-
ServiceClient_default
|
|
41
|
-
} from "./chunk-TKDSRAM6.mjs";
|
|
42
|
-
import {
|
|
43
|
-
Button_default,
|
|
44
|
-
ClientButton_default,
|
|
45
|
-
ToastService_default
|
|
46
|
-
} from "./chunk-23WJE3YB.mjs";
|
|
47
|
-
import "./chunk-IMNQO57B.mjs";
|
|
48
48
|
|
|
49
49
|
// src/components/controls/view/ViewControl.tsx
|
|
50
50
|
import React14 from "react";
|
|
@@ -416,60 +416,14 @@ var CommentRenderer = dynamic5(() => import("./CommentRendererClient-52UOUQAD.mj
|
|
|
416
416
|
var Commentrenderer_default = CommentRenderer;
|
|
417
417
|
|
|
418
418
|
// src/components/controls/view/AvatarView.tsx
|
|
419
|
-
import
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
"bg-warning-base",
|
|
424
|
-
"bg-success-base",
|
|
425
|
-
"bg-info-base",
|
|
426
|
-
"bg-primary-base",
|
|
427
|
-
"bg-secondary-base"
|
|
428
|
-
];
|
|
429
|
-
var getAvatarColor = (text) => {
|
|
430
|
-
let hash = 0;
|
|
431
|
-
for (let i = 0; i < text.length; i += 1) {
|
|
432
|
-
hash = hash * 31 + text.charCodeAt(i) >>> 0;
|
|
433
|
-
}
|
|
434
|
-
return AVATAR_COLORS[hash % AVATAR_COLORS.length];
|
|
435
|
-
};
|
|
436
|
-
var getInitials = (text) => {
|
|
437
|
-
const words = text.trim().split(/\s+/).filter(Boolean);
|
|
438
|
-
if (words.length === 0) {
|
|
439
|
-
return "?";
|
|
440
|
-
}
|
|
441
|
-
if (words.length === 1) {
|
|
442
|
-
return words[0].slice(0, 2).toUpperCase();
|
|
443
|
-
}
|
|
444
|
-
return `${words[0][0]}${words[words.length - 1][0]}`.toUpperCase();
|
|
445
|
-
};
|
|
446
|
-
var AvatarView = (props) => {
|
|
447
|
-
const text = props.value === null || props.value === void 0 ? "" : String(props.value).trim();
|
|
448
|
-
if (!text) {
|
|
449
|
-
return null;
|
|
450
|
-
}
|
|
451
|
-
const size = props.width ?? "1.75rem";
|
|
452
|
-
return /* @__PURE__ */ jsx15(
|
|
453
|
-
"span",
|
|
454
|
-
{
|
|
455
|
-
className: `avatar-view inline-flex flex-shrink-0 items-center justify-center rounded-full font-semibold uppercase select-none overflow-hidden ${getAvatarColor(text)}`,
|
|
456
|
-
title: text,
|
|
457
|
-
"aria-label": text,
|
|
458
|
-
style: {
|
|
459
|
-
width: size,
|
|
460
|
-
height: size,
|
|
461
|
-
fontSize: "0.6875rem",
|
|
462
|
-
letterSpacing: "0.02em",
|
|
463
|
-
lineHeight: 1
|
|
464
|
-
},
|
|
465
|
-
children: getInitials(text)
|
|
466
|
-
}
|
|
467
|
-
);
|
|
468
|
-
};
|
|
419
|
+
import dynamic6 from "next/dynamic";
|
|
420
|
+
var AvatarView = dynamic6(() => import("./AvatarViewClient-4GOKYZYT.mjs"), {
|
|
421
|
+
ssr: false
|
|
422
|
+
});
|
|
469
423
|
var AvatarView_default = AvatarView;
|
|
470
424
|
|
|
471
425
|
// src/components/controls/view/ViewControl.tsx
|
|
472
|
-
import { jsx as
|
|
426
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
473
427
|
var ViewControl = (props) => {
|
|
474
428
|
const ControlComponents = {
|
|
475
429
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -501,7 +455,7 @@ var ViewControl = (props) => {
|
|
|
501
455
|
[ViewControlTypes_default.avatar]: AvatarView_default
|
|
502
456
|
};
|
|
503
457
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
504
|
-
return /* @__PURE__ */
|
|
458
|
+
return /* @__PURE__ */ jsx15(React14.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx15(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
505
459
|
};
|
|
506
460
|
var ViewControl_default = ViewControl;
|
|
507
461
|
|
|
@@ -512,7 +466,7 @@ import React24 from "react";
|
|
|
512
466
|
import React16 from "react";
|
|
513
467
|
|
|
514
468
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
515
|
-
import { jsx as
|
|
469
|
+
import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
516
470
|
var TextNode = (props) => {
|
|
517
471
|
function cssStringToJson(cssString) {
|
|
518
472
|
const styleObject = {};
|
|
@@ -569,24 +523,24 @@ var TextNode = (props) => {
|
|
|
569
523
|
function renderWithLineBreaks(text) {
|
|
570
524
|
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs6("span", { children: [
|
|
571
525
|
line,
|
|
572
|
-
index < arr.length - 1 && /* @__PURE__ */
|
|
526
|
+
index < arr.length - 1 && /* @__PURE__ */ jsx16("br", {})
|
|
573
527
|
] }, index));
|
|
574
528
|
}
|
|
575
529
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
576
530
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
577
531
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
578
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */
|
|
532
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx16("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx16("sub", { children: content }) : content;
|
|
579
533
|
return (
|
|
580
534
|
// @ts-expect-error custom code
|
|
581
|
-
/* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ jsx16("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
582
536
|
);
|
|
583
537
|
};
|
|
584
538
|
var TextNode_default = TextNode;
|
|
585
539
|
|
|
586
540
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
587
|
-
import { jsx as
|
|
541
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
588
542
|
var LineBreakNode = () => {
|
|
589
|
-
return /* @__PURE__ */
|
|
543
|
+
return /* @__PURE__ */ jsx17("div", { className: "py-0.5 lg:py-1.5" });
|
|
590
544
|
};
|
|
591
545
|
var LineBreakNode_default = LineBreakNode;
|
|
592
546
|
|
|
@@ -594,9 +548,9 @@ var LineBreakNode_default = LineBreakNode;
|
|
|
594
548
|
import React15 from "react";
|
|
595
549
|
|
|
596
550
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
597
|
-
import
|
|
598
|
-
import { jsx as
|
|
599
|
-
var HlsPlayer2 =
|
|
551
|
+
import dynamic7 from "next/dynamic";
|
|
552
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
553
|
+
var HlsPlayer2 = dynamic7(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
600
554
|
var getNestedValue = (obj, path) => {
|
|
601
555
|
if (!obj || !path) return void 0;
|
|
602
556
|
return path.split(".").reduce((current, key) => {
|
|
@@ -628,7 +582,7 @@ var ImageNode = (props) => {
|
|
|
628
582
|
assets = [image];
|
|
629
583
|
}
|
|
630
584
|
if (assets && assets.length > 0) {
|
|
631
|
-
return /* @__PURE__ */
|
|
585
|
+
return /* @__PURE__ */ jsx18(
|
|
632
586
|
DeviceAssetSelector_default,
|
|
633
587
|
{
|
|
634
588
|
device: props.device,
|
|
@@ -669,7 +623,7 @@ var ImageNode = (props) => {
|
|
|
669
623
|
right: "justify-end"
|
|
670
624
|
};
|
|
671
625
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
672
|
-
const renderMedia = () => isHls ? /* @__PURE__ */
|
|
626
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ jsx18(
|
|
673
627
|
HlsPlayer2,
|
|
674
628
|
{
|
|
675
629
|
assetUrl: imageUrl,
|
|
@@ -682,7 +636,7 @@ var ImageNode = (props) => {
|
|
|
682
636
|
apiBaseUrl: props.apiBaseUrl,
|
|
683
637
|
session: props.session
|
|
684
638
|
}
|
|
685
|
-
) : /* @__PURE__ */
|
|
639
|
+
) : /* @__PURE__ */ jsx18(
|
|
686
640
|
"img",
|
|
687
641
|
{
|
|
688
642
|
style: styles,
|
|
@@ -695,16 +649,16 @@ var ImageNode = (props) => {
|
|
|
695
649
|
}
|
|
696
650
|
);
|
|
697
651
|
if (props.node.width) {
|
|
698
|
-
return /* @__PURE__ */
|
|
652
|
+
return /* @__PURE__ */ jsx18("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
699
653
|
}
|
|
700
654
|
return renderMedia();
|
|
701
655
|
};
|
|
702
656
|
var ImageNode_default = ImageNode;
|
|
703
657
|
|
|
704
658
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
705
|
-
import
|
|
706
|
-
import { Fragment, jsx as
|
|
707
|
-
var LinkNodeButton =
|
|
659
|
+
import dynamic8 from "next/dynamic";
|
|
660
|
+
import { Fragment, jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
661
|
+
var LinkNodeButton = dynamic8(() => import("./LinkNodeButton-X75YEE2O.mjs"), {
|
|
708
662
|
ssr: false
|
|
709
663
|
});
|
|
710
664
|
function getNestedValue2(obj, path) {
|
|
@@ -756,13 +710,13 @@ var LinkNode = (props) => {
|
|
|
756
710
|
const isButton = node.isButton === true;
|
|
757
711
|
const renderChildren = () => {
|
|
758
712
|
if (!node.children || node.children.length === 0) return null;
|
|
759
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ jsx19(Fragment, { children: node.children.map((childNode, index) => {
|
|
760
714
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
761
715
|
if (!SelectedNode) {
|
|
762
716
|
console.warn("Unknown node type:", childNode.type);
|
|
763
717
|
return null;
|
|
764
718
|
}
|
|
765
|
-
return /* @__PURE__ */
|
|
719
|
+
return /* @__PURE__ */ jsx19(React15.Fragment, { children: /* @__PURE__ */ jsx19(
|
|
766
720
|
SelectedNode,
|
|
767
721
|
{
|
|
768
722
|
node: childNode,
|
|
@@ -775,10 +729,10 @@ var LinkNode = (props) => {
|
|
|
775
729
|
};
|
|
776
730
|
const renderFallback = () => {
|
|
777
731
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
778
|
-
return /* @__PURE__ */
|
|
732
|
+
return /* @__PURE__ */ jsx19("span", { children: linkText });
|
|
779
733
|
}
|
|
780
734
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
781
|
-
return /* @__PURE__ */
|
|
735
|
+
return /* @__PURE__ */ jsx19("br", {});
|
|
782
736
|
}
|
|
783
737
|
return null;
|
|
784
738
|
};
|
|
@@ -817,10 +771,10 @@ var LinkNode = (props) => {
|
|
|
817
771
|
var LinkNode_default = LinkNode;
|
|
818
772
|
|
|
819
773
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
820
|
-
import { jsx as
|
|
774
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
821
775
|
var SVGIconNode = ({ node }) => {
|
|
822
776
|
if (!node?.svgCode) return null;
|
|
823
|
-
return /* @__PURE__ */
|
|
777
|
+
return /* @__PURE__ */ jsx20(
|
|
824
778
|
"span",
|
|
825
779
|
{
|
|
826
780
|
style: {
|
|
@@ -837,7 +791,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
837
791
|
|
|
838
792
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
839
793
|
import katex from "katex";
|
|
840
|
-
import { jsx as
|
|
794
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
841
795
|
var EquationNode = ({ node }) => {
|
|
842
796
|
const { equation, inline } = node;
|
|
843
797
|
let html = "";
|
|
@@ -852,7 +806,7 @@ var EquationNode = ({ node }) => {
|
|
|
852
806
|
});
|
|
853
807
|
}
|
|
854
808
|
if (inline) {
|
|
855
|
-
return /* @__PURE__ */
|
|
809
|
+
return /* @__PURE__ */ jsx21(
|
|
856
810
|
"span",
|
|
857
811
|
{
|
|
858
812
|
className: "katex-inline",
|
|
@@ -860,7 +814,7 @@ var EquationNode = ({ node }) => {
|
|
|
860
814
|
}
|
|
861
815
|
);
|
|
862
816
|
}
|
|
863
|
-
return /* @__PURE__ */
|
|
817
|
+
return /* @__PURE__ */ jsx21(
|
|
864
818
|
"div",
|
|
865
819
|
{
|
|
866
820
|
className: "katex-block my-3 text-center",
|
|
@@ -871,7 +825,7 @@ var EquationNode = ({ node }) => {
|
|
|
871
825
|
var EquationNode_default = EquationNode;
|
|
872
826
|
|
|
873
827
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
874
|
-
import { jsx as
|
|
828
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
875
829
|
function getNestedProperty(obj, path) {
|
|
876
830
|
if (!obj || !path) return null;
|
|
877
831
|
if (path.includes(".")) {
|
|
@@ -884,7 +838,7 @@ function getNestedProperty(obj, path) {
|
|
|
884
838
|
}
|
|
885
839
|
const value = obj[path];
|
|
886
840
|
if (Array.isArray(value)) {
|
|
887
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
841
|
+
return value.map((item, index) => /* @__PURE__ */ jsx22("div", { children: String(item) }, index));
|
|
888
842
|
}
|
|
889
843
|
return value;
|
|
890
844
|
}
|
|
@@ -947,7 +901,7 @@ var DatafieldNode = (props) => {
|
|
|
947
901
|
const dataType = props.node.dataType;
|
|
948
902
|
if (isEmptyValue) return null;
|
|
949
903
|
if (dataType === "rawContent") {
|
|
950
|
-
return /* @__PURE__ */
|
|
904
|
+
return /* @__PURE__ */ jsx22(
|
|
951
905
|
PageBodyRenderer_default,
|
|
952
906
|
{
|
|
953
907
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -963,13 +917,13 @@ var DatafieldNode = (props) => {
|
|
|
963
917
|
}
|
|
964
918
|
);
|
|
965
919
|
}
|
|
966
|
-
return /* @__PURE__ */
|
|
920
|
+
return /* @__PURE__ */ jsx22(
|
|
967
921
|
"span",
|
|
968
922
|
{
|
|
969
923
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
970
924
|
style: styles,
|
|
971
925
|
title,
|
|
972
|
-
children: /* @__PURE__ */
|
|
926
|
+
children: /* @__PURE__ */ jsx22(
|
|
973
927
|
ViewControl_default,
|
|
974
928
|
{
|
|
975
929
|
controlType: dataType,
|
|
@@ -984,7 +938,7 @@ var DatafieldNode = (props) => {
|
|
|
984
938
|
var DatafieldNode_default = DatafieldNode;
|
|
985
939
|
|
|
986
940
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
987
|
-
import { Fragment as Fragment2, jsx as
|
|
941
|
+
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
988
942
|
var ParagraphNode = (props) => {
|
|
989
943
|
const NodeTypes2 = {
|
|
990
944
|
["text"]: TextNode_default,
|
|
@@ -1004,9 +958,9 @@ var ParagraphNode = (props) => {
|
|
|
1004
958
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
1005
959
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
1006
960
|
if (isInlineOnlyParent) {
|
|
1007
|
-
return /* @__PURE__ */
|
|
961
|
+
return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
1008
962
|
const SelectedNode = NodeTypes2[node.type];
|
|
1009
|
-
return /* @__PURE__ */
|
|
963
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
1010
964
|
SelectedNode,
|
|
1011
965
|
{
|
|
1012
966
|
node,
|
|
@@ -1022,7 +976,7 @@ var ParagraphNode = (props) => {
|
|
|
1022
976
|
return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
|
|
1023
977
|
hasChildren && props.node.children.map((node, index) => {
|
|
1024
978
|
const SelectedNode = NodeTypes2[node.type];
|
|
1025
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
1026
980
|
SelectedNode,
|
|
1027
981
|
{
|
|
1028
982
|
node,
|
|
@@ -1034,14 +988,14 @@ var ParagraphNode = (props) => {
|
|
|
1034
988
|
}
|
|
1035
989
|
) }, index);
|
|
1036
990
|
}),
|
|
1037
|
-
!hasChildren && /* @__PURE__ */
|
|
991
|
+
!hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
|
|
1038
992
|
] });
|
|
1039
993
|
};
|
|
1040
994
|
var ParagraphNode_default = ParagraphNode;
|
|
1041
995
|
|
|
1042
996
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
1043
997
|
import React17 from "react";
|
|
1044
|
-
import { Fragment as Fragment3, jsx as
|
|
998
|
+
import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
|
|
1045
999
|
var HeadingNode = (props) => {
|
|
1046
1000
|
const NodeTypes2 = {
|
|
1047
1001
|
["text"]: TextNode_default,
|
|
@@ -1057,12 +1011,12 @@ var HeadingNode = (props) => {
|
|
|
1057
1011
|
{
|
|
1058
1012
|
}
|
|
1059
1013
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
1060
|
-
return /* @__PURE__ */
|
|
1014
|
+
return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
|
|
1061
1015
|
HeadingTag,
|
|
1062
1016
|
{ className: formatClasses },
|
|
1063
1017
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
1064
1018
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
1065
|
-
return /* @__PURE__ */
|
|
1019
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1066
1020
|
})
|
|
1067
1021
|
) });
|
|
1068
1022
|
};
|
|
@@ -1073,7 +1027,7 @@ import React19 from "react";
|
|
|
1073
1027
|
|
|
1074
1028
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
1075
1029
|
import React18 from "react";
|
|
1076
|
-
import { jsx as
|
|
1030
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1077
1031
|
var ListItemNode = (props) => {
|
|
1078
1032
|
const NodeTypes2 = {
|
|
1079
1033
|
text: TextNode_default,
|
|
@@ -1090,37 +1044,37 @@ var ListItemNode = (props) => {
|
|
|
1090
1044
|
liStyle.fontSize = match[1].trim();
|
|
1091
1045
|
}
|
|
1092
1046
|
}
|
|
1093
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
1094
1048
|
const SelectedNode = NodeTypes2[node.type];
|
|
1095
1049
|
if (node.type === "linebreak") {
|
|
1096
1050
|
if (!foundFirstBreak) {
|
|
1097
1051
|
foundFirstBreak = true;
|
|
1098
|
-
return /* @__PURE__ */
|
|
1052
|
+
return /* @__PURE__ */ jsx25("div", {}, index);
|
|
1099
1053
|
} else {
|
|
1100
|
-
return /* @__PURE__ */
|
|
1054
|
+
return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
|
|
1101
1055
|
}
|
|
1102
1056
|
} else {
|
|
1103
1057
|
foundFirstBreak = false;
|
|
1104
|
-
return /* @__PURE__ */
|
|
1058
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1105
1059
|
}
|
|
1106
1060
|
}) });
|
|
1107
1061
|
};
|
|
1108
1062
|
var ListItemNode_default = ListItemNode;
|
|
1109
1063
|
|
|
1110
1064
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1111
|
-
import { jsx as
|
|
1065
|
+
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1112
1066
|
var ListNode = (props) => {
|
|
1113
1067
|
const NodeTypes2 = {
|
|
1114
1068
|
listitem: ListItemNode_default
|
|
1115
1069
|
};
|
|
1116
1070
|
return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
|
|
1117
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1071
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1118
1072
|
const SelectedNode = NodeTypes2[node.type];
|
|
1119
|
-
return /* @__PURE__ */
|
|
1073
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1120
1074
|
}) }),
|
|
1121
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1075
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1122
1076
|
const SelectedNode = NodeTypes2[node.type];
|
|
1123
|
-
return /* @__PURE__ */
|
|
1077
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1124
1078
|
}) })
|
|
1125
1079
|
] });
|
|
1126
1080
|
};
|
|
@@ -1128,28 +1082,28 @@ var ListNode_default = ListNode;
|
|
|
1128
1082
|
|
|
1129
1083
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1130
1084
|
import React20 from "react";
|
|
1131
|
-
import { jsx as
|
|
1085
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1132
1086
|
var QuoteNode = (props) => {
|
|
1133
1087
|
const NodeTypes2 = {
|
|
1134
1088
|
["text"]: TextNode_default,
|
|
1135
1089
|
["linebreak"]: LineBreakNode_default,
|
|
1136
1090
|
["link"]: LinkNode_default
|
|
1137
1091
|
};
|
|
1138
|
-
return /* @__PURE__ */
|
|
1092
|
+
return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1139
1093
|
const SelectedNode = NodeTypes2[node.type];
|
|
1140
|
-
return /* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1141
1095
|
}) });
|
|
1142
1096
|
};
|
|
1143
1097
|
var QuoteNode_default = QuoteNode;
|
|
1144
1098
|
|
|
1145
1099
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1146
1100
|
import React21 from "react";
|
|
1147
|
-
import
|
|
1148
|
-
import { jsx as
|
|
1149
|
-
var CopyButton =
|
|
1101
|
+
import dynamic9 from "next/dynamic";
|
|
1102
|
+
import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1103
|
+
var CopyButton = dynamic9(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1150
1104
|
ssr: false,
|
|
1151
1105
|
// optional: fallback UI while loading
|
|
1152
|
-
loading: () => /* @__PURE__ */
|
|
1106
|
+
loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1153
1107
|
});
|
|
1154
1108
|
var CodeNode = (props) => {
|
|
1155
1109
|
const NodeTypes2 = {
|
|
@@ -1165,12 +1119,12 @@ var CodeNode = (props) => {
|
|
|
1165
1119
|
}).join("") ?? "";
|
|
1166
1120
|
return /* @__PURE__ */ jsxs10("div", { children: [
|
|
1167
1121
|
/* @__PURE__ */ jsxs10("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
1168
|
-
/* @__PURE__ */
|
|
1169
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
|
|
1123
|
+
/* @__PURE__ */ jsx28(CopyButton, { text: textContent })
|
|
1170
1124
|
] }),
|
|
1171
|
-
/* @__PURE__ */
|
|
1125
|
+
/* @__PURE__ */ jsx28("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) => {
|
|
1172
1126
|
const SelectedNode = NodeTypes2[node.type];
|
|
1173
|
-
return /* @__PURE__ */
|
|
1127
|
+
return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
|
|
1174
1128
|
SelectedNode,
|
|
1175
1129
|
{
|
|
1176
1130
|
node,
|
|
@@ -1185,15 +1139,15 @@ var CodeNode = (props) => {
|
|
|
1185
1139
|
var CodeNode_default = CodeNode;
|
|
1186
1140
|
|
|
1187
1141
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1188
|
-
import { jsx as
|
|
1142
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1189
1143
|
var HorizontalRuleNode = () => {
|
|
1190
|
-
return /* @__PURE__ */
|
|
1144
|
+
return /* @__PURE__ */ jsx29("hr", {});
|
|
1191
1145
|
};
|
|
1192
1146
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1193
1147
|
|
|
1194
1148
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1195
1149
|
import React22 from "react";
|
|
1196
|
-
import { Fragment as Fragment4, jsx as
|
|
1150
|
+
import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
|
|
1197
1151
|
var WidgetNode = (props) => {
|
|
1198
1152
|
const getWidgetParameters = () => {
|
|
1199
1153
|
const widgetInputParameters = {
|
|
@@ -1257,7 +1211,7 @@ var WidgetNode = (props) => {
|
|
|
1257
1211
|
};
|
|
1258
1212
|
const widgetCode = props.node?.widgetCode;
|
|
1259
1213
|
if (!widgetCode) {
|
|
1260
|
-
return /* @__PURE__ */
|
|
1214
|
+
return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
|
|
1261
1215
|
}
|
|
1262
1216
|
const widgetParams = getWidgetParameters();
|
|
1263
1217
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1266,7 +1220,7 @@ var WidgetNode = (props) => {
|
|
|
1266
1220
|
}
|
|
1267
1221
|
return (
|
|
1268
1222
|
// eslint-disable-next-line react-hooks/static-components
|
|
1269
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
|
|
1270
1224
|
WidgetRenderer,
|
|
1271
1225
|
{
|
|
1272
1226
|
params: widgetParams,
|
|
@@ -1283,13 +1237,13 @@ var WidgetNode = (props) => {
|
|
|
1283
1237
|
var WidgetNode_default = WidgetNode;
|
|
1284
1238
|
|
|
1285
1239
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1286
|
-
import
|
|
1240
|
+
import dynamic13 from "next/dynamic";
|
|
1287
1241
|
import React23 from "react";
|
|
1288
1242
|
|
|
1289
1243
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1290
|
-
import
|
|
1291
|
-
import { jsx as
|
|
1292
|
-
var IframeClient =
|
|
1244
|
+
import dynamic10 from "next/dynamic";
|
|
1245
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1246
|
+
var IframeClient = dynamic10(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
1293
1247
|
ssr: false
|
|
1294
1248
|
});
|
|
1295
1249
|
var EmbedNode = (props) => {
|
|
@@ -1301,7 +1255,7 @@ var EmbedNode = (props) => {
|
|
|
1301
1255
|
} else {
|
|
1302
1256
|
src = props.node.embedSrc;
|
|
1303
1257
|
}
|
|
1304
|
-
return /* @__PURE__ */
|
|
1258
|
+
return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
|
|
1305
1259
|
};
|
|
1306
1260
|
var EmbedNode_default = EmbedNode;
|
|
1307
1261
|
|
|
@@ -1494,10 +1448,10 @@ var PathUtility = class {
|
|
|
1494
1448
|
var PathUtility_default = new PathUtility();
|
|
1495
1449
|
|
|
1496
1450
|
// src/components/NoDataFound.tsx
|
|
1497
|
-
import { jsx as
|
|
1451
|
+
import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1498
1452
|
var NoDataFound = () => {
|
|
1499
1453
|
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1500
|
-
/* @__PURE__ */
|
|
1454
|
+
/* @__PURE__ */ jsx32("div", { className: "mb-5", children: /* @__PURE__ */ jsx32("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx32(
|
|
1501
1455
|
"svg",
|
|
1502
1456
|
{
|
|
1503
1457
|
className: "w-10 h-10",
|
|
@@ -1505,7 +1459,7 @@ var NoDataFound = () => {
|
|
|
1505
1459
|
stroke: "currentColor",
|
|
1506
1460
|
viewBox: "0 0 24 24",
|
|
1507
1461
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1508
|
-
children: /* @__PURE__ */
|
|
1462
|
+
children: /* @__PURE__ */ jsx32(
|
|
1509
1463
|
"path",
|
|
1510
1464
|
{
|
|
1511
1465
|
strokeLinecap: "round",
|
|
@@ -1516,16 +1470,16 @@ var NoDataFound = () => {
|
|
|
1516
1470
|
)
|
|
1517
1471
|
}
|
|
1518
1472
|
) }) }),
|
|
1519
|
-
/* @__PURE__ */
|
|
1520
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1474
|
+
/* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1521
1475
|
] });
|
|
1522
1476
|
};
|
|
1523
1477
|
var NoDataFound_default = NoDataFound;
|
|
1524
1478
|
|
|
1525
1479
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1526
|
-
import
|
|
1527
|
-
import { Fragment as Fragment5, jsx as
|
|
1528
|
-
var HlsPlayer3 =
|
|
1480
|
+
import dynamic11 from "next/dynamic";
|
|
1481
|
+
import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1482
|
+
var HlsPlayer3 = dynamic11(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
1529
1483
|
var deviceToMediaQuery = (device) => {
|
|
1530
1484
|
switch (device) {
|
|
1531
1485
|
case "lg":
|
|
@@ -1681,7 +1635,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1681
1635
|
};
|
|
1682
1636
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1683
1637
|
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1684
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1638
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
|
|
1685
1639
|
HlsPlayer3,
|
|
1686
1640
|
{
|
|
1687
1641
|
sources: hlsSources,
|
|
@@ -1696,7 +1650,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1696
1650
|
styles: hlsStyles
|
|
1697
1651
|
}
|
|
1698
1652
|
) }),
|
|
1699
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1653
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
|
|
1700
1654
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1701
1655
|
const match = staticSources.find(
|
|
1702
1656
|
(img) => img.device === deviceKey
|
|
@@ -1712,7 +1666,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1712
1666
|
if (!srcUrl) {
|
|
1713
1667
|
return null;
|
|
1714
1668
|
}
|
|
1715
|
-
return /* @__PURE__ */
|
|
1669
|
+
return /* @__PURE__ */ jsx33(
|
|
1716
1670
|
"source",
|
|
1717
1671
|
{
|
|
1718
1672
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1737,7 +1691,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1737
1691
|
if (img.borderRadius) {
|
|
1738
1692
|
styles.borderRadius = img.borderRadius;
|
|
1739
1693
|
}
|
|
1740
|
-
return /* @__PURE__ */
|
|
1694
|
+
return /* @__PURE__ */ jsx33(
|
|
1741
1695
|
"img",
|
|
1742
1696
|
{
|
|
1743
1697
|
loading: "lazy",
|
|
@@ -1752,7 +1706,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1752
1706
|
})()
|
|
1753
1707
|
] }) : (
|
|
1754
1708
|
/* Case 2: Only device-specific images exist */
|
|
1755
|
-
/* @__PURE__ */
|
|
1709
|
+
/* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
|
|
1756
1710
|
const resolved = resolveImage(img);
|
|
1757
1711
|
const imageUrl = resolved?.imageUrl;
|
|
1758
1712
|
if (!imageUrl) {
|
|
@@ -1779,7 +1733,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1779
1733
|
default:
|
|
1780
1734
|
display = "block";
|
|
1781
1735
|
}
|
|
1782
|
-
return /* @__PURE__ */
|
|
1736
|
+
return /* @__PURE__ */ jsx33(
|
|
1783
1737
|
"img",
|
|
1784
1738
|
{
|
|
1785
1739
|
loading: "lazy",
|
|
@@ -1919,7 +1873,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1919
1873
|
};
|
|
1920
1874
|
|
|
1921
1875
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1922
|
-
import { Fragment as Fragment6, jsx as
|
|
1876
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1923
1877
|
var getNestedValue5 = (obj, path) => {
|
|
1924
1878
|
if (!obj || !path) return void 0;
|
|
1925
1879
|
return path.split(".").reduce((current, key) => {
|
|
@@ -1933,14 +1887,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1933
1887
|
viewBox: "0 0 48 48",
|
|
1934
1888
|
className: "w-10 h-10",
|
|
1935
1889
|
children: [
|
|
1936
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ jsx34(
|
|
1937
1891
|
"path",
|
|
1938
1892
|
{
|
|
1939
1893
|
fill: "#e53935",
|
|
1940
1894
|
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"
|
|
1941
1895
|
}
|
|
1942
1896
|
),
|
|
1943
|
-
/* @__PURE__ */
|
|
1897
|
+
/* @__PURE__ */ jsx34(
|
|
1944
1898
|
"path",
|
|
1945
1899
|
{
|
|
1946
1900
|
fill: "#fff",
|
|
@@ -1957,48 +1911,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1957
1911
|
viewBox: "0 0 48 48",
|
|
1958
1912
|
className: "w-10 h-10",
|
|
1959
1913
|
children: [
|
|
1960
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ jsx34(
|
|
1961
1915
|
"path",
|
|
1962
1916
|
{
|
|
1963
1917
|
fill: "#169154",
|
|
1964
1918
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1965
1919
|
}
|
|
1966
1920
|
),
|
|
1967
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ jsx34(
|
|
1968
1922
|
"path",
|
|
1969
1923
|
{
|
|
1970
1924
|
fill: "#18482a",
|
|
1971
1925
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1972
1926
|
}
|
|
1973
1927
|
),
|
|
1974
|
-
/* @__PURE__ */
|
|
1975
|
-
/* @__PURE__ */
|
|
1928
|
+
/* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1929
|
+
/* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1976
1930
|
/* @__PURE__ */ jsxs13("g", { children: [
|
|
1977
|
-
/* @__PURE__ */
|
|
1931
|
+
/* @__PURE__ */ jsx34(
|
|
1978
1932
|
"path",
|
|
1979
1933
|
{
|
|
1980
1934
|
fill: "#29c27f",
|
|
1981
1935
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1982
1936
|
}
|
|
1983
1937
|
),
|
|
1984
|
-
/* @__PURE__ */
|
|
1938
|
+
/* @__PURE__ */ jsx34(
|
|
1985
1939
|
"path",
|
|
1986
1940
|
{
|
|
1987
1941
|
fill: "#27663f",
|
|
1988
1942
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1989
1943
|
}
|
|
1990
1944
|
),
|
|
1991
|
-
/* @__PURE__ */
|
|
1992
|
-
/* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
1946
|
+
/* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1993
1947
|
] }),
|
|
1994
|
-
/* @__PURE__ */
|
|
1948
|
+
/* @__PURE__ */ jsx34(
|
|
1995
1949
|
"path",
|
|
1996
1950
|
{
|
|
1997
1951
|
fill: "#0c7238",
|
|
1998
1952
|
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"
|
|
1999
1953
|
}
|
|
2000
1954
|
),
|
|
2001
|
-
/* @__PURE__ */
|
|
1955
|
+
/* @__PURE__ */ jsx34(
|
|
2002
1956
|
"path",
|
|
2003
1957
|
{
|
|
2004
1958
|
fill: "#fff",
|
|
@@ -2016,7 +1970,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2016
1970
|
className: "w-10 h-10",
|
|
2017
1971
|
baseProfile: "basic",
|
|
2018
1972
|
children: [
|
|
2019
|
-
/* @__PURE__ */
|
|
1973
|
+
/* @__PURE__ */ jsx34(
|
|
2020
1974
|
"path",
|
|
2021
1975
|
{
|
|
2022
1976
|
fill: "#283593",
|
|
@@ -2034,19 +1988,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2034
1988
|
gradientTransform: "translate(0 -339.89)",
|
|
2035
1989
|
gradientUnits: "userSpaceOnUse",
|
|
2036
1990
|
children: [
|
|
2037
|
-
/* @__PURE__ */
|
|
2038
|
-
/* @__PURE__ */
|
|
1991
|
+
/* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
1992
|
+
/* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
2039
1993
|
]
|
|
2040
1994
|
}
|
|
2041
1995
|
),
|
|
2042
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ jsx34(
|
|
2043
1997
|
"path",
|
|
2044
1998
|
{
|
|
2045
1999
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
2046
2000
|
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"
|
|
2047
2001
|
}
|
|
2048
2002
|
),
|
|
2049
|
-
/* @__PURE__ */
|
|
2003
|
+
/* @__PURE__ */ jsx34(
|
|
2050
2004
|
"path",
|
|
2051
2005
|
{
|
|
2052
2006
|
fill: "#1e88e5",
|
|
@@ -2054,21 +2008,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2054
2008
|
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"
|
|
2055
2009
|
}
|
|
2056
2010
|
),
|
|
2057
|
-
/* @__PURE__ */
|
|
2011
|
+
/* @__PURE__ */ jsx34(
|
|
2058
2012
|
"path",
|
|
2059
2013
|
{
|
|
2060
2014
|
fill: "#00e5ff",
|
|
2061
2015
|
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"
|
|
2062
2016
|
}
|
|
2063
2017
|
),
|
|
2064
|
-
/* @__PURE__ */
|
|
2018
|
+
/* @__PURE__ */ jsx34(
|
|
2065
2019
|
"path",
|
|
2066
2020
|
{
|
|
2067
2021
|
fill: "#1565c0",
|
|
2068
2022
|
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"
|
|
2069
2023
|
}
|
|
2070
2024
|
),
|
|
2071
|
-
/* @__PURE__ */
|
|
2025
|
+
/* @__PURE__ */ jsx34(
|
|
2072
2026
|
"path",
|
|
2073
2027
|
{
|
|
2074
2028
|
fill: "#fff",
|
|
@@ -2085,8 +2039,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2085
2039
|
viewBox: "0 0 48 48",
|
|
2086
2040
|
className: "w-10 h-10",
|
|
2087
2041
|
children: [
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2042
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2043
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
2090
2044
|
]
|
|
2091
2045
|
}
|
|
2092
2046
|
);
|
|
@@ -2097,23 +2051,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2097
2051
|
viewBox: "0 0 48 48",
|
|
2098
2052
|
className: "w-10 h-10",
|
|
2099
2053
|
children: [
|
|
2100
|
-
/* @__PURE__ */
|
|
2054
|
+
/* @__PURE__ */ jsx34(
|
|
2101
2055
|
"path",
|
|
2102
2056
|
{
|
|
2103
2057
|
fill: "#dc4c2c",
|
|
2104
2058
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2105
2059
|
}
|
|
2106
2060
|
),
|
|
2107
|
-
/* @__PURE__ */
|
|
2108
|
-
/* @__PURE__ */
|
|
2109
|
-
/* @__PURE__ */
|
|
2061
|
+
/* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2062
|
+
/* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2063
|
+
/* @__PURE__ */ jsx34(
|
|
2110
2064
|
"path",
|
|
2111
2065
|
{
|
|
2112
2066
|
fill: "#9b341f",
|
|
2113
2067
|
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"
|
|
2114
2068
|
}
|
|
2115
2069
|
),
|
|
2116
|
-
/* @__PURE__ */
|
|
2070
|
+
/* @__PURE__ */ jsx34(
|
|
2117
2071
|
"path",
|
|
2118
2072
|
{
|
|
2119
2073
|
fill: "#fff",
|
|
@@ -2130,9 +2084,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2130
2084
|
viewBox: "0 0 48 48",
|
|
2131
2085
|
className: "w-10 h-10",
|
|
2132
2086
|
children: [
|
|
2133
|
-
/* @__PURE__ */
|
|
2134
|
-
/* @__PURE__ */
|
|
2135
|
-
/* @__PURE__ */
|
|
2087
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2088
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2089
|
+
/* @__PURE__ */ jsx34(
|
|
2136
2090
|
"path",
|
|
2137
2091
|
{
|
|
2138
2092
|
fill: "#1976D2",
|
|
@@ -2152,14 +2106,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2152
2106
|
version: "1.0",
|
|
2153
2107
|
className: "w-10 h-10",
|
|
2154
2108
|
children: [
|
|
2155
|
-
/* @__PURE__ */
|
|
2109
|
+
/* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
|
|
2156
2110
|
"path",
|
|
2157
2111
|
{
|
|
2158
2112
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2159
2113
|
"clip-rule": "nonzero"
|
|
2160
2114
|
}
|
|
2161
2115
|
) }) }),
|
|
2162
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
|
|
2163
2117
|
"path",
|
|
2164
2118
|
{
|
|
2165
2119
|
fill: "#ff9100",
|
|
@@ -2168,7 +2122,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2168
2122
|
"fill-rule": "nonzero"
|
|
2169
2123
|
}
|
|
2170
2124
|
) }),
|
|
2171
|
-
/* @__PURE__ */
|
|
2125
|
+
/* @__PURE__ */ jsx34(
|
|
2172
2126
|
"path",
|
|
2173
2127
|
{
|
|
2174
2128
|
fill: "#fbe9e7",
|
|
@@ -2177,7 +2131,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2177
2131
|
"fill-rule": "nonzero"
|
|
2178
2132
|
}
|
|
2179
2133
|
),
|
|
2180
|
-
/* @__PURE__ */
|
|
2134
|
+
/* @__PURE__ */ jsx34(
|
|
2181
2135
|
"path",
|
|
2182
2136
|
{
|
|
2183
2137
|
fill: "#ffe0b2",
|
|
@@ -2186,7 +2140,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2186
2140
|
"fill-rule": "nonzero"
|
|
2187
2141
|
}
|
|
2188
2142
|
),
|
|
2189
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ jsx34(
|
|
2190
2144
|
"path",
|
|
2191
2145
|
{
|
|
2192
2146
|
fill: "#ffe0b2",
|
|
@@ -2195,7 +2149,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2195
2149
|
"fill-rule": "nonzero"
|
|
2196
2150
|
}
|
|
2197
2151
|
),
|
|
2198
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ jsx34(
|
|
2199
2153
|
"path",
|
|
2200
2154
|
{
|
|
2201
2155
|
fill: "#ffe0b2",
|
|
@@ -2270,8 +2224,8 @@ var DocumentNode = (props) => {
|
|
|
2270
2224
|
}
|
|
2271
2225
|
}
|
|
2272
2226
|
if (documents.length === 0) {
|
|
2273
|
-
return /* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
2227
|
+
return /* @__PURE__ */ jsx34(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2228
|
+
/* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
|
|
2275
2229
|
"svg",
|
|
2276
2230
|
{
|
|
2277
2231
|
className: "w-5 h-5",
|
|
@@ -2279,7 +2233,7 @@ var DocumentNode = (props) => {
|
|
|
2279
2233
|
stroke: "currentColor",
|
|
2280
2234
|
viewBox: "0 0 24 24",
|
|
2281
2235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2282
|
-
children: /* @__PURE__ */
|
|
2236
|
+
children: /* @__PURE__ */ jsx34(
|
|
2283
2237
|
"path",
|
|
2284
2238
|
{
|
|
2285
2239
|
strokeLinecap: "round",
|
|
@@ -2290,11 +2244,11 @@ var DocumentNode = (props) => {
|
|
|
2290
2244
|
)
|
|
2291
2245
|
}
|
|
2292
2246
|
) }),
|
|
2293
|
-
/* @__PURE__ */
|
|
2294
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2248
|
+
/* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2295
2249
|
] }) });
|
|
2296
2250
|
}
|
|
2297
|
-
return /* @__PURE__ */
|
|
2251
|
+
return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
|
|
2298
2252
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2299
2253
|
props.assetBaseUrl,
|
|
2300
2254
|
doc.assetUrl
|
|
@@ -2318,8 +2272,8 @@ var DocumentNode = (props) => {
|
|
|
2318
2272
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2319
2273
|
children: [
|
|
2320
2274
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
|
|
2321
|
-
/* @__PURE__ */
|
|
2322
|
-
/* @__PURE__ */
|
|
2275
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
|
|
2276
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2323
2277
|
] }),
|
|
2324
2278
|
/* @__PURE__ */ jsxs13(
|
|
2325
2279
|
"a",
|
|
@@ -2337,7 +2291,7 @@ var DocumentNode = (props) => {
|
|
|
2337
2291
|
stroke: "currentColor",
|
|
2338
2292
|
viewBox: "0 0 24 24",
|
|
2339
2293
|
children: [
|
|
2340
|
-
/* @__PURE__ */
|
|
2294
|
+
/* @__PURE__ */ jsx34(
|
|
2341
2295
|
"path",
|
|
2342
2296
|
{
|
|
2343
2297
|
strokeLinecap: "round",
|
|
@@ -2346,7 +2300,7 @@ var DocumentNode = (props) => {
|
|
|
2346
2300
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2347
2301
|
}
|
|
2348
2302
|
),
|
|
2349
|
-
/* @__PURE__ */
|
|
2303
|
+
/* @__PURE__ */ jsx34(
|
|
2350
2304
|
"path",
|
|
2351
2305
|
{
|
|
2352
2306
|
strokeLinecap: "round",
|
|
@@ -2371,14 +2325,14 @@ var DocumentNode = (props) => {
|
|
|
2371
2325
|
var DocumentNode_default = DocumentNode;
|
|
2372
2326
|
|
|
2373
2327
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2374
|
-
import
|
|
2375
|
-
import { jsx as
|
|
2376
|
-
var IframeClient2 =
|
|
2328
|
+
import dynamic12 from "next/dynamic";
|
|
2329
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2330
|
+
var IframeClient2 = dynamic12(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
2377
2331
|
ssr: false
|
|
2378
2332
|
});
|
|
2379
2333
|
var GoogleMapNode = (props) => {
|
|
2380
2334
|
let src = props.node.embedUrl;
|
|
2381
|
-
return /* @__PURE__ */
|
|
2335
|
+
return /* @__PURE__ */ jsx35("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx35(
|
|
2382
2336
|
IframeClient2,
|
|
2383
2337
|
{
|
|
2384
2338
|
src,
|
|
@@ -2390,12 +2344,12 @@ var GoogleMapNode = (props) => {
|
|
|
2390
2344
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2391
2345
|
|
|
2392
2346
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2393
|
-
import { jsx as
|
|
2394
|
-
var Pagination =
|
|
2395
|
-
var DataBindingControls =
|
|
2347
|
+
import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2348
|
+
var Pagination = dynamic13(() => import("./Pagination-CQKMBXXJ.mjs"), { ssr: true });
|
|
2349
|
+
var DataBindingControls = dynamic13(() => import("./DataBindingControls-UUDERFAD.mjs"), {
|
|
2396
2350
|
ssr: true
|
|
2397
2351
|
});
|
|
2398
|
-
var Slider =
|
|
2352
|
+
var Slider = dynamic13(() => import("./Slider-554BKC7N.mjs"), {
|
|
2399
2353
|
ssr: false
|
|
2400
2354
|
});
|
|
2401
2355
|
function toCamelCase(str) {
|
|
@@ -2633,9 +2587,10 @@ var DivContainer = async (props) => {
|
|
|
2633
2587
|
let response = null;
|
|
2634
2588
|
let childCollectionData = null;
|
|
2635
2589
|
let shouldShowNoDataMessage = props.forceNoDataMessage === true;
|
|
2636
|
-
|
|
2590
|
+
const dataSource = dataBindingProperties?.dataSource?.trim();
|
|
2591
|
+
if (dataSource && !shouldShowNoDataMessage) {
|
|
2637
2592
|
const serviceClient = new ServiceClient_default(props.apiBaseUrl, props.session);
|
|
2638
|
-
endpoint =
|
|
2593
|
+
endpoint = dataSource;
|
|
2639
2594
|
{
|
|
2640
2595
|
}
|
|
2641
2596
|
endpoint = endpoint.replace(/\{(\w+)\}/g, (_, key) => {
|
|
@@ -2673,7 +2628,7 @@ var DivContainer = async (props) => {
|
|
|
2673
2628
|
}
|
|
2674
2629
|
const SelectedNode = NodeTypes2[node.type];
|
|
2675
2630
|
if (!SelectedNode) return null;
|
|
2676
|
-
return /* @__PURE__ */
|
|
2631
|
+
return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
|
|
2677
2632
|
SelectedNode,
|
|
2678
2633
|
{
|
|
2679
2634
|
node,
|
|
@@ -2765,7 +2720,7 @@ var DivContainer = async (props) => {
|
|
|
2765
2720
|
item,
|
|
2766
2721
|
idx,
|
|
2767
2722
|
props.href ? void 0 : item?.links?.view
|
|
2768
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2723
|
+
)?.map((child, i) => /* @__PURE__ */ jsx36(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2769
2724
|
);
|
|
2770
2725
|
}
|
|
2771
2726
|
return props.node.children.flatMap((node, childIndex) => {
|
|
@@ -2879,17 +2834,17 @@ var DivContainer = async (props) => {
|
|
|
2879
2834
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2880
2835
|
);
|
|
2881
2836
|
const WrapperComponent = Wrapper;
|
|
2882
|
-
const renderedContainer = /* @__PURE__ */
|
|
2837
|
+
const renderedContainer = /* @__PURE__ */ jsx36(
|
|
2883
2838
|
WrapperComponent,
|
|
2884
2839
|
{
|
|
2885
2840
|
id: guid,
|
|
2886
2841
|
style: combinedStyles,
|
|
2887
2842
|
className: classNames || void 0,
|
|
2888
2843
|
...wrapperProps,
|
|
2889
|
-
children: shouldShowNoDataMessage ? /* @__PURE__ */
|
|
2844
|
+
children: shouldShowNoDataMessage ? /* @__PURE__ */ jsx36(NoDataFound_default, {}) : renderContainerChildren()
|
|
2890
2845
|
}
|
|
2891
2846
|
);
|
|
2892
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2847
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
|
|
2893
2848
|
Pagination,
|
|
2894
2849
|
{
|
|
2895
2850
|
path: props.path,
|
|
@@ -2898,14 +2853,14 @@ var DivContainer = async (props) => {
|
|
|
2898
2853
|
}
|
|
2899
2854
|
) : null;
|
|
2900
2855
|
return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2901
|
-
/* @__PURE__ */
|
|
2856
|
+
/* @__PURE__ */ jsx36(
|
|
2902
2857
|
"style",
|
|
2903
2858
|
{
|
|
2904
2859
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2905
2860
|
}
|
|
2906
2861
|
),
|
|
2907
2862
|
showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2908
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ jsx36(
|
|
2909
2864
|
DataBindingControls,
|
|
2910
2865
|
{
|
|
2911
2866
|
mode: "toolbar",
|
|
@@ -2927,8 +2882,8 @@ var DivContainer = async (props) => {
|
|
|
2927
2882
|
paginationControl
|
|
2928
2883
|
] }),
|
|
2929
2884
|
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2930
|
-
/* @__PURE__ */
|
|
2931
|
-
/* @__PURE__ */
|
|
2885
|
+
/* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2886
|
+
/* @__PURE__ */ jsx36(
|
|
2932
2887
|
DataBindingControls,
|
|
2933
2888
|
{
|
|
2934
2889
|
mode: "facets",
|
|
@@ -2944,14 +2899,14 @@ var DivContainer = async (props) => {
|
|
|
2944
2899
|
)
|
|
2945
2900
|
] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2946
2901
|
renderedContainer,
|
|
2947
|
-
paginationControl && /* @__PURE__ */
|
|
2902
|
+
paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
|
|
2948
2903
|
] })
|
|
2949
2904
|
] });
|
|
2950
2905
|
};
|
|
2951
2906
|
var DivContainer_default = DivContainer;
|
|
2952
2907
|
|
|
2953
2908
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2954
|
-
import { jsx as
|
|
2909
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2955
2910
|
var NodeTypes = {
|
|
2956
2911
|
["paragraph"]: ParagraphNode_default,
|
|
2957
2912
|
["heading"]: HeadingNode_default,
|
|
@@ -2989,14 +2944,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2989
2944
|
}
|
|
2990
2945
|
return true;
|
|
2991
2946
|
};
|
|
2992
|
-
return /* @__PURE__ */
|
|
2947
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2993
2948
|
{
|
|
2994
2949
|
}
|
|
2995
2950
|
const SelectedNode = NodeTypes[node.type];
|
|
2996
2951
|
if (!shouldRenderNode(node)) {
|
|
2997
2952
|
return null;
|
|
2998
2953
|
}
|
|
2999
|
-
return /* @__PURE__ */
|
|
2954
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
3000
2955
|
SelectedNode,
|
|
3001
2956
|
{
|
|
3002
2957
|
node,
|
|
@@ -3012,7 +2967,7 @@ var PageBodyRenderer = (props) => {
|
|
|
3012
2967
|
device: props.device,
|
|
3013
2968
|
widgetRenderer: props.widgetRenderer
|
|
3014
2969
|
}
|
|
3015
|
-
) }) : /* @__PURE__ */
|
|
2970
|
+
) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
3016
2971
|
SelectedNode,
|
|
3017
2972
|
{
|
|
3018
2973
|
node,
|
|
@@ -3082,7 +3037,7 @@ function EnterAnimationHydrator() {
|
|
|
3082
3037
|
|
|
3083
3038
|
// src/components/Toast.tsx
|
|
3084
3039
|
import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
|
|
3085
|
-
import { Fragment as Fragment7, jsx as
|
|
3040
|
+
import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3086
3041
|
var Toast = () => {
|
|
3087
3042
|
const [showToast, setShowToast] = useState(false);
|
|
3088
3043
|
const [message, setMessage] = useState("");
|
|
@@ -3116,8 +3071,8 @@ var Toast = () => {
|
|
|
3116
3071
|
});
|
|
3117
3072
|
};
|
|
3118
3073
|
}, [closeToast, showMessage]);
|
|
3119
|
-
return /* @__PURE__ */
|
|
3120
|
-
/* @__PURE__ */
|
|
3074
|
+
return /* @__PURE__ */ jsx38(Fragment7, { children: showToast && /* @__PURE__ */ jsx38("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__ */ jsxs15("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
3075
|
+
/* @__PURE__ */ jsx38(
|
|
3121
3076
|
"span",
|
|
3122
3077
|
{
|
|
3123
3078
|
className: "font-medium text-inherit text-sm",
|
|
@@ -3125,7 +3080,7 @@ var Toast = () => {
|
|
|
3125
3080
|
children: message
|
|
3126
3081
|
}
|
|
3127
3082
|
),
|
|
3128
|
-
/* @__PURE__ */
|
|
3083
|
+
/* @__PURE__ */ jsx38("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx38(
|
|
3129
3084
|
"svg",
|
|
3130
3085
|
{
|
|
3131
3086
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3133,7 +3088,7 @@ var Toast = () => {
|
|
|
3133
3088
|
fill: "none",
|
|
3134
3089
|
viewBox: "0 0 24 24",
|
|
3135
3090
|
stroke: "currentColor",
|
|
3136
|
-
children: /* @__PURE__ */
|
|
3091
|
+
children: /* @__PURE__ */ jsx38("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
3137
3092
|
}
|
|
3138
3093
|
) })
|
|
3139
3094
|
] }) }) });
|
|
@@ -3143,7 +3098,7 @@ var Toast_default = Toast;
|
|
|
3143
3098
|
// src/components/NavigationTabsV2.tsx
|
|
3144
3099
|
import Link2 from "next/link";
|
|
3145
3100
|
import { usePathname } from "next/navigation";
|
|
3146
|
-
import { jsx as
|
|
3101
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3147
3102
|
function resolveRoutePlaceholders(route, params) {
|
|
3148
3103
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
3149
3104
|
const value = params[key];
|
|
@@ -3168,8 +3123,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
3168
3123
|
isActive: tab.isActive
|
|
3169
3124
|
})) || [];
|
|
3170
3125
|
if (mappedTabs.length === 0) return null;
|
|
3171
|
-
return /* @__PURE__ */
|
|
3172
|
-
return /* @__PURE__ */
|
|
3126
|
+
return /* @__PURE__ */ jsx39("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
3127
|
+
return /* @__PURE__ */ jsx39(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx39(
|
|
3173
3128
|
"div",
|
|
3174
3129
|
{
|
|
3175
3130
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -3187,46 +3142,46 @@ import { useRouter } from "next/navigation";
|
|
|
3187
3142
|
|
|
3188
3143
|
// src/components/dataForm/NoContentView.tsx
|
|
3189
3144
|
import React26 from "react";
|
|
3190
|
-
import { jsx as
|
|
3145
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3191
3146
|
var NoContentView = (props) => {
|
|
3192
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ jsx40(React26.Fragment, { children: props.isDataFound === false && props.children });
|
|
3193
3148
|
};
|
|
3194
3149
|
var NoContentView_default = NoContentView;
|
|
3195
3150
|
|
|
3196
3151
|
// src/components/dataForm/ContentView.tsx
|
|
3197
3152
|
import React27 from "react";
|
|
3198
|
-
import { jsx as
|
|
3153
|
+
import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3199
3154
|
var ContentView = (props) => {
|
|
3200
3155
|
return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
|
|
3201
|
-
props.isDataFound == null && /* @__PURE__ */
|
|
3156
|
+
props.isDataFound == null && /* @__PURE__ */ jsx41("div", { className: "", children: /* @__PURE__ */ jsxs16("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
3202
3157
|
/* @__PURE__ */ jsxs16("div", { className: "flex items-center mb-4", children: [
|
|
3203
|
-
/* @__PURE__ */
|
|
3158
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
3204
3159
|
/* @__PURE__ */ jsxs16("div", { className: "ml-2", children: [
|
|
3205
|
-
/* @__PURE__ */
|
|
3206
|
-
/* @__PURE__ */
|
|
3160
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
3161
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
3207
3162
|
] })
|
|
3208
3163
|
] }),
|
|
3209
3164
|
/* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
3210
3165
|
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3211
|
-
/* @__PURE__ */
|
|
3212
|
-
/* @__PURE__ */
|
|
3213
|
-
/* @__PURE__ */
|
|
3214
|
-
/* @__PURE__ */
|
|
3215
|
-
/* @__PURE__ */
|
|
3166
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3167
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3168
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3169
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3170
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3216
3171
|
] }),
|
|
3217
3172
|
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3218
|
-
/* @__PURE__ */
|
|
3219
|
-
/* @__PURE__ */
|
|
3220
|
-
/* @__PURE__ */
|
|
3221
|
-
/* @__PURE__ */
|
|
3222
|
-
/* @__PURE__ */
|
|
3173
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3174
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3175
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3176
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3177
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3223
3178
|
] }),
|
|
3224
3179
|
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3225
|
-
/* @__PURE__ */
|
|
3226
|
-
/* @__PURE__ */
|
|
3227
|
-
/* @__PURE__ */
|
|
3228
|
-
/* @__PURE__ */
|
|
3229
|
-
/* @__PURE__ */
|
|
3180
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3181
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3182
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3183
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3184
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3230
3185
|
] })
|
|
3231
3186
|
] })
|
|
3232
3187
|
] }) }),
|
|
@@ -3280,7 +3235,7 @@ function FormReducer(state, action) {
|
|
|
3280
3235
|
var FormReducer_default = FormReducer;
|
|
3281
3236
|
|
|
3282
3237
|
// src/components/dataForm/DataList.tsx
|
|
3283
|
-
import { Fragment as Fragment8, jsx as
|
|
3238
|
+
import { Fragment as Fragment8, jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3284
3239
|
var DataList = (props) => {
|
|
3285
3240
|
const router = useRouter();
|
|
3286
3241
|
let builder = new OdataBuilder(props.path);
|
|
@@ -3321,7 +3276,7 @@ var DataList = (props) => {
|
|
|
3321
3276
|
if (path.includes(".")) {
|
|
3322
3277
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
3323
3278
|
} else if (Array.isArray(obj[path])) {
|
|
3324
|
-
return obj[path].map((item, index) => /* @__PURE__ */
|
|
3279
|
+
return obj[path].map((item, index) => /* @__PURE__ */ jsx42("div", { children: item }, index));
|
|
3325
3280
|
} else {
|
|
3326
3281
|
return obj[path];
|
|
3327
3282
|
}
|
|
@@ -3403,30 +3358,30 @@ var DataList = (props) => {
|
|
|
3403
3358
|
const renderPageNumbers = () => {
|
|
3404
3359
|
if (pages <= 10) {
|
|
3405
3360
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
3406
|
-
(page) => /* @__PURE__ */
|
|
3361
|
+
(page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
|
|
3407
3362
|
Hyperlink,
|
|
3408
3363
|
{
|
|
3409
3364
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3410
3365
|
href: builder.getNewPageUrl(page),
|
|
3411
3366
|
children: page
|
|
3412
3367
|
}
|
|
3413
|
-
) : /* @__PURE__ */
|
|
3368
|
+
) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3414
3369
|
);
|
|
3415
3370
|
} else {
|
|
3416
3371
|
const showFirstPages = activePageNumber <= 5;
|
|
3417
3372
|
const showLastPages = activePageNumber > pages - 5;
|
|
3418
3373
|
if (showFirstPages) {
|
|
3419
3374
|
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3420
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */
|
|
3375
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
|
|
3421
3376
|
Hyperlink,
|
|
3422
3377
|
{
|
|
3423
3378
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3424
3379
|
href: builder.getNewPageUrl(page),
|
|
3425
3380
|
children: page
|
|
3426
3381
|
}
|
|
3427
|
-
) : /* @__PURE__ */
|
|
3428
|
-
/* @__PURE__ */
|
|
3429
|
-
/* @__PURE__ */
|
|
3382
|
+
) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3383
|
+
/* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
|
|
3384
|
+
/* @__PURE__ */ jsx42(
|
|
3430
3385
|
Hyperlink,
|
|
3431
3386
|
{
|
|
3432
3387
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3434,7 +3389,7 @@ var DataList = (props) => {
|
|
|
3434
3389
|
children: pages - 1
|
|
3435
3390
|
}
|
|
3436
3391
|
),
|
|
3437
|
-
/* @__PURE__ */
|
|
3392
|
+
/* @__PURE__ */ jsx42(
|
|
3438
3393
|
Hyperlink,
|
|
3439
3394
|
{
|
|
3440
3395
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3442,7 +3397,7 @@ var DataList = (props) => {
|
|
|
3442
3397
|
children: pages
|
|
3443
3398
|
}
|
|
3444
3399
|
),
|
|
3445
|
-
/* @__PURE__ */
|
|
3400
|
+
/* @__PURE__ */ jsx42("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
|
|
3446
3401
|
"select",
|
|
3447
3402
|
{
|
|
3448
3403
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3454,18 +3409,18 @@ var DataList = (props) => {
|
|
|
3454
3409
|
}
|
|
3455
3410
|
},
|
|
3456
3411
|
children: [
|
|
3457
|
-
/* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ jsx42("option", { className: "", value: "", children: "Jump to" }),
|
|
3458
3413
|
Array.from(
|
|
3459
3414
|
{ length: Math.max(0, pages - 10) },
|
|
3460
3415
|
(_, index) => index + 9
|
|
3461
|
-
).map((page) => /* @__PURE__ */
|
|
3416
|
+
).map((page) => /* @__PURE__ */ jsx42("option", { value: page, children: page }, page))
|
|
3462
3417
|
]
|
|
3463
3418
|
}
|
|
3464
3419
|
) })
|
|
3465
3420
|
] });
|
|
3466
3421
|
} else if (showLastPages) {
|
|
3467
3422
|
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3468
|
-
/* @__PURE__ */
|
|
3423
|
+
/* @__PURE__ */ jsx42(
|
|
3469
3424
|
Hyperlink,
|
|
3470
3425
|
{
|
|
3471
3426
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3473,7 +3428,7 @@ var DataList = (props) => {
|
|
|
3473
3428
|
children: "1"
|
|
3474
3429
|
}
|
|
3475
3430
|
),
|
|
3476
|
-
/* @__PURE__ */
|
|
3431
|
+
/* @__PURE__ */ jsx42(
|
|
3477
3432
|
Hyperlink,
|
|
3478
3433
|
{
|
|
3479
3434
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3481,21 +3436,21 @@ var DataList = (props) => {
|
|
|
3481
3436
|
children: "2"
|
|
3482
3437
|
}
|
|
3483
3438
|
),
|
|
3484
|
-
/* @__PURE__ */
|
|
3439
|
+
/* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
|
|
3485
3440
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
3486
|
-
(page) => /* @__PURE__ */
|
|
3441
|
+
(page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
|
|
3487
3442
|
Hyperlink,
|
|
3488
3443
|
{
|
|
3489
3444
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3490
3445
|
href: builder.getNewPageUrl(page),
|
|
3491
3446
|
children: page
|
|
3492
3447
|
}
|
|
3493
|
-
) : /* @__PURE__ */
|
|
3448
|
+
) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3494
3449
|
)
|
|
3495
3450
|
] });
|
|
3496
3451
|
} else {
|
|
3497
3452
|
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3498
|
-
/* @__PURE__ */
|
|
3453
|
+
/* @__PURE__ */ jsx42(
|
|
3499
3454
|
Hyperlink,
|
|
3500
3455
|
{
|
|
3501
3456
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3503,7 +3458,7 @@ var DataList = (props) => {
|
|
|
3503
3458
|
children: "1"
|
|
3504
3459
|
}
|
|
3505
3460
|
),
|
|
3506
|
-
/* @__PURE__ */
|
|
3461
|
+
/* @__PURE__ */ jsx42(
|
|
3507
3462
|
Hyperlink,
|
|
3508
3463
|
{
|
|
3509
3464
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3511,20 +3466,20 @@ var DataList = (props) => {
|
|
|
3511
3466
|
children: "2"
|
|
3512
3467
|
}
|
|
3513
3468
|
),
|
|
3514
|
-
/* @__PURE__ */
|
|
3469
|
+
/* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
|
|
3515
3470
|
Array.from(
|
|
3516
3471
|
{ length: 5 },
|
|
3517
3472
|
(_, index) => activePageNumber - 2 + index
|
|
3518
|
-
).map((page) => /* @__PURE__ */
|
|
3473
|
+
).map((page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
|
|
3519
3474
|
Hyperlink,
|
|
3520
3475
|
{
|
|
3521
3476
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3522
3477
|
href: builder.getNewPageUrl(page),
|
|
3523
3478
|
children: page
|
|
3524
3479
|
}
|
|
3525
|
-
) : /* @__PURE__ */
|
|
3526
|
-
/* @__PURE__ */
|
|
3527
|
-
/* @__PURE__ */
|
|
3480
|
+
) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3481
|
+
/* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
|
|
3482
|
+
/* @__PURE__ */ jsx42(
|
|
3528
3483
|
Hyperlink,
|
|
3529
3484
|
{
|
|
3530
3485
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3532,7 +3487,7 @@ var DataList = (props) => {
|
|
|
3532
3487
|
children: pages - 1
|
|
3533
3488
|
}
|
|
3534
3489
|
),
|
|
3535
|
-
/* @__PURE__ */
|
|
3490
|
+
/* @__PURE__ */ jsx42(
|
|
3536
3491
|
Hyperlink,
|
|
3537
3492
|
{
|
|
3538
3493
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3540,7 +3495,7 @@ var DataList = (props) => {
|
|
|
3540
3495
|
children: pages
|
|
3541
3496
|
}
|
|
3542
3497
|
),
|
|
3543
|
-
/* @__PURE__ */
|
|
3498
|
+
/* @__PURE__ */ jsx42("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
|
|
3544
3499
|
"select",
|
|
3545
3500
|
{
|
|
3546
3501
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3552,8 +3507,8 @@ var DataList = (props) => {
|
|
|
3552
3507
|
}
|
|
3553
3508
|
},
|
|
3554
3509
|
children: [
|
|
3555
|
-
/* @__PURE__ */
|
|
3556
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */
|
|
3510
|
+
/* @__PURE__ */ jsx42("option", { value: "", children: "Jump to" }),
|
|
3511
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx42("option", { value: page, children: page }, page))
|
|
3557
3512
|
]
|
|
3558
3513
|
}
|
|
3559
3514
|
) })
|
|
@@ -3568,9 +3523,9 @@ var DataList = (props) => {
|
|
|
3568
3523
|
{
|
|
3569
3524
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
3570
3525
|
children: [
|
|
3571
|
-
props.title ? /* @__PURE__ */
|
|
3526
|
+
props.title ? /* @__PURE__ */ jsx42("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx42("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx42("div", {}),
|
|
3572
3527
|
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3573
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3528
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx42(
|
|
3574
3529
|
InputControl_default,
|
|
3575
3530
|
{
|
|
3576
3531
|
name: "Search_input",
|
|
@@ -3583,7 +3538,7 @@ var DataList = (props) => {
|
|
|
3583
3538
|
}
|
|
3584
3539
|
}
|
|
3585
3540
|
),
|
|
3586
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3541
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx42(
|
|
3587
3542
|
InputControl_default,
|
|
3588
3543
|
{
|
|
3589
3544
|
name: filter.name,
|
|
@@ -3605,8 +3560,8 @@ var DataList = (props) => {
|
|
|
3605
3560
|
linkType: "Primary" /* Solid */,
|
|
3606
3561
|
href: props.addLinkHref,
|
|
3607
3562
|
children: [
|
|
3608
|
-
/* @__PURE__ */
|
|
3609
|
-
/* @__PURE__ */
|
|
3563
|
+
/* @__PURE__ */ jsx42(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3564
|
+
/* @__PURE__ */ jsx42("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3610
3565
|
]
|
|
3611
3566
|
}
|
|
3612
3567
|
)
|
|
@@ -3614,8 +3569,8 @@ var DataList = (props) => {
|
|
|
3614
3569
|
]
|
|
3615
3570
|
}
|
|
3616
3571
|
),
|
|
3617
|
-
/* @__PURE__ */
|
|
3618
|
-
/* @__PURE__ */
|
|
3572
|
+
/* @__PURE__ */ jsx42("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs17("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
3573
|
+
/* @__PURE__ */ jsx42("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs17("tr", { children: [
|
|
3619
3574
|
props?.columns?.map((column) => {
|
|
3620
3575
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3621
3576
|
let icon = "chevronUpDown";
|
|
@@ -3626,18 +3581,18 @@ var DataList = (props) => {
|
|
|
3626
3581
|
icon = "chevronUp";
|
|
3627
3582
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3628
3583
|
}
|
|
3629
|
-
return /* @__PURE__ */
|
|
3584
|
+
return /* @__PURE__ */ jsx42(
|
|
3630
3585
|
"th",
|
|
3631
3586
|
{
|
|
3632
3587
|
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" : ""),
|
|
3633
|
-
children: /* @__PURE__ */
|
|
3588
|
+
children: /* @__PURE__ */ jsx42(
|
|
3634
3589
|
Hyperlink,
|
|
3635
3590
|
{
|
|
3636
3591
|
href: column.enableSorting ? url : void 0,
|
|
3637
3592
|
className: "!text-neutral-contrast ",
|
|
3638
3593
|
children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
|
|
3639
|
-
/* @__PURE__ */
|
|
3640
|
-
column.enableSorting && /* @__PURE__ */
|
|
3594
|
+
/* @__PURE__ */ jsx42("span", { className: "text-black", children: column.label }),
|
|
3595
|
+
column.enableSorting && /* @__PURE__ */ jsx42(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3641
3596
|
] })
|
|
3642
3597
|
}
|
|
3643
3598
|
)
|
|
@@ -3645,25 +3600,25 @@ var DataList = (props) => {
|
|
|
3645
3600
|
column.name
|
|
3646
3601
|
);
|
|
3647
3602
|
}),
|
|
3648
|
-
props.onQuickView && /* @__PURE__ */
|
|
3603
|
+
props.onQuickView && /* @__PURE__ */ jsx42("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
|
|
3649
3604
|
] }) }),
|
|
3650
|
-
/* @__PURE__ */
|
|
3605
|
+
/* @__PURE__ */ jsx42("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
3651
3606
|
let validityClass = "";
|
|
3652
3607
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
3653
3608
|
validityClass = "bg-alert-200";
|
|
3654
3609
|
}
|
|
3655
3610
|
return /* @__PURE__ */ jsxs17("tr", { className: validityClass, children: [
|
|
3656
3611
|
props?.columns?.map((column, colindex) => {
|
|
3657
|
-
return /* @__PURE__ */
|
|
3612
|
+
return /* @__PURE__ */ jsx42(React28.Fragment, { children: /* @__PURE__ */ jsx42(
|
|
3658
3613
|
"td",
|
|
3659
3614
|
{
|
|
3660
3615
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
3661
|
-
children: column.addhref === true ? /* @__PURE__ */
|
|
3616
|
+
children: column.addhref === true ? /* @__PURE__ */ jsx42(
|
|
3662
3617
|
Hyperlink,
|
|
3663
3618
|
{
|
|
3664
3619
|
className: "",
|
|
3665
3620
|
href: `https://${dataitem[column.name]}`,
|
|
3666
|
-
children: /* @__PURE__ */
|
|
3621
|
+
children: /* @__PURE__ */ jsx42(
|
|
3667
3622
|
ViewControl_default,
|
|
3668
3623
|
{
|
|
3669
3624
|
controlType: column.controlType,
|
|
@@ -3676,11 +3631,11 @@ var DataList = (props) => {
|
|
|
3676
3631
|
}
|
|
3677
3632
|
)
|
|
3678
3633
|
}
|
|
3679
|
-
) : column.showAsLink ? /* @__PURE__ */
|
|
3634
|
+
) : column.showAsLink ? /* @__PURE__ */ jsx42(
|
|
3680
3635
|
Hyperlink,
|
|
3681
3636
|
{
|
|
3682
3637
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
3683
|
-
children: /* @__PURE__ */
|
|
3638
|
+
children: /* @__PURE__ */ jsx42(
|
|
3684
3639
|
ViewControl_default,
|
|
3685
3640
|
{
|
|
3686
3641
|
controlType: column.controlType,
|
|
@@ -3690,7 +3645,7 @@ var DataList = (props) => {
|
|
|
3690
3645
|
}
|
|
3691
3646
|
)
|
|
3692
3647
|
}
|
|
3693
|
-
) : /* @__PURE__ */
|
|
3648
|
+
) : /* @__PURE__ */ jsx42(
|
|
3694
3649
|
ViewControl_default,
|
|
3695
3650
|
{
|
|
3696
3651
|
controlType: column.controlType,
|
|
@@ -3702,7 +3657,7 @@ var DataList = (props) => {
|
|
|
3702
3657
|
}
|
|
3703
3658
|
) }, colindex);
|
|
3704
3659
|
}),
|
|
3705
|
-
props.onQuickView && /* @__PURE__ */
|
|
3660
|
+
props.onQuickView && /* @__PURE__ */ jsx42("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs17(
|
|
3706
3661
|
"button",
|
|
3707
3662
|
{
|
|
3708
3663
|
type: "button",
|
|
@@ -3723,22 +3678,22 @@ var DataList = (props) => {
|
|
|
3723
3678
|
strokeLinecap: "round",
|
|
3724
3679
|
strokeLinejoin: "round",
|
|
3725
3680
|
children: [
|
|
3726
|
-
/* @__PURE__ */
|
|
3727
|
-
/* @__PURE__ */
|
|
3681
|
+
/* @__PURE__ */ jsx42("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
3682
|
+
/* @__PURE__ */ jsx42("circle", { cx: "12", cy: "12", r: "3" })
|
|
3728
3683
|
]
|
|
3729
3684
|
}
|
|
3730
3685
|
),
|
|
3731
|
-
/* @__PURE__ */
|
|
3686
|
+
/* @__PURE__ */ jsx42("span", { children: props.quickViewLabel || "Quick View" })
|
|
3732
3687
|
]
|
|
3733
3688
|
}
|
|
3734
3689
|
) })
|
|
3735
3690
|
] }, index);
|
|
3736
3691
|
}) })
|
|
3737
3692
|
] }) }),
|
|
3738
|
-
/* @__PURE__ */
|
|
3739
|
-
/* @__PURE__ */
|
|
3693
|
+
/* @__PURE__ */ jsx42("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between", children: [
|
|
3694
|
+
/* @__PURE__ */ jsx42("div", { className: "text-gray-700", children: label }),
|
|
3740
3695
|
/* @__PURE__ */ jsxs17("div", { className: "flex space-x-2 items-center", children: [
|
|
3741
|
-
activePageNumber > 1 && /* @__PURE__ */
|
|
3696
|
+
activePageNumber > 1 && /* @__PURE__ */ jsx42(
|
|
3742
3697
|
Hyperlink,
|
|
3743
3698
|
{
|
|
3744
3699
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3746,9 +3701,9 @@ var DataList = (props) => {
|
|
|
3746
3701
|
children: "Prev"
|
|
3747
3702
|
}
|
|
3748
3703
|
),
|
|
3749
|
-
activePageNumber <= 1 && /* @__PURE__ */
|
|
3704
|
+
activePageNumber <= 1 && /* @__PURE__ */ jsx42("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" }),
|
|
3750
3705
|
renderPageNumbers(),
|
|
3751
|
-
activePageNumber < pages && /* @__PURE__ */
|
|
3706
|
+
activePageNumber < pages && /* @__PURE__ */ jsx42(
|
|
3752
3707
|
Hyperlink,
|
|
3753
3708
|
{
|
|
3754
3709
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3756,7 +3711,7 @@ var DataList = (props) => {
|
|
|
3756
3711
|
children: "Next"
|
|
3757
3712
|
}
|
|
3758
3713
|
),
|
|
3759
|
-
activePageNumber >= pages && /* @__PURE__ */
|
|
3714
|
+
activePageNumber >= pages && /* @__PURE__ */ jsx42("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
3760
3715
|
] })
|
|
3761
3716
|
] }) })
|
|
3762
3717
|
] }),
|
|
@@ -3766,9 +3721,9 @@ var DataList = (props) => {
|
|
|
3766
3721
|
{
|
|
3767
3722
|
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`,
|
|
3768
3723
|
children: [
|
|
3769
|
-
props.title ? /* @__PURE__ */
|
|
3724
|
+
props.title ? /* @__PURE__ */ jsx42("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx42("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx42("div", {}),
|
|
3770
3725
|
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3771
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3726
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx42(
|
|
3772
3727
|
InputControl_default,
|
|
3773
3728
|
{
|
|
3774
3729
|
name: "Search_input",
|
|
@@ -3781,7 +3736,7 @@ var DataList = (props) => {
|
|
|
3781
3736
|
}
|
|
3782
3737
|
}
|
|
3783
3738
|
),
|
|
3784
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3739
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx42(
|
|
3785
3740
|
InputControl_default,
|
|
3786
3741
|
{
|
|
3787
3742
|
name: filter.name,
|
|
@@ -3803,8 +3758,8 @@ var DataList = (props) => {
|
|
|
3803
3758
|
linkType: "Primary" /* Solid */,
|
|
3804
3759
|
href: props.addLinkHref,
|
|
3805
3760
|
children: [
|
|
3806
|
-
/* @__PURE__ */
|
|
3807
|
-
/* @__PURE__ */
|
|
3761
|
+
/* @__PURE__ */ jsx42(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3762
|
+
/* @__PURE__ */ jsx42("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3808
3763
|
]
|
|
3809
3764
|
}
|
|
3810
3765
|
)
|
|
@@ -3813,7 +3768,7 @@ var DataList = (props) => {
|
|
|
3813
3768
|
}
|
|
3814
3769
|
),
|
|
3815
3770
|
/* @__PURE__ */ jsxs17("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
3816
|
-
/* @__PURE__ */
|
|
3771
|
+
/* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx42("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx42("tr", { children: props?.columns?.map((column) => {
|
|
3817
3772
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3818
3773
|
let icon = "chevronUpDown";
|
|
3819
3774
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -3823,18 +3778,18 @@ var DataList = (props) => {
|
|
|
3823
3778
|
icon = "chevronUp";
|
|
3824
3779
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3825
3780
|
}
|
|
3826
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ jsx42(
|
|
3827
3782
|
"th",
|
|
3828
3783
|
{
|
|
3829
3784
|
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" : ""),
|
|
3830
|
-
children: /* @__PURE__ */
|
|
3785
|
+
children: /* @__PURE__ */ jsx42(
|
|
3831
3786
|
Hyperlink,
|
|
3832
3787
|
{
|
|
3833
3788
|
href: column.enableSorting ? url : void 0,
|
|
3834
3789
|
className: "text-body-950",
|
|
3835
3790
|
children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
|
|
3836
|
-
/* @__PURE__ */
|
|
3837
|
-
column.enableSorting && /* @__PURE__ */
|
|
3791
|
+
/* @__PURE__ */ jsx42("span", { children: column.label }),
|
|
3792
|
+
column.enableSorting && /* @__PURE__ */ jsx42(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3838
3793
|
] })
|
|
3839
3794
|
}
|
|
3840
3795
|
)
|
|
@@ -3842,7 +3797,7 @@ var DataList = (props) => {
|
|
|
3842
3797
|
column.name
|
|
3843
3798
|
);
|
|
3844
3799
|
}) }) }) }) }),
|
|
3845
|
-
/* @__PURE__ */
|
|
3800
|
+
/* @__PURE__ */ jsx42("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
3846
3801
|
] })
|
|
3847
3802
|
] })
|
|
3848
3803
|
] });
|
|
@@ -3852,7 +3807,7 @@ var DataList_default = DataList;
|
|
|
3852
3807
|
// src/components/dataForm/DataListRenderer.tsx
|
|
3853
3808
|
import React29, { useState as useState3, useEffect as useEffect4 } from "react";
|
|
3854
3809
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
3855
|
-
import { jsx as
|
|
3810
|
+
import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3856
3811
|
var viewControlMap = {
|
|
3857
3812
|
number: ViewControlTypes.number,
|
|
3858
3813
|
lineText: ViewControlTypes.lineText,
|
|
@@ -3952,8 +3907,8 @@ var DataListRenderer = ({
|
|
|
3952
3907
|
// tabs={resolvedTabs}
|
|
3953
3908
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
3954
3909
|
// />
|
|
3955
|
-
/* @__PURE__ */
|
|
3956
|
-
/* @__PURE__ */
|
|
3910
|
+
/* @__PURE__ */ jsx43(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
3911
|
+
/* @__PURE__ */ jsx43(
|
|
3957
3912
|
DataList_default,
|
|
3958
3913
|
{
|
|
3959
3914
|
addLinkHref,
|
|
@@ -3998,7 +3953,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
3998
3953
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
3999
3954
|
|
|
4000
3955
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
4001
|
-
import { jsx as
|
|
3956
|
+
import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4002
3957
|
var DataFormChildSection = (props) => {
|
|
4003
3958
|
const { section } = props;
|
|
4004
3959
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -4066,14 +4021,14 @@ var DataFormChildSection = (props) => {
|
|
|
4066
4021
|
childItemsToRender,
|
|
4067
4022
|
allChildItems: childItems
|
|
4068
4023
|
});
|
|
4069
|
-
return /* @__PURE__ */
|
|
4070
|
-
section.sectionTitle && /* @__PURE__ */
|
|
4071
|
-
/* @__PURE__ */
|
|
4072
|
-
/* @__PURE__ */
|
|
4073
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */
|
|
4024
|
+
return /* @__PURE__ */ jsx44(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
4025
|
+
section.sectionTitle && /* @__PURE__ */ jsx44("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
4026
|
+
/* @__PURE__ */ jsx44("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs19("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
4027
|
+
/* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsxs19("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
4028
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx44("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
4074
4029
|
return /* @__PURE__ */ jsxs19("tr", { className: "", children: [
|
|
4075
4030
|
sectionRow.elements.map((field, index) => {
|
|
4076
|
-
return /* @__PURE__ */
|
|
4031
|
+
return /* @__PURE__ */ jsx44(
|
|
4077
4032
|
"th",
|
|
4078
4033
|
{
|
|
4079
4034
|
className: "py-3 font-normal text-left",
|
|
@@ -4082,13 +4037,13 @@ var DataFormChildSection = (props) => {
|
|
|
4082
4037
|
field.name
|
|
4083
4038
|
);
|
|
4084
4039
|
}),
|
|
4085
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4040
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
4086
4041
|
] }, sectionRowIndex);
|
|
4087
4042
|
}) }),
|
|
4088
|
-
/* @__PURE__ */
|
|
4043
|
+
/* @__PURE__ */ jsx44("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
4089
4044
|
const { item, originalIndex } = visibleItem;
|
|
4090
4045
|
const rowKey = originalIndex;
|
|
4091
|
-
return /* @__PURE__ */
|
|
4046
|
+
return /* @__PURE__ */ jsx44(React30.Fragment, { children: section.sectionRows.map(
|
|
4092
4047
|
(sectionRow, sectionRowIndex) => {
|
|
4093
4048
|
return /* @__PURE__ */ jsxs19(
|
|
4094
4049
|
"tr",
|
|
@@ -4096,7 +4051,7 @@ var DataFormChildSection = (props) => {
|
|
|
4096
4051
|
className: "",
|
|
4097
4052
|
children: [
|
|
4098
4053
|
sectionRow.elements.map((field, index) => {
|
|
4099
|
-
return /* @__PURE__ */
|
|
4054
|
+
return /* @__PURE__ */ jsx44("td", { children: /* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("div", { className: "w-11/12", children: /* @__PURE__ */ jsx44(
|
|
4100
4055
|
InputControl_default,
|
|
4101
4056
|
{
|
|
4102
4057
|
index: filteredIndex,
|
|
@@ -4116,7 +4071,7 @@ var DataFormChildSection = (props) => {
|
|
|
4116
4071
|
}
|
|
4117
4072
|
) }) }) }, field.name);
|
|
4118
4073
|
}),
|
|
4119
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4074
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("td", { children: /* @__PURE__ */ jsx44(
|
|
4120
4075
|
ClientButton_default,
|
|
4121
4076
|
{
|
|
4122
4077
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -4125,7 +4080,7 @@ var DataFormChildSection = (props) => {
|
|
|
4125
4080
|
},
|
|
4126
4081
|
dataRole: "delete",
|
|
4127
4082
|
tabIndex: -1,
|
|
4128
|
-
children: /* @__PURE__ */
|
|
4083
|
+
children: /* @__PURE__ */ jsx44(
|
|
4129
4084
|
Icon_default,
|
|
4130
4085
|
{
|
|
4131
4086
|
className: "w-4 h-4",
|
|
@@ -4142,7 +4097,7 @@ var DataFormChildSection = (props) => {
|
|
|
4142
4097
|
) }, rowKey);
|
|
4143
4098
|
}) })
|
|
4144
4099
|
] }) }),
|
|
4145
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4100
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("div", { className: "ml-1", children: /* @__PURE__ */ jsx44(
|
|
4146
4101
|
ClientButton_default,
|
|
4147
4102
|
{
|
|
4148
4103
|
ButtonType: "Link" /* Link */,
|
|
@@ -4157,7 +4112,7 @@ var DataFormChildSection = (props) => {
|
|
|
4157
4112
|
var DataFormChildSection_default = DataFormChildSection;
|
|
4158
4113
|
|
|
4159
4114
|
// src/components/dataForm/DataForm.tsx
|
|
4160
|
-
import { jsx as
|
|
4115
|
+
import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4161
4116
|
var DataForm = (props) => {
|
|
4162
4117
|
const formRef = useRef2(null);
|
|
4163
4118
|
console.log(props.dataItem, "dssads");
|
|
@@ -4377,19 +4332,19 @@ var DataForm = (props) => {
|
|
|
4377
4332
|
return false;
|
|
4378
4333
|
}
|
|
4379
4334
|
}
|
|
4380
|
-
return /* @__PURE__ */
|
|
4381
|
-
props.title && /* @__PURE__ */
|
|
4335
|
+
return /* @__PURE__ */ jsx45(React31.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
|
|
4336
|
+
props.title && /* @__PURE__ */ jsx45("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__ */ jsxs20(
|
|
4382
4337
|
"div",
|
|
4383
4338
|
{
|
|
4384
4339
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
4385
4340
|
onClick: () => window.history.back(),
|
|
4386
4341
|
children: [
|
|
4387
|
-
/* @__PURE__ */
|
|
4388
|
-
/* @__PURE__ */
|
|
4342
|
+
/* @__PURE__ */ jsx45(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
4343
|
+
/* @__PURE__ */ jsx45("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
4389
4344
|
]
|
|
4390
4345
|
}
|
|
4391
4346
|
) }),
|
|
4392
|
-
/* @__PURE__ */
|
|
4347
|
+
/* @__PURE__ */ jsx45(
|
|
4393
4348
|
"form",
|
|
4394
4349
|
{
|
|
4395
4350
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -4410,8 +4365,8 @@ var DataForm = (props) => {
|
|
|
4410
4365
|
}
|
|
4411
4366
|
}
|
|
4412
4367
|
},
|
|
4413
|
-
children: /* @__PURE__ */
|
|
4414
|
-
return /* @__PURE__ */
|
|
4368
|
+
children: /* @__PURE__ */ jsx45("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
4369
|
+
return /* @__PURE__ */ jsx45(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs20("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
4415
4370
|
section.sectionRows?.map(
|
|
4416
4371
|
(sectionRow, sectionRowIndex) => {
|
|
4417
4372
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -4422,14 +4377,14 @@ var DataForm = (props) => {
|
|
|
4422
4377
|
sectionRow.visible
|
|
4423
4378
|
);
|
|
4424
4379
|
}
|
|
4425
|
-
return /* @__PURE__ */
|
|
4380
|
+
return /* @__PURE__ */ jsx45(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx45("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
4426
4381
|
return /* @__PURE__ */ jsxs20(
|
|
4427
4382
|
"div",
|
|
4428
4383
|
{
|
|
4429
4384
|
className: sectionRow.grow ? "grow" : "",
|
|
4430
4385
|
children: [
|
|
4431
|
-
/* @__PURE__ */
|
|
4432
|
-
/* @__PURE__ */
|
|
4386
|
+
/* @__PURE__ */ jsx45("div", { children: field.controlType }),
|
|
4387
|
+
/* @__PURE__ */ jsx45(
|
|
4433
4388
|
InputControl_default,
|
|
4434
4389
|
{
|
|
4435
4390
|
name: field.name,
|
|
@@ -4459,12 +4414,12 @@ var DataForm = (props) => {
|
|
|
4459
4414
|
}) }) }, sectionRowIndex);
|
|
4460
4415
|
}
|
|
4461
4416
|
),
|
|
4462
|
-
/* @__PURE__ */
|
|
4417
|
+
/* @__PURE__ */ jsx45("div", { children: section.childSections?.map(
|
|
4463
4418
|
(childSection, childSectionIndex) => {
|
|
4464
|
-
return /* @__PURE__ */
|
|
4419
|
+
return /* @__PURE__ */ jsx45("div", { children: childSection.name && evalutateCondition(
|
|
4465
4420
|
formState.inputValues,
|
|
4466
4421
|
childSection.visible
|
|
4467
|
-
) && /* @__PURE__ */
|
|
4422
|
+
) && /* @__PURE__ */ jsx45(
|
|
4468
4423
|
DataFormChildSection_default,
|
|
4469
4424
|
{
|
|
4470
4425
|
section: childSection,
|
|
@@ -4480,7 +4435,7 @@ var DataForm = (props) => {
|
|
|
4480
4435
|
}
|
|
4481
4436
|
),
|
|
4482
4437
|
/* @__PURE__ */ jsxs20("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
4483
|
-
/* @__PURE__ */
|
|
4438
|
+
/* @__PURE__ */ jsx45("div", { children: props.additionalActions && /* @__PURE__ */ jsx45(
|
|
4484
4439
|
Button_default,
|
|
4485
4440
|
{
|
|
4486
4441
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4488,7 +4443,7 @@ var DataForm = (props) => {
|
|
|
4488
4443
|
children: props.additionalActions.title
|
|
4489
4444
|
}
|
|
4490
4445
|
) }),
|
|
4491
|
-
/* @__PURE__ */
|
|
4446
|
+
/* @__PURE__ */ jsx45("div", { children: props.onDelete && /* @__PURE__ */ jsx45(
|
|
4492
4447
|
Button_default,
|
|
4493
4448
|
{
|
|
4494
4449
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4499,7 +4454,7 @@ var DataForm = (props) => {
|
|
|
4499
4454
|
children: "Delete"
|
|
4500
4455
|
}
|
|
4501
4456
|
) }),
|
|
4502
|
-
/* @__PURE__ */
|
|
4457
|
+
/* @__PURE__ */ jsx45("div", { children: props.onClick && /* @__PURE__ */ jsx45(
|
|
4503
4458
|
Button_default,
|
|
4504
4459
|
{
|
|
4505
4460
|
onValidate,
|
|
@@ -4516,7 +4471,7 @@ var DataForm = (props) => {
|
|
|
4516
4471
|
var DataForm_default = DataForm;
|
|
4517
4472
|
|
|
4518
4473
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
4519
|
-
import { jsx as
|
|
4474
|
+
import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4520
4475
|
function getAction(actions, code) {
|
|
4521
4476
|
return actions?.find((a) => a.actionCode === code);
|
|
4522
4477
|
}
|
|
@@ -4543,8 +4498,8 @@ var DataFormRenderer = ({
|
|
|
4543
4498
|
);
|
|
4544
4499
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
4545
4500
|
return /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
|
|
4546
|
-
widgetProps && /* @__PURE__ */
|
|
4547
|
-
/* @__PURE__ */
|
|
4501
|
+
widgetProps && /* @__PURE__ */ jsx46(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
4502
|
+
/* @__PURE__ */ jsx46(
|
|
4548
4503
|
DataForm_default,
|
|
4549
4504
|
{
|
|
4550
4505
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|