blixify-ui-web 1.2.241 → 1.2.243

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 (28) hide show
  1. package/lib/components/data/columnTypes/groupSections.d.ts +12 -0
  2. package/lib/components/data/columnTypes/groupSections.d.ts.map +1 -1
  3. package/lib/components/data/columnTypes/groupSections.js +56 -1
  4. package/lib/components/data/columnTypes/groupSections.js.map +1 -1
  5. package/lib/components/data/dataTemplate/dataStateModel.d.ts +5 -0
  6. package/lib/components/data/dataTemplate/dataStateModel.d.ts.map +1 -1
  7. package/lib/components/data/dataTemplate/dataStateModel.js.map +1 -1
  8. package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
  9. package/lib/components/data/dataTemplate/index.js +331 -242
  10. package/lib/components/data/dataTemplate/index.js.map +1 -1
  11. package/lib/components/data/flexFilter/index.d.ts +14 -0
  12. package/lib/components/data/flexFilter/index.d.ts.map +1 -1
  13. package/lib/components/data/flexFilter/index.js +123 -15
  14. package/lib/components/data/flexFilter/index.js.map +1 -1
  15. package/lib/components/data/flexFilter/model.d.ts +1 -1
  16. package/lib/components/data/flexFilter/model.d.ts.map +1 -1
  17. package/lib/components/display/newTable/index.d.ts.map +1 -1
  18. package/lib/components/display/newTable/index.js +26 -2
  19. package/lib/components/display/newTable/index.js.map +1 -1
  20. package/lib/components/input/uploadInput/index.d.ts.map +1 -1
  21. package/lib/components/input/uploadInput/index.js +11 -10
  22. package/lib/components/input/uploadInput/index.js.map +1 -1
  23. package/lib/components/input/utils.d.ts +2 -0
  24. package/lib/components/input/utils.d.ts.map +1 -1
  25. package/lib/components/input/utils.js +25 -2
  26. package/lib/components/input/utils.js.map +1 -1
  27. package/lib/tail.css +1 -1
  28. package/package.json +1 -1
@@ -133,6 +133,15 @@ var utils_2 = require("../../input/utils");
133
133
  // INFO: rows a section draws before its "Show more" — a 2,000-row section
134
134
  // would otherwise mount every row (and every cell's controls) at once
135
135
  exports.NEW_TABLE_GROUP_ROW_BATCH = 50;
136
+ // INFO: cell editors that lay out several files, or a drawing pad, across
137
+ // the editor's width
138
+ var WIDE_EDIT_TYPES = [
139
+ "multipleImage",
140
+ "multipleFile",
141
+ "image",
142
+ "file",
143
+ "signature",
144
+ ];
136
145
  // INFO: resolve dotted key paths (e.g. "group.subKey") against a row object.
137
146
  // Required because flatColumns uses "parent.child" keys for groupData sub-columns.
138
147
  var resolveValue = function (row, key) {
@@ -3288,18 +3297,33 @@ var NewTable = function (props) {
3288
3297
  renderFloatingActionBar(),
3289
3298
  renderAddColumnModal()));
3290
3299
  }
3300
+ // INFO: photos, files and signatures need room to show several at once or
3301
+ // to draw in; any other field edited here gets a wider editor than the
3302
+ // modal's default too
3303
+ var handleGetEditModalWidth = function () {
3304
+ var _a;
3305
+ var selectedCol = flatColumns.find(function (eachCol) { return eachCol.key === editDataHeaderKey; });
3306
+ var selectedDS = (selectedCol
3307
+ ? handleConvertColumnToDataStructure([selectedCol])
3308
+ : [])[0];
3309
+ return WIDE_EDIT_TYPES.includes((_a = selectedDS === null || selectedDS === void 0 ? void 0 : selectedDS.type) !== null && _a !== void 0 ? _a : "") ? "4xl" : "2xl";
3310
+ };
3291
3311
  return (react_2.default.createElement("div", { className: "w-full ".concat((_0 = props.className) !== null && _0 !== void 0 ? _0 : "") },
3292
3312
  react_2.default.createElement(modal_1.Modal, { open: filterModal ? true : false, title: "Filter Options", renderContent: function () {
3293
3313
  var _a, _b;
3294
3314
  return (react_2.default.createElement("div", { className: "pb-44" },
3295
3315
  react_2.default.createElement("div", { className: "pb-48" }, (_b = (_a = props.advSettings) === null || _a === void 0 ? void 0 : _a.renderFilterElements) === null || _b === void 0 ? void 0 : _b.call(_a, filterModal))));
3296
3316
  }, onClose: function () { return setFilterModal(""); } }),
3297
- react_2.default.createElement(modal_1.Modal, { open: modalEditVisible, title: (_2 = (_1 = flatColumns.find(function (eachCol) { return eachCol.key === editDataHeaderKey; })) === null || _1 === void 0 ? void 0 : _1.title) !== null && _2 !== void 0 ? _2 : "Edit", onClose: handleModalEditClose, renderContent: function () {
3317
+ react_2.default.createElement(modal_1.Modal, { open: modalEditVisible, title: (_2 = (_1 = flatColumns.find(function (eachCol) { return eachCol.key === editDataHeaderKey; })) === null || _1 === void 0 ? void 0 : _1.title) !== null && _2 !== void 0 ? _2 : "Edit", maxWidth: handleGetEditModalWidth(), onClose: handleModalEditClose, renderContent: function () {
3298
3318
  var _a, _b, _c, _d;
3299
3319
  var selectedCol = flatColumns.find(function (eachCol) { return eachCol.key === editDataHeaderKey; });
3300
3320
  if (!selectedCol)
3301
3321
  return react_2.default.createElement("div", null);
3302
- var tempDS = handleConvertColumnToDataStructure([selectedCol])[0];
3322
+ var convertedDS = handleConvertColumnToDataStructure([
3323
+ selectedCol,
3324
+ ])[0];
3325
+ // INFO: the one field being edited takes the editor's whole width
3326
+ var tempDS = __assign(__assign({}, convertedDS), { rowColumns: 1 });
3303
3327
  return (react_2.default.createElement("div", { className: "flex flex-col gap-4" },
3304
3328
  (0, updateModule_1.renderDataTemplateForm)(editDataValue, [tempDS], editDataInputRefs.current, {
3305
3329
  handleOnChangeAddress: handleOnChangeAddress,