blixify-ui-web 1.2.63 → 1.2.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/components/action/radioList/index.d.ts +1 -0
  2. package/lib/components/action/radioList/index.d.ts.map +1 -1
  3. package/lib/components/action/radioList/index.js +15 -7
  4. package/lib/components/action/radioList/index.js.map +1 -1
  5. package/lib/components/advanced/popUp/index.d.ts +2 -0
  6. package/lib/components/advanced/popUp/index.d.ts.map +1 -1
  7. package/lib/components/advanced/popUp/index.js +1 -1
  8. package/lib/components/advanced/popUp/index.js.map +1 -1
  9. package/lib/components/data/dataTemplate/dataStateModel.d.ts +1 -0
  10. package/lib/components/data/dataTemplate/dataStateModel.d.ts.map +1 -1
  11. package/lib/components/data/dataTemplate/dataStateModel.js.map +1 -1
  12. package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
  13. package/lib/components/data/dataTemplate/index.js +360 -311
  14. package/lib/components/data/dataTemplate/index.js.map +1 -1
  15. package/lib/components/data/dataTemplate/model.d.ts +3 -2
  16. package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
  17. package/lib/components/data/dataTemplate/pagination.js +1 -1
  18. package/lib/components/data/dataTemplate/pagination.js.map +1 -1
  19. package/lib/components/data/dataWrapper/index.d.ts.map +1 -1
  20. package/lib/components/data/dataWrapper/index.js +3 -3
  21. package/lib/components/data/dataWrapper/index.js.map +1 -1
  22. package/lib/components/data/flexFilter/index.d.ts +6 -2
  23. package/lib/components/data/flexFilter/index.d.ts.map +1 -1
  24. package/lib/components/data/flexFilter/index.js +31 -27
  25. package/lib/components/data/flexFilter/index.js.map +1 -1
  26. package/lib/components/data/updateModule.d.ts +3 -0
  27. package/lib/components/data/updateModule.d.ts.map +1 -1
  28. package/lib/components/data/updateModule.js +41 -30
  29. package/lib/components/data/updateModule.js.map +1 -1
  30. package/lib/components/display/detailList/index.d.ts +1 -0
  31. package/lib/components/display/detailList/index.d.ts.map +1 -1
  32. package/lib/components/display/detailList/index.js +7 -3
  33. package/lib/components/display/detailList/index.js.map +1 -1
  34. package/lib/components/display/drawer/index.d.ts +2 -0
  35. package/lib/components/display/drawer/index.d.ts.map +1 -1
  36. package/lib/components/display/drawer/index.js +7 -2
  37. package/lib/components/display/drawer/index.js.map +1 -1
  38. package/lib/components/display/modal/index.d.ts +1 -0
  39. package/lib/components/display/modal/index.d.ts.map +1 -1
  40. package/lib/components/display/modal/index.js +6 -4
  41. package/lib/components/display/modal/index.js.map +1 -1
  42. package/lib/components/display/newCalendar/index.d.ts.map +1 -1
  43. package/lib/components/display/newCalendar/index.js +61 -27
  44. package/lib/components/display/newCalendar/index.js.map +1 -1
  45. package/lib/components/display/newFeeds/index.d.ts +2 -0
  46. package/lib/components/display/newFeeds/index.d.ts.map +1 -1
  47. package/lib/components/display/newFeeds/index.js +7 -7
  48. package/lib/components/display/newFeeds/index.js.map +1 -1
  49. package/lib/components/display/newKanban/index.d.ts.map +1 -1
  50. package/lib/components/display/newKanban/index.js +53 -17
  51. package/lib/components/display/newKanban/index.js.map +1 -1
  52. package/lib/components/display/newList/index.d.ts.map +1 -1
  53. package/lib/components/display/newList/index.js +11 -64
  54. package/lib/components/display/newList/index.js.map +1 -1
  55. package/lib/components/display/newPagination/index.d.ts +23 -0
  56. package/lib/components/display/newPagination/index.d.ts.map +1 -0
  57. package/lib/components/display/newPagination/index.js +69 -0
  58. package/lib/components/display/newPagination/index.js.map +1 -0
  59. package/lib/components/display/newTable/index.d.ts.map +1 -1
  60. package/lib/components/display/newTable/index.js +46 -190
  61. package/lib/components/display/newTable/index.js.map +1 -1
  62. package/lib/components/index.d.ts +1 -0
  63. package/lib/components/index.d.ts.map +1 -1
  64. package/lib/components/index.js +4 -2
  65. package/lib/components/index.js.map +1 -1
  66. package/lib/components/input/checkbox/index.d.ts.map +1 -1
  67. package/lib/components/input/checkbox/index.js.map +1 -1
  68. package/lib/components/input/datePicker/index.d.ts.map +1 -1
  69. package/lib/components/input/datePicker/index.js +5 -5
  70. package/lib/components/input/datePicker/index.js.map +1 -1
  71. package/lib/components/input/select/index.d.ts.map +1 -1
  72. package/lib/components/input/select/index.js +48 -14
  73. package/lib/components/input/select/index.js.map +1 -1
  74. package/lib/components/input/textArea/index.d.ts.map +1 -1
  75. package/lib/components/input/textArea/index.js +3 -1
  76. package/lib/components/input/textArea/index.js.map +1 -1
  77. package/lib/components/input/textInput/index.d.ts.map +1 -1
  78. package/lib/components/input/textInput/index.js +10 -3
  79. package/lib/components/input/textInput/index.js.map +1 -1
  80. package/lib/components/input/uploadInput/index.js +1 -1
  81. package/lib/components/input/uploadInput/index.js.map +1 -1
  82. package/lib/components/navigation/tabs/index.js +1 -1
  83. package/lib/components/navigation/tabs/index.js.map +1 -1
  84. package/lib/tail.css +2 -2
  85. package/package.json +1 -1
