@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260722103550 → 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.
Files changed (3) hide show
  1. package/dist/index.js +40 -37
  2. package/dist/index.mjs +108 -103
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6961,46 +6961,49 @@ var PageBodyRenderer = (props) => {
6961
6961
  }
6962
6962
  return true;
6963
6963
  };
6964
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
6965
- {
6966
- }
6967
- const SelectedNode = NodeTypes[node.type];
6968
- if (!shouldRenderNode(node)) {
6969
- return null;
6970
- }
6971
- 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)(
6972
- 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) => {
6973
6967
  {
6974
- node,
6975
- firstNode: true,
6976
- routeParameters: props.routeParameters,
6977
- query: props.query,
6978
- session: props.session,
6979
- host: props.host,
6980
- path: props.path,
6981
- apiBaseUrl: props.apiBaseUrl,
6982
- serviceClient: props.serviceClient,
6983
- assetBaseUrl: props.assetBaseUrl,
6984
- device: props.device,
6985
- widgetRenderer: props.widgetRenderer
6986
6968
  }
6987
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6988
- SelectedNode,
6989
- {
6990
- node,
6991
- routeParameters: props.routeParameters,
6992
- query: props.query,
6993
- session: props.session,
6994
- host: props.host,
6995
- path: props.path,
6996
- apiBaseUrl: props.apiBaseUrl,
6997
- serviceClient: props.serviceClient,
6998
- assetBaseUrl: props.assetBaseUrl,
6999
- device: props.device,
7000
- widgetRenderer: props.widgetRenderer
6969
+ const SelectedNode = NodeTypes[node.type];
6970
+ if (!shouldRenderNode(node)) {
6971
+ return null;
7001
6972
  }
7002
- ) }) }) }, index);
7003
- }) });
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
+ ] });
7004
7007
  };
7005
7008
  var PageBodyRenderer_default = PageBodyRenderer;
7006
7009
 
package/dist/index.mjs CHANGED
@@ -1,6 +1,8 @@
1
+ "use client";
2
+
1
3
  import {
2
4
  OdataBuilder
3
- } from "./chunk-UFKPTMM7.mjs";
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-YG6FKKQJ.mjs";
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-DBHUCH4B.mjs";
28
+ } from "./chunk-5GHPW7SJ.mjs";
27
29
  import {
28
30
  ServiceClient_default
29
- } from "./chunk-3GWLDT7C.mjs";
31
+ } from "./chunk-WEV5U33G.mjs";
30
32
  import {
31
33
  Button_default,
32
34
  ClientButton_default,
33
35
  ToastService_default
34
- } from "./chunk-RHVNJMS4.mjs";
35
- import "./chunk-56HSDML5.mjs";
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-4CTEMOMJ.mjs"), {
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-57543DTW.mjs"), { ssr: false });
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-K5FE5VSN.mjs"), {
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-BUOYZNWQ.mjs"), {
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-57543DTW.mjs"), { ssr: false });
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-BIZA2NPE.mjs"), {
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-XONTQQW7.mjs"), {
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-J22NMEVY.mjs"), {
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-57543DTW.mjs"), { ssr: false });
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-NCJCOYHF.mjs"), { ssr: true });
2244
- var Slider = dynamic10(() => import("./Slider-PEIVH6A5.mjs"), {
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 } from "react/jsx-runtime";
2690
+ import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
2689
2691
  var NodeTypes = {
2690
2692
  ["paragraph"]: ParagraphNode_default,
2691
2693
  ["heading"]: HeadingNode_default,
@@ -2722,46 +2724,49 @@ var PageBodyRenderer = (props) => {
2722
2724
  }
2723
2725
  return true;
2724
2726
  };
2725
- return /* @__PURE__ */ jsx35(React23.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2726
- {
2727
- }
2728
- const SelectedNode = NodeTypes[node.type];
2729
- if (!shouldRenderNode(node)) {
2730
- return null;
2731
- }
2732
- return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2733
- SelectedNode,
2727
+ return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2728
+ /* @__PURE__ */ jsx35("div", { children: "Thuis isadiasdia testaststtstst" }),
2729
+ rootNode && rootNode?.children?.map((node, index) => {
2734
2730
  {
2735
- node,
2736
- firstNode: true,
2737
- routeParameters: props.routeParameters,
2738
- query: props.query,
2739
- session: props.session,
2740
- host: props.host,
2741
- path: props.path,
2742
- apiBaseUrl: props.apiBaseUrl,
2743
- serviceClient: props.serviceClient,
2744
- assetBaseUrl: props.assetBaseUrl,
2745
- device: props.device,
2746
- widgetRenderer: props.widgetRenderer
2747
2731
  }
2748
- ) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2749
- SelectedNode,
2750
- {
2751
- node,
2752
- routeParameters: props.routeParameters,
2753
- query: props.query,
2754
- session: props.session,
2755
- host: props.host,
2756
- path: props.path,
2757
- apiBaseUrl: props.apiBaseUrl,
2758
- serviceClient: props.serviceClient,
2759
- assetBaseUrl: props.assetBaseUrl,
2760
- device: props.device,
2761
- widgetRenderer: props.widgetRenderer
2732
+ const SelectedNode = NodeTypes[node.type];
2733
+ if (!shouldRenderNode(node)) {
2734
+ return null;
2762
2735
  }
2763
- ) }) }) }, index);
2764
- }) });
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
+ ] });
2765
2770
  };
