@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260722112436 → 0.8.1-dev.20260723123821
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/{LinkNodeButton-U7T2NP22.mjs → LinkNodeButton-KZRNRJRI.mjs} +139 -46
- package/dist/index.js +39 -40
- package/dist/index.mjs +105 -106
- package/dist/server.js +202 -82
- package/dist/server.mjs +35 -13
- package/package.json +6 -5
- package/dist/DateTimeViewClient-22GW4AD7.mjs +0 -14
- package/dist/DateTimeViewClient-R3M6ISVK.mjs +0 -16
- package/dist/DateViewClient-ELEHLGWS.mjs +0 -7
- package/dist/DateViewClient-VLTRN47D.mjs +0 -9
- package/dist/EnterAnimationClient-4OKXLKSA.mjs +0 -45
- package/dist/EnterAnimationClient-ZN3NLFNO.mjs +0 -47
- package/dist/InputControlClient-AZRPSTUZ.mjs +0 -677
- package/dist/InputControlClient-BUOYZNWQ.mjs +0 -675
- package/dist/InputControlClient-HIZOJLKW.mjs +0 -677
- package/dist/LinkNodeButton-BIZA2NPE.mjs +0 -225
- package/dist/LinkNodeButton-LX3KKGZY.mjs +0 -173
- package/dist/Pagination-NCJCOYHF.mjs +0 -181
- package/dist/Pagination-OQT7Q2XO.mjs +0 -183
- package/dist/chunk-3R4VVVNK.mjs +0 -903
- package/dist/chunk-DBHUCH4B.mjs +0 -109
- package/dist/chunk-FI2KJBK2.mjs +0 -110
- package/dist/chunk-JKP4XOZB.mjs +0 -214
- package/dist/chunk-OGGIS4AN.mjs +0 -201
- package/dist/chunk-RHVNJMS4.mjs +0 -251
- package/dist/chunk-SPRVN5IM.mjs +0 -118
- package/dist/chunk-UFKPTMM7.mjs +0 -199
- package/dist/chunk-XG6SXZWP.mjs +0 -115
- package/dist/chunk-YG6FKKQJ.mjs +0 -900
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) {
|
|
@@ -2685,7 +2687,7 @@ var DivContainer = async (props) => {
|
|
|
2685
2687
|
var DivContainer_default = DivContainer;
|
|
2686
2688
|
|
|
2687
2689
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2688
|
-
import { jsx as jsx35
|
|
2690
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2689
2691
|
var NodeTypes = {
|
|
2690
2692
|
["paragraph"]: ParagraphNode_default,
|
|
2691
2693
|
["heading"]: HeadingNode_default,
|
|
@@ -2722,49 +2724,46 @@ var PageBodyRenderer = (props) => {
|
|
|
2722
2724
|
}
|
|
2723
2725
|
return true;
|
|
2724
2726
|
};
|
|
2725
|
-
return /* @__PURE__ */
|
|
2726
|
-
|
|
2727
|
-
|
|
2727
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2728
|
+
{
|
|
2729
|
+
}
|
|
2730
|
+
const SelectedNode = NodeTypes[node.type];
|
|
2731
|
+
if (!shouldRenderNode(node)) {
|
|
2732
|
+
return null;
|
|
2733
|
+
}
|
|
2734
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2735
|
+
SelectedNode,
|
|
2728
2736
|
{
|
|
2737
|
+
node,
|
|
2738
|
+
firstNode: true,
|
|
2739
|
+
routeParameters: props.routeParameters,
|
|
2740
|
+
query: props.query,
|
|
2741
|
+
session: props.session,
|
|
2742
|
+
host: props.host,
|
|
2743
|
+
path: props.path,
|
|
2744
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
2745
|
+
serviceClient: props.serviceClient,
|
|
2746
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
2747
|
+
device: props.device,
|
|
2748
|
+
widgetRenderer: props.widgetRenderer
|
|
2729
2749
|
}
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2750
|
+
) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2751
|
+
SelectedNode,
|
|
2752
|
+
{
|
|
2753
|
+
node,
|
|
2754
|
+
routeParameters: props.routeParameters,
|
|
2755
|
+
query: props.query,
|
|
2756
|
+
session: props.session,
|
|
2757
|
+
host: props.host,
|
|
2758
|
+
path: props.path,
|
|
2759
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
2760
|
+
serviceClient: props.serviceClient,
|
|
2761
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
2762
|
+
device: props.device,
|
|
2763
|
+
widgetRenderer: props.widgetRenderer
|
|
2733
2764
|
}
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
{
|
|
2737
|
-
node,
|
|
2738
|
-
firstNode: true,
|
|
2739
|
-
routeParameters: props.routeParameters,
|
|
2740
|
-
query: props.query,
|
|
2741
|
-
session: props.session,
|
|
2742
|
-
host: props.host,
|
|
2743
|
-
path: props.path,
|
|
2744
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
2745
|
-
serviceClient: props.serviceClient,
|
|
2746
|
-
assetBaseUrl: props.assetBaseUrl,
|
|
2747
|
-
device: props.device,
|
|
2748
|
-
widgetRenderer: props.widgetRenderer
|
|
2749
|
-
}
|
|
2750
|
-
) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2751
|
-
SelectedNode,
|
|
2752
|
-
{
|
|
2753
|
-
node,
|
|
2754
|
-
routeParameters: props.routeParameters,
|
|
2755
|
-
query: props.query,
|
|
2756
|
-
session: props.session,
|
|
2757
|
-
host: props.host,
|
|
2758
|
-
path: props.path,
|
|
2759
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
2760
|
-
serviceClient: props.serviceClient,
|
|
2761
|
-
assetBaseUrl: props.assetBaseUrl,
|
|
2762
|
-
device: props.device,
|
|
2763
|
-
widgetRenderer: props.widgetRenderer
|
|
2764
|
-
}
|
|
2765
|
-
) }) }) }, index);
|
|
2766
|
-
})
|
|
2767
|
-
] });
|
|
2765
|
+
) }) }) }, index);
|
|
2766
|
+
}) });
|
|
2768
2767
|
};
|
|
2769
2768
|
var PageBodyRenderer_default = PageBodyRenderer;
|
|
2770
2769
|
|
|
@@ -2818,7 +2817,7 @@ function EnterAnimationHydrator() {
|
|
|
2818
2817
|
|
|
2819
2818
|
// src/components/Toast.tsx
|
|
2820
2819
|
import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
|
|
2821
|
-
import { Fragment as Fragment7, jsx as jsx36, jsxs as
|
|
2820
|
+
import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2822
2821
|
var Toast = () => {
|
|
2823
2822
|
const [showToast, setShowToast] = useState(false);
|
|
2824
2823
|
const [message, setMessage] = useState("");
|
|
@@ -2852,7 +2851,7 @@ var Toast = () => {
|
|
|
2852
2851
|
});
|
|
2853
2852
|
};
|
|
2854
2853
|
}, [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__ */
|
|
2854
|
+
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__ */ jsxs14("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
2856
2855
|
/* @__PURE__ */ jsx36(
|
|
2857
2856
|
"span",
|
|
2858
2857
|
{
|
|
@@ -2931,33 +2930,33 @@ var NoContentView_default = NoContentView;
|
|
|
2931
2930
|
|
|
2932
2931
|
// src/components/dataForm/ContentView.tsx
|
|
2933
2932
|
import React26 from "react";
|
|
2934
|
-
import { jsx as jsx39, jsxs as
|
|
2933
|
+
import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2935
2934
|
var ContentView = (props) => {
|
|
2936
|
-
return /* @__PURE__ */
|
|
2937
|
-
props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */
|
|
2938
|
-
/* @__PURE__ */
|
|
2935
|
+
return /* @__PURE__ */ jsxs15(React26.Fragment, { children: [
|
|
2936
|
+
props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */ jsxs15("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
2937
|
+
/* @__PURE__ */ jsxs15("div", { className: "flex items-center mb-4", children: [
|
|
2939
2938
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
2940
|
-
/* @__PURE__ */
|
|
2939
|
+
/* @__PURE__ */ jsxs15("div", { className: "ml-2", children: [
|
|
2941
2940
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
2942
2941
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
2943
2942
|
] })
|
|
2944
2943
|
] }),
|
|
2945
|
-
/* @__PURE__ */
|
|
2946
|
-
/* @__PURE__ */
|
|
2944
|
+
/* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
2945
|
+
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2947
2946
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2948
2947
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2949
2948
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2950
2949
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2951
2950
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2952
2951
|
] }),
|
|
2953
|
-
/* @__PURE__ */
|
|
2952
|
+
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2954
2953
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2955
2954
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2956
2955
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2957
2956
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2958
2957
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2959
2958
|
] }),
|
|
2960
|
-
/* @__PURE__ */
|
|
2959
|
+
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2961
2960
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2962
2961
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2963
2962
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
@@ -3016,7 +3015,7 @@ function FormReducer(state, action) {
|
|
|
3016
3015
|
var FormReducer_default = FormReducer;
|
|
3017
3016
|
|
|
3018
3017
|
// src/components/dataForm/DataList.tsx
|
|
3019
|
-
import { Fragment as Fragment8, jsx as jsx40, jsxs as
|
|
3018
|
+
import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3020
3019
|
var DataList = (props) => {
|
|
3021
3020
|
const router = useRouter();
|
|
3022
3021
|
let builder = new OdataBuilder(props.path);
|
|
@@ -3146,7 +3145,7 @@ var DataList = (props) => {
|
|
|
3146
3145
|
const showFirstPages = activePageNumber <= 5;
|
|
3147
3146
|
const showLastPages = activePageNumber > pages - 5;
|
|
3148
3147
|
if (showFirstPages) {
|
|
3149
|
-
return /* @__PURE__ */
|
|
3148
|
+
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3150
3149
|
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
|
|
3151
3150
|
Hyperlink,
|
|
3152
3151
|
{
|
|
@@ -3172,7 +3171,7 @@ var DataList = (props) => {
|
|
|
3172
3171
|
children: pages
|
|
3173
3172
|
}
|
|
3174
3173
|
),
|
|
3175
|
-
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */
|
|
3174
|
+
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
|
|
3176
3175
|
"select",
|
|
3177
3176
|
{
|
|
3178
3177
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3194,7 +3193,7 @@ var DataList = (props) => {
|
|
|
3194
3193
|
) })
|
|
3195
3194
|
] });
|
|
3196
3195
|
} else if (showLastPages) {
|
|
3197
|
-
return /* @__PURE__ */
|
|
3196
|
+
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3198
3197
|
/* @__PURE__ */ jsx40(
|
|
3199
3198
|
Hyperlink,
|
|
3200
3199
|
{
|
|
@@ -3224,7 +3223,7 @@ var DataList = (props) => {
|
|
|
3224
3223
|
)
|
|
3225
3224
|
] });
|
|
3226
3225
|
} else {
|
|
3227
|
-
return /* @__PURE__ */
|
|
3226
|
+
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3228
3227
|
/* @__PURE__ */ jsx40(
|
|
3229
3228
|
Hyperlink,
|
|
3230
3229
|
{
|
|
@@ -3270,7 +3269,7 @@ var DataList = (props) => {
|
|
|
3270
3269
|
children: pages
|
|
3271
3270
|
}
|
|
3272
3271
|
),
|
|
3273
|
-
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */
|
|
3272
|
+
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
|
|
3274
3273
|
"select",
|
|
3275
3274
|
{
|
|
3276
3275
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3291,15 +3290,15 @@ var DataList = (props) => {
|
|
|
3291
3290
|
}
|
|
3292
3291
|
}
|
|
3293
3292
|
};
|
|
3294
|
-
return /* @__PURE__ */
|
|
3295
|
-
/* @__PURE__ */
|
|
3296
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3293
|
+
return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
|
|
3294
|
+
/* @__PURE__ */ jsxs16(ContentView_default, { isDataFound, children: [
|
|
3295
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
|
|
3297
3296
|
"div",
|
|
3298
3297
|
{
|
|
3299
3298
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
3300
3299
|
children: [
|
|
3301
3300
|
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__ */
|
|
3301
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
|
|
3303
3302
|
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
|
|
3304
3303
|
InputControl_default,
|
|
3305
3304
|
{
|
|
@@ -3327,7 +3326,7 @@ var DataList = (props) => {
|
|
|
3327
3326
|
},
|
|
3328
3327
|
filter.name
|
|
3329
3328
|
)),
|
|
3330
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3329
|
+
props.addLinkHref && /* @__PURE__ */ jsxs16(
|
|
3331
3330
|
Hyperlink,
|
|
3332
3331
|
{
|
|
3333
3332
|
className: "gap-1",
|
|
@@ -3343,7 +3342,7 @@ var DataList = (props) => {
|
|
|
3343
3342
|
]
|
|
3344
3343
|
}
|
|
3345
3344
|
),
|
|
3346
|
-
/* @__PURE__ */ jsx40("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */
|
|
3345
|
+
/* @__PURE__ */ jsx40("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs16("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
3347
3346
|
/* @__PURE__ */ jsx40("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
|
|
3348
3347
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3349
3348
|
let icon = "chevronUpDown";
|
|
@@ -3363,7 +3362,7 @@ var DataList = (props) => {
|
|
|
3363
3362
|
{
|
|
3364
3363
|
href: column.enableSorting ? url : void 0,
|
|
3365
3364
|
className: "!text-neutral-contrast ",
|
|
3366
|
-
children: /* @__PURE__ */
|
|
3365
|
+
children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
|
|
3367
3366
|
/* @__PURE__ */ jsx40("span", { className: "text-black", children: column.label }),
|
|
3368
3367
|
column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3369
3368
|
] })
|
|
@@ -3431,9 +3430,9 @@ var DataList = (props) => {
|
|
|
3431
3430
|
}) }, index);
|
|
3432
3431
|
}) })
|
|
3433
3432
|
] }) }),
|
|
3434
|
-
/* @__PURE__ */ jsx40("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ jsx40("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs16("div", { className: "flex items-center justify-between", children: [
|
|
3435
3434
|
/* @__PURE__ */ jsx40("div", { className: "text-gray-700", children: label }),
|
|
3436
|
-
/* @__PURE__ */
|
|
3435
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex space-x-2 items-center", children: [
|
|
3437
3436
|
activePageNumber > 1 && /* @__PURE__ */ jsx40(
|
|
3438
3437
|
Hyperlink,
|
|
3439
3438
|
{
|
|
@@ -3456,14 +3455,14 @@ var DataList = (props) => {
|
|
|
3456
3455
|
] })
|
|
3457
3456
|
] }) })
|
|
3458
3457
|
] }),
|
|
3459
|
-
/* @__PURE__ */
|
|
3460
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3458
|
+
/* @__PURE__ */ jsxs16(NoContentView_default, { isDataFound, children: [
|
|
3459
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
|
|
3461
3460
|
"div",
|
|
3462
3461
|
{
|
|
3463
3462
|
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
3463
|
children: [
|
|
3465
3464
|
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__ */
|
|
3465
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
|
|
3467
3466
|
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
|
|
3468
3467
|
InputControl_default,
|
|
3469
3468
|
{
|
|
@@ -3491,7 +3490,7 @@ var DataList = (props) => {
|
|
|
3491
3490
|
},
|
|
3492
3491
|
filter.name
|
|
3493
3492
|
)),
|
|
3494
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3493
|
+
props.addLinkHref && /* @__PURE__ */ jsxs16(
|
|
3495
3494
|
Hyperlink,
|
|
3496
3495
|
{
|
|
3497
3496
|
className: "gap-1",
|
|
@@ -3507,7 +3506,7 @@ var DataList = (props) => {
|
|
|
3507
3506
|
]
|
|
3508
3507
|
}
|
|
3509
3508
|
),
|
|
3510
|
-
/* @__PURE__ */
|
|
3509
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
3511
3510
|
/* @__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
3511
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3513
3512
|
let icon = "chevronUpDown";
|
|
@@ -3527,7 +3526,7 @@ var DataList = (props) => {
|
|
|
3527
3526
|
{
|
|
3528
3527
|
href: column.enableSorting ? url : void 0,
|
|
3529
3528
|
className: "text-body-950",
|
|
3530
|
-
children: /* @__PURE__ */
|
|
3529
|
+
children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
|
|
3531
3530
|
/* @__PURE__ */ jsx40("span", { children: column.label }),
|
|
3532
3531
|
column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3533
3532
|
] })
|
|
@@ -3547,7 +3546,7 @@ var DataList_default = DataList;
|
|
|
3547
3546
|
// src/components/dataForm/DataListRenderer.tsx
|
|
3548
3547
|
import React28, { useState as useState3, useEffect as useEffect4 } from "react";
|
|
3549
3548
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
3550
|
-
import { jsx as jsx41, jsxs as
|
|
3549
|
+
import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3551
3550
|
var viewControlMap = {
|
|
3552
3551
|
number: ViewControlTypes.number,
|
|
3553
3552
|
lineText: ViewControlTypes.lineText,
|
|
@@ -3642,7 +3641,7 @@ var DataListRenderer = ({
|
|
|
3642
3641
|
isActive: landingPageUrl === pathname
|
|
3643
3642
|
};
|
|
3644
3643
|
});
|
|
3645
|
-
return /* @__PURE__ */
|
|
3644
|
+
return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
|
|
3646
3645
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
3647
3646
|
// tabs={resolvedTabs}
|
|
3648
3647
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
@@ -3693,7 +3692,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
3693
3692
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
3694
3693
|
|
|
3695
3694
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3696
|
-
import { jsx as jsx42, jsxs as
|
|
3695
|
+
import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3697
3696
|
var DataFormChildSection = (props) => {
|
|
3698
3697
|
const { section } = props;
|
|
3699
3698
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -3761,12 +3760,12 @@ var DataFormChildSection = (props) => {
|
|
|
3761
3760
|
childItemsToRender,
|
|
3762
3761
|
allChildItems: childItems
|
|
3763
3762
|
});
|
|
3764
|
-
return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */
|
|
3763
|
+
return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs18("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
3765
3764
|
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__ */
|
|
3765
|
+
/* @__PURE__ */ jsx42("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
3766
|
+
/* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsxs18("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
3768
3767
|
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx42("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
3769
|
-
return /* @__PURE__ */
|
|
3768
|
+
return /* @__PURE__ */ jsxs18("tr", { className: "", children: [
|
|
3770
3769
|
sectionRow.elements.map((field, index) => {
|
|
3771
3770
|
return /* @__PURE__ */ jsx42(
|
|
3772
3771
|
"th",
|
|
@@ -3785,7 +3784,7 @@ var DataFormChildSection = (props) => {
|
|
|
3785
3784
|
const rowKey = originalIndex;
|
|
3786
3785
|
return /* @__PURE__ */ jsx42(React29.Fragment, { children: section.sectionRows.map(
|
|
3787
3786
|
(sectionRow, sectionRowIndex) => {
|
|
3788
|
-
return /* @__PURE__ */
|
|
3787
|
+
return /* @__PURE__ */ jsxs18(
|
|
3789
3788
|
"tr",
|
|
3790
3789
|
{
|
|
3791
3790
|
className: "",
|
|
@@ -3852,7 +3851,7 @@ var DataFormChildSection = (props) => {
|
|
|
3852
3851
|
var DataFormChildSection_default = DataFormChildSection;
|
|
3853
3852
|
|
|
3854
3853
|
// src/components/dataForm/DataForm.tsx
|
|
3855
|
-
import { jsx as jsx43, jsxs as
|
|
3854
|
+
import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3856
3855
|
var DataForm = (props) => {
|
|
3857
3856
|
const formRef = useRef2(null);
|
|
3858
3857
|
console.log(props.dataItem, "dssads");
|
|
@@ -4072,8 +4071,8 @@ var DataForm = (props) => {
|
|
|
4072
4071
|
return false;
|
|
4073
4072
|
}
|
|
4074
4073
|
}
|
|
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__ */
|
|
4074
|
+
return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "flex-grow flex flex-col", children: [
|
|
4075
|
+
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__ */ jsxs19(
|
|
4077
4076
|
"div",
|
|
4078
4077
|
{
|
|
4079
4078
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
@@ -4106,7 +4105,7 @@ var DataForm = (props) => {
|
|
|
4106
4105
|
}
|
|
4107
4106
|
},
|
|
4108
4107
|
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__ */
|
|
4108
|
+
return /* @__PURE__ */ jsx43(React30.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs19("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
4110
4109
|
section.sectionRows?.map(
|
|
4111
4110
|
(sectionRow, sectionRowIndex) => {
|
|
4112
4111
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -4118,7 +4117,7 @@ var DataForm = (props) => {
|
|
|
4118
4117
|
);
|
|
4119
4118
|
}
|
|
4120
4119
|
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__ */
|
|
4120
|
+
return /* @__PURE__ */ jsxs19(
|
|
4122
4121
|
"div",
|
|
4123
4122
|
{
|
|
4124
4123
|
className: sectionRow.grow ? "grow" : "",
|
|
@@ -4174,7 +4173,7 @@ var DataForm = (props) => {
|
|
|
4174
4173
|
}) })
|
|
4175
4174
|
}
|
|
4176
4175
|
),
|
|
4177
|
-
/* @__PURE__ */
|
|
4176
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
4178
4177
|
/* @__PURE__ */ jsx43("div", { children: props.additionalActions && /* @__PURE__ */ jsx43(
|
|
4179
4178
|
Button_default,
|
|
4180
4179
|
{
|
|
@@ -4211,7 +4210,7 @@ var DataForm = (props) => {
|
|
|
4211
4210
|
var DataForm_default = DataForm;
|
|
4212
4211
|
|
|
4213
4212
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
4214
|
-
import { jsx as jsx44, jsxs as
|
|
4213
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4215
4214
|
function getAction(actions, code) {
|
|
4216
4215
|
return actions?.find((a) => a.actionCode === code);
|
|
4217
4216
|
}
|
|
@@ -4237,7 +4236,7 @@ var DataFormRenderer = ({
|
|
|
4237
4236
|
"Delete"
|
|
4238
4237
|
);
|
|
4239
4238
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
4240
|
-
return /* @__PURE__ */
|
|
4239
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
|
|
4241
4240
|
widgetProps && /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
4242
4241
|
/* @__PURE__ */ jsx44(
|
|
4243
4242
|
DataForm_default,
|