@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260831113446 → 0.8.1-dev.20260901054125
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/{CommentRendererClient-JYDYPHSQ.mjs → CommentRendererClient-FU5ZMGBV.mjs} +46 -2
- package/dist/{CommentRendererClient-5OIJYJ5Z.mjs → CommentRendererClient-L6GILW7U.mjs} +46 -2
- package/dist/{DataBindingControls-JLAO3NJL.mjs → DataBindingControls-GWNAJ7PR.mjs} +2 -2
- package/dist/{DataBindingControls-Y4JXUDZV.mjs → DataBindingControls-WC3HBVVQ.mjs} +2 -2
- package/dist/{InputControlClient-POQDFVL3.mjs → InputControlClient-GRH7VSJR.mjs} +2 -7
- package/dist/{InputControlClient-XC24HYZX.mjs → InputControlClient-NHZU2L64.mjs} +81 -262
- package/dist/{Pagination-T7Z2NXKO.mjs → Pagination-JGUQJ2DH.mjs} +2 -2
- package/dist/{Pagination-QBPYDD66.mjs → Pagination-LNJ27L7U.mjs} +2 -2
- package/dist/{chunk-5TQWVOWH.mjs → chunk-2VS554XP.mjs} +1 -1
- package/dist/{chunk-XTG4JW2O.mjs → chunk-5VGTT4A5.mjs} +35 -215
- package/dist/{chunk-E4VOFO5Q.mjs → chunk-DTWPZPSX.mjs} +0 -3
- package/dist/{chunk-4R7F7LBL.mjs → chunk-IEY342PD.mjs} +0 -3
- package/dist/{chunk-GGG5MJLN.mjs → chunk-Q3LFGHLM.mjs} +1 -1
- package/dist/{chunk-X5ERUUQV.mjs → chunk-RG3CISAA.mjs} +1 -1
- package/dist/index.d.mts +1 -8
- package/dist/index.d.ts +1 -8
- package/dist/index.js +749 -856
- package/dist/index.mjs +75 -29
- package/dist/server.js +275 -378
- package/dist/server.mjs +71 -23
- package/package.json +1 -1
|
@@ -85,6 +85,7 @@ var LineTextInput = (props) => {
|
|
|
85
85
|
value,
|
|
86
86
|
onChange: textChangeHandler,
|
|
87
87
|
onBlur: props?.onBlur,
|
|
88
|
+
autoFocus: props?.attributes?.autoFocus,
|
|
88
89
|
required: props?.attributes?.required,
|
|
89
90
|
placeholder: props?.attributes?.placeholder,
|
|
90
91
|
maxLength: props?.attributes?.maxLength,
|
|
@@ -843,99 +844,9 @@ var SelectWithSearchInput = (props) => {
|
|
|
843
844
|
};
|
|
844
845
|
var SelectWithSearchInput_default = SelectWithSearchInput;
|
|
845
846
|
|
|
846
|
-
// src/components/controls/edit/BooleanSelect.tsx
|
|
847
|
-
import React13, {
|
|
848
|
-
useState as useState3,
|
|
849
|
-
useEffect as useEffect4
|
|
850
|
-
} from "react";
|
|
851
|
-
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
852
|
-
var BooleanSelect = (props) => {
|
|
853
|
-
const [list, setList] = useState3();
|
|
854
|
-
const textChangeHandler = (event) => {
|
|
855
|
-
const text = event.target.value;
|
|
856
|
-
const boolValue = text?.toLowerCase() === "true" || text === "1";
|
|
857
|
-
if (props.callback !== void 0) {
|
|
858
|
-
props.callback({
|
|
859
|
-
name: props.name,
|
|
860
|
-
value: boolValue,
|
|
861
|
-
index: props.index,
|
|
862
|
-
groupKey: props.groupKey
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
};
|
|
866
|
-
useEffect4(() => {
|
|
867
|
-
async function fetchData() {
|
|
868
|
-
console.log("in select");
|
|
869
|
-
if (props.dataset) {
|
|
870
|
-
setList(props.dataset);
|
|
871
|
-
} else if (props.dataSource && props.dataSource != "" && props.serviceClient) {
|
|
872
|
-
let dataSource = props.dataSource;
|
|
873
|
-
let response;
|
|
874
|
-
if (props.dataSourceDependsOn) {
|
|
875
|
-
if (props.dependentValue) {
|
|
876
|
-
dataSource = dataSource.replace(
|
|
877
|
-
`{${props.dataSourceDependsOn}}`,
|
|
878
|
-
props.dependentValue
|
|
879
|
-
);
|
|
880
|
-
response = await props.serviceClient.get(dataSource);
|
|
881
|
-
setList(response.result);
|
|
882
|
-
}
|
|
883
|
-
} else {
|
|
884
|
-
response = await props.serviceClient.get(dataSource);
|
|
885
|
-
setList(response.result);
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
fetchData();
|
|
890
|
-
}, [
|
|
891
|
-
props.dataSource,
|
|
892
|
-
props.dependentValue,
|
|
893
|
-
props.dataset,
|
|
894
|
-
props.dataSourceDependsOn
|
|
895
|
-
]);
|
|
896
|
-
let value;
|
|
897
|
-
if (props.value !== void 0 && props.value !== null) {
|
|
898
|
-
value = props.value;
|
|
899
|
-
}
|
|
900
|
-
return /* @__PURE__ */ jsx13(React13.Fragment, { children: /* @__PURE__ */ jsxs13("label", { className: "block", children: [
|
|
901
|
-
/* @__PURE__ */ jsx13("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
902
|
-
" ",
|
|
903
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx13("span", { className: "bg-error-weak", children: "*" }),
|
|
904
|
-
/* @__PURE__ */ jsxs13(
|
|
905
|
-
"select",
|
|
906
|
-
{
|
|
907
|
-
name: props.name,
|
|
908
|
-
id: props.name,
|
|
909
|
-
value,
|
|
910
|
-
onChange: textChangeHandler,
|
|
911
|
-
required: props?.attributes?.required,
|
|
912
|
-
placeholder: props?.attributes?.placeholder,
|
|
913
|
-
disabled: props?.attributes?.readOnly,
|
|
914
|
-
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 ",
|
|
915
|
-
children: [
|
|
916
|
-
/* @__PURE__ */ jsx13("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
|
|
917
|
-
list && list.map((item, i) => {
|
|
918
|
-
return /* @__PURE__ */ jsx13(
|
|
919
|
-
"option",
|
|
920
|
-
{
|
|
921
|
-
className: "fac-select-option",
|
|
922
|
-
value: item[props.dataKeyFieldName],
|
|
923
|
-
children: item[props.dataTextFieldName]
|
|
924
|
-
},
|
|
925
|
-
item[props.dataKeyFieldName]
|
|
926
|
-
);
|
|
927
|
-
})
|
|
928
|
-
]
|
|
929
|
-
}
|
|
930
|
-
),
|
|
931
|
-
/* @__PURE__ */ jsx13("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
932
|
-
] }) });
|
|
933
|
-
};
|
|
934
|
-
var BooleanSelect_default = BooleanSelect;
|
|
935
|
-
|
|
936
847
|
// src/components/controls/edit/EmailInput.tsx
|
|
937
|
-
import
|
|
938
|
-
import { jsx as
|
|
848
|
+
import React13 from "react";
|
|
849
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
939
850
|
var EmailInput = (props) => {
|
|
940
851
|
const textChangeHandler = (event) => {
|
|
941
852
|
const text = event.target.value;
|
|
@@ -960,11 +871,11 @@ var EmailInput = (props) => {
|
|
|
960
871
|
if (props.value !== void 0 && props.value !== null) {
|
|
961
872
|
value = props.value;
|
|
962
873
|
}
|
|
963
|
-
return /* @__PURE__ */
|
|
964
|
-
/* @__PURE__ */
|
|
874
|
+
return /* @__PURE__ */ jsx13(React13.Fragment, { children: /* @__PURE__ */ jsxs13("label", { className: "block mb-1", children: [
|
|
875
|
+
/* @__PURE__ */ jsx13("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
|
|
965
876
|
" ",
|
|
966
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
877
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx13("span", { className: "bg-error-weak", children: "*" }),
|
|
878
|
+
/* @__PURE__ */ jsx13(
|
|
968
879
|
"input",
|
|
969
880
|
{
|
|
970
881
|
type: "email",
|
|
@@ -980,14 +891,14 @@ var EmailInput = (props) => {
|
|
|
980
891
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
|
|
981
892
|
}
|
|
982
893
|
),
|
|
983
|
-
/* @__PURE__ */
|
|
894
|
+
/* @__PURE__ */ jsx13("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
984
895
|
] }) });
|
|
985
896
|
};
|
|
986
897
|
var EmailInput_default = EmailInput;
|
|
987
898
|
|
|
988
899
|
// src/components/controls/edit/TimeInput.tsx
|
|
989
|
-
import
|
|
990
|
-
import { jsx as
|
|
900
|
+
import React14 from "react";
|
|
901
|
+
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
991
902
|
var TimeInput = (props) => {
|
|
992
903
|
const timeChangeHandler = (event) => {
|
|
993
904
|
const timeValue = event.target.value;
|
|
@@ -1000,11 +911,11 @@ var TimeInput = (props) => {
|
|
|
1000
911
|
});
|
|
1001
912
|
}
|
|
1002
913
|
};
|
|
1003
|
-
return /* @__PURE__ */
|
|
1004
|
-
/* @__PURE__ */
|
|
914
|
+
return /* @__PURE__ */ jsx14(React14.Fragment, { children: /* @__PURE__ */ jsxs14("label", { className: "block mb-1", children: [
|
|
915
|
+
/* @__PURE__ */ jsx14("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
1005
916
|
" ",
|
|
1006
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */
|
|
1007
|
-
/* @__PURE__ */
|
|
917
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx14("span", { className: "bg-error-weak", children: "*" }),
|
|
918
|
+
/* @__PURE__ */ jsx14("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx14(
|
|
1008
919
|
"input",
|
|
1009
920
|
{
|
|
1010
921
|
type: "time",
|
|
@@ -1017,7 +928,7 @@ var TimeInput = (props) => {
|
|
|
1017
928
|
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"
|
|
1018
929
|
}
|
|
1019
930
|
) }),
|
|
1020
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ jsx14("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
|
|
1021
932
|
] }) });
|
|
1022
933
|
};
|
|
1023
934
|
var TimeInput_default = TimeInput;
|
|
@@ -1102,7 +1013,7 @@ var DateTimeUtility = class {
|
|
|
1102
1013
|
var DateTimeUtility_default = DateTimeUtility;
|
|
1103
1014
|
|
|
1104
1015
|
// src/components/controls/edit/DateInput.tsx
|
|
1105
|
-
import { jsx as
|
|
1016
|
+
import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1106
1017
|
var DateInput = (props) => {
|
|
1107
1018
|
const value = useMemo(() => {
|
|
1108
1019
|
if (props.value === void 0 || props.value === null || props.value === "") {
|
|
@@ -1136,11 +1047,11 @@ var DateInput = (props) => {
|
|
|
1136
1047
|
groupKey: props.groupKey
|
|
1137
1048
|
});
|
|
1138
1049
|
};
|
|
1139
|
-
return /* @__PURE__ */
|
|
1140
|
-
props.attributes?.label && /* @__PURE__ */
|
|
1050
|
+
return /* @__PURE__ */ jsxs15("label", { className: "block mb-1", children: [
|
|
1051
|
+
props.attributes?.label && /* @__PURE__ */ jsx15("span", { className: "text-sm font-medium", children: props.attributes.label }),
|
|
1141
1052
|
" ",
|
|
1142
|
-
props.attributes?.label && props.attributes.required && /* @__PURE__ */
|
|
1143
|
-
/* @__PURE__ */
|
|
1053
|
+
props.attributes?.label && props.attributes.required && /* @__PURE__ */ jsx15("span", { className: "bg-error-weak", children: "*" }),
|
|
1054
|
+
/* @__PURE__ */ jsx15(
|
|
1144
1055
|
"input",
|
|
1145
1056
|
{
|
|
1146
1057
|
type: "date",
|
|
@@ -1154,17 +1065,17 @@ var DateInput = (props) => {
|
|
|
1154
1065
|
className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
|
|
1155
1066
|
}
|
|
1156
1067
|
),
|
|
1157
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ jsx15("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
1158
1069
|
] });
|
|
1159
1070
|
};
|
|
1160
1071
|
var DateInput_default = DateInput;
|
|
1161
1072
|
|
|
1162
1073
|
// src/components/controls/edit/RadioInput.tsx
|
|
1163
|
-
import { useEffect as
|
|
1164
|
-
import { jsx as
|
|
1074
|
+
import { useEffect as useEffect4, useState as useState3 } from "react";
|
|
1075
|
+
import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1165
1076
|
var RadioInput = (props) => {
|
|
1166
|
-
const [list, setList] =
|
|
1167
|
-
|
|
1077
|
+
const [list, setList] = useState3([]);
|
|
1078
|
+
useEffect4(() => {
|
|
1168
1079
|
async function loadData() {
|
|
1169
1080
|
if (props.dataset) {
|
|
1170
1081
|
setList(props.dataset);
|
|
@@ -1206,22 +1117,22 @@ var RadioInput = (props) => {
|
|
|
1206
1117
|
});
|
|
1207
1118
|
}
|
|
1208
1119
|
};
|
|
1209
|
-
return /* @__PURE__ */
|
|
1210
|
-
/* @__PURE__ */
|
|
1211
|
-
/* @__PURE__ */
|
|
1120
|
+
return /* @__PURE__ */ jsxs16("div", { className: "block", children: [
|
|
1121
|
+
/* @__PURE__ */ jsx16("span", { className: "text-sm font-medium", children: props.attributes?.label }),
|
|
1122
|
+
/* @__PURE__ */ jsx16("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
|
|
1212
1123
|
const itemValue = item[props.dataKeyFieldName];
|
|
1213
1124
|
const isSelected = String(itemValue) === String(props.value ?? "");
|
|
1214
1125
|
const isRecommended = props.dataRecommendedValue !== void 0 && String(itemValue) === String(props.dataRecommendedValue);
|
|
1215
1126
|
const resultClassName = isSelected ? isRecommended ? "bg-success" : props.dataRecommendedValue ? "bg-alert" : "border-transparent" : "border-transparent";
|
|
1216
1127
|
const iconName = isSelected && props.dataRecommendedValue ? isRecommended ? "checkCircle" : "xCircle" : void 0;
|
|
1217
1128
|
const inputId = `${props.name}-${props.index ?? 0}-id-${index}`;
|
|
1218
|
-
return /* @__PURE__ */
|
|
1129
|
+
return /* @__PURE__ */ jsxs16(
|
|
1219
1130
|
"div",
|
|
1220
1131
|
{
|
|
1221
1132
|
className: `font-normal flex items-center justify-between gap-4 cursor-pointer border rounded p-2 ${resultClassName}`,
|
|
1222
1133
|
children: [
|
|
1223
|
-
/* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
1134
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex gap-4 items-start", children: [
|
|
1135
|
+
/* @__PURE__ */ jsx16(
|
|
1225
1136
|
"input",
|
|
1226
1137
|
{
|
|
1227
1138
|
type: "radio",
|
|
@@ -1235,108 +1146,19 @@ var RadioInput = (props) => {
|
|
|
1235
1146
|
required: props.attributes?.required
|
|
1236
1147
|
}
|
|
1237
1148
|
),
|
|
1238
|
-
/* @__PURE__ */
|
|
1149
|
+
/* @__PURE__ */ jsx16("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
|
|
1239
1150
|
] }),
|
|
1240
|
-
iconName && /* @__PURE__ */
|
|
1151
|
+
iconName && /* @__PURE__ */ jsx16(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
|
|
1241
1152
|
]
|
|
1242
1153
|
},
|
|
1243
1154
|
String(itemValue)
|
|
1244
1155
|
);
|
|
1245
1156
|
}) }),
|
|
1246
|
-
/* @__PURE__ */
|
|
1157
|
+
/* @__PURE__ */ jsx16("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
1247
1158
|
] });
|
|
1248
1159
|
};
|
|
1249
1160
|
var RadioInput_default = RadioInput;
|
|
1250
1161
|
|
|
1251
|
-
// src/components/controls/edit/Switcher.tsx
|
|
1252
|
-
import { useEffect as useEffect6, useState as useState5 } from "react";
|
|
1253
|
-
import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1254
|
-
var Switcher = (props) => {
|
|
1255
|
-
const [list, setList] = useState5([]);
|
|
1256
|
-
useEffect6(() => {
|
|
1257
|
-
async function loadData() {
|
|
1258
|
-
if (props.dataset) {
|
|
1259
|
-
setList(props.dataset);
|
|
1260
|
-
return;
|
|
1261
|
-
}
|
|
1262
|
-
if (!props.dataSource || !props.serviceClient) {
|
|
1263
|
-
setList([]);
|
|
1264
|
-
return;
|
|
1265
|
-
}
|
|
1266
|
-
let dataSource = props.dataSource;
|
|
1267
|
-
if (props.dataSourceDependsOn) {
|
|
1268
|
-
if (!props.dependentValue) {
|
|
1269
|
-
setList([]);
|
|
1270
|
-
return;
|
|
1271
|
-
}
|
|
1272
|
-
dataSource = dataSource.replace(
|
|
1273
|
-
`{${props.dataSourceDependsOn}}`,
|
|
1274
|
-
props.dependentValue
|
|
1275
|
-
);
|
|
1276
|
-
}
|
|
1277
|
-
const response = await props.serviceClient.get(dataSource);
|
|
1278
|
-
setList(response.result ?? []);
|
|
1279
|
-
}
|
|
1280
|
-
loadData();
|
|
1281
|
-
}, [
|
|
1282
|
-
props.dataSource,
|
|
1283
|
-
props.dataSourceDependsOn,
|
|
1284
|
-
props.dataset,
|
|
1285
|
-
props.dependentValue,
|
|
1286
|
-
props.serviceClient
|
|
1287
|
-
]);
|
|
1288
|
-
const changeHandler = (event) => {
|
|
1289
|
-
props.callback?.({
|
|
1290
|
-
name: props.name,
|
|
1291
|
-
value: event.target.value,
|
|
1292
|
-
index: props.index,
|
|
1293
|
-
groupKey: props.groupKey
|
|
1294
|
-
});
|
|
1295
|
-
};
|
|
1296
|
-
const value = props.value === void 0 || props.value === null ? "" : String(props.value);
|
|
1297
|
-
return /* @__PURE__ */ jsxs18("label", { className: "block mb-1", children: [
|
|
1298
|
-
/* @__PURE__ */ jsx18("span", { className: "text-sm font-medium", children: props.attributes?.label }),
|
|
1299
|
-
list.length === 0 ? /* @__PURE__ */ jsx18(
|
|
1300
|
-
"input",
|
|
1301
|
-
{
|
|
1302
|
-
type: "text",
|
|
1303
|
-
name: props.name,
|
|
1304
|
-
id: props.name,
|
|
1305
|
-
value,
|
|
1306
|
-
onChange: changeHandler,
|
|
1307
|
-
required: props.attributes?.required,
|
|
1308
|
-
placeholder: props.attributes?.placeholder,
|
|
1309
|
-
disabled: props.attributes?.readOnly,
|
|
1310
|
-
className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
|
|
1311
|
-
}
|
|
1312
|
-
) : /* @__PURE__ */ jsxs18(
|
|
1313
|
-
"select",
|
|
1314
|
-
{
|
|
1315
|
-
name: props.name,
|
|
1316
|
-
id: props.name,
|
|
1317
|
-
value,
|
|
1318
|
-
onChange: changeHandler,
|
|
1319
|
-
required: props.attributes?.required,
|
|
1320
|
-
disabled: props.attributes?.readOnly,
|
|
1321
|
-
className: `peer select my-1 py-1 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`,
|
|
1322
|
-
children: [
|
|
1323
|
-
/* @__PURE__ */ jsx18("option", { value: "", children: props.attributes?.placeholder || "Select" }),
|
|
1324
|
-
list.map((item) => /* @__PURE__ */ jsx18(
|
|
1325
|
-
"option",
|
|
1326
|
-
{
|
|
1327
|
-
value: item[props.dataKeyFieldName],
|
|
1328
|
-
children: item[props.dataTextFieldName]
|
|
1329
|
-
},
|
|
1330
|
-
String(item[props.dataKeyFieldName])
|
|
1331
|
-
))
|
|
1332
|
-
]
|
|
1333
|
-
}
|
|
1334
|
-
),
|
|
1335
|
-
/* @__PURE__ */ jsx18("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
1336
|
-
] });
|
|
1337
|
-
};
|
|
1338
|
-
var Switcher_default = Switcher;
|
|
1339
|
-
|
|
1340
1162
|
export {
|
|
1341
1163
|
MultilineTextInput_default,
|
|
1342
1164
|
LineTextInput_default,
|
|
@@ -1350,10 +1172,8 @@ export {
|
|
|
1350
1172
|
DateTimeInput_default,
|
|
1351
1173
|
ColorInput_default,
|
|
1352
1174
|
SelectWithSearchInput_default,
|
|
1353
|
-
BooleanSelect_default,
|
|
1354
1175
|
EmailInput_default,
|
|
1355
1176
|
TimeInput_default,
|
|
1356
1177
|
DateInput_default,
|
|
1357
|
-
RadioInput_default
|
|
1358
|
-
Switcher_default
|
|
1178
|
+
RadioInput_default
|
|
1359
1179
|
};
|
|
@@ -12,7 +12,6 @@ var InputControlType = {
|
|
|
12
12
|
moneyInput: "money",
|
|
13
13
|
select: "select",
|
|
14
14
|
percentageInput: "percentage",
|
|
15
|
-
asset: "asset",
|
|
16
15
|
assetUpload: "assetUpload",
|
|
17
16
|
phoneInput: "phone",
|
|
18
17
|
numberInput: "numberInput",
|
|
@@ -23,11 +22,9 @@ var InputControlType = {
|
|
|
23
22
|
colorInput: "colorInput",
|
|
24
23
|
selectWithSearchInput: "selectWithSearchInput",
|
|
25
24
|
selectWithSearchPanel: "selectWithSearchPanel",
|
|
26
|
-
booleanSelect: "booleanSelect",
|
|
27
25
|
switchInput: "switchInput",
|
|
28
26
|
dateInput: "dateInput",
|
|
29
27
|
radioInput: "radioInput",
|
|
30
|
-
switcher: "switcher",
|
|
31
28
|
videoInput: "videoInput",
|
|
32
29
|
referenceInput: "referenceInput"
|
|
33
30
|
};
|
|
@@ -9,7 +9,6 @@ var InputControlType = {
|
|
|
9
9
|
moneyInput: "money",
|
|
10
10
|
select: "select",
|
|
11
11
|
percentageInput: "percentage",
|
|
12
|
-
asset: "asset",
|
|
13
12
|
assetUpload: "assetUpload",
|
|
14
13
|
phoneInput: "phone",
|
|
15
14
|
numberInput: "numberInput",
|
|
@@ -20,11 +19,9 @@ var InputControlType = {
|
|
|
20
19
|
colorInput: "colorInput",
|
|
21
20
|
selectWithSearchInput: "selectWithSearchInput",
|
|
22
21
|
selectWithSearchPanel: "selectWithSearchPanel",
|
|
23
|
-
booleanSelect: "booleanSelect",
|
|
24
22
|
switchInput: "switchInput",
|
|
25
23
|
dateInput: "dateInput",
|
|
26
24
|
radioInput: "radioInput",
|
|
27
|
-
switcher: "switcher",
|
|
28
25
|
videoInput: "videoInput",
|
|
29
26
|
referenceInput: "referenceInput"
|
|
30
27
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// src/components/controls/edit/InputControl.tsx
|
|
5
5
|
import dynamic from "next/dynamic";
|
|
6
|
-
var InputControl = dynamic(() => import("./InputControlClient-
|
|
6
|
+
var InputControl = dynamic(() => import("./InputControlClient-GRH7VSJR.mjs"), {
|
|
7
7
|
ssr: false
|
|
8
8
|
});
|
|
9
9
|
var InputControl_default = InputControl;
|
package/dist/index.d.mts
CHANGED
|
@@ -54,7 +54,6 @@ declare const InputControlType: {
|
|
|
54
54
|
moneyInput: string;
|
|
55
55
|
select: string;
|
|
56
56
|
percentageInput: string;
|
|
57
|
-
asset: string;
|
|
58
57
|
assetUpload: string;
|
|
59
58
|
phoneInput: string;
|
|
60
59
|
numberInput: string;
|
|
@@ -65,11 +64,9 @@ declare const InputControlType: {
|
|
|
65
64
|
colorInput: string;
|
|
66
65
|
selectWithSearchInput: string;
|
|
67
66
|
selectWithSearchPanel: string;
|
|
68
|
-
booleanSelect: string;
|
|
69
67
|
switchInput: string;
|
|
70
68
|
dateInput: string;
|
|
71
69
|
radioInput: string;
|
|
72
|
-
switcher: string;
|
|
73
70
|
videoInput: string;
|
|
74
71
|
referenceInput: string;
|
|
75
72
|
};
|
|
@@ -272,8 +269,6 @@ declare const DateTimeInput: React__default.FC<InputControlProps>;
|
|
|
272
269
|
|
|
273
270
|
declare const ColorInput: React__default.FC<InputControlProps>;
|
|
274
271
|
|
|
275
|
-
declare const BooleanSelect: React__default.FC<InputControlProps>;
|
|
276
|
-
|
|
277
272
|
declare const Select: React__default.FC<InputControlProps>;
|
|
278
273
|
|
|
279
274
|
declare const EmailInput: React__default.FC<InputControlProps>;
|
|
@@ -284,8 +279,6 @@ declare const DateInput: React__default.FC<InputControlProps>;
|
|
|
284
279
|
|
|
285
280
|
declare const RadioInput: React__default.FC<InputControlProps>;
|
|
286
281
|
|
|
287
|
-
declare const Switcher: React__default.FC<InputControlProps>;
|
|
288
|
-
|
|
289
282
|
interface TabItem {
|
|
290
283
|
tabTitle: string;
|
|
291
284
|
displayOrder: number;
|
|
@@ -485,4 +478,4 @@ interface DataFormRendererProps {
|
|
|
485
478
|
}
|
|
486
479
|
declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => React.JSX.Element | null;
|
|
487
480
|
|
|
488
|
-
export { type ActionResponse$1 as ActionResponse,
|
|
481
|
+
export { type ActionResponse$1 as ActionResponse, Button, CheckboxInput, ColorInput, DataFormRenderer, DataList, DataListRenderer, DateInput, DateTimeInput, EmailInput, EnterAnimationHydrator, InputControl, type InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, RadioInput, Select, StyleTypes, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
|
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,6 @@ declare const InputControlType: {
|
|
|
54
54
|
moneyInput: string;
|
|
55
55
|
select: string;
|
|
56
56
|
percentageInput: string;
|
|
57
|
-
asset: string;
|
|
58
57
|
assetUpload: string;
|
|
59
58
|
phoneInput: string;
|
|
60
59
|
numberInput: string;
|
|
@@ -65,11 +64,9 @@ declare const InputControlType: {
|
|
|
65
64
|
colorInput: string;
|
|
66
65
|
selectWithSearchInput: string;
|
|
67
66
|
selectWithSearchPanel: string;
|
|
68
|
-
booleanSelect: string;
|
|
69
67
|
switchInput: string;
|
|
70
68
|
dateInput: string;
|
|
71
69
|
radioInput: string;
|
|
72
|
-
switcher: string;
|
|
73
70
|
videoInput: string;
|
|
74
71
|
referenceInput: string;
|
|
75
72
|
};
|
|
@@ -272,8 +269,6 @@ declare const DateTimeInput: React__default.FC<InputControlProps>;
|
|
|
272
269
|
|
|
273
270
|
declare const ColorInput: React__default.FC<InputControlProps>;
|
|
274
271
|
|
|
275
|
-
declare const BooleanSelect: React__default.FC<InputControlProps>;
|
|
276
|
-
|
|
277
272
|
declare const Select: React__default.FC<InputControlProps>;
|
|
278
273
|
|
|
279
274
|
declare const EmailInput: React__default.FC<InputControlProps>;
|
|
@@ -284,8 +279,6 @@ declare const DateInput: React__default.FC<InputControlProps>;
|
|
|
284
279
|
|
|
285
280
|
declare const RadioInput: React__default.FC<InputControlProps>;
|
|
286
281
|
|
|
287
|
-
declare const Switcher: React__default.FC<InputControlProps>;
|
|
288
|
-
|
|
289
282
|
interface TabItem {
|
|
290
283
|
tabTitle: string;
|
|
291
284
|
displayOrder: number;
|
|
@@ -485,4 +478,4 @@ interface DataFormRendererProps {
|
|
|
485
478
|
}
|
|
486
479
|
declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => React.JSX.Element | null;
|
|
487
480
|
|
|
488
|
-
export { type ActionResponse$1 as ActionResponse,
|
|
481
|
+
export { type ActionResponse$1 as ActionResponse, Button, CheckboxInput, ColorInput, DataFormRenderer, DataList, DataListRenderer, DateInput, DateTimeInput, EmailInput, EnterAnimationHydrator, InputControl, type InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, RadioInput, Select, StyleTypes, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
|