2766
2771
  var PageBodyRenderer_default = PageBodyRenderer;
2767
2772
 
@@ -2815,7 +2820,7 @@ function EnterAnimationHydrator() {
2815
2820
 
2816
2821
  // src/components/Toast.tsx
2817
2822
  import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
2818
- import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2823
+ import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
2819
2824
  var Toast = () => {
2820
2825
  const [showToast, setShowToast] = useState(false);
2821
2826
  const [message, setMessage] = useState("");
@@ -2849,7 +2854,7 @@ var Toast = () => {
2849
2854
  });
2850
2855
  };
2851
2856
  }, [closeToast, showMessage]);
2852
- 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: [
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: [
2853
2858
  /* @__PURE__ */ jsx36(
2854
2859
  "span",
2855
2860
  {
@@ -2928,33 +2933,33 @@ var NoContentView_default = NoContentView;
2928
2933
 
2929
2934
  // src/components/dataForm/ContentView.tsx
2930
2935
  import React26 from "react";
2931
- import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
2936
+ import { jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
2932
2937
  var ContentView = (props) => {
2933
- return /* @__PURE__ */ jsxs15(React26.Fragment, { children: [
2934
- props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */ jsxs15("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
2935
- /* @__PURE__ */ jsxs15("div", { className: "flex items-center mb-4", children: [
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: [
2936
2941
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
2937
- /* @__PURE__ */ jsxs15("div", { className: "ml-2", children: [
2942
+ /* @__PURE__ */ jsxs16("div", { className: "ml-2", children: [
2938
2943
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
2939
2944
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
2940
2945
  ] })
2941
2946
  ] }),
2942
- /* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
2943
- /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2947
+ /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
2948
+ /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
2944
2949
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2945
2950
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2946
2951
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2947
2952
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2948
2953
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2949
2954
  ] }),
2950
- /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2955
+ /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
2951
2956
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2952
2957
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2953
2958
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2954
2959
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2955
2960
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2956
2961
  ] }),
2957
- /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2962
+ /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
2958
2963
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2959
2964
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2960
2965
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
@@ -3013,7 +3018,7 @@ function FormReducer(state, action) {
3013
3018
  var FormReducer_default = FormReducer;
3014
3019
 
3015
3020
  // src/components/dataForm/DataList.tsx
3016
- import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
3021
+ import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs17 } from "react/jsx-runtime";
3017
3022
  var DataList = (props) => {
3018
3023
  const router = useRouter();
3019
3024
  let builder = new OdataBuilder(props.path);
@@ -3143,7 +3148,7 @@ var DataList = (props) => {
3143
3148
  const showFirstPages = activePageNumber <= 5;
3144
3149
  const showLastPages = activePageNumber > pages - 5;
3145
3150
  if (showFirstPages) {
3146
- return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3151
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3147
3152
  Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
3148
3153
  Hyperlink,
3149
3154
  {
@@ -3169,7 +3174,7 @@ var DataList = (props) => {
3169
3174
  children: pages
3170
3175
  }
3171
3176
  ),
3172
- /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
3177
+ /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3173
3178
  "select",
3174
3179
  {
3175
3180
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3191,7 +3196,7 @@ var DataList = (props) => {
3191
3196
  ) })
3192
3197
  ] });
3193
3198
  } else if (showLastPages) {
3194
- return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3199
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3195
3200
  /* @__PURE__ */ jsx40(
3196
3201
  Hyperlink,
3197
3202
  {
@@ -3221,7 +3226,7 @@ var DataList = (props) => {
3221
3226
  )
3222
3227
  ] });
3223
3228
  } else {
3224
- return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3229
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3225
3230
  /* @__PURE__ */ jsx40(
3226
3231
  Hyperlink,
3227
3232
  {
@@ -3267,7 +3272,7 @@ var DataList = (props) => {
3267
3272
  children: pages
3268
3273
  }
3269
3274
  ),
3270
- /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
3275
+ /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3271
3276
  "select",
3272
3277
  {
3273
3278
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3288,15 +3293,15 @@ var DataList = (props) => {
3288
3293
  }
3289
3294
  }
3290
3295
  };
3291
- return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
3292
- /* @__PURE__ */ jsxs16(ContentView_default, { isDataFound, children: [
3293
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
3296
+ return /* @__PURE__ */ jsxs17(React27.Fragment, { children: [
3297
+ /* @__PURE__ */ jsxs17(ContentView_default, { isDataFound, children: [
3298
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
3294
3299
  "div",
3295
3300
  {
3296
3301
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3297
3302
  children: [
3298
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", {}),
3299
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
3304
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
3300
3305
  props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
3301
3306
  InputControl_default,
3302
3307
  {
@@ -3324,7 +3329,7 @@ var DataList = (props) => {
3324
3329
  },
3325
3330
  filter.name
3326
3331
  )),
3327
- props.addLinkHref && /* @__PURE__ */ jsxs16(
3332
+ props.addLinkHref && /* @__PURE__ */ jsxs17(
3328
3333
  Hyperlink,
3329
3334
  {
3330
3335
  className: "gap-1",
@@ -3340,7 +3345,7 @@ var DataList = (props) => {
3340
3345
  ]
3341
3346
  }
3342
3347
  ),
3343
- /* @__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: [
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: [
3344
3349
  /* @__PURE__ */ jsx40("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
3345
3350
  let url = builder.getNewOrderByUrl(column.name);
3346
3351
  let icon = "chevronUpDown";
@@ -3360,7 +3365,7 @@ var DataList = (props) => {
3360
3365
  {
3361
3366
  href: column.enableSorting ? url : void 0,
3362
3367
  className: "!text-neutral-contrast ",
3363
- children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
3368
+ children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
3364
3369
  /* @__PURE__ */ jsx40("span", { className: "text-black", children: column.label }),
3365
3370
  column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
3366
3371
  ] })
@@ -3428,9 +3433,9 @@ var DataList = (props) => {
3428
3433
  }) }, index);
3429
3434
  }) })
3430
3435
  ] }) }),
3431
- /* @__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: [
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: [
3432
3437
  /* @__PURE__ */ jsx40("div", { className: "text-gray-700", children: label }),
3433
- /* @__PURE__ */ jsxs16("div", { className: "flex space-x-2 items-center", children: [
3438
+ /* @__PURE__ */ jsxs17("div", { className: "flex space-x-2 items-center", children: [
3434
3439
  activePageNumber > 1 && /* @__PURE__ */ jsx40(
3435
3440
  Hyperlink,
3436
3441
  {
@@ -3453,14 +3458,14 @@ var DataList = (props) => {
3453
3458
  ] })
3454
3459
  ] }) })
3455
3460
  ] }),
3456
- /* @__PURE__ */ jsxs16(NoContentView_default, { isDataFound, children: [
3457
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
3461
+ /* @__PURE__ */ jsxs17(NoContentView_default, { isDataFound, children: [
3462
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
3458
3463
  "div",
3459
3464
  {
3460
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`,
3461
3466
  children: [
3462
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", {}),
3463
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
3468
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
3464
3469
  props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
3465
3470
  InputControl_default,
3466
3471
  {
@@ -3488,7 +3493,7 @@ var DataList = (props) => {
3488
3493
  },
3489
3494
  filter.name
3490
3495
  )),
3491
- props.addLinkHref && /* @__PURE__ */ jsxs16(
3496
+ props.addLinkHref && /* @__PURE__ */ jsxs17(
3492
3497
  Hyperlink,
3493
3498
  {
3494
3499
  className: "gap-1",
@@ -3504,7 +3509,7 @@ var DataList = (props) => {
3504
3509
  ]
3505
3510
  }
3506
3511
  ),
3507
- /* @__PURE__ */ jsxs16("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3512
+ /* @__PURE__ */ jsxs17("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3508
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) => {
3509
3514
  let url = builder.getNewOrderByUrl(column.name);
3510
3515
  let icon = "chevronUpDown";
@@ -3524,7 +3529,7 @@ var DataList = (props) => {
3524
3529
  {
3525
3530
  href: column.enableSorting ? url : void 0,
3526
3531
  className: "text-body-950",
3527
- children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
3532
+ children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
3528
3533
  /* @__PURE__ */ jsx40("span", { children: column.label }),
3529
3534
  column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
3530
3535
  ] })
@@ -3544,7 +3549,7 @@ var DataList_default = DataList;
3544
3549
  // src/components/dataForm/DataListRenderer.tsx
3545
3550
  import React28, { useState as useState3, useEffect as useEffect4 } from "react";
3546
3551
  import { usePathname as usePathname2 } from "next/navigation";
3547
- import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
3552
+ import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
3548
3553
  var viewControlMap = {
3549
3554
  number: ViewControlTypes.number,
3550
3555
  lineText: ViewControlTypes.lineText,
@@ -3639,7 +3644,7 @@ var DataListRenderer = ({
3639
3644
  isActive: landingPageUrl === pathname
3640
3645
  };
3641
3646
  });
3642
- return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
3647
+ return /* @__PURE__ */ jsxs18(React28.Fragment, { children: [
3643
3648
  resolvedTabs.length > 0 && // <NavigationTabsV2
3644
3649
  // tabs={resolvedTabs}
3645
3650
  // params={(widgetProps?.params ?? params) as Record<string, any>}
@@ -3690,7 +3695,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
3690
3695
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
3691
3696
 
3692
3697
  // src/components/dataForm/DataFormChildSection.tsx
3693
- import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
3698
+ import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
3694
3699
  var DataFormChildSection = (props) => {
3695
3700
  const { section } = props;
3696
3701
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -3758,12 +3763,12 @@ var DataFormChildSection = (props) => {
3758
3763
  childItemsToRender,
3759
3764
  allChildItems: childItems
3760
3765
  });
3761
- return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs18("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
3766
+ return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
3762
3767
  section.sectionTitle && /* @__PURE__ */ jsx42("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
3763
- /* @__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: [
3764
- /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsxs18("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
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: [
3765
3770
  (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx42("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
3766
- return /* @__PURE__ */ jsxs18("tr", { className: "", children: [
3771
+ return /* @__PURE__ */ jsxs19("tr", { className: "", children: [
3767
3772
  sectionRow.elements.map((field, index) => {
3768
3773
  return /* @__PURE__ */ jsx42(
3769
3774
  "th",
@@ -3782,7 +3787,7 @@ var DataFormChildSection = (props) => {
3782
3787
  const rowKey = originalIndex;
3783
3788
  return /* @__PURE__ */ jsx42(React29.Fragment, { children: section.sectionRows.map(
3784
3789
  (sectionRow, sectionRowIndex) => {
3785
- return /* @__PURE__ */ jsxs18(
3790
+ return /* @__PURE__ */ jsxs19(
3786
3791
  "tr",
3787
3792
  {
3788
3793
  className: "",
@@ -3849,7 +3854,7 @@ var DataFormChildSection = (props) => {
3849
3854
  var DataFormChildSection_default = DataFormChildSection;
3850
3855
 
3851
3856
  // src/components/dataForm/DataForm.tsx
3852
- import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
3857
+ import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
3853
3858
  var DataForm = (props) => {
3854
3859
  const formRef = useRef2(null);
3855
3860
  console.log(props.dataItem, "dssads");
@@ -4069,8 +4074,8 @@ var DataForm = (props) => {
4069
4074
  return false;
4070
4075
  }
4071
4076
  }
4072
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "flex-grow flex flex-col", children: [
4073
- 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
+ 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(
4074
4079
  "div",
4075
4080
  {
4076
4081
  className: "inline-flex items-center gap-2 cursor-pointer",
@@ -4103,7 +4108,7 @@ var DataForm = (props) => {
4103
4108
  }
4104
4109
  },
4105
4110
  children: /* @__PURE__ */ jsx43("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4106
- 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: [
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: [
4107
4112
  section.sectionRows?.map(
4108
4113
  (sectionRow, sectionRowIndex) => {
4109
4114
  const elementsCount = sectionRow.elements.length;
@@ -4115,7 +4120,7 @@ var DataForm = (props) => {
4115
4120
  );
4116
4121
  }
4117
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) => {
4118
- return /* @__PURE__ */ jsxs19(
4123
+ return /* @__PURE__ */ jsxs20(
4119
4124
  "div",
4120
4125
  {
4121
4126
  className: sectionRow.grow ? "grow" : "",
@@ -4171,7 +4176,7 @@ var DataForm = (props) => {
4171
4176
  }) })
4172
4177
  }
4173
4178
  ),
4174
- /* @__PURE__ */ jsxs19("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4179
+ /* @__PURE__ */ jsxs20("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4175
4180
  /* @__PURE__ */ jsx43("div", { children: props.additionalActions && /* @__PURE__ */ jsx43(
4176
4181
  Button_default,
4177
4182
  {
@@ -4208,7 +4213,7 @@ var DataForm = (props) => {
4208
4213
  var DataForm_default = DataForm;
4209
4214
 
4210
4215
  // src/components/dataForm/DataFormRenderer.tsx
4211
- import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
4216
+ import { jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
4212
4217
  function getAction(actions, code) {
4213
4218
  return actions?.find((a) => a.actionCode === code);
4214
4219
  }
@@ -4234,7 +4239,7 @@ var DataFormRenderer = ({
4234
4239
  "Delete"
4235
4240
  );
4236
4241
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4237
- return /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
4242
+ return /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4238
4243
  widgetProps && /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4239
4244
  /* @__PURE__ */ jsx44(
4240
4245
  DataForm_default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clyrex-digital/clyrex-controls-dev",
3
- "version": "0.8.1-dev.20260722103550",
3
+ "version": "0.8.1-dev.20260722105036",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",