@feathery/react 2.48.1 → 2.50.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.
- package/cjs/Form/grid/Container/index.d.ts.map +1 -1
- package/cjs/Form/grid/StyledContainer/utils.d.ts.map +1 -1
- package/cjs/elements/basic/ButtonElement.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/EditableCell.d.ts +5 -2
- package/cjs/elements/basic/TableElement/EditableCell.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/index.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/styles.d.ts +0 -23
- package/cjs/elements/basic/TableElement/styles.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/types.d.ts +4 -0
- package/cjs/elements/basic/TableElement/types.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/useTableMutations.d.ts +0 -1
- package/cjs/elements/basic/TableElement/useTableMutations.d.ts.map +1 -1
- package/cjs/elements/basic/TableElement/utils.d.ts +14 -0
- package/cjs/elements/basic/TableElement/utils.d.ts.map +1 -1
- package/cjs/elements/components/HoverTooltip.d.ts +24 -0
- package/cjs/elements/components/HoverTooltip.d.ts.map +1 -0
- package/cjs/elements/components/InlineTooltip.d.ts.map +1 -1
- package/cjs/elements/components/Overlay.d.ts +1 -1
- package/cjs/elements/components/Overlay.d.ts.map +1 -1
- package/cjs/elements/components/QuikFormViewer.d.ts.map +1 -1
- package/cjs/elements/components/TextHoverTooltip.d.ts.map +1 -1
- package/cjs/elements/components/Tooltip.d.ts +2 -1
- package/cjs/elements/components/Tooltip.d.ts.map +1 -1
- package/cjs/{fthry_AssistantChat.BjyKdtNo.js → fthry_AssistantChat.BT32wDG3.js} +4 -4
- package/cjs/{fthry_FormControl.Bjj4gcfs.js → fthry_FormControl.D4ekieUI.js} +1 -1
- package/cjs/{fthry_InlineTooltip.D5tgdB4g.js → fthry_InlineTooltip.D5NfxKVo.js} +2 -16
- package/cjs/{fthry_PaymentMethodField.Cx5IV_Aw.js → fthry_PaymentMethodField.vpxb_M9_.js} +3 -4
- package/cjs/{fthry_Placeholder.BeZ9F1hP.js → fthry_Placeholder.hq6Cgqjd.js} +1 -1
- package/cjs/{fthry_ShowEyeIcon.DO1SzK0H.js → fthry_ShowEyeIcon.C-wsnI6q.js} +1 -1
- package/cjs/{fthry_TabsElement.C1KUbyBb.js → fthry_TabsElement.BHVCgyd9.js} +1 -1
- package/cjs/{fthry_auto-track.CJBR_dw-.js → fthry_auto-track.g9k-T7sJ.js} +2 -2
- package/cjs/{fthry_highlighted-body-TPN3WLV5.BdAGVyam.js → fthry_highlighted-body-TPN3WLV5.CaePR3vZ.js} +3 -3
- package/cjs/{fthry_index.C0KW8hya.js → fthry_index.B5pgafIl.js} +2 -2
- package/cjs/{fthry_index.BpZi8dM4.js → fthry_index.BDV7qf2C.js} +5 -6
- package/cjs/{fthry_index.BhoKqCQO.js → fthry_index.BLKRQSHw.js} +2 -2
- package/cjs/{fthry_index.BWAq_scB.js → fthry_index.BcQE05aQ.js} +2 -2
- package/cjs/{fthry_index.C78x3b5O.js → fthry_index.BdAvU9aA.js} +5 -6
- package/cjs/{fthry_index.6SblfScs.js → fthry_index.BdOfkVzz.js} +2 -2
- package/cjs/{fthry_index.CjM_QMbB.js → fthry_index.BfD3esIa.js} +2 -2
- package/cjs/{fthry_index.BvriCG1q.js → fthry_index.BiCUy3Q2.js} +1 -1
- package/cjs/{fthry_index.CwpWkape.js → fthry_index.BldM4IKR.js} +343 -52
- package/cjs/{fthry_index.DRA1vbTd.js → fthry_index.ByQJ8Db5.js} +10 -10
- package/cjs/{fthry_index.97eysi95.js → fthry_index.C6YeHjI_.js} +5 -6
- package/cjs/{fthry_index.CqC7Lj7F.js → fthry_index.CNXv_44w.js} +5 -6
- package/cjs/{fthry_index.BOexWQ2G.js → fthry_index.COg3w9c8.js} +1 -1
- package/cjs/{fthry_index.CU2qYyyW.js → fthry_index.CSq9ML1V.js} +2 -2
- package/cjs/{fthry_index.B1e00tAu.js → fthry_index.CW8fXwgP.js} +6 -7
- package/cjs/{fthry_index.CeWHxiu2.js → fthry_index.CX5Tx1di.js} +3 -4
- package/cjs/{fthry_index.CGzU2RS3.js → fthry_index.Cb-o7T3I.js} +1 -1
- package/cjs/{fthry_index.DghgxDID.js → fthry_index.ClbpUjqu.js} +8 -9
- package/cjs/{fthry_index.DyPl9RTy.js → fthry_index.Cn-052XC.js} +1 -1
- package/cjs/{fthry_index.Bkg_JW4Z.js → fthry_index.D3svtoqj.js} +4 -5
- package/cjs/{fthry_index.BbZu0dS9.js → fthry_index.D42pyZzz.js} +3 -4
- package/cjs/{fthry_index.WdgJ-r5S.js → fthry_index.DAY5VW01.js} +5 -6
- package/cjs/{fthry_index.SMUP75Ic.js → fthry_index.DgVU5DPg.js} +3 -3
- package/cjs/{fthry_index.O5z58cdJ.js → fthry_index.DjKuHZML.js} +4 -5
- package/cjs/{fthry_index.duLdHjUv.js → fthry_index.DpQfBE8n.js} +151 -141
- package/cjs/{fthry_index.B3VA122M.js → fthry_index.DqCigvUs.js} +1 -1
- package/cjs/{fthry_index.foJzYyYX.js → fthry_index.QAttsABq.js} +1 -1
- package/cjs/{fthry_index.CeKZIDEV.js → fthry_index.QRzfI0b4.js} +3 -18
- package/cjs/{fthry_index.ycfNh9WZ.js → fthry_index.m_XKSVM8.js} +1 -1
- package/cjs/{fthry_index.Dhp1zjHK.js → fthry_index.s2Ah9v4O.js} +1 -1
- package/cjs/{fthry_index.CRXRQpkJ.js → fthry_index.u0sKUa7-.js} +1 -1
- package/cjs/{fthry_index.umd.B7oz9tEv.js → fthry_index.umd.Cl6yVNEY.js} +1 -1
- package/cjs/{fthry_input.BFEJqFg2.js → fthry_input.CzTMRvUa.js} +1 -1
- package/cjs/{fthry_mermaid-O7DHMXV3.-sm2XLZv.js → fthry_mermaid-O7DHMXV3.1Tp00mbG.js} +3 -3
- package/cjs/{fthry_script.CrJCYCaD.js → fthry_script.B2r1qN9_.js} +1 -1
- package/cjs/{fthry_styles.CBI9OfcR.js → fthry_styles.BcMEcBUF.js} +1 -1
- package/cjs/{fthry_useElementSize.Dq3fkD_k.js → fthry_useElementSize.91AcUxkY.js} +1 -1
- package/cjs/{fthry_useSalesforceSync.DkO47B4_.js → fthry_useSalesforceSync.BQORLqHu.js} +1 -1
- package/cjs/{fthry_webfontloader.BbP2ET0j.js → fthry_webfontloader.DbJc3-T2.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/thumbnail-renderer.js +1 -1
- package/cjs/types/Form.d.ts +3 -0
- package/cjs/types/Form.d.ts.map +1 -1
- package/cjs/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/Form/grid/Container/index.d.ts.map +1 -1
- package/dist/Form/grid/StyledContainer/utils.d.ts.map +1 -1
- package/dist/elements/basic/ButtonElement.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/EditableCell.d.ts +5 -2
- package/dist/elements/basic/TableElement/EditableCell.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/index.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/styles.d.ts +0 -23
- package/dist/elements/basic/TableElement/styles.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/tests/EditableCell.spec.d.ts +2 -0
- package/dist/elements/basic/TableElement/tests/EditableCell.spec.d.ts.map +1 -0
- package/dist/elements/basic/TableElement/tests/TableElement.spec.d.ts +2 -0
- package/dist/elements/basic/TableElement/tests/TableElement.spec.d.ts.map +1 -0
- package/dist/elements/basic/TableElement/tests/tabNavigation.spec.d.ts +2 -0
- package/dist/elements/basic/TableElement/tests/tabNavigation.spec.d.ts.map +1 -0
- package/dist/elements/basic/TableElement/types.d.ts +4 -0
- package/dist/elements/basic/TableElement/types.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/useTableMutations.d.ts +0 -1
- package/dist/elements/basic/TableElement/useTableMutations.d.ts.map +1 -1
- package/dist/elements/basic/TableElement/utils.d.ts +14 -0
- package/dist/elements/basic/TableElement/utils.d.ts.map +1 -1
- package/dist/elements/components/HoverTooltip.d.ts +24 -0
- package/dist/elements/components/HoverTooltip.d.ts.map +1 -0
- package/dist/elements/components/InlineTooltip.d.ts.map +1 -1
- package/dist/elements/components/Overlay.d.ts +1 -1
- package/dist/elements/components/Overlay.d.ts.map +1 -1
- package/dist/elements/components/QuikFormViewer.d.ts.map +1 -1
- package/dist/elements/components/TextHoverTooltip.d.ts.map +1 -1
- package/dist/elements/components/Tooltip.d.ts +2 -1
- package/dist/elements/components/Tooltip.d.ts.map +1 -1
- package/dist/{fthry_AssistantChat.h6NTcnjr.js → fthry_AssistantChat.BxCe9PjE.js} +4 -4
- package/dist/{fthry_FormControl.DQP6LlCL.js → fthry_FormControl.BpMXWUv6.js} +1 -1
- package/dist/{fthry_InlineTooltip.DUtqoLti.js → fthry_InlineTooltip.Brp4oi0p.js} +2 -16
- package/dist/{fthry_PaymentMethodField.DoX9prJ2.js → fthry_PaymentMethodField.0oIU1B6N.js} +3 -4
- package/dist/{fthry_Placeholder.DIKXUrCe.js → fthry_Placeholder.CEPxPTLL.js} +1 -1
- package/dist/{fthry_ShowEyeIcon.BsDiRWJb.js → fthry_ShowEyeIcon.BWU3OOxh.js} +1 -1
- package/dist/{fthry_TabsElement.JCYNaBSd.js → fthry_TabsElement.DFuHUYUv.js} +1 -1
- package/dist/{fthry_auto-track.CZcLqilZ.js → fthry_auto-track.CizHo0k5.js} +2 -2
- package/dist/{fthry_highlighted-body-TPN3WLV5.DwNcoR0j.js → fthry_highlighted-body-TPN3WLV5.DDCKzqBt.js} +3 -3
- package/dist/{fthry_index.BD5OtLZc.js → fthry_index.-GpsDCwK.js} +3 -4
- package/dist/{fthry_index.mEvi-eyb.js → fthry_index.6wMTFMTj.js} +152 -142
- package/dist/{fthry_index.BKjEGHR_.js → fthry_index.BDSy9TBV.js} +4 -5
- package/dist/{fthry_index.BXqHrLYx.js → fthry_index.BeEYTrUw.js} +2 -2
- package/dist/{fthry_index.D48zqV-m.js → fthry_index.Bmr2qAQ9.js} +1 -1
- package/dist/{fthry_index.INdwJAsd.js → fthry_index.Bn_DZ8s-.js} +2 -2
- package/dist/{fthry_index.k3Hq7wKG.js → fthry_index.Bs0b7fF8.js} +1 -1
- package/dist/{fthry_index.C9bj3Amt.js → fthry_index.ByfmNWHm.js} +2 -2
- package/dist/{fthry_index.BFPFVaWv.js → fthry_index.C-3BwV3D.js} +1 -1
- package/dist/{fthry_index.dmme1I7g.js → fthry_index.CEFYX7Cb.js} +1 -1
- package/dist/{fthry_index.D9kooW59.js → fthry_index.CKyEKNhB.js} +3 -4
- package/dist/{fthry_index.BkzGvVg2.js → fthry_index.CV6KaQP2.js} +3 -18
- package/dist/{fthry_index.KFRNwcZ_.js → fthry_index.CXvBwACd.js} +1 -1
- package/dist/{fthry_index.CHb07pX6.js → fthry_index.CgeOgf6v.js} +7 -8
- package/dist/{fthry_index.C2QdbMzv.js → fthry_index.Cl0vinm2.js} +2 -2
- package/dist/{fthry_index.BgCJlRTN.js → fthry_index.DD4JAsd0.js} +3 -3
- package/dist/{fthry_index.DHIhJeBb.js → fthry_index.DF33pFg0.js} +2 -2
- package/dist/{fthry_index.CPrLJ4J-.js → fthry_index.DZYRCGrF.js} +5 -6
- package/dist/{fthry_index.CuFf_oA3.js → fthry_index.DjeCrTPA.js} +1 -1
- package/dist/{fthry_index.Bl_YFFMi.js → fthry_index.DkB3n_gE.js} +4 -5
- package/dist/{fthry_index.Bfo0vjcQ.js → fthry_index.DtEJ8UnC.js} +4 -5
- package/dist/{fthry_index.DW4ZEycb.js → fthry_index.DuFXqlIh.js} +4 -5
- package/dist/{fthry_index.CCyrVDsN.js → fthry_index.Gk4XHc2v.js} +4 -5
- package/dist/{fthry_index.DNmwwxoZ.js → fthry_index.HfY_xMXi.js} +10 -10
- package/dist/{fthry_index.DZPtLmTA.js → fthry_index.Tz4wWr5G.js} +5 -6
- package/dist/{fthry_index.B21PnTei.js → fthry_index.UaQC1EFo.js} +341 -53
- package/dist/{fthry_index.B4uTV15J.js → fthry_index.UqBNOqYF.js} +1 -1
- package/dist/{fthry_index.C75qxU8Z.js → fthry_index.X-5RnKbv.js} +1 -1
- package/dist/{fthry_index.By9XI2Se.js → fthry_index.caHStIvy.js} +1 -1
- package/dist/{fthry_index.Br_wsbaD.js → fthry_index.l3GNavsZ.js} +5 -6
- package/dist/{fthry_index.umd.CNiEdJLO.js → fthry_index.umd.zD2ytPrK.js} +1 -1
- package/dist/{fthry_index.B03qg4WP.js → fthry_index.wOe1Wv1J.js} +2 -2
- package/dist/{fthry_input.C13Hy41e.js → fthry_input.vNAUHsdE.js} +1 -1
- package/dist/fthry_mermaid-O7DHMXV3.C6znNgyC.js +8 -0
- package/dist/{fthry_script.DG-h2qqu.js → fthry_script.ClnRFan9.js} +1 -1
- package/dist/{fthry_styles.BbfFntw_.js → fthry_styles.NzBPYPQ9.js} +1 -1
- package/dist/{fthry_useElementSize.Bvu4QN6c.js → fthry_useElementSize.CGVQMCbV.js} +1 -1
- package/dist/{fthry_useSalesforceSync.DxPyrYOH.js → fthry_useSalesforceSync.DDPGKOl4.js} +1 -1
- package/dist/{fthry_webfontloader.BZH4UrSE.js → fthry_webfontloader.BY0qufCl.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/thumbnail-renderer.js +1 -1
- package/dist/types/Form.d.ts +3 -0
- package/dist/types/Form.d.ts.map +1 -1
- package/dist/utils/featheryClient/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/AddressField.4a4788a40afba5fc22d2.js +1 -0
- package/umd/ButtonGroupField.fcf087a9664e14da7fc5.js +1 -0
- package/umd/CheckboxGroupField.7b055043cbd1ef8b3787.js +1 -0
- package/umd/DateSelectorField.b87988253da02a40c6f7.js +1 -0
- package/umd/DropdownField.459ba798e2ff6a8518c2.js +1 -0
- package/umd/DropdownMultiField.ad59b04c5e3c1ad1a6e8.js +1 -0
- package/umd/MatrixField.6541a0f9570b2c56e336.js +1 -0
- package/umd/PasswordField.fb8f587107389274112e.js +1 -0
- package/umd/PaymentMethodField.f6820da8252bb2eed6b1.js +1 -0
- package/umd/PhoneField.a161db93d8f815ced395.js +1 -0
- package/umd/RadioButtonGroupField.9a43334b87129e33afd2.js +1 -0
- package/umd/TableElement.f51ba6d3b0a6c7835187.js +1 -0
- package/umd/TextArea.8341b3d302383a53175d.js +1 -0
- package/umd/TextField.fa9f11c4b1fab1747ae1.js +1 -0
- package/umd/index.js +1 -1
- package/cjs/fthry_Overlay.DLteVVAy.js +0 -231
- package/dist/fthry_Overlay.DjQfEgir.js +0 -228
- package/dist/fthry_mermaid-O7DHMXV3.rQggAcUJ.js +0 -8
- package/umd/277.1a33ea06f86326613fcb.js +0 -1
- package/umd/664.4a3ec465094a3d59c184.js +0 -1
- package/umd/AddressField.648b3da916171008dc9f.js +0 -1
- package/umd/ButtonGroupField.d39ac976a6dee9ef593a.js +0 -1
- package/umd/CheckboxGroupField.e495eb152c4faa000d4b.js +0 -1
- package/umd/DateSelectorField.e702b3e6b0a5b498c824.js +0 -1
- package/umd/DropdownField.d1a234d236d9989bbf20.js +0 -1
- package/umd/DropdownMultiField.5b4e24025035f1678c83.js +0 -1
- package/umd/MatrixField.bcd6f58ea1896f386988.js +0 -1
- package/umd/PasswordField.593d7b7d3d954634fa30.js +0 -1
- package/umd/PaymentMethodField.8e4fd6353793eaaa2b5b.js +0 -1
- package/umd/PhoneField.861b99c7e81b4b9c8648.js +0 -1
- package/umd/RadioButtonGroupField.7a333a6f7e578a181a98.js +0 -1
- package/umd/TableElement.8c0bec8400517f135fe6.js +0 -1
- package/umd/TextArea.04335be4f0f0d6c0cc1a.js +0 -1
- package/umd/TextField.749931ebb258bf38e007.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as R$1, M as Mi, B as Bt } from './fthry_AssistantChat.
|
|
1
|
+
import { R as R$1, M as Mi, B as Bt } from './fthry_AssistantChat.BxCe9PjE.js';
|
|
2
2
|
import { useContext, useState, useEffect } from 'react';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import './fthry_index.
|
|
4
|
+
import './fthry_index.UaQC1EFo.js';
|
|
5
5
|
import 'jszip';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import './fthry_clsx.ChV9xqsO.js';
|
|
8
|
-
import './fthry_index.
|
|
8
|
+
import './fthry_index.DjeCrTPA.js';
|
|
9
9
|
|
|
10
10
|
var R=({code:s,language:t,raw:e,className:h,startLine:d,...m})=>{let{shikiTheme:l}=useContext(R$1),o=Mi(),[p,i]=useState(e);return useEffect(()=>{if(!o){i(e);return}let r=o.highlight({code:s,language:t,themes:l},c=>{i(c);});r&&i(r);},[s,t,l,o,e]),jsx(Bt,{className:h,language:t,result:p,startLine:d,...m})};
|
|
11
11
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { u as useBorder, b as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, i as imgMaxSizeStyles, n as noTextSelectStyles, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { u as useBorder, b as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard, i as imgMaxSizeStyles, n as noTextSelectStyles, E as ErrorInput } from './fthry_index.UaQC1EFo.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.Brp4oi0p.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DDPGKOl4.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'jszip';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import './fthry_Overlay.DjQfEgir.js';
|
|
9
8
|
|
|
10
9
|
function ButtonGroupField(_a) {
|
|
11
10
|
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,5 +1,5 @@
|
|
|
1
|
-
import { q as __rest, j as jsx, _ as __assign, b as jsxs, e as __read, z as featheryDoc, x as Fragment$1, f as fieldValues,
|
|
2
|
-
import { Fragment, useState, useRef, useEffect,
|
|
1
|
+
import { q as __rest, j as jsx, _ as __assign, b as jsxs, e as __read, z as featheryDoc, x as Fragment$1, f as fieldValues, K as stringifyWithNull, a1 as __values, T as __spreadArray } from './fthry_index.UaQC1EFo.js';
|
|
2
|
+
import { Fragment, useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'jszip';
|
|
@@ -330,29 +330,6 @@ var editingCellInputStyle = {
|
|
|
330
330
|
inset: 0,
|
|
331
331
|
height: '100%'
|
|
332
332
|
};
|
|
333
|
-
var overflowIconStyle = {
|
|
334
|
-
display: 'flex',
|
|
335
|
-
alignItems: 'center',
|
|
336
|
-
justifyContent: 'center',
|
|
337
|
-
width: '24px',
|
|
338
|
-
height: '24px',
|
|
339
|
-
borderRadius: '4px',
|
|
340
|
-
border: 'none',
|
|
341
|
-
backgroundColor: 'transparent',
|
|
342
|
-
color: colors.gray400,
|
|
343
|
-
cursor: 'pointer',
|
|
344
|
-
opacity: 0,
|
|
345
|
-
transition: 'opacity 0.15s',
|
|
346
|
-
flexShrink: 0,
|
|
347
|
-
padding: 0,
|
|
348
|
-
'tr:hover &, &[aria-expanded="true"]': {
|
|
349
|
-
opacity: 1
|
|
350
|
-
},
|
|
351
|
-
'&:hover': {
|
|
352
|
-
backgroundColor: colors.gray100,
|
|
353
|
-
color: colors.gray600
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
333
|
var deleteColumnStyle = {
|
|
357
334
|
width: '40px',
|
|
358
335
|
padding: '0 8px'
|
|
@@ -643,132 +620,69 @@ function EmptyState(_a) {
|
|
|
643
620
|
}, fill: 'none', viewBox: '0 0 24 24', stroke: 'currentColor', strokeWidth: 1.5 }, { children: jsx("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z' }) }))), jsx("p", __assign({ css: emptyStateTextStyle }, { children: hasSearchQuery ? 'No results found' : 'No data available' })), hasSearchQuery && (jsx("p", __assign({ css: __assign(__assign({}, emptyStateTextStyle), { fontSize: '14px', marginTop: '8px' }) }, { children: "Try adjusting your search query" })))] })));
|
|
644
621
|
}
|
|
645
622
|
|
|
646
|
-
function DeleteConfirm(_a) {
|
|
647
|
-
var anchorEl = _a.anchorEl, onConfirm = _a.onConfirm, onCancel = _a.onCancel, _b = _a.message, message = _b === void 0 ? 'Delete this row?' : _b, _c = _a.confirmLabel, confirmLabel = _c === void 0 ? 'Delete' : _c;
|
|
648
|
-
var popoverRef = useRef(null);
|
|
649
|
-
if (!anchorEl)
|
|
650
|
-
return null;
|
|
651
|
-
var anchorRect = anchorEl.getBoundingClientRect();
|
|
652
|
-
var top = anchorRect.bottom + 4;
|
|
653
|
-
var left = anchorRect.right;
|
|
654
|
-
useEffect(function () {
|
|
655
|
-
var handleClickOutside = function (event) {
|
|
656
|
-
if (popoverRef.current &&
|
|
657
|
-
!popoverRef.current.contains(event.target) &&
|
|
658
|
-
anchorEl &&
|
|
659
|
-
!anchorEl.contains(event.target)) {
|
|
660
|
-
onCancel();
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
var handleScroll = function () { return onCancel(); };
|
|
664
|
-
var handleKeyDown = function (event) {
|
|
665
|
-
if (event.key === 'Escape')
|
|
666
|
-
onCancel();
|
|
667
|
-
};
|
|
668
|
-
var doc = featheryDoc();
|
|
669
|
-
doc.addEventListener('mousedown', handleClickOutside);
|
|
670
|
-
doc.addEventListener('scroll', handleScroll, true);
|
|
671
|
-
doc.addEventListener('keydown', handleKeyDown);
|
|
672
|
-
return function () {
|
|
673
|
-
doc.removeEventListener('mousedown', handleClickOutside);
|
|
674
|
-
doc.removeEventListener('scroll', handleScroll, true);
|
|
675
|
-
doc.removeEventListener('keydown', handleKeyDown);
|
|
676
|
-
};
|
|
677
|
-
}, [onCancel, anchorEl]);
|
|
678
|
-
return createPortal(jsxs("div", __assign({ ref: popoverRef, role: 'alertdialog', "aria-label": message, className: TABLE_CLASS.deleteConfirm, css: __assign(__assign({}, confirmPopoverStyle), { top: "".concat(top, "px"), left: "".concat(left, "px"), transform: 'translateX(-100%)' }) }, { children: [jsx("p", __assign({ css: confirmTextStyle }, { children: message })), jsxs("div", __assign({ css: confirmButtonRowStyle }, { children: [jsx("button", __assign({ type: 'button', css: confirmCancelButtonStyle, onClick: function (e) {
|
|
679
|
-
e.stopPropagation();
|
|
680
|
-
onCancel();
|
|
681
|
-
} }, { children: "Cancel" })), jsx("button", __assign({ type: 'button', css: confirmDeleteButtonStyle, onClick: function (e) {
|
|
682
|
-
e.stopPropagation();
|
|
683
|
-
onConfirm();
|
|
684
|
-
} }, { children: confirmLabel }))] }))] })), featheryDoc().body);
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
function OverflowIcon() {
|
|
688
|
-
return (jsxs("svg", __assign({ width: '16', height: '16', 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' })] })));
|
|
689
|
-
}
|
|
690
623
|
function EditableCell(_a) {
|
|
691
624
|
var _b;
|
|
692
|
-
var value = _a.value, fieldKey = _a.fieldKey, rowIndex = _a.rowIndex, onEdit = _a.onEdit,
|
|
693
|
-
var _c = __read(useState(
|
|
694
|
-
var _d = __read(useState(''), 2), editValue = _d[0], setEditValue = _d[1];
|
|
695
|
-
var _e = __read(useState(false), 2), isMenuOpen = _e[0], setIsMenuOpen = _e[1];
|
|
696
|
-
var _f = __read(useState(false), 2), showClearConfirm = _f[0], setShowClearConfirm = _f[1];
|
|
697
|
-
var _g = __read(useState({ top: 0, left: 0 }), 2), menuPosition = _g[0], setMenuPosition = _g[1];
|
|
625
|
+
var value = _a.value, fieldKey = _a.fieldKey, rowIndex = _a.rowIndex, isEditing = _a.isEditing, onEdit = _a.onEdit, onStartEdit = _a.onStartEdit, onStopEdit = _a.onStopEdit, onNavigate = _a.onNavigate;
|
|
626
|
+
var _c = __read(useState(''), 2), editValue = _c[0], setEditValue = _c[1];
|
|
698
627
|
var inputRef = useRef(null);
|
|
699
|
-
var menuButtonRef = useRef(null);
|
|
700
|
-
var menuRef = useRef(null);
|
|
701
628
|
var shouldSaveRef = useRef(true);
|
|
702
|
-
|
|
629
|
+
// Suppresses the blur that fires when focus moves to the next cell during Tab
|
|
630
|
+
// navigation, so it does not re-save or clear the freshly-set editing cell.
|
|
631
|
+
var skipBlurRef = useRef(false);
|
|
703
632
|
var displayValue = (_b = stringifyWithNull(value)) !== null && _b !== void 0 ? _b : '';
|
|
704
633
|
var isEmpty = displayValue === '';
|
|
634
|
+
// Seed the draft value the moment this cell becomes the active editor, before
|
|
635
|
+
// paint, so the textarea shows the right content on first render (no flash).
|
|
636
|
+
var prevEditingRef = useRef(false);
|
|
637
|
+
if (isEditing && !prevEditingRef.current)
|
|
638
|
+
setEditValue(displayValue);
|
|
639
|
+
prevEditingRef.current = isEditing;
|
|
705
640
|
useEffect(function () {
|
|
706
641
|
if (isEditing && inputRef.current) {
|
|
707
642
|
inputRef.current.focus();
|
|
643
|
+
inputRef.current.select();
|
|
708
644
|
}
|
|
709
645
|
}, [isEditing]);
|
|
710
|
-
useEffect(function () {
|
|
711
|
-
if (!isMenuOpen)
|
|
712
|
-
return;
|
|
713
|
-
var handleClickOutside = function (event) {
|
|
714
|
-
if (menuRef.current &&
|
|
715
|
-
!menuRef.current.contains(event.target) &&
|
|
716
|
-
menuButtonRef.current &&
|
|
717
|
-
!menuButtonRef.current.contains(event.target)) {
|
|
718
|
-
setIsMenuOpen(false);
|
|
719
|
-
}
|
|
720
|
-
};
|
|
721
|
-
var handleScroll = function () { return setIsMenuOpen(false); };
|
|
722
|
-
var doc = featheryDoc();
|
|
723
|
-
doc.addEventListener('mousedown', handleClickOutside);
|
|
724
|
-
doc.addEventListener('scroll', handleScroll, true);
|
|
725
|
-
return function () {
|
|
726
|
-
doc.removeEventListener('mousedown', handleClickOutside);
|
|
727
|
-
doc.removeEventListener('scroll', handleScroll, true);
|
|
728
|
-
};
|
|
729
|
-
}, [isMenuOpen]);
|
|
730
646
|
var startEditing = function () {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
647
|
+
// Force any other cell that is mid-edit to commit and close via its own
|
|
648
|
+
// blur handler before opening this one. Clicking a cell's (non-focusable)
|
|
649
|
+
var active = featheryDoc().activeElement;
|
|
650
|
+
if (active && active !== inputRef.current)
|
|
651
|
+
active.blur();
|
|
652
|
+
onStartEdit();
|
|
734
653
|
};
|
|
735
|
-
var
|
|
654
|
+
var saveValue = function () {
|
|
736
655
|
if (editValue !== displayValue) {
|
|
737
656
|
onEdit(fieldKey, rowIndex, editValue);
|
|
738
657
|
}
|
|
739
|
-
setIsEditing(false);
|
|
740
|
-
};
|
|
741
|
-
var cancelEdit = function () {
|
|
742
|
-
shouldSaveRef.current = false;
|
|
743
|
-
setIsEditing(false);
|
|
744
658
|
};
|
|
745
659
|
var handleBlur = function () {
|
|
660
|
+
if (skipBlurRef.current) {
|
|
661
|
+
skipBlurRef.current = false;
|
|
662
|
+
return;
|
|
663
|
+
}
|
|
746
664
|
if (shouldSaveRef.current)
|
|
747
|
-
|
|
665
|
+
saveValue();
|
|
748
666
|
shouldSaveRef.current = true;
|
|
667
|
+
onStopEdit();
|
|
749
668
|
};
|
|
750
669
|
var handleKeyDown = function (e) {
|
|
751
|
-
|
|
670
|
+
var _a, _b;
|
|
671
|
+
if (e.key === 'Enter' && !e.shiftKey) {
|
|
752
672
|
e.preventDefault();
|
|
753
|
-
|
|
754
|
-
saveEdit();
|
|
673
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
755
674
|
}
|
|
756
675
|
else if (e.key === 'Escape') {
|
|
757
676
|
e.preventDefault();
|
|
758
|
-
cancelEdit();
|
|
759
|
-
}
|
|
760
|
-
else if (e.key === 'Tab') {
|
|
761
677
|
shouldSaveRef.current = false;
|
|
762
|
-
|
|
678
|
+
(_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.blur();
|
|
763
679
|
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
setMenuPosition({ top: rect.bottom + 4, left: rect.right });
|
|
680
|
+
else if (e.key === 'Tab') {
|
|
681
|
+
e.preventDefault();
|
|
682
|
+
skipBlurRef.current = true;
|
|
683
|
+
saveValue();
|
|
684
|
+
onNavigate(e.shiftKey);
|
|
770
685
|
}
|
|
771
|
-
setIsMenuOpen(!isMenuOpen);
|
|
772
686
|
};
|
|
773
687
|
if (isEditing) {
|
|
774
688
|
return (jsxs("div", __assign({ className: TABLE_CLASS.editableCell, css: editingCellContentStyle }, { children: [jsx("div", __assign({ css: editingCellSizerStyle }, { children: "".concat(editValue, "\u200B") })), jsx("textarea", { ref: inputRef, value: editValue, onChange: function (e) { return setEditValue(e.target.value); }, onBlur: handleBlur, onKeyDown: handleKeyDown, className: TABLE_CLASS.cellInput, css: __assign(__assign({}, cellInputStyle), editingCellInputStyle), onClick: function (e) { return e.stopPropagation(); } })] })));
|
|
@@ -776,18 +690,7 @@ function EditableCell(_a) {
|
|
|
776
690
|
if (isEmpty) {
|
|
777
691
|
return (jsx("span", __assign({ className: TABLE_CLASS.editableCell, css: clickToEditStyle, onClick: startEditing }, { children: "Click to edit" })));
|
|
778
692
|
}
|
|
779
|
-
return (
|
|
780
|
-
createPortal(jsxs("div", __assign({ ref: menuRef, role: 'menu', css: __assign(__assign({}, actionMenuStyle), { top: "".concat(menuPosition.top, "px"), left: "".concat(menuPosition.left, "px"), transform: 'translateX(-100%)' }) }, { children: [jsx("button", __assign({ type: 'button', role: 'menuitem', css: actionMenuItemStyle, onClick: function (e) {
|
|
781
|
-
e.stopPropagation();
|
|
782
|
-
startEditing();
|
|
783
|
-
} }, { children: "Edit Value" })), jsx("button", __assign({ type: 'button', role: 'menuitem', css: actionMenuItemStyle, onClick: function (e) {
|
|
784
|
-
e.stopPropagation();
|
|
785
|
-
setIsMenuOpen(false);
|
|
786
|
-
setShowClearConfirm(true);
|
|
787
|
-
} }, { children: "Clear Field" }))] })), featheryDoc().body), showClearConfirm && (jsx(DeleteConfirm, { anchorEl: menuButtonRef.current, message: 'Clear this field?', confirmLabel: 'Clear', onConfirm: function () {
|
|
788
|
-
closeClearConfirm();
|
|
789
|
-
onClear(fieldKey, rowIndex);
|
|
790
|
-
}, onCancel: closeClearConfirm }))] })));
|
|
693
|
+
return (jsx("div", __assign({ className: TABLE_CLASS.editableCell, css: editableCellContentStyle }, { children: jsx("span", __assign({ css: __assign(__assign({}, editableCellTextStyle), { cursor: 'pointer' }), onClick: startEditing }, { children: displayValue })) })));
|
|
791
694
|
}
|
|
792
695
|
|
|
793
696
|
// Utility functions for sorting strings as numbers and dates
|
|
@@ -877,6 +780,88 @@ function compareSortableValues(a, b) {
|
|
|
877
780
|
}
|
|
878
781
|
// Fall back to string comparison
|
|
879
782
|
return a.asString.localeCompare(b.asString);
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Compute the next/previous editable cell for Tab navigation.
|
|
786
|
+
*
|
|
787
|
+
* In non-transposed editable tables every column is editable, so the grid is
|
|
788
|
+
* simply `rowIndices` (the visible rows, in display order) by `columnCount`.
|
|
789
|
+
*
|
|
790
|
+
* Forward (Tab): move one column right; at the end of a row wrap to the first
|
|
791
|
+
* column of the next visible row. Backward (Shift+Tab): mirror that.
|
|
792
|
+
*
|
|
793
|
+
* Returns `null` past the last editable cell (forward) or before the first one
|
|
794
|
+
* (backward) so the caller can commit-and-stay instead of wrapping around.
|
|
795
|
+
*/
|
|
796
|
+
function getNextEditableCell(rowIndices, columnCount, current, backward) {
|
|
797
|
+
if (columnCount <= 0)
|
|
798
|
+
return null;
|
|
799
|
+
var rowPos = rowIndices.indexOf(current.rowIndex);
|
|
800
|
+
if (rowPos === -1)
|
|
801
|
+
return null;
|
|
802
|
+
var lastCol = columnCount - 1;
|
|
803
|
+
var colIndex = current.colIndex;
|
|
804
|
+
var pos = rowPos;
|
|
805
|
+
if (backward) {
|
|
806
|
+
colIndex -= 1;
|
|
807
|
+
if (colIndex < 0) {
|
|
808
|
+
colIndex = lastCol;
|
|
809
|
+
pos -= 1;
|
|
810
|
+
}
|
|
811
|
+
if (pos < 0)
|
|
812
|
+
return null;
|
|
813
|
+
}
|
|
814
|
+
else {
|
|
815
|
+
colIndex += 1;
|
|
816
|
+
if (colIndex > lastCol) {
|
|
817
|
+
colIndex = 0;
|
|
818
|
+
pos += 1;
|
|
819
|
+
}
|
|
820
|
+
if (pos > rowIndices.length - 1)
|
|
821
|
+
return null;
|
|
822
|
+
}
|
|
823
|
+
return { rowIndex: rowIndices[pos], colIndex: colIndex };
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
function DeleteConfirm(_a) {
|
|
827
|
+
var anchorEl = _a.anchorEl, onConfirm = _a.onConfirm, onCancel = _a.onCancel, _b = _a.message, message = _b === void 0 ? 'Delete this row?' : _b, _c = _a.confirmLabel, confirmLabel = _c === void 0 ? 'Delete' : _c;
|
|
828
|
+
var popoverRef = useRef(null);
|
|
829
|
+
if (!anchorEl)
|
|
830
|
+
return null;
|
|
831
|
+
var anchorRect = anchorEl.getBoundingClientRect();
|
|
832
|
+
var top = anchorRect.bottom + 4;
|
|
833
|
+
var left = anchorRect.right;
|
|
834
|
+
useEffect(function () {
|
|
835
|
+
var handleClickOutside = function (event) {
|
|
836
|
+
if (popoverRef.current &&
|
|
837
|
+
!popoverRef.current.contains(event.target) &&
|
|
838
|
+
anchorEl &&
|
|
839
|
+
!anchorEl.contains(event.target)) {
|
|
840
|
+
onCancel();
|
|
841
|
+
}
|
|
842
|
+
};
|
|
843
|
+
var handleScroll = function () { return onCancel(); };
|
|
844
|
+
var handleKeyDown = function (event) {
|
|
845
|
+
if (event.key === 'Escape')
|
|
846
|
+
onCancel();
|
|
847
|
+
};
|
|
848
|
+
var doc = featheryDoc();
|
|
849
|
+
doc.addEventListener('mousedown', handleClickOutside);
|
|
850
|
+
doc.addEventListener('scroll', handleScroll, true);
|
|
851
|
+
doc.addEventListener('keydown', handleKeyDown);
|
|
852
|
+
return function () {
|
|
853
|
+
doc.removeEventListener('mousedown', handleClickOutside);
|
|
854
|
+
doc.removeEventListener('scroll', handleScroll, true);
|
|
855
|
+
doc.removeEventListener('keydown', handleKeyDown);
|
|
856
|
+
};
|
|
857
|
+
}, [onCancel, anchorEl]);
|
|
858
|
+
return createPortal(jsxs("div", __assign({ ref: popoverRef, role: 'alertdialog', "aria-label": message, className: TABLE_CLASS.deleteConfirm, css: __assign(__assign({}, confirmPopoverStyle), { top: "".concat(top, "px"), left: "".concat(left, "px"), transform: 'translateX(-100%)' }) }, { children: [jsx("p", __assign({ css: confirmTextStyle }, { children: message })), jsxs("div", __assign({ css: confirmButtonRowStyle }, { children: [jsx("button", __assign({ type: 'button', css: confirmCancelButtonStyle, onClick: function (e) {
|
|
859
|
+
e.stopPropagation();
|
|
860
|
+
onCancel();
|
|
861
|
+
} }, { children: "Cancel" })), jsx("button", __assign({ type: 'button', css: confirmDeleteButtonStyle, onClick: function (e) {
|
|
862
|
+
e.stopPropagation();
|
|
863
|
+
onConfirm();
|
|
864
|
+
} }, { children: confirmLabel }))] }))] })), featheryDoc().body);
|
|
880
865
|
}
|
|
881
866
|
|
|
882
867
|
function generateExampleData(columns, numRows) {
|
|
@@ -1375,15 +1360,11 @@ function useTableMutations(_a) {
|
|
|
1375
1360
|
submitCustom(values);
|
|
1376
1361
|
onMutate();
|
|
1377
1362
|
}, [getFieldArray, updateFieldValues, submitCustom, editMode, onMutate]);
|
|
1378
|
-
var handleCellClear = useCallback(function (fieldKey, rowIndex) {
|
|
1379
|
-
handleCellEdit(fieldKey, rowIndex, '');
|
|
1380
|
-
}, [handleCellEdit]);
|
|
1381
1363
|
return {
|
|
1382
1364
|
handleAddRow: handleAddRow,
|
|
1383
1365
|
handleDeleteRow: handleDeleteRow,
|
|
1384
1366
|
handleRemoveRowLocal: handleRemoveRowLocal,
|
|
1385
|
-
handleCellEdit: handleCellEdit
|
|
1386
|
-
handleCellClear: handleCellClear
|
|
1367
|
+
handleCellEdit: handleCellEdit
|
|
1387
1368
|
};
|
|
1388
1369
|
}
|
|
1389
1370
|
|
|
@@ -1418,7 +1399,7 @@ function TableElement(_a) {
|
|
|
1418
1399
|
setSearchQuery: setSearchQuery,
|
|
1419
1400
|
searchQuery: searchQuery,
|
|
1420
1401
|
onMutate: onMutate
|
|
1421
|
-
}), handleAddRow = _j.handleAddRow, handleDeleteRow = _j.handleDeleteRow, handleCellEdit = _j.handleCellEdit
|
|
1402
|
+
}), handleAddRow = _j.handleAddRow, handleDeleteRow = _j.handleDeleteRow, handleCellEdit = _j.handleCellEdit;
|
|
1422
1403
|
var tableId = element === null || element === void 0 ? void 0 : element.id;
|
|
1423
1404
|
var canEdit = enableEditing && !isTransposed;
|
|
1424
1405
|
var showAddRow = canEdit && enableAddDeleteRows;
|
|
@@ -1439,11 +1420,21 @@ function TableElement(_a) {
|
|
|
1439
1420
|
handleCellEdit(fieldKey, rowIndex, newValue);
|
|
1440
1421
|
}, [handleCellEdit]);
|
|
1441
1422
|
var _l = __read(useState(null), 2), deleteRowIndex = _l[0], setDeleteRowIndex = _l[1];
|
|
1423
|
+
var _m = __read(useState(null), 2), editingCell = _m[0], setEditingCell = _m[1];
|
|
1442
1424
|
var prevPageRef = useRef(currentPage);
|
|
1443
1425
|
if (prevPageRef.current !== currentPage) {
|
|
1444
1426
|
prevPageRef.current = currentPage;
|
|
1445
1427
|
setDeleteRowIndex(null);
|
|
1428
|
+
// A coordinate from the previous page would point at an off-page row.
|
|
1429
|
+
setEditingCell(null);
|
|
1446
1430
|
}
|
|
1431
|
+
var requestEdit = useCallback(function (rowIndex, colIndex) {
|
|
1432
|
+
return setEditingCell({ rowIndex: rowIndex, colIndex: colIndex });
|
|
1433
|
+
}, []);
|
|
1434
|
+
var stopEdit = useCallback(function () { return setEditingCell(null); }, []);
|
|
1435
|
+
var navigateEdit = useCallback(function (rowIndex, colIndex, backward) {
|
|
1436
|
+
setEditingCell(getNextEditableCell(paginatedRowIndices, columns.length, { rowIndex: rowIndex, colIndex: colIndex }, backward));
|
|
1437
|
+
}, [paginatedRowIndices, columns.length]);
|
|
1447
1438
|
var handleCancelDelete = useCallback(function () { return setDeleteRowIndex(null); }, []);
|
|
1448
1439
|
var deleteIconRefs = useRef(new Map());
|
|
1449
1440
|
var actionCellRefs = useRef(new Map());
|
|
@@ -1540,9 +1531,23 @@ function TableElement(_a) {
|
|
|
1540
1531
|
: fValue;
|
|
1541
1532
|
originalRowData_1[col.name] = cValue;
|
|
1542
1533
|
});
|
|
1534
|
+
var originalColumn = baseColumns[rowIndex];
|
|
1543
1535
|
onClick({
|
|
1544
1536
|
rowIndex: originalRowIndex,
|
|
1545
|
-
rowData: originalRowData_1
|
|
1537
|
+
rowData: originalRowData_1,
|
|
1538
|
+
columnIndex: rowIndex,
|
|
1539
|
+
columnKey: originalColumn === null || originalColumn === void 0 ? void 0 : originalColumn.field_key,
|
|
1540
|
+
columnName: originalColumn === null || originalColumn === void 0 ? void 0 : originalColumn.name
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1543
|
+
else if (!isTransposed && !canEdit) {
|
|
1544
|
+
e.stopPropagation();
|
|
1545
|
+
onClick({
|
|
1546
|
+
rowIndex: rowIndex,
|
|
1547
|
+
rowData: rowData,
|
|
1548
|
+
columnIndex: colIndex,
|
|
1549
|
+
columnKey: column.field_key,
|
|
1550
|
+
columnName: column.name
|
|
1546
1551
|
});
|
|
1547
1552
|
}
|
|
1548
1553
|
};
|
|
@@ -1554,7 +1559,12 @@ function TableElement(_a) {
|
|
|
1554
1559
|
: column.field_key;
|
|
1555
1560
|
return (jsx(CellElement, __assign({ className: isFirstColInTranspose
|
|
1556
1561
|
? TABLE_CLASS.headerCell
|
|
1557
|
-
: TABLE_CLASS.cell, "data-feathery-field": cellFieldKey, css: cellCss, onClick: handleCellClick }, (isFirstColInTranspose ? { scope: 'row' } : {}), { children: isFirstColInTranspose && isSortable ? (jsxs("div", __assign({ css: __assign(__assign({}, sortHeaderContentStyle), { justifyContent: 'space-between' }) }, { children: [jsx("span", { children: (_b = stringifyWithNull(cellValue)) !== null && _b !== void 0 ? _b : '' }), jsx("span", __assign({ css: sortIconContainerStyle }, { children: jsx(SortIcon, { isSorted: isSorted, sortDirection: sortDirection }) }))] }))) : canEdit ? (jsx(EditableCell, { value: cellValue, fieldKey: column.field_key, rowIndex: rowIndex,
|
|
1562
|
+
: TABLE_CLASS.cell, "data-feathery-field": cellFieldKey, css: cellCss, onClick: handleCellClick }, (isFirstColInTranspose ? { scope: 'row' } : {}), { children: isFirstColInTranspose && isSortable ? (jsxs("div", __assign({ css: __assign(__assign({}, sortHeaderContentStyle), { justifyContent: 'space-between' }) }, { children: [jsx("span", { children: (_b = stringifyWithNull(cellValue)) !== null && _b !== void 0 ? _b : '' }), jsx("span", __assign({ css: sortIconContainerStyle }, { children: jsx(SortIcon, { isSorted: isSorted, sortDirection: sortDirection }) }))] }))) : canEdit ? (jsx(EditableCell, { value: cellValue, fieldKey: column.field_key, rowIndex: rowIndex, isEditing: (editingCell === null || editingCell === void 0 ? void 0 : editingCell.rowIndex) === rowIndex &&
|
|
1563
|
+
(editingCell === null || editingCell === void 0 ? void 0 : editingCell.colIndex) === colIndex, onEdit: wrappedHandleCellEdit, onStartEdit: function () {
|
|
1564
|
+
return requestEdit(rowIndex, colIndex);
|
|
1565
|
+
}, onStopEdit: stopEdit, onNavigate: function (backward) {
|
|
1566
|
+
return navigateEdit(rowIndex, colIndex, backward);
|
|
1567
|
+
} })) : ((_c = stringifyWithNull(cellValue)) !== null && _c !== void 0 ? _c : '') }), colIndex));
|
|
1558
1568
|
}), !isTransposed && actions.length > 0 && (jsxs("td", __assign({ ref: function (el) {
|
|
1559
1569
|
if (el)
|
|
1560
1570
|
actionCellRefs.current.set(rowIndex, el);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { e as __read, u as useBorder, b as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, d as iosScrollOnFocus, r as resetStyles,
|
|
1
|
+
import { e as __read, u as useBorder, b as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, d as iosScrollOnFocus, r as resetStyles, I as DROPDOWN_Z_INDEX, s as __awaiter, t as __generator, v as FeatheryClient, O as Overlay, P as debounce } from './fthry_index.UaQC1EFo.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 {
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.Bvu4QN6c.js';
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CEPxPTLL.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.Brp4oi0p.js';
|
|
5
|
+
import { u as useElementSize } from './fthry_useElementSize.CGVQMCbV.js';
|
|
7
6
|
import 'react/jsx-runtime';
|
|
8
7
|
import 'jszip';
|
|
9
8
|
import 'react-dom';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as __awaiter, t as __generator,
|
|
2
|
-
import { l as loadScript, g as getNextIntegrationsURL, u as unloadScript, i as isServer, m as mergedOptions, b as isPlainObject, r as recordIntegrationMetric, c as isOffline, C as ContextCancelation, d as applyDestinationMiddleware, e as distExports, f as createDeferred, P as PriorityQueue, h as PersistedPriorityQueue, j as pWhile, k as attempt, n as Context, o as isOnline } from './fthry_index.
|
|
1
|
+
import { s as __awaiter, t as __generator, T as __spreadArray, _ as __assign } from './fthry_index.UaQC1EFo.js';
|
|
2
|
+
import { l as loadScript, g as getNextIntegrationsURL, u as unloadScript, i as isServer, m as mergedOptions, b as isPlainObject, r as recordIntegrationMetric, c as isOffline, C as ContextCancelation, d as applyDestinationMiddleware, e as distExports, f as createDeferred, P as PriorityQueue, h as PersistedPriorityQueue, j as pWhile, k as attempt, n as Context, o as isOnline } from './fthry_index.HfY_xMXi.js';
|
|
3
3
|
import { i as isPlanEventEnabled } from './fthry_is-plan-event-enabled.mXX0dwl-.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as featheryWindow, b as jsxs, _ as __assign, j as jsx, e as __read, u as useBorder, h as hoverStylesGuard,
|
|
1
|
+
import { w as featheryWindow, b as jsxs, _ as __assign, j as jsx, e as __read, u as useBorder, h as hoverStylesGuard, X as isNum } from './fthry_index.UaQC1EFo.js';
|
|
2
2
|
import { useRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'jszip';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as __awaiter, t as __generator,
|
|
1
|
+
import { s as __awaiter, t as __generator, T as __spreadArray, e as __read, a1 as __values, w as featheryWindow, a2 as loadQRScanner, a3 as throttle, j as jsx, b as jsxs, _ as __assign, x as Fragment, E as ErrorInput, a4 as qrPromise } from './fthry_index.UaQC1EFo.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.NzBPYPQ9.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'jszip';
|
|
6
6
|
import 'react-dom';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as __read, b as jsxs$1, _ as __assign, j as jsx$1, p as FORM_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { e as __read, b as jsxs$1, _ as __assign, j as jsx$1, p as FORM_Z_INDEX } from './fthry_index.UaQC1EFo.js';
|
|
2
2
|
import React__default, { useRef, useEffect, useCallback, useState, useMemo, Fragment } from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import 'jszip';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as __awaiter, t as __generator } from './fthry_index.
|
|
2
|
-
import { i as isServer, g as getNextIntegrationsURL, l as loadScript } from './fthry_index.
|
|
1
|
+
import { s as __awaiter, t as __generator } from './fthry_index.UaQC1EFo.js';
|
|
2
|
+
import { i as isServer, g as getNextIntegrationsURL, l as loadScript } from './fthry_index.HfY_xMXi.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'jszip';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as jsxs, _ as __assign, j as jsx, e as __read,
|
|
1
|
+
import { b as jsxs, _ as __assign, j as jsx, e as __read, Q as isEmptyArray, R as toList, S as useThumbnailData, T as __spreadArray, i as imgMaxSizeStyles, s as __awaiter, t as __generator, U as downloadFile, V as CloseIcon, d as iosScrollOnFocus, p as FORM_Z_INDEX, W as justRemove } from './fthry_index.UaQC1EFo.js';
|
|
2
2
|
import { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'jszip';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { e as __read, u as useBorder, b as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { e as __read, u as useBorder, b as jsxs, _ as __assign, h as hoverStylesGuard, j as jsx, r as resetStyles } from './fthry_index.UaQC1EFo.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.CEPxPTLL.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.Brp4oi0p.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'jszip';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import './fthry_Overlay.DjQfEgir.js';
|
|
9
8
|
|
|
10
9
|
function TextArea(_a) {
|
|
11
10
|
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,7 +1,6 @@
|
|
|
1
|
-
import { e as __read, j as jsx, x as Fragment, y as isMobile, b as jsxs, _ as __assign,
|
|
1
|
+
import { e as __read, j as jsx, x as Fragment, y as isMobile, b as jsxs, _ as __assign, H as HoverTooltip, d as iosScrollOnFocus } from './fthry_index.UaQC1EFo.js';
|
|
2
2
|
import { useState, useRef, useMemo } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.C75qxU8Z.js';
|
|
3
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.X-5RnKbv.js';
|
|
5
4
|
import 'react/jsx-runtime';
|
|
6
5
|
import 'jszip';
|
|
7
6
|
import 'react-dom';
|
|
@@ -13,21 +12,7 @@ function TextHoverTooltip(_a) {
|
|
|
13
12
|
if (!text)
|
|
14
13
|
return jsx(Fragment, { children: children });
|
|
15
14
|
var isMobile$1 = isMobile();
|
|
16
|
-
return (jsxs(Fragment, { children: [jsx("span", __assign({ ref: triggerRef, onMouseEnter: isMobile$1 ? undefined : function () { return setShow(true); }, onMouseLeave: isMobile$1 ? undefined : function () { return setShow(false); }, onFocus: function () { return setShow(true); }, onBlur: function () { return setShow(false); }, onClick: function () { return setShow(function (prev) { return !prev; }); }, style: { display: 'inline-block', cursor: 'pointer' } }, { children: children })), jsx(
|
|
17
|
-
zIndex: FORM_Z_INDEX + 1,
|
|
18
|
-
padding: '.4rem 0',
|
|
19
|
-
margin: '0 1rem',
|
|
20
|
-
transition: 'opacity .10s linear',
|
|
21
|
-
'.tooltip-inner': {
|
|
22
|
-
maxWidth: '200px',
|
|
23
|
-
padding: '.25rem .5rem',
|
|
24
|
-
color: '#fff',
|
|
25
|
-
textAlign: 'center',
|
|
26
|
-
backgroundColor: '#000',
|
|
27
|
-
borderRadius: '.25rem',
|
|
28
|
-
fontSize: 'smaller'
|
|
29
|
-
}
|
|
30
|
-
} }, { children: text })) }))] }));
|
|
15
|
+
return (jsxs(Fragment, { children: [jsx("span", __assign({ ref: triggerRef, onMouseEnter: isMobile$1 ? undefined : function () { return setShow(true); }, onMouseLeave: isMobile$1 ? undefined : function () { return setShow(false); }, onFocus: function () { return setShow(true); }, onBlur: function () { return setShow(false); }, onClick: function () { return setShow(function (prev) { return !prev; }); }, style: { display: 'inline-block', cursor: 'pointer' } }, { children: children })), jsx(HoverTooltip, { show: show, triggerRef: triggerRef, containerRef: containerRef, text: text, id: text, placement: 'top', offset: 4, onHide: function () { return setShow(false); }, css: { margin: '0 1rem' } })] }));
|
|
31
16
|
}
|
|
32
17
|
|
|
33
18
|
function MatrixField(_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, _ as __assign, e as __read, b as jsxs, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { j as jsx, _ as __assign, e as __read, b as jsxs, E as ErrorInput } from './fthry_index.UaQC1EFo.js';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'jszip';
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { b as jsxs, _ as __assign, j as jsx,
|
|
1
|
+
import { b as jsxs, _ as __assign, j as jsx, I as DROPDOWN_Z_INDEX, O as Overlay, e as __read, u as useBorder, J as getFieldValue, K as stringifyWithNull, h as hoverStylesGuard, d as iosScrollOnFocus, p as FORM_Z_INDEX, r as resetStyles, L as emailPatternStr } from './fthry_index.UaQC1EFo.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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { I as IMaskInput } from './fthry_input.C13Hy41e.js';
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CEPxPTLL.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.Brp4oi0p.js';
|
|
5
|
+
import { u as useElementSize } from './fthry_useElementSize.CGVQMCbV.js';
|
|
6
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.BWU3OOxh.js';
|
|
7
|
+
import { I as IMaskInput } from './fthry_input.vNAUHsdE.js';
|
|
9
8
|
import 'react/jsx-runtime';
|
|
10
9
|
import 'jszip';
|
|
11
10
|
import 'react-dom';
|
|
12
|
-
import './fthry_index.
|
|
11
|
+
import './fthry_index.caHStIvy.js';
|
|
13
12
|
|
|
14
13
|
function TextAutocomplete(_a) {
|
|
15
14
|
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 { e as __read, b as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.
|
|
1
|
+
import { e as __read, b as jsxs, _ as __assign, j as jsx, h as hoverStylesGuard } from './fthry_index.UaQC1EFo.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.NzBPYPQ9.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'jszip';
|
|
6
6
|
import 'react-dom';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { z as featheryDoc,
|
|
1
|
+
import { z as featheryDoc, ak as devicePixelRatio, N as getDefaultExportFromCjs, e as __read, b as jsxs, j as jsx, _ as __assign, x as Fragment, s as __awaiter, t as __generator, al as toBase64, P as debounce, am as MODAL_Z_INDEX, V as CloseIcon, an as dataURLToFile, p as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.UaQC1EFo.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.caHStIvy.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'jszip';
|
|
6
6
|
import 'react-dom';
|
|
@@ -1476,7 +1476,7 @@ function SignatureField(_a) {
|
|
|
1476
1476
|
useEffect(function () {
|
|
1477
1477
|
if (!global.webfontloaderPromise)
|
|
1478
1478
|
global.webfontloaderPromise = import(
|
|
1479
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
1479
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.BY0qufCl.js').then(function (n) { return n.w; });
|
|
1480
1480
|
global.webfontloaderPromise.then(function (WebFont) {
|
|
1481
1481
|
WebFont.load({ google: { families: ['La Belle Aurore'] } });
|
|
1482
1482
|
});
|