@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260829044749 → 0.8.1-dev.20260829085511
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CommentRendererClient-JBEXVDPU.mjs → CommentRendererClient-IAXFBEMF.mjs} +3 -1
- package/dist/{CommentRendererClient-LO3DHVJE.mjs → CommentRendererClient-XPZN5L64.mjs} +3 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +768 -690
- package/dist/index.mjs +352 -276
- package/dist/server.d.mts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +545 -467
- package/dist/server.mjs +196 -120
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -78,7 +78,8 @@ var ViewControlTypes = {
|
|
|
78
78
|
aiGeneratedSummary: "aiGeneratedSummary",
|
|
79
79
|
booleanView: "booleanView",
|
|
80
80
|
text: "text",
|
|
81
|
-
commentRenderer: "commentRenderer"
|
|
81
|
+
commentRenderer: "commentRenderer",
|
|
82
|
+
avatar: "avatar"
|
|
82
83
|
};
|
|
83
84
|
var ViewControlTypes_default = ViewControlTypes;
|
|
84
85
|
|
|
@@ -411,13 +412,87 @@ var TimeUntilStarts_default = TimeUntilStarts;
|
|
|
411
412
|
|
|
412
413
|
// src/components/controls/view/Commentrenderer.tsx
|
|
413
414
|
import dynamic5 from "next/dynamic";
|
|
414
|
-
var CommentRenderer = dynamic5(() => import("./CommentRendererClient-
|
|
415
|
+
var CommentRenderer = dynamic5(() => import("./CommentRendererClient-XPZN5L64.mjs"), {
|
|
415
416
|
ssr: false
|
|
416
417
|
});
|
|
417
418
|
var Commentrenderer_default = CommentRenderer;
|
|
418
419
|
|
|
419
|
-
// src/components/controls/view/
|
|
420
|
+
// src/components/controls/view/AvatarView.tsx
|
|
420
421
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
422
|
+
var AVATAR_COLORS = [
|
|
423
|
+
"#1abc9c",
|
|
424
|
+
"#2ecc71",
|
|
425
|
+
"#3498db",
|
|
426
|
+
"#9b59b6",
|
|
427
|
+
"#e67e22",
|
|
428
|
+
"#e74c3c",
|
|
429
|
+
"#16a085",
|
|
430
|
+
"#27ae60",
|
|
431
|
+
"#2980b9",
|
|
432
|
+
"#8e44ad",
|
|
433
|
+
"#f39c12",
|
|
434
|
+
"#d35400",
|
|
435
|
+
"#c0392b",
|
|
436
|
+
"#7f8c8d",
|
|
437
|
+
"#2c3e50"
|
|
438
|
+
];
|
|
439
|
+
var hashString = (text) => {
|
|
440
|
+
let hash = 0;
|
|
441
|
+
for (let i = 0; i < text.length; i += 1) {
|
|
442
|
+
hash = (hash << 5) - hash + text.charCodeAt(i);
|
|
443
|
+
hash |= 0;
|
|
444
|
+
}
|
|
445
|
+
return Math.abs(hash);
|
|
446
|
+
};
|
|
447
|
+
var getInitials = (text) => {
|
|
448
|
+
const words = text.trim().split(/\s+/).filter(Boolean);
|
|
449
|
+
if (words.length === 0) {
|
|
450
|
+
return "";
|
|
451
|
+
}
|
|
452
|
+
if (words.length === 1) {
|
|
453
|
+
return words[0].slice(0, 2).toUpperCase();
|
|
454
|
+
}
|
|
455
|
+
return (words[0][0] + words[words.length - 1][0]).toUpperCase();
|
|
456
|
+
};
|
|
457
|
+
var AvatarView = (props) => {
|
|
458
|
+
const text = props.value === null || props.value === void 0 ? "" : String(props.value).trim();
|
|
459
|
+
if (!text) {
|
|
460
|
+
return null;
|
|
461
|
+
}
|
|
462
|
+
const initials = getInitials(text);
|
|
463
|
+
const backgroundColor = AVATAR_COLORS[hashString(text) % AVATAR_COLORS.length];
|
|
464
|
+
const size = props.width ?? "2rem";
|
|
465
|
+
return /* @__PURE__ */ jsx15(
|
|
466
|
+
"span",
|
|
467
|
+
{
|
|
468
|
+
className: "avatar-view",
|
|
469
|
+
title: text,
|
|
470
|
+
"aria-label": text,
|
|
471
|
+
style: {
|
|
472
|
+
display: "inline-flex",
|
|
473
|
+
alignItems: "center",
|
|
474
|
+
justifyContent: "center",
|
|
475
|
+
width: size,
|
|
476
|
+
height: size,
|
|
477
|
+
borderRadius: "9999px",
|
|
478
|
+
backgroundColor,
|
|
479
|
+
color: "#fff",
|
|
480
|
+
fontWeight: 600,
|
|
481
|
+
fontSize: "0.75em",
|
|
482
|
+
lineHeight: 1,
|
|
483
|
+
textTransform: "uppercase",
|
|
484
|
+
userSelect: "none",
|
|
485
|
+
flexShrink: 0,
|
|
486
|
+
overflow: "hidden"
|
|
487
|
+
},
|
|
488
|
+
children: initials
|
|
489
|
+
}
|
|
490
|
+
);
|
|
491
|
+
};
|
|
492
|
+
var AvatarView_default = AvatarView;
|
|
493
|
+
|
|
494
|
+
// src/components/controls/view/ViewControl.tsx
|
|
495
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
421
496
|
var ViewControl = (props) => {
|
|
422
497
|
const ControlComponents = {
|
|
423
498
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -445,10 +520,11 @@ var ViewControl = (props) => {
|
|
|
445
520
|
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
446
521
|
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
447
522
|
[ViewControlTypes_default.text]: LineTextView_default,
|
|
448
|
-
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
523
|
+
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default,
|
|
524
|
+
[ViewControlTypes_default.avatar]: AvatarView_default
|
|
449
525
|
};
|
|
450
526
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
451
|
-
return /* @__PURE__ */
|
|
527
|
+
return /* @__PURE__ */ jsx16(React14.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx16(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
452
528
|
};
|
|
453
529
|
var ViewControl_default = ViewControl;
|
|
454
530
|
|
|
@@ -459,7 +535,7 @@ import React24 from "react";
|
|
|
459
535
|
import React16 from "react";
|
|
460
536
|
|
|
461
537
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
462
|
-
import { jsx as
|
|
538
|
+
import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
463
539
|
var TextNode = (props) => {
|
|
464
540
|
function cssStringToJson(cssString) {
|
|
465
541
|
const styleObject = {};
|
|
@@ -516,24 +592,24 @@ var TextNode = (props) => {
|
|
|
516
592
|
function renderWithLineBreaks(text) {
|
|
517
593
|
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs6("span", { children: [
|
|
518
594
|
line,
|
|
519
|
-
index < arr.length - 1 && /* @__PURE__ */
|
|
595
|
+
index < arr.length - 1 && /* @__PURE__ */ jsx17("br", {})
|
|
520
596
|
] }, index));
|
|
521
597
|
}
|
|
522
598
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
523
599
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
524
600
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
525
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */
|
|
601
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx17("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx17("sub", { children: content }) : content;
|
|
526
602
|
return (
|
|
527
603
|
// @ts-expect-error custom code
|
|
528
|
-
/* @__PURE__ */
|
|
604
|
+
/* @__PURE__ */ jsx17("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
529
605
|
);
|
|
530
606
|
};
|
|
531
607
|
var TextNode_default = TextNode;
|
|
532
608
|
|
|
533
609
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
534
|
-
import { jsx as
|
|
610
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
535
611
|
var LineBreakNode = () => {
|
|
536
|
-
return /* @__PURE__ */
|
|
612
|
+
return /* @__PURE__ */ jsx18("div", { className: "py-0.5 lg:py-1.5" });
|
|
537
613
|
};
|
|
538
614
|
var LineBreakNode_default = LineBreakNode;
|
|
539
615
|
|
|
@@ -542,7 +618,7 @@ import React15 from "react";
|
|
|
542
618
|
|
|
543
619
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
544
620
|
import dynamic6 from "next/dynamic";
|
|
545
|
-
import { jsx as
|
|
621
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
546
622
|
var HlsPlayer2 = dynamic6(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
547
623
|
var getNestedValue = (obj, path) => {
|
|
548
624
|
if (!obj || !path) return void 0;
|
|
@@ -575,7 +651,7 @@ var ImageNode = (props) => {
|
|
|
575
651
|
assets = [image];
|
|
576
652
|
}
|
|
577
653
|
if (assets && assets.length > 0) {
|
|
578
|
-
return /* @__PURE__ */
|
|
654
|
+
return /* @__PURE__ */ jsx19(
|
|
579
655
|
DeviceAssetSelector_default,
|
|
580
656
|
{
|
|
581
657
|
device: props.device,
|
|
@@ -616,7 +692,7 @@ var ImageNode = (props) => {
|
|
|
616
692
|
right: "justify-end"
|
|
617
693
|
};
|
|
618
694
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
619
|
-
const renderMedia = () => isHls ? /* @__PURE__ */
|
|
695
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ jsx19(
|
|
620
696
|
HlsPlayer2,
|
|
621
697
|
{
|
|
622
698
|
assetUrl: imageUrl,
|
|
@@ -629,7 +705,7 @@ var ImageNode = (props) => {
|
|
|
629
705
|
apiBaseUrl: props.apiBaseUrl,
|
|
630
706
|
session: props.session
|
|
631
707
|
}
|
|
632
|
-
) : /* @__PURE__ */
|
|
708
|
+
) : /* @__PURE__ */ jsx19(
|
|
633
709
|
"img",
|
|
634
710
|
{
|
|
635
711
|
style: styles,
|
|
@@ -642,7 +718,7 @@ var ImageNode = (props) => {
|
|
|
642
718
|
}
|
|
643
719
|
);
|
|
644
720
|
if (props.node.width) {
|
|
645
|
-
return /* @__PURE__ */
|
|
721
|
+
return /* @__PURE__ */ jsx19("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
646
722
|
}
|
|
647
723
|
return renderMedia();
|
|
648
724
|
};
|
|
@@ -650,7 +726,7 @@ var ImageNode_default = ImageNode;
|
|
|
650
726
|
|
|
651
727
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
652
728
|
import dynamic7 from "next/dynamic";
|
|
653
|
-
import { Fragment, jsx as
|
|
729
|
+
import { Fragment, jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
654
730
|
var LinkNodeButton = dynamic7(() => import("./LinkNodeButton-BEAX4I4C.mjs"), {
|
|
655
731
|
ssr: false
|
|
656
732
|
});
|
|
@@ -703,13 +779,13 @@ var LinkNode = (props) => {
|
|
|
703
779
|
const isButton = node.isButton === true;
|
|
704
780
|
const renderChildren = () => {
|
|
705
781
|
if (!node.children || node.children.length === 0) return null;
|
|
706
|
-
return /* @__PURE__ */
|
|
782
|
+
return /* @__PURE__ */ jsx20(Fragment, { children: node.children.map((childNode, index) => {
|
|
707
783
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
708
784
|
if (!SelectedNode) {
|
|
709
785
|
console.warn("Unknown node type:", childNode.type);
|
|
710
786
|
return null;
|
|
711
787
|
}
|
|
712
|
-
return /* @__PURE__ */
|
|
788
|
+
return /* @__PURE__ */ jsx20(React15.Fragment, { children: /* @__PURE__ */ jsx20(
|
|
713
789
|
SelectedNode,
|
|
714
790
|
{
|
|
715
791
|
node: childNode,
|
|
@@ -722,10 +798,10 @@ var LinkNode = (props) => {
|
|
|
722
798
|
};
|
|
723
799
|
const renderFallback = () => {
|
|
724
800
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
725
|
-
return /* @__PURE__ */
|
|
801
|
+
return /* @__PURE__ */ jsx20("span", { children: linkText });
|
|
726
802
|
}
|
|
727
803
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
728
|
-
return /* @__PURE__ */
|
|
804
|
+
return /* @__PURE__ */ jsx20("br", {});
|
|
729
805
|
}
|
|
730
806
|
return null;
|
|
731
807
|
};
|
|
@@ -764,10 +840,10 @@ var LinkNode = (props) => {
|
|
|
764
840
|
var LinkNode_default = LinkNode;
|
|
765
841
|
|
|
766
842
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
767
|
-
import { jsx as
|
|
843
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
768
844
|
var SVGIconNode = ({ node }) => {
|
|
769
845
|
if (!node?.svgCode) return null;
|
|
770
|
-
return /* @__PURE__ */
|
|
846
|
+
return /* @__PURE__ */ jsx21(
|
|
771
847
|
"span",
|
|
772
848
|
{
|
|
773
849
|
style: {
|
|
@@ -784,7 +860,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
784
860
|
|
|
785
861
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
786
862
|
import katex from "katex";
|
|
787
|
-
import { jsx as
|
|
863
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
788
864
|
var EquationNode = ({ node }) => {
|
|
789
865
|
const { equation, inline } = node;
|
|
790
866
|
let html = "";
|
|
@@ -799,7 +875,7 @@ var EquationNode = ({ node }) => {
|
|
|
799
875
|
});
|
|
800
876
|
}
|
|
801
877
|
if (inline) {
|
|
802
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ jsx22(
|
|
803
879
|
"span",
|
|
804
880
|
{
|
|
805
881
|
className: "katex-inline",
|
|
@@ -807,7 +883,7 @@ var EquationNode = ({ node }) => {
|
|
|
807
883
|
}
|
|
808
884
|
);
|
|
809
885
|
}
|
|
810
|
-
return /* @__PURE__ */
|
|
886
|
+
return /* @__PURE__ */ jsx22(
|
|
811
887
|
"div",
|
|
812
888
|
{
|
|
813
889
|
className: "katex-block my-3 text-center",
|
|
@@ -818,7 +894,7 @@ var EquationNode = ({ node }) => {
|
|
|
818
894
|
var EquationNode_default = EquationNode;
|
|
819
895
|
|
|
820
896
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
821
|
-
import { jsx as
|
|
897
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
822
898
|
function getNestedProperty(obj, path) {
|
|
823
899
|
if (!obj || !path) return null;
|
|
824
900
|
if (path.includes(".")) {
|
|
@@ -831,7 +907,7 @@ function getNestedProperty(obj, path) {
|
|
|
831
907
|
}
|
|
832
908
|
const value = obj[path];
|
|
833
909
|
if (Array.isArray(value)) {
|
|
834
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
910
|
+
return value.map((item, index) => /* @__PURE__ */ jsx23("div", { children: String(item) }, index));
|
|
835
911
|
}
|
|
836
912
|
return value;
|
|
837
913
|
}
|
|
@@ -894,7 +970,7 @@ var DatafieldNode = (props) => {
|
|
|
894
970
|
const dataType = props.node.dataType;
|
|
895
971
|
if (isEmptyValue) return null;
|
|
896
972
|
if (dataType === "rawContent") {
|
|
897
|
-
return /* @__PURE__ */
|
|
973
|
+
return /* @__PURE__ */ jsx23(
|
|
898
974
|
PageBodyRenderer_default,
|
|
899
975
|
{
|
|
900
976
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -910,13 +986,13 @@ var DatafieldNode = (props) => {
|
|
|
910
986
|
}
|
|
911
987
|
);
|
|
912
988
|
}
|
|
913
|
-
return /* @__PURE__ */
|
|
989
|
+
return /* @__PURE__ */ jsx23(
|
|
914
990
|
"span",
|
|
915
991
|
{
|
|
916
992
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
917
993
|
style: styles,
|
|
918
994
|
title,
|
|
919
|
-
children: /* @__PURE__ */
|
|
995
|
+
children: /* @__PURE__ */ jsx23(
|
|
920
996
|
ViewControl_default,
|
|
921
997
|
{
|
|
922
998
|
controlType: dataType,
|
|
@@ -931,7 +1007,7 @@ var DatafieldNode = (props) => {
|
|
|
931
1007
|
var DatafieldNode_default = DatafieldNode;
|
|
932
1008
|
|
|
933
1009
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
934
|
-
import { Fragment as Fragment2, jsx as
|
|
1010
|
+
import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
935
1011
|
var ParagraphNode = (props) => {
|
|
936
1012
|
const NodeTypes2 = {
|
|
937
1013
|
["text"]: TextNode_default,
|
|
@@ -951,9 +1027,9 @@ var ParagraphNode = (props) => {
|
|
|
951
1027
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
952
1028
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
953
1029
|
if (isInlineOnlyParent) {
|
|
954
|
-
return /* @__PURE__ */
|
|
1030
|
+
return /* @__PURE__ */ jsx24(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
955
1031
|
const SelectedNode = NodeTypes2[node.type];
|
|
956
|
-
return /* @__PURE__ */
|
|
1032
|
+
return /* @__PURE__ */ jsx24(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
|
|
957
1033
|
SelectedNode,
|
|
958
1034
|
{
|
|
959
1035
|
node,
|
|
@@ -969,7 +1045,7 @@ var ParagraphNode = (props) => {
|
|
|
969
1045
|
return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
|
|
970
1046
|
hasChildren && props.node.children.map((node, index) => {
|
|
971
1047
|
const SelectedNode = NodeTypes2[node.type];
|
|
972
|
-
return /* @__PURE__ */
|
|
1048
|
+
return /* @__PURE__ */ jsx24(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(
|
|
973
1049
|
SelectedNode,
|
|
974
1050
|
{
|
|
975
1051
|
node,
|
|
@@ -981,14 +1057,14 @@ var ParagraphNode = (props) => {
|
|
|
981
1057
|
}
|
|
982
1058
|
) }, index);
|
|
983
1059
|
}),
|
|
984
|
-
!hasChildren && /* @__PURE__ */
|
|
1060
|
+
!hasChildren && /* @__PURE__ */ jsx24("div", { className: "py-1.5 lg:py-2" })
|
|
985
1061
|
] });
|
|
986
1062
|
};
|
|
987
1063
|
var ParagraphNode_default = ParagraphNode;
|
|
988
1064
|
|
|
989
1065
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
990
1066
|
import React17 from "react";
|
|
991
|
-
import { Fragment as Fragment3, jsx as
|
|
1067
|
+
import { Fragment as Fragment3, jsx as jsx25 } from "react/jsx-runtime";
|
|
992
1068
|
var HeadingNode = (props) => {
|
|
993
1069
|
const NodeTypes2 = {
|
|
994
1070
|
["text"]: TextNode_default,
|
|
@@ -1004,12 +1080,12 @@ var HeadingNode = (props) => {
|
|
|
1004
1080
|
{
|
|
1005
1081
|
}
|
|
1006
1082
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
1007
|
-
return /* @__PURE__ */
|
|
1083
|
+
return /* @__PURE__ */ jsx25(Fragment3, { children: React17.createElement(
|
|
1008
1084
|
HeadingTag,
|
|
1009
1085
|
{ className: formatClasses },
|
|
1010
1086
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
1011
1087
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
1012
|
-
return /* @__PURE__ */
|
|
1088
|
+
return /* @__PURE__ */ jsx25(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1013
1089
|
})
|
|
1014
1090
|
) });
|
|
1015
1091
|
};
|
|
@@ -1020,7 +1096,7 @@ import React19 from "react";
|
|
|
1020
1096
|
|
|
1021
1097
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
1022
1098
|
import React18 from "react";
|
|
1023
|
-
import { jsx as
|
|
1099
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1024
1100
|
var ListItemNode = (props) => {
|
|
1025
1101
|
const NodeTypes2 = {
|
|
1026
1102
|
text: TextNode_default,
|
|
@@ -1037,37 +1113,37 @@ var ListItemNode = (props) => {
|
|
|
1037
1113
|
liStyle.fontSize = match[1].trim();
|
|
1038
1114
|
}
|
|
1039
1115
|
}
|
|
1040
|
-
return /* @__PURE__ */
|
|
1116
|
+
return /* @__PURE__ */ jsx26("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
1041
1117
|
const SelectedNode = NodeTypes2[node.type];
|
|
1042
1118
|
if (node.type === "linebreak") {
|
|
1043
1119
|
if (!foundFirstBreak) {
|
|
1044
1120
|
foundFirstBreak = true;
|
|
1045
|
-
return /* @__PURE__ */
|
|
1121
|
+
return /* @__PURE__ */ jsx26("div", {}, index);
|
|
1046
1122
|
} else {
|
|
1047
|
-
return /* @__PURE__ */
|
|
1123
|
+
return /* @__PURE__ */ jsx26("div", { className: "py-1 lg:py-2" }, index);
|
|
1048
1124
|
}
|
|
1049
1125
|
} else {
|
|
1050
1126
|
foundFirstBreak = false;
|
|
1051
|
-
return /* @__PURE__ */
|
|
1127
|
+
return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1052
1128
|
}
|
|
1053
1129
|
}) });
|
|
1054
1130
|
};
|
|
1055
1131
|
var ListItemNode_default = ListItemNode;
|
|
1056
1132
|
|
|
1057
1133
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1058
|
-
import { jsx as
|
|
1134
|
+
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1059
1135
|
var ListNode = (props) => {
|
|
1060
1136
|
const NodeTypes2 = {
|
|
1061
1137
|
listitem: ListItemNode_default
|
|
1062
1138
|
};
|
|
1063
1139
|
return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
|
|
1064
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1140
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx27("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1065
1141
|
const SelectedNode = NodeTypes2[node.type];
|
|
1066
|
-
return /* @__PURE__ */
|
|
1142
|
+
return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1067
1143
|
}) }),
|
|
1068
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1144
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx27("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1069
1145
|
const SelectedNode = NodeTypes2[node.type];
|
|
1070
|
-
return /* @__PURE__ */
|
|
1146
|
+
return /* @__PURE__ */ jsx27(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1071
1147
|
}) })
|
|
1072
1148
|
] });
|
|
1073
1149
|
};
|
|
@@ -1075,16 +1151,16 @@ var ListNode_default = ListNode;
|
|
|
1075
1151
|
|
|
1076
1152
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1077
1153
|
import React20 from "react";
|
|
1078
|
-
import { jsx as
|
|
1154
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1079
1155
|
var QuoteNode = (props) => {
|
|
1080
1156
|
const NodeTypes2 = {
|
|
1081
1157
|
["text"]: TextNode_default,
|
|
1082
1158
|
["linebreak"]: LineBreakNode_default,
|
|
1083
1159
|
["link"]: LinkNode_default
|
|
1084
1160
|
};
|
|
1085
|
-
return /* @__PURE__ */
|
|
1161
|
+
return /* @__PURE__ */ jsx28("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1086
1162
|
const SelectedNode = NodeTypes2[node.type];
|
|
1087
|
-
return /* @__PURE__ */
|
|
1163
|
+
return /* @__PURE__ */ jsx28(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1088
1164
|
}) });
|
|
1089
1165
|
};
|
|
1090
1166
|
var QuoteNode_default = QuoteNode;
|
|
@@ -1092,11 +1168,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
1092
1168
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1093
1169
|
import React21 from "react";
|
|
1094
1170
|
import dynamic8 from "next/dynamic";
|
|
1095
|
-
import { jsx as
|
|
1171
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1096
1172
|
var CopyButton = dynamic8(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1097
1173
|
ssr: false,
|
|
1098
1174
|
// optional: fallback UI while loading
|
|
1099
|
-
loading: () => /* @__PURE__ */
|
|
1175
|
+
loading: () => /* @__PURE__ */ jsx29("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1100
1176
|
});
|
|
1101
1177
|
var CodeNode = (props) => {
|
|
1102
1178
|
const NodeTypes2 = {
|
|
@@ -1112,12 +1188,12 @@ var CodeNode = (props) => {
|
|
|
1112
1188
|
}).join("") ?? "";
|
|
1113
1189
|
return /* @__PURE__ */ jsxs10("div", { children: [
|
|
1114
1190
|
/* @__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: [
|
|
1115
|
-
/* @__PURE__ */
|
|
1116
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ jsx29("span", { children: "Code Snippet" }),
|
|
1192
|
+
/* @__PURE__ */ jsx29(CopyButton, { text: textContent })
|
|
1117
1193
|
] }),
|
|
1118
|
-
/* @__PURE__ */
|
|
1194
|
+
/* @__PURE__ */ jsx29("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) => {
|
|
1119
1195
|
const SelectedNode = NodeTypes2[node.type];
|
|
1120
|
-
return /* @__PURE__ */
|
|
1196
|
+
return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(
|
|
1121
1197
|
SelectedNode,
|
|
1122
1198
|
{
|
|
1123
1199
|
node,
|
|
@@ -1132,15 +1208,15 @@ var CodeNode = (props) => {
|
|
|
1132
1208
|
var CodeNode_default = CodeNode;
|
|
1133
1209
|
|
|
1134
1210
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1135
|
-
import { jsx as
|
|
1211
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1136
1212
|
var HorizontalRuleNode = () => {
|
|
1137
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ jsx30("hr", {});
|
|
1138
1214
|
};
|
|
1139
1215
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1140
1216
|
|
|
1141
1217
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1142
1218
|
import React22 from "react";
|
|
1143
|
-
import { Fragment as Fragment4, jsx as
|
|
1219
|
+
import { Fragment as Fragment4, jsx as jsx31 } from "react/jsx-runtime";
|
|
1144
1220
|
var WidgetNode = (props) => {
|
|
1145
1221
|
const getWidgetParameters = () => {
|
|
1146
1222
|
const widgetInputParameters = {
|
|
@@ -1204,7 +1280,7 @@ var WidgetNode = (props) => {
|
|
|
1204
1280
|
};
|
|
1205
1281
|
const widgetCode = props.node?.widgetCode;
|
|
1206
1282
|
if (!widgetCode) {
|
|
1207
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ jsx31(Fragment4, { children: "Invalid widget" });
|
|
1208
1284
|
}
|
|
1209
1285
|
const widgetParams = getWidgetParameters();
|
|
1210
1286
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1213,7 +1289,7 @@ var WidgetNode = (props) => {
|
|
|
1213
1289
|
}
|
|
1214
1290
|
return (
|
|
1215
1291
|
// eslint-disable-next-line react-hooks/static-components
|
|
1216
|
-
/* @__PURE__ */
|
|
1292
|
+
/* @__PURE__ */ jsx31(React22.Fragment, { children: /* @__PURE__ */ jsx31(
|
|
1217
1293
|
WidgetRenderer,
|
|
1218
1294
|
{
|
|
1219
1295
|
params: widgetParams,
|
|
@@ -1235,7 +1311,7 @@ import React23 from "react";
|
|
|
1235
1311
|
|
|
1236
1312
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1237
1313
|
import dynamic9 from "next/dynamic";
|
|
1238
|
-
import { jsx as
|
|
1314
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1239
1315
|
var IframeClient = dynamic9(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
1240
1316
|
ssr: false
|
|
1241
1317
|
});
|
|
@@ -1248,7 +1324,7 @@ var EmbedNode = (props) => {
|
|
|
1248
1324
|
} else {
|
|
1249
1325
|
src = props.node.embedSrc;
|
|
1250
1326
|
}
|
|
1251
|
-
return /* @__PURE__ */
|
|
1327
|
+
return /* @__PURE__ */ jsx32("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx32(IframeClient, { src }) });
|
|
1252
1328
|
};
|
|
1253
1329
|
var EmbedNode_default = EmbedNode;
|
|
1254
1330
|
|
|
@@ -1441,10 +1517,10 @@ var PathUtility = class {
|
|
|
1441
1517
|
var PathUtility_default = new PathUtility();
|
|
1442
1518
|
|
|
1443
1519
|
// src/components/NoDataFound.tsx
|
|
1444
|
-
import { jsx as
|
|
1520
|
+
import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1445
1521
|
var NoDataFound = () => {
|
|
1446
1522
|
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1447
|
-
/* @__PURE__ */
|
|
1523
|
+
/* @__PURE__ */ jsx33("div", { className: "mb-5", children: /* @__PURE__ */ jsx33("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
|
|
1448
1524
|
"svg",
|
|
1449
1525
|
{
|
|
1450
1526
|
className: "w-10 h-10",
|
|
@@ -1452,7 +1528,7 @@ var NoDataFound = () => {
|
|
|
1452
1528
|
stroke: "currentColor",
|
|
1453
1529
|
viewBox: "0 0 24 24",
|
|
1454
1530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1455
|
-
children: /* @__PURE__ */
|
|
1531
|
+
children: /* @__PURE__ */ jsx33(
|
|
1456
1532
|
"path",
|
|
1457
1533
|
{
|
|
1458
1534
|
strokeLinecap: "round",
|
|
@@ -1463,15 +1539,15 @@ var NoDataFound = () => {
|
|
|
1463
1539
|
)
|
|
1464
1540
|
}
|
|
1465
1541
|
) }) }),
|
|
1466
|
-
/* @__PURE__ */
|
|
1467
|
-
/* @__PURE__ */
|
|
1542
|
+
/* @__PURE__ */ jsx33("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1543
|
+
/* @__PURE__ */ jsx33("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1468
1544
|
] });
|
|
1469
1545
|
};
|
|
1470
1546
|
var NoDataFound_default = NoDataFound;
|
|
1471
1547
|
|
|
1472
1548
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1473
1549
|
import dynamic10 from "next/dynamic";
|
|
1474
|
-
import { Fragment as Fragment5, jsx as
|
|
1550
|
+
import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1475
1551
|
var HlsPlayer3 = dynamic10(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
1476
1552
|
var deviceToMediaQuery = (device) => {
|
|
1477
1553
|
switch (device) {
|
|
@@ -1628,7 +1704,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1628
1704
|
};
|
|
1629
1705
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1630
1706
|
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1631
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1707
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx34(Fragment5, { children: /* @__PURE__ */ jsx34(
|
|
1632
1708
|
HlsPlayer3,
|
|
1633
1709
|
{
|
|
1634
1710
|
sources: hlsSources,
|
|
@@ -1643,7 +1719,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1643
1719
|
styles: hlsStyles
|
|
1644
1720
|
}
|
|
1645
1721
|
) }),
|
|
1646
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1722
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx34(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
|
|
1647
1723
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1648
1724
|
const match = staticSources.find(
|
|
1649
1725
|
(img) => img.device === deviceKey
|
|
@@ -1659,7 +1735,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1659
1735
|
if (!srcUrl) {
|
|
1660
1736
|
return null;
|
|
1661
1737
|
}
|
|
1662
|
-
return /* @__PURE__ */
|
|
1738
|
+
return /* @__PURE__ */ jsx34(
|
|
1663
1739
|
"source",
|
|
1664
1740
|
{
|
|
1665
1741
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1684,7 +1760,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1684
1760
|
if (img.borderRadius) {
|
|
1685
1761
|
styles.borderRadius = img.borderRadius;
|
|
1686
1762
|
}
|
|
1687
|
-
return /* @__PURE__ */
|
|
1763
|
+
return /* @__PURE__ */ jsx34(
|
|
1688
1764
|
"img",
|
|
1689
1765
|
{
|
|
1690
1766
|
loading: "lazy",
|
|
@@ -1699,7 +1775,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1699
1775
|
})()
|
|
1700
1776
|
] }) : (
|
|
1701
1777
|
/* Case 2: Only device-specific images exist */
|
|
1702
|
-
/* @__PURE__ */
|
|
1778
|
+
/* @__PURE__ */ jsx34(Fragment5, { children: staticSources.map((img, index) => {
|
|
1703
1779
|
const resolved = resolveImage(img);
|
|
1704
1780
|
const imageUrl = resolved?.imageUrl;
|
|
1705
1781
|
if (!imageUrl) {
|
|
@@ -1726,7 +1802,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1726
1802
|
default:
|
|
1727
1803
|
display = "block";
|
|
1728
1804
|
}
|
|
1729
|
-
return /* @__PURE__ */
|
|
1805
|
+
return /* @__PURE__ */ jsx34(
|
|
1730
1806
|
"img",
|
|
1731
1807
|
{
|
|
1732
1808
|
loading: "lazy",
|
|
@@ -1866,7 +1942,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1866
1942
|
};
|
|
1867
1943
|
|
|
1868
1944
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1869
|
-
import { Fragment as Fragment6, jsx as
|
|
1945
|
+
import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1870
1946
|
var getNestedValue5 = (obj, path) => {
|
|
1871
1947
|
if (!obj || !path) return void 0;
|
|
1872
1948
|
return path.split(".").reduce((current, key) => {
|
|
@@ -1880,14 +1956,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1880
1956
|
viewBox: "0 0 48 48",
|
|
1881
1957
|
className: "w-10 h-10",
|
|
1882
1958
|
children: [
|
|
1883
|
-
/* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ jsx35(
|
|
1884
1960
|
"path",
|
|
1885
1961
|
{
|
|
1886
1962
|
fill: "#e53935",
|
|
1887
1963
|
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"
|
|
1888
1964
|
}
|
|
1889
1965
|
),
|
|
1890
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ jsx35(
|
|
1891
1967
|
"path",
|
|
1892
1968
|
{
|
|
1893
1969
|
fill: "#fff",
|
|
@@ -1904,48 +1980,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1904
1980
|
viewBox: "0 0 48 48",
|
|
1905
1981
|
className: "w-10 h-10",
|
|
1906
1982
|
children: [
|
|
1907
|
-
/* @__PURE__ */
|
|
1983
|
+
/* @__PURE__ */ jsx35(
|
|
1908
1984
|
"path",
|
|
1909
1985
|
{
|
|
1910
1986
|
fill: "#169154",
|
|
1911
1987
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1912
1988
|
}
|
|
1913
1989
|
),
|
|
1914
|
-
/* @__PURE__ */
|
|
1990
|
+
/* @__PURE__ */ jsx35(
|
|
1915
1991
|
"path",
|
|
1916
1992
|
{
|
|
1917
1993
|
fill: "#18482a",
|
|
1918
1994
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1919
1995
|
}
|
|
1920
1996
|
),
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
/* @__PURE__ */
|
|
1997
|
+
/* @__PURE__ */ jsx35("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1998
|
+
/* @__PURE__ */ jsx35("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1923
1999
|
/* @__PURE__ */ jsxs13("g", { children: [
|
|
1924
|
-
/* @__PURE__ */
|
|
2000
|
+
/* @__PURE__ */ jsx35(
|
|
1925
2001
|
"path",
|
|
1926
2002
|
{
|
|
1927
2003
|
fill: "#29c27f",
|
|
1928
2004
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1929
2005
|
}
|
|
1930
2006
|
),
|
|
1931
|
-
/* @__PURE__ */
|
|
2007
|
+
/* @__PURE__ */ jsx35(
|
|
1932
2008
|
"path",
|
|
1933
2009
|
{
|
|
1934
2010
|
fill: "#27663f",
|
|
1935
2011
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1936
2012
|
}
|
|
1937
2013
|
),
|
|
1938
|
-
/* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ jsx35("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
2015
|
+
/* @__PURE__ */ jsx35("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1940
2016
|
] }),
|
|
1941
|
-
/* @__PURE__ */
|
|
2017
|
+
/* @__PURE__ */ jsx35(
|
|
1942
2018
|
"path",
|
|
1943
2019
|
{
|
|
1944
2020
|
fill: "#0c7238",
|
|
1945
2021
|
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"
|
|
1946
2022
|
}
|
|
1947
2023
|
),
|
|
1948
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ jsx35(
|
|
1949
2025
|
"path",
|
|
1950
2026
|
{
|
|
1951
2027
|
fill: "#fff",
|
|
@@ -1963,7 +2039,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1963
2039
|
className: "w-10 h-10",
|
|
1964
2040
|
baseProfile: "basic",
|
|
1965
2041
|
children: [
|
|
1966
|
-
/* @__PURE__ */
|
|
2042
|
+
/* @__PURE__ */ jsx35(
|
|
1967
2043
|
"path",
|
|
1968
2044
|
{
|
|
1969
2045
|
fill: "#283593",
|
|
@@ -1981,19 +2057,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1981
2057
|
gradientTransform: "translate(0 -339.89)",
|
|
1982
2058
|
gradientUnits: "userSpaceOnUse",
|
|
1983
2059
|
children: [
|
|
1984
|
-
/* @__PURE__ */
|
|
1985
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ jsx35("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
2061
|
+
/* @__PURE__ */ jsx35("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
1986
2062
|
]
|
|
1987
2063
|
}
|
|
1988
2064
|
),
|
|
1989
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ jsx35(
|
|
1990
2066
|
"path",
|
|
1991
2067
|
{
|
|
1992
2068
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
1993
2069
|
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"
|
|
1994
2070
|
}
|
|
1995
2071
|
),
|
|
1996
|
-
/* @__PURE__ */
|
|
2072
|
+
/* @__PURE__ */ jsx35(
|
|
1997
2073
|
"path",
|
|
1998
2074
|
{
|
|
1999
2075
|
fill: "#1e88e5",
|
|
@@ -2001,21 +2077,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2001
2077
|
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"
|
|
2002
2078
|
}
|
|
2003
2079
|
),
|
|
2004
|
-
/* @__PURE__ */
|
|
2080
|
+
/* @__PURE__ */ jsx35(
|
|
2005
2081
|
"path",
|
|
2006
2082
|
{
|
|
2007
2083
|
fill: "#00e5ff",
|
|
2008
2084
|
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"
|
|
2009
2085
|
}
|
|
2010
2086
|
),
|
|
2011
|
-
/* @__PURE__ */
|
|
2087
|
+
/* @__PURE__ */ jsx35(
|
|
2012
2088
|
"path",
|
|
2013
2089
|
{
|
|
2014
2090
|
fill: "#1565c0",
|
|
2015
2091
|
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"
|
|
2016
2092
|
}
|
|
2017
2093
|
),
|
|
2018
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ jsx35(
|
|
2019
2095
|
"path",
|
|
2020
2096
|
{
|
|
2021
2097
|
fill: "#fff",
|
|
@@ -2032,8 +2108,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2032
2108
|
viewBox: "0 0 48 48",
|
|
2033
2109
|
className: "w-10 h-10",
|
|
2034
2110
|
children: [
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2111
|
+
/* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2112
|
+
/* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
2037
2113
|
]
|
|
2038
2114
|
}
|
|
2039
2115
|
);
|
|
@@ -2044,23 +2120,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2044
2120
|
viewBox: "0 0 48 48",
|
|
2045
2121
|
className: "w-10 h-10",
|
|
2046
2122
|
children: [
|
|
2047
|
-
/* @__PURE__ */
|
|
2123
|
+
/* @__PURE__ */ jsx35(
|
|
2048
2124
|
"path",
|
|
2049
2125
|
{
|
|
2050
2126
|
fill: "#dc4c2c",
|
|
2051
2127
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2052
2128
|
}
|
|
2053
2129
|
),
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
/* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2130
|
+
/* @__PURE__ */ jsx35("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2131
|
+
/* @__PURE__ */ jsx35("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2132
|
+
/* @__PURE__ */ jsx35(
|
|
2057
2133
|
"path",
|
|
2058
2134
|
{
|
|
2059
2135
|
fill: "#9b341f",
|
|
2060
2136
|
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"
|
|
2061
2137
|
}
|
|
2062
2138
|
),
|
|
2063
|
-
/* @__PURE__ */
|
|
2139
|
+
/* @__PURE__ */ jsx35(
|
|
2064
2140
|
"path",
|
|
2065
2141
|
{
|
|
2066
2142
|
fill: "#fff",
|
|
@@ -2077,9 +2153,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2077
2153
|
viewBox: "0 0 48 48",
|
|
2078
2154
|
className: "w-10 h-10",
|
|
2079
2155
|
children: [
|
|
2080
|
-
/* @__PURE__ */
|
|
2081
|
-
/* @__PURE__ */
|
|
2082
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ jsx35("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2157
|
+
/* @__PURE__ */ jsx35("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2158
|
+
/* @__PURE__ */ jsx35(
|
|
2083
2159
|
"path",
|
|
2084
2160
|
{
|
|
2085
2161
|
fill: "#1976D2",
|
|
@@ -2099,14 +2175,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2099
2175
|
version: "1.0",
|
|
2100
2176
|
className: "w-10 h-10",
|
|
2101
2177
|
children: [
|
|
2102
|
-
/* @__PURE__ */
|
|
2178
|
+
/* @__PURE__ */ jsx35("defs", { children: /* @__PURE__ */ jsx35("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx35(
|
|
2103
2179
|
"path",
|
|
2104
2180
|
{
|
|
2105
2181
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2106
2182
|
"clip-rule": "nonzero"
|
|
2107
2183
|
}
|
|
2108
2184
|
) }) }),
|
|
2109
|
-
/* @__PURE__ */
|
|
2185
|
+
/* @__PURE__ */ jsx35("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx35(
|
|
2110
2186
|
"path",
|
|
2111
2187
|
{
|
|
2112
2188
|
fill: "#ff9100",
|
|
@@ -2115,7 +2191,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2115
2191
|
"fill-rule": "nonzero"
|
|
2116
2192
|
}
|
|
2117
2193
|
) }),
|
|
2118
|
-
/* @__PURE__ */
|
|
2194
|
+
/* @__PURE__ */ jsx35(
|
|
2119
2195
|
"path",
|
|
2120
2196
|
{
|
|
2121
2197
|
fill: "#fbe9e7",
|
|
@@ -2124,7 +2200,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2124
2200
|
"fill-rule": "nonzero"
|
|
2125
2201
|
}
|
|
2126
2202
|
),
|
|
2127
|
-
/* @__PURE__ */
|
|
2203
|
+
/* @__PURE__ */ jsx35(
|
|
2128
2204
|
"path",
|
|
2129
2205
|
{
|
|
2130
2206
|
fill: "#ffe0b2",
|
|
@@ -2133,7 +2209,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2133
2209
|
"fill-rule": "nonzero"
|
|
2134
2210
|
}
|
|
2135
2211
|
),
|
|
2136
|
-
/* @__PURE__ */
|
|
2212
|
+
/* @__PURE__ */ jsx35(
|
|
2137
2213
|
"path",
|
|
2138
2214
|
{
|
|
2139
2215
|
fill: "#ffe0b2",
|
|
@@ -2142,7 +2218,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2142
2218
|
"fill-rule": "nonzero"
|
|
2143
2219
|
}
|
|
2144
2220
|
),
|
|
2145
|
-
/* @__PURE__ */
|
|
2221
|
+
/* @__PURE__ */ jsx35(
|
|
2146
2222
|
"path",
|
|
2147
2223
|
{
|
|
2148
2224
|
fill: "#ffe0b2",
|
|
@@ -2217,8 +2293,8 @@ var DocumentNode = (props) => {
|
|
|
2217
2293
|
}
|
|
2218
2294
|
}
|
|
2219
2295
|
if (documents.length === 0) {
|
|
2220
|
-
return /* @__PURE__ */
|
|
2221
|
-
/* @__PURE__ */
|
|
2296
|
+
return /* @__PURE__ */ jsx35(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2297
|
+
/* @__PURE__ */ jsx35("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx35(
|
|
2222
2298
|
"svg",
|
|
2223
2299
|
{
|
|
2224
2300
|
className: "w-5 h-5",
|
|
@@ -2226,7 +2302,7 @@ var DocumentNode = (props) => {
|
|
|
2226
2302
|
stroke: "currentColor",
|
|
2227
2303
|
viewBox: "0 0 24 24",
|
|
2228
2304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2229
|
-
children: /* @__PURE__ */
|
|
2305
|
+
children: /* @__PURE__ */ jsx35(
|
|
2230
2306
|
"path",
|
|
2231
2307
|
{
|
|
2232
2308
|
strokeLinecap: "round",
|
|
@@ -2237,11 +2313,11 @@ var DocumentNode = (props) => {
|
|
|
2237
2313
|
)
|
|
2238
2314
|
}
|
|
2239
2315
|
) }),
|
|
2240
|
-
/* @__PURE__ */
|
|
2241
|
-
/* @__PURE__ */
|
|
2316
|
+
/* @__PURE__ */ jsx35("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2317
|
+
/* @__PURE__ */ jsx35("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2242
2318
|
] }) });
|
|
2243
2319
|
}
|
|
2244
|
-
return /* @__PURE__ */
|
|
2320
|
+
return /* @__PURE__ */ jsx35("div", { className: "", children: documents.map((doc, index) => {
|
|
2245
2321
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2246
2322
|
props.assetBaseUrl,
|
|
2247
2323
|
doc.assetUrl
|
|
@@ -2265,8 +2341,8 @@ var DocumentNode = (props) => {
|
|
|
2265
2341
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2266
2342
|
children: [
|
|
2267
2343
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
|
|
2268
|
-
/* @__PURE__ */
|
|
2269
|
-
/* @__PURE__ */
|
|
2344
|
+
/* @__PURE__ */ jsx35("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx35(Icon, {}) }),
|
|
2345
|
+
/* @__PURE__ */ jsx35("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx35("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2270
2346
|
] }),
|
|
2271
2347
|
/* @__PURE__ */ jsxs13(
|
|
2272
2348
|
"a",
|
|
@@ -2284,7 +2360,7 @@ var DocumentNode = (props) => {
|
|
|
2284
2360
|
stroke: "currentColor",
|
|
2285
2361
|
viewBox: "0 0 24 24",
|
|
2286
2362
|
children: [
|
|
2287
|
-
/* @__PURE__ */
|
|
2363
|
+
/* @__PURE__ */ jsx35(
|
|
2288
2364
|
"path",
|
|
2289
2365
|
{
|
|
2290
2366
|
strokeLinecap: "round",
|
|
@@ -2293,7 +2369,7 @@ var DocumentNode = (props) => {
|
|
|
2293
2369
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2294
2370
|
}
|
|
2295
2371
|
),
|
|
2296
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ jsx35(
|
|
2297
2373
|
"path",
|
|
2298
2374
|
{
|
|
2299
2375
|
strokeLinecap: "round",
|
|
@@ -2319,13 +2395,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
2319
2395
|
|
|
2320
2396
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2321
2397
|
import dynamic11 from "next/dynamic";
|
|
2322
|
-
import { jsx as
|
|
2398
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2323
2399
|
var IframeClient2 = dynamic11(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
2324
2400
|
ssr: false
|
|
2325
2401
|
});
|
|
2326
2402
|
var GoogleMapNode = (props) => {
|
|
2327
2403
|
let src = props.node.embedUrl;
|
|
2328
|
-
return /* @__PURE__ */
|
|
2404
|
+
return /* @__PURE__ */ jsx36("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx36(
|
|
2329
2405
|
IframeClient2,
|
|
2330
2406
|
{
|
|
2331
2407
|
src,
|
|
@@ -2337,7 +2413,7 @@ var GoogleMapNode = (props) => {
|
|
|
2337
2413
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2338
2414
|
|
|
2339
2415
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2340
|
-
import { jsx as
|
|
2416
|
+
import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2341
2417
|
var Pagination = dynamic12(() => import("./Pagination-T7Z2NXKO.mjs"), { ssr: true });
|
|
2342
2418
|
var DataBindingControls = dynamic12(() => import("./DataBindingControls-JLAO3NJL.mjs"), {
|
|
2343
2419
|
ssr: true
|
|
@@ -2596,7 +2672,7 @@ var DivContainer = async (props) => {
|
|
|
2596
2672
|
response = await serviceClient.get(endpoint);
|
|
2597
2673
|
result = response?.result;
|
|
2598
2674
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2599
|
-
return /* @__PURE__ */
|
|
2675
|
+
return /* @__PURE__ */ jsx37(NoDataFound_default, {});
|
|
2600
2676
|
}
|
|
2601
2677
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2602
2678
|
childCollectionData = getNestedValue6(
|
|
@@ -2616,7 +2692,7 @@ var DivContainer = async (props) => {
|
|
|
2616
2692
|
}
|
|
2617
2693
|
const SelectedNode = NodeTypes2[node.type];
|
|
2618
2694
|
if (!SelectedNode) return null;
|
|
2619
|
-
return /* @__PURE__ */
|
|
2695
|
+
return /* @__PURE__ */ jsx37(React23.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
2620
2696
|
SelectedNode,
|
|
2621
2697
|
{
|
|
2622
2698
|
node,
|
|
@@ -2753,7 +2829,7 @@ var DivContainer = async (props) => {
|
|
|
2753
2829
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2754
2830
|
);
|
|
2755
2831
|
const WrapperComponent = Wrapper;
|
|
2756
|
-
const renderedContainer = /* @__PURE__ */
|
|
2832
|
+
const renderedContainer = /* @__PURE__ */ jsx37(
|
|
2757
2833
|
WrapperComponent,
|
|
2758
2834
|
{
|
|
2759
2835
|
id: guid,
|
|
@@ -2767,11 +2843,11 @@ var DivContainer = async (props) => {
|
|
|
2767
2843
|
item,
|
|
2768
2844
|
idx,
|
|
2769
2845
|
props.href ? void 0 : item?.links?.view
|
|
2770
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2846
|
+
)?.map((child, i) => /* @__PURE__ */ jsx37(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2771
2847
|
)
|
|
2772
2848
|
}
|
|
2773
2849
|
);
|
|
2774
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2850
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx37(
|
|
2775
2851
|
Pagination,
|
|
2776
2852
|
{
|
|
2777
2853
|
path: props.path,
|
|
@@ -2780,14 +2856,14 @@ var DivContainer = async (props) => {
|
|
|
2780
2856
|
}
|
|
2781
2857
|
) : null;
|
|
2782
2858
|
return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2783
|
-
/* @__PURE__ */
|
|
2859
|
+
/* @__PURE__ */ jsx37(
|
|
2784
2860
|
"style",
|
|
2785
2861
|
{
|
|
2786
2862
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2787
2863
|
}
|
|
2788
2864
|
),
|
|
2789
2865
|
showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2790
|
-
/* @__PURE__ */
|
|
2866
|
+
/* @__PURE__ */ jsx37(
|
|
2791
2867
|
DataBindingControls,
|
|
2792
2868
|
{
|
|
2793
2869
|
mode: "toolbar",
|
|
@@ -2809,8 +2885,8 @@ var DivContainer = async (props) => {
|
|
|
2809
2885
|
paginationControl
|
|
2810
2886
|
] }),
|
|
2811
2887
|
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2812
|
-
/* @__PURE__ */
|
|
2813
|
-
/* @__PURE__ */
|
|
2888
|
+
/* @__PURE__ */ jsx37("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2889
|
+
/* @__PURE__ */ jsx37(
|
|
2814
2890
|
DataBindingControls,
|
|
2815
2891
|
{
|
|
2816
2892
|
mode: "facets",
|
|
@@ -2826,14 +2902,14 @@ var DivContainer = async (props) => {
|
|
|
2826
2902
|
)
|
|
2827
2903
|
] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2828
2904
|
renderedContainer,
|
|
2829
|
-
paginationControl && /* @__PURE__ */
|
|
2905
|
+
paginationControl && /* @__PURE__ */ jsx37("div", { children: paginationControl })
|
|
2830
2906
|
] })
|
|
2831
2907
|
] });
|
|
2832
2908
|
};
|
|
2833
2909
|
var DivContainer_default = DivContainer;
|
|
2834
2910
|
|
|
2835
2911
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2836
|
-
import { jsx as
|
|
2912
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2837
2913
|
var NodeTypes = {
|
|
2838
2914
|
["paragraph"]: ParagraphNode_default,
|
|
2839
2915
|
["heading"]: HeadingNode_default,
|
|
@@ -2871,14 +2947,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2871
2947
|
}
|
|
2872
2948
|
return true;
|
|
2873
2949
|
};
|
|
2874
|
-
return /* @__PURE__ */
|
|
2950
|
+
return /* @__PURE__ */ jsx38(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2875
2951
|
{
|
|
2876
2952
|
}
|
|
2877
2953
|
const SelectedNode = NodeTypes[node.type];
|
|
2878
2954
|
if (!shouldRenderNode(node)) {
|
|
2879
2955
|
return null;
|
|
2880
2956
|
}
|
|
2881
|
-
return /* @__PURE__ */
|
|
2957
|
+
return /* @__PURE__ */ jsx38(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx38(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
|
|
2882
2958
|
SelectedNode,
|
|
2883
2959
|
{
|
|
2884
2960
|
node,
|
|
@@ -2894,7 +2970,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2894
2970
|
device: props.device,
|
|
2895
2971
|
widgetRenderer: props.widgetRenderer
|
|
2896
2972
|
}
|
|
2897
|
-
) }) : /* @__PURE__ */
|
|
2973
|
+
) }) : /* @__PURE__ */ jsx38(React24.Fragment, { children: /* @__PURE__ */ jsx38(
|
|
2898
2974
|
SelectedNode,
|
|
2899
2975
|
{
|
|
2900
2976
|
node,
|
|
@@ -2964,7 +3040,7 @@ function EnterAnimationHydrator() {
|
|
|
2964
3040
|
|
|
2965
3041
|
// src/components/Toast.tsx
|
|
2966
3042
|
import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
|
|
2967
|
-
import { Fragment as Fragment7, jsx as
|
|
3043
|
+
import { Fragment as Fragment7, jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2968
3044
|
var Toast = () => {
|
|
2969
3045
|
const [showToast, setShowToast] = useState(false);
|
|
2970
3046
|
const [message, setMessage] = useState("");
|
|
@@ -2998,8 +3074,8 @@ var Toast = () => {
|
|
|
2998
3074
|
});
|
|
2999
3075
|
};
|
|
3000
3076
|
}, [closeToast, showMessage]);
|
|
3001
|
-
return /* @__PURE__ */
|
|
3002
|
-
/* @__PURE__ */
|
|
3077
|
+
return /* @__PURE__ */ jsx39(Fragment7, { children: showToast && /* @__PURE__ */ jsx39("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: [
|
|
3078
|
+
/* @__PURE__ */ jsx39(
|
|
3003
3079
|
"span",
|
|
3004
3080
|
{
|
|
3005
3081
|
className: "font-medium text-inherit text-sm",
|
|
@@ -3007,7 +3083,7 @@ var Toast = () => {
|
|
|
3007
3083
|
children: message
|
|
3008
3084
|
}
|
|
3009
3085
|
),
|
|
3010
|
-
/* @__PURE__ */
|
|
3086
|
+
/* @__PURE__ */ jsx39("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx39(
|
|
3011
3087
|
"svg",
|
|
3012
3088
|
{
|
|
3013
3089
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3015,7 +3091,7 @@ var Toast = () => {
|
|
|
3015
3091
|
fill: "none",
|
|
3016
3092
|
viewBox: "0 0 24 24",
|
|
3017
3093
|
stroke: "currentColor",
|
|
3018
|
-
children: /* @__PURE__ */
|
|
3094
|
+
children: /* @__PURE__ */ jsx39("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
3019
3095
|
}
|
|
3020
3096
|
) })
|
|
3021
3097
|
] }) }) });
|
|
@@ -3025,7 +3101,7 @@ var Toast_default = Toast;
|
|
|
3025
3101
|
// src/components/NavigationTabsV2.tsx
|
|
3026
3102
|
import Link2 from "next/link";
|
|
3027
3103
|
import { usePathname } from "next/navigation";
|
|
3028
|
-
import { jsx as
|
|
3104
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3029
3105
|
function resolveRoutePlaceholders(route, params) {
|
|
3030
3106
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
3031
3107
|
const value = params[key];
|
|
@@ -3050,8 +3126,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
3050
3126
|
isActive: tab.isActive
|
|
3051
3127
|
})) || [];
|
|
3052
3128
|
if (mappedTabs.length === 0) return null;
|
|
3053
|
-
return /* @__PURE__ */
|
|
3054
|
-
return /* @__PURE__ */
|
|
3129
|
+
return /* @__PURE__ */ jsx40("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
3130
|
+
return /* @__PURE__ */ jsx40(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx40(
|
|
3055
3131
|
"div",
|
|
3056
3132
|
{
|
|
3057
3133
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -3069,46 +3145,46 @@ import { useRouter } from "next/navigation";
|
|
|
3069
3145
|
|
|
3070
3146
|
// src/components/dataForm/NoContentView.tsx
|
|
3071
3147
|
import React26 from "react";
|
|
3072
|
-
import { jsx as
|
|
3148
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3073
3149
|
var NoContentView = (props) => {
|
|
3074
|
-
return /* @__PURE__ */
|
|
3150
|
+
return /* @__PURE__ */ jsx41(React26.Fragment, { children: props.isDataFound === false && props.children });
|
|
3075
3151
|
};
|
|
3076
3152
|
var NoContentView_default = NoContentView;
|
|
3077
3153
|
|
|
3078
3154
|
// src/components/dataForm/ContentView.tsx
|
|
3079
3155
|
import React27 from "react";
|
|
3080
|
-
import { jsx as
|
|
3156
|
+
import { jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3081
3157
|
var ContentView = (props) => {
|
|
3082
3158
|
return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
|
|
3083
|
-
props.isDataFound == null && /* @__PURE__ */
|
|
3159
|
+
props.isDataFound == null && /* @__PURE__ */ jsx42("div", { className: "", children: /* @__PURE__ */ jsxs16("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
3084
3160
|
/* @__PURE__ */ jsxs16("div", { className: "flex items-center mb-4", children: [
|
|
3085
|
-
/* @__PURE__ */
|
|
3161
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
3086
3162
|
/* @__PURE__ */ jsxs16("div", { className: "ml-2", children: [
|
|
3087
|
-
/* @__PURE__ */
|
|
3088
|
-
/* @__PURE__ */
|
|
3163
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
3164
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
3089
3165
|
] })
|
|
3090
3166
|
] }),
|
|
3091
3167
|
/* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
3092
3168
|
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3093
|
-
/* @__PURE__ */
|
|
3094
|
-
/* @__PURE__ */
|
|
3095
|
-
/* @__PURE__ */
|
|
3096
|
-
/* @__PURE__ */
|
|
3097
|
-
/* @__PURE__ */
|
|
3169
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3170
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3171
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3172
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3173
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3098
3174
|
] }),
|
|
3099
3175
|
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3100
|
-
/* @__PURE__ */
|
|
3101
|
-
/* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3103
|
-
/* @__PURE__ */
|
|
3104
|
-
/* @__PURE__ */
|
|
3176
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3177
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3178
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3179
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3180
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3105
3181
|
] }),
|
|
3106
3182
|
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3107
|
-
/* @__PURE__ */
|
|
3108
|
-
/* @__PURE__ */
|
|
3109
|
-
/* @__PURE__ */
|
|
3110
|
-
/* @__PURE__ */
|
|
3111
|
-
/* @__PURE__ */
|
|
3183
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3184
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3185
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3186
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3187
|
+
/* @__PURE__ */ jsx42("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3112
3188
|
] })
|
|
3113
3189
|
] })
|
|
3114
3190
|
] }) }),
|
|
@@ -3162,7 +3238,7 @@ function FormReducer(state, action) {
|
|
|
3162
3238
|
var FormReducer_default = FormReducer;
|
|
3163
3239
|
|
|
3164
3240
|
// src/components/dataForm/DataList.tsx
|
|
3165
|
-
import { Fragment as Fragment8, jsx as
|
|
3241
|
+
import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3166
3242
|
var DataList = (props) => {
|
|
3167
3243
|
const router = useRouter();
|
|
3168
3244
|
let builder = new OdataBuilder(props.path);
|
|
@@ -3203,7 +3279,7 @@ var DataList = (props) => {
|
|
|
3203
3279
|
if (path.includes(".")) {
|
|
3204
3280
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
3205
3281
|
} else if (Array.isArray(obj[path])) {
|
|
3206
|
-
return obj[path].map((item, index) => /* @__PURE__ */
|
|
3282
|
+
return obj[path].map((item, index) => /* @__PURE__ */ jsx43("div", { children: item }, index));
|
|
3207
3283
|
} else {
|
|
3208
3284
|
return obj[path];
|
|
3209
3285
|
}
|
|
@@ -3285,30 +3361,30 @@ var DataList = (props) => {
|
|
|
3285
3361
|
const renderPageNumbers = () => {
|
|
3286
3362
|
if (pages <= 10) {
|
|
3287
3363
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
3288
|
-
(page) => /* @__PURE__ */
|
|
3364
|
+
(page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
|
|
3289
3365
|
Hyperlink,
|
|
3290
3366
|
{
|
|
3291
3367
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3292
3368
|
href: builder.getNewPageUrl(page),
|
|
3293
3369
|
children: page
|
|
3294
3370
|
}
|
|
3295
|
-
) : /* @__PURE__ */
|
|
3371
|
+
) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3296
3372
|
);
|
|
3297
3373
|
} else {
|
|
3298
3374
|
const showFirstPages = activePageNumber <= 5;
|
|
3299
3375
|
const showLastPages = activePageNumber > pages - 5;
|
|
3300
3376
|
if (showFirstPages) {
|
|
3301
3377
|
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3302
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */
|
|
3378
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
|
|
3303
3379
|
Hyperlink,
|
|
3304
3380
|
{
|
|
3305
3381
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3306
3382
|
href: builder.getNewPageUrl(page),
|
|
3307
3383
|
children: page
|
|
3308
3384
|
}
|
|
3309
|
-
) : /* @__PURE__ */
|
|
3310
|
-
/* @__PURE__ */
|
|
3311
|
-
/* @__PURE__ */
|
|
3385
|
+
) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3386
|
+
/* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
|
|
3387
|
+
/* @__PURE__ */ jsx43(
|
|
3312
3388
|
Hyperlink,
|
|
3313
3389
|
{
|
|
3314
3390
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3316,7 +3392,7 @@ var DataList = (props) => {
|
|
|
3316
3392
|
children: pages - 1
|
|
3317
3393
|
}
|
|
3318
3394
|
),
|
|
3319
|
-
/* @__PURE__ */
|
|
3395
|
+
/* @__PURE__ */ jsx43(
|
|
3320
3396
|
Hyperlink,
|
|
3321
3397
|
{
|
|
3322
3398
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3324,7 +3400,7 @@ var DataList = (props) => {
|
|
|
3324
3400
|
children: pages
|
|
3325
3401
|
}
|
|
3326
3402
|
),
|
|
3327
|
-
/* @__PURE__ */
|
|
3403
|
+
/* @__PURE__ */ jsx43("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
|
|
3328
3404
|
"select",
|
|
3329
3405
|
{
|
|
3330
3406
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3336,18 +3412,18 @@ var DataList = (props) => {
|
|
|
3336
3412
|
}
|
|
3337
3413
|
},
|
|
3338
3414
|
children: [
|
|
3339
|
-
/* @__PURE__ */
|
|
3415
|
+
/* @__PURE__ */ jsx43("option", { className: "", value: "", children: "Jump to" }),
|
|
3340
3416
|
Array.from(
|
|
3341
3417
|
{ length: Math.max(0, pages - 10) },
|
|
3342
3418
|
(_, index) => index + 9
|
|
3343
|
-
).map((page) => /* @__PURE__ */
|
|
3419
|
+
).map((page) => /* @__PURE__ */ jsx43("option", { value: page, children: page }, page))
|
|
3344
3420
|
]
|
|
3345
3421
|
}
|
|
3346
3422
|
) })
|
|
3347
3423
|
] });
|
|
3348
3424
|
} else if (showLastPages) {
|
|
3349
3425
|
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3350
|
-
/* @__PURE__ */
|
|
3426
|
+
/* @__PURE__ */ jsx43(
|
|
3351
3427
|
Hyperlink,
|
|
3352
3428
|
{
|
|
3353
3429
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3355,7 +3431,7 @@ var DataList = (props) => {
|
|
|
3355
3431
|
children: "1"
|
|
3356
3432
|
}
|
|
3357
3433
|
),
|
|
3358
|
-
/* @__PURE__ */
|
|
3434
|
+
/* @__PURE__ */ jsx43(
|
|
3359
3435
|
Hyperlink,
|
|
3360
3436
|
{
|
|
3361
3437
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3363,21 +3439,21 @@ var DataList = (props) => {
|
|
|
3363
3439
|
children: "2"
|
|
3364
3440
|
}
|
|
3365
3441
|
),
|
|
3366
|
-
/* @__PURE__ */
|
|
3442
|
+
/* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
|
|
3367
3443
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
3368
|
-
(page) => /* @__PURE__ */
|
|
3444
|
+
(page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
|
|
3369
3445
|
Hyperlink,
|
|
3370
3446
|
{
|
|
3371
3447
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3372
3448
|
href: builder.getNewPageUrl(page),
|
|
3373
3449
|
children: page
|
|
3374
3450
|
}
|
|
3375
|
-
) : /* @__PURE__ */
|
|
3451
|
+
) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3376
3452
|
)
|
|
3377
3453
|
] });
|
|
3378
3454
|
} else {
|
|
3379
3455
|
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3380
|
-
/* @__PURE__ */
|
|
3456
|
+
/* @__PURE__ */ jsx43(
|
|
3381
3457
|
Hyperlink,
|
|
3382
3458
|
{
|
|
3383
3459
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3385,7 +3461,7 @@ var DataList = (props) => {
|
|
|
3385
3461
|
children: "1"
|
|
3386
3462
|
}
|
|
3387
3463
|
),
|
|
3388
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ jsx43(
|
|
3389
3465
|
Hyperlink,
|
|
3390
3466
|
{
|
|
3391
3467
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3393,20 +3469,20 @@ var DataList = (props) => {
|
|
|
3393
3469
|
children: "2"
|
|
3394
3470
|
}
|
|
3395
3471
|
),
|
|
3396
|
-
/* @__PURE__ */
|
|
3472
|
+
/* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
|
|
3397
3473
|
Array.from(
|
|
3398
3474
|
{ length: 5 },
|
|
3399
3475
|
(_, index) => activePageNumber - 2 + index
|
|
3400
|
-
).map((page) => /* @__PURE__ */
|
|
3476
|
+
).map((page) => /* @__PURE__ */ jsx43(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx43(
|
|
3401
3477
|
Hyperlink,
|
|
3402
3478
|
{
|
|
3403
3479
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3404
3480
|
href: builder.getNewPageUrl(page),
|
|
3405
3481
|
children: page
|
|
3406
3482
|
}
|
|
3407
|
-
) : /* @__PURE__ */
|
|
3408
|
-
/* @__PURE__ */
|
|
3409
|
-
/* @__PURE__ */
|
|
3483
|
+
) : /* @__PURE__ */ jsx43("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3484
|
+
/* @__PURE__ */ jsx43("span", { className: "px-2 py-1", children: "..." }),
|
|
3485
|
+
/* @__PURE__ */ jsx43(
|
|
3410
3486
|
Hyperlink,
|
|
3411
3487
|
{
|
|
3412
3488
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3414,7 +3490,7 @@ var DataList = (props) => {
|
|
|
3414
3490
|
children: pages - 1
|
|
3415
3491
|
}
|
|
3416
3492
|
),
|
|
3417
|
-
/* @__PURE__ */
|
|
3493
|
+
/* @__PURE__ */ jsx43(
|
|
3418
3494
|
Hyperlink,
|
|
3419
3495
|
{
|
|
3420
3496
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3422,7 +3498,7 @@ var DataList = (props) => {
|
|
|
3422
3498
|
children: pages
|
|
3423
3499
|
}
|
|
3424
3500
|
),
|
|
3425
|
-
/* @__PURE__ */
|
|
3501
|
+
/* @__PURE__ */ jsx43("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
|
|
3426
3502
|
"select",
|
|
3427
3503
|
{
|
|
3428
3504
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3434,8 +3510,8 @@ var DataList = (props) => {
|
|
|
3434
3510
|
}
|
|
3435
3511
|
},
|
|
3436
3512
|
children: [
|
|
3437
|
-
/* @__PURE__ */
|
|
3438
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */
|
|
3513
|
+
/* @__PURE__ */ jsx43("option", { value: "", children: "Jump to" }),
|
|
3514
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx43("option", { value: page, children: page }, page))
|
|
3439
3515
|
]
|
|
3440
3516
|
}
|
|
3441
3517
|
) })
|
|
@@ -3450,9 +3526,9 @@ var DataList = (props) => {
|
|
|
3450
3526
|
{
|
|
3451
3527
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
3452
3528
|
children: [
|
|
3453
|
-
props.title ? /* @__PURE__ */
|
|
3529
|
+
props.title ? /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx43("div", {}),
|
|
3454
3530
|
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3455
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3531
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx43(
|
|
3456
3532
|
InputControl_default,
|
|
3457
3533
|
{
|
|
3458
3534
|
name: "Search_input",
|
|
@@ -3464,7 +3540,7 @@ var DataList = (props) => {
|
|
|
3464
3540
|
}
|
|
3465
3541
|
}
|
|
3466
3542
|
),
|
|
3467
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3543
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx43(
|
|
3468
3544
|
InputControl_default,
|
|
3469
3545
|
{
|
|
3470
3546
|
name: filter.name,
|
|
@@ -3486,8 +3562,8 @@ var DataList = (props) => {
|
|
|
3486
3562
|
linkType: "Primary" /* Solid */,
|
|
3487
3563
|
href: props.addLinkHref,
|
|
3488
3564
|
children: [
|
|
3489
|
-
/* @__PURE__ */
|
|
3490
|
-
/* @__PURE__ */
|
|
3565
|
+
/* @__PURE__ */ jsx43(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3566
|
+
/* @__PURE__ */ jsx43("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3491
3567
|
]
|
|
3492
3568
|
}
|
|
3493
3569
|
)
|
|
@@ -3495,8 +3571,8 @@ var DataList = (props) => {
|
|
|
3495
3571
|
]
|
|
3496
3572
|
}
|
|
3497
3573
|
),
|
|
3498
|
-
/* @__PURE__ */
|
|
3499
|
-
/* @__PURE__ */
|
|
3574
|
+
/* @__PURE__ */ jsx43("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: [
|
|
3575
|
+
/* @__PURE__ */ jsx43("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsxs17("tr", { children: [
|
|
3500
3576
|
props?.columns?.map((column) => {
|
|
3501
3577
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3502
3578
|
let icon = "chevronUpDown";
|
|
@@ -3507,18 +3583,18 @@ var DataList = (props) => {
|
|
|
3507
3583
|
icon = "chevronUp";
|
|
3508
3584
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3509
3585
|
}
|
|
3510
|
-
return /* @__PURE__ */
|
|
3586
|
+
return /* @__PURE__ */ jsx43(
|
|
3511
3587
|
"th",
|
|
3512
3588
|
{
|
|
3513
3589
|
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" : ""),
|
|
3514
|
-
children: /* @__PURE__ */
|
|
3590
|
+
children: /* @__PURE__ */ jsx43(
|
|
3515
3591
|
Hyperlink,
|
|
3516
3592
|
{
|
|
3517
3593
|
href: column.enableSorting ? url : void 0,
|
|
3518
3594
|
className: "!text-neutral-contrast ",
|
|
3519
3595
|
children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
|
|
3520
|
-
/* @__PURE__ */
|
|
3521
|
-
column.enableSorting && /* @__PURE__ */
|
|
3596
|
+
/* @__PURE__ */ jsx43("span", { className: "text-black", children: column.label }),
|
|
3597
|
+
column.enableSorting && /* @__PURE__ */ jsx43(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3522
3598
|
] })
|
|
3523
3599
|
}
|
|
3524
3600
|
)
|
|
@@ -3526,25 +3602,25 @@ var DataList = (props) => {
|
|
|
3526
3602
|
column.name
|
|
3527
3603
|
);
|
|
3528
3604
|
}),
|
|
3529
|
-
props.onQuickView && /* @__PURE__ */
|
|
3605
|
+
props.onQuickView && /* @__PURE__ */ jsx43("th", { className: "px-6 py-3 text-right font-medium bg-neutral-soft w-32 text-black", children: "Action" })
|
|
3530
3606
|
] }) }),
|
|
3531
|
-
/* @__PURE__ */
|
|
3607
|
+
/* @__PURE__ */ jsx43("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
3532
3608
|
let validityClass = "";
|
|
3533
3609
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
3534
3610
|
validityClass = "bg-alert-200";
|
|
3535
3611
|
}
|
|
3536
3612
|
return /* @__PURE__ */ jsxs17("tr", { className: validityClass, children: [
|
|
3537
3613
|
props?.columns?.map((column, colindex) => {
|
|
3538
|
-
return /* @__PURE__ */
|
|
3614
|
+
return /* @__PURE__ */ jsx43(React28.Fragment, { children: /* @__PURE__ */ jsx43(
|
|
3539
3615
|
"td",
|
|
3540
3616
|
{
|
|
3541
3617
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
3542
|
-
children: column.addhref === true ? /* @__PURE__ */
|
|
3618
|
+
children: column.addhref === true ? /* @__PURE__ */ jsx43(
|
|
3543
3619
|
Hyperlink,
|
|
3544
3620
|
{
|
|
3545
3621
|
className: "",
|
|
3546
3622
|
href: `https://${dataitem[column.name]}`,
|
|
3547
|
-
children: /* @__PURE__ */
|
|
3623
|
+
children: /* @__PURE__ */ jsx43(
|
|
3548
3624
|
ViewControl_default,
|
|
3549
3625
|
{
|
|
3550
3626
|
controlType: column.controlType,
|
|
@@ -3557,11 +3633,11 @@ var DataList = (props) => {
|
|
|
3557
3633
|
}
|
|
3558
3634
|
)
|
|
3559
3635
|
}
|
|
3560
|
-
) : column.showAsLink ? /* @__PURE__ */
|
|
3636
|
+
) : column.showAsLink ? /* @__PURE__ */ jsx43(
|
|
3561
3637
|
Hyperlink,
|
|
3562
3638
|
{
|
|
3563
3639
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
3564
|
-
children: /* @__PURE__ */
|
|
3640
|
+
children: /* @__PURE__ */ jsx43(
|
|
3565
3641
|
ViewControl_default,
|
|
3566
3642
|
{
|
|
3567
3643
|
controlType: column.controlType,
|
|
@@ -3571,7 +3647,7 @@ var DataList = (props) => {
|
|
|
3571
3647
|
}
|
|
3572
3648
|
)
|
|
3573
3649
|
}
|
|
3574
|
-
) : /* @__PURE__ */
|
|
3650
|
+
) : /* @__PURE__ */ jsx43(
|
|
3575
3651
|
ViewControl_default,
|
|
3576
3652
|
{
|
|
3577
3653
|
controlType: column.controlType,
|
|
@@ -3583,7 +3659,7 @@ var DataList = (props) => {
|
|
|
3583
3659
|
}
|
|
3584
3660
|
) }, colindex);
|
|
3585
3661
|
}),
|
|
3586
|
-
props.onQuickView && /* @__PURE__ */
|
|
3662
|
+
props.onQuickView && /* @__PURE__ */ jsx43("td", { className: "px-6 py-2 text-right whitespace-nowrap", children: /* @__PURE__ */ jsxs17(
|
|
3587
3663
|
"button",
|
|
3588
3664
|
{
|
|
3589
3665
|
type: "button",
|
|
@@ -3604,22 +3680,22 @@ var DataList = (props) => {
|
|
|
3604
3680
|
strokeLinecap: "round",
|
|
3605
3681
|
strokeLinejoin: "round",
|
|
3606
3682
|
children: [
|
|
3607
|
-
/* @__PURE__ */
|
|
3608
|
-
/* @__PURE__ */
|
|
3683
|
+
/* @__PURE__ */ jsx43("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
3684
|
+
/* @__PURE__ */ jsx43("circle", { cx: "12", cy: "12", r: "3" })
|
|
3609
3685
|
]
|
|
3610
3686
|
}
|
|
3611
3687
|
),
|
|
3612
|
-
/* @__PURE__ */
|
|
3688
|
+
/* @__PURE__ */ jsx43("span", { children: props.quickViewLabel || "Quick View" })
|
|
3613
3689
|
]
|
|
3614
3690
|
}
|
|
3615
3691
|
) })
|
|
3616
3692
|
] }, index);
|
|
3617
3693
|
}) })
|
|
3618
3694
|
] }) }),
|
|
3619
|
-
/* @__PURE__ */
|
|
3620
|
-
/* @__PURE__ */
|
|
3695
|
+
/* @__PURE__ */ jsx43("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: [
|
|
3696
|
+
/* @__PURE__ */ jsx43("div", { className: "text-gray-700", children: label }),
|
|
3621
3697
|
/* @__PURE__ */ jsxs17("div", { className: "flex space-x-2 items-center", children: [
|
|
3622
|
-
activePageNumber > 1 && /* @__PURE__ */
|
|
3698
|
+
activePageNumber > 1 && /* @__PURE__ */ jsx43(
|
|
3623
3699
|
Hyperlink,
|
|
3624
3700
|
{
|
|
3625
3701
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3627,9 +3703,9 @@ var DataList = (props) => {
|
|
|
3627
3703
|
children: "Prev"
|
|
3628
3704
|
}
|
|
3629
3705
|
),
|
|
3630
|
-
activePageNumber <= 1 && /* @__PURE__ */
|
|
3706
|
+
activePageNumber <= 1 && /* @__PURE__ */ jsx43("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" }),
|
|
3631
3707
|
renderPageNumbers(),
|
|
3632
|
-
activePageNumber < pages && /* @__PURE__ */
|
|
3708
|
+
activePageNumber < pages && /* @__PURE__ */ jsx43(
|
|
3633
3709
|
Hyperlink,
|
|
3634
3710
|
{
|
|
3635
3711
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3637,7 +3713,7 @@ var DataList = (props) => {
|
|
|
3637
3713
|
children: "Next"
|
|
3638
3714
|
}
|
|
3639
3715
|
),
|
|
3640
|
-
activePageNumber >= pages && /* @__PURE__ */
|
|
3716
|
+
activePageNumber >= pages && /* @__PURE__ */ jsx43("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
3641
3717
|
] })
|
|
3642
3718
|
] }) })
|
|
3643
3719
|
] }),
|
|
@@ -3647,9 +3723,9 @@ var DataList = (props) => {
|
|
|
3647
3723
|
{
|
|
3648
3724
|
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`,
|
|
3649
3725
|
children: [
|
|
3650
|
-
props.title ? /* @__PURE__ */
|
|
3726
|
+
props.title ? /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx43("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx43("div", {}),
|
|
3651
3727
|
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3652
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3728
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx43(
|
|
3653
3729
|
InputControl_default,
|
|
3654
3730
|
{
|
|
3655
3731
|
name: "Search_input",
|
|
@@ -3661,7 +3737,7 @@ var DataList = (props) => {
|
|
|
3661
3737
|
}
|
|
3662
3738
|
}
|
|
3663
3739
|
),
|
|
3664
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3740
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx43(
|
|
3665
3741
|
InputControl_default,
|
|
3666
3742
|
{
|
|
3667
3743
|
name: filter.name,
|
|
@@ -3683,8 +3759,8 @@ var DataList = (props) => {
|
|
|
3683
3759
|
linkType: "Primary" /* Solid */,
|
|
3684
3760
|
href: props.addLinkHref,
|
|
3685
3761
|
children: [
|
|
3686
|
-
/* @__PURE__ */
|
|
3687
|
-
/* @__PURE__ */
|
|
3762
|
+
/* @__PURE__ */ jsx43(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3763
|
+
/* @__PURE__ */ jsx43("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3688
3764
|
]
|
|
3689
3765
|
}
|
|
3690
3766
|
)
|
|
@@ -3693,7 +3769,7 @@ var DataList = (props) => {
|
|
|
3693
3769
|
}
|
|
3694
3770
|
),
|
|
3695
3771
|
/* @__PURE__ */ jsxs17("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
3696
|
-
/* @__PURE__ */
|
|
3772
|
+
/* @__PURE__ */ jsx43("div", { children: /* @__PURE__ */ jsx43("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx43("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx43("tr", { children: props?.columns?.map((column) => {
|
|
3697
3773
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3698
3774
|
let icon = "chevronUpDown";
|
|
3699
3775
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -3703,18 +3779,18 @@ var DataList = (props) => {
|
|
|
3703
3779
|
icon = "chevronUp";
|
|
3704
3780
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3705
3781
|
}
|
|
3706
|
-
return /* @__PURE__ */
|
|
3782
|
+
return /* @__PURE__ */ jsx43(
|
|
3707
3783
|
"th",
|
|
3708
3784
|
{
|
|
3709
3785
|
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" : ""),
|
|
3710
|
-
children: /* @__PURE__ */
|
|
3786
|
+
children: /* @__PURE__ */ jsx43(
|
|
3711
3787
|
Hyperlink,
|
|
3712
3788
|
{
|
|
3713
3789
|
href: column.enableSorting ? url : void 0,
|
|
3714
3790
|
className: "text-body-950",
|
|
3715
3791
|
children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
|
|
3716
|
-
/* @__PURE__ */
|
|
3717
|
-
column.enableSorting && /* @__PURE__ */
|
|
3792
|
+
/* @__PURE__ */ jsx43("span", { children: column.label }),
|
|
3793
|
+
column.enableSorting && /* @__PURE__ */ jsx43(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3718
3794
|
] })
|
|
3719
3795
|
}
|
|
3720
3796
|
)
|
|
@@ -3722,7 +3798,7 @@ var DataList = (props) => {
|
|
|
3722
3798
|
column.name
|
|
3723
3799
|
);
|
|
3724
3800
|
}) }) }) }) }),
|
|
3725
|
-
/* @__PURE__ */
|
|
3801
|
+
/* @__PURE__ */ jsx43("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
3726
3802
|
] })
|
|
3727
3803
|
] })
|
|
3728
3804
|
] });
|
|
@@ -3732,7 +3808,7 @@ var DataList_default = DataList;
|
|
|
3732
3808
|
// src/components/dataForm/DataListRenderer.tsx
|
|
3733
3809
|
import React29, { useState as useState3, useEffect as useEffect4 } from "react";
|
|
3734
3810
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
3735
|
-
import { jsx as
|
|
3811
|
+
import { jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3736
3812
|
var viewControlMap = {
|
|
3737
3813
|
number: ViewControlTypes.number,
|
|
3738
3814
|
lineText: ViewControlTypes.lineText,
|
|
@@ -3832,8 +3908,8 @@ var DataListRenderer = ({
|
|
|
3832
3908
|
// tabs={resolvedTabs}
|
|
3833
3909
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
3834
3910
|
// />
|
|
3835
|
-
/* @__PURE__ */
|
|
3836
|
-
/* @__PURE__ */
|
|
3911
|
+
/* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
3912
|
+
/* @__PURE__ */ jsx44(
|
|
3837
3913
|
DataList_default,
|
|
3838
3914
|
{
|
|
3839
3915
|
addLinkHref,
|
|
@@ -3878,7 +3954,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
3878
3954
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
3879
3955
|
|
|
3880
3956
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3881
|
-
import { jsx as
|
|
3957
|
+
import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3882
3958
|
var DataFormChildSection = (props) => {
|
|
3883
3959
|
const { section } = props;
|
|
3884
3960
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -3946,14 +4022,14 @@ var DataFormChildSection = (props) => {
|
|
|
3946
4022
|
childItemsToRender,
|
|
3947
4023
|
allChildItems: childItems
|
|
3948
4024
|
});
|
|
3949
|
-
return /* @__PURE__ */
|
|
3950
|
-
section.sectionTitle && /* @__PURE__ */
|
|
3951
|
-
/* @__PURE__ */
|
|
3952
|
-
/* @__PURE__ */
|
|
3953
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */
|
|
4025
|
+
return /* @__PURE__ */ jsx45(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
4026
|
+
section.sectionTitle && /* @__PURE__ */ jsx45("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
4027
|
+
/* @__PURE__ */ jsx45("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: [
|
|
4028
|
+
/* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsxs19("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
4029
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx45("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
3954
4030
|
return /* @__PURE__ */ jsxs19("tr", { className: "", children: [
|
|
3955
4031
|
sectionRow.elements.map((field, index) => {
|
|
3956
|
-
return /* @__PURE__ */
|
|
4032
|
+
return /* @__PURE__ */ jsx45(
|
|
3957
4033
|
"th",
|
|
3958
4034
|
{
|
|
3959
4035
|
className: "py-3 font-normal text-left",
|
|
@@ -3962,13 +4038,13 @@ var DataFormChildSection = (props) => {
|
|
|
3962
4038
|
field.name
|
|
3963
4039
|
);
|
|
3964
4040
|
}),
|
|
3965
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4041
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
3966
4042
|
] }, sectionRowIndex);
|
|
3967
4043
|
}) }),
|
|
3968
|
-
/* @__PURE__ */
|
|
4044
|
+
/* @__PURE__ */ jsx45("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
3969
4045
|
const { item, originalIndex } = visibleItem;
|
|
3970
4046
|
const rowKey = originalIndex;
|
|
3971
|
-
return /* @__PURE__ */
|
|
4047
|
+
return /* @__PURE__ */ jsx45(React30.Fragment, { children: section.sectionRows.map(
|
|
3972
4048
|
(sectionRow, sectionRowIndex) => {
|
|
3973
4049
|
return /* @__PURE__ */ jsxs19(
|
|
3974
4050
|
"tr",
|
|
@@ -3976,7 +4052,7 @@ var DataFormChildSection = (props) => {
|
|
|
3976
4052
|
className: "",
|
|
3977
4053
|
children: [
|
|
3978
4054
|
sectionRow.elements.map((field, index) => {
|
|
3979
|
-
return /* @__PURE__ */
|
|
4055
|
+
return /* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45("div", { className: "flex-1", children: /* @__PURE__ */ jsx45("div", { className: "w-11/12", children: /* @__PURE__ */ jsx45(
|
|
3980
4056
|
InputControl_default,
|
|
3981
4057
|
{
|
|
3982
4058
|
index: filteredIndex,
|
|
@@ -3996,7 +4072,7 @@ var DataFormChildSection = (props) => {
|
|
|
3996
4072
|
}
|
|
3997
4073
|
) }) }) }, field.name);
|
|
3998
4074
|
}),
|
|
3999
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4075
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("td", { children: /* @__PURE__ */ jsx45(
|
|
4000
4076
|
ClientButton_default,
|
|
4001
4077
|
{
|
|
4002
4078
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -4005,7 +4081,7 @@ var DataFormChildSection = (props) => {
|
|
|
4005
4081
|
},
|
|
4006
4082
|
dataRole: "delete",
|
|
4007
4083
|
tabIndex: -1,
|
|
4008
|
-
children: /* @__PURE__ */
|
|
4084
|
+
children: /* @__PURE__ */ jsx45(
|
|
4009
4085
|
Icon_default,
|
|
4010
4086
|
{
|
|
4011
4087
|
className: "w-4 h-4",
|
|
@@ -4022,7 +4098,7 @@ var DataFormChildSection = (props) => {
|
|
|
4022
4098
|
) }, rowKey);
|
|
4023
4099
|
}) })
|
|
4024
4100
|
] }) }),
|
|
4025
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4101
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx45("div", { className: "ml-1", children: /* @__PURE__ */ jsx45(
|
|
4026
4102
|
ClientButton_default,
|
|
4027
4103
|
{
|
|
4028
4104
|
ButtonType: "Link" /* Link */,
|
|
@@ -4037,7 +4113,7 @@ var DataFormChildSection = (props) => {
|
|
|
4037
4113
|
var DataFormChildSection_default = DataFormChildSection;
|
|
4038
4114
|
|
|
4039
4115
|
// src/components/dataForm/DataForm.tsx
|
|
4040
|
-
import { jsx as
|
|
4116
|
+
import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4041
4117
|
var DataForm = (props) => {
|
|
4042
4118
|
const formRef = useRef2(null);
|
|
4043
4119
|
console.log(props.dataItem, "dssads");
|
|
@@ -4257,19 +4333,19 @@ var DataForm = (props) => {
|
|
|
4257
4333
|
return false;
|
|
4258
4334
|
}
|
|
4259
4335
|
}
|
|
4260
|
-
return /* @__PURE__ */
|
|
4261
|
-
props.title && /* @__PURE__ */
|
|
4336
|
+
return /* @__PURE__ */ jsx46(React31.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
|
|
4337
|
+
props.title && /* @__PURE__ */ jsx46("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(
|
|
4262
4338
|
"div",
|
|
4263
4339
|
{
|
|
4264
4340
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
4265
4341
|
onClick: () => window.history.back(),
|
|
4266
4342
|
children: [
|
|
4267
|
-
/* @__PURE__ */
|
|
4268
|
-
/* @__PURE__ */
|
|
4343
|
+
/* @__PURE__ */ jsx46(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
4344
|
+
/* @__PURE__ */ jsx46("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
4269
4345
|
]
|
|
4270
4346
|
}
|
|
4271
4347
|
) }),
|
|
4272
|
-
/* @__PURE__ */
|
|
4348
|
+
/* @__PURE__ */ jsx46(
|
|
4273
4349
|
"form",
|
|
4274
4350
|
{
|
|
4275
4351
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -4290,8 +4366,8 @@ var DataForm = (props) => {
|
|
|
4290
4366
|
}
|
|
4291
4367
|
}
|
|
4292
4368
|
},
|
|
4293
|
-
children: /* @__PURE__ */
|
|
4294
|
-
return /* @__PURE__ */
|
|
4369
|
+
children: /* @__PURE__ */ jsx46("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
4370
|
+
return /* @__PURE__ */ jsx46(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs20("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
4295
4371
|
section.sectionRows?.map(
|
|
4296
4372
|
(sectionRow, sectionRowIndex) => {
|
|
4297
4373
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -4302,14 +4378,14 @@ var DataForm = (props) => {
|
|
|
4302
4378
|
sectionRow.visible
|
|
4303
4379
|
);
|
|
4304
4380
|
}
|
|
4305
|
-
return /* @__PURE__ */
|
|
4381
|
+
return /* @__PURE__ */ jsx46(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx46("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
4306
4382
|
return /* @__PURE__ */ jsxs20(
|
|
4307
4383
|
"div",
|
|
4308
4384
|
{
|
|
4309
4385
|
className: sectionRow.grow ? "grow" : "",
|
|
4310
4386
|
children: [
|
|
4311
|
-
/* @__PURE__ */
|
|
4312
|
-
/* @__PURE__ */
|
|
4387
|
+
/* @__PURE__ */ jsx46("div", { children: field.controlType }),
|
|
4388
|
+
/* @__PURE__ */ jsx46(
|
|
4313
4389
|
InputControl_default,
|
|
4314
4390
|
{
|
|
4315
4391
|
name: field.name,
|
|
@@ -4339,12 +4415,12 @@ var DataForm = (props) => {
|
|
|
4339
4415
|
}) }) }, sectionRowIndex);
|
|
4340
4416
|
}
|
|
4341
4417
|
),
|
|
4342
|
-
/* @__PURE__ */
|
|
4418
|
+
/* @__PURE__ */ jsx46("div", { children: section.childSections?.map(
|
|
4343
4419
|
(childSection, childSectionIndex) => {
|
|
4344
|
-
return /* @__PURE__ */
|
|
4420
|
+
return /* @__PURE__ */ jsx46("div", { children: childSection.name && evalutateCondition(
|
|
4345
4421
|
formState.inputValues,
|
|
4346
4422
|
childSection.visible
|
|
4347
|
-
) && /* @__PURE__ */
|
|
4423
|
+
) && /* @__PURE__ */ jsx46(
|
|
4348
4424
|
DataFormChildSection_default,
|
|
4349
4425
|
{
|
|
4350
4426
|
section: childSection,
|
|
@@ -4360,7 +4436,7 @@ var DataForm = (props) => {
|
|
|
4360
4436
|
}
|
|
4361
4437
|
),
|
|
4362
4438
|
/* @__PURE__ */ jsxs20("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
4363
|
-
/* @__PURE__ */
|
|
4439
|
+
/* @__PURE__ */ jsx46("div", { children: props.additionalActions && /* @__PURE__ */ jsx46(
|
|
4364
4440
|
Button_default,
|
|
4365
4441
|
{
|
|
4366
4442
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4368,7 +4444,7 @@ var DataForm = (props) => {
|
|
|
4368
4444
|
children: props.additionalActions.title
|
|
4369
4445
|
}
|
|
4370
4446
|
) }),
|
|
4371
|
-
/* @__PURE__ */
|
|
4447
|
+
/* @__PURE__ */ jsx46("div", { children: props.onDelete && /* @__PURE__ */ jsx46(
|
|
4372
4448
|
Button_default,
|
|
4373
4449
|
{
|
|
4374
4450
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4379,7 +4455,7 @@ var DataForm = (props) => {
|
|
|
4379
4455
|
children: "Delete"
|
|
4380
4456
|
}
|
|
4381
4457
|
) }),
|
|
4382
|
-
/* @__PURE__ */
|
|
4458
|
+
/* @__PURE__ */ jsx46("div", { children: props.onClick && /* @__PURE__ */ jsx46(
|
|
4383
4459
|
Button_default,
|
|
4384
4460
|
{
|
|
4385
4461
|
onValidate,
|
|
@@ -4396,7 +4472,7 @@ var DataForm = (props) => {
|
|
|
4396
4472
|
var DataForm_default = DataForm;
|
|
4397
4473
|
|
|
4398
4474
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
4399
|
-
import { jsx as
|
|
4475
|
+
import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4400
4476
|
function getAction(actions, code) {
|
|
4401
4477
|
return actions?.find((a) => a.actionCode === code);
|
|
4402
4478
|
}
|
|
@@ -4423,8 +4499,8 @@ var DataFormRenderer = ({
|
|
|
4423
4499
|
);
|
|
4424
4500
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
4425
4501
|
return /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
|
|
4426
|
-
widgetProps && /* @__PURE__ */
|
|
4427
|
-
/* @__PURE__ */
|
|
4502
|
+
widgetProps && /* @__PURE__ */ jsx47(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
4503
|
+
/* @__PURE__ */ jsx47(
|
|
4428
4504
|
DataForm_default,
|
|
4429
4505
|
{
|
|
4430
4506
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|