legalesign-document-viewer 0.1.2 → 0.1.4
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ls-document-options_35.cjs.entry.js → ls-document-options_36.cjs.entry.js} +501 -128
- package/dist/cjs/ls-document-options_36.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-document-viewer.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js +96 -0
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +7 -1
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js +19 -0
- package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/defaultPalette.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorCalculator.js +2 -2
- package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorUtils.js +31 -5
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.css +11 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +16 -11
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +6 -4
- package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -1
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.css +98 -28
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js +26 -20
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js.map +1 -1
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +1 -1
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js.map +1 -1
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.css +100 -33
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +21 -15
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +1 -1
- package/dist/collection/components/ls-field-footer/ls-field-footer.css +55 -0
- package/dist/collection/components/ls-field-footer/ls-field-footer.js +107 -0
- package/dist/collection/components/ls-field-footer/ls-field-footer.js.map +1 -0
- package/dist/collection/components/ls-field-format/ls-field-format.js +10 -10
- package/dist/collection/components/ls-field-placement/ls-field-placement.css +27 -9
- package/dist/collection/components/ls-field-placement/ls-field-placement.js +1 -1
- package/dist/collection/components/ls-field-placement/ls-field-placement.js.map +1 -1
- package/dist/collection/components/ls-field-properties/ls-field-properties.css +1 -0
- package/dist/collection/components/ls-field-properties/ls-field-properties.js +1 -1
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +1 -1
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.css +173 -10
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +36 -1
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js.map +1 -1
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.css +178 -4
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +36 -1
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js.map +1 -1
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.css +178 -3
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +36 -1
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js.map +1 -1
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.css +173 -10
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +34 -1
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js.map +1 -1
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.css +178 -3
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +36 -1
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js.map +1 -1
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.css +179 -3
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +55 -1
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -1
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.css +178 -3
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +36 -1
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map +1 -1
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.css +40 -4
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +18 -3
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js.map +1 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.css +177 -3
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +36 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js.map +1 -1
- package/dist/collection/components/ls-field-size/ls-field-size.css +102 -27
- package/dist/collection/components/ls-field-size/ls-field-size.js +2 -2
- package/dist/collection/components/ls-field-size/ls-field-size.js.map +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +3 -3
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +2 -2
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +3 -3
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +3 -3
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +3 -3
- package/dist/collection/components/ls-formfield/ls-formfield.js +5 -5
- package/dist/collection/components/ls-icon/icons.js +20 -0
- package/dist/collection/components/ls-icon/icons.js.map +1 -1
- package/dist/collection/components/ls-icon/ls-icon.js +2 -2
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +10 -6
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js.map +1 -1
- package/dist/collection/components/ls-participant-select/ls-participant-select.css +4 -6
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +22 -6
- package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +1 -1
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +3 -3
- package/dist/collection/components/ls-toggle/ls-toggle.js +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -1
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.css +3 -4
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +26 -2
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js.map +1 -1
- package/dist/collection/types/Icon.js +1 -0
- package/dist/collection/types/Icon.js.map +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +169 -58
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.js +1 -1
- package/dist/components/ls-feature-column.js +1 -1
- package/dist/components/ls-field-alignment.js +1 -1
- package/dist/components/ls-field-dimensions.js +1 -1
- package/dist/components/ls-field-distribute.js +1 -1
- package/dist/components/ls-field-footer.d.ts +11 -0
- package/dist/components/ls-field-footer.js +9 -0
- package/dist/components/ls-field-footer.js.map +1 -0
- package/dist/components/ls-field-format.js +1 -1
- package/dist/components/ls-field-placement.js +1 -1
- package/dist/components/ls-field-properties-autosign.js +1 -1
- package/dist/components/ls-field-properties-date.js +1 -1
- package/dist/components/ls-field-properties-email.js +1 -1
- package/dist/components/ls-field-properties-file.js +1 -1
- package/dist/components/ls-field-properties-general.js +1 -1
- package/dist/components/ls-field-properties-image.js +1 -1
- package/dist/components/ls-field-properties-multiple.js +1 -1
- package/dist/components/ls-field-properties-number.js +1 -1
- package/dist/components/ls-field-properties-signature.js +1 -1
- package/dist/components/ls-field-properties-text.js +1 -1
- package/dist/components/ls-field-properties.js +1 -1
- package/dist/components/ls-field-size.js +1 -1
- package/dist/components/ls-formfield.js +1 -1
- package/dist/components/ls-icon.js +1 -1
- package/dist/components/ls-number-input.js +1 -1
- package/dist/components/ls-participant-manager.js +1 -1
- package/dist/components/ls-participant-select.js +1 -1
- package/dist/components/ls-radio-input.js +1 -1
- package/dist/components/ls-select-input.js +1 -1
- package/dist/components/ls-statusbar.js +1 -1
- package/dist/components/ls-text-input.js +1 -1
- package/dist/components/ls-textarea-input.js +1 -1
- package/dist/components/ls-toggle.js +1 -1
- package/dist/components/ls-toolbar.js +1 -1
- package/dist/components/ls-toolbox-field.js +1 -1
- package/dist/components/p-8Yvey07o.js +57 -0
- package/dist/components/p-8Yvey07o.js.map +1 -0
- package/dist/components/{p-Cs6tf1FE.js → p-9Z-GK0Bd.js} +3 -3
- package/dist/components/{p-Cs6tf1FE.js.map → p-9Z-GK0Bd.js.map} +1 -1
- package/dist/components/{p-DtHDNV_x.js → p-BFSBsh85.js} +24 -3
- package/dist/components/p-BFSBsh85.js.map +1 -0
- package/dist/components/p-BLkddRKK.js +77 -0
- package/dist/components/p-BLkddRKK.js.map +1 -0
- package/dist/components/{p-D2smwTu5.js → p-BM-Xo6D5.js} +7 -7
- package/dist/components/{p-D2smwTu5.js.map → p-BM-Xo6D5.js.map} +1 -1
- package/dist/components/{p-CjicL5jA.js → p-BPk0SaUp.js} +34 -8
- package/dist/components/p-BPk0SaUp.js.map +1 -0
- package/dist/components/p-BVXVFpxy.js +130 -0
- package/dist/components/p-BVXVFpxy.js.map +1 -0
- package/dist/components/{p-D7KC-w81.js → p-BdJAlep4.js} +10 -10
- package/dist/components/{p-D7KC-w81.js.map → p-BdJAlep4.js.map} +1 -1
- package/dist/components/{p-CpK4mw5O.js → p-BuX-_d2U.js} +3 -3
- package/dist/components/{p-CpK4mw5O.js.map → p-BuX-_d2U.js.map} +1 -1
- package/dist/components/{p-DTWaVEKo.js → p-BwymH8px.js} +53 -29
- package/dist/components/p-BwymH8px.js.map +1 -0
- package/dist/components/p-C00GqV9f.js.map +1 -1
- package/dist/components/{p-py-rQZsT.js → p-C9d-OiqW.js} +4 -4
- package/dist/components/p-C9d-OiqW.js.map +1 -0
- package/dist/components/p-CNDZcJZC.js +77 -0
- package/dist/components/p-CNDZcJZC.js.map +1 -0
- package/dist/components/p-CQr7nmKb.js +59 -0
- package/dist/components/p-CQr7nmKb.js.map +1 -0
- package/dist/components/p-CdEexh_g.js +84 -0
- package/dist/components/p-CdEexh_g.js.map +1 -0
- package/dist/components/{p-IGbuOsUA.js → p-CdL5cKO8.js} +4 -4
- package/dist/components/{p-IGbuOsUA.js.map → p-CdL5cKO8.js.map} +1 -1
- package/dist/components/p-ChfFmzMa.js +138 -0
- package/dist/components/p-ChfFmzMa.js.map +1 -0
- package/dist/components/{p-CnIzN0a9.js → p-CiKsFis4.js} +5 -5
- package/dist/components/{p-CnIzN0a9.js.map → p-CiKsFis4.js.map} +1 -1
- package/dist/components/{p-BlTHDG0s.js → p-CixKuBuL.js} +13 -13
- package/dist/components/{p-BlTHDG0s.js.map → p-CixKuBuL.js.map} +1 -1
- package/dist/components/{p-D1o9mMCC.js → p-CoH616os.js} +7 -25
- package/dist/components/p-CoH616os.js.map +1 -0
- package/dist/components/p-Cotorbsf.js +72 -0
- package/dist/components/p-Cotorbsf.js.map +1 -0
- package/dist/components/{p-GHcj9VUq.js → p-DIeSYRR1.js} +4 -4
- package/dist/components/{p-GHcj9VUq.js.map → p-DIeSYRR1.js.map} +1 -1
- package/dist/components/{p-D3p38qOI.js → p-DKOj6SYm.js} +4 -4
- package/dist/components/{p-D3p38qOI.js.map → p-DKOj6SYm.js.map} +1 -1
- package/dist/components/{p-D3GPRslH.js → p-DLF5DiJI.js} +10 -10
- package/dist/components/{p-D3GPRslH.js.map → p-DLF5DiJI.js.map} +1 -1
- package/dist/components/p-DOULSSR_.js +115 -0
- package/dist/components/p-DOULSSR_.js.map +1 -0
- package/dist/components/{p-CEGQ-SIb.js → p-Dc4pAKEn.js} +4 -4
- package/dist/components/{p-CEGQ-SIb.js.map → p-Dc4pAKEn.js.map} +1 -1
- package/dist/components/{p-RoGGAmRf.js → p-DeaQdy4U.js} +4 -4
- package/dist/components/{p-RoGGAmRf.js.map → p-DeaQdy4U.js.map} +1 -1
- package/dist/components/{p-8QmwtD0L.js → p-DkIrni0i.js} +9 -7
- package/dist/components/p-DkIrni0i.js.map +1 -0
- package/dist/components/p-DlVSEuX7.js +77 -0
- package/dist/components/p-DlVSEuX7.js.map +1 -0
- package/dist/components/p-DsRfjAri.js +77 -0
- package/dist/components/p-DsRfjAri.js.map +1 -0
- package/dist/components/p-DxZasSi4.js +91 -0
- package/dist/components/p-DxZasSi4.js.map +1 -0
- package/dist/components/p-TVDCAFDo.js +77 -0
- package/dist/components/p-TVDCAFDo.js.map +1 -0
- package/dist/components/{p-B9qKX3S0.js → p-V-QJ5j_K.js} +13 -9
- package/dist/components/p-V-QJ5j_K.js.map +1 -0
- package/dist/components/p-eh-K0ick.js +77 -0
- package/dist/components/p-eh-K0ick.js.map +1 -0
- package/dist/components/p-rAwrmsb9.js +75 -0
- package/dist/components/p-rAwrmsb9.js.map +1 -0
- package/dist/components/p-vll2Fgrb.js +160 -0
- package/dist/components/p-vll2Fgrb.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{ls-document-options_35.entry.js → ls-document-options_36.entry.js} +501 -129
- package/dist/esm/ls-document-options_36.entry.js.map +1 -0
- package/dist/esm/ls-document-viewer.js +1 -1
- package/dist/ls-document-viewer/defaultPalette-C00GqV9f.js.map +1 -1
- package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js +196 -0
- package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js.map +1 -0
- package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js +197 -0
- package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js.map +1 -0
- package/dist/ls-document-viewer/ls-document-viewer.entry.js +120 -15
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/ls-editor-field.entry.js +133 -0
- package/dist/ls-document-viewer/ls-field-properties-date.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-email.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-file.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-general.entry.js +32 -0
- package/dist/ls-document-viewer/ls-field-properties-image.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-number.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-text.entry.js +34 -0
- package/dist/ls-document-viewer/ls-statusbar.entry.js +57 -0
- package/dist/ls-document-viewer/{p-85c0f6fa.entry.js → p-022e8e6d.entry.js} +21 -6
- package/dist/ls-document-viewer/p-022e8e6d.entry.js.map +1 -0
- package/dist/types/components/ls-document-viewer/adapter/LsDocumentAdapter.d.ts +1 -0
- package/dist/types/components/ls-document-viewer/adapter/groupActions.d.ts +2 -0
- package/dist/types/components/ls-document-viewer/defaultFieldIcons.d.ts +5 -0
- package/dist/types/components/ls-document-viewer/editorUtils.d.ts +6 -1
- package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +2 -0
- package/dist/types/components/ls-field-footer/ls-field-footer.d.ts +14 -0
- package/dist/types/components/ls-field-properties-date/ls-field-properties-date.d.ts +2 -0
- package/dist/types/components/ls-field-properties-email/ls-field-properties-email.d.ts +2 -0
- package/dist/types/components/ls-field-properties-file/ls-field-properties-file.d.ts +2 -0
- package/dist/types/components/ls-field-properties-general/ls-field-properties-general.d.ts +2 -0
- package/dist/types/components/ls-field-properties-image/ls-field-properties-image.d.ts +2 -0
- package/dist/types/components/ls-field-properties-multiple/ls-field-properties-multiple.d.ts +14 -0
- package/dist/types/components/ls-field-properties-number/ls-field-properties-number.d.ts +2 -0
- package/dist/types/components/ls-field-properties-signature/ls-field-properties-signature.d.ts +5 -0
- package/dist/types/components/ls-field-properties-text/ls-field-properties-text.d.ts +2 -0
- package/dist/types/components/ls-participant-select/ls-participant-select.d.ts +2 -0
- package/dist/types/components/ls-toolbox-field/ls-toolbox-field.d.ts +4 -0
- package/dist/types/components.d.ts +119 -0
- package/dist/types/types/Icon.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/ls-document-options_35.cjs.entry.js.map +0 -1
- package/dist/components/p-8QmwtD0L.js.map +0 -1
- package/dist/components/p-B1Q1LddX.js +0 -49
- package/dist/components/p-B1Q1LddX.js.map +0 -1
- package/dist/components/p-B1X25Dz_.js +0 -49
- package/dist/components/p-B1X25Dz_.js.map +0 -1
- package/dist/components/p-B9qKX3S0.js.map +0 -1
- package/dist/components/p-BI9SKPKN.js +0 -51
- package/dist/components/p-BI9SKPKN.js.map +0 -1
- package/dist/components/p-BNKSb1yR.js +0 -49
- package/dist/components/p-BNKSb1yR.js.map +0 -1
- package/dist/components/p-BxXqIouU.js +0 -49
- package/dist/components/p-BxXqIouU.js.map +0 -1
- package/dist/components/p-C93Q3D_9.js +0 -49
- package/dist/components/p-C93Q3D_9.js.map +0 -1
- package/dist/components/p-CF583nkL.js +0 -99
- package/dist/components/p-CF583nkL.js.map +0 -1
- package/dist/components/p-CTraMHE_.js +0 -49
- package/dist/components/p-CTraMHE_.js.map +0 -1
- package/dist/components/p-CgRZ91kw.js +0 -124
- package/dist/components/p-CgRZ91kw.js.map +0 -1
- package/dist/components/p-CjicL5jA.js.map +0 -1
- package/dist/components/p-Ct78kJaE.js +0 -49
- package/dist/components/p-Ct78kJaE.js.map +0 -1
- package/dist/components/p-D1o9mMCC.js.map +0 -1
- package/dist/components/p-D4wPRNKc.js +0 -86
- package/dist/components/p-D4wPRNKc.js.map +0 -1
- package/dist/components/p-DC7lKZUf.js +0 -49
- package/dist/components/p-DC7lKZUf.js.map +0 -1
- package/dist/components/p-DTWaVEKo.js.map +0 -1
- package/dist/components/p-DtHDNV_x.js.map +0 -1
- package/dist/components/p-Dxupmj0q.js +0 -63
- package/dist/components/p-Dxupmj0q.js.map +0 -1
- package/dist/components/p-RFw2Bsri.js +0 -72
- package/dist/components/p-RFw2Bsri.js.map +0 -1
- package/dist/components/p-pHw5Xziq.js +0 -154
- package/dist/components/p-pHw5Xziq.js.map +0 -1
- package/dist/components/p-py-rQZsT.js.map +0 -1
- package/dist/esm/ls-document-options_35.entry.js.map +0 -1
- package/dist/ls-document-viewer/editorUtils-DbS95k5h.js.map +0 -1
- package/dist/ls-document-viewer/ls-document-viewer.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-document-viewer.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-85c0f6fa.entry.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorUtils-DsvPQaAu.js","sources":["src/components/ls-document-viewer/editorUtils.ts"],"sourcesContent":["/**\n * These utils are used to make document-viewer more readable\n * but they must be called using the bind() function so that\n * all code is executed within the correct 'this' scope.\n *\n * Avoid using arrow functions here as they reassign \"thiss\"\n */\n\nimport { LSApiElement } from '../../types/LSApiElement';\nimport { LSMutateEvent } from '../../types/LSMutateEvent';\nimport { ValidationType } from '../../types/ValidationType';\n\n/**\n * Determines if an element will be plotted out of bounds, i.e. off\n * the page.\n */\nexport function oob(obj: LSApiElement): boolean {\n if (obj.left + obj.width > obj.pageDimensions.width || obj.top < 0 || obj.left < 0 || obj.top + obj.height > obj.pageDimensions.height) return true;\n else return false;\n}\n\nexport function alter(diffFn) {\n const diffs: LSMutateEvent[] = this.selected.map(c => {\n return { action: 'update', data: diffFn(c.dataItem) as LSApiElement };\n });\n this.mutate.emit(diffs);\n this.update.emit(diffs);\n}\n\nexport function resetDataItems() {\n const fields = this.component.shadowRoot.querySelectorAll('ls-editor-field') as HTMLLsEditorFieldElement[];\n this.selected = Array.from(fields).filter(fx => fx.selected);\n this.selectFields.emit(this.selected.map(fx => fx.dataItem));\n}\n\nexport function debounce(func, timeout = 300) {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => {\n func.apply(this, args);\n }, timeout);\n };\n}\n\n// if a mutation has created a new id then update the dataitem with OLD id to the new one\nexport function matchData(data: { result: any; obj: any; event: LSMutateEvent }) {\n const newObj = data.result;\n const prefix = atob(data.obj.id).substring(0, 3);\n // because mutations return the ID back with the mutation name we just assume its the first (and only) JSON prop\n const id = newObj[Object.keys(newObj)[0]];\n\n if (data.event.action === 'create') {\n if (prefix === 'ele') {\n const fi = this.component.shadowRoot.getElementById('ls-field-' + data.obj.id) as HTMLLsEditorFieldElement;\n\n fi.setAttribute('id', 'ls-field-' + id);\n fi.dataItem = { ...data.obj, id };\n } else if (prefix === 'rol') {\n var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager') as HTMLLsParticipantManagerElement;\n // Note this respread ensures that re-renders are triggered\n this._template = { ...this._template, roles: [...this._template.roles, { ...data.obj, id }] };\n participantManager.template = this._template;\n }\n } else if (data.event.action === 'delete') {\n if (prefix === 'rol') {\n var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager') as HTMLLsParticipantManagerElement;\n this._template = { ...this._template, roles: this._template.roles.filter(r => r.id !== id) };\n participantManager.template = this._template;\n }\n }\n}\n\n// Utility function which extracts the type from any API id\nexport function getApiType(obj: any) {\n if (!obj?.id) return 'invalid';\n\n const apiId = atob(obj.id);\n if (apiId.length < 3) return 'invalid';\n\n const prefix = atob(obj.id).substring(0, 3);\n\n switch (prefix) {\n case 'ele':\n return 'element';\n case 'rol':\n return 'role';\n case 'tpl':\n return 'template';\n case 'doc':\n return 'document';\n default:\n return 'unknown';\n }\n}\n\nexport const validationTypes: any = [\n { id: 0, description: 'general purpose', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 30, description: 'yyyy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 31, description: 'yy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 32, description: 'dd/mm/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 33, description: 'dd/mm/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 34, description: 'mm/dd/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 35, description: 'mm/dd/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 36, description: 'yyyy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 37, description: 'yy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 38, description: 'dd.mm.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 39, description: 'dd.mm.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 40, description: 'mm.dd.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 41, description: 'mm.dd.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 42, description: 'yyyy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 43, description: 'yy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 44, description: 'dd-mm-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 45, description: 'dd-mm-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 46, description: 'mm-dd-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 47, description: 'mm-dd-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 48, description: 'd mmmm yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 73, description: 'Secret Code', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 77, description: 'Title caps (force text to title caps)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 78, description: 'Uppercase (force text to uppercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 79, description: 'Lowercase (force text to lowercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 65, description: '1 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 66, description: '2 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 67, description: '3 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 68, description: '4 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 69, description: '5 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 70, description: '6 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 71, description: '7 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 72, description: '8 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 1000, description: 'First name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1001, description: 'Last name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1, description: 'Email', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1002, description: 'Email field (special use)', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 50, description: 'Whole number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'number' },\n { id: 51, description: 'Number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 52, description: 'Currency', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 53, description: '1 number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 54, description: '2 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 55, description: '3 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 56, description: '4 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 57, description: '5 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 58, description: '6 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 59, description: '7 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 60, description: '8 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 61, description: '9 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 62, description: '10 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 63, description: '11 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 64, description: '12 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 2, description: 'yyyy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },\n { id: 3, description: 'yy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 4, description: 'dd/mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },\n { id: 5, description: 'dd/mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 6, description: 'mm/dd/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 7, description: 'mm/dd/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 80, description: 'mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 81, description: 'mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 8, description: 'yyyy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 9, description: 'yy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 10, description: 'dd.mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 11, description: 'dd.mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 12, description: 'mm.dd.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 13, description: 'mm.dd.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 82, description: 'mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 83, description: 'mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 14, description: 'yyyy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 15, description: 'yy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 16, description: 'dd-mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 17, description: 'dd-mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 18, description: 'mm-dd-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 19, description: 'mm-dd-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 84, description: 'mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 85, description: 'mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 20, description: 'Dropdown List', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 91, description: 'Countries', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 92, description: 'Name prefix titles', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 24, description: '✔/✗', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 25, description: '✔/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: 'text' },\n { id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n {\n id: 76,\n description: 'File: zip with PDF (for internal view, signed PDF for signer)',\n formType: 'file',\n defaultHeight: 16,\n defaultWidth: 200,\n typeDefault: false,\n inputType: 'text',\n },\n { id: 90, description: 'Drawn field.', formType: 'drawn field', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 2000, description: 'Initials', formType: 'initials', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 93, description: 'Regular Expression field', formType: 'regular expression', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 3000, description: 'Auto Sign', formType: 'auto sign', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 4000, description: 'Text Area', formType: 'textarea', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'readonly' },\n];\n\n// See validation table in database for latest values - these have to be hard coded for our HTML control - ASW\nexport function getInputType(validation: number): ValidationType {\n if (validation === null) return validationTypes[0];\n\n const inputType: ValidationType = validationTypes.find(v => v.id === validation);\n\n return inputType === null ? validationTypes[0] : inputType;\n}\n"],"names":[],"mappings":"AAAA;;;;;;AAMG;AAMH;;;AAGG;AACG,SAAU,GAAG,CAAC,GAAiB,EAAA;AACnC,IAAA,IAAI,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,cAAc,CAA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A;IAC7C,IAAI,UAAU,KAAK,IAAI;AAAE,QAAA,OAAO,eAAe,CAAC,CAAC,CAAC;AAElD,IAAA,MAAM,SAAS,GAAmB,eAAe,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC;AAEhF,IAAA,OAAO,SAAS,KAAK,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS;AAC5D;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, d as getElement, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
2
|
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
3
|
-
import { a as alter, o as oob, m as matchData, g as getApiType } from './editorUtils-
|
|
3
|
+
import { a as alter, o as oob, m as matchData, g as getApiType } from './editorUtils-DsvPQaAu.js';
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
@@ -19967,7 +19967,7 @@ function addField(frame, data) {
|
|
|
19967
19967
|
node.style.left = Math.floor(data.left * this.zoom) + 'px';
|
|
19968
19968
|
node.style.height = Math.floor(data.height * this.zoom) + 'px';
|
|
19969
19969
|
node.style.width = Math.floor(data.width * this.zoom) + 'px';
|
|
19970
|
-
node.style.fontSize = Math.floor(data.fontSize) + 'pt';
|
|
19970
|
+
node.style.fontSize = Math.floor(data.fontSize * this.zoom) + 'pt';
|
|
19971
19971
|
node.style.alignContent = data.align;
|
|
19972
19972
|
node.style.fontFamily = data.fontName;
|
|
19973
19973
|
node.dataItem = data;
|
|
@@ -19980,7 +19980,7 @@ function moveField(item, data) {
|
|
|
19980
19980
|
item.style.left = Math.floor(data.left * this.zoom) + 'px';
|
|
19981
19981
|
item.style.height = Math.floor(data.height * this.zoom) + 'px';
|
|
19982
19982
|
item.style.width = Math.floor(data.width * this.zoom) + 'px';
|
|
19983
|
-
item.style.fontSize = Math.floor(data.fontSize) + 'pt';
|
|
19983
|
+
item.style.fontSize = Math.floor(data.fontSize * this.zoom) + 'pt';
|
|
19984
19984
|
item.style.fontFamily = data.fontName;
|
|
19985
19985
|
item.style.textAlign = data.align;
|
|
19986
19986
|
item.dataItem = data;
|
|
@@ -24337,7 +24337,7 @@ const swapRoles = (roleId1, roleId2) => {
|
|
|
24337
24337
|
};
|
|
24338
24338
|
|
|
24339
24339
|
// Add a role
|
|
24340
|
-
const updateTemplate =
|
|
24340
|
+
const updateTemplate = template => {
|
|
24341
24341
|
return `
|
|
24342
24342
|
mutation updateTemplate {
|
|
24343
24343
|
updateTemplate(input: {
|
|
@@ -24370,9 +24370,15 @@ const getTemplate = (id) => {
|
|
|
24370
24370
|
createdBy
|
|
24371
24371
|
lastSent
|
|
24372
24372
|
fixSignatureScale
|
|
24373
|
+
groupId
|
|
24373
24374
|
roles{
|
|
24374
24375
|
id
|
|
24376
|
+
name
|
|
24377
|
+
roleType
|
|
24375
24378
|
signerIndex
|
|
24379
|
+
ordinal
|
|
24380
|
+
signerParent
|
|
24381
|
+
experience
|
|
24376
24382
|
}
|
|
24377
24383
|
elementConnection {
|
|
24378
24384
|
templateElements {
|
|
@@ -24473,7 +24479,7 @@ class LsDocumentAdapter {
|
|
|
24473
24479
|
break;
|
|
24474
24480
|
}
|
|
24475
24481
|
const result = await this.execute(accessToken, query);
|
|
24476
|
-
return { result, obj };
|
|
24482
|
+
return { result, obj, event };
|
|
24477
24483
|
};
|
|
24478
24484
|
/**
|
|
24479
24485
|
* Run a general query or mutation against the GraphQL API.
|
|
@@ -24500,7 +24506,102 @@ class LsDocumentAdapter {
|
|
|
24500
24506
|
}
|
|
24501
24507
|
}
|
|
24502
24508
|
|
|
24503
|
-
const
|
|
24509
|
+
const getGroupData = (id) => {
|
|
24510
|
+
return `
|
|
24511
|
+
query getGroupData {
|
|
24512
|
+
group(id: "${id}"){
|
|
24513
|
+
id
|
|
24514
|
+
standardMessageConnection{
|
|
24515
|
+
messages {
|
|
24516
|
+
id
|
|
24517
|
+
name
|
|
24518
|
+
default
|
|
24519
|
+
body
|
|
24520
|
+
created
|
|
24521
|
+
modified
|
|
24522
|
+
}
|
|
24523
|
+
}
|
|
24524
|
+
scheduleConnection {
|
|
24525
|
+
schedules {
|
|
24526
|
+
id
|
|
24527
|
+
name
|
|
24528
|
+
items {
|
|
24529
|
+
id
|
|
24530
|
+
daysAfter
|
|
24531
|
+
frequency
|
|
24532
|
+
subject
|
|
24533
|
+
message
|
|
24534
|
+
when
|
|
24535
|
+
timeOfDay
|
|
24536
|
+
skipWeekend
|
|
24537
|
+
}
|
|
24538
|
+
default
|
|
24539
|
+
}
|
|
24540
|
+
}
|
|
24541
|
+
experienceConnection{
|
|
24542
|
+
experiences {
|
|
24543
|
+
id
|
|
24544
|
+
name
|
|
24545
|
+
language
|
|
24546
|
+
defaultExperience
|
|
24547
|
+
witnessSameDevice
|
|
24548
|
+
allowSignatureReuse
|
|
24549
|
+
attachDraft
|
|
24550
|
+
canReassign
|
|
24551
|
+
defaultReminderSubject
|
|
24552
|
+
defaultSubject
|
|
24553
|
+
finalSignerEmailSubHeader
|
|
24554
|
+
finalSignerEmailText
|
|
24555
|
+
footerTextColour
|
|
24556
|
+
forwarding
|
|
24557
|
+
penDiameter
|
|
24558
|
+
postSignAttach
|
|
24559
|
+
postSignEmail
|
|
24560
|
+
rejectedEmailSubheader
|
|
24561
|
+
senderName
|
|
24562
|
+
signatureAppendDate
|
|
24563
|
+
signatureDoneText
|
|
24564
|
+
signatureMouse
|
|
24565
|
+
signatureType
|
|
24566
|
+
signatureCertifiedType
|
|
24567
|
+
signatureUpload
|
|
24568
|
+
signatureAppend
|
|
24569
|
+
signatureAppendExtra
|
|
24570
|
+
signingPageText
|
|
24571
|
+
textBackgroundColour
|
|
24572
|
+
textFontColour
|
|
24573
|
+
typedSignatureFixedSize
|
|
24574
|
+
created
|
|
24575
|
+
modified
|
|
24576
|
+
witnessingRequiresSignerSMS
|
|
24577
|
+
witnessingRequiresWitnessSMS
|
|
24578
|
+
}
|
|
24579
|
+
}
|
|
24580
|
+
attachmentConnection {
|
|
24581
|
+
attachments {
|
|
24582
|
+
id
|
|
24583
|
+
filename
|
|
24584
|
+
autoAttach
|
|
24585
|
+
description
|
|
24586
|
+
created
|
|
24587
|
+
}
|
|
24588
|
+
}
|
|
24589
|
+
contactConnection {
|
|
24590
|
+
contacts{
|
|
24591
|
+
id
|
|
24592
|
+
firstName
|
|
24593
|
+
lastName
|
|
24594
|
+
email
|
|
24595
|
+
phoneNumber
|
|
24596
|
+
name
|
|
24597
|
+
}
|
|
24598
|
+
}
|
|
24599
|
+
}
|
|
24600
|
+
}
|
|
24601
|
+
`;
|
|
24602
|
+
};
|
|
24603
|
+
|
|
24604
|
+
const lsDocumentViewerCss = "*,*::before,*::after{box-sizing:border-box}*{margin:0}@media (prefers-reduced-motion: no-preference){html{interpolate-size:allow-keywords}}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}#root,#__next{isolation:isolate}:host{display:flex;flex-direction:row;width:100vw;height:100vh;margin:0px;padding:0px}#my-field-panel{position:relative;height:calc(100% - 4.313rem)}.leftBox{border-radius:16px;border:1px solid var(--gray-30, #edeff2);background:var(--white, #fff);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);width:21.25rem;margin:1rem;min-width:21.25rem;max-height:100%}.left-box-inner{position:relative;display:flex;height:100%;padding:0.75rem;gap:0.75rem}.rightBox{width:200px;border:1px gray solid;width:470px;min-width:390px;padding:4px;font-family:inherit}.toolbox{display:flex;flex-direction:column;width:100%;height:100%;border-radius:8px;border:1px solid var(--gray-30, #e0e2e5);background:var(--gray-10, #f7f8fa);padding:0.75rem;gap:1rem;overflow-y:auto}.ls-editor-infobox{padding:2px 8px 2px 8px}#pdf-canvas{top:0px;left:0px;width:100px;height:100px}#ls-mid-area{display:flex;flex-direction:column;width:100%}.document-frame-wrapper{position:relative;padding:0 1.25rem;height:100%;display:flex;flex-direction:column;justify-content:start;align-items:center;overflow-y:auto}.spacer{min-height:5.5rem;width:100%}#ls-document-frame{position:relative;height:98vh;max-width:100%;max-height:100%;margin:0px;padding:2px;scrollbar-width:auto;scrollbar-color:auto}.prevButton{position:relative;bottom:30px}.nextButton{position:relative;bottom:30px}.fieldBox{z-index:1000}#ls-box-selector{position:absolute;visibility:hidden;background-color:transparent;border:1px rgba(71, 71, 71, 0.716) dashed}#ls-editor-form{display:flex;width:100vw;max-height:calc(100vh - 2.25rem);position:relative;background:var(--gray-10, #f7f8fa);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.04) inset, 0 10px 15px 0 rgba(0, 0, 0, 0.04) inset}.hidden{visibility:hidden;display:none;width:0px}.toolbox-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;}.toolbox-section-description{color:var(--gray-80, #5e6066);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.fields-box{display:flex;flex-direction:column;gap:0.75rem}.page-header{display:flex;height:2.25rem;gap:0.5rem;padding:0.25rem 0.75rem;justify-content:center;align-items:center}.header-text-1{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.header-text-2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.properties-header{display:flex;padding:1rem;gap:0.75rem;align-items:center;border-bottom:1px solid var(--gray-20, #edeff2)}.properties-header-title{color:var(--gray-100, #45484d);width:100%;font-size:1.5rem;font-style:normal;font-weight:500;line-height:2rem;}.properties-header-icon{display:flex;padding:0.5rem;border-radius:0.625rem;background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.expand-fields-row{display:flex;align-items:center;gap:0.5rem;padding:0.5rem;cursor:pointer;color:var(--gray-80, #6c6e73);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.expand-fields-row p{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem;}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px}.input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.field-properties-outer{position:relative;height:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
24504
24605
|
|
|
24505
24606
|
pdfExports.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.5.207/pdf.worker.min.js';
|
|
24506
24607
|
const LsDocumentViewer = class {
|
|
@@ -24556,6 +24657,7 @@ const LsDocumentViewer = class {
|
|
|
24556
24657
|
pageNum = 1; // hardcoded to start at the page 1
|
|
24557
24658
|
signer = 0; // hardcoded to start at the page 1
|
|
24558
24659
|
_template;
|
|
24660
|
+
_group;
|
|
24559
24661
|
selected;
|
|
24560
24662
|
/**
|
|
24561
24663
|
* An ease of use property that will arrange document-viewer appropraitely.
|
|
@@ -24665,10 +24767,7 @@ const LsDocumentViewer = class {
|
|
|
24665
24767
|
mutateHandler(event) {
|
|
24666
24768
|
console.log(event);
|
|
24667
24769
|
if (this.token)
|
|
24668
|
-
event.detail.forEach(me => this.adapter.handleEvent(me, this.token).then(result =>
|
|
24669
|
-
if (me.action === "create")
|
|
24670
|
-
matchData.bind(this)(result);
|
|
24671
|
-
}));
|
|
24770
|
+
event.detail.forEach(me => this.adapter.handleEvent(me, this.token).then(result => matchData.bind(this)(result)));
|
|
24672
24771
|
}
|
|
24673
24772
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
24674
24773
|
updateHandler(event) {
|
|
@@ -24677,6 +24776,7 @@ const LsDocumentViewer = class {
|
|
|
24677
24776
|
}
|
|
24678
24777
|
// Send selection changes to bars and panels if in use.
|
|
24679
24778
|
selectFieldsHandler(event) {
|
|
24779
|
+
console.log(event.detail);
|
|
24680
24780
|
var toolbar = this.component.shadowRoot.getElementById('ls-toolbar');
|
|
24681
24781
|
if (toolbar)
|
|
24682
24782
|
toolbar.dataItem = event.detail;
|
|
@@ -24760,6 +24860,7 @@ const LsDocumentViewer = class {
|
|
|
24760
24860
|
elementConnection: { ...newTemplate.elementConnection, templateElements: fields },
|
|
24761
24861
|
roles: preparedRoles,
|
|
24762
24862
|
};
|
|
24863
|
+
console.log(this._template);
|
|
24763
24864
|
}
|
|
24764
24865
|
/**
|
|
24765
24866
|
* Render the page based on pageNumber
|
|
@@ -24818,7 +24919,6 @@ const LsDocumentViewer = class {
|
|
|
24818
24919
|
}
|
|
24819
24920
|
// internal forced change
|
|
24820
24921
|
syncChange(update) {
|
|
24821
|
-
console.log('sync');
|
|
24822
24922
|
if (getApiType(update.data) === 'element') {
|
|
24823
24923
|
if (update.action === 'create') {
|
|
24824
24924
|
const newData = { ...update.data, page: this.pageNum };
|
|
@@ -24885,10 +24985,12 @@ const LsDocumentViewer = class {
|
|
|
24885
24985
|
});
|
|
24886
24986
|
}
|
|
24887
24987
|
async load() {
|
|
24988
|
+
// Get all template and group listing data.
|
|
24888
24989
|
try {
|
|
24889
24990
|
const result = (await this.adapter.execute(this.token, getTemplate(this.templateid)));
|
|
24890
24991
|
this.parseTemplate(JSON.stringify(result.template));
|
|
24891
|
-
|
|
24992
|
+
const resultGroup = (await this.adapter.execute(this.token, getGroupData(this._template.groupId)));
|
|
24993
|
+
this._group = resultGroup.group;
|
|
24892
24994
|
this.initViewer();
|
|
24893
24995
|
}
|
|
24894
24996
|
catch (e) {
|
|
@@ -24899,8 +25001,11 @@ const LsDocumentViewer = class {
|
|
|
24899
25001
|
if (this.token && !this._template)
|
|
24900
25002
|
this.load();
|
|
24901
25003
|
}
|
|
25004
|
+
signerColor = (index) => {
|
|
25005
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25006
|
+
};
|
|
24902
25007
|
render() {
|
|
24903
|
-
return (h(Host, { key: '
|
|
25008
|
+
return (h(Host, { key: '768e8a0459e73e7596f5a848c5906e69d4fb2358' }, h(h.Fragment, null, h("div", { key: 'bc327708099dd0f2898413e8113b4c23d7551f32', class: "page-header" }, h("p", { key: '23928c2ef291e66ca86c7531202e02ac0b63b3d7', class: "header-text-1" }, "Template Creation"), h("p", { key: 'bc19430aa06d53ade53308d675682330ae06c213' }, "/"), h("p", { key: '796ec21ba15176e415296bc5732ee0995aeb1dff', class: "header-text-2" }, "Template Name")), h("form", { key: '49ff8acf345baeafbd27845a8802842785e412bb', id: "ls-editor-form" }, this.showtoolbox === true ? (h("div", { class: "leftBox" }, h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, h("ls-feature-column", { onManage: manager => {
|
|
24904
25009
|
if (manager.detail === 'document') {
|
|
24905
25010
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
24906
25011
|
documentManager.template = this._template;
|
|
@@ -24910,10 +25015,10 @@ const LsDocumentViewer = class {
|
|
|
24910
25015
|
participantManager.template = this._template;
|
|
24911
25016
|
}
|
|
24912
25017
|
this.manager = manager.detail;
|
|
24913
|
-
} }), h("div", { id: "ls-toolbox", class: this.manager === 'toolbox' ? 'toolbox' : 'hidden' }, h("div", { class: "ls-editor-infobox" }, h("h2", { class: "toolbox-section-title" }, "Participant Fields"), h("p", { class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), h("div", { class: "fields-box" }, h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: "Signature", defaultHeight: 27, defaultWidth: 120, validation: 0, icon: "signature" }), h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials" }), h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender" }), h("ls-toolbox-field", { elementType: "signing date", formElementType: "signing date", label: "Signing Date", defaultHeight: 27, defaultWidth: 120, validation: 30, icon: "auto-date" }), h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol" }), h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text" }), h("div", { class: 'expand-fields-row' }, h("ls-icon", { name: this.expandfields ? 'expand' : 'collapse', size: "20", solid: true
|
|
25018
|
+
} }), h("div", { id: "ls-toolbox", class: this.manager === 'toolbox' ? 'toolbox' : 'hidden' }, h("div", { class: "ls-editor-infobox" }, h("h2", { class: "toolbox-section-title" }, "Participant Fields"), h("p", { class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), h("div", { class: "fields-box" }, this.signer > 0 ? (h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: "Signature", defaultHeight: 27, defaultWidth: 120, validation: 0, icon: "signature", color: this.signerColor(this.signer) })) : (h("ls-toolbox-field", { elementType: "auto sign", formElementType: "auto sign", label: "Auto Sign", defaultHeight: 27, defaultWidth: 120, validation: 3000, icon: "auto-sign", color: this.signerColor(this.signer) })), h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "signing date", formElementType: "signing date", label: "Signing Date", defaultHeight: 27, defaultWidth: 120, validation: 30, icon: "auto-date", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text", color: this.signerColor(this.signer) }), h("div", { class: 'expand-fields-row', onClick: () => (this.expandfields = !this.expandfields) }, h("ls-icon", { name: this.expandfields ? 'expand' : 'collapse', size: "20", solid: true }), h("p", null, "More Field Types")), this.expandfields && (h("div", { class: "fields-box" }, h("ls-toolbox-field", { elementType: "number", formElementType: "number", label: "Number", defaultHeight: 27, defaultWidth: 80, validation: 50, icon: "hashtag", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "checkbox", formElementType: "checkbox", label: "Checkbox", defaultHeight: 27, defaultWidth: 27, validation: 25, icon: "check", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "regex", formElementType: "regex", label: "Regex", defaultHeight: 27, defaultWidth: 120, validation: 93, icon: "code", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "image", formElementType: "image", label: "Image", defaultHeight: 27, defaultWidth: 120, validation: 90, icon: "photograph", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "file", formElementType: "file", label: "File", defaultHeight: 27, defaultWidth: 120, validation: 74, icon: "upload", color: this.signerColor(this.signer) }))))), h("ls-participant-manager", { id: "ls-participant-manager", class: this.manager === 'participant' ? 'toolbox' : 'hidden', editor: this }), h("ls-document-options", { id: "ls-document-options", class: this.manager === 'document' ? 'toolbox' : 'hidden' })), this.showrightpanel && !this.displayTable && (h("div", { class: this.selected && this.selected.length > 0 ? 'field-properties-outer' : 'hidden' }, h("div", { class: 'properties-header' }, h("div", { class: 'properties-header-icon' }, h("ls-icon", { name: "pre-filled-content" })), h("h1", { class: 'properties-header-title' }, "Field Properties"), h("button", { class: 'tertiaryGrey', onClick: e => {
|
|
24914
25019
|
this.selected = [];
|
|
24915
25020
|
e.preventDefault();
|
|
24916
|
-
} }, h("ls-icon", { name: "x", size: "20" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("div", { key: '
|
|
25021
|
+
} }, h("ls-icon", { name: "x", size: "20" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("div", { key: '2f339f0697bb3079e0cdbb0898ba358d9f7bf055', id: "ls-mid-area" }, h("ls-toolbar", { key: '047d4c71fb4abea6f89873bb41ac977e60b9e1f0', id: "ls-toolbar", dataItem: this.selected ? this.selected.map(s => s.dataItem) : null, template: this._template }), h("div", { key: '55615112a3e757c8964bfcf03f914ca94da72d40', class: 'document-frame-wrapper' }, h("div", { key: 'd80573209375ec7ffa472b4c6689c96120c82aaf', class: 'spacer' }), h("div", { key: 'd39340605b1102086a41059f7b4406022f6538c9', id: "ls-document-frame" }, h("canvas", { key: '59b771bef83f1a33614904ec292740699e70dc1a', id: "pdf-canvas", class: this.displayTable ? 'hidden' : '' }), h("ls-editor-table", { key: '6172c1dcee86faf9a18a81f5b5ff5b9c67b9f2b9', editor: this, class: this.displayTable ? '' : 'hidden' }), h("div", { key: 'b651415f6071083ea34c678f15fe389d2ce4f6a0', id: "ls-box-selector" }))), h("ls-statusbar", { key: '245449406c2c2402d0eb36b6008925d8a7997caa', editor: this }))))));
|
|
24917
25022
|
}
|
|
24918
25023
|
static get watchers() { return {
|
|
24919
25024
|
"mode": ["modeHandler"],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,g as t,b as a}from"./p-BwkWPcyG.js";export{s as setNonce}from"./p-BwkWPcyG.js";var l=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};l().then((async e=>{await t();return a([["p-
|
|
1
|
+
import{p as e,g as t,b as a}from"./p-BwkWPcyG.js";export{s as setNonce}from"./p-BwkWPcyG.js";var l=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};l().then((async e=>{await t();return a([["p-022e8e6d",[[257,"ls-document-viewer",{template:[1],token:[1],templateid:[1],zoom:[1026],pageNum:[1026,"page-num"],signer:[1026],mode:[1],manager:[1025],displayTable:[1028,"display-table"],showtoolbox:[4],showtoolbar:[4],showstatusbar:[4],showpagepreview:[4],showrightpanel:[4],expandfields:[4],readonly:[4],showtableview:[4],toolboxFilter:[1,"toolbox-filter"],roleColors:[16,"role-colors"],_template:[32],_group:[32],selected:[32],pageNext:[64],pagePrev:[64],setZoom:[64]},[[0,"mutate","mutateHandler"],[0,"update","updateHandler"],[0,"selectFields","selectFieldsHandler"],[0,"roleChange","roleHandler"]],{mode:["modeHandler"],displayTable:["tableViewHandler"]}],[257,"ls-field-properties",{dataItem:[16,"data-item"]}],[257,"ls-document-options",{template:[16]},null,{template:["selectedHandler"]}],[257,"ls-toolbar",{dataItem:[1040,"data-item"],template:[16],editor:[16]}],[257,"ls-feature-column",{manager:[1025]}],[257,"ls-participant-manager",{editor:[16],template:[16]}],[257,"ls-statusbar",{zoom:[1026],editor:[16]}],[257,"ls-toolbox-field",{formElementType:[1,"form-element-type"],elementType:[1,"element-type"],validation:[2],label:[1],icon:[1],defaultHeight:[2,"default-height"],defaultWidth:[2,"default-width"],color:[1]},[[1,"dragstart","handleDragStart"],[0,"keydown","handleKeyDown"]]],[257,"ls-editor-field",{dataItem:[1040,"data-item"],selected:[4],readonly:[4],palette:[16],type:[1],page:[16],isEditing:[32],heldEdge:[32],isEdgeDragging:[32],innerValue:[32]},[[0,"keydown","handleInput"],[3,"mousemove","handleMouseMove"],[2,"dblclick","handleDoubleClick"],[0,"dragstart","handleDragStart"]],{selected:["watchSelectedHandler"]}],[257,"ls-editor-table",{editor:[16]}],[257,"ls-field-properties-multiple",{dataItem:[16,"data-item"],fieldSet:[1,"field-set"]}],[260,"ls-formfield",{name:[1],fieldId:[1,"field-id"],label:[1],as:[1],value:[1032],placeholder:[1],descriptionText:[1,"description-text"],errorText:[1,"error-text"],aria:[1],inputRef:[1,"input-ref"],infoTooltipText:[1,"info-tooltip-text"],hoverTooltipText:[1,"hover-tooltip-text"],disabled:[4],extraLabel:[1,"extra-label"],required:[4],valid:[4],dirty:[4],count:[4],countMax:[2,"count-max"],buttonClick:[16,"button-click"],buttonIcon:[1,"button-icon"],labelIcon:[1,"label-icon"],fieldIcon:[1,"field-icon"],_value:[32]},null,{value:["valueWatcher"]}],[257,"ls-field-properties-signature",{dataItem:[1040,"data-item"],fieldSet:[1,"field-set"]}],[257,"ls-field-properties-date",{dataItem:[16,"data-item"],fieldSet:[1,"field-set"]}],[257,"ls-field-properties-email",{dataItem:[16,"data-item"],fieldSet:[1,"field-set"]}],[257,"ls-field-properties-file",{dataItem:[16,"data-item"],fieldSet:[1,"field-set"]}],[257,"ls-field-properties-general",{dataItem:[16,"data-item"],fieldSet:[1,"field-set"]}],[257,"ls-field-properties-image",{dataItem:[16,"data-item"],fieldSet:[1,"field-set"]}],[257,"ls-field-properties-number",{dataItem:[16,"data-item"],fieldSet:[1,"field-set"]}],[257,"ls-field-properties-text",{dataItem:[16,"data-item"],fieldSet:[1,"field-set"]}],[257,"ls-field-properties-autosign",{dataItem:[16,"data-item"]}],[257,"ls-field-format",{dataItem:[1040,"data-item"]}],[257,"ls-participant-select",{dataItem:[1040,"data-item"],roles:[16],selectedRole:[32],isOpen:[32]}],[257,"ls-field-alignment",{dataItem:[1040,"data-item"]}],[257,"ls-field-distribute",{dataItem:[1040,"data-item"]}],[257,"ls-field-size",{dataItem:[1040,"data-item"]}],[257,"ls-number-input",{type:[1],name:[1],value:[1026],placeholder:[1],aria:[1],inputRef:[1,"input-ref"],disabled:[4],required:[4],valid:[4],dirty:[4],countMax:[2,"count-max"],buttonClick:[8,"button-click"],buttonIcon:[1,"button-icon"],fieldIcon:[1,"field-icon"]}],[256,"ls-radio-input",{radioId:[1,"radio-id"],label:[1],icon:[1],name:[1],checked:[4],disabled:[4],customStyle:[16,"custom-style"]}],[260,"ls-select-input",{name:[1],value:[1],aria:[1],inputRef:[1,"input-ref"],disabled:[4],displayOnly:[4,"display-only"],required:[4],valid:[4],dirty:[4],buttonClick:[8,"button-click"],buttonIcon:[1,"button-icon"],fieldIcon:[1,"field-icon"]}],[257,"ls-text-input",{type:[1],name:[1],value:[1025],placeholder:[1],aria:[1],inputRef:[1,"input-ref"],disabled:[4],required:[4],valid:[4],dirty:[4],countMax:[2,"count-max"],buttonClick:[8,"button-click"],buttonIcon:[1,"button-icon"],fieldIcon:[1,"field-icon"],showPassword:[32]}],[257,"ls-textarea-input",{name:[1],value:[1],placeholder:[1],aria:[1],inputRef:[1,"input-ref"],disabled:[4],displayOnly:[4,"display-only"],required:[4],valid:[4],dirty:[4],countMax:[2,"count-max"],buttonClick:[8,"button-click"],buttonIcon:[1,"button-icon"],fieldIcon:[1,"field-icon"]}],[257,"ls-field-footer",{dataItem:[1040,"data-item"]}],[257,"ls-field-placement",{dataItem:[1040,"data-item"]}],[257,"ls-field-dimensions",{dataItem:[1040,"data-item"]}],[257,"ls-toggle"],[257,"ls-icon",{name:[1],solid:[4],size:[1],customStyle:[16,"custom-style"]}]]]],e)}));
|
|
2
2
|
//# sourceMappingURL=ls-document-viewer.esm.js.map
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { r as registerInstance, d as getElement, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
+
import { b as getInputType } from './editorUtils-DsvPQaAu.js';
|
|
3
|
+
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
4
|
+
|
|
5
|
+
const lsEditorFieldCss = ":host{display:block;position:absolute;margin:0px;padding:0px 0px 0px 0px;isolation:isolate}.ls-editor-field-editable{display:block;font-family:inherit;font-size:inherit;overflow:hidden;white-space:nowrap;margin:0;padding:0px 0px 0px 0px;min-width:2em;height:100%;width:100%}.ls-editor-field{opacity:0.7}.ls-editor-field-editable:focus{outline:none}.ls-editor-field-draggable{display:block;font-family:inherit;font-size:inherit;overflow:hidden;white-space:nowrap;min-width:2px;height:98%;width:98%}.hidden-field{display:none}input{all:unset}.draggable-input{font-family:inherit;font-size:inherit;position:relative;height:95%;width:95%}.editing-input{caret-color:rgb(15 23 42);caret-shape:auto;height:100%;width:100%}";
|
|
6
|
+
|
|
7
|
+
const LsEditorField = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
get component() { return getElement(this); }
|
|
12
|
+
dataItem;
|
|
13
|
+
selected;
|
|
14
|
+
readonly;
|
|
15
|
+
palette;
|
|
16
|
+
type;
|
|
17
|
+
page;
|
|
18
|
+
isEditing = false;
|
|
19
|
+
heldEdge = null;
|
|
20
|
+
isEdgeDragging = false;
|
|
21
|
+
innerValue;
|
|
22
|
+
sizeObserver;
|
|
23
|
+
handleInput(e) {
|
|
24
|
+
if (e.code === 'Enter') {
|
|
25
|
+
this.isEditing = false;
|
|
26
|
+
this.sizeObserver.observe(this.component.shadowRoot.getElementById('field-info'));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
handleMouseMove(e) {
|
|
30
|
+
if (this.readonly)
|
|
31
|
+
return;
|
|
32
|
+
if (!e.clientX)
|
|
33
|
+
return;
|
|
34
|
+
// Determine which edge is being moved over and what cursor to show.
|
|
35
|
+
if (Math.abs(e.offsetX) < 5) {
|
|
36
|
+
this.component.style.cursor = 'ew-resize';
|
|
37
|
+
}
|
|
38
|
+
else if (Math.abs(e.offsetX - this.component.clientWidth) < 5) {
|
|
39
|
+
this.component.style.cursor = 'ew-resize';
|
|
40
|
+
}
|
|
41
|
+
else if (Math.abs(e.offsetY) < 5) {
|
|
42
|
+
this.component.style.cursor = 'ns-resize';
|
|
43
|
+
}
|
|
44
|
+
else if (Math.abs(e.offsetY - this.component.clientHeight) < 5) {
|
|
45
|
+
this.component.style.cursor = 'ns-resize';
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.component.style.cursor = 'move';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
handleDoubleClick() {
|
|
52
|
+
if (this.readonly)
|
|
53
|
+
return;
|
|
54
|
+
this.isEditing = true;
|
|
55
|
+
this.heldEdge = null;
|
|
56
|
+
this.isEdgeDragging = false;
|
|
57
|
+
this.sizeObserver.disconnect();
|
|
58
|
+
this.innerValue = this.innerValue ? this.innerValue : this.dataItem?.value;
|
|
59
|
+
const editbox = this.component.shadowRoot.getElementById('editing-input');
|
|
60
|
+
console.log(editbox);
|
|
61
|
+
if (editbox) {
|
|
62
|
+
editbox.className = 'ls-editor-field-editable';
|
|
63
|
+
editbox.focus();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
handleDragStart(event) {
|
|
67
|
+
console.log('dragstart ls-editor-field', event, this.type);
|
|
68
|
+
// Add the target element's id to the data transfer object
|
|
69
|
+
event.dataTransfer.setData('application/json', JSON.stringify({
|
|
70
|
+
type: this.type,
|
|
71
|
+
}));
|
|
72
|
+
event.dataTransfer.dropEffect = 'move';
|
|
73
|
+
}
|
|
74
|
+
watchSelectedHandler(_newValue, _oldValue) {
|
|
75
|
+
if (_newValue) {
|
|
76
|
+
this.component.style.background = `var(--${this.participantColor(this.dataItem?.signer)}-20)`;
|
|
77
|
+
this.component.style.opacity = '0.7';
|
|
78
|
+
this.component.style.boxShadow = '0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06)';
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
this.component.style.background = 'transparent';
|
|
82
|
+
this.component.style.boxShadow = 'none';
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
onInputChange(e) {
|
|
86
|
+
// console.log("INPUT CHANGE", e);
|
|
87
|
+
this.innerValue = e.target.value;
|
|
88
|
+
}
|
|
89
|
+
componentDidLoad() {
|
|
90
|
+
this.sizeObserver = new ResizeObserver(entries => {
|
|
91
|
+
for (const entry of entries) {
|
|
92
|
+
if (entry.contentRect) {
|
|
93
|
+
// const editbox = this.component.shadowRoot.getElementById('editing-input') as HTMLElement;
|
|
94
|
+
const movebox = this.component.shadowRoot.getElementById('field-info');
|
|
95
|
+
// console.log(editbox)
|
|
96
|
+
// editbox.style.height = entry.contentRect.height + "px"
|
|
97
|
+
// editbox.style.width = entry.contentRect.width + "px"
|
|
98
|
+
movebox.style.height = entry.contentRect.height + 'px';
|
|
99
|
+
movebox.style.width = entry.contentRect.width + 'px';
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
this.sizeObserver.observe(this.component);
|
|
104
|
+
// New dropped components automatically need selecting.
|
|
105
|
+
if (this.selected) {
|
|
106
|
+
this.component.style.background = `var(--${this.participantColor(this.dataItem?.signer)}-20)`;
|
|
107
|
+
this.component.style.opacity = '0.7';
|
|
108
|
+
this.component.style.boxShadow = '0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06)';
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
this.component.style.background = `transparent`;
|
|
112
|
+
this.component.style.boxShadow = 'none';
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
participantColor = (index) => {
|
|
116
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
117
|
+
};
|
|
118
|
+
render() {
|
|
119
|
+
return (h(Host, { key: 'd4c0acce37a6d90f23231d46d6d45a249682d619', style: { border: `2px solid var(--${this.participantColor(this.dataItem?.signer)}-60)` } }, h("div", { key: 'ad95543d614a0945b029347469b4bcfb0c78f418', class: {
|
|
120
|
+
'ls-editor-field': true,
|
|
121
|
+
'is-selected': this.selected,
|
|
122
|
+
} }, h("input", { key: '0c17be950c45c511fb78e5236056ee3946f35dc9', id: "editing-input", class: this.isEditing ? 'ls-editor-field-editable' : 'hidden-field', type: getInputType(this.dataItem.validation).inputType, value: this.dataItem?.value || this.innerValue, onChange: e => this.onInputChange(e) }), h("div", { key: '88c5e8f18f8a87b6e3aaa7d228ef8184a6afe73f', id: "field-info", class: this.isEditing ? 'hidden-field' : 'ls-editor-field-draggable' }, this.innerValue || this.dataItem?.label || this.dataItem?.formElementType))));
|
|
123
|
+
}
|
|
124
|
+
static get watchers() { return {
|
|
125
|
+
"selected": ["watchSelectedHandler"]
|
|
126
|
+
}; }
|
|
127
|
+
};
|
|
128
|
+
LsEditorField.style = lsEditorFieldCss;
|
|
129
|
+
|
|
130
|
+
export { LsEditorField as ls_editor_field };
|
|
131
|
+
//# sourceMappingURL=ls-editor-field.entry.esm.js.map
|
|
132
|
+
|
|
133
|
+
//# sourceMappingURL=ls-editor-field.entry.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as registerInstance, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
+
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
3
|
+
import { v as validationTypes } from './editorUtils-DsvPQaAu.js';
|
|
4
|
+
|
|
5
|
+
const lsFieldPropertiesDateCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.properties-container{display:flex;flex-direction:column;height:100%}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-field-type-inner{border-radius:0.625rem;background:var(--white, #fff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;}.tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6c6e73)}.ls-tab.active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-tab:not(.active):hover{background:var(--gray-10, #f7f8fa)}.button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #f0f1f2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px;width:100%}.input-wrapper{position:relative}.full-width{width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #fff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.destructive{border:1px solid var(--red-60, #f04438);background-color:white;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
6
|
+
|
|
7
|
+
const LsFieldPropertiesDate = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
dataItem;
|
|
12
|
+
fieldSet = 'content';
|
|
13
|
+
signerColor = (index) => {
|
|
14
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
15
|
+
};
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, { key: 'f8a62f1a7342e43919bf6265b2adbe23b4c2a9f8' }, h("div", { key: '1c75f2f7cf3f2ca4c6c6b6fc45a6ca0bbf545ac5', class: 'tabs-container' }, h("button", { key: '5ad19d8a51f31b7564b7f62a180d67b578093eb1', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '2f39c504b8796715952b0a2066b776ecea88d340', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: 'c261bb2cd3f255db7016ecc022ca765a899b3692', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: 'b1d1fa19f0d22d43461af7e9f826714349280805', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
18
|
+
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
19
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
20
|
+
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
21
|
+
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
22
|
+
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
23
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
24
|
+
} }, h("ls-icon", { name: "calender", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Date")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
25
|
+
.filter(type => type.formType === 'date')
|
|
26
|
+
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: '095d289159aabcf538f9e20ef799fecb5b5eed98', class: 'button-footer' }, h("button", { key: 'f6e78adfa3c0fe9288142ac8ad1739422a7fedad', class: 'secondary' }, h("ls-icon", { key: '4dcac162aa8a108bd05f09f144cb827b66f7c694', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: '0c58210c94a168966180de22f9d456284c320842', class: 'destructive' }, h("ls-icon", { key: 'd6e5e36d6aa6f544945f7c88943384d2da608147', name: "trash", size: "20" }), "Delete")), h("slot", { key: '65e4ff6299ccf3e54eaa7551d061b12e032af5cd' })));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
LsFieldPropertiesDate.style = lsFieldPropertiesDateCss;
|
|
30
|
+
|
|
31
|
+
export { LsFieldPropertiesDate as ls_field_properties_date };
|
|
32
|
+
//# sourceMappingURL=ls-field-properties-date.entry.esm.js.map
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=ls-field-properties-date.entry.js.map
|