@@ -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 = {};
@@ -1410,7 +1410,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1410
1410
  return null;
1411
1411
  });
1412
1412
  }
1413
- inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
1413
+ inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
1414
1414
  ? null
1415
1415
  : formInputRef[(_e = eachAttribute.refIndex) !== null && _e !== void 0 ? _e : index], id: eachAttribute.id, optional: isOptional, value: clonedSelectedData[eachAttribute.id]
1416
1416
  ? (_f = clonedSelectedData[eachAttribute.id]) === null || _f === void 0 ? void 0 : _f[(_g = eachAttribute.targetFieldsAttributeOption) !== null && _g !== void 0 ? _g : ""]
@@ -1462,11 +1462,13 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1462
1462
  case "object":
1463
1463
  var objectValue = Object.values((_k = clonedSelectedData[eachAttribute.id]) !== null && _k !== void 0 ? _k : {});
1464
1464
  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" },
1465
+ 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
1466
  label,
1467
1467
  " ",
1468
1468
  labelExtra),
1469
- react_1.default.createElement("div", { className: "block w-full px-5 py-3 mt-1 text-base text-left text-gray-300 bg-white border border-gray-300 rounded-md cursor-pointer focus:border-primary-500 focus:outline-none", onClick: function () {
1469
+ 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)
1470
+ ? "text-gray-400 bg-gray-800 border border-gray-700"
1471
+ : "text-gray-300 bg-white border border-gray-300"), onClick: function () {
1470
1472
  var _a;
1471
1473
  objectProps === null || objectProps === void 0 ? void 0 : objectProps.setSelectedObjectStructureId(eachAttribute.id);
1472
1474
  objectProps === null || objectProps === void 0 ? void 0 : objectProps.setSelectedObjectData((_a = clonedSelectedData[eachAttribute.id]) !== null && _a !== void 0 ? _a : {});
@@ -1504,11 +1506,18 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1504
1506
  }
1505
1507
  });
1506
1508
  }
1507
- inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
1509
+ inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
1508
1510
  ? null
1509
1511
  : 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
