@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260709113231 → 0.8.1-dev.20260711052655
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/{EnterAnimationClient-RS3NQNR4.mjs → EnterAnimationClient-2NFKY4B5.mjs} +1 -0
- package/dist/{EnterAnimationClient-2JW323TH.mjs → EnterAnimationClient-R3GFCNRS.mjs} +1 -0
- package/dist/{InputControlClient-CS4JM7UY.mjs → InputControlClient-BO7WPPVX.mjs} +97 -6
- package/dist/{InputControlClient-XS52LLEE.mjs → InputControlClient-HSPSCMLF.mjs} +97 -6
- package/dist/{Pagination-4K7GMWUE.mjs → Pagination-NCJCOYHF.mjs} +2 -2
- package/dist/Pagination-T7YN2OMV.mjs +183 -0
- package/dist/chunk-5GHPW7SJ.mjs +111 -0
- package/dist/{chunk-7ZFZLN56.mjs → chunk-6NCGSAPP.mjs} +82 -0
- package/dist/{chunk-UWFXFVUU.mjs → chunk-DBHUCH4B.mjs} +2 -1
- package/dist/{chunk-YG6FKKQJ.mjs → chunk-NT56SZOV.mjs} +82 -0
- package/dist/{chunk-FYGNBMII.mjs → chunk-UFKPTMM7.mjs} +1 -1
- package/dist/chunk-X3YSXTD2.mjs +201 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +818 -629
- package/dist/index.mjs +13 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -805,13 +805,101 @@ var init_DateTimeViewClient = __esm({
|
|
|
805
805
|
}
|
|
806
806
|
});
|
|
807
807
|
|
|
808
|
+
// src/components/controls/view/VideoView.tsx
|
|
809
|
+
var import_jsx_runtime18, parseAssets, VideoView, VideoView_default;
|
|
810
|
+
var init_VideoView = __esm({
|
|
811
|
+
"src/components/controls/view/VideoView.tsx"() {
|
|
812
|
+
"use strict";
|
|
813
|
+
init_AssetUtility();
|
|
814
|
+
import_jsx_runtime18 = require("react/jsx-runtime");
|
|
815
|
+
parseAssets = (value) => {
|
|
816
|
+
if (!value) return [];
|
|
817
|
+
if (Array.isArray(value)) {
|
|
818
|
+
return value;
|
|
819
|
+
}
|
|
820
|
+
if (typeof value === "string") {
|
|
821
|
+
const trimmed = value.trim();
|
|
822
|
+
if (!trimmed) return [];
|
|
823
|
+
try {
|
|
824
|
+
const parsed = JSON.parse(trimmed);
|
|
825
|
+
if (Array.isArray(parsed)) {
|
|
826
|
+
return parsed;
|
|
827
|
+
}
|
|
828
|
+
if (parsed && typeof parsed === "object") {
|
|
829
|
+
return [parsed];
|
|
830
|
+
}
|
|
831
|
+
} catch {
|
|
832
|
+
return [{ assetUrl: trimmed }];
|
|
833
|
+
}
|
|
834
|
+
return [{ assetUrl: trimmed }];
|
|
835
|
+
}
|
|
836
|
+
if (typeof value === "object") {
|
|
837
|
+
return [value];
|
|
838
|
+
}
|
|
839
|
+
return [];
|
|
840
|
+
};
|
|
841
|
+
VideoView = (props) => {
|
|
842
|
+
const assets = parseAssets(props.value);
|
|
843
|
+
const asset = assets.find((item) => item.type?.toLowerCase() === "video") ?? assets[0];
|
|
844
|
+
if (!asset?.assetUrl) {
|
|
845
|
+
return null;
|
|
846
|
+
}
|
|
847
|
+
const resolvedAssetUrl = AssetUtility_default.resolveUrl(props.assetBaseUrl ?? props.apiBaseUrl, asset.assetUrl);
|
|
848
|
+
const resolvedPosterUrl = asset.posterUrl ? AssetUtility_default.resolveUrl(props.assetBaseUrl ?? props.apiBaseUrl, asset.posterUrl) : void 0;
|
|
849
|
+
const isHls = resolvedAssetUrl?.endsWith(".m3u8");
|
|
850
|
+
const isVideoFile = /\.(mp4|webm|ogg|mov)$/i.test(resolvedAssetUrl ?? "");
|
|
851
|
+
const titleText = typeof asset.title === "string" ? asset.title : typeof props.customProps?.title === "string" ? props.customProps.title : "Video";
|
|
852
|
+
const fileName = typeof asset.title === "string" ? asset.title : asset.assetUrl?.split("/").pop() || "video";
|
|
853
|
+
const containerStyle = {
|
|
854
|
+
width: props.width || "100%"
|
|
855
|
+
};
|
|
856
|
+
const renderMedia = () => {
|
|
857
|
+
if (resolvedAssetUrl && isVideoFile) {
|
|
858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-full overflow-hidden rounded-lg bg-black", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
859
|
+
"video",
|
|
860
|
+
{
|
|
861
|
+
controls: true,
|
|
862
|
+
playsInline: true,
|
|
863
|
+
preload: "metadata",
|
|
864
|
+
poster: resolvedPosterUrl,
|
|
865
|
+
className: "w-full h-auto max-h-[70vh] object-contain bg-black",
|
|
866
|
+
style: { width: "100%" },
|
|
867
|
+
children: [
|
|
868
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("source", { src: resolvedAssetUrl }),
|
|
869
|
+
"Your browser does not support the video tag."
|
|
870
|
+
]
|
|
871
|
+
}
|
|
872
|
+
) });
|
|
873
|
+
}
|
|
874
|
+
return null;
|
|
875
|
+
};
|
|
876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: containerStyle, className: "flex flex-col gap-2", children: [
|
|
877
|
+
titleText ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "font-medium text-sm", children: titleText }) : null,
|
|
878
|
+
renderMedia(),
|
|
879
|
+
resolvedAssetUrl ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
880
|
+
"a",
|
|
881
|
+
{
|
|
882
|
+
href: resolvedAssetUrl,
|
|
883
|
+
download: fileName,
|
|
884
|
+
target: "_blank",
|
|
885
|
+
rel: "noreferrer",
|
|
886
|
+
className: "inline-flex w-fit items-center rounded-md border border-slate-300 px-3 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50",
|
|
887
|
+
children: "Download video"
|
|
888
|
+
}
|
|
889
|
+
) : null
|
|
890
|
+
] });
|
|
891
|
+
};
|
|
892
|
+
VideoView_default = VideoView;
|
|
893
|
+
}
|
|
894
|
+
});
|
|
895
|
+
|
|
808
896
|
// src/components/controls/edit/MultilineTextInput.tsx
|
|
809
|
-
var import_react16,
|
|
897
|
+
var import_react16, import_jsx_runtime20, MultilineTextInput, MultilineTextInput_default;
|
|
810
898
|
var init_MultilineTextInput = __esm({
|
|
811
899
|
"src/components/controls/edit/MultilineTextInput.tsx"() {
|
|
812
900
|
"use strict";
|
|
813
901
|
import_react16 = __toESM(require("react"));
|
|
814
|
-
|
|
902
|
+
import_jsx_runtime20 = require("react/jsx-runtime");
|
|
815
903
|
MultilineTextInput = (props) => {
|
|
816
904
|
const textChangeHandler = (event) => {
|
|
817
905
|
const text = event.target.value;
|
|
@@ -830,11 +918,11 @@ var init_MultilineTextInput = __esm({
|
|
|
830
918
|
if (props.value !== void 0 && props.value !== null) {
|
|
831
919
|
value = props.value;
|
|
832
920
|
}
|
|
833
|
-
return /* @__PURE__ */ (0,
|
|
834
|
-
/* @__PURE__ */ (0,
|
|
921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: "block mb-1", children: [
|
|
922
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
835
923
|
" ",
|
|
836
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
837
|
-
/* @__PURE__ */ (0,
|
|
924
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
925
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
838
926
|
"textarea",
|
|
839
927
|
{
|
|
840
928
|
name: props.name,
|
|
@@ -851,7 +939,7 @@ var init_MultilineTextInput = __esm({
|
|
|
851
939
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
|
|
852
940
|
}
|
|
853
941
|
),
|
|
854
|
-
/* @__PURE__ */ (0,
|
|
942
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
855
943
|
] }) });
|
|
856
944
|
};
|
|
857
945
|
MultilineTextInput_default = MultilineTextInput;
|
|
@@ -859,12 +947,12 @@ var init_MultilineTextInput = __esm({
|
|
|
859
947
|
});
|
|
860
948
|
|
|
861
949
|
// src/components/controls/edit/LineTextInput.tsx
|
|
862
|
-
var import_react17,
|
|
950
|
+
var import_react17, import_jsx_runtime21, LineTextInput, LineTextInput_default;
|
|
863
951
|
var init_LineTextInput = __esm({
|
|
864
952
|
"src/components/controls/edit/LineTextInput.tsx"() {
|
|
865
953
|
"use strict";
|
|
866
954
|
import_react17 = __toESM(require("react"));
|
|
867
|
-
|
|
955
|
+
import_jsx_runtime21 = require("react/jsx-runtime");
|
|
868
956
|
LineTextInput = (props) => {
|
|
869
957
|
const textChangeHandler = (event) => {
|
|
870
958
|
const text = event.target.value;
|
|
@@ -883,11 +971,11 @@ var init_LineTextInput = __esm({
|
|
|
883
971
|
if (props.value !== void 0 && props.value !== null) {
|
|
884
972
|
value = props.value;
|
|
885
973
|
}
|
|
886
|
-
return /* @__PURE__ */ (0,
|
|
887
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react17.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { className: "block", children: [
|
|
975
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
888
976
|
" ",
|
|
889
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
890
|
-
/* @__PURE__ */ (0,
|
|
977
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
|
|
978
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
891
979
|
"input",
|
|
892
980
|
{
|
|
893
981
|
type: "text",
|
|
@@ -907,7 +995,7 @@ var init_LineTextInput = __esm({
|
|
|
907
995
|
`
|
|
908
996
|
}
|
|
909
997
|
),
|
|
910
|
-
/* @__PURE__ */ (0,
|
|
998
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
911
999
|
] }) });
|
|
912
1000
|
};
|
|
913
1001
|
LineTextInput_default = LineTextInput;
|
|
@@ -915,12 +1003,12 @@ var init_LineTextInput = __esm({
|
|
|
915
1003
|
});
|
|
916
1004
|
|
|
917
1005
|
// src/components/controls/edit/MoneyInput.tsx
|
|
918
|
-
var import_react18,
|
|
1006
|
+
var import_react18, import_jsx_runtime22, MoneyInput, MoneyInput_default;
|
|
919
1007
|
var init_MoneyInput = __esm({
|
|
920
1008
|
"src/components/controls/edit/MoneyInput.tsx"() {
|
|
921
1009
|
"use strict";
|
|
922
1010
|
import_react18 = __toESM(require("react"));
|
|
923
|
-
|
|
1011
|
+
import_jsx_runtime22 = require("react/jsx-runtime");
|
|
924
1012
|
MoneyInput = (props) => {
|
|
925
1013
|
const textChangeHandler = (event) => {
|
|
926
1014
|
const rawValue = event.target.value;
|
|
@@ -949,11 +1037,11 @@ var init_MoneyInput = __esm({
|
|
|
949
1037
|
e.preventDefault();
|
|
950
1038
|
}
|
|
951
1039
|
};
|
|
952
|
-
return /* @__PURE__ */ (0,
|
|
953
|
-
/* @__PURE__ */ (0,
|
|
1040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "block mb-1", children: [
|
|
1041
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
954
1042
|
" ",
|
|
955
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
956
|
-
/* @__PURE__ */ (0,
|
|
1043
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1044
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
957
1045
|
"input",
|
|
958
1046
|
{
|
|
959
1047
|
type: "number",
|
|
@@ -973,7 +1061,7 @@ var init_MoneyInput = __esm({
|
|
|
973
1061
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
|
|
974
1062
|
}
|
|
975
1063
|
),
|
|
976
|
-
/* @__PURE__ */ (0,
|
|
1064
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
977
1065
|
] }) });
|
|
978
1066
|
};
|
|
979
1067
|
MoneyInput_default = MoneyInput;
|
|
@@ -1006,19 +1094,20 @@ var init_InputControlType = __esm({
|
|
|
1006
1094
|
selectWithSearchInput: "selectWithSearchInput",
|
|
1007
1095
|
selectWithSearchPanel: "selectWithSearchPanel",
|
|
1008
1096
|
booleanSelect: "booleanSelect",
|
|
1009
|
-
switchInput: "switchInput"
|
|
1097
|
+
switchInput: "switchInput",
|
|
1098
|
+
videoInput: "videoInput"
|
|
1010
1099
|
};
|
|
1011
1100
|
InputControlType_default = InputControlType;
|
|
1012
1101
|
}
|
|
1013
1102
|
});
|
|
1014
1103
|
|
|
1015
1104
|
// src/components/controls/edit/Select.tsx
|
|
1016
|
-
var import_react19,
|
|
1105
|
+
var import_react19, import_jsx_runtime23, Select, Select_default;
|
|
1017
1106
|
var init_Select = __esm({
|
|
1018
1107
|
"src/components/controls/edit/Select.tsx"() {
|
|
1019
1108
|
"use strict";
|
|
1020
1109
|
import_react19 = require("react");
|
|
1021
|
-
|
|
1110
|
+
import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1022
1111
|
Select = (props) => {
|
|
1023
1112
|
const [list, setList] = (0, import_react19.useState)([]);
|
|
1024
1113
|
const getSafeValue = (val) => {
|
|
@@ -1076,11 +1165,11 @@ var init_Select = __esm({
|
|
|
1076
1165
|
props.dataSourceDependsOn
|
|
1077
1166
|
]);
|
|
1078
1167
|
const value = getSafeValue(props.value);
|
|
1079
|
-
return /* @__PURE__ */ (0,
|
|
1080
|
-
props.attributes?.label && /* @__PURE__ */ (0,
|
|
1168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "block", children: [
|
|
1169
|
+
props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
|
|
1081
1170
|
" ",
|
|
1082
|
-
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0,
|
|
1083
|
-
/* @__PURE__ */ (0,
|
|
1171
|
+
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1172
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1084
1173
|
"select",
|
|
1085
1174
|
{
|
|
1086
1175
|
name: props.name,
|
|
@@ -1091,16 +1180,16 @@ var init_Select = __esm({
|
|
|
1091
1180
|
disabled: props.attributes?.readOnly,
|
|
1092
1181
|
className: "peer select py-1.5 block w-full text-black rounded border-gray-300 shadow-sm\n focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none",
|
|
1093
1182
|
children: [
|
|
1094
|
-
/* @__PURE__ */ (0,
|
|
1183
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
|
|
1095
1184
|
list.map((item, index) => {
|
|
1096
1185
|
const keyField = props.dataKeyFieldName;
|
|
1097
1186
|
const textField = props.dataTextFieldName;
|
|
1098
|
-
return /* @__PURE__ */ (0,
|
|
1187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: item[keyField], children: item[textField] }, index);
|
|
1099
1188
|
})
|
|
1100
1189
|
]
|
|
1101
1190
|
}
|
|
1102
1191
|
),
|
|
1103
|
-
/* @__PURE__ */ (0,
|
|
1192
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
|
|
1104
1193
|
] });
|
|
1105
1194
|
};
|
|
1106
1195
|
Select_default = Select;
|
|
@@ -1108,12 +1197,12 @@ var init_Select = __esm({
|
|
|
1108
1197
|
});
|
|
1109
1198
|
|
|
1110
1199
|
// src/components/controls/edit/PercentageInput.tsx
|
|
1111
|
-
var import_react20,
|
|
1200
|
+
var import_react20, import_jsx_runtime24, PercentageInput, PercentageInput_default;
|
|
1112
1201
|
var init_PercentageInput = __esm({
|
|
1113
1202
|
"src/components/controls/edit/PercentageInput.tsx"() {
|
|
1114
1203
|
"use strict";
|
|
1115
1204
|
import_react20 = __toESM(require("react"));
|
|
1116
|
-
|
|
1205
|
+
import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1117
1206
|
PercentageInput = (props) => {
|
|
1118
1207
|
const textChangeHandler = (event) => {
|
|
1119
1208
|
const rawValue = event.target.value;
|
|
@@ -1142,11 +1231,11 @@ var init_PercentageInput = __esm({
|
|
|
1142
1231
|
e.preventDefault();
|
|
1143
1232
|
}
|
|
1144
1233
|
};
|
|
1145
|
-
return /* @__PURE__ */ (0,
|
|
1146
|
-
/* @__PURE__ */ (0,
|
|
1234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react20.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: "block mb-1", children: [
|
|
1235
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
|
|
1147
1236
|
" ",
|
|
1148
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1149
|
-
/* @__PURE__ */ (0,
|
|
1237
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1238
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1150
1239
|
"input",
|
|
1151
1240
|
{
|
|
1152
1241
|
type: "number",
|
|
@@ -1165,7 +1254,7 @@ var init_PercentageInput = __esm({
|
|
|
1165
1254
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
|
|
1166
1255
|
}
|
|
1167
1256
|
),
|
|
1168
|
-
/* @__PURE__ */ (0,
|
|
1257
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
1169
1258
|
] }) });
|
|
1170
1259
|
};
|
|
1171
1260
|
PercentageInput_default = PercentageInput;
|
|
@@ -1173,12 +1262,12 @@ var init_PercentageInput = __esm({
|
|
|
1173
1262
|
});
|
|
1174
1263
|
|
|
1175
1264
|
// src/components/controls/edit/PhoneInput.tsx
|
|
1176
|
-
var import_react21,
|
|
1265
|
+
var import_react21, import_jsx_runtime25, PhoneInput, PhoneInput_default;
|
|
1177
1266
|
var init_PhoneInput = __esm({
|
|
1178
1267
|
"src/components/controls/edit/PhoneInput.tsx"() {
|
|
1179
1268
|
"use strict";
|
|
1180
1269
|
import_react21 = __toESM(require("react"));
|
|
1181
|
-
|
|
1270
|
+
import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1182
1271
|
PhoneInput = (props) => {
|
|
1183
1272
|
const textChangeHandler = (event) => {
|
|
1184
1273
|
const text = event.target.value;
|
|
@@ -1197,13 +1286,13 @@ var init_PhoneInput = __esm({
|
|
|
1197
1286
|
if (props.value !== void 0 && props.value !== null) {
|
|
1198
1287
|
value = props.value;
|
|
1199
1288
|
}
|
|
1200
|
-
return /* @__PURE__ */ (0,
|
|
1201
|
-
/* @__PURE__ */ (0,
|
|
1289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react21.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "block mb-1", children: [
|
|
1290
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1202
1291
|
" ",
|
|
1203
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1204
|
-
/* @__PURE__ */ (0,
|
|
1205
|
-
/* @__PURE__ */ (0,
|
|
1206
|
-
/* @__PURE__ */ (0,
|
|
1292
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1293
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center rounded border ", children: [
|
|
1294
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "px-3", children: props.prefix }),
|
|
1295
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1207
1296
|
"input",
|
|
1208
1297
|
{
|
|
1209
1298
|
type: "text",
|
|
@@ -1221,7 +1310,7 @@ var init_PhoneInput = __esm({
|
|
|
1221
1310
|
}
|
|
1222
1311
|
)
|
|
1223
1312
|
] }),
|
|
1224
|
-
/* @__PURE__ */ (0,
|
|
1313
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
1225
1314
|
] }) });
|
|
1226
1315
|
};
|
|
1227
1316
|
PhoneInput_default = PhoneInput;
|
|
@@ -1229,12 +1318,12 @@ var init_PhoneInput = __esm({
|
|
|
1229
1318
|
});
|
|
1230
1319
|
|
|
1231
1320
|
// src/components/controls/edit/NumberInput.tsx
|
|
1232
|
-
var import_react22,
|
|
1321
|
+
var import_react22, import_jsx_runtime26, NumberInput, NumberInput_default;
|
|
1233
1322
|
var init_NumberInput = __esm({
|
|
1234
1323
|
"src/components/controls/edit/NumberInput.tsx"() {
|
|
1235
1324
|
"use strict";
|
|
1236
1325
|
import_react22 = __toESM(require("react"));
|
|
1237
|
-
|
|
1326
|
+
import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1238
1327
|
NumberInput = (props) => {
|
|
1239
1328
|
const textChangeHandler = (event) => {
|
|
1240
1329
|
const text = event.target.value;
|
|
@@ -1257,11 +1346,11 @@ var init_NumberInput = __esm({
|
|
|
1257
1346
|
if (props.value !== void 0 && props.value !== null) {
|
|
1258
1347
|
value = props.value;
|
|
1259
1348
|
}
|
|
1260
|
-
return /* @__PURE__ */ (0,
|
|
1261
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
1349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react22.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "block", children: [
|
|
1350
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
1262
1351
|
" ",
|
|
1263
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1264
|
-
/* @__PURE__ */ (0,
|
|
1352
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1353
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1265
1354
|
"input",
|
|
1266
1355
|
{
|
|
1267
1356
|
type: "number",
|
|
@@ -1280,7 +1369,7 @@ var init_NumberInput = __esm({
|
|
|
1280
1369
|
className: "peer py-1.5 block w-full rounded shadow-sm number-input input\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
1281
1370
|
}
|
|
1282
1371
|
),
|
|
1283
|
-
/* @__PURE__ */ (0,
|
|
1372
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
1284
1373
|
] }) });
|
|
1285
1374
|
};
|
|
1286
1375
|
NumberInput_default = NumberInput;
|
|
@@ -1288,12 +1377,12 @@ var init_NumberInput = __esm({
|
|
|
1288
1377
|
});
|
|
1289
1378
|
|
|
1290
1379
|
// src/components/controls/edit/CheckboxInput.tsx
|
|
1291
|
-
var import_react23,
|
|
1380
|
+
var import_react23, import_jsx_runtime27, CheckboxInput, CheckboxInput_default;
|
|
1292
1381
|
var init_CheckboxInput = __esm({
|
|
1293
1382
|
"src/components/controls/edit/CheckboxInput.tsx"() {
|
|
1294
1383
|
"use strict";
|
|
1295
1384
|
import_react23 = __toESM(require("react"));
|
|
1296
|
-
|
|
1385
|
+
import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1297
1386
|
CheckboxInput = (props) => {
|
|
1298
1387
|
const textChangeHandler = (event) => {
|
|
1299
1388
|
let text = event.target.checked;
|
|
@@ -1310,9 +1399,9 @@ var init_CheckboxInput = __esm({
|
|
|
1310
1399
|
if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
|
|
1311
1400
|
value = true;
|
|
1312
1401
|
}
|
|
1313
|
-
return /* @__PURE__ */ (0,
|
|
1314
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
1315
|
-
/* @__PURE__ */ (0,
|
|
1402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react23.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "mb-1", children: [
|
|
1403
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
|
1404
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1316
1405
|
"label",
|
|
1317
1406
|
{
|
|
1318
1407
|
htmlFor: props.name,
|
|
@@ -1320,9 +1409,9 @@ var init_CheckboxInput = __esm({
|
|
|
1320
1409
|
children: props.attributes.label
|
|
1321
1410
|
}
|
|
1322
1411
|
),
|
|
1323
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1412
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
1324
1413
|
] }),
|
|
1325
|
-
/* @__PURE__ */ (0,
|
|
1414
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1326
1415
|
"input",
|
|
1327
1416
|
{
|
|
1328
1417
|
type: "checkbox",
|
|
@@ -1339,7 +1428,7 @@ var init_CheckboxInput = __esm({
|
|
|
1339
1428
|
className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
1340
1429
|
}
|
|
1341
1430
|
),
|
|
1342
|
-
/* @__PURE__ */ (0,
|
|
1431
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
|
|
1343
1432
|
] }) });
|
|
1344
1433
|
};
|
|
1345
1434
|
CheckboxInput_default = CheckboxInput;
|
|
@@ -1347,12 +1436,12 @@ var init_CheckboxInput = __esm({
|
|
|
1347
1436
|
});
|
|
1348
1437
|
|
|
1349
1438
|
// src/components/controls/edit/OtpInput.tsx
|
|
1350
|
-
var import_react24,
|
|
1439
|
+
var import_react24, import_jsx_runtime28, OtpInput, OtpInput_default;
|
|
1351
1440
|
var init_OtpInput = __esm({
|
|
1352
1441
|
"src/components/controls/edit/OtpInput.tsx"() {
|
|
1353
1442
|
"use strict";
|
|
1354
1443
|
import_react24 = __toESM(require("react"));
|
|
1355
|
-
|
|
1444
|
+
import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1356
1445
|
OtpInput = (props) => {
|
|
1357
1446
|
const textChangeHandler = (event) => {
|
|
1358
1447
|
const text = event.target.value;
|
|
@@ -1374,11 +1463,11 @@ var init_OtpInput = __esm({
|
|
|
1374
1463
|
if (props.value !== void 0 && props.value !== null) {
|
|
1375
1464
|
value = props.value;
|
|
1376
1465
|
}
|
|
1377
|
-
return /* @__PURE__ */ (0,
|
|
1378
|
-
/* @__PURE__ */ (0,
|
|
1466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react24.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
|
|
1467
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1379
1468
|
" ",
|
|
1380
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1381
|
-
/* @__PURE__ */ (0,
|
|
1469
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1470
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1382
1471
|
"input",
|
|
1383
1472
|
{
|
|
1384
1473
|
type: "text",
|
|
@@ -1398,7 +1487,7 @@ var init_OtpInput = __esm({
|
|
|
1398
1487
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
|
|
1399
1488
|
}
|
|
1400
1489
|
),
|
|
1401
|
-
/* @__PURE__ */ (0,
|
|
1490
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
1402
1491
|
] }) });
|
|
1403
1492
|
};
|
|
1404
1493
|
OtpInput_default = OtpInput;
|
|
@@ -1406,12 +1495,12 @@ var init_OtpInput = __esm({
|
|
|
1406
1495
|
});
|
|
1407
1496
|
|
|
1408
1497
|
// src/components/controls/edit/DateTimeInput.tsx
|
|
1409
|
-
var import_react25,
|
|
1498
|
+
var import_react25, import_jsx_runtime29, DateTimeInput, DateTimeInput_default;
|
|
1410
1499
|
var init_DateTimeInput = __esm({
|
|
1411
1500
|
"src/components/controls/edit/DateTimeInput.tsx"() {
|
|
1412
1501
|
"use strict";
|
|
1413
1502
|
import_react25 = __toESM(require("react"));
|
|
1414
|
-
|
|
1503
|
+
import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1415
1504
|
DateTimeInput = (props) => {
|
|
1416
1505
|
const textChangeHandler = (event) => {
|
|
1417
1506
|
const localDate = new Date(event.target.value);
|
|
@@ -1443,12 +1532,12 @@ var init_DateTimeInput = __esm({
|
|
|
1443
1532
|
e.preventDefault();
|
|
1444
1533
|
}
|
|
1445
1534
|
};
|
|
1446
|
-
return /* @__PURE__ */ (0,
|
|
1447
|
-
/* @__PURE__ */ (0,
|
|
1535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react25.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block mb-1", children: [
|
|
1536
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
1448
1537
|
" ",
|
|
1449
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1450
|
-
/* @__PURE__ */ (0,
|
|
1451
|
-
/* @__PURE__ */ (0,
|
|
1538
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1539
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
1540
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1452
1541
|
"input",
|
|
1453
1542
|
{
|
|
1454
1543
|
type: "datetime-local",
|
|
@@ -1466,9 +1555,9 @@ var init_DateTimeInput = __esm({
|
|
|
1466
1555
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
1467
1556
|
}
|
|
1468
1557
|
),
|
|
1469
|
-
/* @__PURE__ */ (0,
|
|
1558
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: timeZoneAbbr })
|
|
1470
1559
|
] }),
|
|
1471
|
-
/* @__PURE__ */ (0,
|
|
1560
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
1472
1561
|
] }) });
|
|
1473
1562
|
};
|
|
1474
1563
|
DateTimeInput_default = DateTimeInput;
|
|
@@ -1476,12 +1565,12 @@ var init_DateTimeInput = __esm({
|
|
|
1476
1565
|
});
|
|
1477
1566
|
|
|
1478
1567
|
// src/components/controls/edit/ColorInput.tsx
|
|
1479
|
-
var import_react26,
|
|
1568
|
+
var import_react26, import_jsx_runtime30, ColorInput, ColorInput_default;
|
|
1480
1569
|
var init_ColorInput = __esm({
|
|
1481
1570
|
"src/components/controls/edit/ColorInput.tsx"() {
|
|
1482
1571
|
"use strict";
|
|
1483
1572
|
import_react26 = __toESM(require("react"));
|
|
1484
|
-
|
|
1573
|
+
import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1485
1574
|
ColorInput = (props) => {
|
|
1486
1575
|
const [color, setColor] = import_react26.default.useState("#3b82f6");
|
|
1487
1576
|
(0, import_react26.useEffect)(() => {
|
|
@@ -1503,11 +1592,11 @@ var init_ColorInput = __esm({
|
|
|
1503
1592
|
});
|
|
1504
1593
|
}
|
|
1505
1594
|
};
|
|
1506
|
-
return /* @__PURE__ */ (0,
|
|
1507
|
-
/* @__PURE__ */ (0,
|
|
1595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block mb-1", children: [
|
|
1596
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
1508
1597
|
" ",
|
|
1509
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1510
|
-
/* @__PURE__ */ (0,
|
|
1598
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
1599
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1511
1600
|
"input",
|
|
1512
1601
|
{
|
|
1513
1602
|
type: "color",
|
|
@@ -1520,7 +1609,7 @@ var init_ColorInput = __esm({
|
|
|
1520
1609
|
className: `w-[78px] h-12 block cursor-pointer`
|
|
1521
1610
|
}
|
|
1522
1611
|
),
|
|
1523
|
-
props?.attributes?.errorMessage && /* @__PURE__ */ (0,
|
|
1612
|
+
props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
|
|
1524
1613
|
] });
|
|
1525
1614
|
};
|
|
1526
1615
|
ColorInput_default = ColorInput;
|
|
@@ -1528,13 +1617,13 @@ var init_ColorInput = __esm({
|
|
|
1528
1617
|
});
|
|
1529
1618
|
|
|
1530
1619
|
// src/components/controls/edit/SelectWithSearchInput.tsx
|
|
1531
|
-
var import_react27,
|
|
1620
|
+
var import_react27, import_jsx_runtime31, SelectWithSearchInput, SelectWithSearchInput_default;
|
|
1532
1621
|
var init_SelectWithSearchInput = __esm({
|
|
1533
1622
|
"src/components/controls/edit/SelectWithSearchInput.tsx"() {
|
|
1534
1623
|
"use strict";
|
|
1535
1624
|
"use client";
|
|
1536
1625
|
import_react27 = require("react");
|
|
1537
|
-
|
|
1626
|
+
import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1538
1627
|
SelectWithSearchInput = (props) => {
|
|
1539
1628
|
const [isOpen, setIsOpen] = (0, import_react27.useState)(false);
|
|
1540
1629
|
const [searchTerm, setSearchTerm] = (0, import_react27.useState)("");
|
|
@@ -1605,15 +1694,15 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1605
1694
|
});
|
|
1606
1695
|
}
|
|
1607
1696
|
}, [highlightedIndex]);
|
|
1608
|
-
return /* @__PURE__ */ (0,
|
|
1609
|
-
/* @__PURE__ */ (0,
|
|
1697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
|
|
1698
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { children: [
|
|
1610
1699
|
props.attributes?.label,
|
|
1611
1700
|
" ",
|
|
1612
1701
|
" ",
|
|
1613
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
1702
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
1614
1703
|
] }),
|
|
1615
|
-
/* @__PURE__ */ (0,
|
|
1616
|
-
/* @__PURE__ */ (0,
|
|
1704
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
|
|
1705
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1617
1706
|
"input",
|
|
1618
1707
|
{
|
|
1619
1708
|
type: "text",
|
|
@@ -1629,13 +1718,13 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1629
1718
|
className: "peer py-1.5 select block w-full text-black rounded border-gray-300 shadow-sm\n focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
1630
1719
|
}
|
|
1631
1720
|
),
|
|
1632
|
-
/* @__PURE__ */ (0,
|
|
1721
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1633
1722
|
"button",
|
|
1634
1723
|
{
|
|
1635
1724
|
type: "button",
|
|
1636
1725
|
onClick: () => setIsOpen(!isOpen),
|
|
1637
1726
|
className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
|
|
1638
|
-
children: /* @__PURE__ */ (0,
|
|
1727
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1639
1728
|
"svg",
|
|
1640
1729
|
{
|
|
1641
1730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1644,7 +1733,7 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1644
1733
|
strokeWidth: 1.5,
|
|
1645
1734
|
stroke: "currentColor",
|
|
1646
1735
|
className: "w-full h-full",
|
|
1647
|
-
children: /* @__PURE__ */ (0,
|
|
1736
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1648
1737
|
"path",
|
|
1649
1738
|
{
|
|
1650
1739
|
strokeLinecap: "round",
|
|
@@ -1657,12 +1746,12 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1657
1746
|
}
|
|
1658
1747
|
)
|
|
1659
1748
|
] }),
|
|
1660
|
-
isOpen && /* @__PURE__ */ (0,
|
|
1749
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1661
1750
|
"div",
|
|
1662
1751
|
{
|
|
1663
1752
|
ref: dropdownRef,
|
|
1664
1753
|
className: "absolute z-10 mt-2 w-full bg-white border border-gray-200 rounded-md shadow-lg max-h-48 overflow-y-auto",
|
|
1665
|
-
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0,
|
|
1754
|
+
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1666
1755
|
"button",
|
|
1667
1756
|
{
|
|
1668
1757
|
onClick: (e) => handleSelect(e, item),
|
|
@@ -1670,10 +1759,10 @@ var init_SelectWithSearchInput = __esm({
|
|
|
1670
1759
|
role: "option",
|
|
1671
1760
|
tabIndex: -1,
|
|
1672
1761
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
1673
|
-
children: /* @__PURE__ */ (0,
|
|
1762
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: item[props.dataTextFieldName] })
|
|
1674
1763
|
},
|
|
1675
1764
|
item[props.dataKeyFieldName]
|
|
1676
|
-
)) : /* @__PURE__ */ (0,
|
|
1765
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
|
|
1677
1766
|
}
|
|
1678
1767
|
)
|
|
1679
1768
|
] });
|
|
@@ -1761,7 +1850,7 @@ var init_StyleTypes = __esm({
|
|
|
1761
1850
|
});
|
|
1762
1851
|
|
|
1763
1852
|
// src/components/ClientButton.tsx
|
|
1764
|
-
var import_react28,
|
|
1853
|
+
var import_react28, import_jsx_runtime32, ClientButton, ClientButton_default;
|
|
1765
1854
|
var init_ClientButton = __esm({
|
|
1766
1855
|
"src/components/ClientButton.tsx"() {
|
|
1767
1856
|
"use strict";
|
|
@@ -1769,7 +1858,7 @@ var init_ClientButton = __esm({
|
|
|
1769
1858
|
import_react28 = __toESM(require("react"));
|
|
1770
1859
|
init_ToastService();
|
|
1771
1860
|
init_StyleTypes();
|
|
1772
|
-
|
|
1861
|
+
import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1773
1862
|
ClientButton = (props) => {
|
|
1774
1863
|
const execute = async (event) => {
|
|
1775
1864
|
if (props.onClick !== void 0) {
|
|
@@ -1779,7 +1868,7 @@ var init_ClientButton = __esm({
|
|
|
1779
1868
|
}
|
|
1780
1869
|
};
|
|
1781
1870
|
let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
|
|
1782
|
-
return /* @__PURE__ */ (0,
|
|
1871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1783
1872
|
"button",
|
|
1784
1873
|
{
|
|
1785
1874
|
type: "button",
|
|
@@ -1794,7 +1883,7 @@ var init_ClientButton = __esm({
|
|
|
1794
1883
|
});
|
|
1795
1884
|
|
|
1796
1885
|
// src/components/Confirm.tsx
|
|
1797
|
-
var import_react29,
|
|
1886
|
+
var import_react29, import_jsx_runtime33, Confirm, Confirm_default;
|
|
1798
1887
|
var init_Confirm = __esm({
|
|
1799
1888
|
"src/components/Confirm.tsx"() {
|
|
1800
1889
|
"use strict";
|
|
@@ -1802,7 +1891,7 @@ var init_Confirm = __esm({
|
|
|
1802
1891
|
import_react29 = require("react");
|
|
1803
1892
|
init_ClientButton();
|
|
1804
1893
|
init_StyleTypes();
|
|
1805
|
-
|
|
1894
|
+
import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1806
1895
|
Confirm = ({ message, onConfirm, onCancel }) => {
|
|
1807
1896
|
const [showModal, setShowModal] = (0, import_react29.useState)(true);
|
|
1808
1897
|
const handleConfirmAction = () => {
|
|
@@ -1817,13 +1906,13 @@ var init_Confirm = __esm({
|
|
|
1817
1906
|
onCancel();
|
|
1818
1907
|
}
|
|
1819
1908
|
};
|
|
1820
|
-
return /* @__PURE__ */ (0,
|
|
1821
|
-
/* @__PURE__ */ (0,
|
|
1822
|
-
/* @__PURE__ */ (0,
|
|
1823
|
-
/* @__PURE__ */ (0,
|
|
1824
|
-
/* @__PURE__ */ (0,
|
|
1825
|
-
/* @__PURE__ */ (0,
|
|
1826
|
-
/* @__PURE__ */ (0,
|
|
1909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: showModal && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "fixed inset-0 flex items-center justify-center z-50", children: [
|
|
1910
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute inset-0 bg-black opacity-70" }),
|
|
1911
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "bg-white rounded-md p-6 w-2/6 shadow border z-50", children: [
|
|
1912
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-xl font-medium mb-4", children: "Confirmation" }),
|
|
1913
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "mb-4", children: message }),
|
|
1914
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex justify-end gap-8", children: [
|
|
1915
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1827
1916
|
ClientButton_default,
|
|
1828
1917
|
{
|
|
1829
1918
|
onClick: handleCancelAction,
|
|
@@ -1831,7 +1920,7 @@ var init_Confirm = __esm({
|
|
|
1831
1920
|
children: "Cancel"
|
|
1832
1921
|
}
|
|
1833
1922
|
),
|
|
1834
|
-
/* @__PURE__ */ (0,
|
|
1923
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1835
1924
|
ClientButton_default,
|
|
1836
1925
|
{
|
|
1837
1926
|
onClick: handleConfirmAction,
|
|
@@ -1849,7 +1938,7 @@ var init_Confirm = __esm({
|
|
|
1849
1938
|
});
|
|
1850
1939
|
|
|
1851
1940
|
// src/components/Button.tsx
|
|
1852
|
-
var import_react30,
|
|
1941
|
+
var import_react30, import_jsx_runtime34, Button, Button_default;
|
|
1853
1942
|
var init_Button = __esm({
|
|
1854
1943
|
"src/components/Button.tsx"() {
|
|
1855
1944
|
"use strict";
|
|
@@ -1858,7 +1947,7 @@ var init_Button = __esm({
|
|
|
1858
1947
|
init_ToastService();
|
|
1859
1948
|
init_StyleTypes();
|
|
1860
1949
|
init_Confirm();
|
|
1861
|
-
|
|
1950
|
+
import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1862
1951
|
Button = (props) => {
|
|
1863
1952
|
const [inProgress, setInProgress] = (0, import_react30.useState)(false);
|
|
1864
1953
|
const [isActionPerformed, setIsActionPerformed] = (0, import_react30.useState)(false);
|
|
@@ -1907,14 +1996,14 @@ var init_Button = __esm({
|
|
|
1907
1996
|
return new Promise((resolve) => {
|
|
1908
1997
|
const onConfirm = () => resolve(true);
|
|
1909
1998
|
const onCancel = () => resolve(false);
|
|
1910
|
-
setShowModal(/* @__PURE__ */ (0,
|
|
1999
|
+
setShowModal(/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Confirm_default, { message: props.confirmationMessage, onConfirm, onCancel }));
|
|
1911
2000
|
});
|
|
1912
2001
|
};
|
|
1913
2002
|
let buttonClass = props.ButtonType ? buttonClasses.get(props.ButtonType) : buttonClasses.get("Primary" /* Solid */);
|
|
1914
2003
|
let progressClass = props.ButtonType ? progressClasses.get(props.ButtonType) : progressClasses.get("Primary" /* Solid */);
|
|
1915
2004
|
const isDisabled = inProgress || isActionPerformed && props.oneTimeAction;
|
|
1916
|
-
return /* @__PURE__ */ (0,
|
|
1917
|
-
/* @__PURE__ */ (0,
|
|
2005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react30.default.Fragment, { children: [
|
|
2006
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1918
2007
|
"button",
|
|
1919
2008
|
{
|
|
1920
2009
|
type: "submit",
|
|
@@ -1924,9 +2013,9 @@ var init_Button = __esm({
|
|
|
1924
2013
|
className: buttonClass + " relative " + props.className,
|
|
1925
2014
|
children: [
|
|
1926
2015
|
isActionPerformed && props.oneTimeAction && responseMessage ? responseMessage : props.children,
|
|
1927
|
-
inProgress && /* @__PURE__ */ (0,
|
|
1928
|
-
/* @__PURE__ */ (0,
|
|
1929
|
-
/* @__PURE__ */ (0,
|
|
2016
|
+
inProgress && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react30.default.Fragment, { children: props.hideProgressIndicator === true ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "absolute bottom-0 left-0 h-0.5 bg-gray-400 rounded animate-progress" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("svg", { className: "animate-spin ml-2 mr-3 h-5 w-5 " + progressClass, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
|
|
2017
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
2018
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
|
|
1930
2019
|
] }) })
|
|
1931
2020
|
]
|
|
1932
2021
|
}
|
|
@@ -1939,14 +2028,14 @@ var init_Button = __esm({
|
|
|
1939
2028
|
});
|
|
1940
2029
|
|
|
1941
2030
|
// src/components/controls/edit/SelectWithSearchPanel.tsx
|
|
1942
|
-
var import_react31,
|
|
2031
|
+
var import_react31, import_jsx_runtime35, SelectWithSearchPanel, SelectWithSearchPanel_default;
|
|
1943
2032
|
var init_SelectWithSearchPanel = __esm({
|
|
1944
2033
|
"src/components/controls/edit/SelectWithSearchPanel.tsx"() {
|
|
1945
2034
|
"use strict";
|
|
1946
2035
|
"use client";
|
|
1947
2036
|
init_Button();
|
|
1948
2037
|
import_react31 = __toESM(require("react"));
|
|
1949
|
-
|
|
2038
|
+
import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1950
2039
|
SelectWithSearchPanel = (props) => {
|
|
1951
2040
|
const [isOpen, setIsOpen] = (0, import_react31.useState)(false);
|
|
1952
2041
|
const [searchTerm, setSearchTerm] = (0, import_react31.useState)("");
|
|
@@ -2082,14 +2171,14 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
2082
2171
|
console.log("Form Data:", formData);
|
|
2083
2172
|
return formData;
|
|
2084
2173
|
}, []);
|
|
2085
|
-
return /* @__PURE__ */ (0,
|
|
2086
|
-
/* @__PURE__ */ (0,
|
|
2174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative", children: [
|
|
2175
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
|
|
2087
2176
|
props.attributes?.label,
|
|
2088
2177
|
" ",
|
|
2089
2178
|
" ",
|
|
2090
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2179
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
2091
2180
|
] }),
|
|
2092
|
-
/* @__PURE__ */ (0,
|
|
2181
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2093
2182
|
"input",
|
|
2094
2183
|
{
|
|
2095
2184
|
type: "text",
|
|
@@ -2103,14 +2192,14 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
2103
2192
|
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
|
|
2104
2193
|
}
|
|
2105
2194
|
) }),
|
|
2106
|
-
/* @__PURE__ */ (0,
|
|
2107
|
-
/* @__PURE__ */ (0,
|
|
2108
|
-
/* @__PURE__ */ (0,
|
|
2195
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react31.default.Fragment, { children: [
|
|
2196
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
|
|
2197
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("h5", { className: "text-md text-white font-medium", children: [
|
|
2109
2198
|
"Select a",
|
|
2110
2199
|
" ",
|
|
2111
2200
|
props.attributes?.label || props.attributes?.heading
|
|
2112
2201
|
] }) }),
|
|
2113
|
-
/* @__PURE__ */ (0,
|
|
2202
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2114
2203
|
"button",
|
|
2115
2204
|
{
|
|
2116
2205
|
type: "button",
|
|
@@ -2123,12 +2212,12 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
2123
2212
|
}
|
|
2124
2213
|
) })
|
|
2125
2214
|
] }),
|
|
2126
|
-
isCreateOpen && /* @__PURE__ */ (0,
|
|
2127
|
-
/* @__PURE__ */ (0,
|
|
2215
|
+
isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
|
|
2216
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("h5", { className: "text-md font-medium text-white", children: [
|
|
2128
2217
|
"Create New ",
|
|
2129
2218
|
props.attributes?.label
|
|
2130
2219
|
] }) }),
|
|
2131
|
-
/* @__PURE__ */ (0,
|
|
2220
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2132
2221
|
"button",
|
|
2133
2222
|
{
|
|
2134
2223
|
type: "button",
|
|
@@ -2137,10 +2226,10 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
2137
2226
|
children: "Close"
|
|
2138
2227
|
}
|
|
2139
2228
|
) }),
|
|
2140
|
-
/* @__PURE__ */ (0,
|
|
2141
|
-
props.createFields?.map((field) => /* @__PURE__ */ (0,
|
|
2142
|
-
/* @__PURE__ */ (0,
|
|
2143
|
-
/* @__PURE__ */ (0,
|
|
2229
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "p-4", children: [
|
|
2230
|
+
props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mb-4", children: [
|
|
2231
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
|
|
2232
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2144
2233
|
"input",
|
|
2145
2234
|
{
|
|
2146
2235
|
type: field.type,
|
|
@@ -2156,7 +2245,7 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
2156
2245
|
}
|
|
2157
2246
|
)
|
|
2158
2247
|
] }, field.name)),
|
|
2159
|
-
/* @__PURE__ */ (0,
|
|
2248
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Button_default, { onClick: async () => {
|
|
2160
2249
|
handleSaveModal();
|
|
2161
2250
|
return { isSuccessful: true };
|
|
2162
2251
|
}, className: "w-full", children: [
|
|
@@ -2165,13 +2254,13 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
2165
2254
|
] })
|
|
2166
2255
|
] })
|
|
2167
2256
|
] }),
|
|
2168
|
-
/* @__PURE__ */ (0,
|
|
2257
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2169
2258
|
"div",
|
|
2170
2259
|
{
|
|
2171
2260
|
ref: listRef,
|
|
2172
2261
|
className: "fixed z-10 right-0 mt-[130px] top-0 w-1/4 bg-white border-l border-gray-200 shadow-lg overflow-y-auto",
|
|
2173
2262
|
style: { height: "calc(100vh - 130px)" },
|
|
2174
|
-
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0,
|
|
2263
|
+
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2175
2264
|
"button",
|
|
2176
2265
|
{
|
|
2177
2266
|
onClick: (e) => {
|
|
@@ -2181,9 +2270,9 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
2181
2270
|
role: "option",
|
|
2182
2271
|
tabIndex: -1,
|
|
2183
2272
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
2184
|
-
children: /* @__PURE__ */ (0,
|
|
2273
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
|
|
2185
2274
|
}
|
|
2186
|
-
) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0,
|
|
2275
|
+
) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
|
|
2187
2276
|
}
|
|
2188
2277
|
)
|
|
2189
2278
|
] }) })
|
|
@@ -2194,12 +2283,12 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
2194
2283
|
});
|
|
2195
2284
|
|
|
2196
2285
|
// src/components/controls/edit/BooleanSelect.tsx
|
|
2197
|
-
var import_react32,
|
|
2286
|
+
var import_react32, import_jsx_runtime36, BooleanSelect, BooleanSelect_default;
|
|
2198
2287
|
var init_BooleanSelect = __esm({
|
|
2199
2288
|
"src/components/controls/edit/BooleanSelect.tsx"() {
|
|
2200
2289
|
"use strict";
|
|
2201
2290
|
import_react32 = __toESM(require("react"));
|
|
2202
|
-
|
|
2291
|
+
import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2203
2292
|
BooleanSelect = (props) => {
|
|
2204
2293
|
const [list, setList] = (0, import_react32.useState)();
|
|
2205
2294
|
const textChangeHandler = (event) => {
|
|
@@ -2248,11 +2337,11 @@ var init_BooleanSelect = __esm({
|
|
|
2248
2337
|
if (props.value !== void 0 && props.value !== null) {
|
|
2249
2338
|
value = props.value;
|
|
2250
2339
|
}
|
|
2251
|
-
return /* @__PURE__ */ (0,
|
|
2252
|
-
/* @__PURE__ */ (0,
|
|
2340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react32.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { className: "block", children: [
|
|
2341
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
2253
2342
|
" ",
|
|
2254
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2255
|
-
/* @__PURE__ */ (0,
|
|
2343
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2344
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2256
2345
|
"select",
|
|
2257
2346
|
{
|
|
2258
2347
|
name: props.name,
|
|
@@ -2264,9 +2353,9 @@ var init_BooleanSelect = __esm({
|
|
|
2264
2353
|
disabled: props?.attributes?.readOnly,
|
|
2265
2354
|
className: "peer mt-1 py-1.5 block w-full text-black rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n ",
|
|
2266
2355
|
children: [
|
|
2267
|
-
/* @__PURE__ */ (0,
|
|
2356
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
|
|
2268
2357
|
list && list.map((item, i) => {
|
|
2269
|
-
return /* @__PURE__ */ (0,
|
|
2358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2270
2359
|
"option",
|
|
2271
2360
|
{
|
|
2272
2361
|
className: "fac-select-option",
|
|
@@ -2279,7 +2368,7 @@ var init_BooleanSelect = __esm({
|
|
|
2279
2368
|
]
|
|
2280
2369
|
}
|
|
2281
2370
|
),
|
|
2282
|
-
/* @__PURE__ */ (0,
|
|
2371
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
2283
2372
|
] }) });
|
|
2284
2373
|
};
|
|
2285
2374
|
BooleanSelect_default = BooleanSelect;
|
|
@@ -2287,12 +2376,12 @@ var init_BooleanSelect = __esm({
|
|
|
2287
2376
|
});
|
|
2288
2377
|
|
|
2289
2378
|
// src/components/controls/edit/EmailInput.tsx
|
|
2290
|
-
var import_react33,
|
|
2379
|
+
var import_react33, import_jsx_runtime37, EmailInput, EmailInput_default;
|
|
2291
2380
|
var init_EmailInput = __esm({
|
|
2292
2381
|
"src/components/controls/edit/EmailInput.tsx"() {
|
|
2293
2382
|
"use strict";
|
|
2294
2383
|
import_react33 = __toESM(require("react"));
|
|
2295
|
-
|
|
2384
|
+
import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2296
2385
|
EmailInput = (props) => {
|
|
2297
2386
|
const textChangeHandler = (event) => {
|
|
2298
2387
|
const text = event.target.value;
|
|
@@ -2317,11 +2406,11 @@ var init_EmailInput = __esm({
|
|
|
2317
2406
|
if (props.value !== void 0 && props.value !== null) {
|
|
2318
2407
|
value = props.value;
|
|
2319
2408
|
}
|
|
2320
|
-
return /* @__PURE__ */ (0,
|
|
2321
|
-
/* @__PURE__ */ (0,
|
|
2409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { className: "block mb-1", children: [
|
|
2410
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
|
|
2322
2411
|
" ",
|
|
2323
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2324
|
-
/* @__PURE__ */ (0,
|
|
2412
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2413
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2325
2414
|
"input",
|
|
2326
2415
|
{
|
|
2327
2416
|
type: "email",
|
|
@@ -2337,7 +2426,7 @@ var init_EmailInput = __esm({
|
|
|
2337
2426
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
|
|
2338
2427
|
}
|
|
2339
2428
|
),
|
|
2340
|
-
/* @__PURE__ */ (0,
|
|
2429
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
2341
2430
|
] }) });
|
|
2342
2431
|
};
|
|
2343
2432
|
EmailInput_default = EmailInput;
|
|
@@ -2345,13 +2434,13 @@ var init_EmailInput = __esm({
|
|
|
2345
2434
|
});
|
|
2346
2435
|
|
|
2347
2436
|
// src/components/controls/edit/TimeInput.tsx
|
|
2348
|
-
var import_react34,
|
|
2437
|
+
var import_react34, import_jsx_runtime38, TimeInput, TimeInput_default;
|
|
2349
2438
|
var init_TimeInput = __esm({
|
|
2350
2439
|
"src/components/controls/edit/TimeInput.tsx"() {
|
|
2351
2440
|
"use strict";
|
|
2352
2441
|
"use client";
|
|
2353
2442
|
import_react34 = __toESM(require("react"));
|
|
2354
|
-
|
|
2443
|
+
import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2355
2444
|
TimeInput = (props) => {
|
|
2356
2445
|
const timeChangeHandler = (event) => {
|
|
2357
2446
|
const timeValue = event.target.value;
|
|
@@ -2364,11 +2453,11 @@ var init_TimeInput = __esm({
|
|
|
2364
2453
|
});
|
|
2365
2454
|
}
|
|
2366
2455
|
};
|
|
2367
|
-
return /* @__PURE__ */ (0,
|
|
2368
|
-
/* @__PURE__ */ (0,
|
|
2456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "block mb-1", children: [
|
|
2457
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
2369
2458
|
" ",
|
|
2370
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2371
|
-
/* @__PURE__ */ (0,
|
|
2459
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
2460
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2372
2461
|
"input",
|
|
2373
2462
|
{
|
|
2374
2463
|
type: "time",
|
|
@@ -2381,7 +2470,7 @@ var init_TimeInput = __esm({
|
|
|
2381
2470
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none"
|
|
2382
2471
|
}
|
|
2383
2472
|
) }),
|
|
2384
|
-
/* @__PURE__ */ (0,
|
|
2473
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
|
|
2385
2474
|
] }) });
|
|
2386
2475
|
};
|
|
2387
2476
|
TimeInput_default = TimeInput;
|
|
@@ -2396,7 +2485,7 @@ function Hyperlink(props) {
|
|
|
2396
2485
|
if (target == "_blank") {
|
|
2397
2486
|
additionalProps.rel = "noopener noreferrer";
|
|
2398
2487
|
}
|
|
2399
|
-
return /* @__PURE__ */ (0,
|
|
2488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: props.href ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2400
2489
|
import_link.default,
|
|
2401
2490
|
{
|
|
2402
2491
|
href: props.href,
|
|
@@ -2406,65 +2495,65 @@ function Hyperlink(props) {
|
|
|
2406
2495
|
target,
|
|
2407
2496
|
children: props.children
|
|
2408
2497
|
}
|
|
2409
|
-
) : props.isHeading ? /* @__PURE__ */ (0,
|
|
2498
|
+
) : props.isHeading ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h5", { className: props.className + "inline-block", children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: props.className, children: props.children }) });
|
|
2410
2499
|
}
|
|
2411
|
-
var import_link,
|
|
2500
|
+
var import_link, import_jsx_runtime39;
|
|
2412
2501
|
var init_Hyperlink = __esm({
|
|
2413
2502
|
"src/components/dataForm/Hyperlink.tsx"() {
|
|
2414
2503
|
"use strict";
|
|
2415
2504
|
import_link = __toESM(require("next/link"));
|
|
2416
2505
|
init_StyleTypes();
|
|
2417
|
-
|
|
2506
|
+
import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2418
2507
|
}
|
|
2419
2508
|
});
|
|
2420
2509
|
|
|
2421
2510
|
// src/svg/chevron-updown.tsx
|
|
2422
|
-
var
|
|
2511
|
+
var import_jsx_runtime40, ChevronUpDown, chevron_updown_default;
|
|
2423
2512
|
var init_chevron_updown = __esm({
|
|
2424
2513
|
"src/svg/chevron-updown.tsx"() {
|
|
2425
2514
|
"use strict";
|
|
2426
|
-
|
|
2515
|
+
import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2427
2516
|
ChevronUpDown = (props) => {
|
|
2428
|
-
return /* @__PURE__ */ (0,
|
|
2517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
|
|
2429
2518
|
};
|
|
2430
2519
|
chevron_updown_default = ChevronUpDown;
|
|
2431
2520
|
}
|
|
2432
2521
|
});
|
|
2433
2522
|
|
|
2434
2523
|
// src/svg/chevron-down.tsx
|
|
2435
|
-
var
|
|
2524
|
+
var import_jsx_runtime41, ChevronDown, chevron_down_default;
|
|
2436
2525
|
var init_chevron_down = __esm({
|
|
2437
2526
|
"src/svg/chevron-down.tsx"() {
|
|
2438
2527
|
"use strict";
|
|
2439
|
-
|
|
2528
|
+
import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2440
2529
|
ChevronDown = (props) => {
|
|
2441
|
-
return /* @__PURE__ */ (0,
|
|
2530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
|
|
2442
2531
|
};
|
|
2443
2532
|
chevron_down_default = ChevronDown;
|
|
2444
2533
|
}
|
|
2445
2534
|
});
|
|
2446
2535
|
|
|
2447
2536
|
// src/svg/chevron-up.tsx
|
|
2448
|
-
var
|
|
2537
|
+
var import_jsx_runtime42, ChevronUp, chevron_up_default;
|
|
2449
2538
|
var init_chevron_up = __esm({
|
|
2450
2539
|
"src/svg/chevron-up.tsx"() {
|
|
2451
2540
|
"use strict";
|
|
2452
|
-
|
|
2541
|
+
import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2453
2542
|
ChevronUp = (props) => {
|
|
2454
|
-
return /* @__PURE__ */ (0,
|
|
2543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
|
|
2455
2544
|
};
|
|
2456
2545
|
chevron_up_default = ChevronUp;
|
|
2457
2546
|
}
|
|
2458
2547
|
});
|
|
2459
2548
|
|
|
2460
2549
|
// src/svg/plus.tsx
|
|
2461
|
-
var
|
|
2550
|
+
var import_jsx_runtime43, Plus, plus_default;
|
|
2462
2551
|
var init_plus = __esm({
|
|
2463
2552
|
"src/svg/plus.tsx"() {
|
|
2464
2553
|
"use strict";
|
|
2465
|
-
|
|
2554
|
+
import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2466
2555
|
Plus = (props) => {
|
|
2467
|
-
return /* @__PURE__ */ (0,
|
|
2556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
|
|
2468
2557
|
};
|
|
2469
2558
|
plus_default = Plus;
|
|
2470
2559
|
}
|
|
@@ -2490,26 +2579,26 @@ var init_Icons = __esm({
|
|
|
2490
2579
|
});
|
|
2491
2580
|
|
|
2492
2581
|
// src/svg/Icon.tsx
|
|
2493
|
-
var
|
|
2582
|
+
var import_jsx_runtime44, Icon, Icon_default;
|
|
2494
2583
|
var init_Icon = __esm({
|
|
2495
2584
|
"src/svg/Icon.tsx"() {
|
|
2496
2585
|
"use strict";
|
|
2497
2586
|
init_Icons();
|
|
2498
|
-
|
|
2587
|
+
import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2499
2588
|
Icon = ({ name, className, ...props }) => {
|
|
2500
2589
|
const IconComponent = Icons_default[name];
|
|
2501
2590
|
if (!IconComponent) {
|
|
2502
2591
|
console.error(`Icon "${name}" not found.`);
|
|
2503
2592
|
return null;
|
|
2504
2593
|
}
|
|
2505
|
-
return /* @__PURE__ */ (0,
|
|
2594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IconComponent, { ...props, className });
|
|
2506
2595
|
};
|
|
2507
2596
|
Icon_default = Icon;
|
|
2508
2597
|
}
|
|
2509
2598
|
});
|
|
2510
2599
|
|
|
2511
2600
|
// src/components/controls/edit/AssetUpload.tsx
|
|
2512
|
-
var import_react35,
|
|
2601
|
+
var import_react35, import_jsx_runtime45, AssetUpload, AssetUpload_default;
|
|
2513
2602
|
var init_AssetUpload = __esm({
|
|
2514
2603
|
"src/components/controls/edit/AssetUpload.tsx"() {
|
|
2515
2604
|
"use strict";
|
|
@@ -2520,7 +2609,7 @@ var init_AssetUpload = __esm({
|
|
|
2520
2609
|
init_AssetUtility();
|
|
2521
2610
|
init_Hyperlink();
|
|
2522
2611
|
init_Icon();
|
|
2523
|
-
|
|
2612
|
+
import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2524
2613
|
AssetUpload = (props) => {
|
|
2525
2614
|
const isDisabled = props.attributes?.disable ?? false;
|
|
2526
2615
|
let allValues = [];
|
|
@@ -2617,10 +2706,10 @@ var init_AssetUpload = __esm({
|
|
|
2617
2706
|
}
|
|
2618
2707
|
return false;
|
|
2619
2708
|
};
|
|
2620
|
-
return /* @__PURE__ */ (0,
|
|
2621
|
-
/* @__PURE__ */ (0,
|
|
2622
|
-
/* @__PURE__ */ (0,
|
|
2623
|
-
/* @__PURE__ */ (0,
|
|
2709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react35.default.Fragment, { children: [
|
|
2710
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
|
|
2711
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
|
|
2712
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2624
2713
|
ClientButton_default,
|
|
2625
2714
|
{
|
|
2626
2715
|
className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
|
|
@@ -2630,7 +2719,7 @@ var init_AssetUpload = __esm({
|
|
|
2630
2719
|
children: "Image Upload"
|
|
2631
2720
|
}
|
|
2632
2721
|
),
|
|
2633
|
-
/* @__PURE__ */ (0,
|
|
2722
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2634
2723
|
ClientButton_default,
|
|
2635
2724
|
{
|
|
2636
2725
|
className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
|
|
@@ -2641,13 +2730,13 @@ var init_AssetUpload = __esm({
|
|
|
2641
2730
|
}
|
|
2642
2731
|
)
|
|
2643
2732
|
] }),
|
|
2644
|
-
shouldShowDetails() && /* @__PURE__ */ (0,
|
|
2645
|
-
/* @__PURE__ */ (0,
|
|
2646
|
-
/* @__PURE__ */ (0,
|
|
2647
|
-
/* @__PURE__ */ (0,
|
|
2648
|
-
/* @__PURE__ */ (0,
|
|
2649
|
-
/* @__PURE__ */ (0,
|
|
2650
|
-
/* @__PURE__ */ (0,
|
|
2733
|
+
shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
|
|
2734
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
|
|
2735
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
|
|
2736
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
|
|
2737
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
|
|
2738
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Title" }),
|
|
2739
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2651
2740
|
"input",
|
|
2652
2741
|
{
|
|
2653
2742
|
type: "text",
|
|
@@ -2659,18 +2748,18 @@ var init_AssetUpload = __esm({
|
|
|
2659
2748
|
}
|
|
2660
2749
|
)
|
|
2661
2750
|
] }),
|
|
2662
|
-
digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0,
|
|
2663
|
-
/* @__PURE__ */ (0,
|
|
2664
|
-
/* @__PURE__ */ (0,
|
|
2751
|
+
digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
|
|
2752
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
|
|
2753
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
|
|
2665
2754
|
digitalAsset.intrinsicWidth,
|
|
2666
2755
|
"\xD7",
|
|
2667
2756
|
digitalAsset.intrinsicHeight
|
|
2668
2757
|
] })
|
|
2669
2758
|
] }),
|
|
2670
|
-
(digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0,
|
|
2671
|
-
/* @__PURE__ */ (0,
|
|
2672
|
-
/* @__PURE__ */ (0,
|
|
2673
|
-
getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0,
|
|
2759
|
+
(digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { children: [
|
|
2760
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
|
|
2761
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
|
|
2762
|
+
getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2674
2763
|
"img",
|
|
2675
2764
|
{
|
|
2676
2765
|
src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
|
|
@@ -2678,7 +2767,7 @@ var init_AssetUpload = __esm({
|
|
|
2678
2767
|
className: "w-32 h-auto object-cover rounded border p-1"
|
|
2679
2768
|
}
|
|
2680
2769
|
),
|
|
2681
|
-
getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0,
|
|
2770
|
+
getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2682
2771
|
"img",
|
|
2683
2772
|
{
|
|
2684
2773
|
src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
|
|
@@ -2688,9 +2777,9 @@ var init_AssetUpload = __esm({
|
|
|
2688
2777
|
)
|
|
2689
2778
|
] })
|
|
2690
2779
|
] }),
|
|
2691
|
-
digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0,
|
|
2692
|
-
/* @__PURE__ */ (0,
|
|
2693
|
-
/* @__PURE__ */ (0,
|
|
2780
|
+
digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "col-span-2", children: [
|
|
2781
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
|
|
2782
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2694
2783
|
Hyperlink,
|
|
2695
2784
|
{
|
|
2696
2785
|
href: digitalAsset.assetUrl,
|
|
@@ -2701,12 +2790,12 @@ var init_AssetUpload = __esm({
|
|
|
2701
2790
|
)
|
|
2702
2791
|
] })
|
|
2703
2792
|
] }),
|
|
2704
|
-
/* @__PURE__ */ (0,
|
|
2793
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2705
2794
|
"span",
|
|
2706
2795
|
{
|
|
2707
2796
|
onClick: () => !isDisabled && deleteFile(index),
|
|
2708
2797
|
className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
2709
|
-
children: /* @__PURE__ */ (0,
|
|
2798
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
|
|
2710
2799
|
}
|
|
2711
2800
|
)
|
|
2712
2801
|
] }, index)) })
|
|
@@ -2718,12 +2807,12 @@ var init_AssetUpload = __esm({
|
|
|
2718
2807
|
});
|
|
2719
2808
|
|
|
2720
2809
|
// src/components/controls/edit/SwitchInput.tsx
|
|
2721
|
-
var import_react36,
|
|
2810
|
+
var import_react36, import_jsx_runtime46, SwitchInput, SwitchInput_default;
|
|
2722
2811
|
var init_SwitchInput = __esm({
|
|
2723
2812
|
"src/components/controls/edit/SwitchInput.tsx"() {
|
|
2724
2813
|
"use strict";
|
|
2725
2814
|
import_react36 = __toESM(require("react"));
|
|
2726
|
-
|
|
2815
|
+
import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2727
2816
|
SwitchInput = (props) => {
|
|
2728
2817
|
const textChangeHandler = (event) => {
|
|
2729
2818
|
let text = event.target.checked;
|
|
@@ -2740,28 +2829,28 @@ var init_SwitchInput = __esm({
|
|
|
2740
2829
|
if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
|
|
2741
2830
|
value = true;
|
|
2742
2831
|
}
|
|
2743
|
-
return /* @__PURE__ */ (0,
|
|
2744
|
-
/* @__PURE__ */ (0,
|
|
2745
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
2832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
|
|
2833
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "min-w-0", children: [
|
|
2834
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
2746
2835
|
"label",
|
|
2747
2836
|
{
|
|
2748
2837
|
htmlFor: props.name,
|
|
2749
2838
|
className: "inline-block text-sm font-semibold text-slate-800",
|
|
2750
2839
|
children: [
|
|
2751
2840
|
props.attributes.label,
|
|
2752
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
2841
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
2753
2842
|
]
|
|
2754
2843
|
}
|
|
2755
2844
|
),
|
|
2756
|
-
/* @__PURE__ */ (0,
|
|
2845
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
|
|
2757
2846
|
] }),
|
|
2758
|
-
/* @__PURE__ */ (0,
|
|
2847
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
2759
2848
|
"label",
|
|
2760
2849
|
{
|
|
2761
2850
|
htmlFor: props.name,
|
|
2762
2851
|
className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
|
|
2763
2852
|
children: [
|
|
2764
|
-
/* @__PURE__ */ (0,
|
|
2853
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2765
2854
|
"input",
|
|
2766
2855
|
{
|
|
2767
2856
|
type: "checkbox",
|
|
@@ -2774,13 +2863,13 @@ var init_SwitchInput = __esm({
|
|
|
2774
2863
|
className: "peer sr-only"
|
|
2775
2864
|
}
|
|
2776
2865
|
),
|
|
2777
|
-
/* @__PURE__ */ (0,
|
|
2866
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2778
2867
|
"div",
|
|
2779
2868
|
{
|
|
2780
2869
|
className: "h-6 w-11 rounded-full bg-slate-200 shadow-inner\n transition-colors duration-200 ease-in-out\n peer-checked:bg-blue-600\n peer-focus-visible:ring-2 peer-focus-visible:ring-blue-300 peer-focus-visible:ring-offset-2\n peer-disabled:bg-slate-100"
|
|
2781
2870
|
}
|
|
2782
2871
|
),
|
|
2783
|
-
/* @__PURE__ */ (0,
|
|
2872
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2784
2873
|
"div",
|
|
2785
2874
|
{
|
|
2786
2875
|
className: "absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-default shadow\n transition-transform duration-200 ease-in-out\n peer-checked:translate-x-5\n peer-disabled:bg-slate-50"
|
|
@@ -2795,12 +2884,108 @@ var init_SwitchInput = __esm({
|
|
|
2795
2884
|
}
|
|
2796
2885
|
});
|
|
2797
2886
|
|
|
2887
|
+
// src/components/controls/edit/VideoInput.tsx
|
|
2888
|
+
var import_jsx_runtime47, normalizeVideoValue, VideoInput, VideoInput_default;
|
|
2889
|
+
var init_VideoInput = __esm({
|
|
2890
|
+
"src/components/controls/edit/VideoInput.tsx"() {
|
|
2891
|
+
"use strict";
|
|
2892
|
+
init_VideoView();
|
|
2893
|
+
import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2894
|
+
normalizeVideoValue = (value) => {
|
|
2895
|
+
if (typeof value === "string") {
|
|
2896
|
+
const trimmed = value.trim();
|
|
2897
|
+
if (!trimmed) return void 0;
|
|
2898
|
+
try {
|
|
2899
|
+
const parsed = JSON.parse(trimmed);
|
|
2900
|
+
if (typeof parsed === "string") {
|
|
2901
|
+
return parsed;
|
|
2902
|
+
}
|
|
2903
|
+
if (parsed && typeof parsed === "object") {
|
|
2904
|
+
const candidate = parsed;
|
|
2905
|
+
if (typeof candidate.assetUrl === "string") return candidate.assetUrl;
|
|
2906
|
+
if (typeof candidate.url === "string") return candidate.url;
|
|
2907
|
+
if (typeof candidate.src === "string") return candidate.src;
|
|
2908
|
+
}
|
|
2909
|
+
} catch {
|
|
2910
|
+
return trimmed;
|
|
2911
|
+
}
|
|
2912
|
+
return trimmed;
|
|
2913
|
+
}
|
|
2914
|
+
if (value && typeof value === "object") {
|
|
2915
|
+
const candidate = value;
|
|
2916
|
+
if (typeof candidate.assetUrl === "string") return candidate.assetUrl;
|
|
2917
|
+
if (typeof candidate.url === "string") return candidate.url;
|
|
2918
|
+
if (typeof candidate.src === "string") return candidate.src;
|
|
2919
|
+
}
|
|
2920
|
+
return void 0;
|
|
2921
|
+
};
|
|
2922
|
+
VideoInput = (props) => {
|
|
2923
|
+
const isReadOnly = Boolean(
|
|
2924
|
+
props.attributes?.readOnly || props.disable || props.attributes?.disable
|
|
2925
|
+
);
|
|
2926
|
+
const videoUrl = normalizeVideoValue(props.value ?? props.defaultValue);
|
|
2927
|
+
const handleChange = (event) => {
|
|
2928
|
+
const text = event.target.value;
|
|
2929
|
+
props.callback?.({
|
|
2930
|
+
name: props.name,
|
|
2931
|
+
value: text,
|
|
2932
|
+
index: props.index,
|
|
2933
|
+
groupKey: props.groupKey
|
|
2934
|
+
});
|
|
2935
|
+
};
|
|
2936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
2937
|
+
"ayush testing",
|
|
2938
|
+
props.attributes?.label ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { className: "text-sm font-medium", children: [
|
|
2939
|
+
props.attributes.label,
|
|
2940
|
+
props.attributes?.required ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "ml-1 text-red-500", children: "*" }) : null
|
|
2941
|
+
] }) : null,
|
|
2942
|
+
isReadOnly ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
2943
|
+
"called video view",
|
|
2944
|
+
console.log(props.value, "vkjbvbvbvsdjkvdfn"),
|
|
2945
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2946
|
+
VideoView_default,
|
|
2947
|
+
{
|
|
2948
|
+
...props,
|
|
2949
|
+
value: props.value ?? props.defaultValue,
|
|
2950
|
+
assetBaseUrl: props.serviceClient?.baseUrl
|
|
2951
|
+
}
|
|
2952
|
+
)
|
|
2953
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
2954
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2955
|
+
"input",
|
|
2956
|
+
{
|
|
2957
|
+
type: "text",
|
|
2958
|
+
name: props.name,
|
|
2959
|
+
id: props.name,
|
|
2960
|
+
value: videoUrl ?? "",
|
|
2961
|
+
onChange: handleChange,
|
|
2962
|
+
onBlur: props.onBlur,
|
|
2963
|
+
placeholder: props.attributes?.placeholder || "Paste a video URL or blob URL",
|
|
2964
|
+
disabled: isReadOnly,
|
|
2965
|
+
className: "peer input mt-1 block w-full rounded shadow-sm"
|
|
2966
|
+
}
|
|
2967
|
+
),
|
|
2968
|
+
videoUrl ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2969
|
+
VideoView_default,
|
|
2970
|
+
{
|
|
2971
|
+
...props,
|
|
2972
|
+
value: props.value ?? props.defaultValue,
|
|
2973
|
+
assetBaseUrl: props.serviceClient?.baseUrl
|
|
2974
|
+
}
|
|
2975
|
+
) : null
|
|
2976
|
+
] })
|
|
2977
|
+
] });
|
|
2978
|
+
};
|
|
2979
|
+
VideoInput_default = VideoInput;
|
|
2980
|
+
}
|
|
2981
|
+
});
|
|
2982
|
+
|
|
2798
2983
|
// src/components/controls/edit/InputControlClient.tsx
|
|
2799
2984
|
var InputControlClient_exports = {};
|
|
2800
2985
|
__export(InputControlClient_exports, {
|
|
2801
2986
|
default: () => InputControlClient_default
|
|
2802
2987
|
});
|
|
2803
|
-
var import_react37,
|
|
2988
|
+
var import_react37, import_jsx_runtime48, InputControl, InputControlClient_default;
|
|
2804
2989
|
var init_InputControlClient = __esm({
|
|
2805
2990
|
"src/components/controls/edit/InputControlClient.tsx"() {
|
|
2806
2991
|
"use strict";
|
|
@@ -2825,7 +3010,8 @@ var init_InputControlClient = __esm({
|
|
|
2825
3010
|
init_TimeInput();
|
|
2826
3011
|
init_AssetUpload();
|
|
2827
3012
|
init_SwitchInput();
|
|
2828
|
-
|
|
3013
|
+
init_VideoInput();
|
|
3014
|
+
import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2829
3015
|
InputControl = import_react37.default.forwardRef(
|
|
2830
3016
|
(props, ref) => {
|
|
2831
3017
|
const ControlComponents = {
|
|
@@ -2846,10 +3032,11 @@ var init_InputControlClient = __esm({
|
|
|
2846
3032
|
[InputControlType_default.booleanSelect]: BooleanSelect_default,
|
|
2847
3033
|
[InputControlType_default.timeInput]: TimeInput_default,
|
|
2848
3034
|
[InputControlType_default.asset]: AssetUpload_default,
|
|
2849
|
-
[InputControlType_default.switchInput]: SwitchInput_default
|
|
3035
|
+
[InputControlType_default.switchInput]: SwitchInput_default,
|
|
3036
|
+
[InputControlType_default.videoInput]: VideoInput_default
|
|
2850
3037
|
};
|
|
2851
3038
|
const SelectedControlComponent = ControlComponents[props.controlType];
|
|
2852
|
-
return /* @__PURE__ */ (0,
|
|
3039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react37.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
|
|
2853
3040
|
}
|
|
2854
3041
|
);
|
|
2855
3042
|
InputControl.displayName = "InputControl";
|
|
@@ -3076,7 +3263,7 @@ var LinkNodeButton_exports = {};
|
|
|
3076
3263
|
__export(LinkNodeButton_exports, {
|
|
3077
3264
|
default: () => LinkNodeButton_default
|
|
3078
3265
|
});
|
|
3079
|
-
var import_react38,
|
|
3266
|
+
var import_react38, import_jsx_runtime52, LinkNodeButton, LinkNodeButton_default;
|
|
3080
3267
|
var init_LinkNodeButton = __esm({
|
|
3081
3268
|
"src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx"() {
|
|
3082
3269
|
"use strict";
|
|
@@ -3085,7 +3272,7 @@ var init_LinkNodeButton = __esm({
|
|
|
3085
3272
|
init_Button();
|
|
3086
3273
|
init_ServiceClient();
|
|
3087
3274
|
init_ToastService();
|
|
3088
|
-
|
|
3275
|
+
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3089
3276
|
LinkNodeButton = (props) => {
|
|
3090
3277
|
const { node, dataitem, children, linkText, linkType, linkUrl } = props;
|
|
3091
3278
|
const [isLoading, setIsLoading] = (0, import_react38.useState)(false);
|
|
@@ -3225,11 +3412,11 @@ var init_LinkNodeButton = __esm({
|
|
|
3225
3412
|
return children;
|
|
3226
3413
|
}
|
|
3227
3414
|
if (linkText) {
|
|
3228
|
-
return /* @__PURE__ */ (0,
|
|
3415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: linkText });
|
|
3229
3416
|
}
|
|
3230
3417
|
return node.title || "Button";
|
|
3231
3418
|
};
|
|
3232
|
-
return /* @__PURE__ */ (0,
|
|
3419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "link-button-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3233
3420
|
Button_default,
|
|
3234
3421
|
{
|
|
3235
3422
|
ButtonType: linkType,
|
|
@@ -3267,13 +3454,13 @@ function CopyButton({ text }) {
|
|
|
3267
3454
|
console.error("Failed to copy: ", err);
|
|
3268
3455
|
}
|
|
3269
3456
|
};
|
|
3270
|
-
return /* @__PURE__ */ (0,
|
|
3457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
3271
3458
|
"button",
|
|
3272
3459
|
{
|
|
3273
3460
|
onClick: handleCopy,
|
|
3274
3461
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
3275
3462
|
children: [
|
|
3276
|
-
/* @__PURE__ */ (0,
|
|
3463
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
3277
3464
|
"svg",
|
|
3278
3465
|
{
|
|
3279
3466
|
width: "16",
|
|
@@ -3281,7 +3468,7 @@ function CopyButton({ text }) {
|
|
|
3281
3468
|
viewBox: "0 0 24 24",
|
|
3282
3469
|
className: "w-4 h-4",
|
|
3283
3470
|
fill: "currentColor",
|
|
3284
|
-
children: /* @__PURE__ */ (0,
|
|
3471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
3285
3472
|
"path",
|
|
3286
3473
|
{
|
|
3287
3474
|
fillRule: "evenodd",
|
|
@@ -3296,54 +3483,54 @@ function CopyButton({ text }) {
|
|
|
3296
3483
|
}
|
|
3297
3484
|
);
|
|
3298
3485
|
}
|
|
3299
|
-
var import_react45,
|
|
3486
|
+
var import_react45, import_jsx_runtime62;
|
|
3300
3487
|
var init_CopyButton = __esm({
|
|
3301
3488
|
"src/components/CopyButton.tsx"() {
|
|
3302
3489
|
"use strict";
|
|
3303
3490
|
"use client";
|
|
3304
3491
|
import_react45 = require("react");
|
|
3305
|
-
|
|
3492
|
+
import_jsx_runtime62 = require("react/jsx-runtime");
|
|
3306
3493
|
}
|
|
3307
3494
|
});
|
|
3308
3495
|
|
|
3309
3496
|
// src/components/IFrameLoaderView.tsx
|
|
3310
|
-
var import_react48,
|
|
3497
|
+
var import_react48, import_jsx_runtime66, IFrameLoaderView, IFrameLoaderView_default;
|
|
3311
3498
|
var init_IFrameLoaderView = __esm({
|
|
3312
3499
|
"src/components/IFrameLoaderView.tsx"() {
|
|
3313
3500
|
"use strict";
|
|
3314
3501
|
import_react48 = __toESM(require("react"));
|
|
3315
|
-
|
|
3502
|
+
import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3316
3503
|
IFrameLoaderView = (props) => {
|
|
3317
|
-
return /* @__PURE__ */ (0,
|
|
3318
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
3319
|
-
/* @__PURE__ */ (0,
|
|
3320
|
-
/* @__PURE__ */ (0,
|
|
3321
|
-
/* @__PURE__ */ (0,
|
|
3322
|
-
/* @__PURE__ */ (0,
|
|
3323
|
-
/* @__PURE__ */ (0,
|
|
3504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react48.default.Fragment, { children: [
|
|
3505
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
3506
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
3507
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
3508
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "ml-2", children: [
|
|
3509
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
3510
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
3324
3511
|
] })
|
|
3325
3512
|
] }),
|
|
3326
|
-
/* @__PURE__ */ (0,
|
|
3327
|
-
/* @__PURE__ */ (0,
|
|
3328
|
-
/* @__PURE__ */ (0,
|
|
3329
|
-
/* @__PURE__ */ (0,
|
|
3330
|
-
/* @__PURE__ */ (0,
|
|
3331
|
-
/* @__PURE__ */ (0,
|
|
3332
|
-
/* @__PURE__ */ (0,
|
|
3513
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
3514
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
|
|
3515
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3516
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3517
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3518
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3519
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3333
3520
|
] }),
|
|
3334
|
-
/* @__PURE__ */ (0,
|
|
3335
|
-
/* @__PURE__ */ (0,
|
|
3336
|
-
/* @__PURE__ */ (0,
|
|
3337
|
-
/* @__PURE__ */ (0,
|
|
3338
|
-
/* @__PURE__ */ (0,
|
|
3339
|
-
/* @__PURE__ */ (0,
|
|
3521
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
|
|
3522
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3523
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3524
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3525
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3526
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3340
3527
|
] }),
|
|
3341
|
-
/* @__PURE__ */ (0,
|
|
3342
|
-
/* @__PURE__ */ (0,
|
|
3343
|
-
/* @__PURE__ */ (0,
|
|
3344
|
-
/* @__PURE__ */ (0,
|
|
3345
|
-
/* @__PURE__ */ (0,
|
|
3346
|
-
/* @__PURE__ */ (0,
|
|
3528
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "animate-pulse", children: [
|
|
3529
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3530
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3531
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3532
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3533
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3347
3534
|
] })
|
|
3348
3535
|
] })
|
|
3349
3536
|
] }) }),
|
|
@@ -3359,14 +3546,14 @@ var IframeClient_exports = {};
|
|
|
3359
3546
|
__export(IframeClient_exports, {
|
|
3360
3547
|
default: () => IframeClient_default
|
|
3361
3548
|
});
|
|
3362
|
-
var import_react49,
|
|
3549
|
+
var import_react49, import_jsx_runtime67, IframeClient, IframeClient_default;
|
|
3363
3550
|
var init_IframeClient = __esm({
|
|
3364
3551
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
3365
3552
|
"use strict";
|
|
3366
3553
|
"use client";
|
|
3367
3554
|
import_react49 = __toESM(require("react"));
|
|
3368
3555
|
init_IFrameLoaderView();
|
|
3369
|
-
|
|
3556
|
+
import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3370
3557
|
IframeClient = ({ src }) => {
|
|
3371
3558
|
const iframeRef = (0, import_react49.useRef)(null);
|
|
3372
3559
|
const [iframeHeight, setIframeHeight] = (0, import_react49.useState)("100%");
|
|
@@ -3398,7 +3585,7 @@ var init_IframeClient = __esm({
|
|
|
3398
3585
|
const handleIframeLoad = () => {
|
|
3399
3586
|
setIsDataFound(true);
|
|
3400
3587
|
};
|
|
3401
|
-
return /* @__PURE__ */ (0,
|
|
3588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3402
3589
|
"iframe",
|
|
3403
3590
|
{
|
|
3404
3591
|
ref: iframeRef,
|
|
@@ -3618,7 +3805,7 @@ var Pagination_exports = {};
|
|
|
3618
3805
|
__export(Pagination_exports, {
|
|
3619
3806
|
default: () => Pagination_default
|
|
3620
3807
|
});
|
|
3621
|
-
var import_react50,
|
|
3808
|
+
var import_react50, import_jsx_runtime72, Pagination, Pagination_default;
|
|
3622
3809
|
var init_Pagination = __esm({
|
|
3623
3810
|
"src/components/Pagination.tsx"() {
|
|
3624
3811
|
"use strict";
|
|
@@ -3629,7 +3816,7 @@ var init_Pagination = __esm({
|
|
|
3629
3816
|
init_StyleTypes();
|
|
3630
3817
|
init_InputControlType();
|
|
3631
3818
|
init_Hyperlink();
|
|
3632
|
-
|
|
3819
|
+
import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3633
3820
|
Pagination = (props) => {
|
|
3634
3821
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
3635
3822
|
const builder = (0, import_react50.useMemo)(() => {
|
|
@@ -3673,7 +3860,7 @@ var init_Pagination = __esm({
|
|
|
3673
3860
|
return range;
|
|
3674
3861
|
};
|
|
3675
3862
|
const paginationRange = getPaginationRange();
|
|
3676
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
3863
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3677
3864
|
Hyperlink,
|
|
3678
3865
|
{
|
|
3679
3866
|
linkType: "Link" /* Link */,
|
|
@@ -3688,9 +3875,9 @@ var init_Pagination = __esm({
|
|
|
3688
3875
|
);
|
|
3689
3876
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
3690
3877
|
if (disabled) {
|
|
3691
|
-
return /* @__PURE__ */ (0,
|
|
3878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
|
|
3692
3879
|
}
|
|
3693
|
-
return /* @__PURE__ */ (0,
|
|
3880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3694
3881
|
Hyperlink,
|
|
3695
3882
|
{
|
|
3696
3883
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border transition-colors duration-150",
|
|
@@ -3700,35 +3887,35 @@ var init_Pagination = __esm({
|
|
|
3700
3887
|
);
|
|
3701
3888
|
};
|
|
3702
3889
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
3703
|
-
return /* @__PURE__ */ (0,
|
|
3704
|
-
/* @__PURE__ */ (0,
|
|
3705
|
-
/* @__PURE__ */ (0,
|
|
3890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
3891
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
3892
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "text-sm", children: [
|
|
3706
3893
|
"Showing ",
|
|
3707
|
-
/* @__PURE__ */ (0,
|
|
3894
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "font-semibold", children: [
|
|
3708
3895
|
startItem,
|
|
3709
3896
|
"-",
|
|
3710
3897
|
endItem
|
|
3711
3898
|
] }),
|
|
3712
3899
|
" ",
|
|
3713
3900
|
"out of ",
|
|
3714
|
-
/* @__PURE__ */ (0,
|
|
3901
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
3715
3902
|
" results"
|
|
3716
3903
|
] }),
|
|
3717
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
3718
|
-
/* @__PURE__ */ (0,
|
|
3904
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
3905
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
3719
3906
|
NavigationButton,
|
|
3720
3907
|
{
|
|
3721
3908
|
page: activePageNumber - 1,
|
|
3722
3909
|
disabled: activePageNumber === 1,
|
|
3723
3910
|
children: [
|
|
3724
|
-
/* @__PURE__ */ (0,
|
|
3725
|
-
/* @__PURE__ */ (0,
|
|
3911
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
3912
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
3726
3913
|
]
|
|
3727
3914
|
}
|
|
3728
3915
|
),
|
|
3729
3916
|
paginationRange.map((item, index) => {
|
|
3730
3917
|
if (item === "...") {
|
|
3731
|
-
return /* @__PURE__ */ (0,
|
|
3918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3732
3919
|
"span",
|
|
3733
3920
|
{
|
|
3734
3921
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -3738,23 +3925,23 @@ var init_Pagination = __esm({
|
|
|
3738
3925
|
);
|
|
3739
3926
|
}
|
|
3740
3927
|
const page = item;
|
|
3741
|
-
return /* @__PURE__ */ (0,
|
|
3928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(PageButton, { page, children: page }, page);
|
|
3742
3929
|
}),
|
|
3743
|
-
/* @__PURE__ */ (0,
|
|
3930
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
3744
3931
|
NavigationButton,
|
|
3745
3932
|
{
|
|
3746
3933
|
page: activePageNumber + 1,
|
|
3747
3934
|
disabled: activePageNumber === totalPages,
|
|
3748
3935
|
children: [
|
|
3749
|
-
/* @__PURE__ */ (0,
|
|
3750
|
-
/* @__PURE__ */ (0,
|
|
3936
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
3937
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
3751
3938
|
]
|
|
3752
3939
|
}
|
|
3753
3940
|
)
|
|
3754
3941
|
] }),
|
|
3755
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
3756
|
-
/* @__PURE__ */ (0,
|
|
3757
|
-
/* @__PURE__ */ (0,
|
|
3942
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
3943
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
3944
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3758
3945
|
"input",
|
|
3759
3946
|
{
|
|
3760
3947
|
type: "number",
|
|
@@ -3775,9 +3962,9 @@ var init_Pagination = __esm({
|
|
|
3775
3962
|
) })
|
|
3776
3963
|
] })
|
|
3777
3964
|
] }),
|
|
3778
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
3779
|
-
/* @__PURE__ */ (0,
|
|
3780
|
-
/* @__PURE__ */ (0,
|
|
3965
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
3966
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
3967
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3781
3968
|
Hyperlink,
|
|
3782
3969
|
{
|
|
3783
3970
|
className: `
|
|
@@ -3789,7 +3976,7 @@ var init_Pagination = __esm({
|
|
|
3789
3976
|
},
|
|
3790
3977
|
size
|
|
3791
3978
|
)) }),
|
|
3792
|
-
/* @__PURE__ */ (0,
|
|
3979
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm", children: "per page" })
|
|
3793
3980
|
] }) })
|
|
3794
3981
|
] });
|
|
3795
3982
|
};
|
|
@@ -3802,13 +3989,13 @@ var Slider_exports = {};
|
|
|
3802
3989
|
__export(Slider_exports, {
|
|
3803
3990
|
default: () => Slider_default
|
|
3804
3991
|
});
|
|
3805
|
-
var import_react51,
|
|
3992
|
+
var import_react51, import_jsx_runtime73, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
3806
3993
|
var init_Slider = __esm({
|
|
3807
3994
|
"src/components/Slider.tsx"() {
|
|
3808
3995
|
"use strict";
|
|
3809
3996
|
"use client";
|
|
3810
3997
|
import_react51 = __toESM(require("react"));
|
|
3811
|
-
|
|
3998
|
+
import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3812
3999
|
Slider = ({
|
|
3813
4000
|
children,
|
|
3814
4001
|
slidesToShow = 4,
|
|
@@ -3905,7 +4092,7 @@ var init_Slider = __esm({
|
|
|
3905
4092
|
if (!import_react51.default.isValidElement(child)) return null;
|
|
3906
4093
|
const childProps = child.props;
|
|
3907
4094
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
3908
|
-
return /* @__PURE__ */ (0,
|
|
4095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3909
4096
|
"div",
|
|
3910
4097
|
{
|
|
3911
4098
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -3928,14 +4115,14 @@ var init_Slider = __esm({
|
|
|
3928
4115
|
return "bottom-4";
|
|
3929
4116
|
}
|
|
3930
4117
|
};
|
|
3931
|
-
return /* @__PURE__ */ (0,
|
|
4118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
3932
4119
|
"div",
|
|
3933
4120
|
{
|
|
3934
4121
|
className: `relative w-full overflow-hidden ${className}`,
|
|
3935
4122
|
onMouseEnter: handleMouseEnter,
|
|
3936
4123
|
onMouseLeave: handleMouseLeave,
|
|
3937
4124
|
children: [
|
|
3938
|
-
/* @__PURE__ */ (0,
|
|
4125
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3939
4126
|
"div",
|
|
3940
4127
|
{
|
|
3941
4128
|
className: "flex h-full",
|
|
@@ -3946,18 +4133,18 @@ var init_Slider = __esm({
|
|
|
3946
4133
|
children: slides
|
|
3947
4134
|
}
|
|
3948
4135
|
),
|
|
3949
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
3950
|
-
/* @__PURE__ */ (0,
|
|
4136
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
|
|
4137
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3951
4138
|
ArrowButton,
|
|
3952
4139
|
{
|
|
3953
4140
|
direction: "left",
|
|
3954
4141
|
onClick: prevSlide,
|
|
3955
4142
|
visible: infinite_scroll || currentSlide > 0,
|
|
3956
4143
|
className: arrowClassName,
|
|
3957
|
-
children: /* @__PURE__ */ (0,
|
|
4144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
3958
4145
|
}
|
|
3959
4146
|
),
|
|
3960
|
-
/* @__PURE__ */ (0,
|
|
4147
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
3961
4148
|
ArrowButton,
|
|
3962
4149
|
{
|
|
3963
4150
|
direction: "right",
|
|
@@ -3965,13 +4152,13 @@ var init_Slider = __esm({
|
|
|
3965
4152
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
3966
4153
|
className: arrowClassName,
|
|
3967
4154
|
children: [
|
|
3968
|
-
/* @__PURE__ */ (0,
|
|
4155
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
|
|
3969
4156
|
" "
|
|
3970
4157
|
]
|
|
3971
4158
|
}
|
|
3972
4159
|
)
|
|
3973
4160
|
] }),
|
|
3974
|
-
show_dots && /* @__PURE__ */ (0,
|
|
4161
|
+
show_dots && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3975
4162
|
ProgressPill,
|
|
3976
4163
|
{
|
|
3977
4164
|
active: index === currentSlide,
|
|
@@ -3997,7 +4184,7 @@ var init_Slider = __esm({
|
|
|
3997
4184
|
visible,
|
|
3998
4185
|
children,
|
|
3999
4186
|
className = ""
|
|
4000
|
-
}) => /* @__PURE__ */ (0,
|
|
4187
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4001
4188
|
"button",
|
|
4002
4189
|
{
|
|
4003
4190
|
className: `
|
|
@@ -4084,7 +4271,7 @@ var init_Slider = __esm({
|
|
|
4084
4271
|
const renderProgressBar = () => {
|
|
4085
4272
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
4086
4273
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
4087
|
-
return /* @__PURE__ */ (0,
|
|
4274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4088
4275
|
"div",
|
|
4089
4276
|
{
|
|
4090
4277
|
className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
|
|
@@ -4096,7 +4283,7 @@ var init_Slider = __esm({
|
|
|
4096
4283
|
};
|
|
4097
4284
|
const renderCumulativeFill = () => {
|
|
4098
4285
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
4099
|
-
return /* @__PURE__ */ (0,
|
|
4286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4100
4287
|
"div",
|
|
4101
4288
|
{
|
|
4102
4289
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -4106,7 +4293,7 @@ var init_Slider = __esm({
|
|
|
4106
4293
|
}
|
|
4107
4294
|
return null;
|
|
4108
4295
|
};
|
|
4109
|
-
return /* @__PURE__ */ (0,
|
|
4296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4110
4297
|
"button",
|
|
4111
4298
|
{
|
|
4112
4299
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -4147,17 +4334,18 @@ function EnterAnimationClient({ hasEnterAnimation, children }) {
|
|
|
4147
4334
|
observer.observe(ref.current);
|
|
4148
4335
|
return () => observer.disconnect();
|
|
4149
4336
|
}, [hasEnterAnimation]);
|
|
4150
|
-
|
|
4337
|
+
if (!children) return null;
|
|
4338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: children && // enforce passing the ref to Wrapper
|
|
4151
4339
|
//@ts-ignore
|
|
4152
4340
|
import_react52.default.cloneElement(children, { ref }) });
|
|
4153
4341
|
}
|
|
4154
|
-
var import_react52,
|
|
4342
|
+
var import_react52, import_jsx_runtime74;
|
|
4155
4343
|
var init_EnterAnimationClient = __esm({
|
|
4156
4344
|
"src/components/pageRenderingEngine/nodes/EnterAnimationClient.tsx"() {
|
|
4157
4345
|
"use strict";
|
|
4158
4346
|
"use client";
|
|
4159
4347
|
import_react52 = __toESM(require("react"));
|
|
4160
|
-
|
|
4348
|
+
import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4161
4349
|
}
|
|
4162
4350
|
});
|
|
4163
4351
|
|
|
@@ -4200,6 +4388,7 @@ var ViewControlTypes = {
|
|
|
4200
4388
|
lineText: "lineText",
|
|
4201
4389
|
emailText: "email",
|
|
4202
4390
|
asset: "asset",
|
|
4391
|
+
video: "video",
|
|
4203
4392
|
multilineTextBullets: "multilineTextBullets",
|
|
4204
4393
|
boolean: "boolean",
|
|
4205
4394
|
checkboxInput: "boolean",
|
|
@@ -4530,12 +4719,14 @@ var DateTimeView = (0, import_dynamic3.default)(() => Promise.resolve().then(()
|
|
|
4530
4719
|
var DateTimeVew_default = DateTimeView;
|
|
4531
4720
|
|
|
4532
4721
|
// src/components/controls/view/ViewControl.tsx
|
|
4533
|
-
|
|
4722
|
+
init_VideoView();
|
|
4723
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
4534
4724
|
var ViewControl = (props) => {
|
|
4535
4725
|
const ControlComponents = {
|
|
4536
4726
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
4537
4727
|
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
4538
4728
|
[ViewControlTypes_default.asset]: Asset_default,
|
|
4729
|
+
[ViewControlTypes_default.video]: VideoView_default,
|
|
4539
4730
|
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
4540
4731
|
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
4541
4732
|
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
@@ -4559,7 +4750,7 @@ var ViewControl = (props) => {
|
|
|
4559
4750
|
[ViewControlTypes_default.text]: LineTextView_default
|
|
4560
4751
|
};
|
|
4561
4752
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
4562
|
-
return /* @__PURE__ */ (0,
|
|
4753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react15.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
4563
4754
|
};
|
|
4564
4755
|
var ViewControl_default = ViewControl;
|
|
4565
4756
|
|
|
@@ -4580,7 +4771,7 @@ var import_react54 = __toESM(require("react"));
|
|
|
4580
4771
|
var import_react40 = __toESM(require("react"));
|
|
4581
4772
|
|
|
4582
4773
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
4583
|
-
var
|
|
4774
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4584
4775
|
var TextNode = (props) => {
|
|
4585
4776
|
function cssStringToJson(cssString) {
|
|
4586
4777
|
const styleObject = {};
|
|
@@ -4635,26 +4826,26 @@ var TextNode = (props) => {
|
|
|
4635
4826
|
});
|
|
4636
4827
|
}
|
|
4637
4828
|
function renderWithLineBreaks(text) {
|
|
4638
|
-
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0,
|
|
4829
|
+
return text.split("\n").map((line, index, arr) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("span", { children: [
|
|
4639
4830
|
line,
|
|
4640
|
-
index < arr.length - 1 && /* @__PURE__ */ (0,
|
|
4831
|
+
index < arr.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("br", {})
|
|
4641
4832
|
] }, index));
|
|
4642
4833
|
}
|
|
4643
4834
|
const displayText = props.linkText ? props.linkText : props.node.text;
|
|
4644
4835
|
const finalText = props.dataitem && props.linkText ? displayText : props.dataitem ? replacePlaceholders(props.node.text, props.dataitem) : props.node.text;
|
|
4645
4836
|
const content = typeof finalText === "string" ? renderWithLineBreaks(finalText) : finalText;
|
|
4646
|
-
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0,
|
|
4837
|
+
const formattedContent = props.node.format & 64 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("sup", { children: content }) : props.node.format & 32 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("sub", { children: content }) : content;
|
|
4647
4838
|
return (
|
|
4648
4839
|
// @ts-expect-error custom code
|
|
4649
|
-
/* @__PURE__ */ (0,
|
|
4840
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { style: { ...styles }, className: getFormatClass(props.node.format), children: formattedContent })
|
|
4650
4841
|
);
|
|
4651
4842
|
};
|
|
4652
4843
|
var TextNode_default = TextNode;
|
|
4653
4844
|
|
|
4654
4845
|
// src/components/pageRenderingEngine/nodes/LineBreakNode.tsx
|
|
4655
|
-
var
|
|
4846
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4656
4847
|
var LineBreakNode = () => {
|
|
4657
|
-
return /* @__PURE__ */ (0,
|
|
4848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "py-0.5 lg:py-1.5" });
|
|
4658
4849
|
};
|
|
4659
4850
|
var LineBreakNode_default = LineBreakNode;
|
|
4660
4851
|
|
|
@@ -4664,7 +4855,7 @@ var import_react39 = __toESM(require("react"));
|
|
|
4664
4855
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
4665
4856
|
init_AssetUtility();
|
|
4666
4857
|
var import_dynamic5 = __toESM(require("next/dynamic"));
|
|
4667
|
-
var
|
|
4858
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4668
4859
|
var HlsPlayer3 = (0, import_dynamic5.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
4669
4860
|
var getNestedValue = (obj, path) => {
|
|
4670
4861
|
if (!obj || !path) return void 0;
|
|
@@ -4697,7 +4888,7 @@ var ImageNode = (props) => {
|
|
|
4697
4888
|
assets = [image];
|
|
4698
4889
|
}
|
|
4699
4890
|
if (assets && assets.length > 0) {
|
|
4700
|
-
return /* @__PURE__ */ (0,
|
|
4891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4701
4892
|
DeviceAssetSelector_default,
|
|
4702
4893
|
{
|
|
4703
4894
|
device: props.device,
|
|
@@ -4738,7 +4929,7 @@ var ImageNode = (props) => {
|
|
|
4738
4929
|
right: "justify-end"
|
|
4739
4930
|
};
|
|
4740
4931
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
4741
|
-
const renderMedia = () => isHls ? /* @__PURE__ */ (0,
|
|
4932
|
+
const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4742
4933
|
HlsPlayer3,
|
|
4743
4934
|
{
|
|
4744
4935
|
assetUrl: imageUrl,
|
|
@@ -4751,7 +4942,7 @@ var ImageNode = (props) => {
|
|
|
4751
4942
|
apiBaseUrl: props.apiBaseUrl,
|
|
4752
4943
|
session: props.session
|
|
4753
4944
|
}
|
|
4754
|
-
) : /* @__PURE__ */ (0,
|
|
4945
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4755
4946
|
"img",
|
|
4756
4947
|
{
|
|
4757
4948
|
style: styles,
|
|
@@ -4764,7 +4955,7 @@ var ImageNode = (props) => {
|
|
|
4764
4955
|
}
|
|
4765
4956
|
);
|
|
4766
4957
|
if (props.node.width) {
|
|
4767
|
-
return /* @__PURE__ */ (0,
|
|
4958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `flex ${FORMAT_CLASSES2[props.node.format] ?? ""}`, children: renderMedia() });
|
|
4768
4959
|
}
|
|
4769
4960
|
return renderMedia();
|
|
4770
4961
|
};
|
|
@@ -4774,7 +4965,7 @@ var ImageNode_default = ImageNode;
|
|
|
4774
4965
|
init_StyleTypes();
|
|
4775
4966
|
init_Hyperlink();
|
|
4776
4967
|
var import_dynamic6 = __toESM(require("next/dynamic"));
|
|
4777
|
-
var
|
|
4968
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4778
4969
|
var LinkNodeButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_LinkNodeButton(), LinkNodeButton_exports)), {
|
|
4779
4970
|
ssr: false
|
|
4780
4971
|
});
|
|
@@ -4827,13 +5018,13 @@ var LinkNode = (props) => {
|
|
|
4827
5018
|
const isButton = node.isButton === true;
|
|
4828
5019
|
const renderChildren = () => {
|
|
4829
5020
|
if (!node.children || node.children.length === 0) return null;
|
|
4830
|
-
return /* @__PURE__ */ (0,
|
|
5021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: node.children.map((childNode, index) => {
|
|
4831
5022
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
4832
5023
|
if (!SelectedNode) {
|
|
4833
5024
|
console.warn("Unknown node type:", childNode.type);
|
|
4834
5025
|
return null;
|
|
4835
5026
|
}
|
|
4836
|
-
return /* @__PURE__ */ (0,
|
|
5027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4837
5028
|
SelectedNode,
|
|
4838
5029
|
{
|
|
4839
5030
|
node: childNode,
|
|
@@ -4846,15 +5037,15 @@ var LinkNode = (props) => {
|
|
|
4846
5037
|
};
|
|
4847
5038
|
const renderFallback = () => {
|
|
4848
5039
|
if ((!node.children || node.children.length === 0) && linkText) {
|
|
4849
|
-
return /* @__PURE__ */ (0,
|
|
5040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: linkText });
|
|
4850
5041
|
}
|
|
4851
5042
|
if ((!node.children || node.children.length === 0) && !linkText) {
|
|
4852
|
-
return /* @__PURE__ */ (0,
|
|
5043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("br", {});
|
|
4853
5044
|
}
|
|
4854
5045
|
return null;
|
|
4855
5046
|
};
|
|
4856
5047
|
if (isButton) {
|
|
4857
|
-
return /* @__PURE__ */ (0,
|
|
5048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4858
5049
|
LinkNodeButton2,
|
|
4859
5050
|
{
|
|
4860
5051
|
node,
|
|
@@ -4872,7 +5063,7 @@ var LinkNode = (props) => {
|
|
|
4872
5063
|
}
|
|
4873
5064
|
);
|
|
4874
5065
|
}
|
|
4875
|
-
return /* @__PURE__ */ (0,
|
|
5066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4876
5067
|
Hyperlink,
|
|
4877
5068
|
{
|
|
4878
5069
|
href: linkUrl || "#",
|
|
@@ -4888,10 +5079,10 @@ var LinkNode = (props) => {
|
|
|
4888
5079
|
var LinkNode_default = LinkNode;
|
|
4889
5080
|
|
|
4890
5081
|
// src/components/pageRenderingEngine/nodes/SVGIconNode.tsx
|
|
4891
|
-
var
|
|
5082
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4892
5083
|
var SVGIconNode = ({ node }) => {
|
|
4893
5084
|
if (!node?.svgCode) return null;
|
|
4894
|
-
return /* @__PURE__ */ (0,
|
|
5085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
4895
5086
|
"span",
|
|
4896
5087
|
{
|
|
4897
5088
|
style: {
|
|
@@ -4908,7 +5099,7 @@ var SVGIconNode_default = SVGIconNode;
|
|
|
4908
5099
|
|
|
4909
5100
|
// src/components/pageRenderingEngine/nodes/EquationNode.tsx
|
|
4910
5101
|
var import_katex = __toESM(require("katex"));
|
|
4911
|
-
var
|
|
5102
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4912
5103
|
var EquationNode = ({ node }) => {
|
|
4913
5104
|
const { equation, inline } = node;
|
|
4914
5105
|
let html = "";
|
|
@@ -4923,7 +5114,7 @@ var EquationNode = ({ node }) => {
|
|
|
4923
5114
|
});
|
|
4924
5115
|
}
|
|
4925
5116
|
if (inline) {
|
|
4926
|
-
return /* @__PURE__ */ (0,
|
|
5117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4927
5118
|
"span",
|
|
4928
5119
|
{
|
|
4929
5120
|
className: "katex-inline",
|
|
@@ -4931,7 +5122,7 @@ var EquationNode = ({ node }) => {
|
|
|
4931
5122
|
}
|
|
4932
5123
|
);
|
|
4933
5124
|
}
|
|
4934
|
-
return /* @__PURE__ */ (0,
|
|
5125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4935
5126
|
"div",
|
|
4936
5127
|
{
|
|
4937
5128
|
className: "katex-block my-3 text-center",
|
|
@@ -4942,7 +5133,7 @@ var EquationNode = ({ node }) => {
|
|
|
4942
5133
|
var EquationNode_default = EquationNode;
|
|
4943
5134
|
|
|
4944
5135
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
4945
|
-
var
|
|
5136
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4946
5137
|
function getNestedProperty(obj, path) {
|
|
4947
5138
|
if (!obj || !path) return null;
|
|
4948
5139
|
if (path.includes(".")) {
|
|
@@ -4955,7 +5146,7 @@ function getNestedProperty(obj, path) {
|
|
|
4955
5146
|
}
|
|
4956
5147
|
const value = obj[path];
|
|
4957
5148
|
if (Array.isArray(value)) {
|
|
4958
|
-
return value.map((item, index) => /* @__PURE__ */ (0,
|
|
5149
|
+
return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { children: String(item) }, index));
|
|
4959
5150
|
}
|
|
4960
5151
|
return value;
|
|
4961
5152
|
}
|
|
@@ -5016,7 +5207,7 @@ var DatafieldNode = (props) => {
|
|
|
5016
5207
|
const dataType = props.node.dataType;
|
|
5017
5208
|
if (isEmptyValue) return null;
|
|
5018
5209
|
if (dataType === "rawContent") {
|
|
5019
|
-
return /* @__PURE__ */ (0,
|
|
5210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5020
5211
|
PageBodyRenderer_default,
|
|
5021
5212
|
{
|
|
5022
5213
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -5032,12 +5223,12 @@ var DatafieldNode = (props) => {
|
|
|
5032
5223
|
}
|
|
5033
5224
|
);
|
|
5034
5225
|
}
|
|
5035
|
-
return /* @__PURE__ */ (0,
|
|
5226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5036
5227
|
"span",
|
|
5037
5228
|
{
|
|
5038
5229
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
5039
5230
|
style: styles,
|
|
5040
|
-
children: /* @__PURE__ */ (0,
|
|
5231
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5041
5232
|
ViewControl_default,
|
|
5042
5233
|
{
|
|
5043
5234
|
controlType: dataType,
|
|
@@ -5050,7 +5241,7 @@ var DatafieldNode = (props) => {
|
|
|
5050
5241
|
var DatafieldNode_default = DatafieldNode;
|
|
5051
5242
|
|
|
5052
5243
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
5053
|
-
var
|
|
5244
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5054
5245
|
var ParagraphNode = (props) => {
|
|
5055
5246
|
const NodeTypes2 = {
|
|
5056
5247
|
["text"]: TextNode_default,
|
|
@@ -5070,9 +5261,9 @@ var ParagraphNode = (props) => {
|
|
|
5070
5261
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
5071
5262
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
5072
5263
|
if (isInlineOnlyParent) {
|
|
5073
|
-
return /* @__PURE__ */ (0,
|
|
5264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
5074
5265
|
const SelectedNode = NodeTypes2[node.type];
|
|
5075
|
-
return /* @__PURE__ */ (0,
|
|
5266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5076
5267
|
SelectedNode,
|
|
5077
5268
|
{
|
|
5078
5269
|
node,
|
|
@@ -5084,10 +5275,10 @@ var ParagraphNode = (props) => {
|
|
|
5084
5275
|
) }, index);
|
|
5085
5276
|
}) });
|
|
5086
5277
|
}
|
|
5087
|
-
return /* @__PURE__ */ (0,
|
|
5278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: " " + formatClasses, children: [
|
|
5088
5279
|
hasChildren && props.node.children.map((node, index) => {
|
|
5089
5280
|
const SelectedNode = NodeTypes2[node.type];
|
|
5090
|
-
return /* @__PURE__ */ (0,
|
|
5281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react40.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5091
5282
|
SelectedNode,
|
|
5092
5283
|
{
|
|
5093
5284
|
node,
|
|
@@ -5098,14 +5289,14 @@ var ParagraphNode = (props) => {
|
|
|
5098
5289
|
}
|
|
5099
5290
|
) }, index);
|
|
5100
5291
|
}),
|
|
5101
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
5292
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
5102
5293
|
] });
|
|
5103
5294
|
};
|
|
5104
5295
|
var ParagraphNode_default = ParagraphNode;
|
|
5105
5296
|
|
|
5106
5297
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
5107
5298
|
var import_react41 = __toESM(require("react"));
|
|
5108
|
-
var
|
|
5299
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5109
5300
|
var HeadingNode = (props) => {
|
|
5110
5301
|
const NodeTypes2 = {
|
|
5111
5302
|
["text"]: TextNode_default,
|
|
@@ -5121,12 +5312,12 @@ var HeadingNode = (props) => {
|
|
|
5121
5312
|
{
|
|
5122
5313
|
}
|
|
5123
5314
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
5124
|
-
return /* @__PURE__ */ (0,
|
|
5315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: import_react41.default.createElement(
|
|
5125
5316
|
HeadingTag,
|
|
5126
5317
|
{ className: formatClasses },
|
|
5127
5318
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
5128
5319
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
5129
|
-
return /* @__PURE__ */ (0,
|
|
5320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react41.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
5130
5321
|
})
|
|
5131
5322
|
) });
|
|
5132
5323
|
};
|
|
@@ -5137,7 +5328,7 @@ var import_react43 = __toESM(require("react"));
|
|
|
5137
5328
|
|
|
5138
5329
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
5139
5330
|
var import_react42 = __toESM(require("react"));
|
|
5140
|
-
var
|
|
5331
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5141
5332
|
var ListItemNode = (props) => {
|
|
5142
5333
|
const NodeTypes2 = {
|
|
5143
5334
|
text: TextNode_default,
|
|
@@ -5154,37 +5345,37 @@ var ListItemNode = (props) => {
|
|
|
5154
5345
|
liStyle.fontSize = match[1].trim();
|
|
5155
5346
|
}
|
|
5156
5347
|
}
|
|
5157
|
-
return /* @__PURE__ */ (0,
|
|
5348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
5158
5349
|
const SelectedNode = NodeTypes2[node.type];
|
|
5159
5350
|
if (node.type === "linebreak") {
|
|
5160
5351
|
if (!foundFirstBreak) {
|
|
5161
5352
|
foundFirstBreak = true;
|
|
5162
|
-
return /* @__PURE__ */ (0,
|
|
5353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", {}, index);
|
|
5163
5354
|
} else {
|
|
5164
|
-
return /* @__PURE__ */ (0,
|
|
5355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
5165
5356
|
}
|
|
5166
5357
|
} else {
|
|
5167
5358
|
foundFirstBreak = false;
|
|
5168
|
-
return /* @__PURE__ */ (0,
|
|
5359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react42.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
5169
5360
|
}
|
|
5170
5361
|
}) });
|
|
5171
5362
|
};
|
|
5172
5363
|
var ListItemNode_default = ListItemNode;
|
|
5173
5364
|
|
|
5174
5365
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
5175
|
-
var
|
|
5366
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5176
5367
|
var ListNode = (props) => {
|
|
5177
5368
|
const NodeTypes2 = {
|
|
5178
5369
|
listitem: ListItemNode_default
|
|
5179
5370
|
};
|
|
5180
|
-
return /* @__PURE__ */ (0,
|
|
5181
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
5371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react43.default.Fragment, { children: [
|
|
5372
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5182
5373
|
const SelectedNode = NodeTypes2[node.type];
|
|
5183
|
-
return /* @__PURE__ */ (0,
|
|
5374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
5184
5375
|
}) }),
|
|
5185
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
5376
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5186
5377
|
const SelectedNode = NodeTypes2[node.type];
|
|
5187
|
-
return /* @__PURE__ */ (0,
|
|
5378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
5188
5379
|
}) })
|
|
5189
5380
|
] });
|
|
5190
5381
|
};
|
|
@@ -5192,16 +5383,16 @@ var ListNode_default = ListNode;
|
|
|
5192
5383
|
|
|
5193
5384
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
5194
5385
|
var import_react44 = __toESM(require("react"));
|
|
5195
|
-
var
|
|
5386
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5196
5387
|
var QuoteNode = (props) => {
|
|
5197
5388
|
const NodeTypes2 = {
|
|
5198
5389
|
["text"]: TextNode_default,
|
|
5199
5390
|
["linebreak"]: LineBreakNode_default,
|
|
5200
5391
|
["link"]: LinkNode_default
|
|
5201
5392
|
};
|
|
5202
|
-
return /* @__PURE__ */ (0,
|
|
5393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
5203
5394
|
const SelectedNode = NodeTypes2[node.type];
|
|
5204
|
-
return /* @__PURE__ */ (0,
|
|
5395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react44.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
5205
5396
|
}) });
|
|
5206
5397
|
};
|
|
5207
5398
|
var QuoteNode_default = QuoteNode;
|
|
@@ -5209,11 +5400,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
5209
5400
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
5210
5401
|
var import_react46 = __toESM(require("react"));
|
|
5211
5402
|
var import_dynamic7 = __toESM(require("next/dynamic"));
|
|
5212
|
-
var
|
|
5403
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5213
5404
|
var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
5214
5405
|
ssr: false,
|
|
5215
5406
|
// optional: fallback UI while loading
|
|
5216
|
-
loading: () => /* @__PURE__ */ (0,
|
|
5407
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
5217
5408
|
});
|
|
5218
5409
|
var CodeNode = (props) => {
|
|
5219
5410
|
const NodeTypes2 = {
|
|
@@ -5227,14 +5418,14 @@ var CodeNode = (props) => {
|
|
|
5227
5418
|
if (node.type === "link") return node.text || node.url || "";
|
|
5228
5419
|
return "";
|
|
5229
5420
|
}).join("") ?? "";
|
|
5230
|
-
return /* @__PURE__ */ (0,
|
|
5231
|
-
/* @__PURE__ */ (0,
|
|
5232
|
-
/* @__PURE__ */ (0,
|
|
5233
|
-
/* @__PURE__ */ (0,
|
|
5421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { children: [
|
|
5422
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
5423
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: "Code Snippet" }),
|
|
5424
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CopyButton2, { text: textContent })
|
|
5234
5425
|
] }),
|
|
5235
|
-
/* @__PURE__ */ (0,
|
|
5426
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
|
|
5236
5427
|
const SelectedNode = NodeTypes2[node.type];
|
|
5237
|
-
return /* @__PURE__ */ (0,
|
|
5428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react46.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5238
5429
|
SelectedNode,
|
|
5239
5430
|
{
|
|
5240
5431
|
node,
|
|
@@ -5249,15 +5440,15 @@ var CodeNode = (props) => {
|
|
|
5249
5440
|
var CodeNode_default = CodeNode;
|
|
5250
5441
|
|
|
5251
5442
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
5252
|
-
var
|
|
5443
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5253
5444
|
var HorizontalRuleNode = () => {
|
|
5254
|
-
return /* @__PURE__ */ (0,
|
|
5445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("hr", {});
|
|
5255
5446
|
};
|
|
5256
5447
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
5257
5448
|
|
|
5258
5449
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
5259
5450
|
var import_react47 = __toESM(require("react"));
|
|
5260
|
-
var
|
|
5451
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5261
5452
|
var WidgetNode = (props) => {
|
|
5262
5453
|
const getWidgetParameters = () => {
|
|
5263
5454
|
const widgetInputParameters = {
|
|
@@ -5321,7 +5512,7 @@ var WidgetNode = (props) => {
|
|
|
5321
5512
|
};
|
|
5322
5513
|
const widgetCode = props.node?.widgetCode;
|
|
5323
5514
|
if (!widgetCode) {
|
|
5324
|
-
return /* @__PURE__ */ (0,
|
|
5515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: "Invalid widget" });
|
|
5325
5516
|
}
|
|
5326
5517
|
const widgetParams = getWidgetParameters();
|
|
5327
5518
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -5330,7 +5521,7 @@ var WidgetNode = (props) => {
|
|
|
5330
5521
|
}
|
|
5331
5522
|
return (
|
|
5332
5523
|
// eslint-disable-next-line react-hooks/static-components
|
|
5333
|
-
/* @__PURE__ */ (0,
|
|
5524
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5334
5525
|
WidgetRenderer,
|
|
5335
5526
|
{
|
|
5336
5527
|
params: widgetParams,
|
|
@@ -5347,11 +5538,12 @@ var WidgetNode = (props) => {
|
|
|
5347
5538
|
var WidgetNode_default = WidgetNode;
|
|
5348
5539
|
|
|
5349
5540
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
5541
|
+
var import_dynamic10 = __toESM(require("next/dynamic"));
|
|
5350
5542
|
var import_react53 = __toESM(require("react"));
|
|
5351
5543
|
|
|
5352
5544
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
5353
5545
|
var import_dynamic8 = __toESM(require("next/dynamic"));
|
|
5354
|
-
var
|
|
5546
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5355
5547
|
var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
5356
5548
|
ssr: false
|
|
5357
5549
|
});
|
|
@@ -5364,7 +5556,7 @@ var EmbedNode = (props) => {
|
|
|
5364
5556
|
} else {
|
|
5365
5557
|
src = props.node.embedSrc;
|
|
5366
5558
|
}
|
|
5367
|
-
return /* @__PURE__ */ (0,
|
|
5559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(IframeClient2, { src }) });
|
|
5368
5560
|
};
|
|
5369
5561
|
var EmbedNode_default = EmbedNode;
|
|
5370
5562
|
|
|
@@ -5543,10 +5735,10 @@ var PathUtility = class {
|
|
|
5543
5735
|
var PathUtility_default = new PathUtility();
|
|
5544
5736
|
|
|
5545
5737
|
// src/components/NoDataFound.tsx
|
|
5546
|
-
var
|
|
5738
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
5547
5739
|
var NoDataFound = () => {
|
|
5548
|
-
return /* @__PURE__ */ (0,
|
|
5549
|
-
/* @__PURE__ */ (0,
|
|
5740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
5741
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5550
5742
|
"svg",
|
|
5551
5743
|
{
|
|
5552
5744
|
className: "w-10 h-10",
|
|
@@ -5554,7 +5746,7 @@ var NoDataFound = () => {
|
|
|
5554
5746
|
stroke: "currentColor",
|
|
5555
5747
|
viewBox: "0 0 24 24",
|
|
5556
5748
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5557
|
-
children: /* @__PURE__ */ (0,
|
|
5749
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5558
5750
|
"path",
|
|
5559
5751
|
{
|
|
5560
5752
|
strokeLinecap: "round",
|
|
@@ -5565,19 +5757,16 @@ var NoDataFound = () => {
|
|
|
5565
5757
|
)
|
|
5566
5758
|
}
|
|
5567
5759
|
) }) }),
|
|
5568
|
-
/* @__PURE__ */ (0,
|
|
5569
|
-
/* @__PURE__ */ (0,
|
|
5760
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
5761
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
5570
5762
|
] });
|
|
5571
5763
|
};
|
|
5572
5764
|
var NoDataFound_default = NoDataFound;
|
|
5573
5765
|
|
|
5574
|
-
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
5575
|
-
var import_dynamic10 = __toESM(require("next/dynamic"));
|
|
5576
|
-
|
|
5577
5766
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
5578
5767
|
init_AssetUtility();
|
|
5579
5768
|
var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
5580
|
-
var
|
|
5769
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5581
5770
|
var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
5582
5771
|
var deviceToMediaQuery = (device) => {
|
|
5583
5772
|
switch (device) {
|
|
@@ -5706,8 +5895,8 @@ var ImageGalleryNode = (props) => {
|
|
|
5706
5895
|
right: "justify-end"
|
|
5707
5896
|
};
|
|
5708
5897
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
5709
|
-
return /* @__PURE__ */ (0,
|
|
5710
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
5898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
|
|
5899
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5711
5900
|
HlsPlayer4,
|
|
5712
5901
|
{
|
|
5713
5902
|
sources: hlsSources,
|
|
@@ -5722,7 +5911,7 @@ var ImageGalleryNode = (props) => {
|
|
|
5722
5911
|
styles: hlsStyles
|
|
5723
5912
|
}
|
|
5724
5913
|
) }),
|
|
5725
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
5914
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("picture", { children: [
|
|
5726
5915
|
DEVICE_ORDER.map((deviceKey) => {
|
|
5727
5916
|
const match = staticSources.find(
|
|
5728
5917
|
(img) => img.device === deviceKey
|
|
@@ -5734,7 +5923,7 @@ var ImageGalleryNode = (props) => {
|
|
|
5734
5923
|
if (!srcUrl) {
|
|
5735
5924
|
return null;
|
|
5736
5925
|
}
|
|
5737
|
-
return /* @__PURE__ */ (0,
|
|
5926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5738
5927
|
"source",
|
|
5739
5928
|
{
|
|
5740
5929
|
media: deviceToMediaQuery(match.device),
|
|
@@ -5758,7 +5947,7 @@ var ImageGalleryNode = (props) => {
|
|
|
5758
5947
|
if (img.borderRadius) {
|
|
5759
5948
|
styles.borderRadius = img.borderRadius;
|
|
5760
5949
|
}
|
|
5761
|
-
return /* @__PURE__ */ (0,
|
|
5950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5762
5951
|
"img",
|
|
5763
5952
|
{
|
|
5764
5953
|
loading: "lazy",
|
|
@@ -5773,7 +5962,7 @@ var ImageGalleryNode = (props) => {
|
|
|
5773
5962
|
})()
|
|
5774
5963
|
] }) : (
|
|
5775
5964
|
/* Case 2: Only device-specific images exist */
|
|
5776
|
-
/* @__PURE__ */ (0,
|
|
5965
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: staticSources.map((img, index) => {
|
|
5777
5966
|
const imageUrl = resolveImageUrl(img);
|
|
5778
5967
|
if (!imageUrl) {
|
|
5779
5968
|
return null;
|
|
@@ -5799,7 +5988,7 @@ var ImageGalleryNode = (props) => {
|
|
|
5799
5988
|
default:
|
|
5800
5989
|
display = "block";
|
|
5801
5990
|
}
|
|
5802
|
-
return /* @__PURE__ */ (0,
|
|
5991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5803
5992
|
"img",
|
|
5804
5993
|
{
|
|
5805
5994
|
loading: "lazy",
|
|
@@ -5940,28 +6129,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
5940
6129
|
|
|
5941
6130
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
5942
6131
|
init_AssetUtility();
|
|
5943
|
-
var
|
|
6132
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
5944
6133
|
var getNestedValue5 = (obj, path) => {
|
|
5945
6134
|
if (!obj || !path) return void 0;
|
|
5946
6135
|
return path.split(".").reduce((current, key) => {
|
|
5947
6136
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
5948
6137
|
}, obj);
|
|
5949
6138
|
};
|
|
5950
|
-
var PdfIcon = () => /* @__PURE__ */ (0,
|
|
6139
|
+
var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
5951
6140
|
"svg",
|
|
5952
6141
|
{
|
|
5953
6142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5954
6143
|
viewBox: "0 0 48 48",
|
|
5955
6144
|
className: "w-10 h-10",
|
|
5956
6145
|
children: [
|
|
5957
|
-
/* @__PURE__ */ (0,
|
|
6146
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5958
6147
|
"path",
|
|
5959
6148
|
{
|
|
5960
6149
|
fill: "#e53935",
|
|
5961
6150
|
d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
|
|
5962
6151
|
}
|
|
5963
6152
|
),
|
|
5964
|
-
/* @__PURE__ */ (0,
|
|
6153
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5965
6154
|
"path",
|
|
5966
6155
|
{
|
|
5967
6156
|
fill: "#fff",
|
|
@@ -5971,55 +6160,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
5971
6160
|
]
|
|
5972
6161
|
}
|
|
5973
6162
|
);
|
|
5974
|
-
var ExcelIcon = () => /* @__PURE__ */ (0,
|
|
6163
|
+
var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
5975
6164
|
"svg",
|
|
5976
6165
|
{
|
|
5977
6166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5978
6167
|
viewBox: "0 0 48 48",
|
|
5979
6168
|
className: "w-10 h-10",
|
|
5980
6169
|
children: [
|
|
5981
|
-
/* @__PURE__ */ (0,
|
|
6170
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5982
6171
|
"path",
|
|
5983
6172
|
{
|
|
5984
6173
|
fill: "#169154",
|
|
5985
6174
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
5986
6175
|
}
|
|
5987
6176
|
),
|
|
5988
|
-
/* @__PURE__ */ (0,
|
|
6177
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5989
6178
|
"path",
|
|
5990
6179
|
{
|
|
5991
6180
|
fill: "#18482a",
|
|
5992
6181
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
5993
6182
|
}
|
|
5994
6183
|
),
|
|
5995
|
-
/* @__PURE__ */ (0,
|
|
5996
|
-
/* @__PURE__ */ (0,
|
|
5997
|
-
/* @__PURE__ */ (0,
|
|
5998
|
-
/* @__PURE__ */ (0,
|
|
6184
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
6185
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
6186
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("g", { children: [
|
|
6187
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5999
6188
|
"path",
|
|
6000
6189
|
{
|
|
6001
6190
|
fill: "#29c27f",
|
|
6002
6191
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
6003
6192
|
}
|
|
6004
6193
|
),
|
|
6005
|
-
/* @__PURE__ */ (0,
|
|
6194
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6006
6195
|
"path",
|
|
6007
6196
|
{
|
|
6008
6197
|
fill: "#27663f",
|
|
6009
6198
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
6010
6199
|
}
|
|
6011
6200
|
),
|
|
6012
|
-
/* @__PURE__ */ (0,
|
|
6013
|
-
/* @__PURE__ */ (0,
|
|
6201
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
6202
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
6014
6203
|
] }),
|
|
6015
|
-
/* @__PURE__ */ (0,
|
|
6204
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6016
6205
|
"path",
|
|
6017
6206
|
{
|
|
6018
6207
|
fill: "#0c7238",
|
|
6019
6208
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
6020
6209
|
}
|
|
6021
6210
|
),
|
|
6022
|
-
/* @__PURE__ */ (0,
|
|
6211
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6023
6212
|
"path",
|
|
6024
6213
|
{
|
|
6025
6214
|
fill: "#fff",
|
|
@@ -6029,7 +6218,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6029
6218
|
]
|
|
6030
6219
|
}
|
|
6031
6220
|
);
|
|
6032
|
-
var WordIcon = () => /* @__PURE__ */ (0,
|
|
6221
|
+
var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6033
6222
|
"svg",
|
|
6034
6223
|
{
|
|
6035
6224
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6037,14 +6226,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6037
6226
|
className: "w-10 h-10",
|
|
6038
6227
|
baseProfile: "basic",
|
|
6039
6228
|
children: [
|
|
6040
|
-
/* @__PURE__ */ (0,
|
|
6229
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6041
6230
|
"path",
|
|
6042
6231
|
{
|
|
6043
6232
|
fill: "#283593",
|
|
6044
6233
|
d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
|
|
6045
6234
|
}
|
|
6046
6235
|
),
|
|
6047
|
-
/* @__PURE__ */ (0,
|
|
6236
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6048
6237
|
"linearGradient",
|
|
6049
6238
|
{
|
|
6050
6239
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -6055,19 +6244,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6055
6244
|
gradientTransform: "translate(0 -339.89)",
|
|
6056
6245
|
gradientUnits: "userSpaceOnUse",
|
|
6057
6246
|
children: [
|
|
6058
|
-
/* @__PURE__ */ (0,
|
|
6059
|
-
/* @__PURE__ */ (0,
|
|
6247
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
6248
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
6060
6249
|
]
|
|
6061
6250
|
}
|
|
6062
6251
|
),
|
|
6063
|
-
/* @__PURE__ */ (0,
|
|
6252
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6064
6253
|
"path",
|
|
6065
6254
|
{
|
|
6066
6255
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
6067
6256
|
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
6068
6257
|
}
|
|
6069
6258
|
),
|
|
6070
|
-
/* @__PURE__ */ (0,
|
|
6259
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6071
6260
|
"path",
|
|
6072
6261
|
{
|
|
6073
6262
|
fill: "#1e88e5",
|
|
@@ -6075,21 +6264,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6075
6264
|
d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
|
|
6076
6265
|
}
|
|
6077
6266
|
),
|
|
6078
|
-
/* @__PURE__ */ (0,
|
|
6267
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6079
6268
|
"path",
|
|
6080
6269
|
{
|
|
6081
6270
|
fill: "#00e5ff",
|
|
6082
6271
|
d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
|
|
6083
6272
|
}
|
|
6084
6273
|
),
|
|
6085
|
-
/* @__PURE__ */ (0,
|
|
6274
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6086
6275
|
"path",
|
|
6087
6276
|
{
|
|
6088
6277
|
fill: "#1565c0",
|
|
6089
6278
|
d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
|
|
6090
6279
|
}
|
|
6091
6280
|
),
|
|
6092
|
-
/* @__PURE__ */ (0,
|
|
6281
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6093
6282
|
"path",
|
|
6094
6283
|
{
|
|
6095
6284
|
fill: "#fff",
|
|
@@ -6099,42 +6288,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6099
6288
|
]
|
|
6100
6289
|
}
|
|
6101
6290
|
);
|
|
6102
|
-
var StandardIcon = () => /* @__PURE__ */ (0,
|
|
6291
|
+
var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6103
6292
|
"svg",
|
|
6104
6293
|
{
|
|
6105
6294
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6106
6295
|
viewBox: "0 0 48 48",
|
|
6107
6296
|
className: "w-10 h-10",
|
|
6108
6297
|
children: [
|
|
6109
|
-
/* @__PURE__ */ (0,
|
|
6110
|
-
/* @__PURE__ */ (0,
|
|
6298
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
6299
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
6111
6300
|
]
|
|
6112
6301
|
}
|
|
6113
6302
|
);
|
|
6114
|
-
var PowerPointIcon = () => /* @__PURE__ */ (0,
|
|
6303
|
+
var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6115
6304
|
"svg",
|
|
6116
6305
|
{
|
|
6117
6306
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6118
6307
|
viewBox: "0 0 48 48",
|
|
6119
6308
|
className: "w-10 h-10",
|
|
6120
6309
|
children: [
|
|
6121
|
-
/* @__PURE__ */ (0,
|
|
6310
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6122
6311
|
"path",
|
|
6123
6312
|
{
|
|
6124
6313
|
fill: "#dc4c2c",
|
|
6125
6314
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
6126
6315
|
}
|
|
6127
6316
|
),
|
|
6128
|
-
/* @__PURE__ */ (0,
|
|
6129
|
-
/* @__PURE__ */ (0,
|
|
6130
|
-
/* @__PURE__ */ (0,
|
|
6317
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
6318
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
6319
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6131
6320
|
"path",
|
|
6132
6321
|
{
|
|
6133
6322
|
fill: "#9b341f",
|
|
6134
6323
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
6135
6324
|
}
|
|
6136
6325
|
),
|
|
6137
|
-
/* @__PURE__ */ (0,
|
|
6326
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6138
6327
|
"path",
|
|
6139
6328
|
{
|
|
6140
6329
|
fill: "#fff",
|
|
@@ -6144,16 +6333,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6144
6333
|
]
|
|
6145
6334
|
}
|
|
6146
6335
|
);
|
|
6147
|
-
var TextIcon = () => /* @__PURE__ */ (0,
|
|
6336
|
+
var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6148
6337
|
"svg",
|
|
6149
6338
|
{
|
|
6150
6339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6151
6340
|
viewBox: "0 0 48 48",
|
|
6152
6341
|
className: "w-10 h-10",
|
|
6153
6342
|
children: [
|
|
6154
|
-
/* @__PURE__ */ (0,
|
|
6155
|
-
/* @__PURE__ */ (0,
|
|
6156
|
-
/* @__PURE__ */ (0,
|
|
6343
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
6344
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
6345
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6157
6346
|
"path",
|
|
6158
6347
|
{
|
|
6159
6348
|
fill: "#1976D2",
|
|
@@ -6163,7 +6352,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6163
6352
|
]
|
|
6164
6353
|
}
|
|
6165
6354
|
);
|
|
6166
|
-
var ArchiveIcon = () => /* @__PURE__ */ (0,
|
|
6355
|
+
var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6167
6356
|
"svg",
|
|
6168
6357
|
{
|
|
6169
6358
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6173,14 +6362,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6173
6362
|
version: "1.0",
|
|
6174
6363
|
className: "w-10 h-10",
|
|
6175
6364
|
children: [
|
|
6176
|
-
/* @__PURE__ */ (0,
|
|
6365
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6177
6366
|
"path",
|
|
6178
6367
|
{
|
|
6179
6368
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
6180
6369
|
"clip-rule": "nonzero"
|
|
6181
6370
|
}
|
|
6182
6371
|
) }) }),
|
|
6183
|
-
/* @__PURE__ */ (0,
|
|
6372
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6184
6373
|
"path",
|
|
6185
6374
|
{
|
|
6186
6375
|
fill: "#ff9100",
|
|
@@ -6189,7 +6378,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6189
6378
|
"fill-rule": "nonzero"
|
|
6190
6379
|
}
|
|
6191
6380
|
) }),
|
|
6192
|
-
/* @__PURE__ */ (0,
|
|
6381
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6193
6382
|
"path",
|
|
6194
6383
|
{
|
|
6195
6384
|
fill: "#fbe9e7",
|
|
@@ -6198,7 +6387,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6198
6387
|
"fill-rule": "nonzero"
|
|
6199
6388
|
}
|
|
6200
6389
|
),
|
|
6201
|
-
/* @__PURE__ */ (0,
|
|
6390
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6202
6391
|
"path",
|
|
6203
6392
|
{
|
|
6204
6393
|
fill: "#ffe0b2",
|
|
@@ -6207,7 +6396,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6207
6396
|
"fill-rule": "nonzero"
|
|
6208
6397
|
}
|
|
6209
6398
|
),
|
|
6210
|
-
/* @__PURE__ */ (0,
|
|
6399
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6211
6400
|
"path",
|
|
6212
6401
|
{
|
|
6213
6402
|
fill: "#ffe0b2",
|
|
@@ -6216,7 +6405,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
|
6216
6405
|
"fill-rule": "nonzero"
|
|
6217
6406
|
}
|
|
6218
6407
|
),
|
|
6219
|
-
/* @__PURE__ */ (0,
|
|
6408
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6220
6409
|
"path",
|
|
6221
6410
|
{
|
|
6222
6411
|
fill: "#ffe0b2",
|
|
@@ -6292,8 +6481,8 @@ var DocumentNode = (props) => {
|
|
|
6292
6481
|
}
|
|
6293
6482
|
}
|
|
6294
6483
|
if (documents.length === 0) {
|
|
6295
|
-
return /* @__PURE__ */ (0,
|
|
6296
|
-
/* @__PURE__ */ (0,
|
|
6484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
6485
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6297
6486
|
"svg",
|
|
6298
6487
|
{
|
|
6299
6488
|
className: "w-5 h-5",
|
|
@@ -6301,7 +6490,7 @@ var DocumentNode = (props) => {
|
|
|
6301
6490
|
stroke: "currentColor",
|
|
6302
6491
|
viewBox: "0 0 24 24",
|
|
6303
6492
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6304
|
-
children: /* @__PURE__ */ (0,
|
|
6493
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6305
6494
|
"path",
|
|
6306
6495
|
{
|
|
6307
6496
|
strokeLinecap: "round",
|
|
@@ -6312,11 +6501,11 @@ var DocumentNode = (props) => {
|
|
|
6312
6501
|
)
|
|
6313
6502
|
}
|
|
6314
6503
|
) }),
|
|
6315
|
-
/* @__PURE__ */ (0,
|
|
6316
|
-
/* @__PURE__ */ (0,
|
|
6504
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
6505
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
6317
6506
|
] }) });
|
|
6318
6507
|
}
|
|
6319
|
-
return /* @__PURE__ */ (0,
|
|
6508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
6320
6509
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
6321
6510
|
props.assetBaseUrl,
|
|
6322
6511
|
doc.assetUrl
|
|
@@ -6334,16 +6523,16 @@ var DocumentNode = (props) => {
|
|
|
6334
6523
|
}
|
|
6335
6524
|
}
|
|
6336
6525
|
const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
|
|
6337
|
-
return /* @__PURE__ */ (0,
|
|
6526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6338
6527
|
"div",
|
|
6339
6528
|
{
|
|
6340
6529
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
6341
6530
|
children: [
|
|
6342
|
-
/* @__PURE__ */ (0,
|
|
6343
|
-
/* @__PURE__ */ (0,
|
|
6344
|
-
/* @__PURE__ */ (0,
|
|
6531
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
6532
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon2, {}) }),
|
|
6533
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
6345
6534
|
] }),
|
|
6346
|
-
/* @__PURE__ */ (0,
|
|
6535
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6347
6536
|
"a",
|
|
6348
6537
|
{
|
|
6349
6538
|
href: documentUrl,
|
|
@@ -6351,7 +6540,7 @@ var DocumentNode = (props) => {
|
|
|
6351
6540
|
rel: "noopener noreferrer",
|
|
6352
6541
|
className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
|
|
6353
6542
|
children: [
|
|
6354
|
-
/* @__PURE__ */ (0,
|
|
6543
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
6355
6544
|
"svg",
|
|
6356
6545
|
{
|
|
6357
6546
|
className: "w-4 h-4 mr-2",
|
|
@@ -6359,7 +6548,7 @@ var DocumentNode = (props) => {
|
|
|
6359
6548
|
stroke: "currentColor",
|
|
6360
6549
|
viewBox: "0 0 24 24",
|
|
6361
6550
|
children: [
|
|
6362
|
-
/* @__PURE__ */ (0,
|
|
6551
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6363
6552
|
"path",
|
|
6364
6553
|
{
|
|
6365
6554
|
strokeLinecap: "round",
|
|
@@ -6368,7 +6557,7 @@ var DocumentNode = (props) => {
|
|
|
6368
6557
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
6369
6558
|
}
|
|
6370
6559
|
),
|
|
6371
|
-
/* @__PURE__ */ (0,
|
|
6560
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6372
6561
|
"path",
|
|
6373
6562
|
{
|
|
6374
6563
|
strokeLinecap: "round",
|
|
@@ -6393,7 +6582,7 @@ var DocumentNode = (props) => {
|
|
|
6393
6582
|
var DocumentNode_default = DocumentNode;
|
|
6394
6583
|
|
|
6395
6584
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
6396
|
-
var
|
|
6585
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6397
6586
|
var Pagination2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
6398
6587
|
var Slider2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
|
|
6399
6588
|
ssr: false
|
|
@@ -6650,7 +6839,7 @@ var DivContainer = async (props) => {
|
|
|
6650
6839
|
response = await serviceClient.get(endpoint);
|
|
6651
6840
|
result = response?.result;
|
|
6652
6841
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
6653
|
-
return /* @__PURE__ */ (0,
|
|
6842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(NoDataFound_default, {});
|
|
6654
6843
|
}
|
|
6655
6844
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
6656
6845
|
childCollectionData = getNestedValue6(
|
|
@@ -6670,7 +6859,7 @@ var DivContainer = async (props) => {
|
|
|
6670
6859
|
}
|
|
6671
6860
|
const SelectedNode = NodeTypes2[node.type];
|
|
6672
6861
|
if (!SelectedNode) return null;
|
|
6673
|
-
return /* @__PURE__ */ (0,
|
|
6862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6674
6863
|
SelectedNode,
|
|
6675
6864
|
{
|
|
6676
6865
|
node,
|
|
@@ -6802,14 +6991,14 @@ var DivContainer = async (props) => {
|
|
|
6802
6991
|
props.node.bgClass,
|
|
6803
6992
|
noLinkColor && "no-link-color"
|
|
6804
6993
|
].filter(Boolean).join(" ");
|
|
6805
|
-
return /* @__PURE__ */ (0,
|
|
6806
|
-
/* @__PURE__ */ (0,
|
|
6994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_react53.default.Fragment, { children: [
|
|
6995
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6807
6996
|
"style",
|
|
6808
6997
|
{
|
|
6809
6998
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
6810
6999
|
}
|
|
6811
7000
|
),
|
|
6812
|
-
/* @__PURE__ */ (0,
|
|
7001
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(EnterAnimationClient2, { hasEnterAnimation: !!props.node.enterAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6813
7002
|
Wrapper,
|
|
6814
7003
|
{
|
|
6815
7004
|
id: guid,
|
|
@@ -6823,11 +7012,11 @@ var DivContainer = async (props) => {
|
|
|
6823
7012
|
item,
|
|
6824
7013
|
idx,
|
|
6825
7014
|
props.href ? void 0 : item?.links?.view
|
|
6826
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
7015
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react53.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
6827
7016
|
)
|
|
6828
7017
|
}
|
|
6829
|
-
) })
|
|
6830
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0,
|
|
7018
|
+
) }),
|
|
7019
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6831
7020
|
Pagination2,
|
|
6832
7021
|
{
|
|
6833
7022
|
path: props.path,
|
|
@@ -6840,7 +7029,7 @@ var DivContainer = async (props) => {
|
|
|
6840
7029
|
var DivContainer_default = DivContainer;
|
|
6841
7030
|
|
|
6842
7031
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
6843
|
-
var
|
|
7032
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6844
7033
|
var NodeTypes = {
|
|
6845
7034
|
["paragraph"]: ParagraphNode_default,
|
|
6846
7035
|
["heading"]: HeadingNode_default,
|
|
@@ -6877,14 +7066,14 @@ var PageBodyRenderer = (props) => {
|
|
|
6877
7066
|
}
|
|
6878
7067
|
return true;
|
|
6879
7068
|
};
|
|
6880
|
-
return /* @__PURE__ */ (0,
|
|
7069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
6881
7070
|
{
|
|
6882
7071
|
}
|
|
6883
7072
|
const SelectedNode = NodeTypes[node.type];
|
|
6884
7073
|
if (!shouldRenderNode(node)) {
|
|
6885
7074
|
return null;
|
|
6886
7075
|
}
|
|
6887
|
-
return /* @__PURE__ */ (0,
|
|
7076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6888
7077
|
SelectedNode,
|
|
6889
7078
|
{
|
|
6890
7079
|
node,
|
|
@@ -6900,7 +7089,7 @@ var PageBodyRenderer = (props) => {
|
|
|
6900
7089
|
device: props.device,
|
|
6901
7090
|
widgetRenderer: props.widgetRenderer
|
|
6902
7091
|
}
|
|
6903
|
-
) }) : /* @__PURE__ */ (0,
|
|
7092
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react54.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6904
7093
|
SelectedNode,
|
|
6905
7094
|
{
|
|
6906
7095
|
node,
|
|
@@ -6923,7 +7112,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
|
|
|
6923
7112
|
// src/components/Toast.tsx
|
|
6924
7113
|
var import_react55 = require("react");
|
|
6925
7114
|
init_ToastService();
|
|
6926
|
-
var
|
|
7115
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
6927
7116
|
var Toast = () => {
|
|
6928
7117
|
const [showToast, setShowToast] = (0, import_react55.useState)(false);
|
|
6929
7118
|
const [message, setMessage] = (0, import_react55.useState)("");
|
|
@@ -6957,8 +7146,8 @@ var Toast = () => {
|
|
|
6957
7146
|
});
|
|
6958
7147
|
};
|
|
6959
7148
|
}, [closeToast, showMessage]);
|
|
6960
|
-
return /* @__PURE__ */ (0,
|
|
6961
|
-
/* @__PURE__ */ (0,
|
|
7149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: showToast && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("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__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
|
|
7150
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6962
7151
|
"span",
|
|
6963
7152
|
{
|
|
6964
7153
|
className: "font-medium text-inherit text-sm",
|
|
@@ -6966,7 +7155,7 @@ var Toast = () => {
|
|
|
6966
7155
|
children: message
|
|
6967
7156
|
}
|
|
6968
7157
|
),
|
|
6969
|
-
/* @__PURE__ */ (0,
|
|
7158
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("button", { className: "absolute right-2 top-2 ml-2 focus:outline-none", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6970
7159
|
"svg",
|
|
6971
7160
|
{
|
|
6972
7161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6974,7 +7163,7 @@ var Toast = () => {
|
|
|
6974
7163
|
fill: "none",
|
|
6975
7164
|
viewBox: "0 0 24 24",
|
|
6976
7165
|
stroke: "currentColor",
|
|
6977
|
-
children: /* @__PURE__ */ (0,
|
|
7166
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" })
|
|
6978
7167
|
}
|
|
6979
7168
|
) })
|
|
6980
7169
|
] }) }) });
|
|
@@ -7001,7 +7190,7 @@ init_TimeInput();
|
|
|
7001
7190
|
// src/components/NavigationTabsV2.tsx
|
|
7002
7191
|
var import_link3 = __toESM(require("next/link"));
|
|
7003
7192
|
var import_navigation = require("next/navigation");
|
|
7004
|
-
var
|
|
7193
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
7005
7194
|
function resolveRoutePlaceholders(route, params) {
|
|
7006
7195
|
return route.replace(/\{([^}]+)\}/g, (match, key) => {
|
|
7007
7196
|
const value = params[key];
|
|
@@ -7026,8 +7215,8 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
7026
7215
|
isActive: tab.isActive
|
|
7027
7216
|
})) || [];
|
|
7028
7217
|
if (mappedTabs.length === 0) return null;
|
|
7029
|
-
return /* @__PURE__ */ (0,
|
|
7030
|
-
return /* @__PURE__ */ (0,
|
|
7218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex border-b bg-white rounded-t mb-3", children: mappedTabs.map(({ tabTitle, landingPageUrl, isActive }) => {
|
|
7219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_link3.default, { href: landingPageUrl, className: "-mb-px", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
7031
7220
|
"div",
|
|
7032
7221
|
{
|
|
7033
7222
|
className: `text-sm font-medium border-b-2 px-6 py-2 transition
|
|
@@ -7045,9 +7234,9 @@ var import_navigation2 = require("next/navigation");
|
|
|
7045
7234
|
|
|
7046
7235
|
// src/components/dataForm/NoContentView.tsx
|
|
7047
7236
|
var import_react56 = __toESM(require("react"));
|
|
7048
|
-
var
|
|
7237
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
7049
7238
|
var NoContentView = (props) => {
|
|
7050
|
-
return /* @__PURE__ */ (0,
|
|
7239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react56.default.Fragment, { children: props.isDataFound === false && props.children });
|
|
7051
7240
|
};
|
|
7052
7241
|
var NoContentView_default = NoContentView;
|
|
7053
7242
|
|
|
@@ -7056,38 +7245,38 @@ init_InputControlType();
|
|
|
7056
7245
|
|
|
7057
7246
|
// src/components/dataForm/ContentView.tsx
|
|
7058
7247
|
var import_react57 = __toESM(require("react"));
|
|
7059
|
-
var
|
|
7248
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
7060
7249
|
var ContentView = (props) => {
|
|
7061
|
-
return /* @__PURE__ */ (0,
|
|
7062
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
7063
|
-
/* @__PURE__ */ (0,
|
|
7064
|
-
/* @__PURE__ */ (0,
|
|
7065
|
-
/* @__PURE__ */ (0,
|
|
7066
|
-
/* @__PURE__ */ (0,
|
|
7067
|
-
/* @__PURE__ */ (0,
|
|
7250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react57.default.Fragment, { children: [
|
|
7251
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
7252
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
7253
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
7254
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "ml-2", children: [
|
|
7255
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
7256
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
7068
7257
|
] })
|
|
7069
7258
|
] }),
|
|
7070
|
-
/* @__PURE__ */ (0,
|
|
7071
|
-
/* @__PURE__ */ (0,
|
|
7072
|
-
/* @__PURE__ */ (0,
|
|
7073
|
-
/* @__PURE__ */ (0,
|
|
7074
|
-
/* @__PURE__ */ (0,
|
|
7075
|
-
/* @__PURE__ */ (0,
|
|
7076
|
-
/* @__PURE__ */ (0,
|
|
7259
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
7260
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
|
|
7261
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7262
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7263
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7264
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7265
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7077
7266
|
] }),
|
|
7078
|
-
/* @__PURE__ */ (0,
|
|
7079
|
-
/* @__PURE__ */ (0,
|
|
7080
|
-
/* @__PURE__ */ (0,
|
|
7081
|
-
/* @__PURE__ */ (0,
|
|
7082
|
-
/* @__PURE__ */ (0,
|
|
7083
|
-
/* @__PURE__ */ (0,
|
|
7267
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
|
|
7268
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7269
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7270
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7271
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7272
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7084
7273
|
] }),
|
|
7085
|
-
/* @__PURE__ */ (0,
|
|
7086
|
-
/* @__PURE__ */ (0,
|
|
7087
|
-
/* @__PURE__ */ (0,
|
|
7088
|
-
/* @__PURE__ */ (0,
|
|
7089
|
-
/* @__PURE__ */ (0,
|
|
7090
|
-
/* @__PURE__ */ (0,
|
|
7274
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "animate-pulse", children: [
|
|
7275
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
7276
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
7277
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
7278
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
7279
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
7091
7280
|
] })
|
|
7092
7281
|
] })
|
|
7093
7282
|
] }) }),
|
|
@@ -7147,7 +7336,7 @@ function FormReducer(state, action) {
|
|
|
7147
7336
|
var FormReducer_default = FormReducer;
|
|
7148
7337
|
|
|
7149
7338
|
// src/components/dataForm/DataList.tsx
|
|
7150
|
-
var
|
|
7339
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7151
7340
|
var DataList = (props) => {
|
|
7152
7341
|
const router = (0, import_navigation2.useRouter)();
|
|
7153
7342
|
let builder = new OdataBuilder(props.path);
|
|
@@ -7185,7 +7374,7 @@ var DataList = (props) => {
|
|
|
7185
7374
|
if (path.includes(".")) {
|
|
7186
7375
|
return path.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj);
|
|
7187
7376
|
} else if (Array.isArray(obj[path])) {
|
|
7188
|
-
return obj[path].map((item, index) => /* @__PURE__ */ (0,
|
|
7377
|
+
return obj[path].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: item }, index));
|
|
7189
7378
|
} else {
|
|
7190
7379
|
return obj[path];
|
|
7191
7380
|
}
|
|
@@ -7264,30 +7453,30 @@ var DataList = (props) => {
|
|
|
7264
7453
|
const renderPageNumbers = () => {
|
|
7265
7454
|
if (pages <= 10) {
|
|
7266
7455
|
return Array.from({ length: pages }, (_, index) => index + 1).map(
|
|
7267
|
-
(page) => /* @__PURE__ */ (0,
|
|
7456
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7268
7457
|
Hyperlink,
|
|
7269
7458
|
{
|
|
7270
7459
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7271
7460
|
href: builder.getNewPageUrl(page),
|
|
7272
7461
|
children: page
|
|
7273
7462
|
}
|
|
7274
|
-
) : /* @__PURE__ */ (0,
|
|
7463
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
7275
7464
|
);
|
|
7276
7465
|
} else {
|
|
7277
7466
|
const showFirstPages = activePageNumber <= 5;
|
|
7278
7467
|
const showLastPages = activePageNumber > pages - 5;
|
|
7279
7468
|
if (showFirstPages) {
|
|
7280
|
-
return /* @__PURE__ */ (0,
|
|
7281
|
-
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0,
|
|
7469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
|
|
7470
|
+
Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7282
7471
|
Hyperlink,
|
|
7283
7472
|
{
|
|
7284
7473
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7285
7474
|
href: builder.getNewPageUrl(page),
|
|
7286
7475
|
children: page
|
|
7287
7476
|
}
|
|
7288
|
-
) : /* @__PURE__ */ (0,
|
|
7289
|
-
/* @__PURE__ */ (0,
|
|
7290
|
-
/* @__PURE__ */ (0,
|
|
7477
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
7478
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7479
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7291
7480
|
Hyperlink,
|
|
7292
7481
|
{
|
|
7293
7482
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7295,7 +7484,7 @@ var DataList = (props) => {
|
|
|
7295
7484
|
children: pages - 1
|
|
7296
7485
|
}
|
|
7297
7486
|
),
|
|
7298
|
-
/* @__PURE__ */ (0,
|
|
7487
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7299
7488
|
Hyperlink,
|
|
7300
7489
|
{
|
|
7301
7490
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7303,7 +7492,7 @@ var DataList = (props) => {
|
|
|
7303
7492
|
children: pages
|
|
7304
7493
|
}
|
|
7305
7494
|
),
|
|
7306
|
-
/* @__PURE__ */ (0,
|
|
7495
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7307
7496
|
"select",
|
|
7308
7497
|
{
|
|
7309
7498
|
className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -7315,18 +7504,18 @@ var DataList = (props) => {
|
|
|
7315
7504
|
}
|
|
7316
7505
|
},
|
|
7317
7506
|
children: [
|
|
7318
|
-
/* @__PURE__ */ (0,
|
|
7507
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { className: "", value: "", children: "Jump to" }),
|
|
7319
7508
|
Array.from(
|
|
7320
7509
|
{ length: Math.max(0, pages - 10) },
|
|
7321
7510
|
(_, index) => index + 9
|
|
7322
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
7511
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: page, children: page }, page))
|
|
7323
7512
|
]
|
|
7324
7513
|
}
|
|
7325
7514
|
) })
|
|
7326
7515
|
] });
|
|
7327
7516
|
} else if (showLastPages) {
|
|
7328
|
-
return /* @__PURE__ */ (0,
|
|
7329
|
-
/* @__PURE__ */ (0,
|
|
7517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
|
|
7518
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7330
7519
|
Hyperlink,
|
|
7331
7520
|
{
|
|
7332
7521
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7334,7 +7523,7 @@ var DataList = (props) => {
|
|
|
7334
7523
|
children: "1"
|
|
7335
7524
|
}
|
|
7336
7525
|
),
|
|
7337
|
-
/* @__PURE__ */ (0,
|
|
7526
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7338
7527
|
Hyperlink,
|
|
7339
7528
|
{
|
|
7340
7529
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7342,21 +7531,21 @@ var DataList = (props) => {
|
|
|
7342
7531
|
children: "2"
|
|
7343
7532
|
}
|
|
7344
7533
|
),
|
|
7345
|
-
/* @__PURE__ */ (0,
|
|
7534
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7346
7535
|
Array.from({ length: 8 }, (_, index) => pages - 7 + index).map(
|
|
7347
|
-
(page) => /* @__PURE__ */ (0,
|
|
7536
|
+
(page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7348
7537
|
Hyperlink,
|
|
7349
7538
|
{
|
|
7350
7539
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7351
7540
|
href: builder.getNewPageUrl(page),
|
|
7352
7541
|
children: page
|
|
7353
7542
|
}
|
|
7354
|
-
) : /* @__PURE__ */ (0,
|
|
7543
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
|
|
7355
7544
|
)
|
|
7356
7545
|
] });
|
|
7357
7546
|
} else {
|
|
7358
|
-
return /* @__PURE__ */ (0,
|
|
7359
|
-
/* @__PURE__ */ (0,
|
|
7547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
|
|
7548
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7360
7549
|
Hyperlink,
|
|
7361
7550
|
{
|
|
7362
7551
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7364,7 +7553,7 @@ var DataList = (props) => {
|
|
|
7364
7553
|
children: "1"
|
|
7365
7554
|
}
|
|
7366
7555
|
),
|
|
7367
|
-
/* @__PURE__ */ (0,
|
|
7556
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7368
7557
|
Hyperlink,
|
|
7369
7558
|
{
|
|
7370
7559
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7372,20 +7561,20 @@ var DataList = (props) => {
|
|
|
7372
7561
|
children: "2"
|
|
7373
7562
|
}
|
|
7374
7563
|
),
|
|
7375
|
-
/* @__PURE__ */ (0,
|
|
7564
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7376
7565
|
Array.from(
|
|
7377
7566
|
{ length: 5 },
|
|
7378
7567
|
(_, index) => activePageNumber - 2 + index
|
|
7379
|
-
).map((page) => /* @__PURE__ */ (0,
|
|
7568
|
+
).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7380
7569
|
Hyperlink,
|
|
7381
7570
|
{
|
|
7382
7571
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
7383
7572
|
href: builder.getNewPageUrl(page),
|
|
7384
7573
|
children: page
|
|
7385
7574
|
}
|
|
7386
|
-
) : /* @__PURE__ */ (0,
|
|
7387
|
-
/* @__PURE__ */ (0,
|
|
7388
|
-
/* @__PURE__ */ (0,
|
|
7575
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
|
|
7576
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "px-2 py-1", children: "..." }),
|
|
7577
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7389
7578
|
Hyperlink,
|
|
7390
7579
|
{
|
|
7391
7580
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7393,7 +7582,7 @@ var DataList = (props) => {
|
|
|
7393
7582
|
children: pages - 1
|
|
7394
7583
|
}
|
|
7395
7584
|
),
|
|
7396
|
-
/* @__PURE__ */ (0,
|
|
7585
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7397
7586
|
Hyperlink,
|
|
7398
7587
|
{
|
|
7399
7588
|
className: "px-3 py-1 border-t border-b border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -7401,7 +7590,7 @@ var DataList = (props) => {
|
|
|
7401
7590
|
children: pages
|
|
7402
7591
|
}
|
|
7403
7592
|
),
|
|
7404
|
-
/* @__PURE__ */ (0,
|
|
7593
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "relative inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7405
7594
|
"select",
|
|
7406
7595
|
{
|
|
7407
7596
|
className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
|
|
@@ -7413,8 +7602,8 @@ var DataList = (props) => {
|
|
|
7413
7602
|
}
|
|
7414
7603
|
},
|
|
7415
7604
|
children: [
|
|
7416
|
-
/* @__PURE__ */ (0,
|
|
7417
|
-
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0,
|
|
7605
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: "", children: "Jump to" }),
|
|
7606
|
+
Array.from({ length: pages - 4 }, (_, index) => index + 3).filter((page) => page > 2 && page < pages - 1).map((page) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: page, children: page }, page))
|
|
7418
7607
|
]
|
|
7419
7608
|
}
|
|
7420
7609
|
) })
|
|
@@ -7422,16 +7611,16 @@ var DataList = (props) => {
|
|
|
7422
7611
|
}
|
|
7423
7612
|
}
|
|
7424
7613
|
};
|
|
7425
|
-
return /* @__PURE__ */ (0,
|
|
7426
|
-
/* @__PURE__ */ (0,
|
|
7427
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
7614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react58.default.Fragment, { children: [
|
|
7615
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(ContentView_default, { isDataFound, children: [
|
|
7616
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7428
7617
|
"div",
|
|
7429
7618
|
{
|
|
7430
7619
|
className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
|
|
7431
7620
|
children: [
|
|
7432
|
-
props.title ? /* @__PURE__ */ (0,
|
|
7433
|
-
/* @__PURE__ */ (0,
|
|
7434
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
7621
|
+
props.title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", {}),
|
|
7622
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
7623
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7435
7624
|
InputControl_default,
|
|
7436
7625
|
{
|
|
7437
7626
|
name: "Search_input",
|
|
@@ -7443,7 +7632,7 @@ var DataList = (props) => {
|
|
|
7443
7632
|
}
|
|
7444
7633
|
}
|
|
7445
7634
|
),
|
|
7446
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
7635
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7447
7636
|
InputControl_default,
|
|
7448
7637
|
{
|
|
7449
7638
|
name: filter.name,
|
|
@@ -7458,15 +7647,15 @@ var DataList = (props) => {
|
|
|
7458
7647
|
},
|
|
7459
7648
|
filter.name
|
|
7460
7649
|
)),
|
|
7461
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
7650
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7462
7651
|
Hyperlink,
|
|
7463
7652
|
{
|
|
7464
7653
|
className: "gap-1",
|
|
7465
7654
|
linkType: "Primary" /* Solid */,
|
|
7466
7655
|
href: props.addLinkHref,
|
|
7467
7656
|
children: [
|
|
7468
|
-
/* @__PURE__ */ (0,
|
|
7469
|
-
/* @__PURE__ */ (0,
|
|
7657
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
7658
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
7470
7659
|
]
|
|
7471
7660
|
}
|
|
7472
7661
|
)
|
|
@@ -7474,8 +7663,8 @@ var DataList = (props) => {
|
|
|
7474
7663
|
]
|
|
7475
7664
|
}
|
|
7476
7665
|
),
|
|
7477
|
-
/* @__PURE__ */ (0,
|
|
7478
|
-
/* @__PURE__ */ (0,
|
|
7666
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("table", { className: "w-full divide-y divide-gray-200", children: [
|
|
7667
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { children: props?.columns?.map((column) => {
|
|
7479
7668
|
let url = builder.getNewOrderByUrl(column.name);
|
|
7480
7669
|
let icon = "chevronUpDown";
|
|
7481
7670
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -7485,18 +7674,18 @@ var DataList = (props) => {
|
|
|
7485
7674
|
icon = "chevronUp";
|
|
7486
7675
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
7487
7676
|
}
|
|
7488
|
-
return /* @__PURE__ */ (0,
|
|
7677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7489
7678
|
"th",
|
|
7490
7679
|
{
|
|
7491
7680
|
className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
7492
|
-
children: /* @__PURE__ */ (0,
|
|
7681
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7493
7682
|
Hyperlink,
|
|
7494
7683
|
{
|
|
7495
7684
|
href: column.enableSorting ? url : void 0,
|
|
7496
7685
|
className: "!text-neutral-contrast ",
|
|
7497
|
-
children: /* @__PURE__ */ (0,
|
|
7498
|
-
/* @__PURE__ */ (0,
|
|
7499
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
7686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
7687
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-black", children: column.label }),
|
|
7688
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
7500
7689
|
] })
|
|
7501
7690
|
}
|
|
7502
7691
|
)
|
|
@@ -7504,24 +7693,24 @@ var DataList = (props) => {
|
|
|
7504
7693
|
column.name
|
|
7505
7694
|
);
|
|
7506
7695
|
}) }) }),
|
|
7507
|
-
/* @__PURE__ */ (0,
|
|
7696
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { className: "divide-y divide-gray-200 ", children: props.dataset?.result?.map((dataitem, index) => {
|
|
7508
7697
|
let validityClass = "";
|
|
7509
7698
|
console.log("dataitem", dataitem);
|
|
7510
7699
|
if (props.recordValidityColumnName && getNestedProperty2(dataitem, props.recordValidityColumnName) == false) {
|
|
7511
7700
|
validityClass = "bg-alert-200";
|
|
7512
7701
|
}
|
|
7513
|
-
return /* @__PURE__ */ (0,
|
|
7702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { className: validityClass, children: props?.columns?.map((column, colindex) => {
|
|
7514
7703
|
console.log("column", column);
|
|
7515
|
-
return /* @__PURE__ */ (0,
|
|
7704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react58.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7516
7705
|
"td",
|
|
7517
7706
|
{
|
|
7518
7707
|
className: "px-6 py-2 whitespace-normal " + (column.controlType == ViewControlTypes_default.money ? "" : ""),
|
|
7519
|
-
children: column.addhref === true ? /* @__PURE__ */ (0,
|
|
7708
|
+
children: column.addhref === true ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7520
7709
|
Hyperlink,
|
|
7521
7710
|
{
|
|
7522
7711
|
className: "",
|
|
7523
7712
|
href: `https://${dataitem[column.name]}`,
|
|
7524
|
-
children: /* @__PURE__ */ (0,
|
|
7713
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7525
7714
|
ViewControl_default,
|
|
7526
7715
|
{
|
|
7527
7716
|
controlType: column.controlType,
|
|
@@ -7534,11 +7723,11 @@ var DataList = (props) => {
|
|
|
7534
7723
|
}
|
|
7535
7724
|
)
|
|
7536
7725
|
}
|
|
7537
|
-
) : column.showAsLink ? /* @__PURE__ */ (0,
|
|
7726
|
+
) : column.showAsLink ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7538
7727
|
Hyperlink,
|
|
7539
7728
|
{
|
|
7540
7729
|
href: props.path + dataitem[props.columns[0].name] + "/" + (dataitem.linkUrlSegment ?? column.linkUrlSegment),
|
|
7541
|
-
children: /* @__PURE__ */ (0,
|
|
7730
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7542
7731
|
ViewControl_default,
|
|
7543
7732
|
{
|
|
7544
7733
|
controlType: column.controlType,
|
|
@@ -7548,7 +7737,7 @@ var DataList = (props) => {
|
|
|
7548
7737
|
}
|
|
7549
7738
|
)
|
|
7550
7739
|
}
|
|
7551
|
-
) : /* @__PURE__ */ (0,
|
|
7740
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7552
7741
|
ViewControl_default,
|
|
7553
7742
|
{
|
|
7554
7743
|
controlType: column.controlType,
|
|
@@ -7562,10 +7751,10 @@ var DataList = (props) => {
|
|
|
7562
7751
|
}) }, index);
|
|
7563
7752
|
}) })
|
|
7564
7753
|
] }) }),
|
|
7565
|
-
/* @__PURE__ */ (0,
|
|
7566
|
-
/* @__PURE__ */ (0,
|
|
7567
|
-
/* @__PURE__ */ (0,
|
|
7568
|
-
activePageNumber > 1 && /* @__PURE__ */ (0,
|
|
7754
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
7755
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "text-gray-700", children: label }),
|
|
7756
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex space-x-2 items-center", children: [
|
|
7757
|
+
activePageNumber > 1 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7569
7758
|
Hyperlink,
|
|
7570
7759
|
{
|
|
7571
7760
|
className: "px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -7573,9 +7762,9 @@ var DataList = (props) => {
|
|
|
7573
7762
|
children: "Prev"
|
|
7574
7763
|
}
|
|
7575
7764
|
),
|
|
7576
|
-
activePageNumber <= 1 && /* @__PURE__ */ (0,
|
|
7765
|
+
activePageNumber <= 1 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "px-3 py-1 rounded-l-md border border-gray-300 bg-gray-200 text-gray-500 hover:bg-gray-200", children: "Prev" }),
|
|
7577
7766
|
renderPageNumbers(),
|
|
7578
|
-
activePageNumber < pages && /* @__PURE__ */ (0,
|
|
7767
|
+
activePageNumber < pages && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7579
7768
|
Hyperlink,
|
|
7580
7769
|
{
|
|
7581
7770
|
className: "px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-200",
|
|
@@ -7583,19 +7772,19 @@ var DataList = (props) => {
|
|
|
7583
7772
|
children: "Next"
|
|
7584
7773
|
}
|
|
7585
7774
|
),
|
|
7586
|
-
activePageNumber >= pages && /* @__PURE__ */ (0,
|
|
7775
|
+
activePageNumber >= pages && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "px-3 py-1 rounded-r-md border border-gray-300 bg-gray-200 text-gray-500", children: "Next" })
|
|
7587
7776
|
] })
|
|
7588
7777
|
] }) })
|
|
7589
7778
|
] }),
|
|
7590
|
-
/* @__PURE__ */ (0,
|
|
7591
|
-
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0,
|
|
7779
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(NoContentView_default, { isDataFound, children: [
|
|
7780
|
+
(props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7592
7781
|
"div",
|
|
7593
7782
|
{
|
|
7594
7783
|
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`,
|
|
7595
7784
|
children: [
|
|
7596
|
-
props.title ? /* @__PURE__ */ (0,
|
|
7597
|
-
/* @__PURE__ */ (0,
|
|
7598
|
-
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0,
|
|
7785
|
+
props.title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", {}),
|
|
7786
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
7787
|
+
props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7599
7788
|
InputControl_default,
|
|
7600
7789
|
{
|
|
7601
7790
|
name: "Search_input",
|
|
@@ -7607,7 +7796,7 @@ var DataList = (props) => {
|
|
|
7607
7796
|
}
|
|
7608
7797
|
}
|
|
7609
7798
|
),
|
|
7610
|
-
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0,
|
|
7799
|
+
props.filters && props.filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7611
7800
|
InputControl_default,
|
|
7612
7801
|
{
|
|
7613
7802
|
name: filter.name,
|
|
@@ -7622,15 +7811,15 @@ var DataList = (props) => {
|
|
|
7622
7811
|
},
|
|
7623
7812
|
filter.name
|
|
7624
7813
|
)),
|
|
7625
|
-
props.addLinkHref && /* @__PURE__ */ (0,
|
|
7814
|
+
props.addLinkHref && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7626
7815
|
Hyperlink,
|
|
7627
7816
|
{
|
|
7628
7817
|
className: "gap-1",
|
|
7629
7818
|
linkType: "Primary" /* Solid */,
|
|
7630
7819
|
href: props.addLinkHref,
|
|
7631
7820
|
children: [
|
|
7632
|
-
/* @__PURE__ */ (0,
|
|
7633
|
-
/* @__PURE__ */ (0,
|
|
7821
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { name: "plus", className: "w-4 h-4" }),
|
|
7822
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.addLinkText || "Add New" })
|
|
7634
7823
|
]
|
|
7635
7824
|
}
|
|
7636
7825
|
)
|
|
@@ -7638,8 +7827,8 @@ var DataList = (props) => {
|
|
|
7638
7827
|
]
|
|
7639
7828
|
}
|
|
7640
7829
|
),
|
|
7641
|
-
/* @__PURE__ */ (0,
|
|
7642
|
-
/* @__PURE__ */ (0,
|
|
7830
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
|
|
7831
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("thead", { className: "bg-gray-50", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { children: props?.columns?.map((column) => {
|
|
7643
7832
|
let url = builder.getNewOrderByUrl(column.name);
|
|
7644
7833
|
let icon = "chevronUpDown";
|
|
7645
7834
|
if (orderBy.includes(`${column.name} desc`)) {
|
|
@@ -7649,18 +7838,18 @@ var DataList = (props) => {
|
|
|
7649
7838
|
icon = "chevronUp";
|
|
7650
7839
|
url = builder.getNewOrderByUrl(column.name + " desc");
|
|
7651
7840
|
}
|
|
7652
|
-
return /* @__PURE__ */ (0,
|
|
7841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7653
7842
|
"th",
|
|
7654
7843
|
{
|
|
7655
7844
|
className: "px-6 py-3 text-left font-medium bg-neutral-soft " + (column.enableSorting ? "cursor-pointer " : "") + column.width + (column.controlType == ViewControlTypes_default.money ? " text-right" : ""),
|
|
7656
|
-
children: /* @__PURE__ */ (0,
|
|
7845
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7657
7846
|
Hyperlink,
|
|
7658
7847
|
{
|
|
7659
7848
|
href: column.enableSorting ? url : void 0,
|
|
7660
7849
|
className: "text-body-950",
|
|
7661
|
-
children: /* @__PURE__ */ (0,
|
|
7662
|
-
/* @__PURE__ */ (0,
|
|
7663
|
-
column.enableSorting && /* @__PURE__ */ (0,
|
|
7850
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "flex items-center space-x-1", children: [
|
|
7851
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { children: column.label }),
|
|
7852
|
+
column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
|
|
7664
7853
|
] })
|
|
7665
7854
|
}
|
|
7666
7855
|
)
|
|
@@ -7668,7 +7857,7 @@ var DataList = (props) => {
|
|
|
7668
7857
|
column.name
|
|
7669
7858
|
);
|
|
7670
7859
|
}) }) }) }) }),
|
|
7671
|
-
/* @__PURE__ */ (0,
|
|
7860
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "w-full text-center bg-transparent pt-5", children: "There are no entries in the table at the moment." })
|
|
7672
7861
|
] })
|
|
7673
7862
|
] })
|
|
7674
7863
|
] });
|
|
@@ -7681,7 +7870,7 @@ init_ServiceClient();
|
|
|
7681
7870
|
init_OdataBuilder();
|
|
7682
7871
|
init_SelectWithSearchInput();
|
|
7683
7872
|
var import_navigation3 = require("next/navigation");
|
|
7684
|
-
var
|
|
7873
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7685
7874
|
var viewControlMap = {
|
|
7686
7875
|
number: ViewControlTypes.number,
|
|
7687
7876
|
lineText: ViewControlTypes.lineText,
|
|
@@ -7776,15 +7965,15 @@ var DataListRenderer = ({
|
|
|
7776
7965
|
isActive: landingPageUrl === pathname
|
|
7777
7966
|
};
|
|
7778
7967
|
});
|
|
7779
|
-
return /* @__PURE__ */ (0,
|
|
7780
|
-
resolvedTabs.length > 0 && /* @__PURE__ */ (0,
|
|
7968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_react59.default.Fragment, { children: [
|
|
7969
|
+
resolvedTabs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7781
7970
|
NavigationTabsV2_default,
|
|
7782
7971
|
{
|
|
7783
7972
|
tabs: resolvedTabs,
|
|
7784
7973
|
params: widgetProps?.params ?? params
|
|
7785
7974
|
}
|
|
7786
7975
|
),
|
|
7787
|
-
/* @__PURE__ */ (0,
|
|
7976
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7788
7977
|
DataList_default,
|
|
7789
7978
|
{
|
|
7790
7979
|
addLinkHref,
|
|
@@ -7839,7 +8028,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
|
|
|
7839
8028
|
var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
|
|
7840
8029
|
|
|
7841
8030
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
7842
|
-
var
|
|
8031
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
7843
8032
|
var DataFormChildSection = (props) => {
|
|
7844
8033
|
const { section } = props;
|
|
7845
8034
|
const isOneToOne = section.relationshipType === "one-to-one";
|
|
@@ -7907,14 +8096,14 @@ var DataFormChildSection = (props) => {
|
|
|
7907
8096
|
childItemsToRender,
|
|
7908
8097
|
allChildItems: childItems
|
|
7909
8098
|
});
|
|
7910
|
-
return /* @__PURE__ */ (0,
|
|
7911
|
-
section.sectionTitle && /* @__PURE__ */ (0,
|
|
7912
|
-
/* @__PURE__ */ (0,
|
|
7913
|
-
/* @__PURE__ */ (0,
|
|
7914
|
-
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0,
|
|
7915
|
-
return /* @__PURE__ */ (0,
|
|
8099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react60.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
|
|
8100
|
+
section.sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
|
|
8101
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex flex-col justify-between gap-2", children: [
|
|
8102
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
|
|
8103
|
+
(!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
|
|
8104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("tr", { className: "", children: [
|
|
7916
8105
|
sectionRow.elements.map((field, index) => {
|
|
7917
|
-
return /* @__PURE__ */ (0,
|
|
8106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7918
8107
|
"th",
|
|
7919
8108
|
{
|
|
7920
8109
|
className: "py-3 font-normal text-left",
|
|
@@ -7923,21 +8112,21 @@ var DataFormChildSection = (props) => {
|
|
|
7923
8112
|
field.name
|
|
7924
8113
|
);
|
|
7925
8114
|
}),
|
|
7926
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8115
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("th", { className: "py-3 font-normal text-left", children: "Actions" })
|
|
7927
8116
|
] }, sectionRowIndex);
|
|
7928
8117
|
}) }),
|
|
7929
|
-
/* @__PURE__ */ (0,
|
|
8118
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("tbody", { className: "divide-y divide-gray-200", children: childItemsToRender.map((visibleItem, filteredIndex) => {
|
|
7930
8119
|
const { item, originalIndex } = visibleItem;
|
|
7931
8120
|
const rowKey = originalIndex;
|
|
7932
|
-
return /* @__PURE__ */ (0,
|
|
8121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react60.default.Fragment, { children: section.sectionRows.map(
|
|
7933
8122
|
(sectionRow, sectionRowIndex) => {
|
|
7934
|
-
return /* @__PURE__ */ (0,
|
|
8123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
7935
8124
|
"tr",
|
|
7936
8125
|
{
|
|
7937
8126
|
className: "",
|
|
7938
8127
|
children: [
|
|
7939
8128
|
sectionRow.elements.map((field, index) => {
|
|
7940
|
-
return /* @__PURE__ */ (0,
|
|
8129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "w-11/12", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7941
8130
|
InputControl_default,
|
|
7942
8131
|
{
|
|
7943
8132
|
index: filteredIndex,
|
|
@@ -7957,7 +8146,7 @@ var DataFormChildSection = (props) => {
|
|
|
7957
8146
|
}
|
|
7958
8147
|
) }) }) }, field.name);
|
|
7959
8148
|
}),
|
|
7960
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8149
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7961
8150
|
ClientButton_default,
|
|
7962
8151
|
{
|
|
7963
8152
|
ButtonType: StyleTypes2.Hollow,
|
|
@@ -7966,7 +8155,7 @@ var DataFormChildSection = (props) => {
|
|
|
7966
8155
|
},
|
|
7967
8156
|
dataRole: "delete",
|
|
7968
8157
|
tabIndex: -1,
|
|
7969
|
-
children: /* @__PURE__ */ (0,
|
|
8158
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7970
8159
|
Icon_default,
|
|
7971
8160
|
{
|
|
7972
8161
|
className: "w-4 h-4",
|
|
@@ -7983,7 +8172,7 @@ var DataFormChildSection = (props) => {
|
|
|
7983
8172
|
) }, rowKey);
|
|
7984
8173
|
}) })
|
|
7985
8174
|
] }) }),
|
|
7986
|
-
!section.readonly && !isOneToOne && /* @__PURE__ */ (0,
|
|
8175
|
+
!section.readonly && !isOneToOne && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7987
8176
|
ClientButton_default,
|
|
7988
8177
|
{
|
|
7989
8178
|
ButtonType: "Link" /* Link */,
|
|
@@ -7998,7 +8187,7 @@ var DataFormChildSection = (props) => {
|
|
|
7998
8187
|
var DataFormChildSection_default = DataFormChildSection;
|
|
7999
8188
|
|
|
8000
8189
|
// src/components/dataForm/DataForm.tsx
|
|
8001
|
-
var
|
|
8190
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
8002
8191
|
var DataForm = (props) => {
|
|
8003
8192
|
const formRef = (0, import_react61.useRef)(null);
|
|
8004
8193
|
console.log(props.dataItem, "dssads");
|
|
@@ -8218,19 +8407,19 @@ var DataForm = (props) => {
|
|
|
8218
8407
|
return false;
|
|
8219
8408
|
}
|
|
8220
8409
|
}
|
|
8221
|
-
return /* @__PURE__ */ (0,
|
|
8222
|
-
props.title && /* @__PURE__ */ (0,
|
|
8410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
8411
|
+
props.title && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("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__ */ (0, import_jsx_runtime84.jsxs)(
|
|
8223
8412
|
"div",
|
|
8224
8413
|
{
|
|
8225
8414
|
className: "inline-flex items-center gap-2 cursor-pointer",
|
|
8226
8415
|
onClick: () => window.history.back(),
|
|
8227
8416
|
children: [
|
|
8228
|
-
/* @__PURE__ */ (0,
|
|
8229
|
-
/* @__PURE__ */ (0,
|
|
8417
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 text-primary-800" }),
|
|
8418
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("h2", { className: "text-lg font-semibold text-primary-800", children: props.title })
|
|
8230
8419
|
]
|
|
8231
8420
|
}
|
|
8232
8421
|
) }),
|
|
8233
|
-
/* @__PURE__ */ (0,
|
|
8422
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8234
8423
|
"form",
|
|
8235
8424
|
{
|
|
8236
8425
|
className: "group space-y-6 pb-6 overflow-y-auto",
|
|
@@ -8251,8 +8440,8 @@ var DataForm = (props) => {
|
|
|
8251
8440
|
}
|
|
8252
8441
|
}
|
|
8253
8442
|
},
|
|
8254
|
-
children: /* @__PURE__ */ (0,
|
|
8255
|
-
return /* @__PURE__ */ (0,
|
|
8443
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
|
|
8444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: !section.isChildSection && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
|
|
8256
8445
|
section.sectionRows?.map(
|
|
8257
8446
|
(sectionRow, sectionRowIndex) => {
|
|
8258
8447
|
const elementsCount = sectionRow.elements.length;
|
|
@@ -8263,14 +8452,14 @@ var DataForm = (props) => {
|
|
|
8263
8452
|
sectionRow.visible
|
|
8264
8453
|
);
|
|
8265
8454
|
}
|
|
8266
|
-
return /* @__PURE__ */ (0,
|
|
8267
|
-
return /* @__PURE__ */ (0,
|
|
8455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react61.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
|
|
8456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
8268
8457
|
"div",
|
|
8269
8458
|
{
|
|
8270
8459
|
className: sectionRow.grow ? "grow" : "",
|
|
8271
8460
|
children: [
|
|
8272
|
-
/* @__PURE__ */ (0,
|
|
8273
|
-
/* @__PURE__ */ (0,
|
|
8461
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: field.controlType }),
|
|
8462
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8274
8463
|
InputControl_default,
|
|
8275
8464
|
{
|
|
8276
8465
|
name: field.name,
|
|
@@ -8300,12 +8489,12 @@ var DataForm = (props) => {
|
|
|
8300
8489
|
}) }) }, sectionRowIndex);
|
|
8301
8490
|
}
|
|
8302
8491
|
),
|
|
8303
|
-
/* @__PURE__ */ (0,
|
|
8492
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: section.childSections?.map(
|
|
8304
8493
|
(childSection, childSectionIndex) => {
|
|
8305
|
-
return /* @__PURE__ */ (0,
|
|
8494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: childSection.name && evalutateCondition(
|
|
8306
8495
|
formState.inputValues,
|
|
8307
8496
|
childSection.visible
|
|
8308
|
-
) && /* @__PURE__ */ (0,
|
|
8497
|
+
) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8309
8498
|
DataFormChildSection_default,
|
|
8310
8499
|
{
|
|
8311
8500
|
section: childSection,
|
|
@@ -8320,8 +8509,8 @@ var DataForm = (props) => {
|
|
|
8320
8509
|
}) })
|
|
8321
8510
|
}
|
|
8322
8511
|
),
|
|
8323
|
-
/* @__PURE__ */ (0,
|
|
8324
|
-
/* @__PURE__ */ (0,
|
|
8512
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
|
|
8513
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.additionalActions && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8325
8514
|
Button_default,
|
|
8326
8515
|
{
|
|
8327
8516
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -8329,7 +8518,7 @@ var DataForm = (props) => {
|
|
|
8329
8518
|
children: props.additionalActions.title
|
|
8330
8519
|
}
|
|
8331
8520
|
) }),
|
|
8332
|
-
/* @__PURE__ */ (0,
|
|
8521
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.onDelete && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8333
8522
|
Button_default,
|
|
8334
8523
|
{
|
|
8335
8524
|
ButtonType: "PrimaryHollow" /* Hollow */,
|
|
@@ -8340,7 +8529,7 @@ var DataForm = (props) => {
|
|
|
8340
8529
|
children: "Delete"
|
|
8341
8530
|
}
|
|
8342
8531
|
) }),
|
|
8343
|
-
/* @__PURE__ */ (0,
|
|
8532
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: props.onClick && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
8344
8533
|
Button_default,
|
|
8345
8534
|
{
|
|
8346
8535
|
onValidate,
|
|
@@ -8358,7 +8547,7 @@ var DataForm_default = DataForm;
|
|
|
8358
8547
|
|
|
8359
8548
|
// src/components/dataForm/DataFormRenderer.tsx
|
|
8360
8549
|
init_ServiceClient();
|
|
8361
|
-
var
|
|
8550
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
8362
8551
|
function getAction(actions, code) {
|
|
8363
8552
|
return actions?.find((a) => a.actionCode === code);
|
|
8364
8553
|
}
|
|
@@ -8384,9 +8573,9 @@ var DataFormRenderer = ({
|
|
|
8384
8573
|
"Delete"
|
|
8385
8574
|
);
|
|
8386
8575
|
const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
|
|
8387
|
-
return /* @__PURE__ */ (0,
|
|
8388
|
-
widgetProps && /* @__PURE__ */ (0,
|
|
8389
|
-
/* @__PURE__ */ (0,
|
|
8576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex-grow flex flex-col", children: [
|
|
8577
|
+
widgetProps && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
|
|
8578
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8390
8579
|
DataForm_default,
|
|
8391
8580
|
{
|
|
8392
8581
|
title: !isAddPage ? "Edit " + formDefinition.formTitle + "- v2" : "Add " + formDefinition.formTitle + "- v2",
|