@feathery/react 2.15.1 → 2.16.0

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 (130) hide show
  1. package/cjs/Form/index.d.ts.map +1 -1
  2. package/cjs/elements/basic/TableElement/Actions.d.ts +3 -1
  3. package/cjs/elements/basic/TableElement/Actions.d.ts.map +1 -1
  4. package/cjs/elements/basic/TableElement/Search.d.ts.map +1 -1
  5. package/cjs/elements/basic/TableElement/Sort.d.ts +5 -0
  6. package/cjs/elements/basic/TableElement/Sort.d.ts.map +1 -1
  7. package/cjs/elements/basic/TableElement/index.d.ts.map +1 -1
  8. package/cjs/elements/basic/TableElement/styles.d.ts +1 -1
  9. package/cjs/elements/basic/TableElement/styles.d.ts.map +1 -1
  10. package/cjs/elements/basic/TableElement/useTableData.d.ts +7 -0
  11. package/cjs/elements/basic/TableElement/useTableData.d.ts.map +1 -1
  12. package/cjs/{fthry_FormControl.DhxdiYw6.js → fthry_FormControl.BKhBgGR8.js} +1 -1
  13. package/cjs/{fthry_InlineTooltip.BgAXRUIt.js → fthry_InlineTooltip.DzUT7zk0.js} +2 -2
  14. package/cjs/{fthry_Overlay.D7IM1ywp.js → fthry_Overlay.BpmW4YfX.js} +1 -1
  15. package/cjs/{fthry_PaymentMethodField.NEoloWMI.js → fthry_PaymentMethodField.CRiUSe8P.js} +4 -4
  16. package/cjs/{fthry_Placeholder.D5C0aH2S.js → fthry_Placeholder.BQbbxB6F.js} +1 -1
  17. package/cjs/{fthry_ShowEyeIcon.CmLMyaN5.js → fthry_ShowEyeIcon.hB_ow6JC.js} +1 -1
  18. package/cjs/{fthry_index.Ci8dMyBp.js → fthry_index.4N1YhCUq.js} +1 -1
  19. package/cjs/{fthry_index.JRP5lBfp.js → fthry_index.9iTTBFyN.js} +5 -5
  20. package/cjs/{fthry_index.GeYRayLh.js → fthry_index.B-CV6GlF.js} +1 -1
  21. package/cjs/{fthry_index.Bq3nU0FH.js → fthry_index.B9kpJ8RF.js} +6 -6
  22. package/cjs/{fthry_index.WDI9ExUl.js → fthry_index.BClazNwU.js} +1 -1
  23. package/cjs/{fthry_index.DzpGyyn4.js → fthry_index.BNmTPE57.js} +5 -5
  24. package/cjs/{fthry_index.BgeTdwT5.js → fthry_index.BT-MMWKW.js} +2 -2
  25. package/cjs/{fthry_index.By8RWuUY.js → fthry_index.BcS0pFWC.js} +6 -6
  26. package/cjs/{fthry_index.Bb1R5GZK.js → fthry_index.Biu3gbsh.js} +2 -2
  27. package/cjs/{fthry_index.CzzIM_Es.js → fthry_index.CBH-w87m.js} +602 -463
  28. package/cjs/{fthry_index.DDjTLR_C.js → fthry_index.CBq25pIU.js} +6 -6
  29. package/cjs/{fthry_index.BFpcCw2o.js → fthry_index.CbkwCml1.js} +1 -1
  30. package/cjs/{fthry_index.DLnigFf3.js → fthry_index.Cepb73QX.js} +4 -4
  31. package/cjs/{fthry_index.DXm31Dvn.js → fthry_index.CnCLJycW.js} +3 -3
  32. package/cjs/{fthry_index.D4rjZ-iU.js → fthry_index.CslonO6n.js} +4 -4
  33. package/cjs/{fthry_index.CrFjXWLg.js → fthry_index.CusiJzmn.js} +3 -3
  34. package/cjs/{fthry_index.CgMWWz7f.js → fthry_index.D--uB97c.js} +1 -1
  35. package/cjs/{fthry_index.CkmA933O.js → fthry_index.DLwBzlAm.js} +331 -59
  36. package/cjs/{fthry_index.BJYH_2P6.js → fthry_index.DOiXixKa.js} +1 -1
  37. package/cjs/{fthry_index.BK_jaGHn.js → fthry_index.DmsSGjy7.js} +5 -5
  38. package/cjs/{fthry_index.CbfDILWu.js → fthry_index.YRUJ420g.js} +4 -4
  39. package/cjs/{fthry_index.Bd1HfYvE.js → fthry_index.cplrWgvC.js} +5 -5
  40. package/cjs/{fthry_index.BqS0kCfh.js → fthry_index.lqNJzzej.js} +1 -1
  41. package/cjs/{fthry_index.E_vLB-7s.js → fthry_index.wYrRKH_Q.js} +8 -8
  42. package/cjs/{fthry_input.kxr0lkUP.js → fthry_input.Dt2FevPi.js} +1 -1
  43. package/cjs/{fthry_script.CpqGoZRW.js → fthry_script.Tl6aGziG.js} +1 -1
  44. package/cjs/{fthry_styles.UURZE2St.js → fthry_styles.Pvk5-k7a.js} +1 -1
  45. package/cjs/{fthry_useElementSize.B7mqB2ri.js → fthry_useElementSize.BFoAW8dM.js} +1 -1
  46. package/cjs/{fthry_useSalesforceSync.DFHAEpBn.js → fthry_useSalesforceSync.CGHmB1Kd.js} +1 -1
  47. package/cjs/{fthry_webfontloader.COsYlNwD.js → fthry_webfontloader.CeAHWOr6.js} +1 -1
  48. package/cjs/index.d.ts +3 -2
  49. package/cjs/index.d.ts.map +1 -1
  50. package/cjs/index.js +1 -1
  51. package/cjs/utils/error.d.ts +0 -5
  52. package/cjs/utils/error.d.ts.map +1 -1
  53. package/cjs/utils/featheryClient/index.d.ts +13 -20
  54. package/cjs/utils/featheryClient/index.d.ts.map +1 -1
  55. package/cjs/utils/featheryClient/integrationClient.d.ts +2 -8
  56. package/cjs/utils/featheryClient/integrationClient.d.ts.map +1 -1
  57. package/cjs/utils/featheryClient/utils.d.ts.map +1 -1
  58. package/cjs/utils/formContext.d.ts +3 -1
  59. package/cjs/utils/formContext.d.ts.map +1 -1
  60. package/cjs/utils/formHelperFunctions.d.ts.map +1 -1
  61. package/cjs/utils/internalState.d.ts +2 -12
  62. package/cjs/utils/internalState.d.ts.map +1 -1
  63. package/dist/Form/index.d.ts.map +1 -1
  64. package/dist/elements/basic/TableElement/Actions.d.ts +3 -1
  65. package/dist/elements/basic/TableElement/Actions.d.ts.map +1 -1
  66. package/dist/elements/basic/TableElement/Search.d.ts.map +1 -1
  67. package/dist/elements/basic/TableElement/Sort.d.ts +5 -0
  68. package/dist/elements/basic/TableElement/Sort.d.ts.map +1 -1
  69. package/dist/elements/basic/TableElement/index.d.ts.map +1 -1
  70. package/dist/elements/basic/TableElement/styles.d.ts +1 -1
  71. package/dist/elements/basic/TableElement/styles.d.ts.map +1 -1
  72. package/dist/elements/basic/TableElement/useTableData.d.ts +7 -0
  73. package/dist/elements/basic/TableElement/useTableData.d.ts.map +1 -1
  74. package/dist/{fthry_FormControl.CikgGb3C.js → fthry_FormControl.XVhBC21r.js} +1 -1
  75. package/dist/{fthry_InlineTooltip.BpfxcSEn.js → fthry_InlineTooltip.B5HOzwap.js} +2 -2
  76. package/dist/{fthry_Overlay.CJVfag7c.js → fthry_Overlay.Bimyn9cP.js} +1 -1
  77. package/dist/{fthry_PaymentMethodField.BpA_xhqt.js → fthry_PaymentMethodField.DC42S83Q.js} +4 -4
  78. package/dist/{fthry_Placeholder.DwCFN6a9.js → fthry_Placeholder.BSJmJpdc.js} +1 -1
  79. package/dist/{fthry_ShowEyeIcon.D6nQhesH.js → fthry_ShowEyeIcon.B9PAnnc8.js} +1 -1
  80. package/dist/{fthry_index.D9VjMJ_U.js → fthry_index.1C0U53je.js} +1 -1
  81. package/dist/{fthry_index.B84L3MVC.js → fthry_index.B0tXZhK_.js} +1 -1
  82. package/dist/{fthry_index.DhU16s57.js → fthry_index.BQH7UQHm.js} +5 -5
  83. package/dist/{fthry_index.BzrcCLzO.js → fthry_index.C2MFMacA.js} +4 -4
  84. package/dist/{fthry_index.BEZmvsoo.js → fthry_index.C8otB4PR.js} +5 -5
  85. package/dist/{fthry_index.B7VWXvgC.js → fthry_index.C9rpuLX0.js} +4 -4
  86. package/dist/{fthry_index.BSEfDQAc.js → fthry_index.CHndK5Ku.js} +2 -2
  87. package/dist/{fthry_index.DH2fsNWG.js → fthry_index.CJ2JTPaM.js} +3 -3
  88. package/dist/{fthry_index.NOuMR_hq.js → fthry_index.CRNNh-Vr.js} +6 -6
  89. package/dist/{fthry_index.OHN-Iv2R.js → fthry_index.CZMlc0Uq.js} +1 -1
  90. package/dist/{fthry_index.DoP7RwIP.js → fthry_index.Cqaf2wwS.js} +1 -1
  91. package/dist/{fthry_index.CJKGRCG-.js → fthry_index.D-Z9XSa-.js} +3 -3
  92. package/dist/{fthry_index.D9AKkBzu.js → fthry_index.D580ix-P.js} +1 -1
  93. package/dist/{fthry_index.BsNCOSBE.js → fthry_index.DOn8TnD9.js} +5 -5
  94. package/dist/{fthry_index.t4v0qqgv.js → fthry_index.DX3eUw60.js} +6 -6
  95. package/dist/{fthry_index.Fs86Fy9Y.js → fthry_index.DX823K0A.js} +5 -5
  96. package/dist/{fthry_index.BAhh3Pz6.js → fthry_index.DclC8fSK.js} +331 -59
  97. package/dist/{fthry_index.m7CZv4YY.js → fthry_index.DeVEe6wK.js} +4 -4
  98. package/dist/{fthry_index.Bz07r-AM.js → fthry_index.DuaCIs62.js} +1 -1
  99. package/dist/{fthry_index.Dgmpm9wy.js → fthry_index.DuaZsChW.js} +6 -6
  100. package/dist/{fthry_index.Dy4nSWZa.js → fthry_index.DucoThu1.js} +1 -1
  101. package/dist/{fthry_index.BsEfTy-x.js → fthry_index.Duj4YwU5.js} +8 -8
  102. package/dist/{fthry_index.B-oHlMGi.js → fthry_index.dbHyG7ZF.js} +2 -2
  103. package/dist/{fthry_index.y4j9reIZ.js → fthry_index.uXGVOaal.js} +602 -463
  104. package/dist/{fthry_input.Cb2u4VEf.js → fthry_input.ByujwKdQ.js} +1 -1
  105. package/dist/{fthry_script.C5O1ZNQQ.js → fthry_script.c1JhCd_N.js} +1 -1
  106. package/dist/{fthry_styles.DGB23xLr.js → fthry_styles.ChVA_k1Q.js} +1 -1
  107. package/dist/{fthry_useElementSize.CBdpS9aW.js → fthry_useElementSize.rXTn4Y2Q.js} +1 -1
  108. package/dist/{fthry_useSalesforceSync.Cae_lMG1.js → fthry_useSalesforceSync.CksS0l4W.js} +1 -1
  109. package/dist/{fthry_webfontloader.DAANkO2-.js → fthry_webfontloader.E26hycV1.js} +1 -1
  110. package/dist/index.d.ts +3 -2
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +1 -1
  113. package/dist/utils/error.d.ts +0 -5
  114. package/dist/utils/error.d.ts.map +1 -1
  115. package/dist/utils/featheryClient/index.d.ts +13 -20
  116. package/dist/utils/featheryClient/index.d.ts.map +1 -1
  117. package/dist/utils/featheryClient/integrationClient.d.ts +2 -8
  118. package/dist/utils/featheryClient/integrationClient.d.ts.map +1 -1
  119. package/dist/utils/featheryClient/utils.d.ts.map +1 -1
  120. package/dist/utils/formContext.d.ts +3 -1
  121. package/dist/utils/formContext.d.ts.map +1 -1
  122. package/dist/utils/formHelperFunctions.d.ts.map +1 -1
  123. package/dist/utils/internalState.d.ts +2 -12
  124. package/dist/utils/internalState.d.ts.map +1 -1
  125. package/package.json +2 -1
  126. package/umd/{509.341a4196aad912adb28d.js → 509.a863f8749c28540476bb.js} +2 -2
  127. package/umd/TableElement.8941c979f39547669b6a.js +1 -0
  128. package/umd/index.js +1 -1
  129. package/umd/TableElement.ef63774f461682dd3ac9.js +0 -1
  130. /package/umd/{509.341a4196aad912adb28d.js.LICENSE.txt → 509.a863f8749c28540476bb.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- import { _ as __assign, j as jsx, a as jsxs, F as Fragment, b as __read, f as featheryDoc, c as fieldValues, s as stringifyWithNull, d as __values, e as __spreadArray } from './fthry_index.y4j9reIZ.js';
1
+ import { _ as __assign, j as jsx, a as jsxs, F as Fragment, b as __read, f as featheryDoc, c as fieldValues, s as stringifyWithNull, d as __values, e as __spreadArray } from './fthry_index.uXGVOaal.js';
2
2
  import { useState, useRef, useEffect, useMemo } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import 'react/jsx-runtime';
@@ -105,7 +105,8 @@ var searchInputStyle = {
105
105
  color: colors.gray900,
106
106
  fontSize: '14px',
107
107
  borderRadius: '8px',
108
- boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)'
108
+ boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
109
+ boxSizing: 'border-box'
109
110
  };