1512
  ? 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, disableKeyboard: eachAttribute.disabledKeyboardSearch, type: (_q = eachAttribute.listView) !== null && _q !== void 0 ? _q : undefined, options: optionList_2, onChange: function (value) {
1513
+ : "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,
1514
+ // INFO: a coloured cell is tap-only — typing only filtered a handful of
1515
+ // fixed options and popped the phone keyboard over them; columns that
1516
+ // accept new values keep the search box
1517
+ disableKeyboard: eachAttribute.disabledKeyboardSearch ||
1518
+ (!!(cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) &&
1519
+ !!eachAttribute.showTagSelections &&
1520
+ !eachAttribute.listNewValue), type: (_q = eachAttribute.listView) !== null && _q !== void 0 ? _q : undefined, options: optionList_2, onChange: function (value) {
1512
1521
  updateMethod.handleOnChangeSelect(eachAttribute.id, value);
1513
1522
  }, disabled: disabled, cellInput: {
1514
1523
  active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
@@ -1525,7 +1534,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1525
1534
  var organisationMembers = [];
1526
1535
  if (personDevSettings)
1527
1536
  organisationMembers = (_r = personDevSettings.organisationMembers) !== null && _r !== void 0 ? _r : [];
1528
- inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
1537
+ inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
1529
1538
  ? null
1530
1539
  : formInputRef[(_s = eachAttribute.refIndex) !== null && _s !== void 0 ? _s : index], id: eachAttribute.id, optional: isOptional, value: personValue, placeholder: placeholder !== eachAttribute.name
1531
1540
  ? placeholder
@@ -1544,7 +1553,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1544
1553
  var roleOptions = [];
1545
1554
  if (rolesDevSettings)
1546
1555
  roleOptions = (_t = rolesDevSettings.roleOptions) !== null && _t !== void 0 ? _t : [];
1547
- inputList[groupId].push(react_1.default.createElement(select_1.Select, { ref: isOptional
1556
+ inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
1548
1557
  ? null
1549
1558
  : formInputRef[(_u = eachAttribute.refIndex) !== null && _u !== void 0 ? _u : index], id: eachAttribute.id, optional: isOptional, value: rolesValue, placeholder: placeholder !== eachAttribute.name
1550
1559
  ? placeholder
@@ -1563,7 +1572,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1563
1572
  // INFO: flush with the card padding like every other input — the
1564
1573
  // row used to be centred with its own inset
1565
1574
  react_1.default.createElement("div", { className: "flex flex-row items-center gap-x-3" },
1566
- react_1.default.createElement(checkbox_1.Checkbox, { ref: isOptional
1575
+ react_1.default.createElement(checkbox_1.Checkbox, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
1567
1576
  ? null
1568
1577
  : formInputRef[(_w = eachAttribute.refIndex) !== null && _w !== void 0 ? _w : index], id: eachAttribute.id, itemList: [
1569
1578
  {
@@ -1577,7 +1586,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1577
1586
  if ((cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) && cellInput.onBlur) {
1578
1587
  cellInput.onBlur(__assign(__assign({}, clonedSelectedData), (_a = {}, _a[eachAttribute.id] = checkedValue, _a)));
1579
1588
  }
1580
- }, darkMode: false }),
1589
+ } }),
1581
1590
  selectInputCustomElement && (react_1.default.createElement("div", { className: "self-center" }, selectInputCustomElement))));
1582
1591
  }
1583
1592
  else if (eachAttribute.enableRadioButtons && !(cellInput === null || cellInput === void 0 ? void 0 : cellInput.active)) {
@@ -1589,7 +1598,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1589
1598
  " ",
1590
1599
  labelExtra),
1591
1600
  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: [
1601
+ 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
1602
  {
1594
1603
  id: "true",
1595
1604
  label: "Yes",
@@ -1611,7 +1620,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1611
1620
  }
1612
1621
  else {
1613
1622
  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
1623
+ inputList[groupId].push(react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
1615
1624
  ? null
1616
1625
  : 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
1626
  ? placeholder
@@ -1650,7 +1659,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1650
1659
  ? ".png,.jpg,.jpeg,.heic,.heif,.tiff"
1651
1660
  : ".pdf");
1652
1661
  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
1662
+ 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
1663
  ? null
1655
1664
  : 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
1665
  ? {
@@ -1684,7 +1693,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1684
1693
  var multiFileDescription = (_7 = eachAttribute.fileDescription) !== null && _7 !== void 0 ? _7 : (eachAttribute.type === "multipleImage"
1685
1694
  ? undefined
1686
1695
  : "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])
1696
+ 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
1697
  ? clonedSelectedData[eachAttribute.id]
1689
1698
  : { upload: [], remove: [] })), { data: multipleDataUrl }), optional: isOptional, ref: isOptional
1690
1699
  ? null
@@ -1699,7 +1708,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1699
1708
  : undefined, customElement: eachAttribute.customElement, mobileView: mobileView, imageTagEdit: eachAttribute.imageTagEdit, imageTagOptions: eachAttribute.imageTagOptions, imageTagNewOption: eachAttribute.imageTagNewOption, imageDefaultTag: eachAttribute.imageDefaultTag, imageTagToggleMode: eachAttribute.imageTagToggleMode }));
