@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260825113828 → 0.8.1-dev.20260827034013
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +988 -853
- package/dist/index.mjs +486 -351
- package/dist/server.d.mts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +710 -575
- package/dist/server.mjs +295 -160
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
import "./chunk-IMNQO57B.mjs";
|
|
47
47
|
|
|
48
48
|
// src/components/controls/view/ViewControl.tsx
|
|
49
|
-
import
|
|
49
|
+
import React16 from "react";
|
|
50
50
|
|
|
51
51
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
52
52
|
var ViewControlTypes = {
|
|
@@ -74,7 +74,8 @@ var ViewControlTypes = {
|
|
|
74
74
|
timeUntilStartsStyled: "timeUntilStartsStyled",
|
|
75
75
|
aiGeneratedSummary: "aiGeneratedSummary",
|
|
76
76
|
booleanView: "booleanView",
|
|
77
|
-
text: "text"
|
|
77
|
+
text: "text",
|
|
78
|
+
commentRenderer: "commentRenderer"
|
|
78
79
|
};
|
|
79
80
|
var ViewControlTypes_default = ViewControlTypes;
|
|
80
81
|
|
|
@@ -405,8 +406,138 @@ var TimeUntilStarts = dynamic4(() => import("./TimeUntilStartsClient-5HGQ5JKM.mj
|
|
|
405
406
|
});
|
|
406
407
|
var TimeUntilStarts_default = TimeUntilStarts;
|
|
407
408
|
|
|
409
|
+
// src/components/controls/view/Commentrenderer.tsx
|
|
410
|
+
import React15 from "react";
|
|
411
|
+
|
|
412
|
+
// src/components/controls/view/commentTypes.ts
|
|
413
|
+
var isTextNode = (node) => {
|
|
414
|
+
return !!node && typeof node === "object" && node.type === "text";
|
|
415
|
+
};
|
|
416
|
+
var asElementNode = (node) => node;
|
|
417
|
+
|
|
418
|
+
// src/components/controls/view/commentParser.ts
|
|
419
|
+
var parseSerializedContent = (raw) => {
|
|
420
|
+
if (raw === null || raw === void 0) {
|
|
421
|
+
return [];
|
|
422
|
+
}
|
|
423
|
+
let value = raw;
|
|
424
|
+
if (typeof raw === "string") {
|
|
425
|
+
const trimmed = raw.trim();
|
|
426
|
+
if (!trimmed) {
|
|
427
|
+
return [];
|
|
428
|
+
}
|
|
429
|
+
if (trimmed.startsWith("{") || trimmed.startsWith("[")) {
|
|
430
|
+
try {
|
|
431
|
+
value = JSON.parse(trimmed);
|
|
432
|
+
} catch {
|
|
433
|
+
return [{ type: "paragraph", children: [{ type: "text", text: raw }] }];
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
return [{ type: "paragraph", children: [{ type: "text", text: raw }] }];
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
if (Array.isArray(value)) {
|
|
440
|
+
return value;
|
|
441
|
+
}
|
|
442
|
+
if (value && typeof value === "object") {
|
|
443
|
+
const children = value.children;
|
|
444
|
+
if (Array.isArray(children)) {
|
|
445
|
+
return children;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return [];
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
// src/components/controls/view/CommentNodeRenderer.tsx
|
|
452
|
+
import React14 from "react";
|
|
453
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
454
|
+
var TextLeafNode = ({ node }) => {
|
|
455
|
+
let content = node.text;
|
|
456
|
+
if (node.code) content = /* @__PURE__ */ jsx15("code", { className: "comment-node-code", children: content });
|
|
457
|
+
if (node.bold) content = /* @__PURE__ */ jsx15("strong", { children: content });
|
|
458
|
+
if (node.italic) content = /* @__PURE__ */ jsx15("em", { children: content });
|
|
459
|
+
if (node.underline) content = /* @__PURE__ */ jsx15("u", { children: content });
|
|
460
|
+
if (node.strikethrough) content = /* @__PURE__ */ jsx15("s", { children: content });
|
|
461
|
+
return /* @__PURE__ */ jsx15(React14.Fragment, { children: content });
|
|
462
|
+
};
|
|
463
|
+
var renderChildren = (children, keyPrefix) => {
|
|
464
|
+
if (!children || children.length === 0) {
|
|
465
|
+
return null;
|
|
466
|
+
}
|
|
467
|
+
return children.map((child, index) => {
|
|
468
|
+
const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
|
|
469
|
+
return /* @__PURE__ */ jsx15(CommentNodeRenderer, { node: child }, childKey ?? `${keyPrefix}-${index}`);
|
|
470
|
+
});
|
|
471
|
+
};
|
|
472
|
+
var headingLevelFromTag = (tag) => {
|
|
473
|
+
const match = typeof tag === "string" ? tag.match(/\d/) : null;
|
|
474
|
+
const parsed = match ? Number(match[0]) : Number(tag);
|
|
475
|
+
return Number.isFinite(parsed) && parsed >= 1 && parsed <= 6 ? parsed : 3;
|
|
476
|
+
};
|
|
477
|
+
var CommentNodeRenderer = ({ node }) => {
|
|
478
|
+
if (!node || typeof node !== "object") {
|
|
479
|
+
return null;
|
|
480
|
+
}
|
|
481
|
+
if (isTextNode(node)) {
|
|
482
|
+
return /* @__PURE__ */ jsx15(TextLeafNode, { node });
|
|
483
|
+
}
|
|
484
|
+
const element = asElementNode(node);
|
|
485
|
+
const key = element.id ?? element.type;
|
|
486
|
+
switch (element.type) {
|
|
487
|
+
case "paragraph":
|
|
488
|
+
return /* @__PURE__ */ jsx15("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key) ?? /* @__PURE__ */ jsx15("br", {}) });
|
|
489
|
+
case "heading": {
|
|
490
|
+
const level = headingLevelFromTag(element.tag ?? element.level);
|
|
491
|
+
const HeadingTag = `h${level}`;
|
|
492
|
+
return /* @__PURE__ */ jsx15(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key) });
|
|
493
|
+
}
|
|
494
|
+
case "list": {
|
|
495
|
+
const ordered = element.listType === "number" || element.ordered === true;
|
|
496
|
+
const ListTag = ordered ? "ol" : "ul";
|
|
497
|
+
return /* @__PURE__ */ jsx15(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key) });
|
|
498
|
+
}
|
|
499
|
+
case "listitem":
|
|
500
|
+
case "list-item":
|
|
501
|
+
return /* @__PURE__ */ jsx15("li", { className: "comment-node-listitem", children: renderChildren(element.children, key) });
|
|
502
|
+
case "quote":
|
|
503
|
+
case "blockquote":
|
|
504
|
+
return /* @__PURE__ */ jsx15("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key) });
|
|
505
|
+
case "code":
|
|
506
|
+
case "code-block":
|
|
507
|
+
return /* @__PURE__ */ jsx15("pre", { className: "comment-node-codeblock", children: /* @__PURE__ */ jsx15("code", { children: renderChildren(element.children, key) }) });
|
|
508
|
+
case "link": {
|
|
509
|
+
const url = typeof element.url === "string" ? element.url : "#";
|
|
510
|
+
return /* @__PURE__ */ jsx15("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key) });
|
|
511
|
+
}
|
|
512
|
+
case "mention": {
|
|
513
|
+
const label = element.label ?? element.mentionName ?? element.text ?? "";
|
|
514
|
+
return /* @__PURE__ */ jsxs6("span", { className: "comment-node-mention", children: [
|
|
515
|
+
"@",
|
|
516
|
+
label
|
|
517
|
+
] });
|
|
518
|
+
}
|
|
519
|
+
case "linebreak":
|
|
520
|
+
case "line-break":
|
|
521
|
+
return /* @__PURE__ */ jsx15("br", {});
|
|
522
|
+
default:
|
|
523
|
+
return /* @__PURE__ */ jsx15(React14.Fragment, { children: renderChildren(element.children, key) });
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
var CommentNodeRenderer_default = CommentNodeRenderer;
|
|
527
|
+
|
|
528
|
+
// src/components/controls/view/Commentrenderer.tsx
|
|
529
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
530
|
+
var CommentRenderer = ({ value, className }) => {
|
|
531
|
+
const nodes = React15.useMemo(() => parseSerializedContent(value), [value]);
|
|
532
|
+
if (!nodes || nodes.length === 0) {
|
|
533
|
+
return null;
|
|
534
|
+
}
|
|
535
|
+
return /* @__PURE__ */ jsx16("div", { className: className ?? "comment-renderer", children: nodes.map((node, index) => /* @__PURE__ */ jsx16(CommentNodeRenderer_default, { node }, node.id ?? `comment-node-${index}`)) });
|
|
536
|
+
};
|
|
537
|
+
var Commentrenderer_default = CommentRenderer;
|
|
538
|
+
|
|
408
539
|
// src/components/controls/view/ViewControl.tsx
|
|
409
|
-
import { jsx as
|
|
540
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
410
541
|
var ViewControl = (props) => {
|
|
411
542
|
const ControlComponents = {
|
|
412
543
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -433,21 +564,22 @@ var ViewControl = (props) => {
|
|
|
433
564
|
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
434
565
|
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
435
566
|
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
436
|
-
[ViewControlTypes_default.text]: LineTextView_default
|
|
567
|
+
[ViewControlTypes_default.text]: LineTextView_default,
|
|
568
|
+
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
437
569
|
};
|
|
438
570
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
439
|
-
return /* @__PURE__ */
|
|
571
|
+
return /* @__PURE__ */ jsx17(React16.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx17(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
440
572
|
};
|
|
441
573
|
var ViewControl_default = ViewControl;
|
|
442
574
|
|
|
443
575
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
444
|
-
import
|
|
576
|
+
import React26 from "react";
|
|
445
577
|
|
|
446
578
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
447
|
-
import
|
|
579
|
+
import React18 from "react";
|
|
448
580
|
|
|
449
581
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
450
|
-
import { jsx as
|
|
582
|
+
import { jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
451
583
|
var TextNode = (props) => {
|
|
452
584
|
function cssStringToJson(cssString) {
|
|
453
585
|
const styleObject = {};
|
|
@@ -502,35 +634,35 @@ var TextNode = (props) => {
|
|
|
502
634
|
});
|
|
503
635
|
}
|
|
504
636
|
function renderWithLineBreaks(text) {
|
|
505
|
-
return text.split("\n").map((line, index, arr) => /* @__PURE__ */
|
|
637
|
+
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs7("span", { children: [
|
|
506
638
|
line,
|
|
507
|
-
index < arr.length - 1 && /* @__PURE__ */
|
|
639
|
+
index < arr.length - 1 && /* @__PURE__ */ jsx18("br", {})
|
|
508
640
|
] }, index));
|
|
509
641
|
}
|
|
510
642
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
511
643
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
512
644
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
513
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */
|
|
645
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx18("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx18("sub", { children: content }) : content;
|
|
514
646
|
return (
|
|
515
647
|
// @ts-expect-error custom code
|
|
516
|
-
/* @__PURE__ */
|
|
648
|
+
/* @__PURE__ */ jsx18("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
517
649
|
);
|
|
518
650
|
};
|
|
519
651
|
var TextNode_default = TextNode;
|
|
520
652
|
|
|
521
653
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
522
|
-
import { jsx as
|
|
654
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
523
655
|
var LineBreakNode = () => {
|
|
524
|
-
return /* @__PURE__ */
|
|
656
|
+
return /* @__PURE__ */ jsx19("div", { className: "py-0.5 lg:py-1.5" });
|
|
525
657
|
};
|
|
526
658
|
var LineBreakNode_default = LineBreakNode;
|
|
527
659
|
|
|
528
660
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
529
|
-
import
|
|
661
|
+
import React17 from "react";
|
|
530
662
|
|
|
531
663
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
532
664
|
import dynamic5 from "next/dynamic";
|
|
533
|
-
import { jsx as
|
|
665
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
534
666
|
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
535
667
|
var getNestedValue = (obj, path) => {
|
|
536
668
|
if (!obj || !path) return void 0;
|
|
@@ -563,7 +695,7 @@ var ImageNode = (props) => {
|
|
|
563
695
|
assets = [image];
|
|
564
696
|
}
|
|
565
697
|
if (assets && assets.length > 0) {
|
|
566
|
-
return /* @__PURE__ */
|
|
698
|
+
return /* @__PURE__ */ jsx20(
|
|
567
699
|
DeviceAssetSelector_default,
|
|
568
700
|
{
|
|
569
701
|
device: props.device,
|
|
@@ -604,7 +736,7 @@ var ImageNode = (props) => {
|
|
|
604
736
|
right: "justify-end"
|
|
605
737
|
};
|
|
606
738
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
607
|
-
const renderMedia = () => isHls ? /* @__PURE__ */
|
|
739
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ jsx20(
|
|
608
740
|
HlsPlayer2,
|
|
609
741
|
{
|
|
610
742
|
assetUrl: imageUrl,
|
|
@@ -617,7 +749,7 @@ var ImageNode = (props) => {
|
|
|
617
749
|
apiBaseUrl: props.apiBaseUrl,
|
|
618
750
|
session: props.session
|
|
619
751
|
}
|
|
620
|
-
) : /* @__PURE__ */
|
|
752
|
+
) : /* @__PURE__ */ jsx20(
|
|
621
753
|
"img",
|
|
622
754
|
{
|
|
623
755
|
style: styles,
|
|
@@ -630,7 +762,7 @@ var ImageNode = (props) => {
|
|
|
630
762
|
}
|
|
631
763
|
);
|
|
632
764
|
if (props.node.width) {
|
|
633
|
-
return /* @__PURE__ */
|
|
765
|
+
return /* @__PURE__ */ jsx20("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
634
766
|
}
|
|
635
767
|
return renderMedia();
|
|
636
768
|
};
|
|
@@ -638,7 +770,7 @@ var ImageNode_default = ImageNode;
|
|
|
638
770
|
|
|
639
771
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
640
772
|
import dynamic6 from "next/dynamic";
|
|
641
|
-
import { Fragment, jsx as
|
|
773
|
+
import { Fragment, jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
642
774
|
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-BEAX4I4C.mjs"), {
|
|
643
775
|
ssr: false
|
|
644
776
|
});
|
|
@@ -689,15 +821,15 @@ var LinkNode = (props) => {
|
|
|
689
821
|
};
|
|
690
822
|
const linkType = node.cssClass ? getLinkTypeFromCssClass(node.cssClass) : void 0;
|
|
691
823
|
const isButton = node.isButton === true;
|
|
692
|
-
const
|
|
824
|
+
const renderChildren2 = () => {
|
|
693
825
|
if (!node.children || node.children.length === 0) return null;
|
|
694
|
-
return /* @__PURE__ */
|
|
826
|
+
return /* @__PURE__ */ jsx21(Fragment, { children: node.children.map((childNode, index) => {
|
|
695
827
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
696
828
|
if (!SelectedNode) {
|
|
697
829
|
console.warn("Unknown node type:", childNode.type);
|
|
698
830
|
return null;
|
|
699
831
|
}
|
|
700
|
-
return /* @__PURE__ */
|
|
832
|
+
return /* @__PURE__ */ jsx21(React17.Fragment, { children: /* @__PURE__ */ jsx21(
|
|
701
833
|
SelectedNode,
|
|
702
834
|
{
|
|
703
835
|
node: childNode,
|
|
@@ -710,15 +842,15 @@ var LinkNode = (props) => {
|
|
|
710
842
|
};
|
|
711
843
|
const renderFallback = () => {
|
|
712
844
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
713
|
-
return /* @__PURE__ */
|
|
845
|
+
return /* @__PURE__ */ jsx21("span", { children: linkText });
|
|
714
846
|
}
|
|
715
847
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
716
|
-
return /* @__PURE__ */
|
|
848
|
+
return /* @__PURE__ */ jsx21("br", {});
|
|
717
849
|
}
|
|
718
850
|
return null;
|
|
719
851
|
};
|
|
720
852
|
if (isButton) {
|
|
721
|
-
return /* @__PURE__ */
|
|
853
|
+
return /* @__PURE__ */ jsxs8(
|
|
722
854
|
LinkNodeButton,
|
|
723
855
|
{
|
|
724
856
|
node,
|
|
@@ -730,20 +862,20 @@ var LinkNode = (props) => {
|
|
|
730
862
|
linkType,
|
|
731
863
|
linkUrl,
|
|
732
864
|
children: [
|
|
733
|
-
|
|
865
|
+
renderChildren2(),
|
|
734
866
|
renderFallback()
|
|
735
867
|
]
|
|
736
868
|
}
|
|
737
869
|
);
|
|
738
870
|
}
|
|
739
|
-
return /* @__PURE__ */
|
|
871
|
+
return /* @__PURE__ */ jsxs8(
|
|
740
872
|
Hyperlink,
|
|
741
873
|
{
|
|
742
874
|
href: linkUrl || "#",
|
|
743
875
|
linkType,
|
|
744
876
|
alt: linkText || node.title || "",
|
|
745
877
|
children: [
|
|
746
|
-
|
|
878
|
+
renderChildren2(),
|
|
747
879
|
renderFallback()
|
|
748
880
|
]
|
|
749
881
|
}
|
|
@@ -752,10 +884,10 @@ var LinkNode = (props) => {
|
|
|
752
884
|
var LinkNode_default = LinkNode;
|
|
753
885
|
|
|
754
886
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
755
|
-
import { jsx as
|
|
887
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
756
888
|
var SVGIconNode = ({ node }) => {
|
|
757
889
|
if (!node?.svgCode) return null;
|
|
758
|
-
return /* @__PURE__ */
|
|
890
|
+
return /* @__PURE__ */ jsx22(
|
|
759
891
|
"span",
|
|
760
892
|
{
|
|
761
893
|
style: {
|
|
@@ -772,7 +904,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
772
904
|
|
|
773
905
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
774
906
|
import katex from "katex";
|
|
775
|
-
import { jsx as
|
|
907
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
776
908
|
var EquationNode = ({ node }) => {
|
|
777
909
|
const { equation, inline } = node;
|
|
778
910
|
let html = "";
|
|
@@ -787,7 +919,7 @@ var EquationNode = ({ node }) => {
|
|
|
787
919
|
});
|
|
788
920
|
}
|
|
789
921
|
if (inline) {
|
|
790
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ jsx23(
|
|
791
923
|
"span",
|
|
792
924
|
{
|
|
793
925
|
className: "katex-inline",
|
|
@@ -795,7 +927,7 @@ var EquationNode = ({ node }) => {
|
|
|
795
927
|
}
|
|
796
928
|
);
|
|
797
929
|
}
|
|
798
|
-
return /* @__PURE__ */
|
|
930
|
+
return /* @__PURE__ */ jsx23(
|
|
799
931
|
"div",
|
|
800
932
|
{
|
|
801
933
|
className: "katex-block my-3 text-center",
|
|
@@ -806,7 +938,7 @@ var EquationNode = ({ node }) => {
|
|
|
806
938
|
var EquationNode_default = EquationNode;
|
|
807
939
|
|
|
808
940
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
809
|
-
import { jsx as
|
|
941
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
810
942
|
function getNestedProperty(obj, path) {
|
|
811
943
|
if (!obj || !path) return null;
|
|
812
944
|
if (path.includes(".")) {
|
|
@@ -819,7 +951,7 @@ function getNestedProperty(obj, path) {
|
|
|
819
951
|
}
|
|
820
952
|
const value = obj[path];
|
|
821
953
|
if (Array.isArray(value)) {
|
|
822
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
954
|
+
return value.map((item, index) => /* @__PURE__ */ jsx24("div", { children: String(item) }, index));
|
|
823
955
|
}
|
|
824
956
|
return value;
|
|
825
957
|
}
|
|
@@ -869,7 +1001,8 @@ var DatafieldNode = (props) => {
|
|
|
869
1001
|
const value = props.dataitem ? getNestedProperty(props.dataitem, fieldName) : null;
|
|
870
1002
|
const isEmptyValue = value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || typeof value === "object" && value !== null && Object.keys(value).length === 0;
|
|
871
1003
|
const maxLines = props.node.maxLines;
|
|
872
|
-
|
|
1004
|
+
const hasMaxLines = Boolean(maxLines && Number(maxLines) > 0);
|
|
1005
|
+
if (hasMaxLines) {
|
|
873
1006
|
Object.assign(styles, {
|
|
874
1007
|
display: "-webkit-box",
|
|
875
1008
|
overflow: "hidden",
|
|
@@ -877,10 +1010,11 @@ var DatafieldNode = (props) => {
|
|
|
877
1010
|
WebkitLineClamp: String(maxLines)
|
|
878
1011
|
});
|
|
879
1012
|
}
|
|
1013
|
+
const title = hasMaxLines ? typeof value === "string" || typeof value === "number" ? String(value) : props.node.title : props.node.title;
|
|
880
1014
|
const dataType = props.node.dataType;
|
|
881
1015
|
if (isEmptyValue) return null;
|
|
882
1016
|
if (dataType === "rawContent") {
|
|
883
|
-
return /* @__PURE__ */
|
|
1017
|
+
return /* @__PURE__ */ jsx24(
|
|
884
1018
|
PageBodyRenderer_default,
|
|
885
1019
|
{
|
|
886
1020
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -896,12 +1030,13 @@ var DatafieldNode = (props) => {
|
|
|
896
1030
|
}
|
|
897
1031
|
);
|
|
898
1032
|
}
|
|
899
|
-
return /* @__PURE__ */
|
|
1033
|
+
return /* @__PURE__ */ jsx24(
|
|
900
1034
|
"span",
|
|
901
1035
|
{
|
|
902
1036
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
903
1037
|
style: styles,
|
|
904
|
-
|
|
1038
|
+
title,
|
|
1039
|
+
children: /* @__PURE__ */ jsx24(
|
|
905
1040
|
ViewControl_default,
|
|
906
1041
|
{
|
|
907
1042
|
controlType: dataType,
|
|
@@ -914,7 +1049,7 @@ var DatafieldNode = (props) => {
|
|
|
914
1049
|
var DatafieldNode_default = DatafieldNode;
|
|
915
1050
|
|
|
916
1051
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
917
|
-
import { Fragment as Fragment2, jsx as
|
|
1052
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
918
1053
|
var ParagraphNode = (props) => {
|
|
919
1054
|
const NodeTypes2 = {
|
|
920
1055
|
["text"]: TextNode_default,
|
|
@@ -934,9 +1069,9 @@ var ParagraphNode = (props) => {
|
|
|
934
1069
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
935
1070
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
936
1071
|
if (isInlineOnlyParent) {
|
|
937
|
-
return /* @__PURE__ */
|
|
1072
|
+
return /* @__PURE__ */ jsx25(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
938
1073
|
const SelectedNode = NodeTypes2[node.type];
|
|
939
|
-
return /* @__PURE__ */
|
|
1074
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(
|
|
940
1075
|
SelectedNode,
|
|
941
1076
|
{
|
|
942
1077
|
node,
|
|
@@ -948,10 +1083,10 @@ var ParagraphNode = (props) => {
|
|
|
948
1083
|
) }, index);
|
|
949
1084
|
}) });
|
|
950
1085
|
}
|
|
951
|
-
return /* @__PURE__ */
|
|
1086
|
+
return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
|
|
952
1087
|
hasChildren && props.node.children.map((node, index) => {
|
|
953
1088
|
const SelectedNode = NodeTypes2[node.type];
|
|
954
|
-
return /* @__PURE__ */
|
|
1089
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(
|
|
955
1090
|
SelectedNode,
|
|
956
1091
|
{
|
|
957
1092
|
node,
|
|
@@ -962,14 +1097,14 @@ var ParagraphNode = (props) => {
|
|
|
962
1097
|
}
|
|
963
1098
|
) }, index);
|
|
964
1099
|
}),
|
|
965
|
-
!hasChildren && /* @__PURE__ */
|
|
1100
|
+
!hasChildren && /* @__PURE__ */ jsx25("div", { className: "py-1.5 lg:py-2" })
|
|
966
1101
|
] });
|
|
967
1102
|
};
|
|
968
1103
|
var ParagraphNode_default = ParagraphNode;
|
|
969
1104
|
|
|
970
1105
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
971
|
-
import
|
|
972
|
-
import { Fragment as Fragment3, jsx as
|
|
1106
|
+
import React19 from "react";
|
|
1107
|
+
import { Fragment as Fragment3, jsx as jsx26 } from "react/jsx-runtime";
|
|
973
1108
|
var HeadingNode = (props) => {
|
|
974
1109
|
const NodeTypes2 = {
|
|
975
1110
|
["text"]: TextNode_default,
|
|
@@ -985,23 +1120,23 @@ var HeadingNode = (props) => {
|
|
|
985
1120
|
{
|
|
986
1121
|
}
|
|
987
1122
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
988
|
-
return /* @__PURE__ */
|
|
1123
|
+
return /* @__PURE__ */ jsx26(Fragment3, { children: React19.createElement(
|
|
989
1124
|
HeadingTag,
|
|
990
1125
|
{ className: formatClasses },
|
|
991
1126
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
992
1127
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
993
|
-
return /* @__PURE__ */
|
|
1128
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
994
1129
|
})
|
|
995
1130
|
) });
|
|
996
1131
|
};
|
|
997
1132
|
var HeadingNode_default = HeadingNode;
|
|
998
1133
|
|
|
999
1134
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1000
|
-
import
|
|
1135
|
+
import React21 from "react";
|
|
1001
1136
|
|
|
1002
1137
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
1003
|
-
import
|
|
1004
|
-
import { jsx as
|
|
1138
|
+
import React20 from "react";
|
|
1139
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1005
1140
|
var ListItemNode = (props) => {
|
|
1006
1141
|
const NodeTypes2 = {
|
|
1007
1142
|
text: TextNode_default,
|
|
@@ -1018,66 +1153,66 @@ var ListItemNode = (props) => {
|
|
|
1018
1153
|
liStyle.fontSize = match[1].trim();
|
|
1019
1154
|
}
|
|
1020
1155
|
}
|
|
1021
|
-
return /* @__PURE__ */
|
|
1156
|
+
return /* @__PURE__ */ jsx27("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
1022
1157
|
const SelectedNode = NodeTypes2[node.type];
|
|
1023
1158
|
if (node.type === "linebreak") {
|
|
1024
1159
|
if (!foundFirstBreak) {
|
|
1025
1160
|
foundFirstBreak = true;
|
|
1026
|
-
return /* @__PURE__ */
|
|
1161
|
+
return /* @__PURE__ */ jsx27("div", {}, index);
|
|
1027
1162
|
} else {
|
|
1028
|
-
return /* @__PURE__ */
|
|
1163
|
+
return /* @__PURE__ */ jsx27("div", { className: "py-1 lg:py-2" }, index);
|
|
1029
1164
|
}
|
|
1030
1165
|
} else {
|
|
1031
1166
|
foundFirstBreak = false;
|
|
1032
|
-
return /* @__PURE__ */
|
|
1167
|
+
return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1033
1168
|
}
|
|
1034
1169
|
}) });
|
|
1035
1170
|
};
|
|
1036
1171
|
var ListItemNode_default = ListItemNode;
|
|
1037
1172
|
|
|
1038
1173
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1039
|
-
import { jsx as
|
|
1174
|
+
import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1040
1175
|
var ListNode = (props) => {
|
|
1041
1176
|
const NodeTypes2 = {
|
|
1042
1177
|
listitem: ListItemNode_default
|
|
1043
1178
|
};
|
|
1044
|
-
return /* @__PURE__ */
|
|
1045
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1179
|
+
return /* @__PURE__ */ jsxs10(React21.Fragment, { children: [
|
|
1180
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx28("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1046
1181
|
const SelectedNode = NodeTypes2[node.type];
|
|
1047
|
-
return /* @__PURE__ */
|
|
1182
|
+
return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1048
1183
|
}) }),
|
|
1049
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1184
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx28("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1050
1185
|
const SelectedNode = NodeTypes2[node.type];
|
|
1051
|
-
return /* @__PURE__ */
|
|
1186
|
+
return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1052
1187
|
}) })
|
|
1053
1188
|
] });
|
|
1054
1189
|
};
|
|
1055
1190
|
var ListNode_default = ListNode;
|
|
1056
1191
|
|
|
1057
1192
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1058
|
-
import
|
|
1059
|
-
import { jsx as
|
|
1193
|
+
import React22 from "react";
|
|
1194
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1060
1195
|
var QuoteNode = (props) => {
|
|
1061
1196
|
const NodeTypes2 = {
|
|
1062
1197
|
["text"]: TextNode_default,
|
|
1063
1198
|
["linebreak"]: LineBreakNode_default,
|
|
1064
1199
|
["link"]: LinkNode_default
|
|
1065
1200
|
};
|
|
1066
|
-
return /* @__PURE__ */
|
|
1201
|
+
return /* @__PURE__ */ jsx29("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1067
1202
|
const SelectedNode = NodeTypes2[node.type];
|
|
1068
|
-
return /* @__PURE__ */
|
|
1203
|
+
return /* @__PURE__ */ jsx29(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1069
1204
|
}) });
|
|
1070
1205
|
};
|
|
1071
1206
|
var QuoteNode_default = QuoteNode;
|
|
1072
1207
|
|
|
1073
1208
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1074
|
-
import
|
|
1209
|
+
import React23 from "react";
|
|
1075
1210
|
import dynamic7 from "next/dynamic";
|
|
1076
|
-
import { jsx as
|
|
1211
|
+
import { jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1077
1212
|
var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1078
1213
|
ssr: false,
|
|
1079
1214
|
// optional: fallback UI while loading
|
|
1080
|
-
loading: () => /* @__PURE__ */
|
|
1215
|
+
loading: () => /* @__PURE__ */ jsx30("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1081
1216
|
});
|
|
1082
1217
|
var CodeNode = (props) => {
|
|
1083
1218
|
const NodeTypes2 = {
|
|
@@ -1091,14 +1226,14 @@ var CodeNode = (props) => {
|
|
|
1091
1226
|
if (node.type === "link") return node.text || node.url || "";
|
|
1092
1227
|
return "";
|
|
1093
1228
|
}).join("") ?? "";
|
|
1094
|
-
return /* @__PURE__ */
|
|
1095
|
-
/* @__PURE__ */
|
|
1096
|
-
/* @__PURE__ */
|
|
1097
|
-
/* @__PURE__ */
|
|
1229
|
+
return /* @__PURE__ */ jsxs11("div", { children: [
|
|
1230
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
1231
|
+
/* @__PURE__ */ jsx30("span", { children: "Code Snippet" }),
|
|
1232
|
+
/* @__PURE__ */ jsx30(CopyButton, { text: textContent })
|
|
1098
1233
|
] }),
|
|
1099
|
-
/* @__PURE__ */
|
|
1234
|
+
/* @__PURE__ */ jsx30("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) => {
|
|
1100
1235
|
const SelectedNode = NodeTypes2[node.type];
|
|
1101
|
-
return /* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ jsx30(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(
|
|
1102
1237
|
SelectedNode,
|
|
1103
1238
|
{
|
|
1104
1239
|
node,
|
|
@@ -1113,15 +1248,15 @@ var CodeNode = (props) => {
|
|
|
1113
1248
|
var CodeNode_default = CodeNode;
|
|
1114
1249
|
|
|
1115
1250
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1116
|
-
import { jsx as
|
|
1251
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1117
1252
|
var HorizontalRuleNode = () => {
|
|
1118
|
-
return /* @__PURE__ */
|
|
1253
|
+
return /* @__PURE__ */ jsx31("hr", {});
|
|
1119
1254
|
};
|
|
1120
1255
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1121
1256
|
|
|
1122
1257
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1123
|
-
import
|
|
1124
|
-
import { Fragment as Fragment4, jsx as
|
|
1258
|
+
import React24 from "react";
|
|
1259
|
+
import { Fragment as Fragment4, jsx as jsx32 } from "react/jsx-runtime";
|
|
1125
1260
|
var WidgetNode = (props) => {
|
|
1126
1261
|
const getWidgetParameters = () => {
|
|
1127
1262
|
const widgetInputParameters = {
|
|
@@ -1185,7 +1320,7 @@ var WidgetNode = (props) => {
|
|
|
1185
1320
|
};
|
|
1186
1321
|
const widgetCode = props.node?.widgetCode;
|
|
1187
1322
|
if (!widgetCode) {
|
|
1188
|
-
return /* @__PURE__ */
|
|
1323
|
+
return /* @__PURE__ */ jsx32(Fragment4, { children: "Invalid widget" });
|
|
1189
1324
|
}
|
|
1190
1325
|
const widgetParams = getWidgetParameters();
|
|
1191
1326
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1194,7 +1329,7 @@ var WidgetNode = (props) => {
|
|
|
1194
1329
|
}
|
|
1195
1330
|
return (
|
|
1196
1331
|
// eslint-disable-next-line react-hooks/static-components
|
|
1197
|
-
/* @__PURE__ */
|
|
1332
|
+
/* @__PURE__ */ jsx32(React24.Fragment, { children: /* @__PURE__ */ jsx32(
|
|
1198
1333
|
WidgetRenderer,
|
|
1199
1334
|
{
|
|
1200
1335
|
params: widgetParams,
|
|
@@ -1212,11 +1347,11 @@ var WidgetNode_default = WidgetNode;
|
|
|
1212
1347
|
|
|
1213
1348
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1214
1349
|
import dynamic11 from "next/dynamic";
|
|
1215
|
-
import
|
|
1350
|
+
import React25 from "react";
|
|
1216
1351
|
|
|
1217
1352
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1218
1353
|
import dynamic8 from "next/dynamic";
|
|
1219
|
-
import { jsx as
|
|
1354
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1220
1355
|
var IframeClient = dynamic8(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
1221
1356
|
ssr: false
|
|
1222
1357
|
});
|
|
@@ -1229,7 +1364,7 @@ var EmbedNode = (props) => {
|
|
|
1229
1364
|
} else {
|
|
1230
1365
|
src = props.node.embedSrc;
|
|
1231
1366
|
}
|
|
1232
|
-
return /* @__PURE__ */
|
|
1367
|
+
return /* @__PURE__ */ jsx33("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx33(IframeClient, { src }) });
|
|
1233
1368
|
};
|
|
1234
1369
|
var EmbedNode_default = EmbedNode;
|
|
1235
1370
|
|
|
@@ -1422,10 +1557,10 @@ var PathUtility = class {
|
|
|
1422
1557
|
var PathUtility_default = new PathUtility();
|
|
1423
1558
|
|
|
1424
1559
|
// src/components/NoDataFound.tsx
|
|
1425
|
-
import { jsx as
|
|
1560
|
+
import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1426
1561
|
var NoDataFound = () => {
|
|
1427
|
-
return /* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1563
|
+
/* @__PURE__ */ jsx34("div", { className: "mb-5", children: /* @__PURE__ */ jsx34("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
|
|
1429
1564
|
"svg",
|
|
1430
1565
|
{
|
|
1431
1566
|
className: "w-10 h-10",
|
|
@@ -1433,7 +1568,7 @@ var NoDataFound = () => {
|
|
|
1433
1568
|
stroke: "currentColor",
|
|
1434
1569
|
viewBox: "0 0 24 24",
|
|
1435
1570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1436
|
-
children: /* @__PURE__ */
|
|
1571
|
+
children: /* @__PURE__ */ jsx34(
|
|
1437
1572
|
"path",
|
|
1438
1573
|
{
|
|
1439
1574
|
strokeLinecap: "round",
|
|
@@ -1444,15 +1579,15 @@ var NoDataFound = () => {
|
|
|
1444
1579
|
)
|
|
1445
1580
|
}
|
|
1446
1581
|
) }) }),
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
/* @__PURE__ */
|
|
1582
|
+
/* @__PURE__ */ jsx34("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1583
|
+
/* @__PURE__ */ jsx34("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1449
1584
|
] });
|
|
1450
1585
|
};
|
|
1451
1586
|
var NoDataFound_default = NoDataFound;
|
|
1452
1587
|
|
|
1453
1588
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1454
1589
|
import dynamic9 from "next/dynamic";
|
|
1455
|
-
import { Fragment as Fragment5, jsx as
|
|
1590
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1456
1591
|
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
1457
1592
|
var deviceToMediaQuery = (device) => {
|
|
1458
1593
|
switch (device) {
|
|
@@ -1608,8 +1743,8 @@ var ImageGalleryNode = (props) => {
|
|
|
1608
1743
|
right: "justify-end"
|
|
1609
1744
|
};
|
|
1610
1745
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1611
|
-
return /* @__PURE__ */
|
|
1612
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1746
|
+
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1747
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx35(Fragment5, { children: /* @__PURE__ */ jsx35(
|
|
1613
1748
|
HlsPlayer3,
|
|
1614
1749
|
{
|
|
1615
1750
|
sources: hlsSources,
|
|
@@ -1624,7 +1759,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1624
1759
|
styles: hlsStyles
|
|
1625
1760
|
}
|
|
1626
1761
|
) }),
|
|
1627
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1762
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx35(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
|
|
1628
1763
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1629
1764
|
const match = staticSources.find(
|
|
1630
1765
|
(img) => img.device === deviceKey
|
|
@@ -1640,7 +1775,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1640
1775
|
if (!srcUrl) {
|
|
1641
1776
|
return null;
|
|
1642
1777
|
}
|
|
1643
|
-
return /* @__PURE__ */
|
|
1778
|
+
return /* @__PURE__ */ jsx35(
|
|
1644
1779
|
"source",
|
|
1645
1780
|
{
|
|
1646
1781
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1665,7 +1800,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1665
1800
|
if (img.borderRadius) {
|
|
1666
1801
|
styles.borderRadius = img.borderRadius;
|
|
1667
1802
|
}
|
|
1668
|
-
return /* @__PURE__ */
|
|
1803
|
+
return /* @__PURE__ */ jsx35(
|
|
1669
1804
|
"img",
|
|
1670
1805
|
{
|
|
1671
1806
|
loading: "lazy",
|
|
@@ -1680,7 +1815,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1680
1815
|
})()
|
|
1681
1816
|
] }) : (
|
|
1682
1817
|
/* Case 2: Only device-specific images exist */
|
|
1683
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ jsx35(Fragment5, { children: staticSources.map((img, index) => {
|
|
1684
1819
|
const resolved = resolveImage(img);
|
|
1685
1820
|
const imageUrl = resolved?.imageUrl;
|
|
1686
1821
|
if (!imageUrl) {
|
|
@@ -1707,7 +1842,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1707
1842
|
default:
|
|
1708
1843
|
display = "block";
|
|
1709
1844
|
}
|
|
1710
|
-
return /* @__PURE__ */
|
|
1845
|
+
return /* @__PURE__ */ jsx35(
|
|
1711
1846
|
"img",
|
|
1712
1847
|
{
|
|
1713
1848
|
loading: "lazy",
|
|
@@ -1847,28 +1982,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1847
1982
|
};
|
|
1848
1983
|
|
|
1849
1984
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1850
|
-
import { Fragment as Fragment6, jsx as
|
|
1985
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1851
1986
|
var getNestedValue5 = (obj, path) => {
|
|
1852
1987
|
if (!obj || !path) return void 0;
|
|
1853
1988
|
return path.split(".").reduce((current, key) => {
|
|
1854
1989
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
1855
1990
|
}, obj);
|
|
1856
1991
|
};
|
|
1857
|
-
var PdfIcon = () => /* @__PURE__ */
|
|
1992
|
+
var PdfIcon = () => /* @__PURE__ */ jsxs14(
|
|
1858
1993
|
"svg",
|
|
1859
1994
|
{
|
|
1860
1995
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1861
1996
|
viewBox: "0 0 48 48",
|
|
1862
1997
|
className: "w-10 h-10",
|
|
1863
1998
|
children: [
|
|
1864
|
-
/* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ jsx36(
|
|
1865
2000
|
"path",
|
|
1866
2001
|
{
|
|
1867
2002
|
fill: "#e53935",
|
|
1868
2003
|
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"
|
|
1869
2004
|
}
|
|
1870
2005
|
),
|
|
1871
|
-
/* @__PURE__ */
|
|
2006
|
+
/* @__PURE__ */ jsx36(
|
|
1872
2007
|
"path",
|
|
1873
2008
|
{
|
|
1874
2009
|
fill: "#fff",
|
|
@@ -1878,55 +2013,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1878
2013
|
]
|
|
1879
2014
|
}
|
|
1880
2015
|
);
|
|
1881
|
-
var ExcelIcon = () => /* @__PURE__ */
|
|
2016
|
+
var ExcelIcon = () => /* @__PURE__ */ jsxs14(
|
|
1882
2017
|
"svg",
|
|
1883
2018
|
{
|
|
1884
2019
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1885
2020
|
viewBox: "0 0 48 48",
|
|
1886
2021
|
className: "w-10 h-10",
|
|
1887
2022
|
children: [
|
|
1888
|
-
/* @__PURE__ */
|
|
2023
|
+
/* @__PURE__ */ jsx36(
|
|
1889
2024
|
"path",
|
|
1890
2025
|
{
|
|
1891
2026
|
fill: "#169154",
|
|
1892
2027
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1893
2028
|
}
|
|
1894
2029
|
),
|
|
1895
|
-
/* @__PURE__ */
|
|
2030
|
+
/* @__PURE__ */ jsx36(
|
|
1896
2031
|
"path",
|
|
1897
2032
|
{
|
|
1898
2033
|
fill: "#18482a",
|
|
1899
2034
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1900
2035
|
}
|
|
1901
2036
|
),
|
|
1902
|
-
/* @__PURE__ */
|
|
1903
|
-
/* @__PURE__ */
|
|
1904
|
-
/* @__PURE__ */
|
|
1905
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ jsx36("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
2038
|
+
/* @__PURE__ */ jsx36("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
2039
|
+
/* @__PURE__ */ jsxs14("g", { children: [
|
|
2040
|
+
/* @__PURE__ */ jsx36(
|
|
1906
2041
|
"path",
|
|
1907
2042
|
{
|
|
1908
2043
|
fill: "#29c27f",
|
|
1909
2044
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1910
2045
|
}
|
|
1911
2046
|
),
|
|
1912
|
-
/* @__PURE__ */
|
|
2047
|
+
/* @__PURE__ */ jsx36(
|
|
1913
2048
|
"path",
|
|
1914
2049
|
{
|
|
1915
2050
|
fill: "#27663f",
|
|
1916
2051
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1917
2052
|
}
|
|
1918
2053
|
),
|
|
1919
|
-
/* @__PURE__ */
|
|
1920
|
-
/* @__PURE__ */
|
|
2054
|
+
/* @__PURE__ */ jsx36("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
2055
|
+
/* @__PURE__ */ jsx36("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1921
2056
|
] }),
|
|
1922
|
-
/* @__PURE__ */
|
|
2057
|
+
/* @__PURE__ */ jsx36(
|
|
1923
2058
|
"path",
|
|
1924
2059
|
{
|
|
1925
2060
|
fill: "#0c7238",
|
|
1926
2061
|
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"
|
|
1927
2062
|
}
|
|
1928
2063
|
),
|
|
1929
|
-
/* @__PURE__ */
|
|
2064
|
+
/* @__PURE__ */ jsx36(
|
|
1930
2065
|
"path",
|
|
1931
2066
|
{
|
|
1932
2067
|
fill: "#fff",
|
|
@@ -1936,7 +2071,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1936
2071
|
]
|
|
1937
2072
|
}
|
|
1938
2073
|
);
|
|
1939
|
-
var WordIcon = () => /* @__PURE__ */
|
|
2074
|
+
var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
1940
2075
|
"svg",
|
|
1941
2076
|
{
|
|
1942
2077
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1944,14 +2079,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1944
2079
|
className: "w-10 h-10",
|
|
1945
2080
|
baseProfile: "basic",
|
|
1946
2081
|
children: [
|
|
1947
|
-
/* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ jsx36(
|
|
1948
2083
|
"path",
|
|
1949
2084
|
{
|
|
1950
2085
|
fill: "#283593",
|
|
1951
2086
|
d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
|
|
1952
2087
|
}
|
|
1953
2088
|
),
|
|
1954
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ jsxs14(
|
|
1955
2090
|
"linearGradient",
|
|
1956
2091
|
{
|
|
1957
2092
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -1962,19 +2097,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1962
2097
|
gradientTransform: "translate(0 -339.89)",
|
|
1963
2098
|
gradientUnits: "userSpaceOnUse",
|
|
1964
2099
|
children: [
|
|
1965
|
-
/* @__PURE__ */
|
|
1966
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ jsx36("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
2101
|
+
/* @__PURE__ */ jsx36("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
1967
2102
|
]
|
|
1968
2103
|
}
|
|
1969
2104
|
),
|
|
1970
|
-
/* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ jsx36(
|
|
1971
2106
|
"path",
|
|
1972
2107
|
{
|
|
1973
2108
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
1974
2109
|
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"
|
|
1975
2110
|
}
|
|
1976
2111
|
),
|
|
1977
|
-
/* @__PURE__ */
|
|
2112
|
+
/* @__PURE__ */ jsx36(
|
|
1978
2113
|
"path",
|
|
1979
2114
|
{
|
|
1980
2115
|
fill: "#1e88e5",
|
|
@@ -1982,21 +2117,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1982
2117
|
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"
|
|
1983
2118
|
}
|
|
1984
2119
|
),
|
|
1985
|
-
/* @__PURE__ */
|
|
2120
|
+
/* @__PURE__ */ jsx36(
|
|
1986
2121
|
"path",
|
|
1987
2122
|
{
|
|
1988
2123
|
fill: "#00e5ff",
|
|
1989
2124
|
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"
|
|
1990
2125
|
}
|
|
1991
2126
|
),
|
|
1992
|
-
/* @__PURE__ */
|
|
2127
|
+
/* @__PURE__ */ jsx36(
|
|
1993
2128
|
"path",
|
|
1994
2129
|
{
|
|
1995
2130
|
fill: "#1565c0",
|
|
1996
2131
|
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"
|
|
1997
2132
|
}
|
|
1998
2133
|
),
|
|
1999
|
-
/* @__PURE__ */
|
|
2134
|
+
/* @__PURE__ */ jsx36(
|
|
2000
2135
|
"path",
|
|
2001
2136
|
{
|
|
2002
2137
|
fill: "#fff",
|
|
@@ -2006,42 +2141,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2006
2141
|
]
|
|
2007
2142
|
}
|
|
2008
2143
|
);
|
|
2009
|
-
var StandardIcon = () => /* @__PURE__ */
|
|
2144
|
+
var StandardIcon = () => /* @__PURE__ */ jsxs14(
|
|
2010
2145
|
"svg",
|
|
2011
2146
|
{
|
|
2012
2147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2013
2148
|
viewBox: "0 0 48 48",
|
|
2014
2149
|
className: "w-10 h-10",
|
|
2015
2150
|
children: [
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
/* @__PURE__ */
|
|
2151
|
+
/* @__PURE__ */ jsx36("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2152
|
+
/* @__PURE__ */ jsx36("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
2018
2153
|
]
|
|
2019
2154
|
}
|
|
2020
2155
|
);
|
|
2021
|
-
var PowerPointIcon = () => /* @__PURE__ */
|
|
2156
|
+
var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
|
|
2022
2157
|
"svg",
|
|
2023
2158
|
{
|
|
2024
2159
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2025
2160
|
viewBox: "0 0 48 48",
|
|
2026
2161
|
className: "w-10 h-10",
|
|
2027
2162
|
children: [
|
|
2028
|
-
/* @__PURE__ */
|
|
2163
|
+
/* @__PURE__ */ jsx36(
|
|
2029
2164
|
"path",
|
|
2030
2165
|
{
|
|
2031
2166
|
fill: "#dc4c2c",
|
|
2032
2167
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2033
2168
|
}
|
|
2034
2169
|
),
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2037
|
-
/* @__PURE__ */
|
|
2170
|
+
/* @__PURE__ */ jsx36("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2171
|
+
/* @__PURE__ */ jsx36("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2172
|
+
/* @__PURE__ */ jsx36(
|
|
2038
2173
|
"path",
|
|
2039
2174
|
{
|
|
2040
2175
|
fill: "#9b341f",
|
|
2041
2176
|
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"
|
|
2042
2177
|
}
|
|
2043
2178
|
),
|
|
2044
|
-
/* @__PURE__ */
|
|
2179
|
+
/* @__PURE__ */ jsx36(
|
|
2045
2180
|
"path",
|
|
2046
2181
|
{
|
|
2047
2182
|
fill: "#fff",
|
|
@@ -2051,16 +2186,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2051
2186
|
]
|
|
2052
2187
|
}
|
|
2053
2188
|
);
|
|
2054
|
-
var TextIcon = () => /* @__PURE__ */
|
|
2189
|
+
var TextIcon = () => /* @__PURE__ */ jsxs14(
|
|
2055
2190
|
"svg",
|
|
2056
2191
|
{
|
|
2057
2192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2058
2193
|
viewBox: "0 0 48 48",
|
|
2059
2194
|
className: "w-10 h-10",
|
|
2060
2195
|
children: [
|
|
2061
|
-
/* @__PURE__ */
|
|
2062
|
-
/* @__PURE__ */
|
|
2063
|
-
/* @__PURE__ */
|
|
2196
|
+
/* @__PURE__ */ jsx36("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2197
|
+
/* @__PURE__ */ jsx36("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2198
|
+
/* @__PURE__ */ jsx36(
|
|
2064
2199
|
"path",
|
|
2065
2200
|
{
|
|
2066
2201
|
fill: "#1976D2",
|
|
@@ -2070,7 +2205,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2070
2205
|
]
|
|
2071
2206
|
}
|
|
2072
2207
|
);
|
|
2073
|
-
var ArchiveIcon = () => /* @__PURE__ */
|
|
2208
|
+
var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
2074
2209
|
"svg",
|
|
2075
2210
|
{
|
|
2076
2211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2080,14 +2215,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2080
2215
|
version: "1.0",
|
|
2081
2216
|
className: "w-10 h-10",
|
|
2082
2217
|
children: [
|
|
2083
|
-
/* @__PURE__ */
|
|
2218
|
+
/* @__PURE__ */ jsx36("defs", { children: /* @__PURE__ */ jsx36("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx36(
|
|
2084
2219
|
"path",
|
|
2085
2220
|
{
|
|
2086
2221
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2087
2222
|
"clip-rule": "nonzero"
|
|
2088
2223
|
}
|
|
2089
2224
|
) }) }),
|
|
2090
|
-
/* @__PURE__ */
|
|
2225
|
+
/* @__PURE__ */ jsx36("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx36(
|
|
2091
2226
|
"path",
|
|
2092
2227
|
{
|
|
2093
2228
|
fill: "#ff9100",
|
|
@@ -2096,7 +2231,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2096
2231
|
"fill-rule": "nonzero"
|
|
2097
2232
|
}
|
|
2098
2233
|
) }),
|
|
2099
|
-
/* @__PURE__ */
|
|
2234
|
+
/* @__PURE__ */ jsx36(
|
|
2100
2235
|
"path",
|
|
2101
2236
|
{
|
|
2102
2237
|
fill: "#fbe9e7",
|
|
@@ -2105,7 +2240,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2105
2240
|
"fill-rule": "nonzero"
|
|
2106
2241
|
}
|
|
2107
2242
|
),
|
|
2108
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ jsx36(
|
|
2109
2244
|
"path",
|
|
2110
2245
|
{
|
|
2111
2246
|
fill: "#ffe0b2",
|
|
@@ -2114,7 +2249,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2114
2249
|
"fill-rule": "nonzero"
|
|
2115
2250
|
}
|
|
2116
2251
|
),
|
|
2117
|
-
/* @__PURE__ */
|
|
2252
|
+
/* @__PURE__ */ jsx36(
|
|
2118
2253
|
"path",
|
|
2119
2254
|
{
|
|
2120
2255
|
fill: "#ffe0b2",
|
|
@@ -2123,7 +2258,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2123
2258
|
"fill-rule": "nonzero"
|
|
2124
2259
|
}
|
|
2125
2260
|
),
|
|
2126
|
-
/* @__PURE__ */
|
|
2261
|
+
/* @__PURE__ */ jsx36(
|
|
2127
2262
|
"path",
|
|
2128
2263
|
{
|
|
2129
2264
|
fill: "#ffe0b2",
|
|
@@ -2198,8 +2333,8 @@ var DocumentNode = (props) => {
|
|
|
2198
2333
|
}
|
|
2199
2334
|
}
|
|
2200
2335
|
if (documents.length === 0) {
|
|
2201
|
-
return /* @__PURE__ */
|
|
2202
|
-
/* @__PURE__ */
|
|
2336
|
+
return /* @__PURE__ */ jsx36(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2337
|
+
/* @__PURE__ */ jsx36("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx36(
|
|
2203
2338
|
"svg",
|
|
2204
2339
|
{
|
|
2205
2340
|
className: "w-5 h-5",
|
|
@@ -2207,7 +2342,7 @@ var DocumentNode = (props) => {
|
|
|
2207
2342
|
stroke: "currentColor",
|
|
2208
2343
|
viewBox: "0 0 24 24",
|
|
2209
2344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2210
|
-
children: /* @__PURE__ */
|
|
2345
|
+
children: /* @__PURE__ */ jsx36(
|
|
2211
2346
|
"path",
|
|
2212
2347
|
{
|
|
2213
2348
|
strokeLinecap: "round",
|
|
@@ -2218,11 +2353,11 @@ var DocumentNode = (props) => {
|
|
|
2218
2353
|
)
|
|
2219
2354
|
}
|
|
2220
2355
|
) }),
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
/* @__PURE__ */
|
|
2356
|
+
/* @__PURE__ */ jsx36("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2357
|
+
/* @__PURE__ */ jsx36("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2223
2358
|
] }) });
|
|
2224
2359
|
}
|
|
2225
|
-
return /* @__PURE__ */
|
|
2360
|
+
return /* @__PURE__ */ jsx36("div", { className: "", children: documents.map((doc, index) => {
|
|
2226
2361
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2227
2362
|
props.assetBaseUrl,
|
|
2228
2363
|
doc.assetUrl
|
|
@@ -2240,16 +2375,16 @@ var DocumentNode = (props) => {
|
|
|
2240
2375
|
}
|
|
2241
2376
|
}
|
|
2242
2377
|
const { Icon, extLabel } = getFileDetails(documentUrl);
|
|
2243
|
-
return /* @__PURE__ */
|
|
2378
|
+
return /* @__PURE__ */ jsxs14(
|
|
2244
2379
|
"div",
|
|
2245
2380
|
{
|
|
2246
2381
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2247
2382
|
children: [
|
|
2248
|
-
/* @__PURE__ */
|
|
2249
|
-
/* @__PURE__ */
|
|
2250
|
-
/* @__PURE__ */
|
|
2383
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4", children: [
|
|
2384
|
+
/* @__PURE__ */ jsx36("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx36(Icon, {}) }),
|
|
2385
|
+
/* @__PURE__ */ jsx36("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx36("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2251
2386
|
] }),
|
|
2252
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ jsxs14(
|
|
2253
2388
|
"a",
|
|
2254
2389
|
{
|
|
2255
2390
|
href: documentUrl,
|
|
@@ -2257,7 +2392,7 @@ var DocumentNode = (props) => {
|
|
|
2257
2392
|
rel: "noopener noreferrer",
|
|
2258
2393
|
className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
|
|
2259
2394
|
children: [
|
|
2260
|
-
/* @__PURE__ */
|
|
2395
|
+
/* @__PURE__ */ jsxs14(
|
|
2261
2396
|
"svg",
|
|
2262
2397
|
{
|
|
2263
2398
|
className: "w-4 h-4 mr-2",
|
|
@@ -2265,7 +2400,7 @@ var DocumentNode = (props) => {
|
|
|
2265
2400
|
stroke: "currentColor",
|
|
2266
2401
|
viewBox: "0 0 24 24",
|
|
2267
2402
|
children: [
|
|
2268
|
-
/* @__PURE__ */
|
|
2403
|
+
/* @__PURE__ */ jsx36(
|
|
2269
2404
|
"path",
|
|
2270
2405
|
{
|
|
2271
2406
|
strokeLinecap: "round",
|
|
@@ -2274,7 +2409,7 @@ var DocumentNode = (props) => {
|
|
|
2274
2409
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2275
2410
|
}
|
|
2276
2411
|
),
|
|
2277
|
-
/* @__PURE__ */
|
|
2412
|
+
/* @__PURE__ */ jsx36(
|
|
2278
2413
|
"path",
|
|
2279
2414
|
{
|
|
2280
2415
|
strokeLinecap: "round",
|
|
@@ -2300,13 +2435,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
2300
2435
|
|
|
2301
2436
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2302
2437
|
import dynamic10 from "next/dynamic";
|
|
2303
|
-
import { jsx as
|
|
2438
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2304
2439
|
var IframeClient2 = dynamic10(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
2305
2440
|
ssr: false
|
|
2306
2441
|
});
|
|
2307
2442
|
var GoogleMapNode = (props) => {
|
|
2308
2443
|
let src = props.node.embedUrl;
|
|
2309
|
-
return /* @__PURE__ */
|
|
2444
|
+
return /* @__PURE__ */ jsx37("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx37(
|
|
2310
2445
|
IframeClient2,
|
|
2311
2446
|
{
|
|
2312
2447
|
src,
|
|
@@ -2318,7 +2453,7 @@ var GoogleMapNode = (props) => {
|
|
|
2318
2453
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2319
2454
|
|
|
2320
2455
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2321
|
-
import { jsx as
|
|
2456
|
+
import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2322
2457
|
var Pagination = dynamic11(() => import("./Pagination-T7Z2NXKO.mjs"), { ssr: true });
|
|
2323
2458
|
var DataBindingControls = dynamic11(() => import("./DataBindingControls-ESDLOHNB.mjs"), {
|
|
2324
2459
|
ssr: true
|
|
@@ -2577,7 +2712,7 @@ var DivContainer = async (props) => {
|
|
|
2577
2712
|
response = await serviceClient.get(endpoint);
|
|
2578
2713
|
result = response?.result;
|
|
2579
2714
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2580
|
-
return /* @__PURE__ */
|
|
2715
|
+
return /* @__PURE__ */ jsx38(NoDataFound_default, {});
|
|
2581
2716
|
}
|
|
2582
2717
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2583
2718
|
childCollectionData = getNestedValue6(
|
|
@@ -2597,7 +2732,7 @@ var DivContainer = async (props) => {
|
|
|
2597
2732
|
}
|
|
2598
2733
|
const SelectedNode = NodeTypes2[node.type];
|
|
2599
2734
|
if (!SelectedNode) return null;
|
|
2600
|
-
return /* @__PURE__ */
|
|
2735
|
+
return /* @__PURE__ */ jsx38(React25.Fragment, { children: /* @__PURE__ */ jsx38(
|
|
2601
2736
|
SelectedNode,
|
|
2602
2737
|
{
|
|
2603
2738
|
node,
|
|
@@ -2617,7 +2752,7 @@ var DivContainer = async (props) => {
|
|
|
2617
2752
|
}
|
|
2618
2753
|
) }, key);
|
|
2619
2754
|
}
|
|
2620
|
-
function
|
|
2755
|
+
function renderChildren2(nodes, props2, data, key, href) {
|
|
2621
2756
|
if (!nodes) return null;
|
|
2622
2757
|
const childNodes = nodes.map((node, index) => {
|
|
2623
2758
|
if (
|
|
@@ -2734,7 +2869,7 @@ var DivContainer = async (props) => {
|
|
|
2734
2869
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2735
2870
|
);
|
|
2736
2871
|
const WrapperComponent = Wrapper;
|
|
2737
|
-
const renderedContainer = /* @__PURE__ */
|
|
2872
|
+
const renderedContainer = /* @__PURE__ */ jsx38(
|
|
2738
2873
|
WrapperComponent,
|
|
2739
2874
|
{
|
|
2740
2875
|
id: guid,
|
|
@@ -2742,17 +2877,17 @@ var DivContainer = async (props) => {
|
|
|
2742
2877
|
className: classNames || void 0,
|
|
2743
2878
|
...wrapperProps,
|
|
2744
2879
|
children: dataToRender.map(
|
|
2745
|
-
(item, idx) => item?.links?.view && renderLink ?
|
|
2880
|
+
(item, idx) => item?.links?.view && renderLink ? renderChildren2(
|
|
2746
2881
|
props.node.children,
|
|
2747
2882
|
props,
|
|
2748
2883
|
item,
|
|
2749
2884
|
idx,
|
|
2750
2885
|
props.href ? void 0 : item?.links?.view
|
|
2751
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2886
|
+
)?.map((child, i) => /* @__PURE__ */ jsx38(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
|
|
2752
2887
|
)
|
|
2753
2888
|
}
|
|
2754
2889
|
);
|
|
2755
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2890
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx38(
|
|
2756
2891
|
Pagination,
|
|
2757
2892
|
{
|
|
2758
2893
|
path: props.path,
|
|
@@ -2760,15 +2895,15 @@ var DivContainer = async (props) => {
|
|
|
2760
2895
|
dataset: response
|
|
2761
2896
|
}
|
|
2762
2897
|
) : null;
|
|
2763
|
-
return /* @__PURE__ */
|
|
2764
|
-
/* @__PURE__ */
|
|
2898
|
+
return /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2899
|
+
/* @__PURE__ */ jsx38(
|
|
2765
2900
|
"style",
|
|
2766
2901
|
{
|
|
2767
2902
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2768
2903
|
}
|
|
2769
2904
|
),
|
|
2770
|
-
showDataBindingControls ? /* @__PURE__ */
|
|
2771
|
-
/* @__PURE__ */
|
|
2905
|
+
showDataBindingControls ? /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2906
|
+
/* @__PURE__ */ jsx38(
|
|
2772
2907
|
DataBindingControls,
|
|
2773
2908
|
{
|
|
2774
2909
|
mode: "toolbar",
|
|
@@ -2780,18 +2915,18 @@ var DivContainer = async (props) => {
|
|
|
2780
2915
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
2781
2916
|
}
|
|
2782
2917
|
),
|
|
2783
|
-
/* @__PURE__ */
|
|
2918
|
+
/* @__PURE__ */ jsxs15(
|
|
2784
2919
|
"div",
|
|
2785
2920
|
{
|
|
2786
2921
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
2787
2922
|
children: [
|
|
2788
|
-
/* @__PURE__ */
|
|
2923
|
+
/* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
|
|
2789
2924
|
renderedContainer,
|
|
2790
2925
|
paginationControl
|
|
2791
2926
|
] }),
|
|
2792
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */
|
|
2793
|
-
/* @__PURE__ */
|
|
2794
|
-
/* @__PURE__ */
|
|
2927
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs15("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2928
|
+
/* @__PURE__ */ jsx38("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2929
|
+
/* @__PURE__ */ jsx38(
|
|
2795
2930
|
DataBindingControls,
|
|
2796
2931
|
{
|
|
2797
2932
|
mode: "facets",
|
|
@@ -2805,16 +2940,16 @@ var DivContainer = async (props) => {
|
|
|
2805
2940
|
]
|
|
2806
2941
|
}
|
|
2807
2942
|
)
|
|
2808
|
-
] }) : /* @__PURE__ */
|
|
2943
|
+
] }) : /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2809
2944
|
renderedContainer,
|
|
2810
|
-
paginationControl && /* @__PURE__ */
|
|
2945
|
+
paginationControl && /* @__PURE__ */ jsx38("div", { children: paginationControl })
|
|
2811
2946
|
] })
|
|
2812
2947
|
] });
|
|
2813
2948
|
};
|
|
2814
2949
|
var DivContainer_default = DivContainer;
|
|
2815
2950
|
|
|
2816
2951
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2817
|
-
import { jsx as
|
|
2952
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2818
2953
|
var NodeTypes = {
|
|
2819
2954
|
["paragraph"]: ParagraphNode_default,
|
|
2820
2955
|
["heading"]: HeadingNode_default,
|
|
@@ -2852,14 +2987,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2852
2987
|
}
|
|
2853
2988
|
return true;
|
|
2854
2989
|
};
|
|
2855
|
-
return /* @__PURE__ */
|
|
2990
|
+
return /* @__PURE__ */ jsx39(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2856
2991
|
{
|
|
2857
2992
|
}
|
|
2858
2993
|
const SelectedNode = NodeTypes[node.type];
|
|
2859
2994
|
if (!shouldRenderNode(node)) {
|
|
2860
2995
|
return null;
|
|
2861
2996
|
}
|
|
2862
|
-
return /* @__PURE__ */
|
|
2997
|
+
return /* @__PURE__ */ jsx39(React26.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx39(React26.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx39(React26.Fragment, { children: /* @__PURE__ */ jsx39(
|
|
2863
2998
|
SelectedNode,
|
|
2864
2999
|
{
|
|
2865
3000
|
node,
|
|
@@ -2875,7 +3010,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2875
3010
|
device: props.device,
|
|
2876
3011
|
widgetRenderer: props.widgetRenderer
|
|
2877
3012
|
}
|
|
2878
|
-
) }) : /* @__PURE__ */
|
|
3013
|
+
) }) : /* @__PURE__ */ jsx39(React26.Fragment, { children: /* @__PURE__ */ jsx39(
|
|
2879
3014
|
SelectedNode,
|
|
2880
3015
|
{
|
|
2881
3016
|
node,
|
|
@@ -2945,7 +3080,7 @@ function EnterAnimationHydrator() {
|
|
|
2945
3080
|
|
|
2946
3081
|
// src/components/Toast.tsx
|
|
2947
3082
|
import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
|
|
2948
|
-
import { Fragment as Fragment7, jsx as
|
|
3083
|
+
import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2949
3084
|
var Toast = () => {
|
|
2950
3085
|
const [showToast, setShowToast] = useState(false);
|
|
2951
3086
|
const [message, setMessage] = useState("");
|
|
@@ -2979,8 +3114,8 @@ var Toast = () => {
|
|
|
2979
3114
|
});
|
|
2980
3115
|
};
|
|
2981
3116
|
}, [closeToast, showMessage]);
|
|
2982
|
-
return /* @__PURE__ */
|
|
2983
|
-
/* @__PURE__ */
|
|
3117
|
+
return /* @__PURE__ */ jsx40(Fragment7, { children: showToast && /* @__PURE__ */ jsx40("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__ */ jsxs16("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
3118
|
+
/* @__PURE__ */ jsx40(
|
|
2984
3119
|
"span",
|
|
2985
3120
|
{
|
|
2986
3121
|
className: "font-medium text-inherit text-sm",
|
|
@@ -2988,7 +3123,7 @@ var Toast = () => {
|
|
|
2988
3123
|
children: message
|
|
2989
3124
|
}
|
|
2990
3125
|
),
|
|
2991
|
-
/* @__PURE__ */
|
|
3126
|
+
/* @__PURE__ */ jsx40("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx40(
|
|
2992
3127
|
"svg",
|
|
2993
3128
|
{
|
|
2994
3129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2996,7 +3131,7 @@ var Toast = () => {
|
|
|
2996
3131
|
fill: "none",
|
|
2997
3132
|
viewBox: "0 0 24 24",
|
|
2998
3133
|
stroke: "currentColor",
|
|
2999
|
-
children: /* @__PURE__ */
|
|
3134
|
+
children: /* @__PURE__ */ jsx40("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
3000
3135
|
}
|
|
3001
3136
|
) })
|
|
3002
3137
|
] }) }) });
|
|
@@ -3006,7 +3141,7 @@ var Toast_default = Toast;
|
|
|
3006
3141
|
// src/components/NavigationTabsV2.tsx
|
|
3007
3142
|
import Link2 from "next/link";
|
|
3008
3143
|
import { usePathname } from "next/navigation";
|
|
3009
|
-
import { jsx as
|
|
3144
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3010
3145
|
function resolveRoutePlaceholders(route, params) {
|
|
3011
3146
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
3012
3147
|
const value = params[key];
|
|
@@ -3031,8 +3166,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
3031
3166
|
isActive: tab.isActive
|
|
3032
3167
|
})) || [];
|
|
3033
3168
|
if (mappedTabs.length === 0) return null;
|
|
3034
|
-
return /* @__PURE__ */
|
|
3035
|
-
return /* @__PURE__ */
|
|
3169
|
+
return /* @__PURE__ */ jsx41("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
3170
|
+
return /* @__PURE__ */ jsx41(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx41(
|
|
3036
3171
|
"div",
|
|
3037
3172
|
{
|
|
3038
3173
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -3045,51 +3180,51 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
3045
3180
|
var NavigationTabsV2_default = NavigationTabsV2;
|
|
3046
3181
|
|
|
3047
3182
|
// src/components/dataForm/DataList.tsx
|
|
3048
|
-
import
|
|
3183
|
+
import React30, { useEffect as useEffect3, useState as useState2, useCallback as useCallback2, useReducer } from "react";
|
|
3049
3184
|
import { useRouter } from "next/navigation";
|
|
3050
3185
|
|
|
3051
3186
|
// src/components/dataForm/NoContentView.tsx
|
|
3052
|
-
import
|
|
3053
|
-
import { jsx as
|
|
3187
|
+
import React28 from "react";
|
|
3188
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3054
3189
|
var NoContentView = (props) => {
|
|
3055
|
-
return /* @__PURE__ */
|
|
3190
|
+
return /* @__PURE__ */ jsx42(React28.Fragment, { children: props.isDataFound === false && props.children });
|
|
3056
3191
|
};
|
|
3057
3192
|
var NoContentView_default = NoContentView;
|
|
3058
3193
|
|
|
3059
3194
|
// src/components/dataForm/ContentView.tsx
|
|
3060
|
-
import
|
|
3061
|
-
import { jsx as
|
|
3195
|
+
import React29 from "react";
|
|
3196
|
+
import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3062
3197
|
var ContentView = (props) => {
|
|
3063
|
-
return /* @__PURE__ */
|
|
3064
|
-
props.isDataFound == null && /* @__PURE__ */
|
|
3065
|
-
/* @__PURE__ */
|
|
3066
|
-
/* @__PURE__ */
|
|
3067
|
-
/* @__PURE__ */
|
|
3068
|
-
/* @__PURE__ */
|
|
3069
|
-
/* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ jsxs17(React29.Fragment, { children: [
|
|
3199
|
+
props.isDataFound == null && /* @__PURE__ */ jsx43("div", { className: "", children: /* @__PURE__ */ jsxs17("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
3200
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex items-center mb-4", children: [
|
|
3201
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
3202
|
+
/* @__PURE__ */ jsxs17("div", { className: "ml-2", children: [
|
|
3203
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
3204
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
3070
3205
|
] })
|
|
3071
3206
|
] }),
|
|
3072
|
-
/* @__PURE__ */
|
|
3073
|
-
/* @__PURE__ */
|
|
3074
|
-
/* @__PURE__ */
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
/* @__PURE__ */
|
|
3077
|
-
/* @__PURE__ */
|
|
3078
|
-
/* @__PURE__ */
|
|
3207
|
+
/* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
3208
|
+
/* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
|
|
3209
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3210
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3211
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3212
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3213
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3079
3214
|
] }),
|
|
3080
|
-
/* @__PURE__ */
|
|
3081
|
-
/* @__PURE__ */
|
|
3082
|
-
/* @__PURE__ */
|
|
3083
|
-
/* @__PURE__ */
|
|
3084
|
-
/* @__PURE__ */
|
|
3085
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
|
|
3216
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3217
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3218
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3219
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3220
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3086
3221
|
] }),
|
|
3087
|
-
/* @__PURE__ */
|
|
3088
|
-
/* @__PURE__ */
|
|
3089
|
-
/* @__PURE__ */
|
|
3090
|
-
/* @__PURE__ */
|
|
3091
|
-
/* @__PURE__ */
|
|
3092
|
-
/* @__PURE__ */
|
|
3222
|
+
/* @__PURE__ */ jsxs17("div", { className: "animate-pulse", children: [
|
|
3223
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3224
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3225
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3226
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3227
|
+
/* @__PURE__ */ jsx43("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3093
3228
|
] })
|
|
3094
3229
|
] })
|
|
3095
3230
|
] }) }),
|
|
@@ -3143,7 +3278,7 @@ function FormReducer(state, action) {
|
|
|
3143
3278
|
var FormReducer_default = FormReducer;
|
|
3144
3279
|
|
|
3145
3280
|
// src/components/dataForm/DataList.tsx
|
|
3146
|
-
import { Fragment as Fragment8, jsx as
|
|
3281
|
+
import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3147
3282
|
var DataList = (props) => {
|
|
3148
3283
|
const router = useRouter();
|
|
3149
3284
|
let builder = new OdataBuilder(props.path);
|
|
@@ -3181,7 +3316,7 @@ var DataList = (props) => {
|
|
|
3181
3316
|
if (path.includes(".")) {
|
|
3182
3317
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
3183
3318
|
} else if (Array.isArray(obj[path])) {
|
|
3184
|
-
return obj[path].map((item, index) => /* @__PURE__ */
|
|
3319
|
+
return obj[path].map((item, index) => /* @__PURE__ */ jsx44("div", { children: item }, index));
|
|
3185
3320
|
} else {
|
|
3186
3321
|
return obj[path];
|
|
3187
3322
|
}
|
|
@@ -3260,30 +3395,30 @@ var DataList = (props) => {
|
|
|
3260
3395
|
const renderPageNumbers = () => {
|
|
3261
3396
|
if (pages <= 10) {
|
|
3262
3397
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
3263
|
-
(page) => /* @__PURE__ */
|
|
3398
|
+
(page) => /* @__PURE__ */ jsx44(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
|
|
3264
3399
|
Hyperlink,
|
|
3265
3400
|
{
|
|
3266
3401
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3267
3402
|
href: builder.getNewPageUrl(page),
|
|
3268
3403
|
children: page
|
|
3269
3404
|
}
|
|
3270
|
-
) : /* @__PURE__ */
|
|
3405
|
+
) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3271
3406
|
);
|
|
3272
3407
|
} else {
|
|
3273
3408
|
const showFirstPages = activePageNumber <= 5;
|
|
3274
3409
|
const showLastPages = activePageNumber > pages - 5;
|
|
3275
3410
|
if (showFirstPages) {
|
|
3276
|
-
return /* @__PURE__ */
|
|
3277
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */
|
|
3411
|
+
return /* @__PURE__ */ jsxs18(Fragment8, { children: [
|
|
3412
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx44(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
|
|
3278
3413
|
Hyperlink,
|
|
3279
3414
|
{
|
|
3280
3415
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3281
3416
|
href: builder.getNewPageUrl(page),
|
|
3282
3417
|
children: page
|
|
3283
3418
|
}
|
|
3284
|
-
) : /* @__PURE__ */
|
|
3285
|
-
/* @__PURE__ */
|
|
3286
|
-
/* @__PURE__ */
|
|
3419
|
+
) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3420
|
+
/* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
|
|
3421
|
+
/* @__PURE__ */ jsx44(
|
|
3287
3422
|
Hyperlink,
|
|
3288
3423
|
{
|
|
3289
3424
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3291,7 +3426,7 @@ var DataList = (props) => {
|
|
|
3291
3426
|
children: pages - 1
|
|
3292
3427
|
}
|
|
3293
3428
|
),
|
|
3294
|
-
/* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ jsx44(
|
|
3295
3430
|
Hyperlink,
|
|
3296
3431
|
{
|
|
3297
3432
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3299,7 +3434,7 @@ var DataList = (props) => {
|
|
|
3299
3434
|
children: pages
|
|
3300
3435
|
}
|
|
3301
3436
|
),
|
|
3302
|
-
/* @__PURE__ */
|
|
3437
|
+
/* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
|
|
3303
3438
|
"select",
|
|
3304
3439
|
{
|
|
3305
3440
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3311,18 +3446,18 @@ var DataList = (props) => {
|
|
|
3311
3446
|
}
|
|
3312
3447
|
},
|
|
3313
3448
|
children: [
|
|
3314
|
-
/* @__PURE__ */
|
|
3449
|
+
/* @__PURE__ */ jsx44("option", { className: "", value: "", children: "Jump to" }),
|
|
3315
3450
|
Array.from(
|
|
3316
3451
|
{ length: Math.max(0, pages - 10) },
|
|
3317
3452
|
(_, index) => index + 9
|
|
3318
|
-
).map((page) => /* @__PURE__ */
|
|
3453
|
+
).map((page) => /* @__PURE__ */ jsx44("option", { value: page, children: page }, page))
|
|
3319
3454
|
]
|
|
3320
3455
|
}
|
|
3321
3456
|
) })
|
|
3322
3457
|
] });
|
|
3323
3458
|
} else if (showLastPages) {
|
|
3324
|
-
return /* @__PURE__ */
|
|
3325
|
-
/* @__PURE__ */
|
|
3459
|
+
return /* @__PURE__ */ jsxs18(Fragment8, { children: [
|
|
3460
|
+
/* @__PURE__ */ jsx44(
|
|
3326
3461
|
Hyperlink,
|
|
3327
3462
|
{
|
|
3328
3463
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3330,7 +3465,7 @@ var DataList = (props) => {
|
|
|
3330
3465
|
children: "1"
|
|
3331
3466
|
}
|
|
3332
3467
|
),
|
|
3333
|
-
/* @__PURE__ */
|
|
3468
|
+
/* @__PURE__ */ jsx44(
|
|
3334
3469
|
Hyperlink,
|
|
3335
3470
|
{
|
|
3336
3471
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3338,21 +3473,21 @@ var DataList = (props) => {
|
|
|
3338
3473
|
children: "2"
|
|
3339
3474
|
}
|
|
3340
3475
|
),
|
|
3341
|
-
/* @__PURE__ */
|
|
3476
|
+
/* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
|
|
3342
3477
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
3343
|
-
(page) => /* @__PURE__ */
|
|
3478
|
+
(page) => /* @__PURE__ */ jsx44(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
|
|
3344
3479
|
Hyperlink,
|
|
3345
3480
|
{
|
|
3346
3481
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3347
3482
|
href: builder.getNewPageUrl(page),
|
|
3348
3483
|
children: page
|
|
3349
3484
|
}
|
|
3350
|
-
) : /* @__PURE__ */
|
|
3485
|
+
) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3351
3486
|
)
|
|
3352
3487
|
] });
|
|
3353
3488
|
} else {
|
|
3354
|
-
return /* @__PURE__ */
|
|
3355
|
-
/* @__PURE__ */
|
|
3489
|
+
return /* @__PURE__ */ jsxs18(Fragment8, { children: [
|
|
3490
|
+
/* @__PURE__ */ jsx44(
|
|
3356
3491
|
Hyperlink,
|
|
3357
3492
|
{
|
|
3358
3493
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3360,7 +3495,7 @@ var DataList = (props) => {
|
|
|
3360
3495
|
children: "1"
|
|
3361
3496
|
}
|
|
3362
3497
|
),
|
|
3363
|
-
/* @__PURE__ */
|
|
3498
|
+
/* @__PURE__ */ jsx44(
|
|
3364
3499
|
Hyperlink,
|
|
3365
3500
|
{
|
|
3366
3501
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3368,20 +3503,20 @@ var DataList = (props) => {
|
|
|
3368
3503
|
children: "2"
|
|
3369
3504
|
}
|
|
3370
3505
|
),
|
|
3371
|
-
/* @__PURE__ */
|
|
3506
|
+
/* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
|
|
3372
3507
|
Array.from(
|
|
3373
3508
|
{ length: 5 },
|
|
3374
3509
|
(_, index) => activePageNumber - 2 + index
|
|
3375
|
-
).map((page) => /* @__PURE__ */
|
|
3510
|
+
).map((page) => /* @__PURE__ */ jsx44(React30.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx44(
|
|
3376
3511
|
Hyperlink,
|
|
3377
3512
|
{
|
|
3378
3513
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3379
3514
|
href: builder.getNewPageUrl(page),
|
|
3380
3515
|
children: page
|
|
3381
3516
|
}
|
|
3382
|
-
) : /* @__PURE__ */
|
|
3383
|
-
/* @__PURE__ */
|
|
3384
|
-
/* @__PURE__ */
|
|
3517
|
+
) : /* @__PURE__ */ jsx44("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3518
|
+
/* @__PURE__ */ jsx44("span", { className: "px-2 py-1", children: "..." }),
|
|
3519
|
+
/* @__PURE__ */ jsx44(
|
|
3385
3520
|
Hyperlink,
|
|
3386
3521
|
{
|
|
3387
3522
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3389,7 +3524,7 @@ var DataList = (props) => {
|
|
|
3389
3524
|
children: pages - 1
|
|
3390
3525
|
}
|
|
3391
3526
|
),
|
|
3392
|
-
/* @__PURE__ */
|
|
3527
|
+
/* @__PURE__ */ jsx44(
|
|
3393
3528
|
Hyperlink,
|
|
3394
3529
|
{
|
|
3395
3530
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3397,7 +3532,7 @@ var DataList = (props) => {
|
|
|
3397
3532
|
children: pages
|
|
3398
3533
|
}
|
|
3399
3534
|
),
|
|
3400
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ jsx44("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs18(
|
|
3401
3536
|
"select",
|
|
3402
3537
|
{
|
|
3403
3538
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3409,8 +3544,8 @@ var DataList = (props) => {
|
|
|
3409
3544
|
}
|
|
3410
3545
|
},
|
|
3411
3546
|
children: [
|
|
3412
|
-
/* @__PURE__ */
|
|
3413
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */
|
|
3547
|
+
/* @__PURE__ */ jsx44("option", { value: "", children: "Jump to" }),
|
|
3548
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx44("option", { value: page, children: page }, page))
|
|
3414
3549
|
]
|
|
3415
3550
|
}
|
|
3416
3551
|
) })
|
|
@@ -3418,16 +3553,16 @@ var DataList = (props) => {
|
|
|
3418
3553
|
}
|
|
3419
3554
|
}
|
|
3420
3555
|
};
|
|
3421
|
-
return /* @__PURE__ */
|
|
3422
|
-
/* @__PURE__ */
|
|
3423
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3556
|
+
return /* @__PURE__ */ jsxs18(React30.Fragment, { children: [
|
|
3557
|
+
/* @__PURE__ */ jsxs18(ContentView_default, { isDataFound, children: [
|
|
3558
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs18(
|
|
3424
3559
|
"div",
|
|
3425
3560
|
{
|
|
3426
3561
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
3427
3562
|
children: [
|
|
3428
|
-
props.title ? /* @__PURE__ */
|
|
3429
|
-
/* @__PURE__ */
|
|
3430
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3563
|
+
props.title ? /* @__PURE__ */ jsx44("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx44("div", {}),
|
|
3564
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
|
|
3565
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
|
|
3431
3566
|
InputControl_default,
|
|
3432
3567
|
{
|
|
3433
3568
|
name: "Search_input",
|
|
@@ -3439,7 +3574,7 @@ var DataList = (props) => {
|
|
|
3439
3574
|
}
|
|
3440
3575
|
}
|
|
3441
3576
|
),
|
|
3442
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3577
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx44(
|
|
3443
3578
|
InputControl_default,
|
|
3444
3579
|
{
|
|
3445
3580
|
name: filter.name,
|
|
@@ -3454,15 +3589,15 @@ var DataList = (props) => {
|
|
|
3454
3589
|
},
|
|
3455
3590
|
filter.name
|
|
3456
3591
|
)),
|
|
3457
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3592
|
+
props.addLinkHref && /* @__PURE__ */ jsxs18(
|
|
3458
3593
|
Hyperlink,
|
|
3459
3594
|
{
|
|
3460
3595
|
className: "gap-1",
|
|
3461
3596
|
linkType: "Primary" /* Solid */,
|
|
3462
3597
|
href: props.addLinkHref,
|
|
3463
3598
|
children: [
|
|
3464
|
-
/* @__PURE__ */
|
|
3465
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ jsx44(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3600
|
+
/* @__PURE__ */ jsx44("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3466
3601
|
]
|
|
3467
3602
|
}
|
|
3468
3603
|
)
|
|
@@ -3470,8 +3605,8 @@ var DataList = (props) => {
|
|
|
3470
3605
|
]
|
|
3471
3606
|
}
|
|
3472
3607
|
),
|
|
3473
|
-
/* @__PURE__ */
|
|
3474
|
-
/* @__PURE__ */
|
|
3608
|
+
/* @__PURE__ */ jsx44("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs18("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
3609
|
+
/* @__PURE__ */ jsx44("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx44("tr", { children: props?.columns?.map((column) => {
|
|
3475
3610
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3476
3611
|
let icon = "chevronUpDown";
|
|
3477
3612
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -3481,18 +3616,18 @@ var DataList = (props) => {
|
|
|
3481
3616
|
icon = "chevronUp";
|
|
3482
3617
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3483
3618
|
}
|
|
3484
|
-
return /* @__PURE__ */
|
|
3619
|
+
return /* @__PURE__ */ jsx44(
|
|
3485
3620
|
"th",
|
|
3486
3621
|
{
|
|
3487
3622
|
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" : ""),
|
|
3488
|
-
children: /* @__PURE__ */
|
|
3623
|
+
children: /* @__PURE__ */ jsx44(
|
|
3489
3624
|
Hyperlink,
|
|
3490
3625
|
{
|
|
3491
3626
|
href: column.enableSorting ? url : void 0,
|
|
3492
3627
|
className: "!text-neutral-contrast ",
|
|
3493
|
-
children: /* @__PURE__ */
|
|
3494
|
-
/* @__PURE__ */
|
|
3495
|
-
column.enableSorting && /* @__PURE__ */
|
|
3628
|
+
children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
|
|
3629
|
+
/* @__PURE__ */ jsx44("span", { className: "text-black", children: column.label }),
|
|
3630
|
+
column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3496
3631
|
] })
|
|
3497
3632
|
}
|
|
3498
3633
|
)
|
|
@@ -3500,22 +3635,22 @@ var DataList = (props) => {
|
|
|
3500
3635
|
column.name
|
|
3501
3636
|
);
|
|
3502
3637
|
}) }) }),
|
|
3503
|
-
/* @__PURE__ */
|
|
3638
|
+
/* @__PURE__ */ jsx44("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
3504
3639
|
let validityClass = "";
|
|
3505
3640
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
3506
3641
|
validityClass = "bg-alert-200";
|
|
3507
3642
|
}
|
|
3508
|
-
return /* @__PURE__ */
|
|
3509
|
-
return /* @__PURE__ */
|
|
3643
|
+
return /* @__PURE__ */ jsx44("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
3644
|
+
return /* @__PURE__ */ jsx44(React30.Fragment, { children: /* @__PURE__ */ jsx44(
|
|
3510
3645
|
"td",
|
|
3511
3646
|
{
|
|
3512
3647
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
3513
|
-
children: column.addhref === true ? /* @__PURE__ */
|
|
3648
|
+
children: column.addhref === true ? /* @__PURE__ */ jsx44(
|
|
3514
3649
|
Hyperlink,
|
|
3515
3650
|
{
|
|
3516
3651
|
className: "",
|
|
3517
3652
|
href: `https://${dataitem[column.name]}`,
|
|
3518
|
-
children: /* @__PURE__ */
|
|
3653
|
+
children: /* @__PURE__ */ jsx44(
|
|
3519
3654
|
ViewControl_default,
|
|
3520
3655
|
{
|
|
3521
3656
|
controlType: column.controlType,
|
|
@@ -3528,11 +3663,11 @@ var DataList = (props) => {
|
|
|
3528
3663
|
}
|
|
3529
3664
|
)
|
|
3530
3665
|
}
|
|
3531
|
-
) : column.showAsLink ? /* @__PURE__ */
|
|
3666
|
+
) : column.showAsLink ? /* @__PURE__ */ jsx44(
|
|
3532
3667
|
Hyperlink,
|
|
3533
3668
|
{
|
|
3534
3669
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
3535
|
-
children: /* @__PURE__ */
|
|
3670
|
+
children: /* @__PURE__ */ jsx44(
|
|
3536
3671
|
ViewControl_default,
|
|
3537
3672
|
{
|
|
3538
3673
|
controlType: column.controlType,
|
|
@@ -3542,7 +3677,7 @@ var DataList = (props) => {
|
|
|
3542
3677
|
}
|
|
3543
3678
|
)
|
|
3544
3679
|
}
|
|
3545
|
-
) : /* @__PURE__ */
|
|
3680
|
+
) : /* @__PURE__ */ jsx44(
|
|
3546
3681
|
ViewControl_default,
|
|
3547
3682
|
{
|
|
3548
3683
|
controlType: column.controlType,
|
|
@@ -3556,10 +3691,10 @@ var DataList = (props) => {
|
|
|
3556
3691
|
}) }, index);
|
|
3557
3692
|
}) })
|
|
3558
3693
|
] }) }),
|
|
3559
|
-
/* @__PURE__ */
|
|
3560
|
-
/* @__PURE__ */
|
|
3561
|
-
/* @__PURE__ */
|
|
3562
|
-
activePageNumber > 1 && /* @__PURE__ */
|
|
3694
|
+
/* @__PURE__ */ jsx44("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
|
|
3695
|
+
/* @__PURE__ */ jsx44("div", { className: "text-gray-700", children: label }),
|
|
3696
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex space-x-2 items-center", children: [
|
|
3697
|
+
activePageNumber > 1 && /* @__PURE__ */ jsx44(
|
|
3563
3698
|
Hyperlink,
|
|
3564
3699
|
{
|
|
3565
3700
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3567,9 +3702,9 @@ var DataList = (props) => {
|
|
|
3567
3702
|
children: "Prev"
|
|
3568
3703
|
}
|
|
3569
3704
|
),
|
|
3570
|
-
activePageNumber <= 1 && /* @__PURE__ */
|
|
3705
|
+
activePageNumber <= 1 && /* @__PURE__ */ jsx44("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" }),
|
|
3571
3706
|
renderPageNumbers(),
|
|
3572
|
-
activePageNumber < pages && /* @__PURE__ */
|
|
3707
|
+
activePageNumber < pages && /* @__PURE__ */ jsx44(
|
|
3573
3708
|
Hyperlink,
|
|
3574
3709
|
{
|
|
3575
3710
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3577,19 +3712,19 @@ var DataList = (props) => {
|
|
|
3577
3712
|
children: "Next"
|
|
3578
3713
|
}
|
|
3579
3714
|
),
|
|
3580
|
-
activePageNumber >= pages && /* @__PURE__ */
|
|
3715
|
+
activePageNumber >= pages && /* @__PURE__ */ jsx44("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
3581
3716
|
] })
|
|
3582
3717
|
] }) })
|
|
3583
3718
|
] }),
|
|
3584
|
-
/* @__PURE__ */
|
|
3585
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3719
|
+
/* @__PURE__ */ jsxs18(NoContentView_default, { isDataFound, children: [
|
|
3720
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs18(
|
|
3586
3721
|
"div",
|
|
3587
3722
|
{
|
|
3588
3723
|
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`,
|
|
3589
3724
|
children: [
|
|
3590
|
-
props.title ? /* @__PURE__ */
|
|
3591
|
-
/* @__PURE__ */
|
|
3592
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3725
|
+
props.title ? /* @__PURE__ */ jsx44("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx44("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx44("div", {}),
|
|
3726
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
|
|
3727
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx44(
|
|
3593
3728
|
InputControl_default,
|
|
3594
3729
|
{
|
|
3595
3730
|
name: "Search_input",
|
|
@@ -3601,7 +3736,7 @@ var DataList = (props) => {
|
|
|
3601
3736
|
}
|
|
3602
3737
|
}
|
|
3603
3738
|
),
|
|
3604
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3739
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx44(
|
|
3605
3740
|
InputControl_default,
|
|
3606
3741
|
{
|
|
3607
3742
|
name: filter.name,
|
|
@@ -3616,15 +3751,15 @@ var DataList = (props) => {
|
|
|
3616
3751
|
},
|
|
3617
3752
|
filter.name
|
|
3618
3753
|
)),
|
|
3619
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3754
|
+
props.addLinkHref && /* @__PURE__ */ jsxs18(
|
|
3620
3755
|
Hyperlink,
|
|
3621
3756
|
{
|
|
3622
3757
|
className: "gap-1",
|
|
3623
3758
|
linkType: "Primary" /* Solid */,
|
|
3624
3759
|
href: props.addLinkHref,
|
|
3625
3760
|
children: [
|
|
3626
|
-
/* @__PURE__ */
|
|
3627
|
-
/* @__PURE__ */
|
|
3761
|
+
/* @__PURE__ */ jsx44(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3762
|
+
/* @__PURE__ */ jsx44("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3628
3763
|
]
|
|
3629
3764
|
}
|
|
3630
3765
|
)
|
|
@@ -3632,8 +3767,8 @@ var DataList = (props) => {
|
|
|
3632
3767
|
]
|
|
3633
3768
|
}
|
|
3634
3769
|
),
|
|
3635
|
-
/* @__PURE__ */
|
|
3636
|
-
/* @__PURE__ */
|
|
3770
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
3771
|
+
/* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsx44("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx44("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx44("tr", { children: props?.columns?.map((column) => {
|
|
3637
3772
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3638
3773
|
let icon = "chevronUpDown";
|
|
3639
3774
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -3643,18 +3778,18 @@ var DataList = (props) => {
|
|
|
3643
3778
|
icon = "chevronUp";
|
|
3644
3779
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3645
3780
|
}
|
|
3646
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ jsx44(
|
|
3647
3782
|
"th",
|
|
3648
3783
|
{
|
|
3649
3784
|
className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
3650
|
-
children: /* @__PURE__ */
|
|
3785
|
+
children: /* @__PURE__ */ jsx44(
|
|
3651
3786
|
Hyperlink,
|
|
3652
3787
|
{
|
|
3653
3788
|
href: column.enableSorting ? url : void 0,
|
|
3654
3789
|
className: "text-body-950",
|
|
3655
|
-
children: /* @__PURE__ */
|
|
3656
|
-
/* @__PURE__ */
|
|
3657
|
-
column.enableSorting && /* @__PURE__ */
|
|
3790
|
+
children: /* @__PURE__ */ jsxs18("span", { className: "flex items-center space-x-1", children: [
|
|
3791
|
+
/* @__PURE__ */ jsx44("span", { children: column.label }),
|
|
3792
|
+
column.enableSorting && /* @__PURE__ */ jsx44(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3658
3793
|
] })
|
|
3659
3794
|
}
|
|
3660
3795
|
)
|
|
@@ -3662,7 +3797,7 @@ var DataList = (props) => {
|
|
|
3662
3797
|
column.name
|
|
3663
3798
|
);
|
|
3664
3799
|
}) }) }) }) }),
|
|
3665
|
-
/* @__PURE__ */
|
|
3800
|
+
/* @__PURE__ */ jsx44("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
3666
3801
|
] })
|
|
3667
3802
|
] })
|
|
3668
3803
|
] });
|
|
@@ -3670,9 +3805,9 @@ var DataList = (props) => {
|
|
|
3670
3805
|
var DataList_default = DataList;
|
|
3671
3806
|
|
|
3672
3807
|
// src/components/dataForm/DataListRenderer.tsx
|
|
3673
|
-
import
|
|
3808
|
+
import React31, { useState as useState3, useEffect as useEffect4 } from "react";
|
|
3674
3809
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
3675
|
-
import { jsx as
|
|
3810
|
+
import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3676
3811
|
var viewControlMap = {
|
|
3677
3812
|
number: ViewControlTypes.number,
|
|
3678
3813
|
lineText: ViewControlTypes.lineText,
|
|
@@ -3767,13 +3902,13 @@ var DataListRenderer = ({
|
|
|
3767
3902
|
isActive: landingPageUrl === pathname
|
|
3768
3903
|
};
|
|
3769
3904
|
});
|
|
3770
|
-
return /* @__PURE__ */
|
|
3905
|
+
return /* @__PURE__ */ jsxs19(React31.Fragment, { children: [
|
|
3771
3906
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
3772
3907
|
// tabs={resolvedTabs}
|
|
3773
3908
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
3774
3909
|
// />
|
|
3775
|
-
/* @__PURE__ */
|
|
3776
|
-
/* @__PURE__ */
|
|
3910
|
+
/* @__PURE__ */ jsx45(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
3911
|
+
/* @__PURE__ */ jsx45(
|
|
3777
3912
|
DataList_default,
|
|
3778
3913
|
{
|
|
3779
3914
|
addLinkHref,
|
|
@@ -3792,10 +3927,10 @@ var DataListRenderer = ({
|
|
|
3792
3927
|
var DataListRenderer_default = DataListRenderer;
|
|
3793
3928
|
|
|
3794
3929
|
// src/components/dataForm/DataForm.tsx
|
|
3795
|
-
import
|
|
3930
|
+
import React33, { useCallback as useCallback4, useEffect as useEffect5, useReducer as useReducer2, useRef as useRef2 } from "react";
|
|
3796
3931
|
|
|
3797
3932
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3798
|
-
import
|
|
3933
|
+
import React32, { useCallback as useCallback3 } from "react";
|
|
3799
3934
|
|
|
3800
3935
|
// src/components/dataForm/StyleTypes.tsx
|
|
3801
3936
|
var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
|
|
@@ -3818,7 +3953,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
3818
3953
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
3819
3954
|
|
|
3820
3955
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3821
|
-
import { jsx as
|
|
3956
|
+
import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3822
3957
|
var DataFormChildSection = (props) => {
|
|
3823
3958
|
const { section } = props;
|
|
3824
3959
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -3886,14 +4021,14 @@ var DataFormChildSection = (props) => {
|
|
|
3886
4021
|
childItemsToRender,
|
|
3887
4022
|
allChildItems: childItems
|
|
3888
4023
|
});
|
|
3889
|
-
return /* @__PURE__ */
|
|
3890
|
-
section.sectionTitle && /* @__PURE__ */
|
|
3891
|
-
/* @__PURE__ */
|
|
3892
|
-
/* @__PURE__ */
|
|
3893
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */
|
|
3894
|
-
return /* @__PURE__ */
|
|
4024
|
+
return /* @__PURE__ */ jsx46(React32.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
4025
|
+
section.sectionTitle && /* @__PURE__ */ jsx46("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
4026
|
+
/* @__PURE__ */ jsx46("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs20("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
4027
|
+
/* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsxs20("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
4028
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx46("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
4029
|
+
return /* @__PURE__ */ jsxs20("tr", { className: "", children: [
|
|
3895
4030
|
sectionRow.elements.map((field, index) => {
|
|
3896
|
-
return /* @__PURE__ */
|
|
4031
|
+
return /* @__PURE__ */ jsx46(
|
|
3897
4032
|
"th",
|
|
3898
4033
|
{
|
|
3899
4034
|
className: "py-3 font-normal text-left",
|
|
@@ -3902,21 +4037,21 @@ var DataFormChildSection = (props) => {
|
|
|
3902
4037
|
field.name
|
|
3903
4038
|
);
|
|
3904
4039
|
}),
|
|
3905
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4040
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
3906
4041
|
] }, sectionRowIndex);
|
|
3907
4042
|
}) }),
|
|
3908
|
-
/* @__PURE__ */
|
|
4043
|
+
/* @__PURE__ */ jsx46("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
3909
4044
|
const { item, originalIndex } = visibleItem;
|
|
3910
4045
|
const rowKey = originalIndex;
|
|
3911
|
-
return /* @__PURE__ */
|
|
4046
|
+
return /* @__PURE__ */ jsx46(React32.Fragment, { children: section.sectionRows.map(
|
|
3912
4047
|
(sectionRow, sectionRowIndex) => {
|
|
3913
|
-
return /* @__PURE__ */
|
|
4048
|
+
return /* @__PURE__ */ jsxs20(
|
|
3914
4049
|
"tr",
|
|
3915
4050
|
{
|
|
3916
4051
|
className: "",
|
|
3917
4052
|
children: [
|
|
3918
4053
|
sectionRow.elements.map((field, index) => {
|
|
3919
|
-
return /* @__PURE__ */
|
|
4054
|
+
return /* @__PURE__ */ jsx46("td", { children: /* @__PURE__ */ jsx46("div", { className: "flex-1", children: /* @__PURE__ */ jsx46("div", { className: "w-11/12", children: /* @__PURE__ */ jsx46(
|
|
3920
4055
|
InputControl_default,
|
|
3921
4056
|
{
|
|
3922
4057
|
index: filteredIndex,
|
|
@@ -3936,7 +4071,7 @@ var DataFormChildSection = (props) => {
|
|
|
3936
4071
|
}
|
|
3937
4072
|
) }) }) }, field.name);
|
|
3938
4073
|
}),
|
|
3939
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4074
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("td", { children: /* @__PURE__ */ jsx46(
|
|
3940
4075
|
ClientButton_default,
|
|
3941
4076
|
{
|
|
3942
4077
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -3945,7 +4080,7 @@ var DataFormChildSection = (props) => {
|
|
|
3945
4080
|
},
|
|
3946
4081
|
dataRole: "delete",
|
|
3947
4082
|
tabIndex: -1,
|
|
3948
|
-
children: /* @__PURE__ */
|
|
4083
|
+
children: /* @__PURE__ */ jsx46(
|
|
3949
4084
|
Icon_default,
|
|
3950
4085
|
{
|
|
3951
4086
|
className: "w-4 h-4",
|
|
@@ -3962,7 +4097,7 @@ var DataFormChildSection = (props) => {
|
|
|
3962
4097
|
) }, rowKey);
|
|
3963
4098
|
}) })
|
|
3964
4099
|
] }) }),
|
|
3965
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
4100
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx46("div", { className: "ml-1", children: /* @__PURE__ */ jsx46(
|
|
3966
4101
|
ClientButton_default,
|
|
3967
4102
|
{
|
|
3968
4103
|
ButtonType: "Link" /* Link */,
|
|
@@ -3977,7 +4112,7 @@ var DataFormChildSection = (props) => {
|
|
|
3977
4112
|
var DataFormChildSection_default = DataFormChildSection;
|
|
3978
4113
|
|
|
3979
4114
|
// src/components/dataForm/DataForm.tsx
|
|
3980
|
-
import { jsx as
|
|
4115
|
+
import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3981
4116
|
var DataForm = (props) => {
|
|
3982
4117
|
const formRef = useRef2(null);
|
|
3983
4118
|
console.log(props.dataItem, "dssads");
|
|
@@ -4197,19 +4332,19 @@ var DataForm = (props) => {
|
|
|
4197
4332
|
return false;
|
|
4198
4333
|
}
|
|
4199
4334
|
}
|
|
4200
|
-
return /* @__PURE__ */
|
|
4201
|
-
props.title && /* @__PURE__ */
|
|
4335
|
+
return /* @__PURE__ */ jsx47(React33.Fragment, { children: /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
|
|
4336
|
+
props.title && /* @__PURE__ */ jsx47("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__ */ jsxs21(
|
|
4202
4337
|
"div",
|
|
4203
4338
|
{
|
|
4204
4339
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
4205
4340
|
onClick: () => window.history.back(),
|
|
4206
4341
|
children: [
|
|
4207
|
-
/* @__PURE__ */
|
|
4208
|
-
/* @__PURE__ */
|
|
4342
|
+
/* @__PURE__ */ jsx47(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
4343
|
+
/* @__PURE__ */ jsx47("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
4209
4344
|
]
|
|
4210
4345
|
}
|
|
4211
4346
|
) }),
|
|
4212
|
-
/* @__PURE__ */
|
|
4347
|
+
/* @__PURE__ */ jsx47(
|
|
4213
4348
|
"form",
|
|
4214
4349
|
{
|
|
4215
4350
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -4230,8 +4365,8 @@ var DataForm = (props) => {
|
|
|
4230
4365
|
}
|
|
4231
4366
|
}
|
|
4232
4367
|
},
|
|
4233
|
-
children: /* @__PURE__ */
|
|
4234
|
-
return /* @__PURE__ */
|
|
4368
|
+
children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
4369
|
+
return /* @__PURE__ */ jsx47(React33.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs21("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
4235
4370
|
section.sectionRows?.map(
|
|
4236
4371
|
(sectionRow, sectionRowIndex) => {
|
|
4237
4372
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -4242,14 +4377,14 @@ var DataForm = (props) => {
|
|
|
4242
4377
|
sectionRow.visible
|
|
4243
4378
|
);
|
|
4244
4379
|
}
|
|
4245
|
-
return /* @__PURE__ */
|
|
4246
|
-
return /* @__PURE__ */
|
|
4380
|
+
return /* @__PURE__ */ jsx47(React33.Fragment, { children: isVisible && /* @__PURE__ */ jsx47("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
4381
|
+
return /* @__PURE__ */ jsxs21(
|
|
4247
4382
|
"div",
|
|
4248
4383
|
{
|
|
4249
4384
|
className: sectionRow.grow ? "grow" : "",
|
|
4250
4385
|
children: [
|
|
4251
|
-
/* @__PURE__ */
|
|
4252
|
-
/* @__PURE__ */
|
|
4386
|
+
/* @__PURE__ */ jsx47("div", { children: field.controlType }),
|
|
4387
|
+
/* @__PURE__ */ jsx47(
|
|
4253
4388
|
InputControl_default,
|
|
4254
4389
|
{
|
|
4255
4390
|
name: field.name,
|
|
@@ -4279,12 +4414,12 @@ var DataForm = (props) => {
|
|
|
4279
4414
|
}) }) }, sectionRowIndex);
|
|
4280
4415
|
}
|
|
4281
4416
|
),
|
|
4282
|
-
/* @__PURE__ */
|
|
4417
|
+
/* @__PURE__ */ jsx47("div", { children: section.childSections?.map(
|
|
4283
4418
|
(childSection, childSectionIndex) => {
|
|
4284
|
-
return /* @__PURE__ */
|
|
4419
|
+
return /* @__PURE__ */ jsx47("div", { children: childSection.name && evalutateCondition(
|
|
4285
4420
|
formState.inputValues,
|
|
4286
4421
|
childSection.visible
|
|
4287
|
-
) && /* @__PURE__ */
|
|
4422
|
+
) && /* @__PURE__ */ jsx47(
|
|
4288
4423
|
DataFormChildSection_default,
|
|
4289
4424
|
{
|
|
4290
4425
|
section: childSection,
|
|
@@ -4299,8 +4434,8 @@ var DataForm = (props) => {
|
|
|
4299
4434
|
}) })
|
|
4300
4435
|
}
|
|
4301
4436
|
),
|
|
4302
|
-
/* @__PURE__ */
|
|
4303
|
-
/* @__PURE__ */
|
|
4437
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
4438
|
+
/* @__PURE__ */ jsx47("div", { children: props.additionalActions && /* @__PURE__ */ jsx47(
|
|
4304
4439
|
Button_default,
|
|
4305
4440
|
{
|
|
4306
4441
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4308,7 +4443,7 @@ var DataForm = (props) => {
|
|
|
4308
4443
|
children: props.additionalActions.title
|
|
4309
4444
|
}
|
|
4310
4445
|
) }),
|
|
4311
|
-
/* @__PURE__ */
|
|
4446
|
+
/* @__PURE__ */ jsx47("div", { children: props.onDelete && /* @__PURE__ */ jsx47(
|
|
4312
4447
|
Button_default,
|
|
4313
4448
|
{
|
|
4314
4449
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4319,7 +4454,7 @@ var DataForm = (props) => {
|
|
|
4319
4454
|
children: "Delete"
|
|
4320
4455
|
}
|
|
4321
4456
|
) }),
|
|
4322
|
-
/* @__PURE__ */
|
|
4457
|
+
/* @__PURE__ */ jsx47("div", { children: props.onClick && /* @__PURE__ */ jsx47(
|
|
4323
4458
|
Button_default,
|
|
4324
4459
|
{
|
|
4325
4460
|
onValidate,
|
|
@@ -4336,7 +4471,7 @@ var DataForm = (props) => {
|
|
|
4336
4471
|
var DataForm_default = DataForm;
|
|
4337
4472
|
|
|
4338
4473
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
4339
|
-
import { jsx as
|
|
4474
|
+
import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4340
4475
|
function getAction(actions, code) {
|
|
4341
4476
|
return actions?.find((a) => a.actionCode === code);
|
|
4342
4477
|
}
|
|
@@ -4362,9 +4497,9 @@ var DataFormRenderer = ({
|
|
|
4362
4497
|
"Delete"
|
|
4363
4498
|
);
|
|
4364
4499
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
4365
|
-
return /* @__PURE__ */
|
|
4366
|
-
widgetProps && /* @__PURE__ */
|
|
4367
|
-
/* @__PURE__ */
|
|
4500
|
+
return /* @__PURE__ */ jsxs22("div", { className: "flex-grow flex flex-col", children: [
|
|
4501
|
+
widgetProps && /* @__PURE__ */ jsx48(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
4502
|
+
/* @__PURE__ */ jsx48(
|
|
4368
4503
|
DataForm_default,
|
|
4369
4504
|
{
|
|
4370
4505
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|