110
111
  var tableStyle = {
111
112
  width: '100%',
@@ -115,8 +116,7 @@ var tableStyle = {
115
116
  color: colors.gray600,
116
117
  textIndent: 0,
117
118
  borderColor: 'inherit',
118
- borderCollapse: 'collapse',
119
- tableLayout: 'fixed'
119
+ borderCollapse: 'collapse'
120
120
  };
121
121
  var theadStyle = {
122
122
  fontSize: '14px',
@@ -253,7 +253,12 @@ function SearchIcon() {
253
253
  }
254
254
  function Search(_a) {
255
255
  var searchQuery = _a.searchQuery, onSearchChange = _a.onSearchChange;
256
- return (jsx("div", __assign({ css: searchContainerStyle }, { children: jsxs("div", __assign({ css: searchWrapperStyle }, { children: [jsx("div", __assign({ css: searchIconWrapperStyle }, { children: jsx(SearchIcon, {}) })), jsx("input", { type: 'text', css: searchInputStyle, placeholder: 'Search', value: searchQuery, onChange: function (e) { return onSearchChange(e.target.value); } })] })) })));
256
+ var handleKeyDown = function (e) {
257
+ if (e.key === 'Enter') {
258
+ e.preventDefault();
259
+ }
260
+ };
261
+ return (jsx("div", __assign({ css: searchContainerStyle }, { children: jsxs("div", __assign({ css: searchWrapperStyle }, { children: [jsx("div", __assign({ css: searchIconWrapperStyle }, { children: jsx(SearchIcon, {}) })), jsx("input", { type: 'text', css: searchInputStyle, placeholder: 'Search', value: searchQuery, onChange: function (e) { return onSearchChange(e.target.value); }, onKeyDown: handleKeyDown })] })) })));
257
262
  }
258
263
 
259
264
  function SortIcon(_a) {
@@ -265,7 +270,8 @@ function SortHeader(_a) {
265
270
  return (jsx(Fragment, { children: columns.map(function (column, index) {
266
271
  var isSortable = enableSort;
267
272
  var isSorted = sortColumn === column.name;
268
- return (jsx("th", __assign({ scope: 'col', onClick: function () { return isSortable && onSort(column.name); }, css: __assign(__assign(__assign({}, thStyle), styles.getTarget('th')), (isSortable ? { cursor: 'pointer' } : {})) }, { children: jsxs("div", __assign({ css: sortHeaderContentStyle }, { children: [jsx("span", { children: column.name }), isSortable && (jsx("span", __assign({ css: sortIconContainerStyle }, { children: jsx(SortIcon, { isSorted: isSorted, sortDirection: sortDirection }) })))] })) }), index));
273
+ var isFirstColumn = index === 0;
274
+ return (jsx("th", __assign({ scope: 'col', onClick: function () { return isSortable && onSort(column.name); }, css: __assign(__assign(__assign(__assign({}, thStyle), (isFirstColumn ? {} : { paddingLeft: 0 })), styles.getTarget('th')), (isSortable ? { cursor: 'pointer' } : {})) }, { children: jsxs("div", __assign({ css: sortHeaderContentStyle }, { children: [jsx("span", { children: column.name }), isSortable && (jsx("span", __assign({ css: sortIconContainerStyle }, { children: jsx(SortIcon, { isSorted: isSorted, sortDirection: sortDirection }) })))] })) }), index));
269
275
  }) }));
270
276
  }
271
277
 
@@ -313,16 +319,15 @@ function MenuIcon() {
313
319
  return (jsxs("svg", __assign({ css: menuIconStyle, fill: 'currentColor', viewBox: '0 0 24 24' }, { children: [jsx("circle", { cx: '12', cy: '5', r: '2' }), jsx("circle", { cx: '12', cy: '12', r: '2' }), jsx("circle", { cx: '12', cy: '19', r: '2' })] })));
314
320
  }
315
321
  function ActionButtons(_a) {
316
- var actions = _a.actions, rowIndex = _a.rowIndex, columnData = _a.columnData, onClick = _a.onClick;
322
+ var actions = _a.actions, rowIndex = _a.rowIndex, columnData = _a.columnData, fieldValuesProp = _a.fieldValues, onClick = _a.onClick, _b = _a.forceInlineButtons, forceInlineButtons = _b === void 0 ? false : _b;
317
323
  if (actions.length === 0)
318
324
  return null;
319
- var _b = __read(useState(false), 2), isMenuOpen = _b[0], setIsMenuOpen = _b[1];
320
- var _c = __read(useState({ top: 0, left: 0 }), 2), menuPosition = _c[0], setMenuPosition = _c[1];
325
+ var _c = __read(useState(false), 2), isMenuOpen = _c[0], setIsMenuOpen = _c[1];
326
+ var _d = __read(useState({ top: 0, left: 0 }), 2), menuPosition = _d[0], setMenuPosition = _d[1];
321
327
  var containerRef = useRef(null);
322
328
  var menuRef = useRef(null);
323
329
  var menuButtonRef = useRef(null);
324
- // If more than 1 action, show overflow menu; otherwise show inline buttons
325
- var useOverflow = actions.length > 1;
330
+ var useOverflow = !forceInlineButtons && actions.length > 1;
326
331
  useEffect(function () {
327
332
  var handleClickOutside = function (event) {
328
333
  if (menuRef.current &&
@@ -341,9 +346,10 @@ function ActionButtons(_a) {
341
346
  }, [isMenuOpen]);
342
347
  var handleActionClick = function (action) {
343
348
  setIsMenuOpen(false);
349
+ var activeFieldValues = fieldValuesProp || fieldValues;
344
350
  var rowData = {};
345
351
  columnData.forEach(function (col) {
346
- var fValue = fieldValues[col.field_key];
352
+ var fValue = activeFieldValues[col.field_key];
347
353
  var cValue = Array.isArray(fValue) ? fValue[rowIndex] : fValue;
348
354
  rowData[col.name] = cValue;
349
355
  });
@@ -481,21 +487,95 @@ function generateExampleData(columns, numRows) {
481
487
  return exampleData;
482
488
  }
483
489
 
490
+ /**
491
+ * Transpose table data: columns become rows, rows become columns
492
+ * Returns new columns and transposed field values
493
+ */
494
+ function transposeTableData(columns, activeFieldValues, numRows, rowIndicesToInclude) {
495
+ var e_1, _a, e_2, _b, e_3, _c;
496
+ var includedRowIndices = rowIndicesToInclude || Array.from({ length: numRows }, function (_, i) { return i; });
497
+ var transposedColumns = [
498
+ {
499
+ name: '',
500
+ field_id: '_transpose_field_name',
501
+ field_type: 'text',
502
+ field_key: '_transpose_field_name'
503
+ }
504
+ ];
505
+ try {
506
+ // Add a column for each original row
507
+ for (var includedRowIndices_1 = __values(includedRowIndices), includedRowIndices_1_1 = includedRowIndices_1.next(); !includedRowIndices_1_1.done; includedRowIndices_1_1 = includedRowIndices_1.next()) {
508
+ var rowIdx = includedRowIndices_1_1.value;
509
+ transposedColumns.push({
510
+ name: '',
511
+ field_id: "_transpose_row_".concat(rowIdx),
512
+ field_type: 'text',
513
+ field_key: "_transpose_row_".concat(rowIdx),
514
+ originalRowIndex: rowIdx
515
+ });
516
+ }
517
+ }
518
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
519
+ finally {
520
+ try {
521
+ if (includedRowIndices_1_1 && !includedRowIndices_1_1.done && (_a = includedRowIndices_1.return)) _a.call(includedRowIndices_1);
522
+ }
523
+ finally { if (e_1) throw e_1.error; }
524
+ }
525
+ var transposedFieldValues = {
526
+ _transpose_field_name: columns.map(function (col) { return col.name; })
527
+ };
528
+ try {
529
+ for (var includedRowIndices_2 = __values(includedRowIndices), includedRowIndices_2_1 = includedRowIndices_2.next(); !includedRowIndices_2_1.done; includedRowIndices_2_1 = includedRowIndices_2.next()) {
530
+ var rowIdx = includedRowIndices_2_1.value;
531
+ var transposedRowValues = [];
532
+ try {
533
+ for (var columns_1 = (e_3 = void 0, __values(columns)), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
534
+ var column = columns_1_1.value;
535
+ var fieldValue = activeFieldValues[column.field_key];
536
+ var cellValue = Array.isArray(fieldValue)
537
+ ? fieldValue[rowIdx]
538
+ : fieldValue;
539
+ transposedRowValues.push(cellValue);
540
+ }
541
+ }
542
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
543
+ finally {
544
+ try {
545
+ if (columns_1_1 && !columns_1_1.done && (_c = columns_1.return)) _c.call(columns_1);
546
+ }
547
+ finally { if (e_3) throw e_3.error; }
548
+ }
549
+ transposedFieldValues["_transpose_row_".concat(rowIdx)] = transposedRowValues;
550
+ }
551
+ }
552
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
553
+ finally {
554
+ try {
555
+ if (includedRowIndices_2_1 && !includedRowIndices_2_1.done && (_b = includedRowIndices_2.return)) _b.call(includedRowIndices_2);
556
+ }
557
+ finally { if (e_2) throw e_2.error; }
558
+ }
559
+ return {
560
+ transposedColumns: transposedColumns,
561
+ transposedFieldValues: transposedFieldValues,
562
+ includedRowIndices: includedRowIndices
563
+ };
564
+ }
484
565
  function useTableData(_a) {
485
- var _b, _c, _d, _e, _f, _g, _h, _j;
486
- var element = _a.element, _k = _a.editMode, editMode = _k === void 0 ? false : _k;
566
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
567
+ var element = _a.element, _m = _a.editMode, editMode = _m === void 0 ? false : _m;
487
568
  var userColumns = ((_b = element.properties) === null || _b === void 0 ? void 0 : _b.columns) || [];
488
569
  var actions = (((_c = element.properties) === null || _c === void 0 ? void 0 : _c.actions) || []).filter(function (action) { return action.label && action.label.trim() !== ''; });
489
570
  var enableSearch = (_e = (_d = element.properties) === null || _d === void 0 ? void 0 : _d.search) !== null && _e !== void 0 ? _e : false;
490
571
  var enableSort = (_g = (_f = element.properties) === null || _f === void 0 ? void 0 : _f.sort) !== null && _g !== void 0 ? _g : false;
491
- var paginationSetting = (_j = (_h = element.properties) === null || _h === void 0 ? void 0 : _h.pagination) !== null && _j !== void 0 ? _j : 0;
572
+ var enableTranspose = (_j = (_h = element.properties) === null || _h === void 0 ? void 0 : _h.transpose) !== null && _j !== void 0 ? _j : false;
573
+ var paginationSetting = (_l = (_k = element.properties) === null || _k === void 0 ? void 0 : _k.pagination) !== null && _l !== void 0 ? _l : 0;
492
574
  var rowsPerPage = typeof paginationSetting === 'number' && paginationSetting > 0
493
575
  ? Math.floor(paginationSetting)
494
576
  : 0;
495
577
  var enablePagination = rowsPerPage > 0;
496
- // Use example columns if in edit mode and no columns provided
497
- // Also ensure all columns have field_key in edit mode
498
- var columns = useMemo(function () {
578
+ var baseColumns = useMemo(function () {
499
579
  var cols = userColumns;
500
580
  // In edit mode, replace field_key with a unique example key
501
581
  if (editMode) {
@@ -504,16 +584,112 @@ function useTableData(_a) {
504
584
  return cols;
505
585
  }, [editMode, userColumns]);
506
586
  // Use example data in edit mode
507
- var activeFieldValues = useMemo(function () {
587
+ var baseFieldValues = useMemo(function () {
508
588
  if (editMode) {
509
- return generateExampleData(columns);
589
+ return generateExampleData(baseColumns);
510
590
  }
511
591
  return fieldValues;
512
- }, [editMode, columns, userColumns.length]);
513
- var _l = __read(useState(''), 2), searchQuery = _l[0], setSearchQuery = _l[1];
514
- var _m = __read(useState(null), 2), sortColumn = _m[0], setSortColumn = _m[1];
515
- var _o = __read(useState('asc'), 2), sortDirection = _o[0], setSortDirection = _o[1];
516
- var _p = __read(useState(0), 2), currentPage = _p[0], setCurrentPage = _p[1];
592
+ }, [editMode, baseColumns, userColumns.length]);
593
+ var _o = __read(useState(''), 2), searchQuery = _o[0], setSearchQuery = _o[1];
594
+ var _p = __read(useState(null), 2), sortColumn = _p[0], setSortColumn = _p[1];
595
+ var _q = __read(useState('asc'), 2), sortDirection = _q[0], setSortDirection = _q[1];
596
+ var _r = __read(useState(0), 2), currentPage = _r[0], setCurrentPage = _r[1];
597
+ var baseNumRows = useMemo(function () {
598
+ return baseColumns.reduce(function (maxRows, column) {
599
+ var fieldValue = baseFieldValues[column.field_key];
600
+ if (Array.isArray(fieldValue)) {
601
+ return Math.max(maxRows, fieldValue.length);
602
+ }
603
+ return maxRows;
604
+ }, 0);
605
+ }, [baseColumns, baseFieldValues]);
606
+ var allBaseRowIndices = useMemo(function () { return Array.from({ length: baseNumRows }, function (_, i) { return i; }); }, [baseNumRows]);
607
+ var filteredBaseRowIndices = useMemo(function () {
608
+ if (!enableTranspose || !enableSearch || !searchQuery.trim()) {
609
+ return allBaseRowIndices;
610
+ }
611
+ return allBaseRowIndices.filter(function (baseRowIdx) {
612
+ return baseColumns.some(function (column) {
613
+ var _a;
614
+ var fieldValue = baseFieldValues[column.field_key];
615
+ var cellValue = Array.isArray(fieldValue)
616
+ ? fieldValue[baseRowIdx]
617
+ : fieldValue;
618
+ var stringValue = (_a = stringifyWithNull(cellValue)) !== null && _a !== void 0 ? _a : '';
619
+ return stringValue
620
+ .toLowerCase()
621
+ .includes(searchQuery.toLowerCase().trim());
622
+ });
623
+ });
624
+ }, [
625
+ enableTranspose,
626
+ allBaseRowIndices,
627
+ baseColumns,
628
+ searchQuery,
629
+ enableSearch,
630
+ baseFieldValues
631
+ ]);
632
+ var _s = __read(useState(null), 2), sortedColumnIndex = _s[0], setSortedColumnIndex = _s[1];
633
+ var sortedBaseRowIndices = useMemo(function () {
634
+ if (!enableTranspose || !enableSort || sortedColumnIndex === null) {
635
+ return filteredBaseRowIndices;
636
+ }
637
+ var column = baseColumns[sortedColumnIndex];
638
+ if (!column)
639
+ return filteredBaseRowIndices;
640
+ return __spreadArray([], __read(filteredBaseRowIndices), false).sort(function (aIdx, bIdx) {
641
+ var fieldValue = baseFieldValues[column.field_key];
642
+ var aValue = Array.isArray(fieldValue) ? fieldValue[aIdx] : fieldValue;
643
+ var bValue = Array.isArray(fieldValue) ? fieldValue[bIdx] : fieldValue;
644
+ var aParsed = parseSortableValue(aValue);
645
+ var bParsed = parseSortableValue(bValue);
646
+ var comparison = compareSortableValues(aParsed, bParsed);
647
+ return sortDirection === 'asc' ? comparison : -comparison;
648
+ });
649
+ }, [
650
+ enableTranspose,
651
+ filteredBaseRowIndices,
652
+ sortedColumnIndex,
653
+ sortDirection,
654
+ baseColumns,
655
+ baseFieldValues,
656
+ enableSort
657
+ ]);
658
+ var paginatedBaseRowIndices = useMemo(function () {
659
+ if (!enableTranspose || !enablePagination) {
660
+ return sortedBaseRowIndices;
661
+ }
662
+ var startIdx = currentPage * rowsPerPage;
663
+ var endIdx = startIdx + rowsPerPage;
664
+ return sortedBaseRowIndices.slice(startIdx, endIdx);
665
+ }, [
666
+ enableTranspose,
667
+ sortedBaseRowIndices,
668
+ currentPage,
669
+ rowsPerPage,
670
+ enablePagination
671
+ ]);
672
+ var _t = useMemo(function () {
673
+ if (!enableTranspose || baseNumRows === 0) {
674
+ return {
675
+ columns: baseColumns,
676
+ activeFieldValues: baseFieldValues,
677
+ transposedRowIndices: []
678
+ };
679
+ }
680
+ var _a = transposeTableData(baseColumns, baseFieldValues, baseNumRows, paginatedBaseRowIndices), transposedColumns = _a.transposedColumns, transposedFieldValues = _a.transposedFieldValues, includedRowIndices = _a.includedRowIndices;
681
+ return {
682
+ columns: transposedColumns,
683
+ activeFieldValues: transposedFieldValues,
684
+ transposedRowIndices: includedRowIndices
685
+ };
686
+ }, [
687
+ enableTranspose,
688
+ baseColumns,
689
+ baseFieldValues,
690
+ baseNumRows,
691
+ paginatedBaseRowIndices
692
+ ]), columns = _t.columns, activeFieldValues = _t.activeFieldValues, transposedRowIndices = _t.transposedRowIndices;
517
693
  var numRows = useMemo(function () {
518
694
  return columns.reduce(function (maxRows, column) {
519
695
  var fieldValue = activeFieldValues[column.field_key];
@@ -525,6 +701,8 @@ function useTableData(_a) {
525
701
  }, [columns, activeFieldValues]);
526
702
  var allRowIndices = useMemo(function () { return Array.from({ length: numRows }, function (_, i) { return i; }); }, [numRows]);
527
703
  var filteredRowIndices = useMemo(function () {
704
+ if (enableTranspose)
705
+ return allRowIndices; // Already filtered during transpose
528
706
  if (!enableSearch || !searchQuery.trim())
529
707
  return allRowIndices;
530
708
  return allRowIndices.filter(function (rowIndex) {
@@ -540,8 +718,17 @@ function useTableData(_a) {
540
718
  .includes(searchQuery.toLowerCase().trim());
541
719
  });
542
720
  });
543
- }, [allRowIndices, columns, searchQuery, enableSearch, activeFieldValues]);
721
+ }, [
722
+ enableTranspose,
723
+ allRowIndices,
724
+ columns,
725
+ searchQuery,
726
+ enableSearch,
727
+ activeFieldValues
728
+ ]);
544
729
  var sortedRowIndices = useMemo(function () {
730
+ if (enableTranspose)
731
+ return filteredRowIndices; // Already sorted during transpose
545
732
  if (!enableSort || !sortColumn)
546
733
  return filteredRowIndices;
547
734
  var column = columns.find(function (col) { return col.name === sortColumn; });
@@ -557,6 +744,7 @@ function useTableData(_a) {
557
744
  return sortDirection === 'asc' ? comparison : -comparison;
558
745
  });
559
746
  }, [
747
+ enableTranspose,
560
748
  filteredRowIndices,
561
749
  sortColumn,
562
750
  sortDirection,
@@ -565,19 +753,30 @@ function useTableData(_a) {
565
753
  activeFieldValues
566
754
  ]);
567
755
  var paginatedRowIndices = useMemo(function () {
756
+ if (enableTranspose)
757
+ return allRowIndices; // Already paginated during transpose
568
758
  if (!enablePagination)
569
759
  return sortedRowIndices;
570
760
  var startIdx = currentPage * rowsPerPage;
571
761
  var endIdx = startIdx + rowsPerPage;
572
762
  return sortedRowIndices.slice(startIdx, endIdx);
573
- }, [sortedRowIndices, currentPage, rowsPerPage, enablePagination]);
763
+ }, [
764
+ enableTranspose,
765
+ allRowIndices,
766
+ sortedRowIndices,
767
+ currentPage,
768
+ rowsPerPage,
769
+ enablePagination
770
+ ]);
574
771
  // Reset to first page when search or sort changes
575
772
  useEffect(function () {
576
773
  setCurrentPage(0);
577
774
  }, [searchQuery, sortColumn, sortDirection]);
578
- var totalPages = enablePagination
579
- ? Math.ceil(sortedRowIndices.length / rowsPerPage)
580
- : 1;
775
+ // For transposed tables, totalRows and totalPages are based on original rows (now columns)
776
+ var totalRows = enableTranspose
777
+ ? sortedBaseRowIndices.length
778
+ : sortedRowIndices.length;
779
+ var totalPages = enablePagination ? Math.ceil(totalRows / rowsPerPage) : 1;
581
780
  var handleSort = function (columnName) {
582
781
  if (!enableSort)
583
782
  return;
@@ -596,8 +795,29 @@ function useTableData(_a) {
596
795
  setSortDirection('asc');
597
796
  }
598
797
  };
798
+ var handleTransposedSort = function (rowIndex) {
799
+ if (!enableSort || !enableTranspose)
800
+ return;
801
+ if (sortedColumnIndex === rowIndex) {
802
+ // Cycle through: asc → desc → none
803
+ if (sortDirection === 'asc') {
804
+ setSortDirection('desc');
805
+ }
806
+ else {
807
+ setSortedColumnIndex(null);
808
+ setSortDirection('asc');
809
+ }
810
+ }
811
+ else {
812
+ setSortedColumnIndex(rowIndex);
813
+ setSortDirection('asc');
814
+ }
815
+ };
599
816
  var hasData = numRows > 0;
600
- var hasSearchResults = filteredRowIndices.length > 0;
817
+ var hasSearchResults = enableTranspose
818
+ ? filteredBaseRowIndices.length > 0
819
+ : filteredRowIndices.length > 0;
820
+ var isTransposed = enableTranspose && baseNumRows > 0;
601
821
  return {
602
822
  enableSearch: enableSearch,
603
823
  searchQuery: searchQuery,
@@ -606,7 +826,9 @@ function useTableData(_a) {
606
826
  enableSort: enableSort,
607
827
  sortColumn: sortColumn,
608
828
  sortDirection: sortDirection,
829
+ sortedColumnIndex: sortedColumnIndex,
609
830
  handleSort: handleSort,
831
+ handleTransposedSort: handleTransposedSort,
610
832
  enablePagination: enablePagination,
611
833
  currentPage: currentPage,
612
834
  paginatedRowIndices: paginatedRowIndices,
@@ -614,10 +836,14 @@ function useTableData(_a) {
614
836
  setCurrentPage: setCurrentPage,
615
837
  columns: columns,
616
838
  actions: actions,
617
- totalRows: sortedRowIndices.length,
839
+ isTransposed: isTransposed,
840
+ transposedRowIndices: transposedRowIndices,
841
+ totalRows: totalRows,
618
842
  totalPages: totalPages,
619
843
  hasData: hasData,
620
- activeFieldValues: activeFieldValues
844
+ activeFieldValues: activeFieldValues,
845
+ baseColumns: baseColumns,
846
+ baseFieldValues: baseFieldValues
621
847
  };
622
848
  }
623
849
 
@@ -632,36 +858,82 @@ function TableElement(_a) {
632
858
  // search
633
859
  enableSearch = _d.enableSearch, searchQuery = _d.searchQuery, setSearchQuery = _d.setSearchQuery,
634
860
  // sort
635
- enableSort = _d.enableSort, sortColumn = _d.sortColumn, sortDirection = _d.sortDirection, handleSort = _d.handleSort,
861
+ enableSort = _d.enableSort, sortColumn = _d.sortColumn, sortDirection = _d.sortDirection, sortedColumnIndex = _d.sortedColumnIndex, handleSort = _d.handleSort, handleTransposedSort = _d.handleTransposedSort,
636
862
  // pagination
637
863
  enablePagination = _d.enablePagination, currentPage = _d.currentPage, setCurrentPage = _d.setCurrentPage, paginatedRowIndices = _d.paginatedRowIndices, rowsPerPage = _d.rowsPerPage,
638
864
  // data
639
- columns = _d.columns, actions = _d.actions, totalRows = _d.totalRows, totalPages = _d.totalPages, hasData = _d.hasData, hasSearchResults = _d.hasSearchResults, activeFieldValues = _d.activeFieldValues;
865
+ columns = _d.columns, actions = _d.actions, isTransposed = _d.isTransposed, transposedRowIndices = _d.transposedRowIndices, totalRows = _d.totalRows, totalPages = _d.totalPages, hasData = _d.hasData, hasSearchResults = _d.hasSearchResults, activeFieldValues = _d.activeFieldValues, baseColumns = _d.baseColumns, baseFieldValues = _d.baseFieldValues;
640
866
  var showEmptyState = !hasData || (hasData && !hasSearchResults);
641
- return (jsx("div", __assign({ css: __assign(__assign({}, containerStyle), styles.getTarget('container')) }, { children: jsxs("div", __assign({ css: { minWidth: 'fit-content' } }, { children: [enableSearch && (jsx(Search, { searchQuery: searchQuery, onSearchChange: setSearchQuery })), showEmptyState ? (jsx(EmptyState, { hasSearchQuery: searchQuery.trim().length > 0 })) : (jsxs("table", __assign({ css: __assign(__assign({}, tableStyle), styles.getTarget('table')) }, { children: [jsx("thead", __assign({ css: theadStyle }, { children: jsxs("tr", { children: [jsx(SortHeader, { columns: columns, enableSort: enableSort, sortColumn: sortColumn, sortDirection: sortDirection, onSort: handleSort, styles: styles }), actions.length > 0 && (jsx("th", { scope: 'col', css: __assign(__assign({}, thStyle), styles.getTarget('th')) }))] }) })), jsx("tbody", __assign({ css: styles.getTarget('tbody') }, { children: paginatedRowIndices.map(function (rowIndex) {
642
- var rowData = {};
643
- columns.forEach(function (col) {
644
- var fValue = activeFieldValues[col.field_key];
645
- var cValue = Array.isArray(fValue)
646
- ? fValue[rowIndex]
647
- : fValue;
648
- rowData[col.name] = cValue;
649
- });
650
- var handleRowClick = function () {
651
- onClick({
652
- rowIndex: rowIndex,
653
- rowData: rowData
654
- });
655
- };
656
- return (jsxs("tr", __assign({ css: __assign(__assign({}, rowStyle), styles.getTarget('tr')), onClick: handleRowClick }, { children: [columns.map(function (column, colIndex) {
657
- var _a;
658
- var fieldValue = activeFieldValues[column.field_key];
659
- var cellValue = Array.isArray(fieldValue)
660
- ? fieldValue[rowIndex]
661
- : fieldValue;
662
- return (jsx("td", __assign({ css: __assign(__assign({}, cellStyle), styles.getTarget('td')) }, { children: (_a = stringifyWithNull(cellValue)) !== null && _a !== void 0 ? _a : '' }), colIndex));
663
- }), actions.length > 0 && (jsx("td", __assign({ css: __assign(__assign({}, cellStyle), styles.getTarget('td')) }, { children: jsx(ActionButtons, { actions: actions, rowIndex: rowIndex, columnData: columns, onClick: onClick }) })))] }), rowIndex));
664
- }) }))] }))), !showEmptyState && enablePagination && (jsx(Pagination, { currentPage: currentPage, totalPages: totalPages, totalItems: totalRows, rowsPerPage: rowsPerPage, onPageChange: setCurrentPage }))] })) })));
867
+ return (jsx("div", __assign({ css: __assign(__assign({}, containerStyle), styles.getTarget('container')) }, { children: jsxs("div", __assign({ css: { minWidth: 'fit-content' } }, { children: [enableSearch && (jsx(Search, { searchQuery: searchQuery, onSearchChange: setSearchQuery })), showEmptyState ? (jsx(EmptyState, { hasSearchQuery: searchQuery.trim().length > 0 })) : (jsxs("table", __assign({ css: __assign(__assign({}, tableStyle), styles.getTarget('table')) }, { children: [!isTransposed && (jsx("thead", __assign({ css: theadStyle }, { children: jsxs("tr", { children: [jsx(SortHeader, { columns: columns, enableSort: enableSort, sortColumn: sortColumn, sortDirection: sortDirection, onSort: handleSort, styles: styles }), actions.length > 0 && (jsx("th", { scope: 'col', css: __assign(__assign(__assign({}, thStyle), { paddingLeft: 0 }), styles.getTarget('th')) }))] }) }))), jsxs("tbody", __assign({ css: styles.getTarget('tbody') }, { children: [paginatedRowIndices.map(function (rowIndex) {
868
+ var rowData = {};
869
+ if (!isTransposed) {
870
+ columns.forEach(function (col) {
871
+ var fValue = activeFieldValues[col.field_key];
872
+ var cValue = Array.isArray(fValue)
873
+ ? fValue[rowIndex]
874
+ : fValue;
875
+ rowData[col.name] = cValue;
876
+ });
877
+ }
878
+ var handleRowClick = function () {
879
+ if (!isTransposed) {
880
+ onClick({
881
+ rowIndex: rowIndex,
882
+ rowData: rowData
883
+ });
884
+ }
885
+ };
886
+ return (jsxs("tr", __assign({ css: __assign(__assign({}, rowStyle), styles.getTarget('tr')), onClick: handleRowClick }, { children: [columns.map(function (column, colIndex) {
887
+ var _a, _b;
888
+ var fieldValue = activeFieldValues[column.field_key];
889
+ var cellValue = Array.isArray(fieldValue)
890
+ ? fieldValue[rowIndex]
891
+ : fieldValue;
892
+ var isFirstColInTranspose = isTransposed && colIndex === 0;
893
+ var isSortable = isFirstColInTranspose && enableSort;
894
+ var isSorted = sortedColumnIndex === rowIndex;
895
+ var isFirstColumn = colIndex === 0;
896
+ var isSecondColumn = colIndex === 1;
897
+ // In transposed mode, get the original row index from the column
898
+ var originalRowIndex = isTransposed && !isFirstColInTranspose
899
+ ? column.originalRowIndex
900
+ : undefined;
901
+ var cellCss = isFirstColInTranspose
902
+ ? __assign(__assign(__assign(__assign({}, thStyle), { backgroundColor: '#f9fafb', borderRight: '1px solid #e5e7eb', width: '1px', whiteSpace: 'nowrap' }), styles.getTarget('th')), (isSortable ? { cursor: 'pointer' } : {})) : __assign(__assign(__assign(__assign({}, cellStyle), (isTransposed
903
+ ? isSecondColumn
904
+ ? {}
905
+ : { paddingLeft: 0 }
906
+ : isFirstColumn
907
+ ? {}
908
+ : { paddingLeft: 0 })), (isTransposed && !isFirstColInTranspose
909
+ ? { cursor: 'pointer' }
910
+ : {})), styles.getTarget('td'));
911
+ var CellElement = isFirstColInTranspose ? 'th' : 'td';
912
+ var handleCellClick = function (e) {
913
+ if (isSortable) {
914
+ handleTransposedSort(rowIndex);
915
+ }
916
+ else if (isTransposed &&
917
+ originalRowIndex !== undefined) {
918
+ // In transposed mode, clicking a cell triggers with original row data
919
+ e.stopPropagation();
920
+ var originalRowData_1 = {};
921
+ baseColumns.forEach(function (col) {
922
+ var fValue = baseFieldValues[col.field_key];
923
+ var cValue = Array.isArray(fValue)
924
+ ? fValue[originalRowIndex]
925
+ : fValue;
926
+ originalRowData_1[col.name] = cValue;
927
+ });
928
+ onClick({
929
+ rowIndex: originalRowIndex,
930
+ rowData: originalRowData_1
931
+ });
932
+ }
933
+ };
934
+ return (jsx(CellElement, __assign({ css: cellCss, onClick: handleCellClick }, (isFirstColInTranspose ? { scope: 'row' } : {}), { children: isFirstColInTranspose && isSortable ? (jsxs("div", __assign({ css: __assign(__assign({}, sortHeaderContentStyle), { justifyContent: 'space-between' }) }, { children: [jsx("span", { children: (_a = stringifyWithNull(cellValue)) !== null && _a !== void 0 ? _a : '' }), jsx("span", __assign({ css: sortIconContainerStyle }, { children: jsx(SortIcon, { isSorted: isSorted, sortDirection: sortDirection }) }))] }))) : ((_b = stringifyWithNull(cellValue)) !== null && _b !== void 0 ? _b : '') }), colIndex));
935
+ }), !isTransposed && actions.length > 0 && (jsx("td", __assign({ css: __assign(__assign(__assign({}, cellStyle), { paddingLeft: 0 }), styles.getTarget('td')) }, { children: jsx(ActionButtons, { actions: actions, rowIndex: rowIndex, columnData: baseColumns, fieldValues: baseFieldValues, onClick: onClick }) })))] }), rowIndex));
936
+ }), isTransposed && actions.length > 0 && (jsxs("tr", __assign({ css: __assign(__assign({}, rowStyle), styles.getTarget('tr')) }, { children: [jsx("th", { scope: 'row', css: __assign(__assign(__assign({}, thStyle), { backgroundColor: '#f9fafb', borderRight: '1px solid #e5e7eb', width: '1px', whiteSpace: 'nowrap' }), styles.getTarget('th')) }), transposedRowIndices.map(function (originalRowIndex, idx) { return (jsx("td", __assign({ css: __assign(__assign(__assign({}, cellStyle), (idx === 0 ? {} : { paddingLeft: 0 })), styles.getTarget('td')) }, { children: jsx("div", __assign({ css: { display: 'flex', justifyContent: 'flex-start' } }, { children: jsx(ActionButtons, { actions: actions, rowIndex: originalRowIndex, columnData: baseColumns, fieldValues: baseFieldValues, onClick: onClick, forceInlineButtons: true }) })) }), originalRowIndex)); })] })))] }))] }))), !showEmptyState && enablePagination && (jsx(Pagination, { currentPage: currentPage, totalPages: totalPages, totalItems: totalRows, rowsPerPage: rowsPerPage, onPageChange: setCurrentPage }))] })) })));
665
937
  }
666
938
 
667
939
  export { TableElement as default };
@@ -1,12 +1,12 @@
1
- import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, o as imgMaxSizeStyles, p as noTextSelectStyles, E as ErrorInput } from './fthry_index.y4j9reIZ.js';
1
+ import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, o as imgMaxSizeStyles, p as noTextSelectStyles, E as ErrorInput } from './fthry_index.uXGVOaal.js';
2
2
  import { useRef, useMemo } from 'react';
3
- import { I as InlineTooltip } from './fthry_InlineTooltip.BpfxcSEn.js';
4
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cae_lMG1.js';
3
+ import { I as InlineTooltip } from './fthry_InlineTooltip.B5HOzwap.js';
4
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.CksS0l4W.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'react-dom/client';
7
7
  import 'jszip';
8
8
  import 'react-dom';
9
- import './fthry_Overlay.CJVfag7c.js';
9
+ import './fthry_Overlay.Bimyn9cP.js';
10
10
 
11
11
  function ButtonGroupField(_a) {
12
12
  var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, inlineError = _a.inlineError, _b = _a.fieldVal, fieldVal = _b === void 0 ? null : _b, _c = _a.repeatIndex, repeatIndex = _c === void 0 ? null : _c, editMode = _a.editMode, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.elementProps, elementProps = _e === void 0 ? {} : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, children = _a.children;
@@ -1,4 +1,4 @@
1
- import { j as jsx, _ as __assign, a as jsxs, b as __read, k as __awaiter, l as __generator, t as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.y4j9reIZ.js';
1
+ import { j as jsx, _ as __assign, a as jsxs, b as __read, k as __awaiter, l as __generator, t as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.uXGVOaal.js';
2
2
  import { useRef, useState, useEffect, memo, useMemo } from 'react';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -1,14 +1,14 @@
1
- import { b as __read, a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.y4j9reIZ.js';
1
+ import { b as __read, a as jsxs, _ as __assign, j as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.uXGVOaal.js';
2
2
  import { useRef, useState, useMemo } from 'react';
3
- import { F as FormControl } from './fthry_FormControl.CikgGb3C.js';
4
- import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.Dy4nSWZa.js';
5
- import { I as InlineTooltip } from './fthry_InlineTooltip.BpfxcSEn.js';
6
- import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cae_lMG1.js';
3
+ import { F as FormControl } from './fthry_FormControl.XVhBC21r.js';
4
+ import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.DucoThu1.js';
5
+ import { I as InlineTooltip } from './fthry_InlineTooltip.B5HOzwap.js';
6
+ import { u as useSalesforceSync } from './fthry_useSalesforceSync.CksS0l4W.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'react-dom/client';
9
9
  import 'jszip';
10
10
  import 'react-dom';
11
- import './fthry_Overlay.CJVfag7c.js';
11
+ import './fthry_Overlay.Bimyn9cP.js';
12
12
 
13
13
  var applyRadioGroupStyles = function (element, responsiveStyles) {
14
14
  responsiveStyles.addTargets('radioGroup');
@@ -1,4 +1,4 @@
1
- import { _ as __assign, h as hoverStylesGuard, a as jsxs, j as jsx, i as iosScrollOnFocus } from './fthry_index.y4j9reIZ.js';
1
+ import { _ as __assign, h as hoverStylesGuard, a as jsxs, j as jsx, i as iosScrollOnFocus } from './fthry_index.uXGVOaal.js';
2
2
  import { useMemo } from 'react';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react-dom/client';
@@ -1,16 +1,16 @@
1
- import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder, as as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, i as iosScrollOnFocus, q as FORM_Z_INDEX, r as resetStyles, at as emailPatternStr } from './fthry_index.y4j9reIZ.js';
1
+ import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder, as as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, i as iosScrollOnFocus, q as FORM_Z_INDEX, r as resetStyles, at as emailPatternStr } from './fthry_index.uXGVOaal.js';
2
2
  import { memo, useRef, useState } from 'react';
3
- import { P as Placeholder } from './fthry_Placeholder.DwCFN6a9.js';
4
- import { I as InlineTooltip } from './fthry_InlineTooltip.BpfxcSEn.js';
5
- import { O as Overlay } from './fthry_Overlay.CJVfag7c.js';
6
- import { u as useElementSize } from './fthry_useElementSize.CBdpS9aW.js';
7
- import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.D6nQhesH.js';
8
- import { a as IMaskInput } from './fthry_input.Cb2u4VEf.js';
3
+ import { P as Placeholder } from './fthry_Placeholder.BSJmJpdc.js';
4
+ import { I as InlineTooltip } from './fthry_InlineTooltip.B5HOzwap.js';
5
+ import { O as Overlay } from './fthry_Overlay.Bimyn9cP.js';
6
+ import { u as useElementSize } from './fthry_useElementSize.rXTn4Y2Q.js';
7
+ import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.B9PAnnc8.js';
8
+ import { a as IMaskInput } from './fthry_input.ByujwKdQ.js';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react-dom/client';
11
11
  import 'jszip';
12
12
  import 'react-dom';
13
- import './fthry_index.OHN-Iv2R.js';
13
+ import './fthry_index.CZMlc0Uq.js';
14
14
 
15
15
  function TextAutocomplete(_a) {
16
16
  var _b = _a.allOptions, allOptions = _b === void 0 ? [] : _b, showOptions = _a.showOptions, _c = _a.onSelect, onSelect = _c === void 0 ? function () { } : _c, _d = _a.onHide, onHide = _d === void 0 ? function () { } : _d, _e = _a.onInputFocus, onInputFocus = _e === void 0 ? function () { } : _e, _f = _a.value, value = _f === void 0 ? '' : _f, containerRef = _a.containerRef, responsiveStyles = _a.responsiveStyles, listItemRef = _a.listItemRef, children = _a.children;
@@ -1,6 +1,6 @@
1
- import { k as __awaiter, l as __generator, e as __spreadArray, b as __read, d as __values, t as featheryWindow, ak as loadQRScanner, al as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, am as qrPromise } from './fthry_index.y4j9reIZ.js';
1
+ import { k as __awaiter, l as __generator, e as __spreadArray, b as __read, d as __values, t as featheryWindow, ak as loadQRScanner, al as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, am as qrPromise } from './fthry_index.uXGVOaal.js';
2
2
  import React__default, { useEffect, useCallback } from 'react';
3
- import { S as SliderStyles, a as Slider } from './fthry_styles.DGB23xLr.js';
3
+ import { S as SliderStyles, a as Slider } from './fthry_styles.ChVA_k1Q.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom/client';
6
6
  import 'jszip';