@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260722104420 → 0.8.1-dev.20260722105036
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.js +41 -41
- package/dist/index.mjs +109 -107
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6897,10 +6897,7 @@ var DivContainer = async (props) => {
|
|
|
6897
6897
|
Wrapper,
|
|
6898
6898
|
{
|
|
6899
6899
|
id: guid,
|
|
6900
|
-
style:
|
|
6901
|
-
...combinedStyles,
|
|
6902
|
-
backgroundColor: "red"
|
|
6903
|
-
},
|
|
6900
|
+
style: combinedStyles,
|
|
6904
6901
|
className: classNames || void 0,
|
|
6905
6902
|
...wrapperProps,
|
|
6906
6903
|
children: dataToRender.map(
|
|
@@ -6964,46 +6961,49 @@ var PageBodyRenderer = (props) => {
|
|
|
6964
6961
|
}
|
|
6965
6962
|
return true;
|
|
6966
6963
|
};
|
|
6967
|
-
return /* @__PURE__ */ (0, import_jsx_runtime73.
|
|
6968
|
-
{
|
|
6969
|
-
|
|
6970
|
-
const SelectedNode = NodeTypes[node.type];
|
|
6971
|
-
if (!shouldRenderNode(node)) {
|
|
6972
|
-
return null;
|
|
6973
|
-
}
|
|
6974
|
-
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6975
|
-
SelectedNode,
|
|
6964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_react53.default.Fragment, { children: [
|
|
6965
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { children: "Thuis isadiasdia testaststtstst" }),
|
|
6966
|
+
rootNode && rootNode?.children?.map((node, index) => {
|
|
6976
6967
|
{
|
|
6977
|
-
node,
|
|
6978
|
-
firstNode: true,
|
|
6979
|
-
routeParameters: props.routeParameters,
|
|
6980
|
-
query: props.query,
|
|
6981
|
-
session: props.session,
|
|
6982
|
-
host: props.host,
|
|
6983
|
-
path: props.path,
|
|
6984
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
6985
|
-
serviceClient: props.serviceClient,
|
|
6986
|
-
assetBaseUrl: props.assetBaseUrl,
|
|
6987
|
-
device: props.device,
|
|
6988
|
-
widgetRenderer: props.widgetRenderer
|
|
6989
6968
|
}
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
node,
|
|
6994
|
-
routeParameters: props.routeParameters,
|
|
6995
|
-
query: props.query,
|
|
6996
|
-
session: props.session,
|
|
6997
|
-
host: props.host,
|
|
6998
|
-
path: props.path,
|
|
6999
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
7000
|
-
serviceClient: props.serviceClient,
|
|
7001
|
-
assetBaseUrl: props.assetBaseUrl,
|
|
7002
|
-
device: props.device,
|
|
7003
|
-
widgetRenderer: props.widgetRenderer
|
|
6969
|
+
const SelectedNode = NodeTypes[node.type];
|
|
6970
|
+
if (!shouldRenderNode(node)) {
|
|
6971
|
+
return null;
|
|
7004
6972
|
}
|
|
7005
|
-
|
|
7006
|
-
|
|
6973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6974
|
+
SelectedNode,
|
|
6975
|
+
{
|
|
6976
|
+
node,
|
|
6977
|
+
firstNode: true,
|
|
6978
|
+
routeParameters: props.routeParameters,
|
|
6979
|
+
query: props.query,
|
|
6980
|
+
session: props.session,
|
|
6981
|
+
host: props.host,
|
|
6982
|
+
path: props.path,
|
|
6983
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
6984
|
+
serviceClient: props.serviceClient,
|
|
6985
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
6986
|
+
device: props.device,
|
|
6987
|
+
widgetRenderer: props.widgetRenderer
|
|
6988
|
+
}
|
|
6989
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6990
|
+
SelectedNode,
|
|
6991
|
+
{
|
|
6992
|
+
node,
|
|
6993
|
+
routeParameters: props.routeParameters,
|
|
6994
|
+
query: props.query,
|
|
6995
|
+
session: props.session,
|
|
6996
|
+
host: props.host,
|
|
6997
|
+
path: props.path,
|
|
6998
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
6999
|
+
serviceClient: props.serviceClient,
|
|
7000
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
7001
|
+
device: props.device,
|
|
7002
|
+
widgetRenderer: props.widgetRenderer
|
|
7003
|
+
}
|
|
7004
|
+
) }) }) }, index);
|
|
7005
|
+
})
|
|
7006
|
+
] });
|
|
7007
7007
|
};
|
|
7008
7008
|
var PageBodyRenderer_default = PageBodyRenderer;
|
|
7009
7009
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
OdataBuilder
|
|
3
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X3YSXTD2.mjs";
|
|
4
6
|
import {
|
|
5
7
|
AssetUtility_default,
|
|
6
8
|
BooleanSelect_default,
|
|
@@ -17,22 +19,22 @@ import {
|
|
|
17
19
|
PhoneInput_default,
|
|
18
20
|
SelectWithSearchInput_default,
|
|
19
21
|
TimeInput_default
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7ZFZLN56.mjs";
|
|
21
23
|
import {
|
|
22
24
|
Constants,
|
|
23
25
|
Hyperlink,
|
|
24
26
|
Icon_default,
|
|
25
27
|
InputControlType_default
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5GHPW7SJ.mjs";
|
|
27
29
|
import {
|
|
28
30
|
ServiceClient_default
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WEV5U33G.mjs";
|
|
30
32
|
import {
|
|
31
33
|
Button_default,
|
|
32
34
|
ClientButton_default,
|
|
33
35
|
ToastService_default
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-23WJE3YB.mjs";
|
|
37
|
+
import "./chunk-IMNQO57B.mjs";
|
|
36
38
|
|
|
37
39
|
// src/components/controls/view/ViewControl.tsx
|
|
38
40
|
import React13 from "react";
|
|
@@ -76,7 +78,7 @@ var NumberView_default = NumberView;
|
|
|
76
78
|
|
|
77
79
|
// src/components/controls/view/DateView.tsx
|
|
78
80
|
import dynamic from "next/dynamic";
|
|
79
|
-
var DateView = dynamic(() => import("./DateViewClient-
|
|
81
|
+
var DateView = dynamic(() => import("./DateViewClient-JBS5UXMD.mjs"), {
|
|
80
82
|
ssr: false
|
|
81
83
|
});
|
|
82
84
|
var DateView_default = DateView;
|
|
@@ -131,7 +133,7 @@ import React3 from "react";
|
|
|
131
133
|
// src/components/DeviceAssetSelector.tsx
|
|
132
134
|
import dynamic2 from "next/dynamic";
|
|
133
135
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
134
|
-
var HlsPlayer = dynamic2(() => import("./HlsPlayer-
|
|
136
|
+
var HlsPlayer = dynamic2(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
135
137
|
var FORMAT_CLASSES = {
|
|
136
138
|
center: "justify-center",
|
|
137
139
|
left: "justify-start",
|
|
@@ -366,7 +368,7 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
|
366
368
|
|
|
367
369
|
// src/components/controls/view/DateTimeVew.tsx
|
|
368
370
|
import dynamic3 from "next/dynamic";
|
|
369
|
-
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-
|
|
371
|
+
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-M7V35KUW.mjs"), {
|
|
370
372
|
ssr: false
|
|
371
373
|
});
|
|
372
374
|
var DateTimeVew_default = DateTimeView;
|
|
@@ -407,7 +409,7 @@ var ViewControl_default = ViewControl;
|
|
|
407
409
|
|
|
408
410
|
// src/components/controls/edit/InputControl.tsx
|
|
409
411
|
import dynamic4 from "next/dynamic";
|
|
410
|
-
var InputControl = dynamic4(() => import("./InputControlClient-
|
|
412
|
+
var InputControl = dynamic4(() => import("./InputControlClient-7NS4QUWO.mjs"), {
|
|
411
413
|
ssr: false
|
|
412
414
|
});
|
|
413
415
|
var InputControl_default = InputControl;
|
|
@@ -503,7 +505,7 @@ import React14 from "react";
|
|
|
503
505
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
504
506
|
import dynamic5 from "next/dynamic";
|
|
505
507
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
506
|
-
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-
|
|
508
|
+
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
507
509
|
var getNestedValue = (obj, path) => {
|
|
508
510
|
if (!obj || !path) return void 0;
|
|
509
511
|
return path.split(".").reduce((current, key) => {
|
|
@@ -611,7 +613,7 @@ var ImageNode_default = ImageNode;
|
|
|
611
613
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
612
614
|
import dynamic6 from "next/dynamic";
|
|
613
615
|
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
614
|
-
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-
|
|
616
|
+
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-AOEDCCL7.mjs"), {
|
|
615
617
|
ssr: false
|
|
616
618
|
});
|
|
617
619
|
function getNestedValue2(obj, path) {
|
|
@@ -1046,7 +1048,7 @@ var QuoteNode_default = QuoteNode;
|
|
|
1046
1048
|
import React20 from "react";
|
|
1047
1049
|
import dynamic7 from "next/dynamic";
|
|
1048
1050
|
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1049
|
-
var CopyButton = dynamic7(() => import("./CopyButton-
|
|
1051
|
+
var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1050
1052
|
ssr: false,
|
|
1051
1053
|
// optional: fallback UI while loading
|
|
1052
1054
|
loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
@@ -1189,7 +1191,7 @@ import React22 from "react";
|
|
|
1189
1191
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1190
1192
|
import dynamic8 from "next/dynamic";
|
|
1191
1193
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1192
|
-
var IframeClient = dynamic8(() => import("./IframeClient-
|
|
1194
|
+
var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
|
|
1193
1195
|
ssr: false
|
|
1194
1196
|
});
|
|
1195
1197
|
var EmbedNode = (props) => {
|
|
@@ -1425,7 +1427,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
1425
1427
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1426
1428
|
import dynamic9 from "next/dynamic";
|
|
1427
1429
|
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1428
|
-
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-
|
|
1430
|
+
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
1429
1431
|
var deviceToMediaQuery = (device) => {
|
|
1430
1432
|
switch (device) {
|
|
1431
1433
|
case "lg":
|
|
@@ -2240,8 +2242,8 @@ var DocumentNode_default = DocumentNode;
|
|
|
2240
2242
|
|
|
2241
2243
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2242
2244
|
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2243
|
-
var Pagination = dynamic10(() => import("./Pagination-
|
|
2244
|
-
var Slider = dynamic10(() => import("./Slider-
|
|
2245
|
+
var Pagination = dynamic10(() => import("./Pagination-T7YN2OMV.mjs"), { ssr: true });
|
|
2246
|
+
var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
|
|
2245
2247
|
ssr: false
|
|
2246
2248
|
});
|
|
2247
2249
|
function toCamelCase(str) {
|
|
@@ -2658,10 +2660,7 @@ var DivContainer = async (props) => {
|
|
|
2658
2660
|
Wrapper,
|
|
2659
2661
|
{
|
|
2660
2662
|
id: guid,
|
|
2661
|
-
style:
|
|
2662
|
-
...combinedStyles,
|
|
2663
|
-
backgroundColor: "red"
|
|
2664
|
-
},
|
|
2663
|
+
style: combinedStyles,
|
|
2665
2664
|
className: classNames || void 0,
|
|
2666
2665
|
...wrapperProps,
|
|
2667
2666
|
children: dataToRender.map(
|
|
@@ -2688,7 +2687,7 @@ var DivContainer = async (props) => {
|
|
|
2688
2687
|
var DivContainer_default = DivContainer;
|
|
2689
2688
|
|
|
2690
2689
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2691
|
-
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2690
|
+
import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2692
2691
|
var NodeTypes = {
|
|
2693
2692
|
["paragraph"]: ParagraphNode_default,
|
|
2694
2693
|
["heading"]: HeadingNode_default,
|
|
@@ -2725,46 +2724,49 @@ var PageBodyRenderer = (props) => {
|
|
|
2725
2724
|
}
|
|
2726
2725
|
return true;
|
|
2727
2726
|
};
|
|
2728
|
-
return /* @__PURE__ */
|
|
2729
|
-
{
|
|
2730
|
-
|
|
2731
|
-
const SelectedNode = NodeTypes[node.type];
|
|
2732
|
-
if (!shouldRenderNode(node)) {
|
|
2733
|
-
return null;
|
|
2734
|
-
}
|
|
2735
|
-
return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2736
|
-
SelectedNode,
|
|
2727
|
+
return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2728
|
+
/* @__PURE__ */ jsx35("div", { children: "Thuis isadiasdia testaststtstst" }),
|
|
2729
|
+
rootNode && rootNode?.children?.map((node, index) => {
|
|
2737
2730
|
{
|
|
2738
|
-
node,
|
|
2739
|
-
firstNode: true,
|
|
2740
|
-
routeParameters: props.routeParameters,
|
|
2741
|
-
query: props.query,
|
|
2742
|
-
session: props.session,
|
|
2743
|
-
host: props.host,
|
|
2744
|
-
path: props.path,
|
|
2745
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
2746
|
-
serviceClient: props.serviceClient,
|
|
2747
|
-
assetBaseUrl: props.assetBaseUrl,
|
|
2748
|
-
device: props.device,
|
|
2749
|
-
widgetRenderer: props.widgetRenderer
|
|
2750
2731
|
}
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
node,
|
|
2755
|
-
routeParameters: props.routeParameters,
|
|
2756
|
-
query: props.query,
|
|
2757
|
-
session: props.session,
|
|
2758
|
-
host: props.host,
|
|
2759
|
-
path: props.path,
|
|
2760
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
2761
|
-
serviceClient: props.serviceClient,
|
|
2762
|
-
assetBaseUrl: props.assetBaseUrl,
|
|
2763
|
-
device: props.device,
|
|
2764
|
-
widgetRenderer: props.widgetRenderer
|
|
2732
|
+
const SelectedNode = NodeTypes[node.type];
|
|
2733
|
+
if (!shouldRenderNode(node)) {
|
|
2734
|
+
return null;
|
|
2765
2735
|
}
|
|
2766
|
-
|
|
2767
|
-
|
|
2736
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2737
|
+
SelectedNode,
|
|
2738
|
+
{
|
|
2739
|
+
node,
|
|
2740
|
+
firstNode: true,
|
|
2741
|
+
routeParameters: props.routeParameters,
|
|
2742
|
+
query: props.query,
|
|
2743
|
+
session: props.session,
|
|
2744
|
+
host: props.host,
|
|
2745
|
+
path: props.path,
|
|
2746
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
2747
|
+
serviceClient: props.serviceClient,
|
|
2748
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
2749
|
+
device: props.device,
|
|
2750
|
+
widgetRenderer: props.widgetRenderer
|
|
2751
|
+
}
|
|
2752
|
+
) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2753
|
+
SelectedNode,
|
|
2754
|
+
{
|
|
2755
|
+
node,
|
|
2756
|
+
routeParameters: props.routeParameters,
|
|
2757
|
+
query: props.query,
|
|
2758
|
+
session: props.session,
|
|
2759
|
+
host: props.host,
|
|
2760
|
+
path: props.path,
|
|
2761
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
2762
|
+
serviceClient: props.serviceClient,
|
|
2763
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
2764
|
+
device: props.device,
|
|
2765
|
+
widgetRenderer: props.widgetRenderer
|
|
2766
|
+
}
|
|
2767
|
+
) }) }) }, index);
|
|
2768
|
+
})
|
|
2769
|
+
] });
|
|
2768
2770
|
};
|
|
2769
2771
|
var PageBodyRenderer_default = PageBodyRenderer;
|
|
2770
2772
|
|
|
@@ -2818,7 +2820,7 @@ function EnterAnimationHydrator() {
|
|
|
2818
2820
|
|
|
2819
2821
|
// src/components/Toast.tsx
|
|
2820
2822
|
import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
|
|
2821
|
-
import { Fragment as Fragment7, jsx as jsx36, jsxs as
|
|
2823
|
+
import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2822
2824
|
var Toast = () => {
|
|
2823
2825
|
const [showToast, setShowToast] = useState(false);
|
|
2824
2826
|
const [message, setMessage] = useState("");
|
|
@@ -2852,7 +2854,7 @@ var Toast = () => {
|
|
|
2852
2854
|
});
|
|
2853
2855
|
};
|
|
2854
2856
|
}, [closeToast, showMessage]);
|
|
2855
|
-
return /* @__PURE__ */ jsx36(Fragment7, { children: showToast && /* @__PURE__ */ jsx36("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__ */
|
|
2857
|
+
return /* @__PURE__ */ jsx36(Fragment7, { children: showToast && /* @__PURE__ */ jsx36("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: [
|
|
2856
2858
|
/* @__PURE__ */ jsx36(
|
|
2857
2859
|
"span",
|
|
2858
2860
|
{
|
|
@@ -2931,33 +2933,33 @@ var NoContentView_default = NoContentView;
|
|
|
2931
2933
|
|
|
2932
2934
|
// src/components/dataForm/ContentView.tsx
|
|
2933
2935
|
import React26 from "react";
|
|
2934
|
-
import { jsx as jsx39, jsxs as
|
|
2936
|
+
import { jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2935
2937
|
var ContentView = (props) => {
|
|
2936
|
-
return /* @__PURE__ */
|
|
2937
|
-
props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */
|
|
2938
|
-
/* @__PURE__ */
|
|
2938
|
+
return /* @__PURE__ */ jsxs16(React26.Fragment, { children: [
|
|
2939
|
+
props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */ jsxs16("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
2940
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center mb-4", children: [
|
|
2939
2941
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
2940
|
-
/* @__PURE__ */
|
|
2942
|
+
/* @__PURE__ */ jsxs16("div", { className: "ml-2", children: [
|
|
2941
2943
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
2942
2944
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
2943
2945
|
] })
|
|
2944
2946
|
] }),
|
|
2945
|
-
/* @__PURE__ */
|
|
2946
|
-
/* @__PURE__ */
|
|
2947
|
+
/* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
2948
|
+
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
2947
2949
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2948
2950
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2949
2951
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2950
2952
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2951
2953
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2952
2954
|
] }),
|
|
2953
|
-
/* @__PURE__ */
|
|
2955
|
+
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
2954
2956
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2955
2957
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2956
2958
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2957
2959
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2958
2960
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2959
2961
|
] }),
|
|
2960
|
-
/* @__PURE__ */
|
|
2962
|
+
/* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
|
|
2961
2963
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2962
2964
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2963
2965
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
@@ -3016,7 +3018,7 @@ function FormReducer(state, action) {
|
|
|
3016
3018
|
var FormReducer_default = FormReducer;
|
|
3017
3019
|
|
|
3018
3020
|
// src/components/dataForm/DataList.tsx
|
|
3019
|
-
import { Fragment as Fragment8, jsx as jsx40, jsxs as
|
|
3021
|
+
import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3020
3022
|
var DataList = (props) => {
|
|
3021
3023
|
const router = useRouter();
|
|
3022
3024
|
let builder = new OdataBuilder(props.path);
|
|
@@ -3146,7 +3148,7 @@ var DataList = (props) => {
|
|
|
3146
3148
|
const showFirstPages = activePageNumber <= 5;
|
|
3147
3149
|
const showLastPages = activePageNumber > pages - 5;
|
|
3148
3150
|
if (showFirstPages) {
|
|
3149
|
-
return /* @__PURE__ */
|
|
3151
|
+
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3150
3152
|
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
|
|
3151
3153
|
Hyperlink,
|
|
3152
3154
|
{
|
|
@@ -3172,7 +3174,7 @@ var DataList = (props) => {
|
|
|
3172
3174
|
children: pages
|
|
3173
3175
|
}
|
|
3174
3176
|
),
|
|
3175
|
-
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
|
|
3176
3178
|
"select",
|
|
3177
3179
|
{
|
|
3178
3180
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3194,7 +3196,7 @@ var DataList = (props) => {
|
|
|
3194
3196
|
) })
|
|
3195
3197
|
] });
|
|
3196
3198
|
} else if (showLastPages) {
|
|
3197
|
-
return /* @__PURE__ */
|
|
3199
|
+
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3198
3200
|
/* @__PURE__ */ jsx40(
|
|
3199
3201
|
Hyperlink,
|
|
3200
3202
|
{
|
|
@@ -3224,7 +3226,7 @@ var DataList = (props) => {
|
|
|
3224
3226
|
)
|
|
3225
3227
|
] });
|
|
3226
3228
|
} else {
|
|
3227
|
-
return /* @__PURE__ */
|
|
3229
|
+
return /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
3228
3230
|
/* @__PURE__ */ jsx40(
|
|
3229
3231
|
Hyperlink,
|
|
3230
3232
|
{
|
|
@@ -3270,7 +3272,7 @@ var DataList = (props) => {
|
|
|
3270
3272
|
children: pages
|
|
3271
3273
|
}
|
|
3272
3274
|
),
|
|
3273
|
-
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */
|
|
3275
|
+
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
|
|
3274
3276
|
"select",
|
|
3275
3277
|
{
|
|
3276
3278
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3291,15 +3293,15 @@ var DataList = (props) => {
|
|
|
3291
3293
|
}
|
|
3292
3294
|
}
|
|
3293
3295
|
};
|
|
3294
|
-
return /* @__PURE__ */
|
|
3295
|
-
/* @__PURE__ */
|
|
3296
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3296
|
+
return /* @__PURE__ */ jsxs17(React27.Fragment, { children: [
|
|
3297
|
+
/* @__PURE__ */ jsxs17(ContentView_default, { isDataFound, children: [
|
|
3298
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
|
|
3297
3299
|
"div",
|
|
3298
3300
|
{
|
|
3299
3301
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
3300
3302
|
children: [
|
|
3301
3303
|
props.title ? /* @__PURE__ */ jsx40("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx40("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx40("div", {}),
|
|
3302
|
-
/* @__PURE__ */
|
|
3304
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3303
3305
|
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
|
|
3304
3306
|
InputControl_default,
|
|
3305
3307
|
{
|
|
@@ -3327,7 +3329,7 @@ var DataList = (props) => {
|
|
|
3327
3329
|
},
|
|
3328
3330
|
filter.name
|
|
3329
3331
|
)),
|
|
3330
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3332
|
+
props.addLinkHref && /* @__PURE__ */ jsxs17(
|
|
3331
3333
|
Hyperlink,
|
|
3332
3334
|
{
|
|
3333
3335
|
className: "gap-1",
|
|
@@ -3343,7 +3345,7 @@ var DataList = (props) => {
|
|
|
3343
3345
|
]
|
|
3344
3346
|
}
|
|
3345
3347
|
),
|
|
3346
|
-
/* @__PURE__ */ jsx40("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */
|
|
3348
|
+
/* @__PURE__ */ jsx40("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: [
|
|
3347
3349
|
/* @__PURE__ */ jsx40("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
|
|
3348
3350
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3349
3351
|
let icon = "chevronUpDown";
|
|
@@ -3363,7 +3365,7 @@ var DataList = (props) => {
|
|
|
3363
3365
|
{
|
|
3364
3366
|
href: column.enableSorting ? url : void 0,
|
|
3365
3367
|
className: "!text-neutral-contrast ",
|
|
3366
|
-
children: /* @__PURE__ */
|
|
3368
|
+
children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
|
|
3367
3369
|
/* @__PURE__ */ jsx40("span", { className: "text-black", children: column.label }),
|
|
3368
3370
|
column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3369
3371
|
] })
|
|
@@ -3431,9 +3433,9 @@ var DataList = (props) => {
|
|
|
3431
3433
|
}) }, index);
|
|
3432
3434
|
}) })
|
|
3433
3435
|
] }) }),
|
|
3434
|
-
/* @__PURE__ */ jsx40("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */
|
|
3436
|
+
/* @__PURE__ */ jsx40("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: [
|
|
3435
3437
|
/* @__PURE__ */ jsx40("div", { className: "text-gray-700", children: label }),
|
|
3436
|
-
/* @__PURE__ */
|
|
3438
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex space-x-2 items-center", children: [
|
|
3437
3439
|
activePageNumber > 1 && /* @__PURE__ */ jsx40(
|
|
3438
3440
|
Hyperlink,
|
|
3439
3441
|
{
|
|
@@ -3456,14 +3458,14 @@ var DataList = (props) => {
|
|
|
3456
3458
|
] })
|
|
3457
3459
|
] }) })
|
|
3458
3460
|
] }),
|
|
3459
|
-
/* @__PURE__ */
|
|
3460
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3461
|
+
/* @__PURE__ */ jsxs17(NoContentView_default, { isDataFound, children: [
|
|
3462
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
|
|
3461
3463
|
"div",
|
|
3462
3464
|
{
|
|
3463
3465
|
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`,
|
|
3464
3466
|
children: [
|
|
3465
3467
|
props.title ? /* @__PURE__ */ jsx40("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx40("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx40("div", {}),
|
|
3466
|
-
/* @__PURE__ */
|
|
3468
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3467
3469
|
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
|
|
3468
3470
|
InputControl_default,
|
|
3469
3471
|
{
|
|
@@ -3491,7 +3493,7 @@ var DataList = (props) => {
|
|
|
3491
3493
|
},
|
|
3492
3494
|
filter.name
|
|
3493
3495
|
)),
|
|
3494
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3496
|
+
props.addLinkHref && /* @__PURE__ */ jsxs17(
|
|
3495
3497
|
Hyperlink,
|
|
3496
3498
|
{
|
|
3497
3499
|
className: "gap-1",
|
|
@@ -3507,7 +3509,7 @@ var DataList = (props) => {
|
|
|
3507
3509
|
]
|
|
3508
3510
|
}
|
|
3509
3511
|
),
|
|
3510
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
3511
3513
|
/* @__PURE__ */ jsx40("div", { children: /* @__PURE__ */ jsx40("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx40("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
|
|
3512
3514
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3513
3515
|
let icon = "chevronUpDown";
|
|
@@ -3527,7 +3529,7 @@ var DataList = (props) => {
|
|
|
3527
3529
|
{
|
|
3528
3530
|
href: column.enableSorting ? url : void 0,
|
|
3529
3531
|
className: "text-body-950",
|
|
3530
|
-
children: /* @__PURE__ */
|
|
3532
|
+
children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
|
|
3531
3533
|
/* @__PURE__ */ jsx40("span", { children: column.label }),
|
|
3532
3534
|
column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3533
3535
|
] })
|
|
@@ -3547,7 +3549,7 @@ var DataList_default = DataList;
|
|
|
3547
3549
|
// src/components/dataForm/DataListRenderer.tsx
|
|
3548
3550
|
import React28, { useState as useState3, useEffect as useEffect4 } from "react";
|
|
3549
3551
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
3550
|
-
import { jsx as jsx41, jsxs as
|
|
3552
|
+
import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3551
3553
|
var viewControlMap = {
|
|
3552
3554
|
number: ViewControlTypes.number,
|
|
3553
3555
|
lineText: ViewControlTypes.lineText,
|
|
@@ -3642,7 +3644,7 @@ var DataListRenderer = ({
|
|
|
3642
3644
|
isActive: landingPageUrl === pathname
|
|
3643
3645
|
};
|
|
3644
3646
|
});
|
|
3645
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsxs18(React28.Fragment, { children: [
|
|
3646
3648
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
3647
3649
|
// tabs={resolvedTabs}
|
|
3648
3650
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
@@ -3693,7 +3695,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
3693
3695
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
3694
3696
|
|
|
3695
3697
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3696
|
-
import { jsx as jsx42, jsxs as
|
|
3698
|
+
import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3697
3699
|
var DataFormChildSection = (props) => {
|
|
3698
3700
|
const { section } = props;
|
|
3699
3701
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -3761,12 +3763,12 @@ var DataFormChildSection = (props) => {
|
|
|
3761
3763
|
childItemsToRender,
|
|
3762
3764
|
allChildItems: childItems
|
|
3763
3765
|
});
|
|
3764
|
-
return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */
|
|
3766
|
+
return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
3765
3767
|
section.sectionTitle && /* @__PURE__ */ jsx42("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
3766
|
-
/* @__PURE__ */ jsx42("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */
|
|
3767
|
-
/* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */
|
|
3768
|
+
/* @__PURE__ */ jsx42("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: [
|
|
3769
|
+
/* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsxs19("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
3768
3770
|
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx42("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
3769
|
-
return /* @__PURE__ */
|
|
3771
|
+
return /* @__PURE__ */ jsxs19("tr", { className: "", children: [
|
|
3770
3772
|
sectionRow.elements.map((field, index) => {
|
|
3771
3773
|
return /* @__PURE__ */ jsx42(
|
|
3772
3774
|
"th",
|
|
@@ -3785,7 +3787,7 @@ var DataFormChildSection = (props) => {
|
|
|
3785
3787
|
const rowKey = originalIndex;
|
|
3786
3788
|
return /* @__PURE__ */ jsx42(React29.Fragment, { children: section.sectionRows.map(
|
|
3787
3789
|
(sectionRow, sectionRowIndex) => {
|
|
3788
|
-
return /* @__PURE__ */
|
|
3790
|
+
return /* @__PURE__ */ jsxs19(
|
|
3789
3791
|
"tr",
|
|
3790
3792
|
{
|
|
3791
3793
|
className: "",
|
|
@@ -3852,7 +3854,7 @@ var DataFormChildSection = (props) => {
|
|
|
3852
3854
|
var DataFormChildSection_default = DataFormChildSection;
|
|
3853
3855
|
|
|
3854
3856
|
// src/components/dataForm/DataForm.tsx
|
|
3855
|
-
import { jsx as jsx43, jsxs as
|
|
3857
|
+
import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3856
3858
|
var DataForm = (props) => {
|
|
3857
3859
|
const formRef = useRef2(null);
|
|
3858
3860
|
console.log(props.dataItem, "dssads");
|
|
@@ -4072,8 +4074,8 @@ var DataForm = (props) => {
|
|
|
4072
4074
|
return false;
|
|
4073
4075
|
}
|
|
4074
4076
|
}
|
|
4075
|
-
return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */
|
|
4076
|
-
props.title && /* @__PURE__ */ jsx43("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__ */
|
|
4077
|
+
return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
|
|
4078
|
+
props.title && /* @__PURE__ */ jsx43("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(
|
|
4077
4079
|
"div",
|
|
4078
4080
|
{
|
|
4079
4081
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
@@ -4106,7 +4108,7 @@ var DataForm = (props) => {
|
|
|
4106
4108
|
}
|
|
4107
4109
|
},
|
|
4108
4110
|
children: /* @__PURE__ */ jsx43("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
4109
|
-
return /* @__PURE__ */ jsx43(React30.Fragment, { children: !section.isChildSection && /* @__PURE__ */
|
|
4111
|
+
return /* @__PURE__ */ jsx43(React30.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs20("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
4110
4112
|
section.sectionRows?.map(
|
|
4111
4113
|
(sectionRow, sectionRowIndex) => {
|
|
4112
4114
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -4118,7 +4120,7 @@ var DataForm = (props) => {
|
|
|
4118
4120
|
);
|
|
4119
4121
|
}
|
|
4120
4122
|
return /* @__PURE__ */ jsx43(React30.Fragment, { children: isVisible && /* @__PURE__ */ jsx43("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
4121
|
-
return /* @__PURE__ */
|
|
4123
|
+
return /* @__PURE__ */ jsxs20(
|
|
4122
4124
|
"div",
|
|
4123
4125
|
{
|
|
4124
4126
|
className: sectionRow.grow ? "grow" : "",
|
|
@@ -4174,7 +4176,7 @@ var DataForm = (props) => {
|
|
|
4174
4176
|
}) })
|
|
4175
4177
|
}
|
|
4176
4178
|
),
|
|
4177
|
-
/* @__PURE__ */
|
|
4179
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
4178
4180
|
/* @__PURE__ */ jsx43("div", { children: props.additionalActions && /* @__PURE__ */ jsx43(
|
|
4179
4181
|
Button_default,
|
|
4180
4182
|
{
|
|
@@ -4211,7 +4213,7 @@ var DataForm = (props) => {
|
|
|
4211
4213
|
var DataForm_default = DataForm;
|
|
4212
4214
|
|
|
4213
4215
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
4214
|
-
import { jsx as jsx44, jsxs as
|
|
4216
|
+
import { jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4215
4217
|
function getAction(actions, code) {
|
|
4216
4218
|
return actions?.find((a) => a.actionCode === code);
|
|
4217
4219
|
}
|
|
@@ -4237,7 +4239,7 @@ var DataFormRenderer = ({
|
|
|
4237
4239
|
"Delete"
|
|
4238
4240
|
);
|
|
4239
4241
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
4240
|
-
return /* @__PURE__ */
|
|
4242
|
+
return /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
|
|
4241
4243
|
widgetProps && /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
4242
4244
|
/* @__PURE__ */ jsx44(
|
|
4243
4245
|
DataForm_default,
|