@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260723122345 → 0.8.1-dev.20260724042342
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/{InputControlClient-7NS4QUWO.mjs → InputControlClient-TE33BZ6U.mjs} +10 -3
- package/dist/{Pagination-T7YN2OMV.mjs → Pagination-BETIPTVF.mjs} +2 -2
- package/dist/{chunk-5GHPW7SJ.mjs → chunk-BAGK3UOE.mjs} +4 -0
- package/dist/{chunk-7ZFZLN56.mjs → chunk-HAGCF2RO.mjs} +322 -1
- package/dist/{chunk-X3YSXTD2.mjs → chunk-TMVO22U3.mjs} +1 -1
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +886 -530
- package/dist/index.mjs +97 -94
- package/dist/server.js +37 -40
- package/dist/server.mjs +38 -41
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
OdataBuilder
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TMVO22U3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AssetUtility_default,
|
|
8
8
|
BooleanSelect_default,
|
|
9
9
|
CheckboxInput_default,
|
|
10
10
|
ColorInput_default,
|
|
11
|
+
DateInput_default,
|
|
11
12
|
DateTimeInput_default,
|
|
12
13
|
EmailInput_default,
|
|
13
14
|
LineTextInput_default,
|
|
@@ -17,15 +18,17 @@ import {
|
|
|
17
18
|
OtpInput_default,
|
|
18
19
|
PercentageInput_default,
|
|
19
20
|
PhoneInput_default,
|
|
21
|
+
RadioInput_default,
|
|
20
22
|
SelectWithSearchInput_default,
|
|
23
|
+
Switcher_default,
|
|
21
24
|
TimeInput_default
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HAGCF2RO.mjs";
|
|
23
26
|
import {
|
|
24
27
|
Constants,
|
|
25
28
|
Hyperlink,
|
|
26
29
|
Icon_default,
|
|
27
30
|
InputControlType_default
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BAGK3UOE.mjs";
|
|
29
32
|
import {
|
|
30
33
|
ServiceClient_default
|
|
31
34
|
} from "./chunk-WEV5U33G.mjs";
|
|
@@ -409,7 +412,7 @@ var ViewControl_default = ViewControl;
|
|
|
409
412
|
|
|
410
413
|
// src/components/controls/edit/InputControl.tsx
|
|
411
414
|
import dynamic4 from "next/dynamic";
|
|
412
|
-
var InputControl = dynamic4(() => import("./InputControlClient-
|
|
415
|
+
var InputControl = dynamic4(() => import("./InputControlClient-TE33BZ6U.mjs"), {
|
|
413
416
|
ssr: false
|
|
414
417
|
});
|
|
415
418
|
var InputControl_default = InputControl;
|
|
@@ -2242,7 +2245,7 @@ var DocumentNode_default = DocumentNode;
|
|
|
2242
2245
|
|
|
2243
2246
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2244
2247
|
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2245
|
-
var Pagination = dynamic10(() => import("./Pagination-
|
|
2248
|
+
var Pagination = dynamic10(() => import("./Pagination-BETIPTVF.mjs"), { ssr: true });
|
|
2246
2249
|
var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
|
|
2247
2250
|
ssr: false
|
|
2248
2251
|
});
|
|
@@ -2687,7 +2690,7 @@ var DivContainer = async (props) => {
|
|
|
2687
2690
|
var DivContainer_default = DivContainer;
|
|
2688
2691
|
|
|
2689
2692
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2690
|
-
import { jsx as jsx35
|
|
2693
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2691
2694
|
var NodeTypes = {
|
|
2692
2695
|
["paragraph"]: ParagraphNode_default,
|
|
2693
2696
|
["heading"]: HeadingNode_default,
|
|
@@ -2724,49 +2727,46 @@ var PageBodyRenderer = (props) => {
|
|
|
2724
2727
|
}
|
|
2725
2728
|
return true;
|
|
2726
2729
|
};
|
|
2727
|
-
return /* @__PURE__ */
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2731
|
+
{
|
|
2732
|
+
}
|
|
2733
|
+
const SelectedNode = NodeTypes[node.type];
|
|
2734
|
+
if (!shouldRenderNode(node)) {
|
|
2735
|
+
return null;
|
|
2736
|
+
}
|
|
2737
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2738
|
+
SelectedNode,
|
|
2730
2739
|
{
|
|
2740
|
+
node,
|
|
2741
|
+
firstNode: true,
|
|
2742
|
+
routeParameters: props.routeParameters,
|
|
2743
|
+
query: props.query,
|
|
2744
|
+
session: props.session,
|
|
2745
|
+
host: props.host,
|
|
2746
|
+
path: props.path,
|
|
2747
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
2748
|
+
serviceClient: props.serviceClient,
|
|
2749
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
2750
|
+
device: props.device,
|
|
2751
|
+
widgetRenderer: props.widgetRenderer
|
|
2731
2752
|
}
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2753
|
+
) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2754
|
+
SelectedNode,
|
|
2755
|
+
{
|
|
2756
|
+
node,
|
|
2757
|
+
routeParameters: props.routeParameters,
|
|
2758
|
+
query: props.query,
|
|
2759
|
+
session: props.session,
|
|
2760
|
+
host: props.host,
|
|
2761
|
+
path: props.path,
|
|
2762
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
2763
|
+
serviceClient: props.serviceClient,
|
|
2764
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
2765
|
+
device: props.device,
|
|
2766
|
+
widgetRenderer: props.widgetRenderer
|
|
2735
2767
|
}
|
|
2736
|
-
|
|
2737
|
-
|
|
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
|
+
) }) }) }, index);
|
|
2769
|
+
}) });
|
|
2770
2770
|
};
|
|
2771
2771
|
var PageBodyRenderer_default = PageBodyRenderer;
|
|
2772
2772
|
|
|
@@ -2820,7 +2820,7 @@ function EnterAnimationHydrator() {
|
|
|
2820
2820
|
|
|
2821
2821
|
// src/components/Toast.tsx
|
|
2822
2822
|
import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
|
|
2823
|
-
import { Fragment as Fragment7, jsx as jsx36, jsxs as
|
|
2823
|
+
import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2824
2824
|
var Toast = () => {
|
|
2825
2825
|
const [showToast, setShowToast] = useState(false);
|
|
2826
2826
|
const [message, setMessage] = useState("");
|
|
@@ -2854,7 +2854,7 @@ var Toast = () => {
|
|
|
2854
2854
|
});
|
|
2855
2855
|
};
|
|
2856
2856
|
}, [closeToast, showMessage]);
|
|
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__ */
|
|
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__ */ jsxs14("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
2858
2858
|
/* @__PURE__ */ jsx36(
|
|
2859
2859
|
"span",
|
|
2860
2860
|
{
|
|
@@ -2933,33 +2933,33 @@ var NoContentView_default = NoContentView;
|
|
|
2933
2933
|
|
|
2934
2934
|
// src/components/dataForm/ContentView.tsx
|
|
2935
2935
|
import React26 from "react";
|
|
2936
|
-
import { jsx as jsx39, jsxs as
|
|
2936
|
+
import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2937
2937
|
var ContentView = (props) => {
|
|
2938
|
-
return /* @__PURE__ */
|
|
2939
|
-
props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */
|
|
2940
|
-
/* @__PURE__ */
|
|
2938
|
+
return /* @__PURE__ */ jsxs15(React26.Fragment, { children: [
|
|
2939
|
+
props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */ jsxs15("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
2940
|
+
/* @__PURE__ */ jsxs15("div", { className: "flex items-center mb-4", children: [
|
|
2941
2941
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
2942
|
-
/* @__PURE__ */
|
|
2942
|
+
/* @__PURE__ */ jsxs15("div", { className: "ml-2", children: [
|
|
2943
2943
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
2944
2944
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
2945
2945
|
] })
|
|
2946
2946
|
] }),
|
|
2947
|
-
/* @__PURE__ */
|
|
2948
|
-
/* @__PURE__ */
|
|
2947
|
+
/* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
2948
|
+
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2949
2949
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2950
2950
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2951
2951
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2952
2952
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2953
2953
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2954
2954
|
] }),
|
|
2955
|
-
/* @__PURE__ */
|
|
2955
|
+
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2956
2956
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2957
2957
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2958
2958
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2959
2959
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2960
2960
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2961
2961
|
] }),
|
|
2962
|
-
/* @__PURE__ */
|
|
2962
|
+
/* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
|
|
2963
2963
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2964
2964
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2965
2965
|
/* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
@@ -3018,7 +3018,7 @@ function FormReducer(state, action) {
|
|
|
3018
3018
|
var FormReducer_default = FormReducer;
|
|
3019
3019
|
|
|
3020
3020
|
// src/components/dataForm/DataList.tsx
|
|
3021
|
-
import { Fragment as Fragment8, jsx as jsx40, jsxs as
|
|
3021
|
+
import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3022
3022
|
var DataList = (props) => {
|
|
3023
3023
|
const router = useRouter();
|
|
3024
3024
|
let builder = new OdataBuilder(props.path);
|
|
@@ -3148,7 +3148,7 @@ var DataList = (props) => {
|
|
|
3148
3148
|
const showFirstPages = activePageNumber <= 5;
|
|
3149
3149
|
const showLastPages = activePageNumber > pages - 5;
|
|
3150
3150
|
if (showFirstPages) {
|
|
3151
|
-
return /* @__PURE__ */
|
|
3151
|
+
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3152
3152
|
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
|
|
3153
3153
|
Hyperlink,
|
|
3154
3154
|
{
|
|
@@ -3174,7 +3174,7 @@ var DataList = (props) => {
|
|
|
3174
3174
|
children: pages
|
|
3175
3175
|
}
|
|
3176
3176
|
),
|
|
3177
|
-
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
|
|
3178
3178
|
"select",
|
|
3179
3179
|
{
|
|
3180
3180
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3196,7 +3196,7 @@ var DataList = (props) => {
|
|
|
3196
3196
|
) })
|
|
3197
3197
|
] });
|
|
3198
3198
|
} else if (showLastPages) {
|
|
3199
|
-
return /* @__PURE__ */
|
|
3199
|
+
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3200
3200
|
/* @__PURE__ */ jsx40(
|
|
3201
3201
|
Hyperlink,
|
|
3202
3202
|
{
|
|
@@ -3226,7 +3226,7 @@ var DataList = (props) => {
|
|
|
3226
3226
|
)
|
|
3227
3227
|
] });
|
|
3228
3228
|
} else {
|
|
3229
|
-
return /* @__PURE__ */
|
|
3229
|
+
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
3230
3230
|
/* @__PURE__ */ jsx40(
|
|
3231
3231
|
Hyperlink,
|
|
3232
3232
|
{
|
|
@@ -3272,7 +3272,7 @@ var DataList = (props) => {
|
|
|
3272
3272
|
children: pages
|
|
3273
3273
|
}
|
|
3274
3274
|
),
|
|
3275
|
-
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */
|
|
3275
|
+
/* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
|
|
3276
3276
|
"select",
|
|
3277
3277
|
{
|
|
3278
3278
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -3293,15 +3293,15 @@ var DataList = (props) => {
|
|
|
3293
3293
|
}
|
|
3294
3294
|
}
|
|
3295
3295
|
};
|
|
3296
|
-
return /* @__PURE__ */
|
|
3297
|
-
/* @__PURE__ */
|
|
3298
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3296
|
+
return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
|
|
3297
|
+
/* @__PURE__ */ jsxs16(ContentView_default, { isDataFound, children: [
|
|
3298
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
|
|
3299
3299
|
"div",
|
|
3300
3300
|
{
|
|
3301
3301
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
3302
3302
|
children: [
|
|
3303
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", {}),
|
|
3304
|
-
/* @__PURE__ */
|
|
3304
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
|
|
3305
3305
|
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
|
|
3306
3306
|
InputControl_default,
|
|
3307
3307
|
{
|
|
@@ -3329,7 +3329,7 @@ var DataList = (props) => {
|
|
|
3329
3329
|
},
|
|
3330
3330
|
filter.name
|
|
3331
3331
|
)),
|
|
3332
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3332
|
+
props.addLinkHref && /* @__PURE__ */ jsxs16(
|
|
3333
3333
|
Hyperlink,
|
|
3334
3334
|
{
|
|
3335
3335
|
className: "gap-1",
|
|
@@ -3345,7 +3345,7 @@ var DataList = (props) => {
|
|
|
3345
3345
|
]
|
|
3346
3346
|
}
|
|
3347
3347
|
),
|
|
3348
|
-
/* @__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__ */ jsxs16("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
3349
3349
|
/* @__PURE__ */ jsx40("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
|
|
3350
3350
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3351
3351
|
let icon = "chevronUpDown";
|
|
@@ -3365,7 +3365,7 @@ var DataList = (props) => {
|
|
|
3365
3365
|
{
|
|
3366
3366
|
href: column.enableSorting ? url : void 0,
|
|
3367
3367
|
className: "!text-neutral-contrast ",
|
|
3368
|
-
children: /* @__PURE__ */
|
|
3368
|
+
children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
|
|
3369
3369
|
/* @__PURE__ */ jsx40("span", { className: "text-black", children: column.label }),
|
|
3370
3370
|
column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3371
3371
|
] })
|
|
@@ -3433,9 +3433,9 @@ var DataList = (props) => {
|
|
|
3433
3433
|
}) }, index);
|
|
3434
3434
|
}) })
|
|
3435
3435
|
] }) }),
|
|
3436
|
-
/* @__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__ */ jsxs16("div", { className: "flex items-center justify-between", children: [
|
|
3437
3437
|
/* @__PURE__ */ jsx40("div", { className: "text-gray-700", children: label }),
|
|
3438
|
-
/* @__PURE__ */
|
|
3438
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex space-x-2 items-center", children: [
|
|
3439
3439
|
activePageNumber > 1 && /* @__PURE__ */ jsx40(
|
|
3440
3440
|
Hyperlink,
|
|
3441
3441
|
{
|
|
@@ -3458,14 +3458,14 @@ var DataList = (props) => {
|
|
|
3458
3458
|
] })
|
|
3459
3459
|
] }) })
|
|
3460
3460
|
] }),
|
|
3461
|
-
/* @__PURE__ */
|
|
3462
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */
|
|
3461
|
+
/* @__PURE__ */ jsxs16(NoContentView_default, { isDataFound, children: [
|
|
3462
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
|
|
3463
3463
|
"div",
|
|
3464
3464
|
{
|
|
3465
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`,
|
|
3466
3466
|
children: [
|
|
3467
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", {}),
|
|
3468
|
-
/* @__PURE__ */
|
|
3468
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
|
|
3469
3469
|
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
|
|
3470
3470
|
InputControl_default,
|
|
3471
3471
|
{
|
|
@@ -3493,7 +3493,7 @@ var DataList = (props) => {
|
|
|
3493
3493
|
},
|
|
3494
3494
|
filter.name
|
|
3495
3495
|
)),
|
|
3496
|
-
props.addLinkHref && /* @__PURE__ */
|
|
3496
|
+
props.addLinkHref && /* @__PURE__ */ jsxs16(
|
|
3497
3497
|
Hyperlink,
|
|
3498
3498
|
{
|
|
3499
3499
|
className: "gap-1",
|
|
@@ -3509,7 +3509,7 @@ var DataList = (props) => {
|
|
|
3509
3509
|
]
|
|
3510
3510
|
}
|
|
3511
3511
|
),
|
|
3512
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
3513
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) => {
|
|
3514
3514
|
let url = builder.getNewOrderByUrl(column.name);
|
|
3515
3515
|
let icon = "chevronUpDown";
|
|
@@ -3529,7 +3529,7 @@ var DataList = (props) => {
|
|
|
3529
3529
|
{
|
|
3530
3530
|
href: column.enableSorting ? url : void 0,
|
|
3531
3531
|
className: "text-body-950",
|
|
3532
|
-
children: /* @__PURE__ */
|
|
3532
|
+
children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
|
|
3533
3533
|
/* @__PURE__ */ jsx40("span", { children: column.label }),
|
|
3534
3534
|
column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
|
|
3535
3535
|
] })
|
|
@@ -3549,7 +3549,7 @@ var DataList_default = DataList;
|
|
|
3549
3549
|
// src/components/dataForm/DataListRenderer.tsx
|
|
3550
3550
|
import React28, { useState as useState3, useEffect as useEffect4 } from "react";
|
|
3551
3551
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
3552
|
-
import { jsx as jsx41, jsxs as
|
|
3552
|
+
import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3553
3553
|
var viewControlMap = {
|
|
3554
3554
|
number: ViewControlTypes.number,
|
|
3555
3555
|
lineText: ViewControlTypes.lineText,
|
|
@@ -3644,7 +3644,7 @@ var DataListRenderer = ({
|
|
|
3644
3644
|
isActive: landingPageUrl === pathname
|
|
3645
3645
|
};
|
|
3646
3646
|
});
|
|
3647
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
|
|
3648
3648
|
resolvedTabs.length > 0 && // <NavigationTabsV2
|
|
3649
3649
|
// tabs={resolvedTabs}
|
|
3650
3650
|
// params={(widgetProps?.params ?? params) as Record<string, any>}
|
|
@@ -3695,7 +3695,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
3695
3695
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
3696
3696
|
|
|
3697
3697
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
3698
|
-
import { jsx as jsx42, jsxs as
|
|
3698
|
+
import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3699
3699
|
var DataFormChildSection = (props) => {
|
|
3700
3700
|
const { section } = props;
|
|
3701
3701
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -3763,12 +3763,12 @@ var DataFormChildSection = (props) => {
|
|
|
3763
3763
|
childItemsToRender,
|
|
3764
3764
|
allChildItems: childItems
|
|
3765
3765
|
});
|
|
3766
|
-
return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */
|
|
3766
|
+
return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs18("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
3767
3767
|
section.sectionTitle && /* @__PURE__ */ jsx42("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
3768
|
-
/* @__PURE__ */ jsx42("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */
|
|
3769
|
-
/* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */
|
|
3768
|
+
/* @__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: [
|
|
3769
|
+
/* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsxs18("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
3770
3770
|
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx42("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
3771
|
-
return /* @__PURE__ */
|
|
3771
|
+
return /* @__PURE__ */ jsxs18("tr", { className: "", children: [
|
|
3772
3772
|
sectionRow.elements.map((field, index) => {
|
|
3773
3773
|
return /* @__PURE__ */ jsx42(
|
|
3774
3774
|
"th",
|
|
@@ -3787,7 +3787,7 @@ var DataFormChildSection = (props) => {
|
|
|
3787
3787
|
const rowKey = originalIndex;
|
|
3788
3788
|
return /* @__PURE__ */ jsx42(React29.Fragment, { children: section.sectionRows.map(
|
|
3789
3789
|
(sectionRow, sectionRowIndex) => {
|
|
3790
|
-
return /* @__PURE__ */
|
|
3790
|
+
return /* @__PURE__ */ jsxs18(
|
|
3791
3791
|
"tr",
|
|
3792
3792
|
{
|
|
3793
3793
|
className: "",
|
|
@@ -3854,7 +3854,7 @@ var DataFormChildSection = (props) => {
|
|
|
3854
3854
|
var DataFormChildSection_default = DataFormChildSection;
|
|
3855
3855
|
|
|
3856
3856
|
// src/components/dataForm/DataForm.tsx
|
|
3857
|
-
import { jsx as jsx43, jsxs as
|
|
3857
|
+
import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3858
3858
|
var DataForm = (props) => {
|
|
3859
3859
|
const formRef = useRef2(null);
|
|
3860
3860
|
console.log(props.dataItem, "dssads");
|
|
@@ -4074,8 +4074,8 @@ var DataForm = (props) => {
|
|
|
4074
4074
|
return false;
|
|
4075
4075
|
}
|
|
4076
4076
|
}
|
|
4077
|
-
return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */
|
|
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__ */
|
|
4077
|
+
return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs19("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__ */ jsxs19(
|
|
4079
4079
|
"div",
|
|
4080
4080
|
{
|
|
4081
4081
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
@@ -4108,7 +4108,7 @@ var DataForm = (props) => {
|
|
|
4108
4108
|
}
|
|
4109
4109
|
},
|
|
4110
4110
|
children: /* @__PURE__ */ jsx43("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
4111
|
-
return /* @__PURE__ */ jsx43(React30.Fragment, { children: !section.isChildSection && /* @__PURE__ */
|
|
4111
|
+
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: [
|
|
4112
4112
|
section.sectionRows?.map(
|
|
4113
4113
|
(sectionRow, sectionRowIndex) => {
|
|
4114
4114
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -4120,7 +4120,7 @@ var DataForm = (props) => {
|
|
|
4120
4120
|
);
|
|
4121
4121
|
}
|
|
4122
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) => {
|
|
4123
|
-
return /* @__PURE__ */
|
|
4123
|
+
return /* @__PURE__ */ jsxs19(
|
|
4124
4124
|
"div",
|
|
4125
4125
|
{
|
|
4126
4126
|
className: sectionRow.grow ? "grow" : "",
|
|
@@ -4176,7 +4176,7 @@ var DataForm = (props) => {
|
|
|
4176
4176
|
}) })
|
|
4177
4177
|
}
|
|
4178
4178
|
),
|
|
4179
|
-
/* @__PURE__ */
|
|
4179
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
4180
4180
|
/* @__PURE__ */ jsx43("div", { children: props.additionalActions && /* @__PURE__ */ jsx43(
|
|
4181
4181
|
Button_default,
|
|
4182
4182
|
{
|
|
@@ -4213,7 +4213,7 @@ var DataForm = (props) => {
|
|
|
4213
4213
|
var DataForm_default = DataForm;
|
|
4214
4214
|
|
|
4215
4215
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
4216
|
-
import { jsx as jsx44, jsxs as
|
|
4216
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4217
4217
|
function getAction(actions, code) {
|
|
4218
4218
|
return actions?.find((a) => a.actionCode === code);
|
|
4219
4219
|
}
|
|
@@ -4239,7 +4239,7 @@ var DataFormRenderer = ({
|
|
|
4239
4239
|
"Delete"
|
|
4240
4240
|
);
|
|
4241
4241
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
4242
|
-
return /* @__PURE__ */
|
|
4242
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
|
|
4243
4243
|
widgetProps && /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
4244
4244
|
/* @__PURE__ */ jsx44(
|
|
4245
4245
|
DataForm_default,
|
|
@@ -4268,6 +4268,7 @@ export {
|
|
|
4268
4268
|
DataFormRenderer_default as DataFormRenderer,
|
|
4269
4269
|
DataList_default as DataList,
|
|
4270
4270
|
DataListRenderer_default as DataListRenderer,
|
|
4271
|
+
DateInput_default as DateInput,
|
|
4271
4272
|
DateTimeInput_default as DateTimeInput,
|
|
4272
4273
|
EmailInput_default as EmailInput,
|
|
4273
4274
|
EnterAnimationHydrator,
|
|
@@ -4282,6 +4283,8 @@ export {
|
|
|
4282
4283
|
PageBodyRenderer_default as PageBodyRenderer,
|
|
4283
4284
|
PercentageInput_default as PercentageInput,
|
|
4284
4285
|
PhoneInput_default as PhoneInput,
|
|
4286
|
+
RadioInput_default as RadioInput,
|
|
4287
|
+
Switcher_default as Switcher,
|
|
4285
4288
|
TimeInput_default as TimeInput,
|
|
4286
4289
|
Toast_default as Toast,
|
|
4287
4290
|
ToastService_default as ToastService,
|
package/dist/server.js
CHANGED
|
@@ -5249,49 +5249,46 @@ var PageBodyRenderer = (props) => {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
return true;
|
|
5251
5251
|
};
|
|
5252
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.
|
|
5253
|
-
|
|
5254
|
-
|
|
5252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
5253
|
+
{
|
|
5254
|
+
}
|
|
5255
|
+
const SelectedNode = NodeTypes[node.type];
|
|
5256
|
+
if (!shouldRenderNode(node)) {
|
|
5257
|
+
return null;
|
|
5258
|
+
}
|
|
5259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5260
|
+
SelectedNode,
|
|
5255
5261
|
{
|
|
5262
|
+
node,
|
|
5263
|
+
firstNode: true,
|
|
5264
|
+
routeParameters: props.routeParameters,
|
|
5265
|
+
query: props.query,
|
|
5266
|
+
session: props.session,
|
|
5267
|
+
host: props.host,
|
|
5268
|
+
path: props.path,
|
|
5269
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
5270
|
+
serviceClient: props.serviceClient,
|
|
5271
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
5272
|
+
device: props.device,
|
|
5273
|
+
widgetRenderer: props.widgetRenderer
|
|
5256
5274
|
}
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5275
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5276
|
+
SelectedNode,
|
|
5277
|
+
{
|
|
5278
|
+
node,
|
|
5279
|
+
routeParameters: props.routeParameters,
|
|
5280
|
+
query: props.query,
|
|
5281
|
+
session: props.session,
|
|
5282
|
+
host: props.host,
|
|
5283
|
+
path: props.path,
|
|
5284
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
5285
|
+
serviceClient: props.serviceClient,
|
|
5286
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
5287
|
+
device: props.device,
|
|
5288
|
+
widgetRenderer: props.widgetRenderer
|
|
5260
5289
|
}
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
{
|
|
5264
|
-
node,
|
|
5265
|
-
firstNode: true,
|
|
5266
|
-
routeParameters: props.routeParameters,
|
|
5267
|
-
query: props.query,
|
|
5268
|
-
session: props.session,
|
|
5269
|
-
host: props.host,
|
|
5270
|
-
path: props.path,
|
|
5271
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
5272
|
-
serviceClient: props.serviceClient,
|
|
5273
|
-
assetBaseUrl: props.assetBaseUrl,
|
|
5274
|
-
device: props.device,
|
|
5275
|
-
widgetRenderer: props.widgetRenderer
|
|
5276
|
-
}
|
|
5277
|
-
) }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5278
|
-
SelectedNode,
|
|
5279
|
-
{
|
|
5280
|
-
node,
|
|
5281
|
-
routeParameters: props.routeParameters,
|
|
5282
|
-
query: props.query,
|
|
5283
|
-
session: props.session,
|
|
5284
|
-
host: props.host,
|
|
5285
|
-
path: props.path,
|
|
5286
|
-
apiBaseUrl: props.apiBaseUrl,
|
|
5287
|
-
serviceClient: props.serviceClient,
|
|
5288
|
-
assetBaseUrl: props.assetBaseUrl,
|
|
5289
|
-
device: props.device,
|
|
5290
|
-
widgetRenderer: props.widgetRenderer
|
|
5291
|
-
}
|
|
5292
|
-
) }) }) }, index);
|
|
5293
|
-
})
|
|
5294
|
-
] });
|
|
5290
|
+
) }) }) }, index);
|
|
5291
|
+
}) });
|
|
5295
5292
|
};
|
|
5296
5293
|
var PageBodyRenderer_default = PageBodyRenderer;
|
|
5297
5294
|
// Annotate the CommonJS export names for ESM import in node:
|