1700
1709
  break;
1701
1710
  case "number":
1702
- inputList[groupId].push(react_1.default.createElement(textInput_1.TextInput, { id: eachAttribute.id, ref: isOptional
1711
+ 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
1712
  ? null
1704
1713
  : 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
1714
  active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
@@ -1787,7 +1796,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1787
1796
  }
1788
1797
  }
1789
1798
  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 }),
1799
+ 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
1800
  react_1.default.createElement("div", { className: "h-80 w-full" },
1792
1801
  react_1.default.createElement(mapView_1.MapView, { polygonList: polygonList_1, autoFitToMarkers: true, handleSelectPolygon: function (selectedIds) {
1793
1802
  if (selectedIds && selectedIds.length > 0 && !disabled) {
@@ -1797,7 +1806,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1797
1806
  }
1798
1807
  else {
1799
1808
  inputList[groupId].push(react_1.default.createElement(react_1.default.Fragment, null,
1800
- react_1.default.createElement(select_1.Select, { ref: isOptional
1809
+ react_1.default.createElement(select_1.Select, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
1801
1810
  ? null
1802
1811
  : 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
1812
  ? placeholder
@@ -1887,7 +1896,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1887
1896
  else if (eachAttribute.type === "password") {
1888
1897
  textType = "password";
1889
1898
  }
1890
- inputList[groupId].push(react_1.default.createElement(textInput_1.TextInput, { id: eachAttribute.id, ref: isOptional
1899
+ 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
1900
  ? null
1892
1901
  : 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
1902
  active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
@@ -1915,7 +1924,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1915
1924
  dateValue = undefined;
1916
1925
  var showTime = eachAttribute.hideShowTime ? false : true;
1917
1926
  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
1927
+ 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
1928
  ? null
1920
1929
  : formInputRef[(_25 = eachAttribute.refIndex) !== null && _25 !== void 0 ? _25 : index], onChange: updateMethod.handleOnChangeDate, value: dateValue, disabled: disabled, cellInput: {
1921
1930
  active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
@@ -1931,7 +1940,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1931
1940
  break;
1932
1941
  }
1933
1942
  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) ||
1943
+ 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
1944
  eachAttribute.uploadEndpoint, enableImageUpload: eachAttribute.enableImageUpload, enableVideoUpload: eachAttribute.enableVideoUpload, compress: eachAttribute.maxFileSize && eachAttribute.compressfileQuality
1936
1945
  ? {
1937
1946
  maxFileSize: eachAttribute.maxFileSize,
@@ -1940,7 +1949,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1940
1949
  : undefined, customElement: selectInputCustomElement }));
1941
1950
  break;
1942
1951
  case "textArea":
1943
- inputList[groupId].push(react_1.default.createElement(textArea_1.TextArea, { id: eachAttribute.id, ref: isOptional
1952
+ 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
1953
  ? null
1945
1954
  : 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
1955
  active: cellInput === null || cellInput === void 0 ? void 0 : cellInput.active,
@@ -1955,7 +1964,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1955
1964
  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
1965
  }
1957
1966
  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) {
1967
+ 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
1968
  return updateMethod.handleSignatureComplete(dataURL, eachAttribute.id);
1960
1969
  }, signatureClear: true, canvasContainerClassName: "shadow-none", infoElement: (cellInput === null || cellInput === void 0 ? void 0 : cellInput.active) ? undefined : infoElement, customElement: selectInputCustomElement })));
1961
1970
  break;
@@ -1997,7 +2006,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
1997
2006
  : ((_38 = canvasData === null || canvasData === void 0 ? void 0 : canvasData.texts) !== null && _38 !== void 0 ? _38 : []);
1998
2007
  normalizedDrawings = [];
1999
2008
  }
2000
- inputList[groupId].push(react_1.default.createElement(canvas_1.Canvas, { ref: isOptional
2009
+ inputList[groupId].push(react_1.default.createElement(canvas_1.Canvas, { darkMode: props === null || props === void 0 ? void 0 : props.darkMode, ref: isOptional
2001
2010
  ? null
2002
2011
  : 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
2012
  canvasData &&
@@ -2254,7 +2263,9 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
2254
2263
  // same 12-column grid the form uses, so column spans behave identically inside
2255
2264
  // a card and at the top level. Colour is reserved for the active step, the
2256
2265
  // primary action and status; sections themselves stay neutral.
2257
- var sectionCardClassName = "col-span-12 rounded-lg border border-gray-200 bg-white shadow-sm ".concat(mobileView ? "p-4" : "p-5");
2266
+ var sectionCardClassName = "col-span-12 rounded-lg border shadow-sm ".concat((props === null || props === void 0 ? void 0 : props.darkMode)
2267
+ ? "border-gray-700 ".concat((_e = props === null || props === void 0 ? void 0 : props.darkModeBg) !== null && _e !== void 0 ? _e : "bg-gray-900")
2268
+ : "border-gray-200 bg-white", " ").concat(mobileView ? "p-4" : "p-5");
2258
2269
  var sectionGridClassName = "grid grid-cols-12 ".concat(mobileView ? "gap-x-6 gap-y-2 md:gap-6" : "gap-6");
2259
2270
  var hasSections = sortedInputListEntries.some(function (_a) {
2260
2271
  var key = _a[0];
@@ -2263,7 +2274,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
2263
2274
  var renderSectionHeading = function (key) {
2264
2275
  var _a;
2265
2276
  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),
2277
+ 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
2278
  ((_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
2279
  };
2269
2280
  return (react_1.default.createElement(react_1.default.Fragment, null,
@@ -2274,7 +2285,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
2274
2285
  return null;
2275
2286
  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
2287
  ? !((_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 rounded-lg border border-gray-200 shadow-sm", collapseContainerCss: "bg-white rounded-lg border border-gray-200 shadow-sm", 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") },
2288
+ : 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
2289
  renderInputs(key, inputs),
2279
2290
  renderStaticDetailList(key)), formInputRefList: formInputRefList === null || formInputRefList === void 0 ? void 0 : formInputRefList[key] })) : (react_1.default.createElement("div", { key: key, className: sectionCardClassName },
2280
2291
  renderSectionHeading(key),
@@ -2282,7 +2293,7 @@ var renderDataTemplateForm = function (data, model, formInputRef, updateMethod,
2282
2293
  renderInputs(key, inputs),
2283
2294
  renderStaticDetailList(key))));
2284
2295
  }),
2285
- hasSections && ((_e = inputList["default"]) === null || _e === void 0 ? void 0 : _e.length) > 0 ? (
2296
+ hasSections && ((_f = inputList["default"]) === null || _f === void 0 ? void 0 : _f.length) > 0 ? (
2286
2297
  // INFO: fields without a section sit in their own untitled card so they
2287
2298
  // line up with the sections instead of floating on the page background
2288
2299
  react_1.default.createElement("div", { className: sectionCardClassName },