@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260824114331 → 0.8.1-dev.20260825113828
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 +897 -873
- package/dist/index.mjs +387 -363
- package/dist/server.d.mts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +619 -595
- package/dist/server.mjs +196 -172
- 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 React14 from "react";
|
|
50
50
|
|
|
51
51
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
52
52
|
var ViewControlTypes = {
|
|
@@ -55,6 +55,7 @@ var ViewControlTypes = {
|
|
|
55
55
|
asset: "asset",
|
|
56
56
|
video: "video",
|
|
57
57
|
multilineTextBullets: "multilineTextBullets",
|
|
58
|
+
tagsBullets: "tagsBullets",
|
|
58
59
|
boolean: "boolean",
|
|
59
60
|
checkboxInput: "boolean",
|
|
60
61
|
money: "money",
|
|
@@ -314,19 +315,41 @@ var MultilineTextBullets = (props) => {
|
|
|
314
315
|
};
|
|
315
316
|
var MultilineTextBulletsView_default = MultilineTextBullets;
|
|
316
317
|
|
|
317
|
-
// src/components/controls/view/
|
|
318
|
+
// src/components/controls/view/TagsBulletsView.tsx
|
|
318
319
|
import React10 from "react";
|
|
319
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
320
|
+
import { jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
321
|
+
var getText = (node) => {
|
|
322
|
+
if (node === null || node === void 0 || typeof node === "boolean") return "";
|
|
323
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
324
|
+
if (Array.isArray(node)) return node.map(getText).join("");
|
|
325
|
+
if (React10.isValidElement(node)) return getText(node.props.children);
|
|
326
|
+
return "";
|
|
327
|
+
};
|
|
328
|
+
var TagsBulletsView = (props) => {
|
|
329
|
+
const rawTags = Array.isArray(props.value) ? props.value : typeof props.value === "string" ? props.value.split(",") : [];
|
|
330
|
+
const tags = rawTags.map((tag) => getText(tag).trim()).filter((tag) => tag);
|
|
331
|
+
return /* @__PURE__ */ jsx11(React10.Fragment, { children: tags && tags.map((tag, index) => {
|
|
332
|
+
return /* @__PURE__ */ jsxs2("span", { children: [
|
|
333
|
+
index > 0 && /* @__PURE__ */ jsx11("span", { children: " \u2022 " }),
|
|
334
|
+
tag
|
|
335
|
+
] }, index);
|
|
336
|
+
}) });
|
|
337
|
+
};
|
|
338
|
+
var TagsBulletsView_default = TagsBulletsView;
|
|
339
|
+
|
|
340
|
+
// src/components/controls/view/MultilineTextView.tsx
|
|
341
|
+
import React11 from "react";
|
|
342
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
320
343
|
var MultilineText = (props) => {
|
|
321
|
-
return /* @__PURE__ */
|
|
344
|
+
return /* @__PURE__ */ jsx12(React11.Fragment, { children: /* @__PURE__ */ jsx12("span", { className: "break-all whitespace-pre-line", children: props.value }) });
|
|
322
345
|
};
|
|
323
346
|
var MultilineTextView_default = MultilineText;
|
|
324
347
|
|
|
325
348
|
// src/components/controls/view/PercentageView.tsx
|
|
326
|
-
import
|
|
327
|
-
import { jsxs as
|
|
349
|
+
import React12 from "react";
|
|
350
|
+
import { jsxs as jsxs3 } from "react/jsx-runtime";
|
|
328
351
|
var PercentageView = (props) => {
|
|
329
|
-
return /* @__PURE__ */
|
|
352
|
+
return /* @__PURE__ */ jsxs3(React12.Fragment, { children: [
|
|
330
353
|
props.value,
|
|
331
354
|
"%"
|
|
332
355
|
] });
|
|
@@ -334,16 +357,16 @@ var PercentageView = (props) => {
|
|
|
334
357
|
var PercentageView_default = PercentageView;
|
|
335
358
|
|
|
336
359
|
// src/components/controls/view/ProgressIndicator.tsx
|
|
337
|
-
import
|
|
338
|
-
import { jsx as
|
|
360
|
+
import React13 from "react";
|
|
361
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
339
362
|
var ProgressIndicator = (props) => {
|
|
340
363
|
const percentage = 100;
|
|
341
364
|
const circumference = Math.PI * 56;
|
|
342
365
|
const offset = circumference * (1 - percentage / 100);
|
|
343
|
-
return /* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
/* @__PURE__ */
|
|
366
|
+
return /* @__PURE__ */ jsx13(React13.Fragment, { children: /* @__PURE__ */ jsxs4("div", { className: "relative w-48 h-48", children: [
|
|
367
|
+
/* @__PURE__ */ jsx13("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
|
|
368
|
+
/* @__PURE__ */ jsx13("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ jsx13("div", { className: "w-full h-full rounded-full border-t-8 border-green-500", style: { transform: `rotate(-90deg)`, clipPath: `inset(0px ${offset}px 0px 0px)` } }) }),
|
|
369
|
+
/* @__PURE__ */ jsx13("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center text-lg font-bold text-gray-800", children: /* @__PURE__ */ jsxs4("span", { children: [
|
|
347
370
|
percentage,
|
|
348
371
|
"%"
|
|
349
372
|
] }) })
|
|
@@ -352,18 +375,18 @@ var ProgressIndicator = (props) => {
|
|
|
352
375
|
var ProgressIndicator_default = ProgressIndicator;
|
|
353
376
|
|
|
354
377
|
// src/components/controls/view/AiGeneratedSummary.tsx
|
|
355
|
-
import { jsx as
|
|
378
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
356
379
|
var AiGeneratedSummary = (props) => {
|
|
357
380
|
const lines = props.value?.split("\n").filter((line) => line.trim() !== "") || [];
|
|
358
|
-
return /* @__PURE__ */
|
|
359
|
-
/* @__PURE__ */
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
/* @__PURE__ */
|
|
381
|
+
return /* @__PURE__ */ jsxs5("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
|
|
382
|
+
/* @__PURE__ */ jsx14("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ jsxs5("div", { className: "flex items-start gap-3 ", children: [
|
|
383
|
+
/* @__PURE__ */ jsx14("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ jsx14("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5", children: /* @__PURE__ */ jsx14("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }) }) }),
|
|
384
|
+
/* @__PURE__ */ jsxs5("div", { children: [
|
|
385
|
+
/* @__PURE__ */ jsx14("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
|
|
386
|
+
/* @__PURE__ */ jsx14("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
|
|
364
387
|
] })
|
|
365
388
|
] }) }),
|
|
366
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ jsx14("div", { children: /* @__PURE__ */ jsx14("ul", { className: "list-disc pl-6 space-y-3 text-gray-700 ps-4 pl-4", children: lines.map((line, index) => /* @__PURE__ */ jsx14("li", { className: "m-0", children: line }, index)) }) })
|
|
367
390
|
] });
|
|
368
391
|
};
|
|
369
392
|
var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
@@ -383,13 +406,14 @@ var TimeUntilStarts = dynamic4(() => import("./TimeUntilStartsClient-5HGQ5JKM.mj
|
|
|
383
406
|
var TimeUntilStarts_default = TimeUntilStarts;
|
|
384
407
|
|
|
385
408
|
// src/components/controls/view/ViewControl.tsx
|
|
386
|
-
import { jsx as
|
|
409
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
387
410
|
var ViewControl = (props) => {
|
|
388
411
|
const ControlComponents = {
|
|
389
412
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
390
413
|
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
391
414
|
[ViewControlTypes_default.asset]: Asset_default,
|
|
392
415
|
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
416
|
+
[ViewControlTypes_default.tagsBullets]: TagsBulletsView_default,
|
|
393
417
|
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
394
418
|
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
395
419
|
[ViewControlTypes_default.timeUntilStarts]: TimeUntilStarts_default,
|
|
@@ -412,18 +436,18 @@ var ViewControl = (props) => {
|
|
|
412
436
|
[ViewControlTypes_default.text]: LineTextView_default
|
|
413
437
|
};
|
|
414
438
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
415
|
-
return /* @__PURE__ */
|
|
439
|
+
return /* @__PURE__ */ jsx15(React14.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx15(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
416
440
|
};
|
|
417
441
|
var ViewControl_default = ViewControl;
|
|
418
442
|
|
|
419
443
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
420
|
-
import
|
|
444
|
+
import React24 from "react";
|
|
421
445
|
|
|
422
446
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
423
|
-
import
|
|
447
|
+
import React16 from "react";
|
|
424
448
|
|
|
425
449
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
426
|
-
import { jsx as
|
|
450
|
+
import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
427
451
|
var TextNode = (props) => {
|
|
428
452
|
function cssStringToJson(cssString) {
|
|
429
453
|
const styleObject = {};
|
|
@@ -478,35 +502,35 @@ var TextNode = (props) => {
|
|
|
478
502
|
});
|
|
479
503
|
}
|
|
480
504
|
function renderWithLineBreaks(text) {
|
|
481
|
-
return text.split("\n").map((line, index, arr) => /* @__PURE__ */
|
|
505
|
+
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ jsxs6("span", { children: [
|
|
482
506
|
line,
|
|
483
|
-
index < arr.length - 1 && /* @__PURE__ */
|
|
507
|
+
index < arr.length - 1 && /* @__PURE__ */ jsx16("br", {})
|
|
484
508
|
] }, index));
|
|
485
509
|
}
|
|
486
510
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
487
511
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
488
512
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
489
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */
|
|
513
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ jsx16("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ jsx16("sub", { children: content }) : content;
|
|
490
514
|
return (
|
|
491
515
|
// @ts-expect-error custom code
|
|
492
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ jsx16("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
493
517
|
);
|
|
494
518
|
};
|
|
495
519
|
var TextNode_default = TextNode;
|
|
496
520
|
|
|
497
521
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
498
|
-
import { jsx as
|
|
522
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
499
523
|
var LineBreakNode = () => {
|
|
500
|
-
return /* @__PURE__ */
|
|
524
|
+
return /* @__PURE__ */ jsx17("div", { className: "py-0.5 lg:py-1.5" });
|
|
501
525
|
};
|
|
502
526
|
var LineBreakNode_default = LineBreakNode;
|
|
503
527
|
|
|
504
528
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
505
|
-
import
|
|
529
|
+
import React15 from "react";
|
|
506
530
|
|
|
507
531
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
508
532
|
import dynamic5 from "next/dynamic";
|
|
509
|
-
import { jsx as
|
|
533
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
510
534
|
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
511
535
|
var getNestedValue = (obj, path) => {
|
|
512
536
|
if (!obj || !path) return void 0;
|
|
@@ -539,7 +563,7 @@ var ImageNode = (props) => {
|
|
|
539
563
|
assets = [image];
|
|
540
564
|
}
|
|
541
565
|
if (assets && assets.length > 0) {
|
|
542
|
-
return /* @__PURE__ */
|
|
566
|
+
return /* @__PURE__ */ jsx18(
|
|
543
567
|
DeviceAssetSelector_default,
|
|
544
568
|
{
|
|
545
569
|
device: props.device,
|
|
@@ -580,7 +604,7 @@ var ImageNode = (props) => {
|
|
|
580
604
|
right: "justify-end"
|
|
581
605
|
};
|
|
582
606
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
583
|
-
const renderMedia = () => isHls ? /* @__PURE__ */
|
|
607
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ jsx18(
|
|
584
608
|
HlsPlayer2,
|
|
585
609
|
{
|
|
586
610
|
assetUrl: imageUrl,
|
|
@@ -593,7 +617,7 @@ var ImageNode = (props) => {
|
|
|
593
617
|
apiBaseUrl: props.apiBaseUrl,
|
|
594
618
|
session: props.session
|
|
595
619
|
}
|
|
596
|
-
) : /* @__PURE__ */
|
|
620
|
+
) : /* @__PURE__ */ jsx18(
|
|
597
621
|
"img",
|
|
598
622
|
{
|
|
599
623
|
style: styles,
|
|
@@ -606,7 +630,7 @@ var ImageNode = (props) => {
|
|
|
606
630
|
}
|
|
607
631
|
);
|
|
608
632
|
if (props.node.width) {
|
|
609
|
-
return /* @__PURE__ */
|
|
633
|
+
return /* @__PURE__ */ jsx18("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
610
634
|
}
|
|
611
635
|
return renderMedia();
|
|
612
636
|
};
|
|
@@ -614,7 +638,7 @@ var ImageNode_default = ImageNode;
|
|
|
614
638
|
|
|
615
639
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
616
640
|
import dynamic6 from "next/dynamic";
|
|
617
|
-
import { Fragment, jsx as
|
|
641
|
+
import { Fragment, jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
618
642
|
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-BEAX4I4C.mjs"), {
|
|
619
643
|
ssr: false
|
|
620
644
|
});
|
|
@@ -667,13 +691,13 @@ var LinkNode = (props) => {
|
|
|
667
691
|
const isButton = node.isButton === true;
|
|
668
692
|
const renderChildren = () => {
|
|
669
693
|
if (!node.children || node.children.length === 0) return null;
|
|
670
|
-
return /* @__PURE__ */
|
|
694
|
+
return /* @__PURE__ */ jsx19(Fragment, { children: node.children.map((childNode, index) => {
|
|
671
695
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
672
696
|
if (!SelectedNode) {
|
|
673
697
|
console.warn("Unknown node type:", childNode.type);
|
|
674
698
|
return null;
|
|
675
699
|
}
|
|
676
|
-
return /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ jsx19(React15.Fragment, { children: /* @__PURE__ */ jsx19(
|
|
677
701
|
SelectedNode,
|
|
678
702
|
{
|
|
679
703
|
node: childNode,
|
|
@@ -686,15 +710,15 @@ var LinkNode = (props) => {
|
|
|
686
710
|
};
|
|
687
711
|
const renderFallback = () => {
|
|
688
712
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
689
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ jsx19("span", { children: linkText });
|
|
690
714
|
}
|
|
691
715
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
692
|
-
return /* @__PURE__ */
|
|
716
|
+
return /* @__PURE__ */ jsx19("br", {});
|
|
693
717
|
}
|
|
694
718
|
return null;
|
|
695
719
|
};
|
|
696
720
|
if (isButton) {
|
|
697
|
-
return /* @__PURE__ */
|
|
721
|
+
return /* @__PURE__ */ jsxs7(
|
|
698
722
|
LinkNodeButton,
|
|
699
723
|
{
|
|
700
724
|
node,
|
|
@@ -712,7 +736,7 @@ var LinkNode = (props) => {
|
|
|
712
736
|
}
|
|
713
737
|
);
|
|
714
738
|
}
|
|
715
|
-
return /* @__PURE__ */
|
|
739
|
+
return /* @__PURE__ */ jsxs7(
|
|
716
740
|
Hyperlink,
|
|
717
741
|
{
|
|
718
742
|
href: linkUrl || "#",
|
|
@@ -728,10 +752,10 @@ var LinkNode = (props) => {
|
|
|
728
752
|
var LinkNode_default = LinkNode;
|
|
729
753
|
|
|
730
754
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
731
|
-
import { jsx as
|
|
755
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
732
756
|
var SVGIconNode = ({ node }) => {
|
|
733
757
|
if (!node?.svgCode) return null;
|
|
734
|
-
return /* @__PURE__ */
|
|
758
|
+
return /* @__PURE__ */ jsx20(
|
|
735
759
|
"span",
|
|
736
760
|
{
|
|
737
761
|
style: {
|
|
@@ -748,7 +772,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
748
772
|
|
|
749
773
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
750
774
|
import katex from "katex";
|
|
751
|
-
import { jsx as
|
|
775
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
752
776
|
var EquationNode = ({ node }) => {
|
|
753
777
|
const { equation, inline } = node;
|
|
754
778
|
let html = "";
|
|
@@ -763,7 +787,7 @@ var EquationNode = ({ node }) => {
|
|
|
763
787
|
});
|
|
764
788
|
}
|
|
765
789
|
if (inline) {
|
|
766
|
-
return /* @__PURE__ */
|
|
790
|
+
return /* @__PURE__ */ jsx21(
|
|
767
791
|
"span",
|
|
768
792
|
{
|
|
769
793
|
className: "katex-inline",
|
|
@@ -771,7 +795,7 @@ var EquationNode = ({ node }) => {
|
|
|
771
795
|
}
|
|
772
796
|
);
|
|
773
797
|
}
|
|
774
|
-
return /* @__PURE__ */
|
|
798
|
+
return /* @__PURE__ */ jsx21(
|
|
775
799
|
"div",
|
|
776
800
|
{
|
|
777
801
|
className: "katex-block my-3 text-center",
|
|
@@ -782,7 +806,7 @@ var EquationNode = ({ node }) => {
|
|
|
782
806
|
var EquationNode_default = EquationNode;
|
|
783
807
|
|
|
784
808
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
785
|
-
import { jsx as
|
|
809
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
786
810
|
function getNestedProperty(obj, path) {
|
|
787
811
|
if (!obj || !path) return null;
|
|
788
812
|
if (path.includes(".")) {
|
|
@@ -795,7 +819,7 @@ function getNestedProperty(obj, path) {
|
|
|
795
819
|
}
|
|
796
820
|
const value = obj[path];
|
|
797
821
|
if (Array.isArray(value)) {
|
|
798
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
822
|
+
return value.map((item, index) => /* @__PURE__ */ jsx22("div", { children: String(item) }, index));
|
|
799
823
|
}
|
|
800
824
|
return value;
|
|
801
825
|
}
|
|
@@ -856,7 +880,7 @@ var DatafieldNode = (props) => {
|
|
|
856
880
|
const dataType = props.node.dataType;
|
|
857
881
|
if (isEmptyValue) return null;
|
|
858
882
|
if (dataType === "rawContent") {
|
|
859
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ jsx22(
|
|
860
884
|
PageBodyRenderer_default,
|
|
861
885
|
{
|
|
862
886
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -872,12 +896,12 @@ var DatafieldNode = (props) => {
|
|
|
872
896
|
}
|
|
873
897
|
);
|
|
874
898
|
}
|
|
875
|
-
return /* @__PURE__ */
|
|
899
|
+
return /* @__PURE__ */ jsx22(
|
|
876
900
|
"span",
|
|
877
901
|
{
|
|
878
902
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
879
903
|
style: styles,
|
|
880
|
-
children: /* @__PURE__ */
|
|
904
|
+
children: /* @__PURE__ */ jsx22(
|
|
881
905
|
ViewControl_default,
|
|
882
906
|
{
|
|
883
907
|
controlType: dataType,
|
|
@@ -890,7 +914,7 @@ var DatafieldNode = (props) => {
|
|
|
890
914
|
var DatafieldNode_default = DatafieldNode;
|
|
891
915
|
|
|
892
916
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
893
|
-
import { Fragment as Fragment2, jsx as
|
|
917
|
+
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
894
918
|
var ParagraphNode = (props) => {
|
|
895
919
|
const NodeTypes2 = {
|
|
896
920
|
["text"]: TextNode_default,
|
|
@@ -910,9 +934,9 @@ var ParagraphNode = (props) => {
|
|
|
910
934
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
911
935
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
912
936
|
if (isInlineOnlyParent) {
|
|
913
|
-
return /* @__PURE__ */
|
|
937
|
+
return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
914
938
|
const SelectedNode = NodeTypes2[node.type];
|
|
915
|
-
return /* @__PURE__ */
|
|
939
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
916
940
|
SelectedNode,
|
|
917
941
|
{
|
|
918
942
|
node,
|
|
@@ -924,10 +948,10 @@ var ParagraphNode = (props) => {
|
|
|
924
948
|
) }, index);
|
|
925
949
|
}) });
|
|
926
950
|
}
|
|
927
|
-
return /* @__PURE__ */
|
|
951
|
+
return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
|
|
928
952
|
hasChildren && props.node.children.map((node, index) => {
|
|
929
953
|
const SelectedNode = NodeTypes2[node.type];
|
|
930
|
-
return /* @__PURE__ */
|
|
954
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
931
955
|
SelectedNode,
|
|
932
956
|
{
|
|
933
957
|
node,
|
|
@@ -938,14 +962,14 @@ var ParagraphNode = (props) => {
|
|
|
938
962
|
}
|
|
939
963
|
) }, index);
|
|
940
964
|
}),
|
|
941
|
-
!hasChildren && /* @__PURE__ */
|
|
965
|
+
!hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
|
|
942
966
|
] });
|
|
943
967
|
};
|
|
944
968
|
var ParagraphNode_default = ParagraphNode;
|
|
945
969
|
|
|
946
970
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
947
|
-
import
|
|
948
|
-
import { Fragment as Fragment3, jsx as
|
|
971
|
+
import React17 from "react";
|
|
972
|
+
import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
|
|
949
973
|
var HeadingNode = (props) => {
|
|
950
974
|
const NodeTypes2 = {
|
|
951
975
|
["text"]: TextNode_default,
|
|
@@ -961,23 +985,23 @@ var HeadingNode = (props) => {
|
|
|
961
985
|
{
|
|
962
986
|
}
|
|
963
987
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
964
|
-
return /* @__PURE__ */
|
|
988
|
+
return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
|
|
965
989
|
HeadingTag,
|
|
966
990
|
{ className: formatClasses },
|
|
967
991
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
968
992
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
969
|
-
return /* @__PURE__ */
|
|
993
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
970
994
|
})
|
|
971
995
|
) });
|
|
972
996
|
};
|
|
973
997
|
var HeadingNode_default = HeadingNode;
|
|
974
998
|
|
|
975
999
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
976
|
-
import
|
|
1000
|
+
import React19 from "react";
|
|
977
1001
|
|
|
978
1002
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
979
|
-
import
|
|
980
|
-
import { jsx as
|
|
1003
|
+
import React18 from "react";
|
|
1004
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
981
1005
|
var ListItemNode = (props) => {
|
|
982
1006
|
const NodeTypes2 = {
|
|
983
1007
|
text: TextNode_default,
|
|
@@ -994,66 +1018,66 @@ var ListItemNode = (props) => {
|
|
|
994
1018
|
liStyle.fontSize = match[1].trim();
|
|
995
1019
|
}
|
|
996
1020
|
}
|
|
997
|
-
return /* @__PURE__ */
|
|
1021
|
+
return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
998
1022
|
const SelectedNode = NodeTypes2[node.type];
|
|
999
1023
|
if (node.type === "linebreak") {
|
|
1000
1024
|
if (!foundFirstBreak) {
|
|
1001
1025
|
foundFirstBreak = true;
|
|
1002
|
-
return /* @__PURE__ */
|
|
1026
|
+
return /* @__PURE__ */ jsx25("div", {}, index);
|
|
1003
1027
|
} else {
|
|
1004
|
-
return /* @__PURE__ */
|
|
1028
|
+
return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
|
|
1005
1029
|
}
|
|
1006
1030
|
} else {
|
|
1007
1031
|
foundFirstBreak = false;
|
|
1008
|
-
return /* @__PURE__ */
|
|
1032
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1009
1033
|
}
|
|
1010
1034
|
}) });
|
|
1011
1035
|
};
|
|
1012
1036
|
var ListItemNode_default = ListItemNode;
|
|
1013
1037
|
|
|
1014
1038
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1015
|
-
import { jsx as
|
|
1039
|
+
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1016
1040
|
var ListNode = (props) => {
|
|
1017
1041
|
const NodeTypes2 = {
|
|
1018
1042
|
listitem: ListItemNode_default
|
|
1019
1043
|
};
|
|
1020
|
-
return /* @__PURE__ */
|
|
1021
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1044
|
+
return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
|
|
1045
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1022
1046
|
const SelectedNode = NodeTypes2[node.type];
|
|
1023
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1024
1048
|
}) }),
|
|
1025
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1049
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1026
1050
|
const SelectedNode = NodeTypes2[node.type];
|
|
1027
|
-
return /* @__PURE__ */
|
|
1051
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1028
1052
|
}) })
|
|
1029
1053
|
] });
|
|
1030
1054
|
};
|
|
1031
1055
|
var ListNode_default = ListNode;
|
|
1032
1056
|
|
|
1033
1057
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1034
|
-
import
|
|
1035
|
-
import { jsx as
|
|
1058
|
+
import React20 from "react";
|
|
1059
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1036
1060
|
var QuoteNode = (props) => {
|
|
1037
1061
|
const NodeTypes2 = {
|
|
1038
1062
|
["text"]: TextNode_default,
|
|
1039
1063
|
["linebreak"]: LineBreakNode_default,
|
|
1040
1064
|
["link"]: LinkNode_default
|
|
1041
1065
|
};
|
|
1042
|
-
return /* @__PURE__ */
|
|
1066
|
+
return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1043
1067
|
const SelectedNode = NodeTypes2[node.type];
|
|
1044
|
-
return /* @__PURE__ */
|
|
1068
|
+
return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1045
1069
|
}) });
|
|
1046
1070
|
};
|
|
1047
1071
|
var QuoteNode_default = QuoteNode;
|
|
1048
1072
|
|
|
1049
1073
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1050
|
-
import
|
|
1074
|
+
import React21 from "react";
|
|
1051
1075
|
import dynamic7 from "next/dynamic";
|
|
1052
|
-
import { jsx as
|
|
1076
|
+
import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1053
1077
|
var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1054
1078
|
ssr: false,
|
|
1055
1079
|
// optional: fallback UI while loading
|
|
1056
|
-
loading: () => /* @__PURE__ */
|
|
1080
|
+
loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1057
1081
|
});
|
|
1058
1082
|
var CodeNode = (props) => {
|
|
1059
1083
|
const NodeTypes2 = {
|
|
@@ -1067,14 +1091,14 @@ var CodeNode = (props) => {
|
|
|
1067
1091
|
if (node.type === "link") return node.text || node.url || "";
|
|
1068
1092
|
return "";
|
|
1069
1093
|
}).join("") ?? "";
|
|
1070
|
-
return /* @__PURE__ */
|
|
1071
|
-
/* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */
|
|
1073
|
-
/* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ jsxs10("div", { children: [
|
|
1095
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
1096
|
+
/* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
|
|
1097
|
+
/* @__PURE__ */ jsx28(CopyButton, { text: textContent })
|
|
1074
1098
|
] }),
|
|
1075
|
-
/* @__PURE__ */
|
|
1099
|
+
/* @__PURE__ */ jsx28("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
|
|
1076
1100
|
const SelectedNode = NodeTypes2[node.type];
|
|
1077
|
-
return /* @__PURE__ */
|
|
1101
|
+
return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
|
|
1078
1102
|
SelectedNode,
|
|
1079
1103
|
{
|
|
1080
1104
|
node,
|
|
@@ -1089,15 +1113,15 @@ var CodeNode = (props) => {
|
|
|
1089
1113
|
var CodeNode_default = CodeNode;
|
|
1090
1114
|
|
|
1091
1115
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1092
|
-
import { jsx as
|
|
1116
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1093
1117
|
var HorizontalRuleNode = () => {
|
|
1094
|
-
return /* @__PURE__ */
|
|
1118
|
+
return /* @__PURE__ */ jsx29("hr", {});
|
|
1095
1119
|
};
|
|
1096
1120
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1097
1121
|
|
|
1098
1122
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1099
|
-
import
|
|
1100
|
-
import { Fragment as Fragment4, jsx as
|
|
1123
|
+
import React22 from "react";
|
|
1124
|
+
import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
|
|
1101
1125
|
var WidgetNode = (props) => {
|
|
1102
1126
|
const getWidgetParameters = () => {
|
|
1103
1127
|
const widgetInputParameters = {
|
|
@@ -1161,7 +1185,7 @@ var WidgetNode = (props) => {
|
|
|
1161
1185
|
};
|
|
1162
1186
|
const widgetCode = props.node?.widgetCode;
|
|
1163
1187
|
if (!widgetCode) {
|
|
1164
|
-
return /* @__PURE__ */
|
|
1188
|
+
return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
|
|
1165
1189
|
}
|
|
1166
1190
|
const widgetParams = getWidgetParameters();
|
|
1167
1191
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1170,7 +1194,7 @@ var WidgetNode = (props) => {
|
|
|
1170
1194
|
}
|
|
1171
1195
|
return (
|
|
1172
1196
|
// eslint-disable-next-line react-hooks/static-components
|
|
1173
|
-
/* @__PURE__ */
|
|
1197
|
+
/* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
|
|
1174
1198
|
WidgetRenderer,
|
|
1175
1199
|
{
|
|
1176
1200
|
params: widgetParams,
|
|
@@ -1188,11 +1212,11 @@ var WidgetNode_default = WidgetNode;
|
|
|
1188
1212
|
|
|
1189
1213
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1190
1214
|
import dynamic11 from "next/dynamic";
|
|
1191
|
-
import
|
|
1215
|
+
import React23 from "react";
|
|
1192
1216
|
|
|
1193
1217
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1194
1218
|
import dynamic8 from "next/dynamic";
|
|
1195
|
-
import { jsx as
|
|
1219
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1196
1220
|
var IframeClient = dynamic8(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
1197
1221
|
ssr: false
|
|
1198
1222
|
});
|
|
@@ -1205,7 +1229,7 @@ var EmbedNode = (props) => {
|
|
|
1205
1229
|
} else {
|
|
1206
1230
|
src = props.node.embedSrc;
|
|
1207
1231
|
}
|
|
1208
|
-
return /* @__PURE__ */
|
|
1232
|
+
return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
|
|
1209
1233
|
};
|
|
1210
1234
|
var EmbedNode_default = EmbedNode;
|
|
1211
1235
|
|
|
@@ -1398,10 +1422,10 @@ var PathUtility = class {
|
|
|
1398
1422
|
var PathUtility_default = new PathUtility();
|
|
1399
1423
|
|
|
1400
1424
|
// src/components/NoDataFound.tsx
|
|
1401
|
-
import { jsx as
|
|
1425
|
+
import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1402
1426
|
var NoDataFound = () => {
|
|
1403
|
-
return /* @__PURE__ */
|
|
1404
|
-
/* @__PURE__ */
|
|
1427
|
+
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1428
|
+
/* @__PURE__ */ jsx32("div", { className: "mb-5", children: /* @__PURE__ */ jsx32("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx32(
|
|
1405
1429
|
"svg",
|
|
1406
1430
|
{
|
|
1407
1431
|
className: "w-10 h-10",
|
|
@@ -1409,7 +1433,7 @@ var NoDataFound = () => {
|
|
|
1409
1433
|
stroke: "currentColor",
|
|
1410
1434
|
viewBox: "0 0 24 24",
|
|
1411
1435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1412
|
-
children: /* @__PURE__ */
|
|
1436
|
+
children: /* @__PURE__ */ jsx32(
|
|
1413
1437
|
"path",
|
|
1414
1438
|
{
|
|
1415
1439
|
strokeLinecap: "round",
|
|
@@ -1420,15 +1444,15 @@ var NoDataFound = () => {
|
|
|
1420
1444
|
)
|
|
1421
1445
|
}
|
|
1422
1446
|
) }) }),
|
|
1423
|
-
/* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1448
|
+
/* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1425
1449
|
] });
|
|
1426
1450
|
};
|
|
1427
1451
|
var NoDataFound_default = NoDataFound;
|
|
1428
1452
|
|
|
1429
1453
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1430
1454
|
import dynamic9 from "next/dynamic";
|
|
1431
|
-
import { Fragment as Fragment5, jsx as
|
|
1455
|
+
import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1432
1456
|
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
1433
1457
|
var deviceToMediaQuery = (device) => {
|
|
1434
1458
|
switch (device) {
|
|
@@ -1584,8 +1608,8 @@ var ImageGalleryNode = (props) => {
|
|
|
1584
1608
|
right: "justify-end"
|
|
1585
1609
|
};
|
|
1586
1610
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1587
|
-
return /* @__PURE__ */
|
|
1588
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1611
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1612
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
|
|
1589
1613
|
HlsPlayer3,
|
|
1590
1614
|
{
|
|
1591
1615
|
sources: hlsSources,
|
|
@@ -1600,7 +1624,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1600
1624
|
styles: hlsStyles
|
|
1601
1625
|
}
|
|
1602
1626
|
) }),
|
|
1603
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1627
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
|
|
1604
1628
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1605
1629
|
const match = staticSources.find(
|
|
1606
1630
|
(img) => img.device === deviceKey
|
|
@@ -1616,7 +1640,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1616
1640
|
if (!srcUrl) {
|
|
1617
1641
|
return null;
|
|
1618
1642
|
}
|
|
1619
|
-
return /* @__PURE__ */
|
|
1643
|
+
return /* @__PURE__ */ jsx33(
|
|
1620
1644
|
"source",
|
|
1621
1645
|
{
|
|
1622
1646
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1641,7 +1665,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1641
1665
|
if (img.borderRadius) {
|
|
1642
1666
|
styles.borderRadius = img.borderRadius;
|
|
1643
1667
|
}
|
|
1644
|
-
return /* @__PURE__ */
|
|
1668
|
+
return /* @__PURE__ */ jsx33(
|
|
1645
1669
|
"img",
|
|
1646
1670
|
{
|
|
1647
1671
|
loading: "lazy",
|
|
@@ -1656,7 +1680,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1656
1680
|
})()
|
|
1657
1681
|
] }) : (
|
|
1658
1682
|
/* Case 2: Only device-specific images exist */
|
|
1659
|
-
/* @__PURE__ */
|
|
1683
|
+
/* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
|
|
1660
1684
|
const resolved = resolveImage(img);
|
|
1661
1685
|
const imageUrl = resolved?.imageUrl;
|
|
1662
1686
|
if (!imageUrl) {
|
|
@@ -1683,7 +1707,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1683
1707
|
default:
|
|
1684
1708
|
display = "block";
|
|
1685
1709
|
}
|
|
1686
|
-
return /* @__PURE__ */
|
|
1710
|
+
return /* @__PURE__ */ jsx33(
|
|
1687
1711
|
"img",
|
|
1688
1712
|
{
|
|
1689
1713
|
loading: "lazy",
|
|
@@ -1823,28 +1847,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1823
1847
|
};
|
|
1824
1848
|
|
|
1825
1849
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1826
|
-
import { Fragment as Fragment6, jsx as
|
|
1850
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1827
1851
|
var getNestedValue5 = (obj, path) => {
|
|
1828
1852
|
if (!obj || !path) return void 0;
|
|
1829
1853
|
return path.split(".").reduce((current, key) => {
|
|
1830
1854
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
1831
1855
|
}, obj);
|
|
1832
1856
|
};
|
|
1833
|
-
var PdfIcon = () => /* @__PURE__ */
|
|
1857
|
+
var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
1834
1858
|
"svg",
|
|
1835
1859
|
{
|
|
1836
1860
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1837
1861
|
viewBox: "0 0 48 48",
|
|
1838
1862
|
className: "w-10 h-10",
|
|
1839
1863
|
children: [
|
|
1840
|
-
/* @__PURE__ */
|
|
1864
|
+
/* @__PURE__ */ jsx34(
|
|
1841
1865
|
"path",
|
|
1842
1866
|
{
|
|
1843
1867
|
fill: "#e53935",
|
|
1844
1868
|
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"
|
|
1845
1869
|
}
|
|
1846
1870
|
),
|
|
1847
|
-
/* @__PURE__ */
|
|
1871
|
+
/* @__PURE__ */ jsx34(
|
|
1848
1872
|
"path",
|
|
1849
1873
|
{
|
|
1850
1874
|
fill: "#fff",
|
|
@@ -1854,55 +1878,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1854
1878
|
]
|
|
1855
1879
|
}
|
|
1856
1880
|
);
|
|
1857
|
-
var ExcelIcon = () => /* @__PURE__ */
|
|
1881
|
+
var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
1858
1882
|
"svg",
|
|
1859
1883
|
{
|
|
1860
1884
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1861
1885
|
viewBox: "0 0 48 48",
|
|
1862
1886
|
className: "w-10 h-10",
|
|
1863
1887
|
children: [
|
|
1864
|
-
/* @__PURE__ */
|
|
1888
|
+
/* @__PURE__ */ jsx34(
|
|
1865
1889
|
"path",
|
|
1866
1890
|
{
|
|
1867
1891
|
fill: "#169154",
|
|
1868
1892
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1869
1893
|
}
|
|
1870
1894
|
),
|
|
1871
|
-
/* @__PURE__ */
|
|
1895
|
+
/* @__PURE__ */ jsx34(
|
|
1872
1896
|
"path",
|
|
1873
1897
|
{
|
|
1874
1898
|
fill: "#18482a",
|
|
1875
1899
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1876
1900
|
}
|
|
1877
1901
|
),
|
|
1878
|
-
/* @__PURE__ */
|
|
1879
|
-
/* @__PURE__ */
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
-
/* @__PURE__ */
|
|
1902
|
+
/* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1903
|
+
/* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1904
|
+
/* @__PURE__ */ jsxs13("g", { children: [
|
|
1905
|
+
/* @__PURE__ */ jsx34(
|
|
1882
1906
|
"path",
|
|
1883
1907
|
{
|
|
1884
1908
|
fill: "#29c27f",
|
|
1885
1909
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1886
1910
|
}
|
|
1887
1911
|
),
|
|
1888
|
-
/* @__PURE__ */
|
|
1912
|
+
/* @__PURE__ */ jsx34(
|
|
1889
1913
|
"path",
|
|
1890
1914
|
{
|
|
1891
1915
|
fill: "#27663f",
|
|
1892
1916
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1893
1917
|
}
|
|
1894
1918
|
),
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
1920
|
+
/* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1897
1921
|
] }),
|
|
1898
|
-
/* @__PURE__ */
|
|
1922
|
+
/* @__PURE__ */ jsx34(
|
|
1899
1923
|
"path",
|
|
1900
1924
|
{
|
|
1901
1925
|
fill: "#0c7238",
|
|
1902
1926
|
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"
|
|
1903
1927
|
}
|
|
1904
1928
|
),
|
|
1905
|
-
/* @__PURE__ */
|
|
1929
|
+
/* @__PURE__ */ jsx34(
|
|
1906
1930
|
"path",
|
|
1907
1931
|
{
|
|
1908
1932
|
fill: "#fff",
|
|
@@ -1912,7 +1936,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1912
1936
|
]
|
|
1913
1937
|
}
|
|
1914
1938
|
);
|
|
1915
|
-
var WordIcon = () => /* @__PURE__ */
|
|
1939
|
+
var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
1916
1940
|
"svg",
|
|
1917
1941
|
{
|
|
1918
1942
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1920,14 +1944,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1920
1944
|
className: "w-10 h-10",
|
|
1921
1945
|
baseProfile: "basic",
|
|
1922
1946
|
children: [
|
|
1923
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ jsx34(
|
|
1924
1948
|
"path",
|
|
1925
1949
|
{
|
|
1926
1950
|
fill: "#283593",
|
|
1927
1951
|
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"
|
|
1928
1952
|
}
|
|
1929
1953
|
),
|
|
1930
|
-
/* @__PURE__ */
|
|
1954
|
+
/* @__PURE__ */ jsxs13(
|
|
1931
1955
|
"linearGradient",
|
|
1932
1956
|
{
|
|
1933
1957
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -1938,19 +1962,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1938
1962
|
gradientTransform: "translate(0 -339.89)",
|
|
1939
1963
|
gradientUnits: "userSpaceOnUse",
|
|
1940
1964
|
children: [
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
-
/* @__PURE__ */
|
|
1965
|
+
/* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
1966
|
+
/* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
1943
1967
|
]
|
|
1944
1968
|
}
|
|
1945
1969
|
),
|
|
1946
|
-
/* @__PURE__ */
|
|
1970
|
+
/* @__PURE__ */ jsx34(
|
|
1947
1971
|
"path",
|
|
1948
1972
|
{
|
|
1949
1973
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
1950
1974
|
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"
|
|
1951
1975
|
}
|
|
1952
1976
|
),
|
|
1953
|
-
/* @__PURE__ */
|
|
1977
|
+
/* @__PURE__ */ jsx34(
|
|
1954
1978
|
"path",
|
|
1955
1979
|
{
|
|
1956
1980
|
fill: "#1e88e5",
|
|
@@ -1958,21 +1982,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1958
1982
|
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"
|
|
1959
1983
|
}
|
|
1960
1984
|
),
|
|
1961
|
-
/* @__PURE__ */
|
|
1985
|
+
/* @__PURE__ */ jsx34(
|
|
1962
1986
|
"path",
|
|
1963
1987
|
{
|
|
1964
1988
|
fill: "#00e5ff",
|
|
1965
1989
|
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"
|
|
1966
1990
|
}
|
|
1967
1991
|
),
|
|
1968
|
-
/* @__PURE__ */
|
|
1992
|
+
/* @__PURE__ */ jsx34(
|
|
1969
1993
|
"path",
|
|
1970
1994
|
{
|
|
1971
1995
|
fill: "#1565c0",
|
|
1972
1996
|
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"
|
|
1973
1997
|
}
|
|
1974
1998
|
),
|
|
1975
|
-
/* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ jsx34(
|
|
1976
2000
|
"path",
|
|
1977
2001
|
{
|
|
1978
2002
|
fill: "#fff",
|
|
@@ -1982,42 +2006,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1982
2006
|
]
|
|
1983
2007
|
}
|
|
1984
2008
|
);
|
|
1985
|
-
var StandardIcon = () => /* @__PURE__ */
|
|
2009
|
+
var StandardIcon = () => /* @__PURE__ */ jsxs13(
|
|
1986
2010
|
"svg",
|
|
1987
2011
|
{
|
|
1988
2012
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1989
2013
|
viewBox: "0 0 48 48",
|
|
1990
2014
|
className: "w-10 h-10",
|
|
1991
2015
|
children: [
|
|
1992
|
-
/* @__PURE__ */
|
|
1993
|
-
/* @__PURE__ */
|
|
2016
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2017
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
1994
2018
|
]
|
|
1995
2019
|
}
|
|
1996
2020
|
);
|
|
1997
|
-
var PowerPointIcon = () => /* @__PURE__ */
|
|
2021
|
+
var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
1998
2022
|
"svg",
|
|
1999
2023
|
{
|
|
2000
2024
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2001
2025
|
viewBox: "0 0 48 48",
|
|
2002
2026
|
className: "w-10 h-10",
|
|
2003
2027
|
children: [
|
|
2004
|
-
/* @__PURE__ */
|
|
2028
|
+
/* @__PURE__ */ jsx34(
|
|
2005
2029
|
"path",
|
|
2006
2030
|
{
|
|
2007
2031
|
fill: "#dc4c2c",
|
|
2008
2032
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2009
2033
|
}
|
|
2010
2034
|
),
|
|
2011
|
-
/* @__PURE__ */
|
|
2012
|
-
/* @__PURE__ */
|
|
2013
|
-
/* @__PURE__ */
|
|
2035
|
+
/* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2036
|
+
/* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2037
|
+
/* @__PURE__ */ jsx34(
|
|
2014
2038
|
"path",
|
|
2015
2039
|
{
|
|
2016
2040
|
fill: "#9b341f",
|
|
2017
2041
|
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"
|
|
2018
2042
|
}
|
|
2019
2043
|
),
|
|
2020
|
-
/* @__PURE__ */
|
|
2044
|
+
/* @__PURE__ */ jsx34(
|
|
2021
2045
|
"path",
|
|
2022
2046
|
{
|
|
2023
2047
|
fill: "#fff",
|
|
@@ -2027,16 +2051,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2027
2051
|
]
|
|
2028
2052
|
}
|
|
2029
2053
|
);
|
|
2030
|
-
var TextIcon = () => /* @__PURE__ */
|
|
2054
|
+
var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
2031
2055
|
"svg",
|
|
2032
2056
|
{
|
|
2033
2057
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2034
2058
|
viewBox: "0 0 48 48",
|
|
2035
2059
|
className: "w-10 h-10",
|
|
2036
2060
|
children: [
|
|
2037
|
-
/* @__PURE__ */
|
|
2038
|
-
/* @__PURE__ */
|
|
2039
|
-
/* @__PURE__ */
|
|
2061
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2062
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2063
|
+
/* @__PURE__ */ jsx34(
|
|
2040
2064
|
"path",
|
|
2041
2065
|
{
|
|
2042
2066
|
fill: "#1976D2",
|
|
@@ -2046,7 +2070,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2046
2070
|
]
|
|
2047
2071
|
}
|
|
2048
2072
|
);
|
|
2049
|
-
var ArchiveIcon = () => /* @__PURE__ */
|
|
2073
|
+
var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
2050
2074
|
"svg",
|
|
2051
2075
|
{
|
|
2052
2076
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2056,14 +2080,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2056
2080
|
version: "1.0",
|
|
2057
2081
|
className: "w-10 h-10",
|
|
2058
2082
|
children: [
|
|
2059
|
-
/* @__PURE__ */
|
|
2083
|
+
/* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
|
|
2060
2084
|
"path",
|
|
2061
2085
|
{
|
|
2062
2086
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2063
2087
|
"clip-rule": "nonzero"
|
|
2064
2088
|
}
|
|
2065
2089
|
) }) }),
|
|
2066
|
-
/* @__PURE__ */
|
|
2090
|
+
/* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
|
|
2067
2091
|
"path",
|
|
2068
2092
|
{
|
|
2069
2093
|
fill: "#ff9100",
|
|
@@ -2072,7 +2096,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2072
2096
|
"fill-rule": "nonzero"
|
|
2073
2097
|
}
|
|
2074
2098
|
) }),
|
|
2075
|
-
/* @__PURE__ */
|
|
2099
|
+
/* @__PURE__ */ jsx34(
|
|
2076
2100
|
"path",
|
|
2077
2101
|
{
|
|
2078
2102
|
fill: "#fbe9e7",
|
|
@@ -2081,7 +2105,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2081
2105
|
"fill-rule": "nonzero"
|
|
2082
2106
|
}
|
|
2083
2107
|
),
|
|
2084
|
-
/* @__PURE__ */
|
|
2108
|
+
/* @__PURE__ */ jsx34(
|
|
2085
2109
|
"path",
|
|
2086
2110
|
{
|
|
2087
2111
|
fill: "#ffe0b2",
|
|
@@ -2090,7 +2114,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2090
2114
|
"fill-rule": "nonzero"
|
|
2091
2115
|
}
|
|
2092
2116
|
),
|
|
2093
|
-
/* @__PURE__ */
|
|
2117
|
+
/* @__PURE__ */ jsx34(
|
|
2094
2118
|
"path",
|
|
2095
2119
|
{
|
|
2096
2120
|
fill: "#ffe0b2",
|
|
@@ -2099,7 +2123,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2099
2123
|
"fill-rule": "nonzero"
|
|
2100
2124
|
}
|
|
2101
2125
|
),
|
|
2102
|
-
/* @__PURE__ */
|
|
2126
|
+
/* @__PURE__ */ jsx34(
|
|
2103
2127
|
"path",
|
|
2104
2128
|
{
|
|
2105
2129
|
fill: "#ffe0b2",
|
|
@@ -2174,8 +2198,8 @@ var DocumentNode = (props) => {
|
|
|
2174
2198
|
}
|
|
2175
2199
|
}
|
|
2176
2200
|
if (documents.length === 0) {
|
|
2177
|
-
return /* @__PURE__ */
|
|
2178
|
-
/* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ jsx34(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2202
|
+
/* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
|
|
2179
2203
|
"svg",
|
|
2180
2204
|
{
|
|
2181
2205
|
className: "w-5 h-5",
|
|
@@ -2183,7 +2207,7 @@ var DocumentNode = (props) => {
|
|
|
2183
2207
|
stroke: "currentColor",
|
|
2184
2208
|
viewBox: "0 0 24 24",
|
|
2185
2209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2186
|
-
children: /* @__PURE__ */
|
|
2210
|
+
children: /* @__PURE__ */ jsx34(
|
|
2187
2211
|
"path",
|
|
2188
2212
|
{
|
|
2189
2213
|
strokeLinecap: "round",
|
|
@@ -2194,11 +2218,11 @@ var DocumentNode = (props) => {
|
|
|
2194
2218
|
)
|
|
2195
2219
|
}
|
|
2196
2220
|
) }),
|
|
2197
|
-
/* @__PURE__ */
|
|
2198
|
-
/* @__PURE__ */
|
|
2221
|
+
/* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2222
|
+
/* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2199
2223
|
] }) });
|
|
2200
2224
|
}
|
|
2201
|
-
return /* @__PURE__ */
|
|
2225
|
+
return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
|
|
2202
2226
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2203
2227
|
props.assetBaseUrl,
|
|
2204
2228
|
doc.assetUrl
|
|
@@ -2216,16 +2240,16 @@ var DocumentNode = (props) => {
|
|
|
2216
2240
|
}
|
|
2217
2241
|
}
|
|
2218
2242
|
const { Icon, extLabel } = getFileDetails(documentUrl);
|
|
2219
|
-
return /* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ jsxs13(
|
|
2220
2244
|
"div",
|
|
2221
2245
|
{
|
|
2222
2246
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2223
2247
|
children: [
|
|
2224
|
-
/* @__PURE__ */
|
|
2225
|
-
/* @__PURE__ */
|
|
2226
|
-
/* @__PURE__ */
|
|
2248
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
|
|
2249
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
|
|
2250
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2227
2251
|
] }),
|
|
2228
|
-
/* @__PURE__ */
|
|
2252
|
+
/* @__PURE__ */ jsxs13(
|
|
2229
2253
|
"a",
|
|
2230
2254
|
{
|
|
2231
2255
|
href: documentUrl,
|
|
@@ -2233,7 +2257,7 @@ var DocumentNode = (props) => {
|
|
|
2233
2257
|
rel: "noopener noreferrer",
|
|
2234
2258
|
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",
|
|
2235
2259
|
children: [
|
|
2236
|
-
/* @__PURE__ */
|
|
2260
|
+
/* @__PURE__ */ jsxs13(
|
|
2237
2261
|
"svg",
|
|
2238
2262
|
{
|
|
2239
2263
|
className: "w-4 h-4 mr-2",
|
|
@@ -2241,7 +2265,7 @@ var DocumentNode = (props) => {
|
|
|
2241
2265
|
stroke: "currentColor",
|
|
2242
2266
|
viewBox: "0 0 24 24",
|
|
2243
2267
|
children: [
|
|
2244
|
-
/* @__PURE__ */
|
|
2268
|
+
/* @__PURE__ */ jsx34(
|
|
2245
2269
|
"path",
|
|
2246
2270
|
{
|
|
2247
2271
|
strokeLinecap: "round",
|
|
@@ -2250,7 +2274,7 @@ var DocumentNode = (props) => {
|
|
|
2250
2274
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2251
2275
|
}
|
|
2252
2276
|
),
|
|
2253
|
-
/* @__PURE__ */
|
|
2277
|
+
/* @__PURE__ */ jsx34(
|
|
2254
2278
|
"path",
|
|
2255
2279
|
{
|
|
2256
2280
|
strokeLinecap: "round",
|
|
@@ -2276,13 +2300,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
2276
2300
|
|
|
2277
2301
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2278
2302
|
import dynamic10 from "next/dynamic";
|
|
2279
|
-
import { jsx as
|
|
2303
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2280
2304
|
var IframeClient2 = dynamic10(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
2281
2305
|
ssr: false
|
|
2282
2306
|
});
|
|
2283
2307
|
var GoogleMapNode = (props) => {
|
|
2284
2308
|
let src = props.node.embedUrl;
|
|
2285
|
-
return /* @__PURE__ */
|
|
2309
|
+
return /* @__PURE__ */ jsx35("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx35(
|
|
2286
2310
|
IframeClient2,
|
|
2287
2311
|
{
|
|
2288
2312
|
src,
|
|
@@ -2294,7 +2318,7 @@ var GoogleMapNode = (props) => {
|
|
|
2294
2318
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2295
2319
|
|
|
2296
2320
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2297
|
-
import { jsx as
|
|
2321
|
+
import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2298
2322
|
var Pagination = dynamic11(() => import("./Pagination-T7Z2NXKO.mjs"), { ssr: true });
|
|
2299
2323
|
var DataBindingControls = dynamic11(() => import("./DataBindingControls-ESDLOHNB.mjs"), {
|
|
2300
2324
|
ssr: true
|
|
@@ -2553,7 +2577,7 @@ var DivContainer = async (props) => {
|
|
|
2553
2577
|
response = await serviceClient.get(endpoint);
|
|
2554
2578
|
result = response?.result;
|
|
2555
2579
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2556
|
-
return /* @__PURE__ */
|
|
2580
|
+
return /* @__PURE__ */ jsx36(NoDataFound_default, {});
|
|
2557
2581
|
}
|
|
2558
2582
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2559
2583
|
childCollectionData = getNestedValue6(
|
|
@@ -2573,7 +2597,7 @@ var DivContainer = async (props) => {
|
|
|
2573
2597
|
}
|
|
2574
2598
|
const SelectedNode = NodeTypes2[node.type];
|
|
2575
2599
|
if (!SelectedNode) return null;
|
|
2576
|
-
return /* @__PURE__ */
|
|
2600
|
+
return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
|
|
2577
2601
|
SelectedNode,
|
|
2578
2602
|
{
|
|
2579
2603
|
node,
|
|
@@ -2710,7 +2734,7 @@ var DivContainer = async (props) => {
|
|
|
2710
2734
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2711
2735
|
);
|
|
2712
2736
|
const WrapperComponent = Wrapper;
|
|
2713
|
-
const renderedContainer = /* @__PURE__ */
|
|
2737
|
+
const renderedContainer = /* @__PURE__ */ jsx36(
|
|
2714
2738
|
WrapperComponent,
|
|
2715
2739
|
{
|
|
2716
2740
|
id: guid,
|
|
@@ -2724,11 +2748,11 @@ var DivContainer = async (props) => {
|
|
|
2724
2748
|
item,
|
|
2725
2749
|
idx,
|
|
2726
2750
|
props.href ? void 0 : item?.links?.view
|
|
2727
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2751
|
+
)?.map((child, i) => /* @__PURE__ */ jsx36(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2728
2752
|
)
|
|
2729
2753
|
}
|
|
2730
2754
|
);
|
|
2731
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2755
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
|
|
2732
2756
|
Pagination,
|
|
2733
2757
|
{
|
|
2734
2758
|
path: props.path,
|
|
@@ -2736,15 +2760,15 @@ var DivContainer = async (props) => {
|
|
|
2736
2760
|
dataset: response
|
|
2737
2761
|
}
|
|
2738
2762
|
) : null;
|
|
2739
|
-
return /* @__PURE__ */
|
|
2740
|
-
/* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2764
|
+
/* @__PURE__ */ jsx36(
|
|
2741
2765
|
"style",
|
|
2742
2766
|
{
|
|
2743
2767
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2744
2768
|
}
|
|
2745
2769
|
),
|
|
2746
|
-
showDataBindingControls ? /* @__PURE__ */
|
|
2747
|
-
/* @__PURE__ */
|
|
2770
|
+
showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2771
|
+
/* @__PURE__ */ jsx36(
|
|
2748
2772
|
DataBindingControls,
|
|
2749
2773
|
{
|
|
2750
2774
|
mode: "toolbar",
|
|
@@ -2756,18 +2780,18 @@ var DivContainer = async (props) => {
|
|
|
2756
2780
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
2757
2781
|
}
|
|
2758
2782
|
),
|
|
2759
|
-
/* @__PURE__ */
|
|
2783
|
+
/* @__PURE__ */ jsxs14(
|
|
2760
2784
|
"div",
|
|
2761
2785
|
{
|
|
2762
2786
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
2763
2787
|
children: [
|
|
2764
|
-
/* @__PURE__ */
|
|
2788
|
+
/* @__PURE__ */ jsxs14("div", { className: "min-w-0", children: [
|
|
2765
2789
|
renderedContainer,
|
|
2766
2790
|
paginationControl
|
|
2767
2791
|
] }),
|
|
2768
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */
|
|
2769
|
-
/* @__PURE__ */
|
|
2770
|
-
/* @__PURE__ */
|
|
2792
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2793
|
+
/* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2794
|
+
/* @__PURE__ */ jsx36(
|
|
2771
2795
|
DataBindingControls,
|
|
2772
2796
|
{
|
|
2773
2797
|
mode: "facets",
|
|
@@ -2781,16 +2805,16 @@ var DivContainer = async (props) => {
|
|
|
2781
2805
|
]
|
|
2782
2806
|
}
|
|
2783
2807
|
)
|
|
2784
|
-
] }) : /* @__PURE__ */
|
|
2808
|
+
] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2785
2809
|
renderedContainer,
|
|
2786
|
-
paginationControl && /* @__PURE__ */
|
|
2810
|
+
paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
|
|
2787
2811
|
] })
|
|
2788
2812
|
] });
|
|
2789
2813
|
};
|
|
2790
2814
|
var DivContainer_default = DivContainer;
|
|
2791
2815
|
|
|
2792
2816
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2793
|
-
import { jsx as
|
|
2817
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2794
2818
|
var NodeTypes = {
|
|
2795
2819
|
["paragraph"]: ParagraphNode_default,
|
|
2796
2820
|
["heading"]: HeadingNode_default,
|
|
@@ -2828,14 +2852,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2828
2852
|
}
|
|
2829
2853
|
return true;
|
|
2830
2854
|
};
|
|
2831
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2832
2856
|
{
|
|
2833
2857
|
}
|
|
2834
2858
|
const SelectedNode = NodeTypes[node.type];
|
|
2835
2859
|
if (!shouldRenderNode(node)) {
|
|
2836
2860
|
return null;
|
|
2837
2861
|
}
|
|
2838
|
-
return /* @__PURE__ */
|
|
2862
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
2839
2863
|
SelectedNode,
|
|
2840
2864
|
{
|
|
2841
2865
|
node,
|
|
@@ -2851,7 +2875,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2851
2875
|
device: props.device,
|
|
2852
2876
|
widgetRenderer: props.widgetRenderer
|
|
2853
2877
|
}
|
|
2854
|
-
) }) : /* @__PURE__ */
|
|
2878
|
+
) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
2855
2879
|
SelectedNode,
|
|
2856
2880
|
{
|
|
2857
2881
|
node,
|
|
@@ -2921,7 +2945,7 @@ function EnterAnimationHydrator() {
|
|
|
2921
2945
|
|
|
2922
2946
|
// src/components/Toast.tsx
|
|
2923
2947
|
import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
|
|
2924
|
-
import { Fragment as Fragment7, jsx as
|
|
2948
|
+
import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2925
2949
|
var Toast = () => {
|
|
2926
2950
|
const [showToast, setShowToast] = useState(false);
|
|
2927
2951
|
const [message, setMessage] = useState("");
|
|
@@ -2955,8 +2979,8 @@ var Toast = () => {
|
|
|
2955
2979
|
});
|
|
2956
2980
|
};
|
|
2957
2981
|
}, [closeToast, showMessage]);
|
|
2958
|
-
return /* @__PURE__ */
|
|
2959
|
-
/* @__PURE__ */
|
|
2982
|
+
return /* @__PURE__ */ jsx38(Fragment7, { children: showToast && /* @__PURE__ */ jsx38("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs15("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
2983
|
+
/* @__PURE__ */ jsx38(
|
|
2960
2984
|
"span",
|
|
2961
2985
|
{
|
|
2962
2986
|
className: "font-medium text-inherit text-sm",
|
|
@@ -2964,7 +2988,7 @@ var Toast = () => {
|
|
|
2964
2988
|
children: message
|
|
2965
2989
|
}
|
|
2966
2990
|
),
|
|
2967
|
-
/* @__PURE__ */
|
|
2991
|
+
/* @__PURE__ */ jsx38("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ jsx38(
|
|
2968
2992
|
"svg",
|
|
2969
2993
|
{
|
|
2970
2994
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2972,7 +2996,7 @@ var Toast = () => {
|
|
|
2972
2996
|
fill: "none",
|
|
2973
2997
|
viewBox: "0 0 24 24",
|
|
2974
2998
|
stroke: "currentColor",
|
|
2975
|
-
children: /* @__PURE__ */
|
|
2999
|
+
children: /* @__PURE__ */ jsx38("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
2976
3000
|
}
|
|
2977
3001
|
) })
|
|
2978
3002
|
] }) }) });
|
|
@@ -2982,7 +3006,7 @@ var Toast_default = Toast;
|
|
|
2982
3006
|
// src/components/NavigationTabsV2.tsx
|
|
2983
3007
|
import Link2 from "next/link";
|
|
2984
3008
|
import { usePathname } from "next/navigation";
|
|
2985
|
-
import { jsx as
|
|
3009
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2986
3010
|
function resolveRoutePlaceholders(route, params) {
|
|
2987
3011
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
2988
3012
|
const value = params[key];
|
|
@@ -3007,8 +3031,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
3007
3031
|
isActive: tab.isActive
|
|
3008
3032
|
})) || [];
|
|
3009
3033
|
if (mappedTabs.length === 0) return null;
|
|
3010
|
-
return /* @__PURE__ */
|
|
3011
|
-
return /* @__PURE__ */
|
|
3034
|
+
return /* @__PURE__ */ jsx39("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
3035
|
+
return /* @__PURE__ */ jsx39(Link2, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ jsx39(
|
|
3012
3036
|
"div",
|
|
3013
3037
|
{
|
|
3014
3038
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -3021,51 +3045,51 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
3021
3045
|
var NavigationTabsV2_default = NavigationTabsV2;
|
|
3022
3046
|
|
|
3023
3047
|
// src/components/dataForm/DataList.tsx
|
|
3024
|
-
import
|
|
3048
|
+
import React28, { useEffect as useEffect3, useState as useState2, useCallback as useCallback2, useReducer } from "react";
|
|
3025
3049
|
import { useRouter } from "next/navigation";
|
|
3026
3050
|
|
|
3027
3051
|
// src/components/dataForm/NoContentView.tsx
|
|
3028
|
-
import
|
|
3029
|
-
import { jsx as
|
|
3052
|
+
import React26 from "react";
|
|
3053
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3030
3054
|
var NoContentView = (props) => {
|
|
3031
|
-
return /* @__PURE__ */
|
|
3055
|
+
return /* @__PURE__ */ jsx40(React26.Fragment, { children: props.isDataFound === false && props.children });
|
|
3032
3056
|
};
|
|
3033
3057
|
var NoContentView_default = NoContentView;
|
|
3034
3058
|
|
|
3035
3059
|
// src/components/dataForm/ContentView.tsx
|
|
3036
|
-
import
|
|
3037
|
-
import { jsx as
|
|
3060
|
+
import React27 from "react";
|
|
3061
|
+
import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3038
3062
|
var ContentView = (props) => {
|
|
3039
|
-
return /* @__PURE__ */
|
|
3040
|
-
props.isDataFound == null && /* @__PURE__ */
|
|
3041
|
-
/* @__PURE__ */
|
|
3042
|
-
/* @__PURE__ */
|
|
3043
|
-
/* @__PURE__ */
|
|
3044
|
-
/* @__PURE__ */
|
|
3045
|
-
/* @__PURE__ */
|
|
3063
|
+
return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
|
|
3064
|
+
props.isDataFound == null && /* @__PURE__ */ jsx41("div", { className: "", children: /* @__PURE__ */ jsxs16("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
3065
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center mb-4", children: [
|
|
3066
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
3067
|
+
/* @__PURE__ */ jsxs16("div", { className: "ml-2", children: [
|
|
3068
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
3069
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
3046
3070
|
] })
|
|
3047
3071
|
] }),
|
|
3048
|
-
/* @__PURE__ */
|
|
3049
|
-
/* @__PURE__ */
|
|
3050
|
-
/* @__PURE__ */
|
|
3051
|
-
/* @__PURE__ */
|
|
3052
|
-
/* @__PURE__ */
|
|
3053
|
-
/* @__PURE__ */
|
|
3054
|
-
/* @__PURE__ */
|
|
3072
|
+
/* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
3073
|
+
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3074
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3075
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3076
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3077
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3078
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3055
3079
|
] }),
|
|
3056
|
-
/* @__PURE__ */
|
|
3057
|
-
/* @__PURE__ */
|
|
3058
|
-
/* @__PURE__ */
|
|
3059
|
-
/* @__PURE__ */
|
|
3060
|
-
/* @__PURE__ */
|
|
3061
|
-
/* @__PURE__ */
|
|
3080
|
+
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3081
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3082
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3083
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3084
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3085
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3062
3086
|
] }),
|
|
3063
|
-
/* @__PURE__ */
|
|
3064
|
-
/* @__PURE__ */
|
|
3065
|
-
/* @__PURE__ */
|
|
3066
|
-
/* @__PURE__ */
|
|
3067
|
-
/* @__PURE__ */
|
|
3068
|
-
/* @__PURE__ */
|
|
3087
|
+
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
3088
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3089
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3090
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3091
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3092
|
+
/* @__PURE__ */ jsx41("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3069
3093
|
] })
|
|
3070
3094
|
] })
|
|
3071
3095
|
] }) }),
|
|
@@ -3119,7 +3143,7 @@ function FormReducer(state, action) {
|
|
|
3119
3143
|
var FormReducer_default = FormReducer;
|
|
3120
3144
|
|
|
3121
3145
|
// src/components/dataForm/DataList.tsx
|
|
3122
|
-
import { Fragment as Fragment8, jsx as
|
|
3146
|
+
import { Fragment as Fragment8, jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3123
3147
|
var DataList = (props) => {
|
|
3124
3148
|
const router = useRouter();
|
|
3125
3149
|
let builder = new OdataBuilder(props.path);
|
|
@@ -3157,7 +3181,7 @@ var DataList = (props) => {
|
|
|
3157
3181
|
if (path.includes(".")) {
|
|
3158
3182
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
3159
3183
|
} else if (Array.isArray(obj[path])) {
|
|
3160
|
-
return obj[path].map((item, index) => /* @__PURE__ */
|
|
3184
|
+
return obj[path].map((item, index) => /* @__PURE__ */ jsx42("div", { children: item }, index));
|
|
3161
3185
|
} else {
|
|
3162
3186
|
return obj[path];
|
|
3163
3187
|
}
|
|
@@ -3236,30 +3260,30 @@ var DataList = (props) => {
|
|
|
3236
3260
|
const renderPageNumbers = () => {
|
|
3237
3261
|
if (pages <= 10) {
|
|
3238
3262
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
3239
|
-
(page) => /* @__PURE__ */
|
|
3263
|
+
(page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
|
|
3240
3264
|
Hyperlink,
|
|
3241
3265
|
{
|
|
3242
3266
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3243
3267
|
href: builder.getNewPageUrl(page),
|
|
3244
3268
|
children: page
|
|
3245
3269
|
}
|
|
3246
|
-
) : /* @__PURE__ */
|
|
3270
|
+
) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3247
3271
|
);
|
|
3248
3272
|
} else {
|
|
3249
3273
|
const showFirstPages = activePageNumber <= 5;
|
|
3250
3274
|
const showLastPages = activePageNumber > pages - 5;
|
|
3251
3275
|
if (showFirstPages) {
|
|
3252
|
-
return /* @__PURE__ */
|
|
3253
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */
|
|
3276
|
+
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3277
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
|
|
3254
3278
|
Hyperlink,
|
|
3255
3279
|
{
|
|
3256
3280
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3257
3281
|
href: builder.getNewPageUrl(page),
|
|
3258
3282
|
children: page
|
|
3259
3283
|
}
|
|
3260
|
-
) : /* @__PURE__ */
|
|
3261
|
-
/* @__PURE__ */
|
|
3262
|
-
/* @__PURE__ */
|
|
3284
|
+
) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3285
|
+
/* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
|
|
3286
|
+
/* @__PURE__ */ jsx42(
|
|
3263
3287
|
Hyperlink,
|
|
3264
3288
|
{
|
|
3265
3289
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3267,7 +3291,7 @@ var DataList = (props) => {
|
|
|
3267
3291
|
children: pages - 1
|
|
3268
3292
|
}
|
|
3269
3293
|
),
|
|
3270
|
-
/* @__PURE__ */
|
|
3294
|
+
/* @__PURE__ */ jsx42(
|
|
3271
3295
|
Hyperlink,
|
|
3272
3296
|
{
|
|
3273
3297
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3275,7 +3299,7 @@ var DataList = (props) => {
|
|
|
3275
3299
|
children: pages
|
|
3276
3300
|
}
|
|
3277
3301
|
),
|
|
3278
|
-
/* @__PURE__ */
|
|
3302
|
+
/* @__PURE__ */ jsx42("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
|
|
3279
3303
|
"select",
|
|
3280
3304
|
{
|
|
3281
3305
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3287,18 +3311,18 @@ var DataList = (props) => {
|
|
|
3287
3311
|
}
|
|
3288
3312
|
},
|
|
3289
3313
|
children: [
|
|
3290
|
-
/* @__PURE__ */
|
|
3314
|
+
/* @__PURE__ */ jsx42("option", { className: "", value: "", children: "Jump to" }),
|
|
3291
3315
|
Array.from(
|
|
3292
3316
|
{ length: Math.max(0, pages - 10) },
|
|
3293
3317
|
(_, index) => index + 9
|
|
3294
|
-
).map((page) => /* @__PURE__ */
|
|
3318
|
+
).map((page) => /* @__PURE__ */ jsx42("option", { value: page, children: page }, page))
|
|
3295
3319
|
]
|
|
3296
3320
|
}
|
|
3297
3321
|
) })
|
|
3298
3322
|
] });
|
|
3299
3323
|
} else if (showLastPages) {
|
|
3300
|
-
return /* @__PURE__ */
|
|
3301
|
-
/* @__PURE__ */
|
|
3324
|
+
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3325
|
+
/* @__PURE__ */ jsx42(
|
|
3302
3326
|
Hyperlink,
|
|
3303
3327
|
{
|
|
3304
3328
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3306,7 +3330,7 @@ var DataList = (props) => {
|
|
|
3306
3330
|
children: "1"
|
|
3307
3331
|
}
|
|
3308
3332
|
),
|
|
3309
|
-
/* @__PURE__ */
|
|
3333
|
+
/* @__PURE__ */ jsx42(
|
|
3310
3334
|
Hyperlink,
|
|
3311
3335
|
{
|
|
3312
3336
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3314,21 +3338,21 @@ var DataList = (props) => {
|
|
|
3314
3338
|
children: "2"
|
|
3315
3339
|
}
|
|
3316
3340
|
),
|
|
3317
|
-
/* @__PURE__ */
|
|
3341
|
+
/* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
|
|
3318
3342
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
3319
|
-
(page) => /* @__PURE__ */
|
|
3343
|
+
(page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
|
|
3320
3344
|
Hyperlink,
|
|
3321
3345
|
{
|
|
3322
3346
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3323
3347
|
href: builder.getNewPageUrl(page),
|
|
3324
3348
|
children: page
|
|
3325
3349
|
}
|
|
3326
|
-
) : /* @__PURE__ */
|
|
3350
|
+
) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
3327
3351
|
)
|
|
3328
3352
|
] });
|
|
3329
3353
|
} else {
|
|
3330
|
-
return /* @__PURE__ */
|
|
3331
|
-
/* @__PURE__ */
|
|
3354
|
+
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3355
|
+
/* @__PURE__ */ jsx42(
|
|
3332
3356
|
Hyperlink,
|
|
3333
3357
|
{
|
|
3334
3358
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3336,7 +3360,7 @@ var DataList = (props) => {
|
|
|
3336
3360
|
children: "1"
|
|
3337
3361
|
}
|
|
3338
3362
|
),
|
|
3339
|
-
/* @__PURE__ */
|
|
3363
|
+
/* @__PURE__ */ jsx42(
|
|
3340
3364
|
Hyperlink,
|
|
3341
3365
|
{
|
|
3342
3366
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3344,20 +3368,20 @@ var DataList = (props) => {
|
|
|
3344
3368
|
children: "2"
|
|
3345
3369
|
}
|
|
3346
3370
|
),
|
|
3347
|
-
/* @__PURE__ */
|
|
3371
|
+
/* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
|
|
3348
3372
|
Array.from(
|
|
3349
3373
|
{ length: 5 },
|
|
3350
3374
|
(_, index) => activePageNumber - 2 + index
|
|
3351
|
-
).map((page) => /* @__PURE__ */
|
|
3375
|
+
).map((page) => /* @__PURE__ */ jsx42(React28.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx42(
|
|
3352
3376
|
Hyperlink,
|
|
3353
3377
|
{
|
|
3354
3378
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
3355
3379
|
href: builder.getNewPageUrl(page),
|
|
3356
3380
|
children: page
|
|
3357
3381
|
}
|
|
3358
|
-
) : /* @__PURE__ */
|
|
3359
|
-
/* @__PURE__ */
|
|
3360
|
-
/* @__PURE__ */
|
|
3382
|
+
) : /* @__PURE__ */ jsx42("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
3383
|
+
/* @__PURE__ */ jsx42("span", { className: "px-2 py-1", children: "..." }),
|
|
3384
|
+
/* @__PURE__ */ jsx42(
|
|
3361
3385
|
Hyperlink,
|
|
3362
3386
|
{
|
|
3363
3387
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3365,7 +3389,7 @@ var DataList = (props) => {
|
|
|
3365
3389
|
children: pages - 1
|
|
3366
3390
|
}
|
|
3367
3391
|
),
|
|
3368
|
-
/* @__PURE__ */
|
|
3392
|
+
/* @__PURE__ */ jsx42(
|
|
3369
3393
|
Hyperlink,
|
|
3370
3394
|
{
|
|
3371
3395
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -3373,7 +3397,7 @@ var DataList = (props) => {
|
|
|
3373
3397
|
children: pages
|
|
3374
3398
|
}
|
|
3375
3399
|
),
|
|
3376
|
-
/* @__PURE__ */
|
|
3400
|
+
/* @__PURE__ */ jsx42("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
|
|
3377
3401
|
"select",
|
|
3378
3402
|
{
|
|
3379
3403
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3385,8 +3409,8 @@ var DataList = (props) => {
|
|
|
3385
3409
|
}
|
|
3386
3410
|
},
|
|
3387
3411
|
children: [
|
|
3388
|
-
/* @__PURE__ */
|
|
3389
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ jsx42("option", { value: "", children: "Jump to" }),
|
|
3413
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ jsx42("option", { value: page, children: page }, page))
|
|
3390
3414
|
]
|
|
3391
3415
|
}
|
|
3392
3416
|
) })
|
|
@@ -3394,16 +3418,16 @@ var DataList = (props) => {
|
|
|
3394
3418
|
}
|
|
3395
3419
|
}
|
|
3396
3420
|
};
|
|
3397
|
-
return /* @__PURE__ */
|
|
3398
|
-
/* @__PURE__ */
|
|
3399
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3421
|
+
return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
|
|
3422
|
+
/* @__PURE__ */ jsxs17(ContentView_default, { isDataFound, children: [
|
|
3423
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
|
|
3400
3424
|
"div",
|
|
3401
3425
|
{
|
|
3402
3426
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
3403
3427
|
children: [
|
|
3404
|
-
props.title ? /* @__PURE__ */
|
|
3405
|
-
/* @__PURE__ */
|
|
3406
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3428
|
+
props.title ? /* @__PURE__ */ jsx42("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx42("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx42("div", {}),
|
|
3429
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3430
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx42(
|
|
3407
3431
|
InputControl_default,
|
|
3408
3432
|
{
|
|
3409
3433
|
name: "Search_input",
|
|
@@ -3415,7 +3439,7 @@ var DataList = (props) => {
|
|
|
3415
3439
|
}
|
|
3416
3440
|
}
|
|
3417
3441
|
),
|
|
3418
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3442
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx42(
|
|
3419
3443
|
InputControl_default,
|
|
3420
3444
|
{
|
|
3421
3445
|
name: filter.name,
|
|
@@ -3430,15 +3454,15 @@ var DataList = (props) => {
|
|
|
3430
3454
|
},
|
|
3431
3455
|
filter.name
|
|
3432
3456
|
)),
|
|
3433
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3457
|
+
props.addLinkHref && /* @__PURE__ */ jsxs17(
|
|
3434
3458
|
Hyperlink,
|
|
3435
3459
|
{
|
|
3436
3460
|
className: "gap-1",
|
|
3437
3461
|
linkType: "Primary" /* Solid */,
|
|
3438
3462
|
href: props.addLinkHref,
|
|
3439
3463
|
children: [
|
|
3440
|
-
/* @__PURE__ */
|
|
3441
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ jsx42(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3465
|
+
/* @__PURE__ */ jsx42("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3442
3466
|
]
|
|
3443
3467
|
}
|
|
3444
3468
|
)
|
|
@@ -3446,8 +3470,8 @@ var DataList = (props) => {
|
|
|
3446
3470
|
]
|
|
3447
3471
|
}
|
|
3448
3472
|
),
|
|
3449
|
-
/* @__PURE__ */
|
|
3450
|
-
/* @__PURE__ */
|
|
3473
|
+
/* @__PURE__ */ jsx42("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs17("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
3474
|
+
/* @__PURE__ */ jsx42("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx42("tr", { children: props?.columns?.map((column) => {
|
|
3451
3475
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3452
3476
|
let icon = "chevronUpDown";
|
|
3453
3477
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -3457,18 +3481,18 @@ var DataList = (props) => {
|
|
|
3457
3481
|
icon = "chevronUp";
|
|
3458
3482
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3459
3483
|
}
|
|
3460
|
-
return /* @__PURE__ */
|
|
3484
|
+
return /* @__PURE__ */ jsx42(
|
|
3461
3485
|
"th",
|
|
3462
3486
|
{
|
|
3463
3487
|
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" : ""),
|
|
3464
|
-
children: /* @__PURE__ */
|
|
3488
|
+
children: /* @__PURE__ */ jsx42(
|
|
3465
3489
|
Hyperlink,
|
|
3466
3490
|
{
|
|
3467
3491
|
href: column.enableSorting ? url : void 0,
|
|
3468
3492
|
className: "!text-neutral-contrast ",
|
|
3469
|
-
children: /* @__PURE__ */
|
|
3470
|
-
/* @__PURE__ */
|
|
3471
|
-
column.enableSorting && /* @__PURE__ */
|
|
3493
|
+
children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
|
|
3494
|
+
/* @__PURE__ */ jsx42("span", { className: "text-black", children: column.label }),
|
|
3495
|
+
column.enableSorting && /* @__PURE__ */ jsx42(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3472
3496
|
] })
|
|
3473
3497
|
}
|
|
3474
3498
|
)
|
|
@@ -3476,22 +3500,22 @@ var DataList = (props) => {
|
|
|
3476
3500
|
column.name
|
|
3477
3501
|
);
|
|
3478
3502
|
}) }) }),
|
|
3479
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ jsx42("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
3480
3504
|
let validityClass = "";
|
|
3481
3505
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
3482
3506
|
validityClass = "bg-alert-200";
|
|
3483
3507
|
}
|
|
3484
|
-
return /* @__PURE__ */
|
|
3485
|
-
return /* @__PURE__ */
|
|
3508
|
+
return /* @__PURE__ */ jsx42("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
3509
|
+
return /* @__PURE__ */ jsx42(React28.Fragment, { children: /* @__PURE__ */ jsx42(
|
|
3486
3510
|
"td",
|
|
3487
3511
|
{
|
|
3488
3512
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
3489
|
-
children: column.addhref === true ? /* @__PURE__ */
|
|
3513
|
+
children: column.addhref === true ? /* @__PURE__ */ jsx42(
|
|
3490
3514
|
Hyperlink,
|
|
3491
3515
|
{
|
|
3492
3516
|
className: "",
|
|
3493
3517
|
href: `https://${dataitem[column.name]}`,
|
|
3494
|
-
children: /* @__PURE__ */
|
|
3518
|
+
children: /* @__PURE__ */ jsx42(
|
|
3495
3519
|
ViewControl_default,
|
|
3496
3520
|
{
|
|
3497
3521
|
controlType: column.controlType,
|
|
@@ -3504,11 +3528,11 @@ var DataList = (props) => {
|
|
|
3504
3528
|
}
|
|
3505
3529
|
)
|
|
3506
3530
|
}
|
|
3507
|
-
) : column.showAsLink ? /* @__PURE__ */
|
|
3531
|
+
) : column.showAsLink ? /* @__PURE__ */ jsx42(
|
|
3508
3532
|
Hyperlink,
|
|
3509
3533
|
{
|
|
3510
3534
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
3511
|
-
children: /* @__PURE__ */
|
|
3535
|
+
children: /* @__PURE__ */ jsx42(
|
|
3512
3536
|
ViewControl_default,
|
|
3513
3537
|
{
|
|
3514
3538
|
controlType: column.controlType,
|
|
@@ -3518,7 +3542,7 @@ var DataList = (props) => {
|
|
|
3518
3542
|
}
|
|
3519
3543
|
)
|
|
3520
3544
|
}
|
|
3521
|
-
) : /* @__PURE__ */
|
|
3545
|
+
) : /* @__PURE__ */ jsx42(
|
|
3522
3546
|
ViewControl_default,
|
|
3523
3547
|
{
|
|
3524
3548
|
controlType: column.controlType,
|
|
@@ -3532,10 +3556,10 @@ var DataList = (props) => {
|
|
|
3532
3556
|
}) }, index);
|
|
3533
3557
|
}) })
|
|
3534
3558
|
] }) }),
|
|
3535
|
-
/* @__PURE__ */
|
|
3536
|
-
/* @__PURE__ */
|
|
3537
|
-
/* @__PURE__ */
|
|
3538
|
-
activePageNumber > 1 && /* @__PURE__ */
|
|
3559
|
+
/* @__PURE__ */ jsx42("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between", children: [
|
|
3560
|
+
/* @__PURE__ */ jsx42("div", { className: "text-gray-700", children: label }),
|
|
3561
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex space-x-2 items-center", children: [
|
|
3562
|
+
activePageNumber > 1 && /* @__PURE__ */ jsx42(
|
|
3539
3563
|
Hyperlink,
|
|
3540
3564
|
{
|
|
3541
3565
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3543,9 +3567,9 @@ var DataList = (props) => {
|
|
|
3543
3567
|
children: "Prev"
|
|
3544
3568
|
}
|
|
3545
3569
|
),
|
|
3546
|
-
activePageNumber <= 1 && /* @__PURE__ */
|
|
3570
|
+
activePageNumber <= 1 && /* @__PURE__ */ jsx42("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
|
|
3547
3571
|
renderPageNumbers(),
|
|
3548
|
-
activePageNumber < pages && /* @__PURE__ */
|
|
3572
|
+
activePageNumber < pages && /* @__PURE__ */ jsx42(
|
|
3549
3573
|
Hyperlink,
|
|
3550
3574
|
{
|
|
3551
3575
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -3553,19 +3577,19 @@ var DataList = (props) => {
|
|
|
3553
3577
|
children: "Next"
|
|
3554
3578
|
}
|
|
3555
3579
|
),
|
|
3556
|
-
activePageNumber >= pages && /* @__PURE__ */
|
|
3580
|
+
activePageNumber >= pages && /* @__PURE__ */ jsx42("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
3557
3581
|
] })
|
|
3558
3582
|
] }) })
|
|
3559
3583
|
] }),
|
|
3560
|
-
/* @__PURE__ */
|
|
3561
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3584
|
+
/* @__PURE__ */ jsxs17(NoContentView_default, { isDataFound, children: [
|
|
3585
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
|
|
3562
3586
|
"div",
|
|
3563
3587
|
{
|
|
3564
3588
|
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`,
|
|
3565
3589
|
children: [
|
|
3566
|
-
props.title ? /* @__PURE__ */
|
|
3567
|
-
/* @__PURE__ */
|
|
3568
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */
|
|
3590
|
+
props.title ? /* @__PURE__ */ jsx42("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx42("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx42("div", {}),
|
|
3591
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3592
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx42(
|
|
3569
3593
|
InputControl_default,
|
|
3570
3594
|
{
|
|
3571
3595
|
name: "Search_input",
|
|
@@ -3577,7 +3601,7 @@ var DataList = (props) => {
|
|
|
3577
3601
|
}
|
|
3578
3602
|
}
|
|
3579
3603
|
),
|
|
3580
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */
|
|
3604
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ jsx42(
|
|
3581
3605
|
InputControl_default,
|
|
3582
3606
|
{
|
|
3583
3607
|
name: filter.name,
|
|
@@ -3592,15 +3616,15 @@ var DataList = (props) => {
|
|
|
3592
3616
|
},
|
|
3593
3617
|
filter.name
|
|
3594
3618
|
)),
|
|
3595
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3619
|
+
props.addLinkHref && /* @__PURE__ */ jsxs17(
|
|
3596
3620
|
Hyperlink,
|
|
3597
3621
|
{
|
|
3598
3622
|
className: "gap-1",
|
|
3599
3623
|
linkType: "Primary" /* Solid */,
|
|
3600
3624
|
href: props.addLinkHref,
|
|
3601
3625
|
children: [
|
|
3602
|
-
/* @__PURE__ */
|
|
3603
|
-
/* @__PURE__ */
|
|
3626
|
+
/* @__PURE__ */ jsx42(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
3627
|
+
/* @__PURE__ */ jsx42("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
3604
3628
|
]
|
|
3605
3629
|
}
|
|
3606
3630
|
)
|
|
@@ -3608,8 +3632,8 @@ var DataList = (props) => {
|
|
|
3608
3632
|
]
|
|
3609
3633
|
}
|
|
3610
3634
|
),
|
|
3611
|
-
/* @__PURE__ */
|
|
3612
|
-
/* @__PURE__ */
|
|
3635
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
3636
|
+
/* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx42("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx42("tr", { children: props?.columns?.map((column) => {
|
|
3613
3637
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3614
3638
|
let icon = "chevronUpDown";
|
|
3615
3639
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -3619,18 +3643,18 @@ var DataList = (props) => {
|
|
|
3619
3643
|
icon = "chevronUp";
|
|
3620
3644
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
3621
3645
|
}
|
|
3622
|
-
return /* @__PURE__ */
|
|
3646
|
+
return /* @__PURE__ */ jsx42(
|
|
3623
3647
|
"th",
|
|
3624
3648
|
{
|
|
3625
3649
|
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" : ""),
|
|
3626
|
-
children: /* @__PURE__ */
|
|
3650
|
+
children: /* @__PURE__ */ jsx42(
|
|
3627
3651
|
Hyperlink,
|
|
3628
3652
|
{
|
|
3629
3653
|
href: column.enableSorting ? url : void 0,
|
|
3630
3654
|
className: "text-body-950",
|
|
3631
|
-
children: /* @__PURE__ */
|
|
3632
|
-
/* @__PURE__ */
|
|
3633
|
-
column.enableSorting && /* @__PURE__ */
|
|
3655
|
+
children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
|
|
3656
|
+
/* @__PURE__ */ jsx42("span", { children: column.label }),
|
|
3657
|
+
column.enableSorting && /* @__PURE__ */ jsx42(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3634
3658
|
] })
|
|
3635
3659
|
}
|
|
3636
3660
|
)
|
|
@@ -3638,7 +3662,7 @@ var DataList = (props) => {
|
|
|
3638
3662
|
column.name
|
|
3639
3663
|
);
|
|
3640
3664
|
}) }) }) }) }),
|
|
3641
|
-
/* @__PURE__ */
|
|
3665
|
+
/* @__PURE__ */ jsx42("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
3642
3666
|
] })
|
|
3643
3667
|
] })
|
|
3644
3668
|
] });
|
|
@@ -3646,9 +3670,9 @@ var DataList = (props) => {
|
|
|
3646
3670
|
var DataList_default = DataList;
|
|
3647
3671
|
|
|
3648
3672
|
// src/components/dataForm/DataListRenderer.tsx
|
|
3649
|
-
import
|
|
3673
|
+
import React29, { useState as useState3, useEffect as useEffect4 } from "react";
|
|
3650
3674
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
3651
|
-
import { jsx as
|
|
3675
|
+
import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3652
3676
|
var viewControlMap = {
|
|
3653
3677
|
number: ViewControlTypes.number,
|
|
3654
3678
|
lineText: ViewControlTypes.lineText,
|
|
@@ -3743,13 +3767,13 @@ var DataListRenderer = ({
|
|
|
3743
3767
|
isActive: landingPageUrl === pathname
|
|
3744
3768
|
};
|
|
3745
3769
|
});
|
|
3746
|
-
return /* @__PURE__ */
|
|
3770
|
+
return /* @__PURE__ */ jsxs18(React29.Fragment, { children: [
|
|
3747
3771
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
3748
3772
|
// tabs={resolvedTabs}
|
|
3749
3773
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
3750
3774
|
// />
|
|
3751
|
-
/* @__PURE__ */
|
|
3752
|
-
/* @__PURE__ */
|
|
3775
|
+
/* @__PURE__ */ jsx43(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
3776
|
+
/* @__PURE__ */ jsx43(
|
|
3753
3777
|
DataList_default,
|
|
3754
3778
|
{
|
|
3755
3779
|
addLinkHref,
|
|
@@ -3768,10 +3792,10 @@ var DataListRenderer = ({
|
|
|
3768
3792
|
var DataListRenderer_default = DataListRenderer;
|
|
3769
3793
|
|
|
3770
3794
|
// src/components/dataForm/DataForm.tsx
|
|
3771
|
-
import
|
|
3795
|
+
import React31, { useCallback as useCallback4, useEffect as useEffect5, useReducer as useReducer2, useRef as useRef2 } from "react";
|
|
3772
3796
|
|
|
3773
3797
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3774
|
-
import
|
|
3798
|
+
import React30, { useCallback as useCallback3 } from "react";
|
|
3775
3799
|
|
|
3776
3800
|
// src/components/dataForm/StyleTypes.tsx
|
|
3777
3801
|
var StyleTypes2 = /* @__PURE__ */ ((StyleTypes3) => {
|
|
@@ -3794,7 +3818,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
3794
3818
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
3795
3819
|
|
|
3796
3820
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3797
|
-
import { jsx as
|
|
3821
|
+
import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3798
3822
|
var DataFormChildSection = (props) => {
|
|
3799
3823
|
const { section } = props;
|
|
3800
3824
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -3862,14 +3886,14 @@ var DataFormChildSection = (props) => {
|
|
|
3862
3886
|
childItemsToRender,
|
|
3863
3887
|
allChildItems: childItems
|
|
3864
3888
|
});
|
|
3865
|
-
return /* @__PURE__ */
|
|
3866
|
-
section.sectionTitle && /* @__PURE__ */
|
|
3867
|
-
/* @__PURE__ */
|
|
3868
|
-
/* @__PURE__ */
|
|
3869
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */
|
|
3870
|
-
return /* @__PURE__ */
|
|
3889
|
+
return /* @__PURE__ */ jsx44(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
3890
|
+
section.sectionTitle && /* @__PURE__ */ jsx44("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
3891
|
+
/* @__PURE__ */ jsx44("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs19("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
3892
|
+
/* @__PURE__ */ jsx44("div", { children: /* @__PURE__ */ jsxs19("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
3893
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx44("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
3894
|
+
return /* @__PURE__ */ jsxs19("tr", { className: "", children: [
|
|
3871
3895
|
sectionRow.elements.map((field, index) => {
|
|
3872
|
-
return /* @__PURE__ */
|
|
3896
|
+
return /* @__PURE__ */ jsx44(
|
|
3873
3897
|
"th",
|
|
3874
3898
|
{
|
|
3875
3899
|
className: "py-3 font-normal text-left",
|
|
@@ -3878,21 +3902,21 @@ var DataFormChildSection = (props) => {
|
|
|
3878
3902
|
field.name
|
|
3879
3903
|
);
|
|
3880
3904
|
}),
|
|
3881
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
3905
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
3882
3906
|
] }, sectionRowIndex);
|
|
3883
3907
|
}) }),
|
|
3884
|
-
/* @__PURE__ */
|
|
3908
|
+
/* @__PURE__ */ jsx44("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
3885
3909
|
const { item, originalIndex } = visibleItem;
|
|
3886
3910
|
const rowKey = originalIndex;
|
|
3887
|
-
return /* @__PURE__ */
|
|
3911
|
+
return /* @__PURE__ */ jsx44(React30.Fragment, { children: section.sectionRows.map(
|
|
3888
3912
|
(sectionRow, sectionRowIndex) => {
|
|
3889
|
-
return /* @__PURE__ */
|
|
3913
|
+
return /* @__PURE__ */ jsxs19(
|
|
3890
3914
|
"tr",
|
|
3891
3915
|
{
|
|
3892
3916
|
className: "",
|
|
3893
3917
|
children: [
|
|
3894
3918
|
sectionRow.elements.map((field, index) => {
|
|
3895
|
-
return /* @__PURE__ */
|
|
3919
|
+
return /* @__PURE__ */ jsx44("td", { children: /* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("div", { className: "w-11/12", children: /* @__PURE__ */ jsx44(
|
|
3896
3920
|
InputControl_default,
|
|
3897
3921
|
{
|
|
3898
3922
|
index: filteredIndex,
|
|
@@ -3912,7 +3936,7 @@ var DataFormChildSection = (props) => {
|
|
|
3912
3936
|
}
|
|
3913
3937
|
) }) }) }, field.name);
|
|
3914
3938
|
}),
|
|
3915
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
3939
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("td", { children: /* @__PURE__ */ jsx44(
|
|
3916
3940
|
ClientButton_default,
|
|
3917
3941
|
{
|
|
3918
3942
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -3921,7 +3945,7 @@ var DataFormChildSection = (props) => {
|
|
|
3921
3945
|
},
|
|
3922
3946
|
dataRole: "delete",
|
|
3923
3947
|
tabIndex: -1,
|
|
3924
|
-
children: /* @__PURE__ */
|
|
3948
|
+
children: /* @__PURE__ */ jsx44(
|
|
3925
3949
|
Icon_default,
|
|
3926
3950
|
{
|
|
3927
3951
|
className: "w-4 h-4",
|
|
@@ -3938,7 +3962,7 @@ var DataFormChildSection = (props) => {
|
|
|
3938
3962
|
) }, rowKey);
|
|
3939
3963
|
}) })
|
|
3940
3964
|
] }) }),
|
|
3941
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */
|
|
3965
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ jsx44("div", { className: "ml-1", children: /* @__PURE__ */ jsx44(
|
|
3942
3966
|
ClientButton_default,
|
|
3943
3967
|
{
|
|
3944
3968
|
ButtonType: "Link" /* Link */,
|
|
@@ -3953,7 +3977,7 @@ var DataFormChildSection = (props) => {
|
|
|
3953
3977
|
var DataFormChildSection_default = DataFormChildSection;
|
|
3954
3978
|
|
|
3955
3979
|
// src/components/dataForm/DataForm.tsx
|
|
3956
|
-
import { jsx as
|
|
3980
|
+
import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3957
3981
|
var DataForm = (props) => {
|
|
3958
3982
|
const formRef = useRef2(null);
|
|
3959
3983
|
console.log(props.dataItem, "dssads");
|
|
@@ -4173,19 +4197,19 @@ var DataForm = (props) => {
|
|
|
4173
4197
|
return false;
|
|
4174
4198
|
}
|
|
4175
4199
|
}
|
|
4176
|
-
return /* @__PURE__ */
|
|
4177
|
-
props.title && /* @__PURE__ */
|
|
4200
|
+
return /* @__PURE__ */ jsx45(React31.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
|
|
4201
|
+
props.title && /* @__PURE__ */ jsx45("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ jsxs20(
|
|
4178
4202
|
"div",
|
|
4179
4203
|
{
|
|
4180
4204
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
4181
4205
|
onClick: () => window.history.back(),
|
|
4182
4206
|
children: [
|
|
4183
|
-
/* @__PURE__ */
|
|
4184
|
-
/* @__PURE__ */
|
|
4207
|
+
/* @__PURE__ */ jsx45(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
4208
|
+
/* @__PURE__ */ jsx45("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
4185
4209
|
]
|
|
4186
4210
|
}
|
|
4187
4211
|
) }),
|
|
4188
|
-
/* @__PURE__ */
|
|
4212
|
+
/* @__PURE__ */ jsx45(
|
|
4189
4213
|
"form",
|
|
4190
4214
|
{
|
|
4191
4215
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -4206,8 +4230,8 @@ var DataForm = (props) => {
|
|
|
4206
4230
|
}
|
|
4207
4231
|
}
|
|
4208
4232
|
},
|
|
4209
|
-
children: /* @__PURE__ */
|
|
4210
|
-
return /* @__PURE__ */
|
|
4233
|
+
children: /* @__PURE__ */ jsx45("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
4234
|
+
return /* @__PURE__ */ jsx45(React31.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs20("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
4211
4235
|
section.sectionRows?.map(
|
|
4212
4236
|
(sectionRow, sectionRowIndex) => {
|
|
4213
4237
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -4218,14 +4242,14 @@ var DataForm = (props) => {
|
|
|
4218
4242
|
sectionRow.visible
|
|
4219
4243
|
);
|
|
4220
4244
|
}
|
|
4221
|
-
return /* @__PURE__ */
|
|
4222
|
-
return /* @__PURE__ */
|
|
4245
|
+
return /* @__PURE__ */ jsx45(React31.Fragment, { children: isVisible && /* @__PURE__ */ jsx45("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
4246
|
+
return /* @__PURE__ */ jsxs20(
|
|
4223
4247
|
"div",
|
|
4224
4248
|
{
|
|
4225
4249
|
className: sectionRow.grow ? "grow" : "",
|
|
4226
4250
|
children: [
|
|
4227
|
-
/* @__PURE__ */
|
|
4228
|
-
/* @__PURE__ */
|
|
4251
|
+
/* @__PURE__ */ jsx45("div", { children: field.controlType }),
|
|
4252
|
+
/* @__PURE__ */ jsx45(
|
|
4229
4253
|
InputControl_default,
|
|
4230
4254
|
{
|
|
4231
4255
|
name: field.name,
|
|
@@ -4255,12 +4279,12 @@ var DataForm = (props) => {
|
|
|
4255
4279
|
}) }) }, sectionRowIndex);
|
|
4256
4280
|
}
|
|
4257
4281
|
),
|
|
4258
|
-
/* @__PURE__ */
|
|
4282
|
+
/* @__PURE__ */ jsx45("div", { children: section.childSections?.map(
|
|
4259
4283
|
(childSection, childSectionIndex) => {
|
|
4260
|
-
return /* @__PURE__ */
|
|
4284
|
+
return /* @__PURE__ */ jsx45("div", { children: childSection.name && evalutateCondition(
|
|
4261
4285
|
formState.inputValues,
|
|
4262
4286
|
childSection.visible
|
|
4263
|
-
) && /* @__PURE__ */
|
|
4287
|
+
) && /* @__PURE__ */ jsx45(
|
|
4264
4288
|
DataFormChildSection_default,
|
|
4265
4289
|
{
|
|
4266
4290
|
section: childSection,
|
|
@@ -4275,8 +4299,8 @@ var DataForm = (props) => {
|
|
|
4275
4299
|
}) })
|
|
4276
4300
|
}
|
|
4277
4301
|
),
|
|
4278
|
-
/* @__PURE__ */
|
|
4279
|
-
/* @__PURE__ */
|
|
4302
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
4303
|
+
/* @__PURE__ */ jsx45("div", { children: props.additionalActions && /* @__PURE__ */ jsx45(
|
|
4280
4304
|
Button_default,
|
|
4281
4305
|
{
|
|
4282
4306
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4284,7 +4308,7 @@ var DataForm = (props) => {
|
|
|
4284
4308
|
children: props.additionalActions.title
|
|
4285
4309
|
}
|
|
4286
4310
|
) }),
|
|
4287
|
-
/* @__PURE__ */
|
|
4311
|
+
/* @__PURE__ */ jsx45("div", { children: props.onDelete && /* @__PURE__ */ jsx45(
|
|
4288
4312
|
Button_default,
|
|
4289
4313
|
{
|
|
4290
4314
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -4295,7 +4319,7 @@ var DataForm = (props) => {
|
|
|
4295
4319
|
children: "Delete"
|
|
4296
4320
|
}
|
|
4297
4321
|
) }),
|
|
4298
|
-
/* @__PURE__ */
|
|
4322
|
+
/* @__PURE__ */ jsx45("div", { children: props.onClick && /* @__PURE__ */ jsx45(
|
|
4299
4323
|
Button_default,
|
|
4300
4324
|
{
|
|
4301
4325
|
onValidate,
|
|
@@ -4312,7 +4336,7 @@ var DataForm = (props) => {
|
|
|
4312
4336
|
var DataForm_default = DataForm;
|
|
4313
4337
|
|
|
4314
4338
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
4315
|
-
import { jsx as
|
|
4339
|
+
import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4316
4340
|
function getAction(actions, code) {
|
|
4317
4341
|
return actions?.find((a) => a.actionCode === code);
|
|
4318
4342
|
}
|
|
@@ -4338,9 +4362,9 @@ var DataFormRenderer = ({
|
|
|
4338
4362
|
"Delete"
|
|
4339
4363
|
);
|
|
4340
4364
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
4341
|
-
return /* @__PURE__ */
|
|
4342
|
-
widgetProps && /* @__PURE__ */
|
|
4343
|
-
/* @__PURE__ */
|
|
4365
|
+
return /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
|
|
4366
|
+
widgetProps && /* @__PURE__ */ jsx46(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
4367
|
+
/* @__PURE__ */ jsx46(
|
|
4344
4368
|
DataForm_default,
|
|
4345
4369
|
{
|
|
4346
4370
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|