@feathery/react 2.23.5 → 2.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/elements/basic/ButtonElement.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/useTableData.d.ts +1 -0
- package/cjs/elements/basic/TableElement/useTableData.d.ts.map +1 -1
- package/cjs/{fthry_FormControl.CscXHID3.js → fthry_FormControl.BSFeGfR_.js} +1 -1
- package/cjs/{fthry_InlineTooltip.ZpgEmPO3.js → fthry_InlineTooltip.DdmX24ud.js} +2 -2
- package/cjs/{fthry_Overlay.BTS_EcV3.js → fthry_Overlay.dLOs3POl.js} +1 -1
- package/cjs/{fthry_PaymentMethodField.D902pJlo.js → fthry_PaymentMethodField.B4hPg2W5.js} +4 -4
- package/cjs/{fthry_Placeholder.Ctq06SYu.js → fthry_Placeholder.CGG1eUWI.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.q9BhUK2g.js → fthry_ShowEyeIcon.CqkQEvU3.js} +1 -1
- package/cjs/{fthry_index.B4YVBeqY.js → fthry_index.B-tGwDjz.js} +3 -3
- package/cjs/{fthry_index.DGctX9WE.js → fthry_index.B6OWca6B.js} +5 -5
- package/cjs/{fthry_index.Bh5jAAhx.js → fthry_index.BMCo2zda.js} +6 -6
- package/cjs/{fthry_index.Jp2CJ4is.js → fthry_index.BMhDSvsN.js} +2 -2
- package/cjs/{fthry_index.-Y9ZJS34.js → fthry_index.Ba5C9yId.js} +6 -6
- package/cjs/{fthry_index.BmT77CVY.js → fthry_index.BdTls4Lg.js} +2 -2
- package/cjs/{fthry_index.B_UehadW.js → fthry_index.BlbuXVF3.js} +1 -1
- package/cjs/{fthry_index.C6-dnyHD.js → fthry_index.BqNLbMy7.js} +1 -1
- package/cjs/{fthry_index.BS6b2BTF.js → fthry_index.CAGAOhTh.js} +6 -6
- package/cjs/{fthry_index.CWofoHQs.js → fthry_index.CIAaigRJ.js} +4 -4
- package/cjs/{fthry_index.CSwhuTPY.js → fthry_index.CLUV_Y9k.js} +1 -1
- package/cjs/{fthry_index.jot4NArP.js → fthry_index.COIyjfXF.js} +3 -3
- package/cjs/{fthry_index.9PFsbc4I.js → fthry_index.CWjgaGDT.js} +1 -1
- package/cjs/{fthry_index.D36o5hns.js → fthry_index.CWlKeuqz.js} +5 -5
- package/cjs/{fthry_index.dGUMsRB1.js → fthry_index.CyaIdx9V.js} +4 -4
- package/cjs/{fthry_index.lGGMSnRj.js → fthry_index.Czm7tOJN.js} +1 -1
- package/cjs/{fthry_index.BYTU7WTg.js → fthry_index.D4Iu9UG6.js} +4 -4
- package/cjs/{fthry_index.Bl2kuNOo.js → fthry_index.DC19EIx0.js} +5 -5
- package/cjs/{fthry_index._iQAHcD9.js → fthry_index.DRD0iTwt.js} +39 -29
- package/cjs/{fthry_index.Nrwqiq0j.js → fthry_index.DxydBYq9.js} +5 -5
- package/cjs/{fthry_index.Bsklltx4.js → fthry_index.DzZDhazI.js} +1 -1
- package/cjs/{fthry_index.CbASwLjr.js → fthry_index.FziiiLJL.js} +54 -4
- package/cjs/{fthry_index.CTqVrxjv.js → fthry_index.H0oI-pdw.js} +1 -1
- package/cjs/{fthry_index.mEUshDAA.js → fthry_index.Srl5eYm5.js} +1 -1
- package/cjs/{fthry_index.BuQ1HIIN.js → fthry_index.vuYMQcab.js} +8 -8
- package/cjs/{fthry_input.3JtjJgPY.js → fthry_input.3eZioCQX.js} +1 -1
- package/cjs/{fthry_script.DOCG8gyM.js → fthry_script.B0ZxbIbw.js} +1 -1
- package/cjs/{fthry_styles.CVqE6wer.js → fthry_styles.DDrbD7PV.js} +1 -1
- package/cjs/{fthry_useElementSize.B5-XFuix.js → fthry_useElementSize.DnuxzPqr.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.D9f_IkFv.js → fthry_useSalesforceSync.uOFzu2dA.js} +1 -1
- package/cjs/{fthry_webfontloader.5X-HEWHN.js → fthry_webfontloader.nyXgbNFp.js} +1 -1
- package/cjs/index.js +1 -1
- package/dist/elements/basic/ButtonElement.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/useTableData.d.ts +1 -0
- package/dist/elements/basic/TableElement/useTableData.d.ts.map +1 -1
- package/dist/{fthry_FormControl.Bt83gTi3.js → fthry_FormControl.BWQA5b0y.js} +1 -1
- package/dist/{fthry_InlineTooltip.BADFGh_F.js → fthry_InlineTooltip.BZLGojXl.js} +2 -2
- package/dist/{fthry_Overlay.CsBPXuR_.js → fthry_Overlay.Dtxj6U3L.js} +1 -1
- package/dist/{fthry_PaymentMethodField.CVKE3t_i.js → fthry_PaymentMethodField.C-mD7K2W.js} +4 -4
- package/dist/{fthry_Placeholder.9MqCxqHS.js → fthry_Placeholder.hAt5rBVS.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.CxXoA4_B.js → fthry_ShowEyeIcon.C9RMRr7X.js} +1 -1
- package/dist/{fthry_index.CyjNCuWE.js → fthry_index.B-icxM59.js} +1 -1
- package/dist/{fthry_index.Dte366nP.js → fthry_index.BD_dUvCa.js} +1 -1
- package/dist/{fthry_index.7TulZeVg.js → fthry_index.BESTuSD0.js} +6 -6
- package/dist/{fthry_index.CefyT_Xy.js → fthry_index.BHy82_xs.js} +3 -3
- package/dist/{fthry_index.C4cVkdmR.js → fthry_index.BLC4N3MM.js} +5 -5
- package/dist/{fthry_index.D86GTeP3.js → fthry_index.BLWtc8eL.js} +6 -6
- package/dist/{fthry_index.Beh4LhUb.js → fthry_index.BOupY-M9.js} +4 -4
- package/dist/{fthry_index.CnNPiyfF.js → fthry_index.BRaDez8A.js} +6 -6
- package/dist/{fthry_index.AdQD-dII.js → fthry_index.BXgOTSKx.js} +54 -4
- package/dist/{fthry_index.qQius3J9.js → fthry_index.C0qPFRWZ.js} +1 -1
- package/dist/{fthry_index.BIkyi9OD.js → fthry_index.C0uIFVvg.js} +4 -4
- package/dist/{fthry_index.BbSZxIR5.js → fthry_index.C1M4obTx.js} +2 -2
- package/dist/{fthry_index.FjbxGNs2.js → fthry_index.CDTlE3iz.js} +5 -5
- package/dist/{fthry_index.5oEnjTzQ.js → fthry_index.CZG2sz8l.js} +3 -3
- package/dist/{fthry_index.BQTGcd6O.js → fthry_index.CioL9mXh.js} +8 -8
- package/dist/{fthry_index.B0_n9jqc.js → fthry_index.Cnj3D2sE.js} +4 -4
- package/dist/{fthry_index.CsQzji9M.js → fthry_index.CpjGr8XJ.js} +1 -1
- package/dist/{fthry_index.Cy8OGyJ9.js → fthry_index.D3AC3IRu.js} +5 -5
- package/dist/{fthry_index.EFk2iysz.js → fthry_index.DkySqYis.js} +39 -29
- package/dist/{fthry_index.BPmvHG0R.js → fthry_index.DsD0fPig.js} +1 -1
- package/dist/{fthry_index.Degy27gw.js → fthry_index.DsqQfUyE.js} +1 -1
- package/dist/{fthry_index.C0FNSGu0.js → fthry_index.M__FBiFq.js} +5 -5
- package/dist/{fthry_index.D4ENNIPP.js → fthry_index.UjyJiWL6.js} +1 -1
- package/dist/{fthry_index.DpU0lL2P.js → fthry_index.m_O5twIG.js} +1 -1
- package/dist/{fthry_index.DoxZOyru.js → fthry_index.oi3hyRpZ.js} +2 -2
- package/dist/{fthry_input.BMNwRyD_.js → fthry_input.CabnFCSi.js} +1 -1
- package/dist/{fthry_script.0KhNn8f9.js → fthry_script.DPOcbAqz.js} +1 -1
- package/dist/{fthry_styles.DtCYeZPi.js → fthry_styles.C2mCy0WK.js} +1 -1
- package/dist/{fthry_useElementSize.fW6iiT11.js → fthry_useElementSize.secLYB15.js} +1 -1
- package/dist/{fthry_useSalesforceSync.BIkirclp.js → fthry_useSalesforceSync.Cpjc7KyH.js} +1 -1
- package/dist/{fthry_webfontloader.Dyilj6id.js → fthry_webfontloader.ZS2IvgfF.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/umd/TableElement.8380efafa84627d75ce9.js +1 -0
- package/umd/index.js +1 -1
- package/umd/TableElement.8fe7915eeb32e23ba816.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./fthry_index.
|
|
3
|
+
var index = require('./fthry_index.DRD0iTwt.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ReactDOM = require('react-dom');
|
|
6
6
|
require('react/jsx-runtime');
|
|
@@ -605,6 +605,22 @@ function transposeTableData(columns, activeFieldValues, numRows, rowIndicesToInc
|
|
|
605
605
|
includedRowIndices: includedRowIndices
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
|
+
var TABLE_PAGE_CACHE_KEY_PREFIX = '__feathery_table_page_';
|
|
609
|
+
function getTablePageCacheKey(elementId) {
|
|
610
|
+
return "".concat(TABLE_PAGE_CACHE_KEY_PREFIX).concat(elementId);
|
|
611
|
+
}
|
|
612
|
+
function getCachedPage(elementId) {
|
|
613
|
+
var key = getTablePageCacheKey(elementId);
|
|
614
|
+
var cached = sessionStorage.getItem(key);
|
|
615
|
+
if (!cached)
|
|
616
|
+
return 0;
|
|
617
|
+
var page = parseInt(cached, 10);
|
|
618
|
+
return Number.isInteger(page) && page >= 0 ? page : 0;
|
|
619
|
+
}
|
|
620
|
+
function setCachedPage(elementId, page) {
|
|
621
|
+
var key = getTablePageCacheKey(elementId);
|
|
622
|
+
sessionStorage.setItem(key, page.toString());
|
|
623
|
+
}
|
|
608
624
|
function useTableData(_a) {
|
|
609
625
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
610
626
|
var element = _a.element, _m = _a.editMode, editMode = _m === void 0 ? false : _m;
|
|
@@ -636,7 +652,9 @@ function useTableData(_a) {
|
|
|
636
652
|
var _o = index.__read(React.useState(''), 2), searchQuery = _o[0], setSearchQuery = _o[1];
|
|
637
653
|
var _p = index.__read(React.useState(null), 2), sortColumn = _p[0], setSortColumn = _p[1];
|
|
638
654
|
var _q = index.__read(React.useState('asc'), 2), sortDirection = _q[0], setSortDirection = _q[1];
|
|
639
|
-
var _r = index.__read(React.useState(
|
|
655
|
+
var _r = index.__read(React.useState(function () {
|
|
656
|
+
return getCachedPage(element.id);
|
|
657
|
+
}), 2), currentPage = _r[0], setCurrentPage = _r[1];
|
|
640
658
|
var baseNumRows = React.useMemo(function () {
|
|
641
659
|
return baseColumns.reduce(function (maxRows, column) {
|
|
642
660
|
var fieldValue = baseFieldValues[column.field_key];
|
|
@@ -811,15 +829,47 @@ function useTableData(_a) {
|
|
|
811
829
|
rowsPerPage,
|
|
812
830
|
enablePagination
|
|
813
831
|
]);
|
|
814
|
-
// Reset to first page when search or sort
|
|
832
|
+
// Reset to first page when search or sort *change* (not on initial mount, so cached page is preserved)
|
|
833
|
+
var searchParamRef = React.useRef({
|
|
834
|
+
initialMount: true,
|
|
835
|
+
search: '',
|
|
836
|
+
sortColumn: '',
|
|
837
|
+
sortDirection: ''
|
|
838
|
+
});
|
|
815
839
|
React.useEffect(function () {
|
|
816
|
-
|
|
840
|
+
var cur = searchParamRef.current;
|
|
841
|
+
if (cur.initialMount) {
|
|
842
|
+
cur.initialMount = false;
|
|
843
|
+
cur.search = searchQuery;
|
|
844
|
+
cur.sortColumn = sortColumn;
|
|
845
|
+
cur.sortDirection = sortDirection;
|
|
846
|
+
return;
|
|
847
|
+
}
|
|
848
|
+
if (searchQuery !== cur.search ||
|
|
849
|
+
sortColumn !== cur.sortColumn ||
|
|
850
|
+
sortDirection !== cur.sortDirection) {
|
|
851
|
+
setCurrentPage(0);
|
|
852
|
+
cur.search = searchQuery;
|
|
853
|
+
cur.sortColumn = sortColumn;
|
|
854
|
+
cur.sortDirection = sortDirection;
|
|
855
|
+
}
|
|
817
856
|
}, [searchQuery, sortColumn, sortDirection]);
|
|
818
857
|
// For transposed tables, totalRows and totalPages are based on original rows (now columns)
|
|
819
858
|
var totalRows = enableTranspose
|
|
820
859
|
? sortedBaseRowIndices.length
|
|
821
860
|
: sortedRowIndices.length;
|
|
822
861
|
var totalPages = enablePagination ? Math.ceil(totalRows / rowsPerPage) : 1;
|
|
862
|
+
// Persist page to window cache when user navigates (keyed by element.id)
|
|
863
|
+
React.useEffect(function () {
|
|
864
|
+
if (element.id)
|
|
865
|
+
setCachedPage(element.id, currentPage);
|
|
866
|
+
}, [element.id, currentPage]);
|
|
867
|
+
// Clamp cached page to valid range when totalPages is known
|
|
868
|
+
React.useEffect(function () {
|
|
869
|
+
if (totalPages > 0 && currentPage >= totalPages) {
|
|
870
|
+
setCurrentPage(totalPages - 1);
|
|
871
|
+
}
|
|
872
|
+
}, [totalPages]);
|
|
823
873
|
var handleSort = function (columnName) {
|
|
824
874
|
if (!enableSort)
|
|
825
875
|
return;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./fthry_index.
|
|
3
|
+
var index$1 = require('./fthry_index.DRD0iTwt.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var Placeholder = require('./fthry_Placeholder.
|
|
6
|
-
var InlineTooltip = require('./fthry_InlineTooltip.
|
|
7
|
-
var Overlay = require('./fthry_Overlay.
|
|
8
|
-
var useElementSize = require('./fthry_useElementSize.
|
|
9
|
-
var ShowEyeIcon = require('./fthry_ShowEyeIcon.
|
|
10
|
-
var input = require('./fthry_input.
|
|
5
|
+
var Placeholder = require('./fthry_Placeholder.CGG1eUWI.js');
|
|
6
|
+
var InlineTooltip = require('./fthry_InlineTooltip.DdmX24ud.js');
|
|
7
|
+
var Overlay = require('./fthry_Overlay.dLOs3POl.js');
|
|
8
|
+
var useElementSize = require('./fthry_useElementSize.DnuxzPqr.js');
|
|
9
|
+
var ShowEyeIcon = require('./fthry_ShowEyeIcon.CqkQEvU3.js');
|
|
10
|
+
var input = require('./fthry_input.3eZioCQX.js');
|
|
11
11
|
require('react/jsx-runtime');
|
|
12
12
|
require('react-dom/client');
|
|
13
13
|
require('jszip');
|
|
14
14
|
require('react-dom');
|
|
15
|
-
require('./fthry_index.
|
|
15
|
+
require('./fthry_index.H0oI-pdw.js');
|
|
16
16
|
|
|
17
17
|
function TextAutocomplete$1(_a) {
|
|
18
18
|
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;
|
package/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonElement.d.ts","sourceRoot":"","sources":["../../../src/elements/basic/ButtonElement.tsx"],"names":[],"mappings":"AAwJA,iBAAS,aAAa,CAAC,EACrB,OAAO,EACP,gBAAgB,EAChB,MAAa,EACb,QAAQ,EACR,OAAe,EACf,QAAgB,EAChB,MAAa,EACb,aAAkB,EAClB,OAAkB,EAClB,YAAiB,EACjB,WAAW,EACX,QAAQ,EACR,eAAe,EAChB,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"ButtonElement.d.ts","sourceRoot":"","sources":["../../../src/elements/basic/ButtonElement.tsx"],"names":[],"mappings":"AAwJA,iBAAS,aAAa,CAAC,EACrB,OAAO,EACP,gBAAgB,EAChB,MAAa,EACb,QAAQ,EACR,OAAe,EACf,QAAgB,EAChB,MAAa,EACb,aAAkB,EAClB,OAAkB,EAClB,YAAiB,EACjB,WAAW,EACX,QAAQ,EACR,eAAe,EAChB,EAAE,GAAG,oDA0HL;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../src/elements/basic/TableElement/useTableData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../src/elements/basic/TableElement/useTableData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAqFzC,aAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE;YACV,OAAO,EAAE,MAAM,EAAE,CAAC;YAClB,OAAO,EAAE,MAAM,EAAE,CAAC;YAClB,MAAM,EAAE,OAAO,CAAC;YAChB,IAAI,EAAE,OAAO,CAAC;YACd,UAAU,EAAE,MAAM,CAAC;YACnB,SAAS,CAAC,EAAE,OAAO,CAAC;SACrB,CAAC;KACH,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,aAAK,kBAAkB,GAAG;IAExB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAGvC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IAGtB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGrC,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,oBAAoB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,QAAgB,EACjB,EAAE,iBAAiB,GAAG,kBAAkB,CAmXxC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsx, _ as __assign, b as __read, ax as replaceTextVariables, y as isMobile, a as jsxs, F as Fragment, t as FORM_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { j as jsx, _ as __assign, b as __read, ax as replaceTextVariables, y as isMobile, a as jsxs, F as Fragment, t as FORM_Z_INDEX } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useState, useRef } from 'react';
|
|
3
|
-
import { O as Overlay, T as Tooltip } from './fthry_Overlay.
|
|
3
|
+
import { O as Overlay, T as Tooltip } from './fthry_Overlay.Dtxj6U3L.js';
|
|
4
4
|
|
|
5
5
|
function HelpIcon(_a) {
|
|
6
6
|
var _b = _a.cssStyles, cssStyles = _b === void 0 ? {} : _b, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as __rest, j as jsx, _ as __assign, t as FORM_Z_INDEX, b as __read, f as featheryDoc, v as featheryWindow, F as Fragment } from './fthry_index.
|
|
1
|
+
import { z as __rest, j as jsx, _ as __assign, t as FORM_Z_INDEX, b as __read, f as featheryDoc, v as featheryWindow, F as Fragment } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useState, useCallback, useLayoutEffect, useEffect } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { z as __rest, f as featheryDoc, a as jsxs, _ as __assign, af as getStripe, j as jsx, b as __read, u as useBorder, ag as filterKeys, ah as ERROR_COLOR } from './fthry_index.
|
|
1
|
+
import { z as __rest, f as featheryDoc, a as jsxs, _ as __assign, af as getStripe, j as jsx, b as __read, u as useBorder, ag as filterKeys, ah as ERROR_COLOR } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import React__default, { memo, useEffect, useState, useRef } from 'react';
|
|
3
|
-
import { P as PropTypes } from './fthry_index.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
3
|
+
import { P as PropTypes } from './fthry_index.m_O5twIG.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.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.
|
|
9
|
+
import './fthry_Overlay.Dtxj6U3L.js';
|
|
10
10
|
|
|
11
11
|
function ownKeys(object, enumerableOnly) {
|
|
12
12
|
var keys = Object.keys(object);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as __rest, j as jsx, _ as __assign } from './fthry_index.
|
|
1
|
+
import { z as __rest, j as jsx, _ as __assign } from './fthry_index.DkySqYis.js';
|
|
2
2
|
|
|
3
3
|
function ShowEyeIcon$1(_a) {
|
|
4
4
|
var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, props = __rest(_a, ["width", "height"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign, h as hoverStylesGuard, a as jsxs, j as jsx, k as iosScrollOnFocus } from './fthry_index.
|
|
1
|
+
import { _ as __assign, h as hoverStylesGuard, a as jsxs, j as jsx, k as iosScrollOnFocus } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, j as jsx, _ as __assign, a as jsxs, b as __read, e as __spreadArray, i as initInfo, A as API_URL } from './fthry_index.
|
|
1
|
+
import { g as getDefaultExportFromCjs, j as jsx, _ as __assign, a as jsxs, b as __read, e as __spreadArray, i as initInfo, A as API_URL } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useCallback, useSyncExternalStore, useEffect, useState, memo, useMemo, Fragment } 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, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { b as __read, a as jsxs, _ as __assign, j as jsx, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useState, useMemo } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.BWQA5b0y.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.B-icxM59.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cpjc7KyH.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.
|
|
11
|
+
import './fthry_Overlay.Dtxj6U3L.js';
|
|
12
12
|
|
|
13
13
|
var applyRadioGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('radioGroup');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as __read, j as jsx, F as Fragment, y as isMobile, a as jsxs, _ as __assign, t as FORM_Z_INDEX, k as iosScrollOnFocus } from './fthry_index.
|
|
1
|
+
import { b as __read, j as jsx, F as Fragment, y as isMobile, a as jsxs, _ as __assign, t as FORM_Z_INDEX, k as iosScrollOnFocus } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useState, useRef, useMemo } from 'react';
|
|
3
|
-
import { O as Overlay, T as Tooltip } from './fthry_Overlay.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.
|
|
3
|
+
import { O as Overlay, T as Tooltip } from './fthry_Overlay.Dtxj6U3L.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.B-icxM59.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, k as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, l as __awaiter, m as __generator, n as FeatheryClient, o as debounce } from './fthry_index.
|
|
1
|
+
import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, k as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, l as __awaiter, m as __generator, n as FeatheryClient, o as debounce } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useEffect, memo, useState, useCallback } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.Dtxj6U3L.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.secLYB15.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { j as jsx, G as Global, w as css, x as __makeTemplateObject, _ as __assign, b as __read, y as isMobile, v as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, z as __rest, B as formatDateString } from './fthry_index.
|
|
1
|
+
import { j as jsx, G as Global, w as css, x as __makeTemplateObject, _ as __assign, b as __read, y as isMobile, v as featheryWindow, f as featheryDoc, u as useBorder, a as jsxs$1, h as hoverStylesGuard, r as resetStyles, z as __rest, B as formatDateString } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useMemo, useLayoutEffect, cloneElement, createRef, Component, useRef, useCallback, useEffect, createElement, memo, useState } from 'react';
|
|
4
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
+
import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
6
6
|
import { jsxs, jsx as jsx$1 } from 'react/jsx-runtime';
|
|
7
7
|
import * as ReactDOM from 'react-dom';
|
|
8
8
|
import ReactDOM__default from 'react-dom';
|
|
9
|
-
import { I as IMask, a as IMaskInput } from './fthry_input.
|
|
9
|
+
import { I as IMask, a as IMaskInput } from './fthry_input.CabnFCSi.js';
|
|
10
10
|
import 'react-dom/client';
|
|
11
11
|
import 'jszip';
|
|
12
|
-
import './fthry_Overlay.
|
|
13
|
-
import './fthry_index.
|
|
12
|
+
import './fthry_Overlay.Dtxj6U3L.js';
|
|
13
|
+
import './fthry_index.m_O5twIG.js';
|
|
14
14
|
|
|
15
15
|
var PORTAL_CONTAINER_CLASS = '.react-datepicker__portal';
|
|
16
16
|
var DATEPICKER_PADDING_TOP_VALUE = '--datepicker-pad-top';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { b as __read, u as useBorder, a as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, r as resetStyles } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { memo, useState, useRef } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.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.
|
|
9
|
+
import './fthry_Overlay.Dtxj6U3L.js';
|
|
10
10
|
|
|
11
11
|
function TextArea(_a) {
|
|
12
12
|
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, _b = _a.elementProps, elementProps = _b === void 0 ? {} : _b, _c = _a.required, required = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, editMode = _a.editMode, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, _f = _a.setRef, setRef = _f === void 0 ? function () { } : _f, _g = _a.rawValue, rawValue = _g === void 0 ? '' : _g, inlineError = _a.inlineError, _h = _a.repeatIndex, repeatIndex = _h === void 0 ? null : _h, children = _a.children;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as jsxs, _ as __assign, j as jsx, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { a as jsxs, _ as __assign, j as jsx, k as iosScrollOnFocus, r as resetStyles } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.BWQA5b0y.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.B-icxM59.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cpjc7KyH.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.
|
|
11
|
+
import './fthry_Overlay.Dtxj6U3L.js';
|
|
12
12
|
|
|
13
13
|
var applyCheckboxGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('checkboxGroup');
|
|
@@ -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.
|
|
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.DkySqYis.js';
|
|
2
2
|
import { useState, useRef, useEffect, useMemo } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
@@ -603,6 +603,22 @@ function transposeTableData(columns, activeFieldValues, numRows, rowIndicesToInc
|
|
|
603
603
|
includedRowIndices: includedRowIndices
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
+
var TABLE_PAGE_CACHE_KEY_PREFIX = '__feathery_table_page_';
|
|
607
|
+
function getTablePageCacheKey(elementId) {
|
|
608
|
+
return "".concat(TABLE_PAGE_CACHE_KEY_PREFIX).concat(elementId);
|
|
609
|
+
}
|
|
610
|
+
function getCachedPage(elementId) {
|
|
611
|
+
var key = getTablePageCacheKey(elementId);
|
|
612
|
+
var cached = sessionStorage.getItem(key);
|
|
613
|
+
if (!cached)
|
|
614
|
+
return 0;
|
|
615
|
+
var page = parseInt(cached, 10);
|
|
616
|
+
return Number.isInteger(page) && page >= 0 ? page : 0;
|
|
617
|
+
}
|
|
618
|
+
function setCachedPage(elementId, page) {
|
|
619
|
+
var key = getTablePageCacheKey(elementId);
|
|
620
|
+
sessionStorage.setItem(key, page.toString());
|
|
621
|
+
}
|
|
606
622
|
function useTableData(_a) {
|
|
607
623
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
608
624
|
var element = _a.element, _m = _a.editMode, editMode = _m === void 0 ? false : _m;
|
|
@@ -634,7 +650,9 @@ function useTableData(_a) {
|
|
|
634
650
|
var _o = __read(useState(''), 2), searchQuery = _o[0], setSearchQuery = _o[1];
|
|
635
651
|
var _p = __read(useState(null), 2), sortColumn = _p[0], setSortColumn = _p[1];
|
|
636
652
|
var _q = __read(useState('asc'), 2), sortDirection = _q[0], setSortDirection = _q[1];
|
|
637
|
-
var _r = __read(useState(
|
|
653
|
+
var _r = __read(useState(function () {
|
|
654
|
+
return getCachedPage(element.id);
|
|
655
|
+
}), 2), currentPage = _r[0], setCurrentPage = _r[1];
|
|
638
656
|
var baseNumRows = useMemo(function () {
|
|
639
657
|
return baseColumns.reduce(function (maxRows, column) {
|
|
640
658
|
var fieldValue = baseFieldValues[column.field_key];
|
|
@@ -809,15 +827,47 @@ function useTableData(_a) {
|
|
|
809
827
|
rowsPerPage,
|
|
810
828
|
enablePagination
|
|
811
829
|
]);
|
|
812
|
-
// Reset to first page when search or sort
|
|
830
|
+
// Reset to first page when search or sort *change* (not on initial mount, so cached page is preserved)
|
|
831
|
+
var searchParamRef = useRef({
|
|
832
|
+
initialMount: true,
|
|
833
|
+
search: '',
|
|
834
|
+
sortColumn: '',
|
|
835
|
+
sortDirection: ''
|
|
836
|
+
});
|
|
813
837
|
useEffect(function () {
|
|
814
|
-
|
|
838
|
+
var cur = searchParamRef.current;
|
|
839
|
+
if (cur.initialMount) {
|
|
840
|
+
cur.initialMount = false;
|
|
841
|
+
cur.search = searchQuery;
|
|
842
|
+
cur.sortColumn = sortColumn;
|
|
843
|
+
cur.sortDirection = sortDirection;
|
|
844
|
+
return;
|
|
845
|
+
}
|
|
846
|
+
if (searchQuery !== cur.search ||
|
|
847
|
+
sortColumn !== cur.sortColumn ||
|
|
848
|
+
sortDirection !== cur.sortDirection) {
|
|
849
|
+
setCurrentPage(0);
|
|
850
|
+
cur.search = searchQuery;
|
|
851
|
+
cur.sortColumn = sortColumn;
|
|
852
|
+
cur.sortDirection = sortDirection;
|
|
853
|
+
}
|
|
815
854
|
}, [searchQuery, sortColumn, sortDirection]);
|
|
816
855
|
// For transposed tables, totalRows and totalPages are based on original rows (now columns)
|
|
817
856
|
var totalRows = enableTranspose
|
|
818
857
|
? sortedBaseRowIndices.length
|
|
819
858
|
: sortedRowIndices.length;
|
|
820
859
|
var totalPages = enablePagination ? Math.ceil(totalRows / rowsPerPage) : 1;
|
|
860
|
+
// Persist page to window cache when user navigates (keyed by element.id)
|
|
861
|
+
useEffect(function () {
|
|
862
|
+
if (element.id)
|
|
863
|
+
setCachedPage(element.id, currentPage);
|
|
864
|
+
}, [element.id, currentPage]);
|
|
865
|
+
// Clamp cached page to valid range when totalPages is known
|
|
866
|
+
useEffect(function () {
|
|
867
|
+
if (totalPages > 0 && currentPage >= totalPages) {
|
|
868
|
+
setCurrentPage(totalPages - 1);
|
|
869
|
+
}
|
|
870
|
+
}, [totalPages]);
|
|
821
871
|
var handleSort = function (columnName) {
|
|
822
872
|
if (!enableSort)
|
|
823
873
|
return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, _ as __assign, a as jsxs, b as __read, l as __awaiter, m as __generator, v as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { j as jsx, _ as __assign, a as jsxs, b as __read, l as __awaiter, m as __generator, v as featheryWindow, F as Fragment, E as ErrorInput } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useState, useEffect, memo, useMemo } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, p as imgMaxSizeStyles, q as noTextSelectStyles, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { u as useBorder, a as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, p as imgMaxSizeStyles, q as noTextSelectStyles, E as ErrorInput } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cpjc7KyH.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.
|
|
9
|
+
import './fthry_Overlay.Dtxj6U3L.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,6 +1,6 @@
|
|
|
1
|
-
import { l as __awaiter, m as __generator, e as __spreadArray, b as __read, d as __values, v as featheryWindow, an as loadQRScanner, ao as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, ap as qrPromise } from './fthry_index.
|
|
1
|
+
import { l as __awaiter, m as __generator, e as __spreadArray, b as __read, d as __values, v as featheryWindow, an as loadQRScanner, ao as throttle, j as jsx, a as jsxs, _ as __assign, F as Fragment, E as ErrorInput, ap as qrPromise } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import React__default, { useEffect, useCallback } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.C2mCy0WK.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as stringify, I as rulesheet, J as COMMENT, K as middleware, R as RULESET, L as combine, M as match, N as serialize, O as copy, P as replace, W as WEBKIT, Q as MOZ, S as MS, T as KEYFRAMES, U as DECLARATION, V as dealloc, X as alloc, Y as hash, Z as charat, $ as strlen, a0 as indexof, a1 as next, a2 as token, a3 as from, a4 as peek, a5 as delimit, a6 as slice, a7 as position, a8 as compile, j as jsx$1, _ as __assign, a as jsxs, F as Fragment$1, z as __rest, b as __read, t as FORM_Z_INDEX, v as featheryWindow, f as featheryDoc, e as __spreadArray, d as __values, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { H as stringify, I as rulesheet, J as COMMENT, K as middleware, R as RULESET, L as combine, M as match, N as serialize, O as copy, P as replace, W as WEBKIT, Q as MOZ, S as MS, T as KEYFRAMES, U as DECLARATION, V as dealloc, X as alloc, Y as hash, Z as charat, $ as strlen, a0 as indexof, a1 as next, a2 as token, a3 as from, a4 as peek, a5 as delimit, a6 as slice, a7 as position, a8 as compile, j as jsx$1, _ as __assign, a as jsxs, F as Fragment$1, z as __rest, b as __read, t as FORM_Z_INDEX, v as featheryWindow, f as featheryDoc, e as __spreadArray, d as __values, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState, useCallback, forwardRef, useContext, useLayoutEffect, useEffect, createContext, useRef, useMemo, Component, Fragment } from 'react';
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { P as Placeholder$2 } from './fthry_Placeholder.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
7
|
-
import { T as Tooltip, O as Overlay } from './fthry_Overlay.
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
5
|
+
import { P as Placeholder$2 } from './fthry_Placeholder.hAt5rBVS.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.Cpjc7KyH.js';
|
|
7
|
+
import { T as Tooltip, O as Overlay } from './fthry_Overlay.Dtxj6U3L.js';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react-dom/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as featheryDoc, aq as devicePixelRatio, g as getDefaultExportFromCjs, b as __read, a as jsxs, j as jsx, _ as __assign, F as Fragment, l as __awaiter, m as __generator, ar as toBase64, o as debounce, as as MODAL_Z_INDEX, ad as CloseIcon, at as dataURLToFile, t as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { f as featheryDoc, aq as devicePixelRatio, g as getDefaultExportFromCjs, b as __read, a as jsxs, j as jsx, _ as __assign, F as Fragment, l as __awaiter, m as __generator, ar as toBase64, o as debounce, as as MODAL_Z_INDEX, ad as CloseIcon, at as dataURLToFile, t as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import React__default, { Component, forwardRef, useState, useRef, useImperativeHandle, useEffect, useCallback, Suspense } from 'react';
|
|
3
|
-
import { P as PropTypes } from './fthry_index.
|
|
3
|
+
import { P as PropTypes } from './fthry_index.m_O5twIG.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1433,7 +1433,7 @@ function SignatureField(_a) {
|
|
|
1433
1433
|
useEffect(function () {
|
|
1434
1434
|
if (!global.webfontloaderPromise)
|
|
1435
1435
|
global.webfontloaderPromise = import(
|
|
1436
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
1436
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.ZS2IvgfF.js').then(function (n) { return n.w; });
|
|
1437
1437
|
global.webfontloaderPromise.then(function (WebFont) {
|
|
1438
1438
|
WebFont.load({ google: { families: ['La Belle Aurore'] } });
|
|
1439
1439
|
});
|
|
@@ -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, av as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles, aw as emailPatternStr } from './fthry_index.
|
|
1
|
+
import { a as jsxs, _ as __assign, j as jsx, D as DROPDOWN_Z_INDEX, b as __read, u as useBorder, av as getFieldValue, s as stringifyWithNull, h as hoverStylesGuard, k as iosScrollOnFocus, t as FORM_Z_INDEX, r as resetStyles, aw as emailPatternStr } from './fthry_index.DkySqYis.js';
|
|
2
2
|
import { memo, useRef, useState } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
7
|
-
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.
|
|
8
|
-
import { a as IMaskInput } from './fthry_input.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.hAt5rBVS.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.BZLGojXl.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.Dtxj6U3L.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.secLYB15.js';
|
|
7
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.C9RMRr7X.js';
|
|
8
|
+
import { a as IMaskInput } from './fthry_input.CabnFCSi.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.
|
|
13
|
+
import './fthry_index.m_O5twIG.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;
|