blixify-ui-web 1.2.63 → 1.2.65
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/lib/components/action/radioList/index.d.ts +1 -0
- package/lib/components/action/radioList/index.d.ts.map +1 -1
- package/lib/components/action/radioList/index.js +16 -8
- package/lib/components/action/radioList/index.js.map +1 -1
- package/lib/components/advanced/popUp/index.d.ts +2 -0
- package/lib/components/advanced/popUp/index.d.ts.map +1 -1
- package/lib/components/advanced/popUp/index.js +1 -1
- package/lib/components/advanced/popUp/index.js.map +1 -1
- package/lib/components/data/dataTemplate/dataStateModel.d.ts +1 -0
- package/lib/components/data/dataTemplate/dataStateModel.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/dataStateModel.js.map +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +360 -311
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/model.d.ts +3 -2
- package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/pagination.js +1 -1
- package/lib/components/data/dataTemplate/pagination.js.map +1 -1
- package/lib/components/data/dataWrapper/index.d.ts.map +1 -1
- package/lib/components/data/dataWrapper/index.js +3 -3
- package/lib/components/data/dataWrapper/index.js.map +1 -1
- package/lib/components/data/flexFilter/index.d.ts +6 -2
- package/lib/components/data/flexFilter/index.d.ts.map +1 -1
- package/lib/components/data/flexFilter/index.js +31 -27
- package/lib/components/data/flexFilter/index.js.map +1 -1
- package/lib/components/data/updateModule.d.ts +5 -0
- package/lib/components/data/updateModule.d.ts.map +1 -1
- package/lib/components/data/updateModule.js +43 -30
- package/lib/components/data/updateModule.js.map +1 -1
- package/lib/components/display/detailList/index.d.ts +1 -0
- package/lib/components/display/detailList/index.d.ts.map +1 -1
- package/lib/components/display/detailList/index.js +7 -3
- package/lib/components/display/detailList/index.js.map +1 -1
- package/lib/components/display/drawer/index.d.ts +2 -0
- package/lib/components/display/drawer/index.d.ts.map +1 -1
- package/lib/components/display/drawer/index.js +7 -2
- package/lib/components/display/drawer/index.js.map +1 -1
- package/lib/components/display/modal/index.d.ts +1 -0
- package/lib/components/display/modal/index.d.ts.map +1 -1
- package/lib/components/display/modal/index.js +6 -4
- package/lib/components/display/modal/index.js.map +1 -1
- package/lib/components/display/newCalendar/index.d.ts.map +1 -1
- package/lib/components/display/newCalendar/index.js +61 -27
- package/lib/components/display/newCalendar/index.js.map +1 -1
- package/lib/components/display/newFeeds/index.d.ts +2 -0
- package/lib/components/display/newFeeds/index.d.ts.map +1 -1
- package/lib/components/display/newFeeds/index.js +7 -7
- package/lib/components/display/newFeeds/index.js.map +1 -1
- package/lib/components/display/newKanban/index.d.ts.map +1 -1
- package/lib/components/display/newKanban/index.js +53 -17
- package/lib/components/display/newKanban/index.js.map +1 -1
- package/lib/components/display/newList/index.d.ts.map +1 -1
- package/lib/components/display/newList/index.js +11 -64
- package/lib/components/display/newList/index.js.map +1 -1
- package/lib/components/display/newPagination/index.d.ts +23 -0
- package/lib/components/display/newPagination/index.d.ts.map +1 -0
- package/lib/components/display/newPagination/index.js +69 -0
- package/lib/components/display/newPagination/index.js.map +1 -0
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +54 -199
- package/lib/components/display/newTable/index.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +4 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/checkbox/index.d.ts.map +1 -1
- package/lib/components/input/checkbox/index.js +5 -1
- package/lib/components/input/checkbox/index.js.map +1 -1
- package/lib/components/input/datePicker/index.d.ts.map +1 -1
- package/lib/components/input/datePicker/index.js +12 -6
- package/lib/components/input/datePicker/index.js.map +1 -1
- package/lib/components/input/select/index.d.ts.map +1 -1
- package/lib/components/input/select/index.js +64 -17
- package/lib/components/input/select/index.js.map +1 -1
- package/lib/components/input/textArea/index.d.ts.map +1 -1
- package/lib/components/input/textArea/index.js +3 -1
- package/lib/components/input/textArea/index.js.map +1 -1
- package/lib/components/input/textInput/index.d.ts.map +1 -1
- package/lib/components/input/textInput/index.js +11 -4
- package/lib/components/input/textInput/index.js.map +1 -1
- package/lib/components/input/uploadInput/index.js +1 -1
- package/lib/components/input/uploadInput/index.js.map +1 -1
- package/lib/components/navigation/tabs/index.js +1 -1
- package/lib/components/navigation/tabs/index.js.map +1 -1
- package/lib/tail.css +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateModule.d.ts","sourceRoot":"","sources":["../../../src/components/data/updateModule.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA6B5C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAyD9E,eAAO,MAAM,uBAAuB,UAC3B,aAAa,SACb,GAAG,mCAEF,UAAU,UACV,OAAO,SA+PhB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iBACtB,GAAG,SACV,aAAa,EAAE,UACd,UAAU,UACV,OAAO,eACF,OAAO,QAwBrB,CAAC;AAEF,eAAO,MAAM,8BAA8B,iBAC3B,GAAG,SACV,aAAa,EAAE,YACZ,GAAG,eACA,WAAW,wBACF,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,wBACtB,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,qBACzB,OAAO,kBA6E3B,CAAC;AAEF,eAAO,MAAM,2BAA2B,iBACxB,GAAG,aACN,aAAa,WACf,MAAM,eACF,OAAO,yBACG,GAAG,QAqD3B,CAAC;AAEF,eAAO,MAAM,oCAAoC,cACpC,aAAa,qBACL,GAAG,oBACJ,GAAG,gBACP,GAAG,YACP,GAAG,gBACC,WAAW,WAChB,MAAM,eACF,OAAO,yBACG,GAAG,eACb,MAAM,qBAIA,OAAO,iBA4J3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBACpB,GAAG,SACV,aAAa,EAAE,QAgCvB,CAAC;AAoCF,eAAO,MAAM,mBAAmB,kBACf,aAAa,sBACR,GAAG,WACd,OAAO,YA4BjB,CAAC;AAEF,eAAO,MAAM,oBAAoB,SACzB,MAAM,mBACK,MAAM,SAChB,aAAa,EAAE,gBACR,GAAG,UACT,MAAM,YACJ,OAAO,UACT,OAAO,4BACW,OAAO,gBACnB,WAAW,+BACI,CAC3B,EAAE,EAAE,MAAM,EACV,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,KACjB,IAAI,sBACW,EAAE,iCACS,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,qBAChC,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,oBACzB,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,iBACtB,GAAG,YACR;
|
|
1
|
+
{"version":3,"file":"updateModule.d.ts","sourceRoot":"","sources":["../../../src/components/data/updateModule.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1176,7 +1176,7 @@ var renderEachListObject = function (type, selectedModelId, model, selectedData,
|
|
|
1176
1176
|
return (react_1.default.createElement("div", { id: selectedModelId, className: shouldHide ? "hidden" : "" },
|
|
1177
1177
|
react_1.default.createElement("div", { className: "flex justify-between mt-5" },
|
|
1178
1178
|
react_1.default.createElement("h3", { className: "font-medium leading-6 text-gray-900 text-md sm:text-lg" }, selectedModel.name)),
|
|
1179
|
-
react_1.default.createElement(flexTable_1.FlexTable, { ref: flexTableRef, id: selectedModelId, data: [], columns: selectedModel.objectData || [], pinColumns: { left: ["category"] }, categoryList: selectedModel.listFlexCategories, disabled: selectedModel.disabled, className: "w-full", showTotal: selectedModel.listFlexSubTotal, showGrandTotal: selectedModel.listFlexGrandTotal, flexMathQueries: selectedModel.listFlexMathQueries, maxRows: selectedModel.listFlexMaxRows, defaultTitleTemplate: selectedModel.listFlexDefaultCategory, hideEmptyState: selectedModel.listFlexHideEmptyState, mobileView: selectedModel.listFlexMobileView, categoryColumnLabel: selectedModel.listFlexCategoryColumnLabel, optional: selectedModel.listFlexOptional, imageEndpoint: devSettings === null || devSettings === void 0 ? void 0 : devSettings.imageEndpoint, resolveImageUrl: resolveFlexImageUrl, onChangeData: function (newData) {
|
|
1179
|
+
react_1.default.createElement(flexTable_1.FlexTable, { darkMode: tabInfo === null || tabInfo === void 0 ? void 0 : tabInfo.darkMode, ref: flexTableRef, id: selectedModelId, data: [], columns: selectedModel.objectData || [], pinColumns: { left: ["category"] }, categoryList: selectedModel.listFlexCategories, disabled: selectedModel.disabled, className: "w-full", showTotal: selectedModel.listFlexSubTotal, showGrandTotal: selectedModel.listFlexGrandTotal, flexMathQueries: selectedModel.listFlexMathQueries, maxRows: selectedModel.listFlexMaxRows, defaultTitleTemplate: selectedModel.listFlexDefaultCategory, hideEmptyState: selectedModel.listFlexHideEmptyState, mobileView: selectedModel.listFlexMobileView, categoryColumnLabel: selectedModel.listFlexCategoryColumnLabel, optional: selectedModel.listFlexOptional, imageEndpoint: devSettings === null || devSettings === void 0 ? void 0 : devSettings.imageEndpoint, resolveImageUrl: resolveFlexImageUrl, onChangeData: function (newData) {
|
|
1180
1180
|
if (type === "update") {
|
|
1181
1181
|
var updatedData = newData.map(function (item) {
|
|
1182
1182
|
var id = item.id, title = item.title, category = item.category, rest = __rest(item, ["id", "title", "category"]);
|
|
@@ -1205,7 +1205,7 @@ var renderEachListObject = function (type, selectedModelId, model, selectedData,
|
|
|
1205
1205
|
} },
|
|
1206
1206
|
react_1.default.createElement("svg", { className: "w-12 h-12 mx-auto text-gray-400", stroke: "currentColor", fill: "none", viewBox: "0 0 48 48", "aria-hidden": "true" },
|
|
1207
1207
|
react_1.default.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 14v20c0 4.418 7.163 8 16 8 1.381 0 2.721-.087 4-.252M8 14c0 4.418 7.163 8 16 8s16-3.582 16-8M8 14c0-4.418 7.163-8 16-8s16 3.582 16 8m0 0v14m0-4c0 4.418-7.163 8-16 8S8 28.418 8 24m32 10v6m0 0v6m0-6h6m-6 0h-6" })),
|
|
1208
|
-
react_1.default.createElement("span", { className: "block mt-2 text-sm font-medium text-gray-900" },
|
|
1208
|
+
react_1.default.createElement("span", { className: "block mt-2 text-sm font-medium ".concat((tabInfo === null || tabInfo === void 0 ? void 0 : tabInfo.darkMode) ? "text-gray-300" : "text-gray-900") },
|
|
1209
1209
|
"Create a new ", "".concat(selectedModel.name.toLocaleLowerCase())))));
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
@@ -1218,7 +1218,7 @@ var renderEachListObject = function (type, selectedModelId, model, selectedData,
|
|
|
1218
1218
|
setSelectedObjectStructureId === null || setSelectedObjectStructureId === void 0 ? void 0 : setSelectedObjectStructureId(selectedModelId);
|
|
1219
1219
|
handlePopUpModal === null || handlePopUpModal === void 0 ? void 0 : handlePopUpModal(true);
|
|
1220
1220
|
} }))),
|
|
1221
|
-
react_1.default.createElement("div", { className: "flex flex-col space-y-2 mt-2" }, selectedModel.listFlexTable ? (react_1.default.createElement(flexTable_1.FlexTable, { ref: flexTableRef, id: selectedModelId,
|
|
1221
|
+
react_1.default.createElement("div", { className: "flex flex-col space-y-2 mt-2" }, selectedModel.listFlexTable ? (react_1.default.createElement(flexTable_1.FlexTable, { darkMode: tabInfo === null || tabInfo === void 0 ? void 0 : tabInfo.darkMode, ref: flexTableRef, id: selectedModelId,
|
|
1222
1222
|
// INFO: imageEndpoint is fallback; resolveImageUrl builds nested
|
|
1223
1223
|
// storage paths matching listObject (collection/record/field/row/column/file)
|
|
1224
1224
|
imageEndpoint: devSettings === null || devSettings === void 0 ? void 0 : devSettings.imageEndpoint, resolveImageUrl: resolveFlexImageUrl, data: ((_e = clonedSelectedData[selectedModelId]) === null || _e === void 0 ? void 0 : _e.map(function (item) {
|
|
@@ -1294,7 +1294,7 @@ exports.renderEachListObject = renderEachListObject;
|
|
|
1294
1294
|
* @returns
|
|
1295
1295
|
*/
|
|
1296
1296
|
var renderDataTemplateForm = function (data, model, formInputRef, updateMethod, modalInput, cellInput, props, referenceProps, fileProps, objectProps, signatureProps, isForm, offline, columnType, bareUpdateIndividualComponent, mobileView) {
|
|
1297
|
-
var _a, _b, _c, _d, _e;
|
|
1297
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1298
1298
|
var inputList = {};
|
|
1299
1299
|
var formInputRefList = {};
|
|
1300
1300
|
var staticList = {};
|
|
@@ -1333,6 +1333,8 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1333
1333
|
react_1.default.createElement("br", null))); })))) : undefined;
|
|
1334
1334
|
var placeholder = (_a = eachAttribute.placeholder) !== null && _a !== void 0 ? _a : eachAttribute.name;
|
|
1335
1335
|
var disabled = false;
|
|
1336
|
+
if (cellInput === null || cellInput === void 0 ? void 0 : cellInput.readOnly)
|
|
1337
|
+
disabled = true;
|
|
1336
1338
|
if (props) {
|
|
1337
1339
|
if (props.type === "read")
|
|
1338
1340
|
disabled = true;
|
|
@@ -1410,7 +1412,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1410
1412
|
return null;
|
|
1411
1413
|
});
|
|
1412
1414
|
}
|
|
1413
|
-
inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
|
|
1415
|
+
inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
|
|
1414
1416
|
? null
|
|
1415
1417
|
: formInputRef[(_e = eachAttribute.refIndex) !== null && _e !== void 0 ? _e : index], id: eachAttribute.id, optional: isOptional, value: clonedSelectedData[eachAttribute.id]
|
|
1416
1418
|
? (_f = clonedSelectedData[eachAttribute.id]) === null || _f === void 0 ? void 0 : _f[(_g = eachAttribute.targetFieldsAttributeOption) !== null && _g !== void 0 ? _g : ""]
|
|
@@ -1462,11 +1464,13 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1462
1464
|
case "object":
|
|
1463
1465
|
var objectValue = Object.values((_k = clonedSelectedData[eachAttribute.id]) !== null && _k !== void 0 ? _k : {});
|
|
1464
1466
|
inputList[groupId].push(react_1.default.createElement(react_1.default.Fragment, null,
|
|
1465
|
-
react_1.default.createElement("label", { className: "block text-sm font-medium text-gray-700" },
|
|
1467
|
+
react_1.default.createElement("label", { className: "block text-sm font-medium ".concat((props === null || props === void 0 ? void 0 : props.darkMode) ? "text-white" : "text-gray-700") },
|
|
1466
1468
|
label,
|
|
1467
1469
|
" ",
|
|
1468
1470
|
labelExtra),
|
|
1469
|
-
react_1.default.createElement("div", { className: "block w-full px-5 py-3 mt-1 text-base text-left
|
|
1471
|
+
react_1.default.createElement("div", { className: "block w-full px-5 py-3 mt-1 text-base text-left rounded-md cursor-pointer focus:border-primary-500 focus:outline-none ".concat((props === null || props === void 0 ? void 0 : props.darkMode)
|
|
1472
|
+
? "text-gray-400 bg-gray-800 border border-gray-700"
|
|
1473
|
+
: "text-gray-300 bg-white border border-gray-300"), onClick: function () {
|
|
1470
1474
|
var _a;
|
|
1471
1475
|
objectProps === null || objectProps === void 0 ? void 0 : objectProps.setSelectedObjectStructureId(eachAttribute.id);
|
|
1472
1476
|
objectProps === null || objectProps === void 0 ? void 0 : objectProps.setSelectedObjectData((_a = clonedSelectedData[eachAttribute.id]) !== null && _a !== void 0 ? _a : {});
|
|
@@ -1504,11 +1508,18 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1504
1508
|
}
|
|
1505
1509
|
});
|
|
1506
1510
|
}
|
|
1507
|
-
inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
|
|
1511
|
+
inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
|
|
1508
1512
|
? null
|
|
1509
1513
|
: formInputRef[(_o = eachAttribute.refIndex) !== null && _o !== void 0 ? _o : index], id: eachAttribute.id, optional: isOptional, value: (_p = clonedSelectedData[eachAttribute.id]) !== null && _p !== void 0 ? _p : (eachAttribute.type === "list" ? "" : []), placeholder: placeholder !== eachAttribute.name
|
|
1510
1514
|
? placeholder
|
|
1511
|
-
: "Select An Option", label: label, labelExtra: labelExtra, subLabel: subLabel, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, newValue: eachAttribute.listNewValue, newValueLabel: eachAttribute.listNewValueLabel, showTag: eachAttribute.showTagSelections,
|
|
1515
|
+
: "Select An Option", label: label, labelExtra: labelExtra, subLabel: subLabel, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, newValue: eachAttribute.listNewValue, newValueLabel: eachAttribute.listNewValueLabel, showTag: eachAttribute.showTagSelections,
|
|
1516
|
+
// INFO: a coloured cell is tap-only — typing only filtered a handful of
|
|
1517
|
+
// fixed options and popped the phone keyboard over them; columns that
|
|
1518
|
+
// accept new values keep the search box
|
|
1519
|
+
disableKeyboard: eachAttribute.disabledKeyboardSearch ||
|
|
1520
|
+
(!!(cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) &&
|
|
1521
|
+
!!eachAttribute.showTagSelections &&
|
|
1522
|
+
!eachAttribute.listNewValue), type: (_q = eachAttribute.listView) !== null && _q !== void 0 ? _q : undefined, options: optionList_2, onChange: function (value) {
|
|
1512
1523
|
updateMethod.handleOnChangeSelect(eachAttribute.id, value);
|
|
1513
1524
|
}, disabled: disabled, cellInput: {
|
|
1514
1525
|
active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
|
|
@@ -1525,7 +1536,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1525
1536
|
var organisationMembers = [];
|
|
1526
1537
|
if (personDevSettings)
|
|
1527
1538
|
organisationMembers = (_r = personDevSettings.organisationMembers) !== null && _r !== void 0 ? _r : [];
|
|
1528
|
-
inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
|
|
1539
|
+
inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
|
|
1529
1540
|
? null
|
|
1530
1541
|
: formInputRef[(_s = eachAttribute.refIndex) !== null && _s !== void 0 ? _s : index], id: eachAttribute.id, optional: isOptional, value: personValue, placeholder: placeholder !== eachAttribute.name
|
|
1531
1542
|
? placeholder
|
|
@@ -1544,7 +1555,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1544
1555
|
var roleOptions = [];
|
|
1545
1556
|
if (rolesDevSettings)
|
|
1546
1557
|
roleOptions = (_t = rolesDevSettings.roleOptions) !== null && _t !== void 0 ? _t : [];
|
|
1547
|
-
inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
|
|
1558
|
+
inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
|
|
1548
1559
|
? null
|
|
1549
1560
|
: formInputRef[(_u = eachAttribute.refIndex) !== null && _u !== void 0 ? _u : index], id: eachAttribute.id, optional: isOptional, value: rolesValue, placeholder: placeholder !== eachAttribute.name
|
|
1550
1561
|
? placeholder
|
|
@@ -1563,7 +1574,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1563
1574
|
// INFO: flush with the card padding like every other input — the
|
|
1564
1575
|
// row used to be centred with its own inset
|
|
1565
1576
|
react_1.default.createElement("div", { className: "flex flex-row items-center gap-x-3" },
|
|
1566
|
-
react_1.default.createElement(checkbox_1.Checkbox, { ref: isOptional
|
|
1577
|
+
react_1.default.createElement(checkbox_1.Checkbox, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
|
|
1567
1578
|
? null
|
|
1568
1579
|
: formInputRef[(_w = eachAttribute.refIndex) !== null && _w !== void 0 ? _w : index], id: eachAttribute.id, itemList: [
|
|
1569
1580
|
{
|
|
@@ -1577,7 +1588,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1577
1588
|
if ((cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) && cellInput.onBlur) {
|
|
1578
1589
|
cellInput.onBlur(__assign(__assign({}, clonedSelectedData), (_a = {}, _a[eachAttribute.id] = checkedValue, _a)));
|
|
1579
1590
|
}
|
|
1580
|
-
}
|
|
1591
|
+
} }),
|
|
1581
1592
|
selectInputCustomElement && (react_1.default.createElement("div", { className: "self-center" }, selectInputCustomElement))));
|
|
1582
1593
|
}
|
|
1583
1594
|
else if (eachAttribute.enableRadioButtons && !(cellInput === null || cellInput === void 0 ? void 0 : cellInput.active)) {
|
|
@@ -1589,7 +1600,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1589
1600
|
" ",
|
|
1590
1601
|
labelExtra),
|
|
1591
1602
|
selectInputCustomElement && (react_1.default.createElement("div", { className: "self-center" }, selectInputCustomElement)))),
|
|
1592
|
-
react_1.default.createElement(radioList_1.RadioList, { key: "".concat(eachAttribute.id, "-radioList"), id: eachAttribute.id, list: [
|
|
1603
|
+
react_1.default.createElement(radioList_1.RadioList, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, key: "".concat(eachAttribute.id, "-radioList"), id: eachAttribute.id, list: [
|
|
1593
1604
|
{
|
|
1594
1605
|
id: "true",
|
|
1595
1606
|
label: "Yes",
|
|
@@ -1611,7 +1622,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1611
1622
|
}
|
|
1612
1623
|
else {
|
|
1613
1624
|
var value = (_y = clonedSelectedData[eachAttribute.id]) === null || _y === void 0 ? void 0 : _y.toString();
|
|
1614
|
-
inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
|
|
1625
|
+
inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
|
|
1615
1626
|
? null
|
|
1616
1627
|
: formInputRef[(_z = eachAttribute.refIndex) !== null && _z !== void 0 ? _z : index], id: eachAttribute.id, value: value, label: label, subLabel: subLabel, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, labelExtra: labelExtra, placeholder: placeholder !== eachAttribute.name
|
|
1617
1628
|
? placeholder
|
|
@@ -1650,7 +1661,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1650
1661
|
? ".png,.jpg,.jpeg,.heic,.heif,.tiff"
|
|
1651
1662
|
: ".pdf");
|
|
1652
1663
|
var fileDescription = (_1 = eachAttribute.fileDescription) !== null && _1 !== void 0 ? _1 : (eachAttribute.type === "image" ? undefined : "PDF up to 30MB");
|
|
1653
|
-
inputList[groupId].push(react_1.default.createElement(uploadInput_1.UploadInput, { lib: { axios: (_2 = props === null || props === void 0 ? void 0 : props.lib) === null || _2 === void 0 ? void 0 : _2.axios }, ref: isOptional
|
|
1664
|
+
inputList[groupId].push(react_1.default.createElement(uploadInput_1.UploadInput, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, lib: { axios: (_2 = props === null || props === void 0 ? void 0 : props.lib) === null || _2 === void 0 ? void 0 : _2.axios }, ref: isOptional
|
|
1654
1665
|
? null
|
|
1655
1666
|
: formInputRef[(_3 = eachAttribute.refIndex) !== null && _3 !== void 0 ? _3 : index], id: eachAttribute.id, label: label, labelExtra: labelExtra, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, optional: isOptional, file: (_4 = url !== null && url !== void 0 ? url : clonedSelectedData[eachAttribute.id]) !== null && _4 !== void 0 ? _4 : "", accept: accept, capture: eachAttribute.imageInputCapture, fileDescription: fileDescription, maxFileSize: fileProps === null || fileProps === void 0 ? void 0 : fileProps.maxFileSize, onChange: updateMethod.handleOnChangeFile, showModal: eachAttribute.showCameraGalleryOptionModal, disabled: disabled, handleCustomDownloadFile: fileProps === null || fileProps === void 0 ? void 0 : fileProps.handleCustomDownloadFile, compress: eachAttribute.maxFileSize && eachAttribute.compressfileQuality
|
|
1656
1667
|
? {
|
|
@@ -1684,7 +1695,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1684
1695
|
var multiFileDescription = (_7 = eachAttribute.fileDescription) !== null && _7 !== void 0 ? _7 : (eachAttribute.type === "multipleImage"
|
|
1685
1696
|
? undefined
|
|
1686
1697
|
: "PDF up to 30MB");
|
|
1687
|
-
inputList[groupId].push(react_1.default.createElement(uploadInput_1.UploadInput, { type: "multi", files: __assign(__assign({}, (!react_1.default.isValidElement(clonedSelectedData[eachAttribute.id])
|
|
1698
|
+
inputList[groupId].push(react_1.default.createElement(uploadInput_1.UploadInput, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, type: "multi", files: __assign(__assign({}, (!react_1.default.isValidElement(clonedSelectedData[eachAttribute.id])
|
|
1688
1699
|
? clonedSelectedData[eachAttribute.id]
|
|
1689
1700
|
: { upload: [], remove: [] })), { data: multipleDataUrl }), optional: isOptional, ref: isOptional
|
|
1690
1701
|
? null
|
|
@@ -1699,7 +1710,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1699
1710
|
: undefined, customElement: eachAttribute.customElement, mobileView: mobileView, imageTagEdit: eachAttribute.imageTagEdit, imageTagOptions: eachAttribute.imageTagOptions, imageTagNewOption: eachAttribute.imageTagNewOption, imageDefaultTag: eachAttribute.imageDefaultTag, imageTagToggleMode: eachAttribute.imageTagToggleMode }));
|
|
1700
1711
|
break;
|
|
1701
1712
|
case "number":
|
|
1702
|
-
inputList[groupId].push(react_1.default.createElement(textInput_1.TextInput, { id: eachAttribute.id, ref: isOptional
|
|
1713
|
+
inputList[groupId].push(react_1.default.createElement(textInput_1.TextInput, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, id: eachAttribute.id, ref: isOptional
|
|
1703
1714
|
? null
|
|
1704
1715
|
: formInputRef[(_10 = eachAttribute.refIndex) !== null && _10 !== void 0 ? _10 : index], type: "number", value: (_11 = clonedSelectedData[eachAttribute.id]) !== null && _11 !== void 0 ? _11 : "", placeholder: placeholder, label: label, labelExtra: labelExtra, subLabel: subLabel, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, optional: isOptional, onChange: updateMethod.handleOnChangeText, disabled: disabled, minNumber: eachAttribute.minNumber, maxNumber: eachAttribute.maxNumber, cellInput: {
|
|
1705
1716
|
active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
|
|
@@ -1787,7 +1798,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1787
1798
|
}
|
|
1788
1799
|
}
|
|
1789
1800
|
inputList[groupId].push(react_1.default.createElement("div", { id: eachAttribute.id, className: "flex flex-col gap-y-2" },
|
|
1790
|
-
react_1.default.createElement(textInput_1.TextInput, { value: displayValue, label: eachAttribute.name, type: "text", placeholder: eachAttribute.name, disabled: true }),
|
|
1801
|
+
react_1.default.createElement(textInput_1.TextInput, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, value: displayValue, label: eachAttribute.name, type: "text", placeholder: eachAttribute.name, disabled: true }),
|
|
1791
1802
|
react_1.default.createElement("div", { className: "h-80 w-full" },
|
|
1792
1803
|
react_1.default.createElement(mapView_1.MapView, { polygonList: polygonList_1, autoFitToMarkers: true, handleSelectPolygon: function (selectedIds) {
|
|
1793
1804
|
if (selectedIds && selectedIds.length > 0 && !disabled) {
|
|
@@ -1797,7 +1808,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1797
1808
|
}
|
|
1798
1809
|
else {
|
|
1799
1810
|
inputList[groupId].push(react_1.default.createElement(react_1.default.Fragment, null,
|
|
1800
|
-
react_1.default.createElement(select_1.Select, { ref: isOptional
|
|
1811
|
+
react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
|
|
1801
1812
|
? null
|
|
1802
1813
|
: formInputRef[(_18 = eachAttribute.refIndex) !== null && _18 !== void 0 ? _18 : index], id: eachAttribute.id, value: (_19 = clonedSelectedData[eachAttribute.id]) !== null && _19 !== void 0 ? _19 : (eachAttribute.type === "reference" ? "" : []), label: label, labelExtra: labelExtra, subLabel: subLabel, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, optional: isOptional, placeholder: placeholder !== eachAttribute.name
|
|
1803
1814
|
? placeholder
|
|
@@ -1887,7 +1898,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1887
1898
|
else if (eachAttribute.type === "password") {
|
|
1888
1899
|
textType = "password";
|
|
1889
1900
|
}
|
|
1890
|
-
inputList[groupId].push(react_1.default.createElement(textInput_1.TextInput, { id: eachAttribute.id, ref: isOptional
|
|
1901
|
+
inputList[groupId].push(react_1.default.createElement(textInput_1.TextInput, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, id: eachAttribute.id, ref: isOptional
|
|
1891
1902
|
? null
|
|
1892
1903
|
: formInputRef[(_20 = eachAttribute.refIndex) !== null && _20 !== void 0 ? _20 : index], type: textType, value: (_21 = clonedSelectedData[eachAttribute.id]) !== null && _21 !== void 0 ? _21 : "", placeholder: placeholder, label: label, labelExtra: labelExtra, subLabel: subLabel, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, optional: isOptional, onChange: updateMethod.handleOnChangeText, disabled: disabled, cellInput: {
|
|
1893
1904
|
active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
|
|
@@ -1915,7 +1926,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1915
1926
|
dateValue = undefined;
|
|
1916
1927
|
var showTime = eachAttribute.hideShowTime ? false : true;
|
|
1917
1928
|
var hideDate = eachAttribute.hideShowDate ? true : false;
|
|
1918
|
-
inputList[groupId].push(react_1.default.createElement(datePicker_1.InputDatePicker, { title: label, labelExtra: labelExtra, subLabel: subLabel, id: eachAttribute.id, optional: isOptional, ref: isOptional
|
|
1929
|
+
inputList[groupId].push(react_1.default.createElement(datePicker_1.InputDatePicker, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, title: label, labelExtra: labelExtra, subLabel: subLabel, id: eachAttribute.id, optional: isOptional, ref: isOptional
|
|
1919
1930
|
? null
|
|
1920
1931
|
: formInputRef[(_25 = eachAttribute.refIndex) !== null && _25 !== void 0 ? _25 : index], onChange: updateMethod.handleOnChangeDate, value: dateValue, disabled: disabled, cellInput: {
|
|
1921
1932
|
active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
|
|
@@ -1931,7 +1942,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1931
1942
|
break;
|
|
1932
1943
|
}
|
|
1933
1944
|
var markdownRef = formInputRef[(_27 = eachAttribute.refIndex) !== null && _27 !== void 0 ? _27 : index];
|
|
1934
|
-
inputList[groupId].push(react_1.default.createElement(markdown_1.MarkdownInput, { id: eachAttribute.id, ref: markdownRef, label: label, labelExtra: labelExtra, subLabel: subLabel, value: (_28 = clonedSelectedData[eachAttribute.id]) !== null && _28 !== void 0 ? _28 : "", placeholder: placeholder, optional: isOptional, onChange: updateMethod.handleOnChangeMarkdown, disabled: disabled, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, lib: ((_29 = props === null || props === void 0 ? void 0 : props.lib) === null || _29 === void 0 ? void 0 : _29.axios) ? { axios: props.lib.axios } : undefined, uploadEndpoint: ((_30 = referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.devSettings) === null || _30 === void 0 ? void 0 : _30.uploadEndpoint) ||
|
|
1945
|
+
inputList[groupId].push(react_1.default.createElement(markdown_1.MarkdownInput, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, id: eachAttribute.id, ref: markdownRef, label: label, labelExtra: labelExtra, subLabel: subLabel, value: (_28 = clonedSelectedData[eachAttribute.id]) !== null && _28 !== void 0 ? _28 : "", placeholder: placeholder, optional: isOptional, onChange: updateMethod.handleOnChangeMarkdown, disabled: disabled, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, lib: ((_29 = props === null || props === void 0 ? void 0 : props.lib) === null || _29 === void 0 ? void 0 : _29.axios) ? { axios: props.lib.axios } : undefined, uploadEndpoint: ((_30 = referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.devSettings) === null || _30 === void 0 ? void 0 : _30.uploadEndpoint) ||
|
|
1935
1946
|
eachAttribute.uploadEndpoint, enableImageUpload: eachAttribute.enableImageUpload, enableVideoUpload: eachAttribute.enableVideoUpload, compress: eachAttribute.maxFileSize && eachAttribute.compressfileQuality
|
|
1936
1947
|
? {
|
|
1937
1948
|
maxFileSize: eachAttribute.maxFileSize,
|
|
@@ -1940,7 +1951,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1940
1951
|
: undefined, customElement: selectInputCustomElement }));
|
|
1941
1952
|
break;
|
|
1942
1953
|
case "textArea":
|
|
1943
|
-
inputList[groupId].push(react_1.default.createElement(textArea_1.TextArea, { id: eachAttribute.id, ref: isOptional
|
|
1954
|
+
inputList[groupId].push(react_1.default.createElement(textArea_1.TextArea, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, id: eachAttribute.id, ref: isOptional
|
|
1944
1955
|
? null
|
|
1945
1956
|
: formInputRef[(_31 = eachAttribute.refIndex) !== null && _31 !== void 0 ? _31 : index], label: label, labelExtra: labelExtra, subLabel: subLabel, placeholder: placeholder, value: (_32 = clonedSelectedData[eachAttribute.id]) !== null && _32 !== void 0 ? _32 : "", rows: 4, optional: isOptional, onChange: updateMethod.handleOnChangeText, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, disabled: disabled, customElement: selectInputCustomElement, cellInput: {
|
|
1946
1957
|
active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
|
|
@@ -1955,7 +1966,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1955
1966
|
signatureUrl = (0, blobModule_1.renderImageUrlFromPath)(fileProps === null || fileProps === void 0 ? void 0 : fileProps.imageEndpoint, eachAttribute.imageCollectionName, props === null || props === void 0 ? void 0 : props.id, eachAttribute.imageFileName, clonedSelectedData[eachAttribute.id], fileProps === null || fileProps === void 0 ? void 0 : fileProps.imageBucketName);
|
|
1956
1967
|
}
|
|
1957
1968
|
inputList[groupId].push(react_1.default.createElement("div", { className: eachAttribute.description ? "w-full min-h-72" : "w-full h-72" },
|
|
1958
|
-
react_1.default.createElement(signature_1.Signature, { id: eachAttribute.id, ref: formInputRef[(_33 = eachAttribute.refIndex) !== null && _33 !== void 0 ? _33 : index], label: label, labelExtra: labelExtra, description: eachAttribute.description, subLabel: undefined, dataURL: signatureUrl, optional: isOptional, signing: signatureProps === null || signatureProps === void 0 ? void 0 : signatureProps.signing, onChange: signatureProps === null || signatureProps === void 0 ? void 0 : signatureProps.setSigning, onSubmit: function (_, dataURL) {
|
|
1969
|
+
react_1.default.createElement(signature_1.Signature, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, id: eachAttribute.id, ref: formInputRef[(_33 = eachAttribute.refIndex) !== null && _33 !== void 0 ? _33 : index], label: label, labelExtra: labelExtra, description: eachAttribute.description, subLabel: undefined, dataURL: signatureUrl, optional: isOptional, signing: signatureProps === null || signatureProps === void 0 ? void 0 : signatureProps.signing, onChange: signatureProps === null || signatureProps === void 0 ? void 0 : signatureProps.setSigning, onSubmit: function (_, dataURL) {
|
|
1959
1970
|
return updateMethod.handleSignatureComplete(dataURL, eachAttribute.id);
|
|
1960
1971
|
}, signatureClear: true, canvasContainerClassName: "shadow-none", infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, customElement: selectInputCustomElement })));
|
|
1961
1972
|
break;
|
|
@@ -1997,7 +2008,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
1997
2008
|
: ((_38 = canvasData === null || canvasData === void 0 ? void 0 : canvasData.texts) !== null && _38 !== void 0 ? _38 : []);
|
|
1998
2009
|
normalizedDrawings = [];
|
|
1999
2010
|
}
|
|
2000
|
-
inputList[groupId].push(react_1.default.createElement(canvas_1.Canvas, { ref: isOptional
|
|
2011
|
+
inputList[groupId].push(react_1.default.createElement(canvas_1.Canvas, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
|
|
2001
2012
|
? null
|
|
2002
2013
|
: formInputRef[(_39 = eachAttribute.refIndex) !== null && _39 !== void 0 ? _39 : index], id: eachAttribute.id, label: label, labelExtra: labelExtra, infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, customElement: selectInputCustomElement, optional: isOptional, enableDraw: (props === null || props === void 0 ? void 0 : props.type) === "update" ? eachAttribute.enableDraw : false, enableImageUpload: (props === null || props === void 0 ? void 0 : props.type) === "update" ? eachAttribute.enableImageUpload : false, readOnly: (props === null || props === void 0 ? void 0 : props.type) !== "update", texts: normalizedTexts, drawings: normalizedDrawings, backgroundImageUrl: eachAttribute.enableImageUpload &&
|
|
2003
2014
|
canvasData &&
|
|
@@ -2254,7 +2265,9 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
2254
2265
|
// same 12-column grid the form uses, so column spans behave identically inside
|
|
2255
2266
|
// a card and at the top level. Colour is reserved for the active step, the
|
|
2256
2267
|
// primary action and status; sections themselves stay neutral.
|
|
2257
|
-
var sectionCardClassName = "col-span-12 rounded-lg border
|
|
2268
|
+
var sectionCardClassName = "col-span-12 rounded-lg border shadow-sm ".concat((props === null || props === void 0 ? void 0 : props.darkMode)
|
|
2269
|
+
? "border-gray-700 ".concat((_e = props === null || props === void 0 ? void 0 : props.darkModeBg) !== null && _e !== void 0 ? _e : "bg-gray-900")
|
|
2270
|
+
: "border-gray-200 bg-white", " ").concat(mobileView ? "p-4" : "p-5");
|
|
2258
2271
|
var sectionGridClassName = "grid grid-cols-12 ".concat(mobileView ? "gap-x-6 gap-y-2 md:gap-6" : "gap-6");
|
|
2259
2272
|
var hasSections = sortedInputListEntries.some(function (_a) {
|
|
2260
2273
|
var key = _a[0];
|
|
@@ -2263,7 +2276,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
2263
2276
|
var renderSectionHeading = function (key) {
|
|
2264
2277
|
var _a;
|
|
2265
2278
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2266
|
-
react_1.default.createElement("div", { className: "".concat(sectionClassName, " font-bold text-gray-900") }, key),
|
|
2279
|
+
react_1.default.createElement("div", { className: "".concat(sectionClassName, " font-bold ").concat((props === null || props === void 0 ? void 0 : props.darkMode) ? "text-white" : "text-gray-900") }, key),
|
|
2267
2280
|
((_a = props === null || props === void 0 ? void 0 : props.groupDescriptions) === null || _a === void 0 ? void 0 : _a[key]) && (react_1.default.createElement("p", { className: "col-span-12 text-sm text-gray-500 mt-0.5" }, props.groupDescriptions[key]))));
|
|
2268
2281
|
};
|
|
2269
2282
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
@@ -2274,7 +2287,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
2274
2287
|
return null;
|
|
2275
2288
|
return Object.keys((_b = props === null || props === void 0 ? void 0 : props.groupIdCollapsible) !== null && _b !== void 0 ? _b : {}).length > 0 ? (react_1.default.createElement(collapse_1.Collapse, { key: key, defaultValue: ((_c = props === null || props === void 0 ? void 0 : props.groupIdCollapsible) === null || _c === void 0 ? void 0 : _c[key])
|
|
2276
2289
|
? !((_d = props === null || props === void 0 ? void 0 : props.groupIdCollapsible) === null || _d === void 0 ? void 0 : _d[key])
|
|
2277
|
-
: true, titleClassName: "!font-bold text-gray-900", containerClassName: "".concat(sectionClassName), notCollapseContainerCss: "bg-white
|
|
2290
|
+
: true, titleClassName: "!font-bold ".concat((props === null || props === void 0 ? void 0 : props.darkMode) ? "text-white" : "text-gray-900"), containerClassName: "".concat(sectionClassName), notCollapseContainerCss: "rounded-lg border shadow-sm ".concat((props === null || props === void 0 ? void 0 : props.darkMode) ? "bg-white/5 border-gray-700" : "bg-white border-gray-200"), collapseContainerCss: "rounded-lg border shadow-sm ".concat((props === null || props === void 0 ? void 0 : props.darkMode) ? "bg-white/5 border-gray-700" : "bg-white border-gray-200"), title: key, desc: (_e = props === null || props === void 0 ? void 0 : props.groupDescriptions) === null || _e === void 0 ? void 0 : _e[key], icon: react_1.default.createElement(react_1.default.Fragment, null), content: react_1.default.createElement("div", { className: "".concat(sectionGridClassName, " mt-6") },
|
|
2278
2291
|
renderInputs(key, inputs),
|
|
2279
2292
|
renderStaticDetailList(key)), formInputRefList: formInputRefList === null || formInputRefList === void 0 ? void 0 : formInputRefList[key] })) : (react_1.default.createElement("div", { key: key, className: sectionCardClassName },
|
|
2280
2293
|
renderSectionHeading(key),
|
|
@@ -2282,7 +2295,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
|
|
|
2282
2295
|
renderInputs(key, inputs),
|
|
2283
2296
|
renderStaticDetailList(key))));
|
|
2284
2297
|
}),
|
|
2285
|
-
hasSections && ((
|
|
2298
|
+
hasSections && ((_f = inputList["default"]) === null || _f === void 0 ? void 0 : _f.length) > 0 ? (
|
|
2286
2299
|
// INFO: fields without a section sit in their own untitled card so they
|
|
2287
2300
|
// line up with the sections instead of floating on the page background
|
|
2288
2301
|
react_1.default.createElement("div", { className: sectionCardClassName },
|