@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260428110702 → 0.8.1-dev.20260428111737
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/index.js +5 -1
- package/dist/index.mjs +69 -65
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1296,7 +1296,11 @@ var timeZoneAbbreviations = {
|
|
|
1296
1296
|
// src/components/controls/view/DateView.tsx
|
|
1297
1297
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
1298
1298
|
var DateView = (props) => {
|
|
1299
|
-
const userTimeZone =
|
|
1299
|
+
const [userTimeZone, setUserTimeZone] = (0, import_react2.useState)(null);
|
|
1300
|
+
(0, import_react2.useEffect)(() => {
|
|
1301
|
+
setUserTimeZone(Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
1302
|
+
}, []);
|
|
1303
|
+
if (!userTimeZone) return null;
|
|
1300
1304
|
const getTimeZoneAbbreviation = (timeZone) => {
|
|
1301
1305
|
return timeZoneAbbreviations[timeZone] || timeZone;
|
|
1302
1306
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var NumberView = (props) => {
|
|
|
43
43
|
var NumberView_default = NumberView;
|
|
44
44
|
|
|
45
45
|
// src/components/controls/view/DateView.tsx
|
|
46
|
-
import React2 from "react";
|
|
46
|
+
import React2, { useState, useEffect } from "react";
|
|
47
47
|
|
|
48
48
|
// src/components/controls/view/TimeZoneAbbrevations.tsx
|
|
49
49
|
var timeZoneAbbreviations = {
|
|
@@ -164,7 +164,11 @@ var timeZoneAbbreviations = {
|
|
|
164
164
|
// src/components/controls/view/DateView.tsx
|
|
165
165
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
166
166
|
var DateView = (props) => {
|
|
167
|
-
const userTimeZone =
|
|
167
|
+
const [userTimeZone, setUserTimeZone] = useState(null);
|
|
168
|
+
useEffect(() => {
|
|
169
|
+
setUserTimeZone(Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
170
|
+
}, []);
|
|
171
|
+
if (!userTimeZone) return null;
|
|
168
172
|
const getTimeZoneAbbreviation = (timeZone) => {
|
|
169
173
|
return timeZoneAbbreviations[timeZone] || timeZone;
|
|
170
174
|
};
|
|
@@ -612,10 +616,10 @@ var InputControlType = {
|
|
|
612
616
|
var InputControlType_default = InputControlType;
|
|
613
617
|
|
|
614
618
|
// src/components/controls/edit/Select.tsx
|
|
615
|
-
import { useState, useEffect } from "react";
|
|
619
|
+
import { useState as useState2, useEffect as useEffect2 } from "react";
|
|
616
620
|
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
617
621
|
var Select = (props) => {
|
|
618
|
-
const [list, setList] =
|
|
622
|
+
const [list, setList] = useState2([]);
|
|
619
623
|
const getSafeValue = (val) => {
|
|
620
624
|
if (val === null || val === void 0) return "";
|
|
621
625
|
if (typeof val === "boolean") return val ? "1" : "0";
|
|
@@ -644,7 +648,7 @@ var Select = (props) => {
|
|
|
644
648
|
groupKey: props.groupKey
|
|
645
649
|
});
|
|
646
650
|
};
|
|
647
|
-
|
|
651
|
+
useEffect2(() => {
|
|
648
652
|
async function fetchData() {
|
|
649
653
|
if (props.dataset) {
|
|
650
654
|
setList(props.dataset);
|
|
@@ -1025,11 +1029,11 @@ var DateTimeInput = (props) => {
|
|
|
1025
1029
|
var DateTimeInput_default = DateTimeInput;
|
|
1026
1030
|
|
|
1027
1031
|
// src/components/controls/edit/ColorInput.tsx
|
|
1028
|
-
import React21, { useEffect as
|
|
1032
|
+
import React21, { useEffect as useEffect3 } from "react";
|
|
1029
1033
|
import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1030
1034
|
var ColorInput = (props) => {
|
|
1031
1035
|
const [color, setColor] = React21.useState("#3b82f6");
|
|
1032
|
-
|
|
1036
|
+
useEffect3(() => {
|
|
1033
1037
|
if (props.value !== void 0 && props.value !== null) {
|
|
1034
1038
|
if (typeof props.value === "string") {
|
|
1035
1039
|
setColor(props.value);
|
|
@@ -1071,15 +1075,15 @@ var ColorInput = (props) => {
|
|
|
1071
1075
|
var ColorInput_default = ColorInput;
|
|
1072
1076
|
|
|
1073
1077
|
// src/components/controls/edit/SelectWithSearchInput.tsx
|
|
1074
|
-
import { useEffect as
|
|
1078
|
+
import { useEffect as useEffect4, useRef, useState as useState3 } from "react";
|
|
1075
1079
|
import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1076
1080
|
var SelectWithSearchInput = (props) => {
|
|
1077
|
-
const [isOpen, setIsOpen] =
|
|
1078
|
-
const [searchTerm, setSearchTerm] =
|
|
1079
|
-
const [highlightedIndex, setHighlightedIndex] =
|
|
1080
|
-
const [selectedItem, setSelectedItem] =
|
|
1081
|
-
const [list, setList] =
|
|
1082
|
-
|
|
1081
|
+
const [isOpen, setIsOpen] = useState3(false);
|
|
1082
|
+
const [searchTerm, setSearchTerm] = useState3("");
|
|
1083
|
+
const [highlightedIndex, setHighlightedIndex] = useState3(-1);
|
|
1084
|
+
const [selectedItem, setSelectedItem] = useState3(null);
|
|
1085
|
+
const [list, setList] = useState3([]);
|
|
1086
|
+
useEffect4(() => {
|
|
1083
1087
|
async function fetchData() {
|
|
1084
1088
|
if (props.dataset) {
|
|
1085
1089
|
setList(props.dataset);
|
|
@@ -1134,7 +1138,7 @@ var SelectWithSearchInput = (props) => {
|
|
|
1134
1138
|
}
|
|
1135
1139
|
};
|
|
1136
1140
|
const dropdownRef = useRef(null);
|
|
1137
|
-
|
|
1141
|
+
useEffect4(() => {
|
|
1138
1142
|
if (highlightedIndex >= 0 && dropdownRef.current) {
|
|
1139
1143
|
const highlightedItem = dropdownRef.current.children[highlightedIndex];
|
|
1140
1144
|
highlightedItem?.scrollIntoView({
|
|
@@ -1220,26 +1224,26 @@ var SelectWithSearchInput_default = SelectWithSearchInput;
|
|
|
1220
1224
|
|
|
1221
1225
|
// src/components/controls/edit/SelectWithSearchPanel.tsx
|
|
1222
1226
|
import React23, {
|
|
1223
|
-
useEffect as
|
|
1227
|
+
useEffect as useEffect5,
|
|
1224
1228
|
useRef as useRef2,
|
|
1225
|
-
useState as
|
|
1229
|
+
useState as useState4,
|
|
1226
1230
|
useCallback
|
|
1227
1231
|
} from "react";
|
|
1228
1232
|
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1229
1233
|
var SelectWithSearchPanel = (props) => {
|
|
1230
|
-
const [isOpen, setIsOpen] =
|
|
1231
|
-
const [searchTerm, setSearchTerm] =
|
|
1232
|
-
const [highlightedIndex, setHighlightedIndex] =
|
|
1233
|
-
const [list, setList] =
|
|
1234
|
+
const [isOpen, setIsOpen] = useState4(false);
|
|
1235
|
+
const [searchTerm, setSearchTerm] = useState4("");
|
|
1236
|
+
const [highlightedIndex, setHighlightedIndex] = useState4(0);
|
|
1237
|
+
const [list, setList] = useState4([]);
|
|
1234
1238
|
const listRef = useRef2(null);
|
|
1235
|
-
const [isError, setIsError] =
|
|
1239
|
+
const [isError, setIsError] = useState4(false);
|
|
1236
1240
|
const containerRef = useRef2(null);
|
|
1237
|
-
const [isCreateOpen, setIsCreateOpen] =
|
|
1238
|
-
const [formData, setFormData] =
|
|
1241
|
+
const [isCreateOpen, setIsCreateOpen] = useState4(false);
|
|
1242
|
+
const [formData, setFormData] = useState4({});
|
|
1239
1243
|
const getNestedValue3 = (obj, path) => {
|
|
1240
1244
|
return path.split(".").reduce((acc, key) => acc?.[key], obj);
|
|
1241
1245
|
};
|
|
1242
|
-
|
|
1246
|
+
useEffect5(() => {
|
|
1243
1247
|
const handleClickOutside = (event) => {
|
|
1244
1248
|
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
1245
1249
|
setIsOpen(false);
|
|
@@ -1250,7 +1254,7 @@ var SelectWithSearchPanel = (props) => {
|
|
|
1250
1254
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
1251
1255
|
};
|
|
1252
1256
|
}, []);
|
|
1253
|
-
|
|
1257
|
+
useEffect5(() => {
|
|
1254
1258
|
async function fetchData() {
|
|
1255
1259
|
if (props.dataset) {
|
|
1256
1260
|
setList(props.dataset);
|
|
@@ -1292,7 +1296,7 @@ var SelectWithSearchPanel = (props) => {
|
|
|
1292
1296
|
audioCtx.close();
|
|
1293
1297
|
}, 250);
|
|
1294
1298
|
};
|
|
1295
|
-
|
|
1299
|
+
useEffect5(() => {
|
|
1296
1300
|
const filteredItems2 = list?.filter(
|
|
1297
1301
|
(item) => item[props?.dataTextFieldName]?.toLowerCase().includes(searchTerm?.toLowerCase())
|
|
1298
1302
|
);
|
|
@@ -1472,12 +1476,12 @@ var SelectWithSearchPanel_default = SelectWithSearchPanel;
|
|
|
1472
1476
|
|
|
1473
1477
|
// src/components/controls/edit/BooleanSelect.tsx
|
|
1474
1478
|
import React24, {
|
|
1475
|
-
useState as
|
|
1476
|
-
useEffect as
|
|
1479
|
+
useState as useState5,
|
|
1480
|
+
useEffect as useEffect6
|
|
1477
1481
|
} from "react";
|
|
1478
1482
|
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1479
1483
|
var BooleanSelect = (props) => {
|
|
1480
|
-
const [list, setList] =
|
|
1484
|
+
const [list, setList] = useState5();
|
|
1481
1485
|
const textChangeHandler = (event) => {
|
|
1482
1486
|
const text = event.target.value;
|
|
1483
1487
|
const boolValue = text?.toLowerCase() === "true" || text === "1";
|
|
@@ -1490,7 +1494,7 @@ var BooleanSelect = (props) => {
|
|
|
1490
1494
|
});
|
|
1491
1495
|
}
|
|
1492
1496
|
};
|
|
1493
|
-
|
|
1497
|
+
useEffect6(() => {
|
|
1494
1498
|
async function fetchData() {
|
|
1495
1499
|
console.log("in select");
|
|
1496
1500
|
if (props.dataset) {
|
|
@@ -1650,7 +1654,7 @@ var TimeInput = (props) => {
|
|
|
1650
1654
|
var TimeInput_default = TimeInput;
|
|
1651
1655
|
|
|
1652
1656
|
// src/components/controls/edit/AssetUpload.tsx
|
|
1653
|
-
import React27, { useEffect as
|
|
1657
|
+
import React27, { useEffect as useEffect7 } from "react";
|
|
1654
1658
|
|
|
1655
1659
|
// src/components/utilities/AssetUtility.tsx
|
|
1656
1660
|
var AssetUtility = class {
|
|
@@ -1768,7 +1772,7 @@ var AssetUpload = (props) => {
|
|
|
1768
1772
|
return "image";
|
|
1769
1773
|
};
|
|
1770
1774
|
const [assetType, setAssetType] = React27.useState(getInitialTab);
|
|
1771
|
-
|
|
1775
|
+
useEffect7(() => {
|
|
1772
1776
|
setAssetType(getInitialTab());
|
|
1773
1777
|
}, [props.value]);
|
|
1774
1778
|
const assetUploadCallback = (newAsset) => {
|
|
@@ -2873,7 +2877,7 @@ var WidgetNode = (props) => {
|
|
|
2873
2877
|
var WidgetNode_default = WidgetNode;
|
|
2874
2878
|
|
|
2875
2879
|
// src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
|
|
2876
|
-
import React38, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as
|
|
2880
|
+
import React38, { useRef as useRef3, useReducer, useCallback as useCallback2, useEffect as useEffect8 } from "react";
|
|
2877
2881
|
|
|
2878
2882
|
// src/components/pageRenderingEngine/nodes/InputControlNode.tsx
|
|
2879
2883
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
@@ -2966,7 +2970,7 @@ var FormContainerNode = (props) => {
|
|
|
2966
2970
|
const handleInputChange = useCallback2((updatedValues) => {
|
|
2967
2971
|
dispatch({ type: FORM_INPUT_UPDATE, name: updatedValues.name, value: updatedValues.value });
|
|
2968
2972
|
}, [dispatch]);
|
|
2969
|
-
|
|
2973
|
+
useEffect8(() => {
|
|
2970
2974
|
const fetchInitialData = async () => {
|
|
2971
2975
|
const client = new ServiceClient_default(props.apiBaseUrl, props.session);
|
|
2972
2976
|
const response = await client.getSingle(props.node.dataFetchApi, props.routeParameters);
|
|
@@ -3023,7 +3027,7 @@ var EmbedNode = (props) => {
|
|
|
3023
3027
|
var EmbedNode_default = EmbedNode;
|
|
3024
3028
|
|
|
3025
3029
|
// src/components/Slider.tsx
|
|
3026
|
-
import React39, { useState as
|
|
3030
|
+
import React39, { useState as useState6, useEffect as useEffect9, Children, cloneElement } from "react";
|
|
3027
3031
|
import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3028
3032
|
var Slider = ({
|
|
3029
3033
|
children,
|
|
@@ -3042,13 +3046,13 @@ var Slider = ({
|
|
|
3042
3046
|
pillStyle = "cumulative",
|
|
3043
3047
|
progressPosition = "bottom"
|
|
3044
3048
|
}) => {
|
|
3045
|
-
const [currentSlide, setCurrentSlide] =
|
|
3046
|
-
const [transition, setTransition] =
|
|
3047
|
-
const [slidesToShowState, setSlidesToShowState] =
|
|
3049
|
+
const [currentSlide, setCurrentSlide] = useState6(0);
|
|
3050
|
+
const [transition, setTransition] = useState6(true);
|
|
3051
|
+
const [slidesToShowState, setSlidesToShowState] = useState6(
|
|
3048
3052
|
typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
|
|
3049
3053
|
);
|
|
3050
|
-
const [isPlaying, setIsPlaying] =
|
|
3051
|
-
|
|
3054
|
+
const [isPlaying, setIsPlaying] = useState6(autoplay);
|
|
3055
|
+
useEffect9(() => {
|
|
3052
3056
|
if (typeof slidesToShow === "number") return;
|
|
3053
3057
|
const handleResize = () => {
|
|
3054
3058
|
if (window.innerWidth >= 1024) {
|
|
@@ -3063,7 +3067,7 @@ var Slider = ({
|
|
|
3063
3067
|
window.addEventListener("resize", handleResize);
|
|
3064
3068
|
return () => window.removeEventListener("resize", handleResize);
|
|
3065
3069
|
}, [slidesToShow]);
|
|
3066
|
-
|
|
3070
|
+
useEffect9(() => {
|
|
3067
3071
|
if (!autoplay) return;
|
|
3068
3072
|
const timer = setInterval(() => {
|
|
3069
3073
|
if (isPlaying) {
|
|
@@ -3239,13 +3243,13 @@ var ProgressPill = ({
|
|
|
3239
3243
|
currentSlide,
|
|
3240
3244
|
totalSlides
|
|
3241
3245
|
}) => {
|
|
3242
|
-
const [progress, setProgress] =
|
|
3243
|
-
|
|
3246
|
+
const [progress, setProgress] = useState6(0);
|
|
3247
|
+
useEffect9(() => {
|
|
3244
3248
|
if (active) {
|
|
3245
3249
|
setProgress(0);
|
|
3246
3250
|
}
|
|
3247
3251
|
}, [active, index]);
|
|
3248
|
-
|
|
3252
|
+
useEffect9(() => {
|
|
3249
3253
|
if (!active || !isPlaying) {
|
|
3250
3254
|
if (!active) {
|
|
3251
3255
|
setProgress(0);
|
|
@@ -4409,12 +4413,12 @@ var PageBodyRenderer = (props) => {
|
|
|
4409
4413
|
var PageBodyRenderer_default = PageBodyRenderer;
|
|
4410
4414
|
|
|
4411
4415
|
// src/components/Toast.tsx
|
|
4412
|
-
import { useState as
|
|
4416
|
+
import { useState as useState8 } from "react";
|
|
4413
4417
|
import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4414
4418
|
var Toast = () => {
|
|
4415
|
-
const [showToast, setShowToast] =
|
|
4416
|
-
const [message, setMessage] =
|
|
4417
|
-
const [messageType, setMessageType] =
|
|
4419
|
+
const [showToast, setShowToast] = useState8(false);
|
|
4420
|
+
const [message, setMessage] = useState8("");
|
|
4421
|
+
const [messageType, setMessageType] = useState8("error");
|
|
4418
4422
|
ToastService_default.showError = function(message2) {
|
|
4419
4423
|
setShowToast(true);
|
|
4420
4424
|
setMessage(message2);
|
|
@@ -4519,7 +4523,7 @@ var NavigationTabsV2 = ({ tabs, params = {} }) => {
|
|
|
4519
4523
|
var NavigationTabsV2_default = NavigationTabsV2;
|
|
4520
4524
|
|
|
4521
4525
|
// src/components/dataForm/DataList.tsx
|
|
4522
|
-
import React46, { useEffect as
|
|
4526
|
+
import React46, { useEffect as useEffect10, useState as useState9, useCallback as useCallback3, useReducer as useReducer2 } from "react";
|
|
4523
4527
|
import { useRouter } from "next/navigation";
|
|
4524
4528
|
|
|
4525
4529
|
// src/components/dataForm/NoContentView.tsx
|
|
@@ -4582,8 +4586,8 @@ var DataList = (props) => {
|
|
|
4582
4586
|
let activePageNumber = 0;
|
|
4583
4587
|
let pages = 0;
|
|
4584
4588
|
console.log(props.addLinkText);
|
|
4585
|
-
const [isDataFound, setIsDataFound] =
|
|
4586
|
-
|
|
4589
|
+
const [isDataFound, setIsDataFound] = useState9(null);
|
|
4590
|
+
useEffect10(() => {
|
|
4587
4591
|
if (props?.dataset) {
|
|
4588
4592
|
if (props?.dataset.result && props.dataset.result.length > 0) {
|
|
4589
4593
|
setIsDataFound(true);
|
|
@@ -5026,7 +5030,7 @@ var DataList = (props) => {
|
|
|
5026
5030
|
var DataList_default = DataList;
|
|
5027
5031
|
|
|
5028
5032
|
// src/components/dataForm/DataListRenderer.tsx
|
|
5029
|
-
import React47, { useState as
|
|
5033
|
+
import React47, { useState as useState10, useEffect as useEffect11 } from "react";
|
|
5030
5034
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
5031
5035
|
import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
5032
5036
|
var viewControlMap = {
|
|
@@ -5082,14 +5086,14 @@ var DataListRenderer = ({
|
|
|
5082
5086
|
widgetProps
|
|
5083
5087
|
}) => {
|
|
5084
5088
|
const serviceClient = new ServiceClient_default(apiBaseUrl, session);
|
|
5085
|
-
const [columns, setColumns] =
|
|
5086
|
-
const [dataset, setDataset] =
|
|
5087
|
-
const [filter, setFilters] =
|
|
5088
|
-
const [addLinkHref, setAddLinkHref] =
|
|
5089
|
-
const [addLinkText, setAddLinkText] =
|
|
5090
|
-
const [serviceRoute, setServiceRoute] =
|
|
5089
|
+
const [columns, setColumns] = useState10([]);
|
|
5090
|
+
const [dataset, setDataset] = useState10();
|
|
5091
|
+
const [filter, setFilters] = useState10([]);
|
|
5092
|
+
const [addLinkHref, setAddLinkHref] = useState10("");
|
|
5093
|
+
const [addLinkText, setAddLinkText] = useState10("");
|
|
5094
|
+
const [serviceRoute, setServiceRoute] = useState10("");
|
|
5091
5095
|
const pathname = usePathname2();
|
|
5092
|
-
|
|
5096
|
+
useEffect11(() => {
|
|
5093
5097
|
if (!formDefinition) return;
|
|
5094
5098
|
setColumns(mapApiToColumns(formDefinition));
|
|
5095
5099
|
setFilters(mapApiToFilters(formDefinition));
|
|
@@ -5102,7 +5106,7 @@ var DataListRenderer = ({
|
|
|
5102
5106
|
setAddLinkHref(resolvedAddLinkHref);
|
|
5103
5107
|
setAddLinkText(formDefinition?.siteFormDataList?.addLinkText ?? "");
|
|
5104
5108
|
}, [formDefinition, params]);
|
|
5105
|
-
|
|
5109
|
+
useEffect11(() => {
|
|
5106
5110
|
const fetchData = async () => {
|
|
5107
5111
|
if (!serviceRoute) return;
|
|
5108
5112
|
const resolvedRoute = resolveRoutePlaceholders2(serviceRoute, params);
|
|
@@ -5114,7 +5118,7 @@ var DataListRenderer = ({
|
|
|
5114
5118
|
};
|
|
5115
5119
|
fetchData();
|
|
5116
5120
|
}, [serviceRoute, query, params]);
|
|
5117
|
-
const [tabItem, setTabItem] =
|
|
5121
|
+
const [tabItem, setTabItem] = useState10();
|
|
5118
5122
|
const activeTab = tabItem?.find((tab) => tab.isActive);
|
|
5119
5123
|
const activeHref = activeTab ? resolveRoutePlaceholders2(activeTab.landingPageUrl, params) : pathname;
|
|
5120
5124
|
return /* @__PURE__ */ jsxs37(React47.Fragment, { children: [
|
|
@@ -5138,7 +5142,7 @@ var DataListRenderer = ({
|
|
|
5138
5142
|
var DataListRenderer_default = DataListRenderer;
|
|
5139
5143
|
|
|
5140
5144
|
// src/components/dataForm/DataForm.tsx
|
|
5141
|
-
import React49, { useCallback as useCallback5, useEffect as
|
|
5145
|
+
import React49, { useCallback as useCallback5, useEffect as useEffect12, useReducer as useReducer3, useRef as useRef4 } from "react";
|
|
5142
5146
|
|
|
5143
5147
|
// src/components/dataForm/DataFormChildSection.tsx
|
|
5144
5148
|
import React48, { useCallback as useCallback4 } from "react";
|
|
@@ -5420,7 +5424,7 @@ var DataForm = (props) => {
|
|
|
5420
5424
|
console.error("Error fetching data:", error);
|
|
5421
5425
|
}
|
|
5422
5426
|
}, [formState.lastPropertyChanged, formState.inputValues]);
|
|
5423
|
-
|
|
5427
|
+
useEffect12(() => {
|
|
5424
5428
|
fetchData();
|
|
5425
5429
|
}, [formState.inputValues, formState.lastPropertyChanged]);
|
|
5426
5430
|
function replacePlaceholders(template, context, params) {
|
|
@@ -5515,7 +5519,7 @@ var DataForm = (props) => {
|
|
|
5515
5519
|
return { isSuccessful: true };
|
|
5516
5520
|
}
|
|
5517
5521
|
}, [formState, props]);
|
|
5518
|
-
|
|
5522
|
+
useEffect12(() => {
|
|
5519
5523
|
if (props.dataItem) {
|
|
5520
5524
|
dispatch({
|
|
5521
5525
|
type: FORM_INITIAL_UPDATE,
|
package/package.json
CHANGED