legalesign-document-viewer 0.2.19 → 0.3.1
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_44.cjs.entry.js → ls-document-options_39.cjs.entry.js} +428 -373
- package/dist/cjs/ls-document-options_39.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-document-viewer.cjs.js +1 -1
- package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ls-formfield.cjs.entry.js +64 -0
- package/dist/cjs/ls-formfield.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-formfield.entry.cjs.js.map +1 -0
- package/dist/cjs/ls-number-input.ls-radio-input.ls-select-input.ls-text-input.ls-textarea-input.entry.cjs.js.map +1 -0
- package/dist/cjs/ls-number-input_5.cjs.entry.js +204 -0
- package/dist/cjs/ls-number-input_5.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-tooltip.cjs.entry.js +1575 -0
- package/dist/cjs/ls-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-tooltip.entry.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/ls-document-options/ls-document-options.css +34 -0
- package/dist/collection/components/ls-document-options/ls-document-options.js +25 -1
- package/dist/collection/components/ls-document-options/ls-document-options.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js +2 -1
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorCalculator.js +4 -6
- package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/keyHandlers.js +1 -1
- package/dist/collection/components/ls-document-viewer/keyHandlers.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +103 -25
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js +41 -6
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -1
- package/dist/collection/components/ls-editor-table/ls-editor-table.js +1 -1
- package/dist/collection/components/ls-feature-column/ls-feature-column.js +4 -4
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js +2 -2
- package/dist/collection/components/ls-field-content/ls-field-content.js +2 -2
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +1 -1
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +61 -11
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +1 -1
- package/dist/collection/components/ls-field-footer/ls-field-footer.js +31 -3
- package/dist/collection/components/ls-field-footer/ls-field-footer.js.map +1 -1
- package/dist/collection/components/ls-field-format/ls-field-format.js +27 -10
- package/dist/collection/components/ls-field-format/ls-field-format.js.map +1 -1
- package/dist/collection/components/ls-field-placement/ls-field-placement.js +1 -1
- package/dist/collection/components/ls-field-properties/ls-field-properties.js +1 -1
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.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-container/ls-field-properties-container.js +1 -1
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +1 -1
- package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js +1 -1
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +1 -1
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +1 -1
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +1 -1
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +1 -1
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +75 -4
- 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.js +1 -1
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +1 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +1 -1
- package/dist/collection/components/ls-field-size/ls-field-size.js +1 -1
- package/dist/collection/components/ls-field-type-display/ls-field-type-display.js +3 -3
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +2 -2
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +1 -1
- package/dist/collection/components/ls-formfield/ls-formfield.js +2 -2
- package/dist/collection/components/ls-icon/ls-icon.js +1 -1
- package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.js +1 -1
- package/dist/collection/components/ls-page-loader/ls-page-loader.css +20 -0
- package/dist/collection/components/ls-page-loader/ls-page-loader.js +88 -0
- package/dist/collection/components/ls-page-loader/ls-page-loader.js.map +1 -0
- package/dist/collection/components/ls-participant-card/ls-participant-card.js +8 -8
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +2 -2
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +9 -9
- package/dist/collection/components/ls-props-section/ls-props-section.js +1 -1
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +3 -3
- package/dist/collection/components/ls-statusbar/ls-statusbar.js.map +1 -1
- package/dist/collection/components/ls-toggle/ls-toggle.css +33 -12
- package/dist/collection/components/ls-toggle/ls-toggle.js +22 -2
- package/dist/collection/components/ls-toggle/ls-toggle.js.map +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +1 -2
- package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -1
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.css +10 -2
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +60 -1
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js.map +1 -1
- package/dist/collection/components/ls-tooltip/ls-tooltip.css +9 -0
- package/dist/collection/components/ls-tooltip/ls-tooltip.js +105 -0
- package/dist/collection/components/ls-tooltip/ls-tooltip.js.map +1 -0
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +3 -2
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js.map +1 -1
- package/dist/collection/types/LSMutateEvent.js.map +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +198 -137
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.js +1 -1
- package/dist/components/ls-editor-table.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-content.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.js +1 -1
- package/dist/components/ls-field-format.js +1 -1
- package/dist/components/ls-field-placement.js +1 -1
- package/dist/components/ls-field-properties-advanced.js +1 -1
- package/dist/components/ls-field-properties-autosign.js +1 -1
- package/dist/components/ls-field-properties-container.js +1 -1
- package/dist/components/ls-field-properties-date.js +1 -1
- package/dist/components/ls-field-properties-dropdown.js +12 -12
- 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-field-type-display.js +1 -1
- package/dist/components/ls-formfield.js +135 -1
- package/dist/components/ls-formfield.js.map +1 -1
- package/dist/components/ls-icon.js +1 -1
- package/dist/components/ls-input-wrapper.js +1 -1
- package/dist/components/ls-number-input.js +1 -1
- package/dist/components/ls-page-loader.d.ts +11 -0
- package/dist/components/ls-page-loader.js +9 -0
- package/dist/components/ls-page-loader.js.map +1 -0
- package/dist/components/ls-participant-card.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-props-section.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/ls-tooltip.d.ts +11 -0
- package/dist/components/ls-tooltip.js +1595 -0
- package/dist/components/ls-tooltip.js.map +1 -0
- package/dist/components/ls-validation-tag.js +1 -1
- package/dist/components/{p-EJeMGdQu.js → p-52yHrt6C.js} +6 -6
- package/dist/components/p-52yHrt6C.js.map +1 -0
- package/dist/components/{p-C2AvJYU2.js → p-7V9_3fXA.js} +7 -7
- package/dist/components/{p-C2AvJYU2.js.map → p-7V9_3fXA.js.map} +1 -1
- package/dist/components/{p-DNYMtQaJ.js → p-B6u7yh6L.js} +14 -14
- package/dist/components/{p-DNYMtQaJ.js.map → p-B6u7yh6L.js.map} +1 -1
- package/dist/components/{p-CFM4LGyt.js → p-BN0a1PPS.js} +14 -14
- package/dist/components/{p-CFM4LGyt.js.map → p-BN0a1PPS.js.map} +1 -1
- package/dist/components/{p-CXf5rRrm.js → p-BPayWH9u.js} +3 -3
- package/dist/components/{p-CXf5rRrm.js.map → p-BPayWH9u.js.map} +1 -1
- package/dist/components/{p-CYXQyrVE.js → p-BaMR8ksy.js} +3 -3
- package/dist/components/{p-CYXQyrVE.js.map → p-BaMR8ksy.js.map} +1 -1
- package/dist/components/{p-BOES-kpO.js → p-BaS7GLxH.js} +14 -14
- package/dist/components/{p-BOES-kpO.js.map → p-BaS7GLxH.js.map} +1 -1
- package/dist/components/{p-5D8PsBm3.js → p-Bg6wsr_z.js} +4 -4
- package/dist/components/{p-5D8PsBm3.js.map → p-Bg6wsr_z.js.map} +1 -1
- package/dist/components/{p-BdHdKShC.js → p-BoIq4Xwe.js} +5 -5
- package/dist/components/{p-BdHdKShC.js.map → p-BoIq4Xwe.js.map} +1 -1
- package/dist/components/{p-C4yNfeqL.js → p-BpXqwLh3.js} +4 -4
- package/dist/components/{p-C4yNfeqL.js.map → p-BpXqwLh3.js.map} +1 -1
- package/dist/components/{p-DVYZ-l9i.js → p-Bsc25fvn.js} +5 -5
- package/dist/components/{p-DVYZ-l9i.js.map → p-Bsc25fvn.js.map} +1 -1
- package/dist/components/{p-DjBw61k9.js → p-BvLWarzz.js} +14 -14
- package/dist/components/{p-DjBw61k9.js.map → p-BvLWarzz.js.map} +1 -1
- package/dist/components/{p-EXjgBKTQ.js → p-BvlAOvLS.js} +64 -14
- package/dist/components/p-BvlAOvLS.js.map +1 -0
- package/dist/components/{p-BYfxQYIe.js → p-BynEbSXW.js} +14 -14
- package/dist/components/{p-BYfxQYIe.js.map → p-BynEbSXW.js.map} +1 -1
- package/dist/components/{p-BLqzepwP.js → p-BzLsSc2B.js} +3 -3
- package/dist/components/{p-BLqzepwP.js.map → p-BzLsSc2B.js.map} +1 -1
- package/dist/components/{p-Cp5JvKGz.js → p-C4Go47Ak.js} +7 -7
- package/dist/components/{p-Cp5JvKGz.js.map → p-C4Go47Ak.js.map} +1 -1
- package/dist/components/p-C7-4wg83.js +90 -0
- package/dist/components/p-C7-4wg83.js.map +1 -0
- package/dist/components/{p-BcERGojX.js → p-C8kySYH4.js} +3 -3
- package/dist/components/{p-BcERGojX.js.map → p-C8kySYH4.js.map} +1 -1
- package/dist/components/{p-D7fmSEF_.js → p-C_OorhIf.js} +14 -14
- package/dist/components/{p-D7fmSEF_.js.map → p-C_OorhIf.js.map} +1 -1
- package/dist/components/{p-B_RSAYa_.js → p-CcUFZYwZ.js} +29 -13
- package/dist/components/p-CcUFZYwZ.js.map +1 -0
- package/dist/components/{p-DvrE7Co1.js → p-Cfl2rRxL.js} +14 -6
- package/dist/components/p-Cfl2rRxL.js.map +1 -0
- package/dist/components/p-ChCIuJg0.js +103 -0
- package/dist/components/p-ChCIuJg0.js.map +1 -0
- package/dist/components/{p-CATruwEZ.js → p-ClYIDEKN.js} +6 -7
- package/dist/components/p-ClYIDEKN.js.map +1 -0
- package/dist/components/{p-BO65LHPL.js → p-CozH0k34.js} +12 -12
- package/dist/components/{p-BO65LHPL.js.map → p-CozH0k34.js.map} +1 -1
- package/dist/components/{p-CTcGU-0M.js → p-CpiX4Tih.js} +4 -4
- package/dist/components/{p-CTcGU-0M.js.map → p-CpiX4Tih.js.map} +1 -1
- package/dist/components/{p-BClQCPwn.js → p-Crkl9bKZ.js} +6 -6
- package/dist/components/{p-BClQCPwn.js.map → p-Crkl9bKZ.js.map} +1 -1
- package/dist/components/{p-CIMsSQwZ.js → p-D0PX7hpQ.js} +12 -12
- package/dist/components/{p-CIMsSQwZ.js.map → p-D0PX7hpQ.js.map} +1 -1
- package/dist/components/{p-CkFBf2X6.js → p-D4_aO15f.js} +8 -8
- package/dist/components/{p-CkFBf2X6.js.map → p-D4_aO15f.js.map} +1 -1
- package/dist/components/p-D5cswwR_.js +114 -0
- package/dist/components/p-D5cswwR_.js.map +1 -0
- package/dist/components/{p-BZmc1jRS.js → p-D7Tz-MyS.js} +44 -16
- package/dist/components/p-D7Tz-MyS.js.map +1 -0
- package/dist/components/{p-TSI6GwEl.js → p-D990IL5t.js} +4 -4
- package/dist/components/{p-TSI6GwEl.js.map → p-D990IL5t.js.map} +1 -1
- package/dist/components/{p-DPTEeSlE.js → p-DWqgZCMh.js} +3 -3
- package/dist/components/{p-DPTEeSlE.js.map → p-DWqgZCMh.js.map} +1 -1
- package/dist/components/{p-C19Sk5Pv.js → p-DjmiTRrw.js} +9 -9
- package/dist/components/{p-C19Sk5Pv.js.map → p-DjmiTRrw.js.map} +1 -1
- package/dist/components/{p-CKpdUPQa.js → p-DmenFbeU.js} +5 -5
- package/dist/components/{p-CKpdUPQa.js.map → p-DmenFbeU.js.map} +1 -1
- package/dist/components/{p-pj0dnyXK.js → p-Dp-vgKJq.js} +4 -4
- package/dist/components/{p-pj0dnyXK.js.map → p-Dp-vgKJq.js.map} +1 -1
- package/dist/components/{p-5dvIIDY3.js → p-DrWlEpVu.js} +4 -4
- package/dist/components/{p-5dvIIDY3.js.map → p-DrWlEpVu.js.map} +1 -1
- package/dist/components/p-HaIHVR-P.js +45 -0
- package/dist/components/p-HaIHVR-P.js.map +1 -0
- package/dist/components/{p-5bipMnyu.js → p-Pr-VCZIW.js} +27 -27
- package/dist/components/{p-5bipMnyu.js.map → p-Pr-VCZIW.js.map} +1 -1
- package/dist/components/{p-gc1S5qea.js → p-Vgt7NA4z.js} +14 -14
- package/dist/components/{p-gc1S5qea.js.map → p-Vgt7NA4z.js.map} +1 -1
- package/dist/components/{p-LAdbaH1v.js → p-YrxZXlJ1.js} +6 -5
- package/dist/components/p-YrxZXlJ1.js.map +1 -0
- package/dist/components/{p-8U1vQjh6.js → p-gToQ2iM9.js} +14 -14
- package/dist/components/{p-8U1vQjh6.js.map → p-gToQ2iM9.js.map} +1 -1
- package/dist/components/{p-FYWJbZt4.js → p-gvEf2mjl.js} +4 -4
- package/dist/components/{p-FYWJbZt4.js.map → p-gvEf2mjl.js.map} +1 -1
- package/dist/components/{p-B3nXZzYN.js → p-h3hsXDzk.js} +4 -4
- package/dist/components/{p-B3nXZzYN.js.map → p-h3hsXDzk.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{ls-document-options_44.entry.js → ls-document-options_39.entry.js} +428 -368
- package/dist/esm/ls-document-options_39.entry.js.map +1 -0
- package/dist/esm/ls-document-viewer.js +1 -1
- package/dist/esm/ls-field-properties-dropdown.entry.js +1 -1
- package/dist/{components/p-Dz71sI_1.js → esm/ls-formfield.entry.js} +11 -89
- package/dist/esm/ls-formfield.entry.js.map +1 -0
- package/dist/esm/ls-number-input.ls-radio-input.ls-select-input.ls-text-input.ls-textarea-input.entry.js.map +1 -0
- package/dist/esm/ls-number-input_5.entry.js +198 -0
- package/dist/esm/ls-number-input_5.entry.js.map +1 -0
- package/dist/esm/ls-tooltip.entry.js +1573 -0
- package/dist/esm/ls-tooltip.entry.js.map +1 -0
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/ls-formfield.entry.esm.js.map +1 -0
- package/dist/ls-document-viewer/ls-number-input.ls-radio-input.ls-select-input.ls-text-input.ls-textarea-input.entry.esm.js.map +1 -0
- package/dist/ls-document-viewer/ls-tooltip.entry.esm.js.map +1 -0
- package/dist/ls-document-viewer/p-646325ae.entry.js +2 -0
- package/dist/ls-document-viewer/p-646325ae.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-d2df7881.entry.js +2 -0
- package/dist/ls-document-viewer/p-d2df7881.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-d7109cdd.entry.js +2 -0
- package/dist/ls-document-viewer/{p-996dc931.entry.js → p-dbea98b3.entry.js} +6 -6
- package/dist/ls-document-viewer/p-dbea98b3.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-fee3434a.entry.js +2 -0
- package/dist/ls-document-viewer/p-fee3434a.entry.js.map +1 -0
- package/dist/types/components/ls-document-options/ls-document-options.d.ts +1 -0
- package/dist/types/components/ls-document-viewer/editorCalculator.d.ts +1 -0
- package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +13 -2
- package/dist/types/components/ls-field-distribute/ls-field-distribute.d.ts +2 -0
- package/dist/types/components/ls-field-footer/ls-field-footer.d.ts +1 -0
- package/dist/types/components/ls-field-format/ls-field-format.d.ts +1 -0
- package/dist/types/components/ls-field-properties-multiple/ls-field-properties-multiple.d.ts +11 -1
- package/dist/types/components/ls-page-loader/ls-page-loader.d.ts +3 -0
- package/dist/types/components/ls-toggle/ls-toggle.d.ts +1 -0
- package/dist/types/components/ls-toolbox-field/ls-toolbox-field.d.ts +4 -0
- package/dist/types/components/ls-tooltip/ls-tooltip.d.ts +11 -0
- package/dist/types/components.d.ts +90 -4
- package/dist/types/types/LSMutateEvent.d.ts +1 -0
- package/package.json +2 -1
- package/readme.md +39 -74
- package/dist/cjs/ls-document-options_44.cjs.entry.js.map +0 -1
- package/dist/components/p-BZmc1jRS.js.map +0 -1
- package/dist/components/p-B_RSAYa_.js.map +0 -1
- package/dist/components/p-CATruwEZ.js.map +0 -1
- package/dist/components/p-CXfTLG4X.js +0 -106
- package/dist/components/p-CXfTLG4X.js.map +0 -1
- package/dist/components/p-CkgCA2si.js +0 -92
- package/dist/components/p-CkgCA2si.js.map +0 -1
- package/dist/components/p-DJwEQOhf.js +0 -43
- package/dist/components/p-DJwEQOhf.js.map +0 -1
- package/dist/components/p-DvrE7Co1.js.map +0 -1
- package/dist/components/p-Dz71sI_1.js.map +0 -1
- package/dist/components/p-EJeMGdQu.js.map +0 -1
- package/dist/components/p-EXjgBKTQ.js.map +0 -1
- package/dist/components/p-LAdbaH1v.js.map +0 -1
- package/dist/esm/ls-document-options_44.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-798903b4.entry.js +0 -2
- package/dist/ls-document-viewer/p-996dc931.entry.js.map +0 -1
- /package/dist/ls-document-viewer/{p-798903b4.entry.js.map → p-d7109cdd.entry.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-CjW5NqdW.js';
|
|
2
2
|
|
|
3
|
-
const lsDocumentOptionsCss = ":host{display:block}.ls-editor-infobox{padding:2px 8px 2px 8px}.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}.template-details{display:flex;flex-direction:column;gap:0.75rem}.template-detail-section{display:flex;padding:0.75rem;align-items:center;gap:0.5rem;border-radius:1rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #fff)}.template-detail-section-title{color:var(--gray-80, #6c6e73);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;width:100%}.column{display:flex;flex-direction:column;align-items:flex-start}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%}.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)}";
|
|
3
|
+
const lsDocumentOptionsCss = "*{box-sizing:border-box;margin:0;padding:0}:host{display:block}.ls-editor-infobox{padding:2px 8px 2px 8px}.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}.template-details{display:flex;flex-direction:column;gap:0.75rem}.template-detail-section{position:relative;display:flex;padding:0.75rem;align-items:center;gap:0.5rem;border-radius:1rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #fff)}.template-detail-section-title{color:var(--gray-80, #6c6e73);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;width:100%}.template-detail-section-info{color:var(--gray-70);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;width:100%}.column{display:flex;flex-direction:column;align-items:flex-start}.editButton{position:absolute;top:0.75rem;right:0.75rem;margin:0px;padding:0px;max-height:1.25rem !important;max-width:1.25rem !important;background-color:transparent;border:none;cursor:pointer;color:var(--gray-70, #2134dc)}.editButton:hover{color:var(--gray-80)}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%}.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)}";
|
|
4
4
|
|
|
5
5
|
const LsDocumentOptions = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -14,6 +14,7 @@ const LsDocumentOptions = class {
|
|
|
14
14
|
* {LSApiTemplate}
|
|
15
15
|
*/
|
|
16
16
|
template;
|
|
17
|
+
editTitle = false;
|
|
17
18
|
selectedHandler(newSelected, _oldSelected) {
|
|
18
19
|
console.log(newSelected, 'document manager');
|
|
19
20
|
}
|
|
@@ -24,7 +25,25 @@ const LsDocumentOptions = class {
|
|
|
24
25
|
this.mutate.emit([{ action: 'update', data: { ...this.template, ...changedDetails } }]);
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
|
-
|
|
28
|
+
function formatDate(isoString) {
|
|
29
|
+
const date = new Date(isoString);
|
|
30
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
31
|
+
const month = String(date.getMonth() + 1).padStart(2, '0'); // Months are 0-indexed
|
|
32
|
+
const year = date.getFullYear();
|
|
33
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
|
34
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
35
|
+
return `${day}/${month}/${year} at ${hours}:${minutes}`;
|
|
36
|
+
}
|
|
37
|
+
return (h(Host, null, h("div", { class: "ls-editor-infobox" }, h("h2", { class: "toolbox-section-title" }, "Template Details"), h("p", { class: "toolbox-section-description" }, "Details and insights about the Template.")), h("div", { class: 'template-details' }, h("div", { class: 'template-detail-section column' }, h("p", { class: "template-detail-section-title" }, "Name"), h("div", { class: "editButton", onClick: () => {
|
|
38
|
+
this.editTitle = !this.editTitle;
|
|
39
|
+
} }, h("ls-icon", { name: this.editTitle ? 'check' : 'pencil-alt', size: "18" })), this.editTitle ? (h("input", { value: this.template?.title, style: { width: '100%' }, onInput: e => this.alter({ title: e.detail }), onKeyUp: e => {
|
|
40
|
+
if (e.key === 'Enter' || e.keyCode === 13)
|
|
41
|
+
this.editTitle = false;
|
|
42
|
+
} })) : (h("p", null, this.template?.title))), h("div", { class: 'template-detail-section' }, h("div", null, h("p", { class: "template-detail-section-title" }, "Auto Archive"), h("p", { class: 'template-detail-section-info' }, "After Sending the Template will be automatically archived.")), h("ls-toggle", { checked: this.template?.autoArchive, onValueChange: e => {
|
|
43
|
+
this.alter({ autoArchive: e.detail });
|
|
44
|
+
} })), h("div", { class: 'template-detail-section' }, h("div", null, h("p", { class: "template-detail-section-title" }, "Lock Template"), h("p", { class: 'template-detail-section-info' }, "Lock Template to avoid changes being made")), h("ls-toggle", { checked: this.template?.locked, onValueChange: e => {
|
|
45
|
+
this.alter({ locked: e.detail });
|
|
46
|
+
} })), h("div", { class: 'template-detail-section column' }, h("p", { class: "template-detail-section-title" }, "Pages"), h("p", null, this.template?.pageCount)), h("div", { class: 'template-detail-section column' }, h("p", { class: "template-detail-section-title" }, "Date Created"), " ", h("p", null, formatDate(this.template?.created))), h("div", { class: 'template-detail-section column' }, h("p", { class: "template-detail-section-title" }, "Created By"), " ", h("p", null, this.template?.createdBy))), h("slot", null)));
|
|
28
47
|
}
|
|
29
48
|
static get watchers() { return {
|
|
30
49
|
"template": ["selectedHandler"]
|
|
@@ -19905,12 +19924,6 @@ const recalculateCoordinates = (d) => {
|
|
|
19905
19924
|
const ay = d.top / d.pageDimensions.height;
|
|
19906
19925
|
const bx = (d.left + d.width) / d.pageDimensions.width;
|
|
19907
19926
|
const by = (d.top + d.height) / d.pageDimensions.height;
|
|
19908
|
-
console.log({
|
|
19909
|
-
ax,
|
|
19910
|
-
ay,
|
|
19911
|
-
bx,
|
|
19912
|
-
by,
|
|
19913
|
-
}, 'recalc');
|
|
19914
19927
|
// Return with calculated styles that try to place it as it would appear on legacy signing page
|
|
19915
19928
|
return {
|
|
19916
19929
|
...d,
|
|
@@ -20222,7 +20235,7 @@ function keyDown(ev) {
|
|
|
20222
20235
|
return oob(alterElement) ? original : alterElement;
|
|
20223
20236
|
});
|
|
20224
20237
|
}
|
|
20225
|
-
else if (ev.key === 'Delete') {
|
|
20238
|
+
else if (ev.key === 'Delete' || ev.key === 'Backspace') {
|
|
20226
20239
|
const arr = Array.from(this.selected);
|
|
20227
20240
|
this.mutate.emit(arr.map(s => {
|
|
20228
20241
|
return { action: 'delete', data: s.dataItem };
|
|
@@ -20281,12 +20294,44 @@ function mouseDown(e) {
|
|
|
20281
20294
|
this.hitField = f;
|
|
20282
20295
|
}
|
|
20283
20296
|
});
|
|
20284
|
-
if (this.hitField) {
|
|
20297
|
+
if (this.hitField && e.shiftKey === false) {
|
|
20298
|
+
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20299
|
+
box.style.visibility = 'hidden';
|
|
20300
|
+
// mouse down on a field, select it and note the start location
|
|
20301
|
+
if (this.hitField.selected === false) {
|
|
20302
|
+
// unselect all other fields
|
|
20303
|
+
fields.forEach(fu => {
|
|
20304
|
+
fu.selected = false;
|
|
20305
|
+
});
|
|
20306
|
+
this.selected = [this.hitField];
|
|
20307
|
+
this.selectFields.emit([this.hitField.dataItem]);
|
|
20308
|
+
}
|
|
20309
|
+
const { height, width } = this.hitField.getBoundingClientRect();
|
|
20310
|
+
const fdims = { left: this.hitField.offsetLeft, top: this.hitField.offsetTop, height, width, x: e.screenX, y: e.screenY };
|
|
20311
|
+
this.startMouse = fdims;
|
|
20312
|
+
this.startLocations = this.selected.map(f => {
|
|
20313
|
+
const { height, width } = f.getBoundingClientRect();
|
|
20314
|
+
const beHtml = f;
|
|
20315
|
+
return { top: beHtml.offsetTop, left: beHtml.offsetLeft, height, width };
|
|
20316
|
+
});
|
|
20317
|
+
this.selectionBox = null;
|
|
20318
|
+
}
|
|
20319
|
+
else if (this.hitField && e.shiftKey === true) {
|
|
20320
|
+
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20321
|
+
box.style.visibility = 'hidden';
|
|
20322
|
+
// mouse down on a field, select it and note the start location
|
|
20323
|
+
if (this.hitField.selected === false) {
|
|
20324
|
+
// unselect all other fields
|
|
20325
|
+
fields.forEach(fu => {
|
|
20326
|
+
fu.selected = false;
|
|
20327
|
+
});
|
|
20328
|
+
this.selected = [...this.selected, this.hitField];
|
|
20329
|
+
this.selectFields.emit([...this.selected.map(si => si.dataItem), this.hitField.dataItem]);
|
|
20330
|
+
}
|
|
20285
20331
|
const { height, width } = this.hitField.getBoundingClientRect();
|
|
20286
20332
|
const fdims = { left: this.hitField.offsetLeft, top: this.hitField.offsetTop, height, width, x: e.screenX, y: e.screenY };
|
|
20287
20333
|
this.startMouse = fdims;
|
|
20288
|
-
|
|
20289
|
-
this.startLocations = target.map(f => {
|
|
20334
|
+
this.startLocations = this.selected.map(f => {
|
|
20290
20335
|
const { height, width } = f.getBoundingClientRect();
|
|
20291
20336
|
const beHtml = f;
|
|
20292
20337
|
return { top: beHtml.offsetTop, left: beHtml.offsetLeft, height, width };
|
|
@@ -20294,11 +20339,12 @@ function mouseDown(e) {
|
|
|
20294
20339
|
this.selectionBox = null;
|
|
20295
20340
|
}
|
|
20296
20341
|
else {
|
|
20297
|
-
//
|
|
20342
|
+
// move down on empty space, start a selection box
|
|
20298
20343
|
this.startLocations = null;
|
|
20299
20344
|
this.startMouse = null;
|
|
20300
20345
|
this.selectionBox = { x: e.clientX, y: e.clientY };
|
|
20301
20346
|
// console.log('empty space reset selected', this.selectionBox);
|
|
20347
|
+
this.unselect();
|
|
20302
20348
|
this.selectFields.emit([]);
|
|
20303
20349
|
this.selected = [];
|
|
20304
20350
|
this.component.style.cursor = 'crosshair';
|
|
@@ -20333,7 +20379,7 @@ function mouseMove(event) {
|
|
|
20333
20379
|
debounce.bind(this)({ action: 'update', data: recalculateCoordinates(this.hitField.dataItem) }, 700);
|
|
20334
20380
|
}
|
|
20335
20381
|
else if (this.selectionBox && event.buttons === 1) {
|
|
20336
|
-
|
|
20382
|
+
this.isBoxing = true;
|
|
20337
20383
|
// draw the multiple selection box
|
|
20338
20384
|
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20339
20385
|
var frame = this.component.shadowRoot.getElementById('ls-document-frame');
|
|
@@ -20347,6 +20393,7 @@ function mouseMove(event) {
|
|
|
20347
20393
|
box.style.top = (this.selectionBox.y > event.clientY ? event.clientY : this.selectionBox.y) - topOffset + frame.scrollTop + 'px';
|
|
20348
20394
|
box.style.width = Math.abs(movedX) + 'px';
|
|
20349
20395
|
box.style.height = Math.abs(movedY) + 'px';
|
|
20396
|
+
// Move one or more selected items
|
|
20350
20397
|
}
|
|
20351
20398
|
else if (this.startLocations && !this.edgeSide && this.startMouse && event.buttons === 1) {
|
|
20352
20399
|
this.isMoving = true;
|
|
@@ -20369,7 +20416,8 @@ function mouseUp(event) {
|
|
|
20369
20416
|
this.component.style.cursor = 'auto';
|
|
20370
20417
|
// console.log('mouse up');
|
|
20371
20418
|
// find what was inside the selection box emit the select event and change their style
|
|
20372
|
-
if (this.selectionBox) {
|
|
20419
|
+
if (this.selectionBox && this.isBoxing) {
|
|
20420
|
+
this.isBoxing = false;
|
|
20373
20421
|
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20374
20422
|
var fields = this.component.shadowRoot.querySelectorAll('ls-editor-field');
|
|
20375
20423
|
box.style.visibility = 'hidden';
|
|
@@ -24524,7 +24572,7 @@ class LsDocumentAdapter {
|
|
|
24524
24572
|
query = createElement(obj);
|
|
24525
24573
|
break;
|
|
24526
24574
|
case 'update':
|
|
24527
|
-
query = updateElement(obj);
|
|
24575
|
+
query = updateElement(recalculateCoordinates(obj));
|
|
24528
24576
|
break;
|
|
24529
24577
|
case 'delete':
|
|
24530
24578
|
query = deleteElement(obj);
|
|
@@ -24733,6 +24781,8 @@ const LsDocumentViewer = class {
|
|
|
24733
24781
|
// @ts-ignore
|
|
24734
24782
|
isMoving = false;
|
|
24735
24783
|
// @ts-ignore
|
|
24784
|
+
isBoxing = false;
|
|
24785
|
+
// @ts-ignore
|
|
24736
24786
|
selectionBox = null;
|
|
24737
24787
|
// @ts-ignore
|
|
24738
24788
|
hitField;
|
|
@@ -24782,11 +24832,12 @@ const LsDocumentViewer = class {
|
|
|
24782
24832
|
status;
|
|
24783
24833
|
groupInfo;
|
|
24784
24834
|
selected = [];
|
|
24835
|
+
isLoading = true;
|
|
24785
24836
|
/**
|
|
24786
24837
|
* An ease of use property that will arrange document-viewer appropraitely.
|
|
24787
24838
|
* {'preview' | 'editor' | 'custom'}
|
|
24788
24839
|
*/
|
|
24789
|
-
mode = '
|
|
24840
|
+
mode = 'editor';
|
|
24790
24841
|
modeHandler(_newMode, _oldMode) {
|
|
24791
24842
|
if (_newMode === 'preview') {
|
|
24792
24843
|
this.showtoolbar = false;
|
|
@@ -24800,6 +24851,12 @@ const LsDocumentViewer = class {
|
|
|
24800
24851
|
this.showstatusbar = true;
|
|
24801
24852
|
this.readonly = false;
|
|
24802
24853
|
}
|
|
24854
|
+
else if (_newMode === 'compose') {
|
|
24855
|
+
this.showtoolbar = true;
|
|
24856
|
+
this.showtoolbox = true;
|
|
24857
|
+
this.showstatusbar = true;
|
|
24858
|
+
this.readonly = false;
|
|
24859
|
+
}
|
|
24803
24860
|
}
|
|
24804
24861
|
tableViewHandler(_newMode, _oldMode) {
|
|
24805
24862
|
if (_newMode === true) {
|
|
@@ -24876,7 +24933,7 @@ const LsDocumentViewer = class {
|
|
|
24876
24933
|
adapter;
|
|
24877
24934
|
// Action an external data action and use the result (if required)
|
|
24878
24935
|
mutateHandler(event) {
|
|
24879
|
-
if (this.token)
|
|
24936
|
+
if (this.token && this.adapter)
|
|
24880
24937
|
event.detail.forEach(me => this.adapter.handleEvent(me, this.token).then(result => matchData.bind(this)(result)));
|
|
24881
24938
|
}
|
|
24882
24939
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
@@ -24916,8 +24973,9 @@ const LsDocumentViewer = class {
|
|
|
24916
24973
|
elementConnection: { ...this._template.elementConnection, templateElements: fields.map(ef => ef.dataItem) },
|
|
24917
24974
|
};
|
|
24918
24975
|
var toolbar = this.component.shadowRoot.getElementById('ls-toolbar');
|
|
24919
|
-
if (toolbar)
|
|
24976
|
+
if (toolbar) {
|
|
24920
24977
|
toolbar.dataItem = event.detail;
|
|
24978
|
+
}
|
|
24921
24979
|
var propPanel = this.component.shadowRoot.getElementById('my-field-panel');
|
|
24922
24980
|
if (propPanel) {
|
|
24923
24981
|
propPanel.dataItem = event.detail;
|
|
@@ -24927,7 +24985,7 @@ const LsDocumentViewer = class {
|
|
|
24927
24985
|
const fu = this.component.shadowRoot.getElementById('ls-field-' + fc.id);
|
|
24928
24986
|
fu.selected = true;
|
|
24929
24987
|
});
|
|
24930
|
-
this.selected = fields.filter(fx => fx.selected);
|
|
24988
|
+
// this.selected = fields.filter(fx => fx.selected) as HTMLLsEditorFieldElement[];
|
|
24931
24989
|
this.selected.forEach(s => (s.selected = event.detail.map(d => d.id).includes(s.dataItem.id)));
|
|
24932
24990
|
this.validationErrors = validate.bind(this)(this._template);
|
|
24933
24991
|
}
|
|
@@ -24962,6 +25020,14 @@ const LsDocumentViewer = class {
|
|
|
24962
25020
|
this.queueRenderPage(this.pageNum);
|
|
24963
25021
|
this.showPageFields(this.pageNum);
|
|
24964
25022
|
}
|
|
25023
|
+
/**
|
|
25024
|
+
* Unselect all fields
|
|
25025
|
+
*/
|
|
25026
|
+
async unselect() {
|
|
25027
|
+
const fields = this.component.shadowRoot.querySelectorAll('ls-editor-field');
|
|
25028
|
+
fields.forEach(fu => { fu.selected = false; });
|
|
25029
|
+
this.selected = [];
|
|
25030
|
+
}
|
|
24965
25031
|
/**
|
|
24966
25032
|
* Page and field resize on zoom change
|
|
24967
25033
|
*
|
|
@@ -24982,6 +25048,13 @@ const LsDocumentViewer = class {
|
|
|
24982
25048
|
this.queueRenderPage(this.pageNum);
|
|
24983
25049
|
this.showPageFields(this.pageNum);
|
|
24984
25050
|
}
|
|
25051
|
+
/**
|
|
25052
|
+
* Ensure broken or misplaced fields are put onto the page.
|
|
25053
|
+
* {number} position
|
|
25054
|
+
*/
|
|
25055
|
+
clip(legacyPosition, failback = 0.0) {
|
|
25056
|
+
return legacyPosition > 1 ? failback : legacyPosition;
|
|
25057
|
+
}
|
|
24985
25058
|
/**
|
|
24986
25059
|
* Decorate the template data object with useful transformations.
|
|
24987
25060
|
* {string} json of template
|
|
@@ -24998,10 +25071,10 @@ const LsDocumentViewer = class {
|
|
|
24998
25071
|
const fields = newTemplate.elementConnection.templateElements.map(f => {
|
|
24999
25072
|
return {
|
|
25000
25073
|
...f,
|
|
25001
|
-
top: f.ay *
|
|
25002
|
-
left: f.ax *
|
|
25003
|
-
height: (f.by - f.ay) *
|
|
25004
|
-
width: (f.bx - f.ax) *
|
|
25074
|
+
top: this.clip(f.ay) * this.pageDimensions[0].height,
|
|
25075
|
+
left: this.clip(f.ax) * this.pageDimensions[0].width,
|
|
25076
|
+
height: (this.clip(f.by, 0.1) - this.clip(f.ay)) * this.pageDimensions[0].height,
|
|
25077
|
+
width: (this.clip(f.bx, 0.2) - this.clip(f.ax)) * this.pageDimensions[0].width,
|
|
25005
25078
|
templateId: newTemplate.id,
|
|
25006
25079
|
};
|
|
25007
25080
|
});
|
|
@@ -25063,23 +25136,26 @@ const LsDocumentViewer = class {
|
|
|
25063
25136
|
prepareElement(newElement) {
|
|
25064
25137
|
return {
|
|
25065
25138
|
...newElement,
|
|
25066
|
-
top: Math.floor(newElement.ay * this.pageDimensions[newElement.page - 1].height),
|
|
25067
|
-
left: Math.floor(newElement.ax * this.pageDimensions[newElement.page - 1].width),
|
|
25068
|
-
height: Math.floor((newElement.by - newElement.ay) * this.pageDimensions[newElement.page - 1].height),
|
|
25069
|
-
width: Math.floor((newElement.bx - newElement.ax) * this.pageDimensions[newElement.page - 1].width),
|
|
25139
|
+
top: Math.floor(this.clip(newElement.ay) * this.pageDimensions[newElement.page - 1].height),
|
|
25140
|
+
left: Math.floor(this.clip(newElement.ax) * this.pageDimensions[newElement.page - 1].width),
|
|
25141
|
+
height: Math.floor((this.clip(newElement.by, 0.05) - this.clip(newElement.ay)) * this.pageDimensions[newElement.page - 1].height),
|
|
25142
|
+
width: Math.floor((this.clip(newElement.bx, 0.2) - this.clip(newElement.ax)) * this.pageDimensions[newElement.page - 1].width),
|
|
25070
25143
|
pageDimensions: this.pageDimensions[newElement.page - 1],
|
|
25071
25144
|
templateId: this._template.id,
|
|
25072
25145
|
};
|
|
25073
25146
|
}
|
|
25074
25147
|
// internal forced change
|
|
25075
25148
|
syncChange(update) {
|
|
25149
|
+
if (update?.select === 'clear') {
|
|
25150
|
+
this.unselect();
|
|
25151
|
+
}
|
|
25076
25152
|
if (getApiType(update.data) === 'element') {
|
|
25077
25153
|
if (update.action === 'create') {
|
|
25078
25154
|
const newData = { ...update.data, page: this.pageNum };
|
|
25079
25155
|
addField.bind(this)(this.component.shadowRoot.getElementById('ls-document-frame'), newData);
|
|
25080
|
-
const newField = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
25081
|
-
this.selected = [newField];
|
|
25082
|
-
this.selectFields.emit([newData]);
|
|
25156
|
+
//const newField = this.component.shadowRoot.getElementById('ls-field-' + update.data.id) as HTMLLsEditorFieldElement;
|
|
25157
|
+
//this.selected = [newField];
|
|
25158
|
+
//this.selectFields.emit([newData as LSApiElement]);
|
|
25083
25159
|
}
|
|
25084
25160
|
else if (update.action === 'update') {
|
|
25085
25161
|
const fi = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
@@ -25139,6 +25215,7 @@ const LsDocumentViewer = class {
|
|
|
25139
25215
|
});
|
|
25140
25216
|
}
|
|
25141
25217
|
async load() {
|
|
25218
|
+
this.isLoading = true;
|
|
25142
25219
|
// Get all template and group listing data.
|
|
25143
25220
|
try {
|
|
25144
25221
|
this.adapter = new LsDocumentAdapter(this.endpoint);
|
|
@@ -25150,6 +25227,8 @@ const LsDocumentViewer = class {
|
|
|
25150
25227
|
//Revalidate
|
|
25151
25228
|
this.validationErrors = validate.bind(this)(this._template);
|
|
25152
25229
|
this.selected = [];
|
|
25230
|
+
this.setZoom(1.0);
|
|
25231
|
+
this.isLoading = false;
|
|
25153
25232
|
}
|
|
25154
25233
|
catch (e) {
|
|
25155
25234
|
console.error('Your access token is invalid.', e);
|
|
@@ -25159,12 +25238,15 @@ const LsDocumentViewer = class {
|
|
|
25159
25238
|
if (this.token && !this._template)
|
|
25160
25239
|
this.load();
|
|
25161
25240
|
}
|
|
25162
|
-
|
|
25163
|
-
const
|
|
25164
|
-
|
|
25241
|
+
handleSelectedField(event) {
|
|
25242
|
+
const fields = this.component.shadowRoot.querySelectorAll('ls-toolbox-field');
|
|
25243
|
+
fields.forEach(element => {
|
|
25244
|
+
const isSelected = element.formElementType === event.detail;
|
|
25245
|
+
element.isSelected = isSelected;
|
|
25246
|
+
});
|
|
25165
25247
|
}
|
|
25166
25248
|
render() {
|
|
25167
|
-
return (h(Host, { key: '
|
|
25249
|
+
return (h(Host, { key: 'ba98f503028b8060b6d7de59ebec65543bf5d34f' }, h(h.Fragment, null, this.isLoading && h("ls-page-loader", { key: 'da33facea5a874f2c372e6929c792223cd1d774f' }), h("div", { key: 'ed01cec72df4e2343b2fba0fd0e11078c09db240', class: 'validation-tag-wrapper' }, h("ls-validation-tag", { key: 'dec9e222a7235a55b0b7d6742ed942bf3af15e31', validationErrors: this.validationErrors })), h("div", { key: '7d6b631c38281c856824897813d1b627d5af17bc', class: "page-header" }, h("p", { key: '1137422244e4fa7f62e6ddf3447a6948198f4f77', class: "header-text-1" }, "Template Creation"), h("p", { key: '9202737314df5c2238f74bd897a23c892facd100' }, "/"), h("p", { key: '8572833ade9d180ad8f39ca7e4bfb3352f3cecc0', class: "header-text-2" }, this._template?.title)), h("form", { key: '84a6e0219e003051bbf200527ed275d05a9b1a40', 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 => {
|
|
25168
25250
|
if (manager.detail === 'document') {
|
|
25169
25251
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
25170
25252
|
documentManager.template = this._template;
|
|
@@ -25174,10 +25256,36 @@ const LsDocumentViewer = class {
|
|
|
25174
25256
|
participantManager.template = this._template;
|
|
25175
25257
|
}
|
|
25176
25258
|
this.manager = manager.detail;
|
|
25177
|
-
} }), 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", signer: this.signer
|
|
25259
|
+
} }), 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", signer: this.signer, onSelected: event => {
|
|
25260
|
+
this.handleSelectedField.bind(this)(event);
|
|
25261
|
+
} })) : (h("ls-toolbox-field", { elementType: "auto sign", formElementType: "auto sign", label: "Auto Sign", defaultHeight: 27, defaultWidth: 120, validation: 3000, icon: "auto-sign", signer: this.signer, onSelected: event => {
|
|
25262
|
+
this.handleSelectedField.bind(this)(event);
|
|
25263
|
+
} })), h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials", signer: this.signer, onSelected: event => {
|
|
25264
|
+
this.handleSelectedField.bind(this)(event);
|
|
25265
|
+
} }), h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", signer: this.signer, onSelected: event => {
|
|
25266
|
+
this.handleSelectedField.bind(this)(event);
|
|
25267
|
+
} }), h("ls-toolbox-field", { elementType: "signing date", formElementType: "signing date", label: "Signing Date", defaultHeight: 27, defaultWidth: 120, validation: 30, icon: "auto-date", signer: this.signer, onSelected: event => {
|
|
25268
|
+
this.handleSelectedField.bind(this)(event);
|
|
25269
|
+
} }), h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol", signer: this.signer, onSelected: event => {
|
|
25270
|
+
this.handleSelectedField.bind(this)(event);
|
|
25271
|
+
} }), h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text", signer: this.signer, onSelected: event => {
|
|
25272
|
+
this.handleSelectedField.bind(this)(event);
|
|
25273
|
+
} }), 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", signer: this.signer, onSelected: event => {
|
|
25274
|
+
this.handleSelectedField.bind(this)(event);
|
|
25275
|
+
} }), h("ls-toolbox-field", { elementType: "dropdown", formElementType: "dropdown", label: "Dropdown", defaultHeight: 27, defaultWidth: 80, validation: 20, icon: "hashtag", signer: this.signer, onSelected: event => {
|
|
25276
|
+
this.handleSelectedField.bind(this)(event);
|
|
25277
|
+
} }), h("ls-toolbox-field", { elementType: "checkbox", formElementType: "checkbox", label: "Checkbox", defaultHeight: 27, defaultWidth: 27, validation: 25, icon: "check", signer: this.signer, onSelected: event => {
|
|
25278
|
+
this.handleSelectedField.bind(this)(event);
|
|
25279
|
+
} }), h("ls-toolbox-field", { elementType: "regex", formElementType: "regex", label: "Regex", defaultHeight: 27, defaultWidth: 120, validation: 93, icon: "code", signer: this.signer, onSelected: event => {
|
|
25280
|
+
this.handleSelectedField.bind(this)(event);
|
|
25281
|
+
} }), h("ls-toolbox-field", { elementType: "image", formElementType: "image", label: "Image", defaultHeight: 27, defaultWidth: 120, validation: 90, icon: "photograph", signer: this.signer, onSelected: event => {
|
|
25282
|
+
this.handleSelectedField.bind(this)(event);
|
|
25283
|
+
} }), h("ls-toolbox-field", { elementType: "file", formElementType: "file", label: "File", defaultHeight: 27, defaultWidth: 120, validation: 74, icon: "upload", signer: this.signer, onSelected: event => {
|
|
25284
|
+
this.handleSelectedField.bind(this)(event);
|
|
25285
|
+
} }))))), 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.displayTable && (h("div", { class: 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 => {
|
|
25178
25286
|
this.selected = [];
|
|
25179
25287
|
e.preventDefault();
|
|
25180
|
-
} }, h("ls-icon", { name: "x", size: "20" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("ls-toolbar", { key: '
|
|
25288
|
+
} }, h("ls-icon", { name: "x", size: "20" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("ls-toolbar", { key: '300a112fbe7e1b6acfd6ce0ec54cb3a752f55815', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo }), h("div", { key: '92700d27b2be0e8c74952dd1dd4225cd6449f550', id: "ls-mid-area" }, h("div", { key: 'a52bf847bd9eb219a0b470ce4e36fc97e315c6c8', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, h("div", { key: '9edf12e09ccea929e531ee52a4354c389d055629', id: "ls-document-frame" }, h("canvas", { key: '167c02485f5484e32576749c9ffd90ea478ecfcb', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'hidden' : '' }), h("ls-editor-table", { key: 'ed899a22082224f5f7cc294b68e4c6b56d60d0d3', editor: this, class: this.displayTable ? '' : 'hidden' }), h("div", { key: 'ccf62d6787987a90426cc79139e517c7ac27502c', id: "ls-box-selector" }))), h("ls-statusbar", { key: 'afe98039104214aaecf7b5b77497becbe04b830c', editor: this }))))));
|
|
25181
25289
|
}
|
|
25182
25290
|
static get watchers() { return {
|
|
25183
25291
|
"mode": ["modeHandler"],
|
|
@@ -25570,7 +25678,7 @@ const LsEditorTable = class {
|
|
|
25570
25678
|
});
|
|
25571
25679
|
}
|
|
25572
25680
|
render() {
|
|
25573
|
-
return (h(Host, { key: '
|
|
25681
|
+
return (h(Host, { key: '5843064d233783ed3c491d399c415d281ed35e11' }, h("table", { key: '8a6d6d1dc717876eb4401f76f8dc280b957fdeb7', id: "ls-editor-table" }), h("slot", { key: '334d466e08ed2490fa88ef774912b469fde0a287' })));
|
|
25574
25682
|
}
|
|
25575
25683
|
};
|
|
25576
25684
|
LsEditorTable.style = lsEditorTableCss;
|
|
@@ -25590,17 +25698,17 @@ const LsFeatureColoumn = class {
|
|
|
25590
25698
|
// Send an manager change up the DOM
|
|
25591
25699
|
manage;
|
|
25592
25700
|
render() {
|
|
25593
|
-
return (h(Host, { key: '
|
|
25701
|
+
return (h(Host, { key: 'c153ff8227ffe959671bd72b62eef1be0d6ea0a5' }, h("div", { key: 'febf78c0ccc42e2511b52419955e28017b6d617c', class: this.manager === 'document' ? 'activeIcon' : 'defaultIcon', onClick: () => {
|
|
25594
25702
|
console.log('document');
|
|
25595
25703
|
this.manage.emit('document');
|
|
25596
25704
|
this.manager = 'document';
|
|
25597
|
-
} }, h("ls-icon", { key: '
|
|
25705
|
+
} }, h("ls-icon", { key: '027568b936d809b03eecc895fcfab24cd65e7fa3', name: "document", size: "24" })), h("div", { key: '3fe1542a7c2053dcca881682eb29859f4bf7a914', class: this.manager === 'toolbox' ? 'activeIcon' : 'defaultIcon', onClick: () => {
|
|
25598
25706
|
this.manage.emit('toolbox');
|
|
25599
25707
|
this.manager = 'toolbox';
|
|
25600
|
-
} }, h("ls-icon", { key: '
|
|
25708
|
+
} }, h("ls-icon", { key: '2656bb9ebbcec8dbf2a5519e9f80ceb734413828', name: "typing-input", size: "24" })), h("div", { key: '46abc8a29b3488273d669089602ed902752b1145', class: this.manager === 'participant' ? 'activeIcon' : 'defaultIcon', onClick: () => {
|
|
25601
25709
|
this.manage.emit('participant');
|
|
25602
25710
|
this.manager = 'participant';
|
|
25603
|
-
} }, h("ls-icon", { key: '
|
|
25711
|
+
} }, h("ls-icon", { key: '173f5cc9556a37f7502fb7c02e1644659dd65b16', name: "user-group", size: "24" })), h("slot", { key: '856f4c459eb86ae32eb564c5024f64231f9cc8a1' })));
|
|
25604
25712
|
}
|
|
25605
25713
|
};
|
|
25606
25714
|
LsFeatureColoumn.style = lsFeatureColumnCss;
|
|
@@ -25728,9 +25836,9 @@ const LsFieldAlignment = class {
|
|
|
25728
25836
|
this.update.emit(diffs);
|
|
25729
25837
|
}
|
|
25730
25838
|
render() {
|
|
25731
|
-
return (h(Host, { key: '
|
|
25839
|
+
return (h(Host, { key: '276514255f8b1da24cffe917638d0e79196cd4c9' }, h("div", { key: '0e4af454e1789c6b5ee4dd443c69eb700428bee6', class: 'ls-field-properties-section' }, h("div", { key: '958a851c77101f9146c3947fd31d56b9ad0d1c84', class: 'ls-field-properties-section-text' }, h("p", { key: '7d8add53a07a7b453feedffcd45dd6129f57de37', class: 'ls-field-properties-section-title' }, "Alignment"), h("p", { key: 'a072da1f7284f3e3162af00431eb86b103a6d139', class: 'ls-field-properties-section-description' }, "Align your Fields relative to the page or multi-select and align then to each other.")), h("div", { key: '6bf9c9285cdbdab4ed8b51de45b8199d2e2d1770', class: 'multi-button-group-row' }, h("div", { key: 'ba5a3e3e98211666a962c20c6de73aca844c4af5', class: 'button-group' }, h("button", { key: '31c378287314c164517274f0ab2905b127ca3049', onClick: () => this.left(), "aria-label": "Align selected fields vertically about their left edge.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, h("ls-icon", { key: '97dbc0e12710ca5dea47d8da193ab238ee5ae9dd', name: "field-alignment-left" })), h("button", { key: 'fa22bb526248b17a3bd47a482ba1309fb4874d87', onClick: () => this.center(), "aria-label": "Align selected fields vertically about their centre.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, h("ls-icon", { key: 'be176582cc48aaf636e7590224fcddf8a39bb7ef', name: "field-alignment-centre" })), h("button", { key: '9b7ac33e30f711b2aa806cfc87ae1e85fe3158f8', onClick: () => {
|
|
25732
25840
|
this.right();
|
|
25733
|
-
}, "aria-label": "Align selected fields vertically about their right edge.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, h("ls-icon", { key: '
|
|
25841
|
+
}, "aria-label": "Align selected fields vertically about their right edge.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, h("ls-icon", { key: '81953cc88fadc80c0df9a53d367edf4240ba1225', name: "field-alignment-right" }))), h("div", { key: '88274bcb8a4f0df2de472e006470f47741448cfe', class: 'button-group' }, h("button", { key: 'bb784cb991e0fb26f6610c3fde6cf3b4630dc468', onClick: () => this.top(), "aria-label": "Align selected fields by their top.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, h("ls-icon", { key: '69e5a9a07882a5038e56f574cbe4f5a844ff2400', name: "field-alignment-top" })), h("button", { key: 'bb5b5d922ec9b21a17e133ecfb60267636bfa0a1', onClick: () => this.middle(), "aria-label": "Align selected fields by their middles.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, h("ls-icon", { key: '0b4c455c31330de80905f8522baf9e7db621fd0f', name: "field-alignment-middle" })), h("button", { key: 'e951fd98037f208e3ceb4da04a406e50332fd634', onClick: () => this.bottom(), "aria-label": "Align selected fields by their bottoms.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, h("ls-icon", { key: '3faf90ae35dc58ff59d899c74b3d2e8f24755dd5', name: "field-alignment-bottom" }))))), h("slot", { key: '427224b21fa432083716c6cee3d7d0483ddbd0f4' })));
|
|
25734
25842
|
}
|
|
25735
25843
|
};
|
|
25736
25844
|
LsFieldAlignment.style = lsFieldAlignmentCss;
|
|
@@ -25766,9 +25874,9 @@ const LsFieldContent = class {
|
|
|
25766
25874
|
}, delay);
|
|
25767
25875
|
}
|
|
25768
25876
|
render() {
|
|
25769
|
-
return (h(Host, { key: '
|
|
25877
|
+
return (h(Host, { key: '480b4e4a16a11270f16c1fbd52a9cfc06319c003' }, h("ls-props-section", { key: '9f01dda37d313b6e0b37374cd6b7b03c50552ed5', sectionTitle: "Field Type", sectionDescription: "The Field you currently have selected" }, h("ls-field-type-display", { key: '901f4bd65d8dfb70369e80b83d438c716a728e57', fieldType: this.dataItem?.elementType, assignee: this.dataItem?.signer })), h("ls-props-section", { key: 'df0d5739a95f1385d652bdc306aa35184ff87623', sectionTitle: "Required Field", row: true }, h("ls-toggle", { key: '4802d31dbe2e6e4d3c1819fe8d11949ad57040ed', id: "toggle-required", checked: !this.dataItem?.optional, onValueChange: (ev) => this.alter({ optional: !ev.detail }) })), h("ls-props-section", { key: '29dda3f847d0686b45ead2c3f94d639ff4f53665', sectionTitle: "Field Label", sectionDescription: "Add a label to clarify the information required from the Recipient." }, h("input", { key: '84b7878c52b8b2675345d6d6c7b924ee1ed29ad7', value: this.dataItem?.label, placeholder: "eg. Sign Here", onInput: (e) => this.alter({ label: e.target.value }) })), h("ls-props-section", { key: '8ed642c24e6ade9785eedc5782c3ec4162d7f1dc', sectionTitle: "Value", sectionDescription: "A prefilled value that can be altered by the signer." }, h("input", { key: '17397cbc23640df646451a8fa5a2f0bc35f4e4af', value: this.dataItem?.value, placeholder: "e.g. Gordon Smith", onInput: (e) => this.alter({ value: e.target.value }) })), this.dataItem.validation === 20 && (h("ls-props-section", { key: '327c7c2cd68d130fafbe3622b8e3cadfd85dc79c', sectionTitle: "Options", sectionDescription: "Define the options available in the dropdown. One option per line." }, h("textarea", { key: '682ab1b9c40c35f82fabf75ea716495355001a76', value: this.dataItem?.options, placeholder: "Option 1\nOption 2\nOption 3", onInput: (e) => this.alter({ options: e.target.value }) }))), this.showValidationTypes && (h("ls-props-section", { key: '3df0258a1d0ceb8139b905c8341c5273138dad10', sectionTitle: "Content Format", sectionDescription: "Select the specific format you want the Recipient to enter." }, h("ls-input-wrapper", { key: 'd404f6fd35d413afd4db73e66844a08b5231663b', select: true }, h("select", { key: '71bb83a0f36b694012c1da60ef0c346822dc7d92', onChange: (ev) => this.alter({ validation: parseInt(ev.target.value) }) }, validationTypes
|
|
25770
25878
|
.filter(type => type.formType === this.dataItem?.elementType)
|
|
25771
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), h("slot", { key: '
|
|
25879
|
+
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), h("slot", { key: '2316014e98eb0ae99884f42b1c37f22e2a4f1732' })));
|
|
25772
25880
|
}
|
|
25773
25881
|
};
|
|
25774
25882
|
LsFieldContent.style = lsFieldContentCss;
|
|
@@ -25810,7 +25918,7 @@ const LsFieldDimensions = class {
|
|
|
25810
25918
|
}
|
|
25811
25919
|
}
|
|
25812
25920
|
render() {
|
|
25813
|
-
return (h(Host, { key: '
|
|
25921
|
+
return (h(Host, { key: '53678e7fc68e795616c51e7cb7325a5cd45761de' }, this.isMultiple(this.dataItem) && (h("div", { key: 'f5a073c2039858e3b69162a1d1e599ae559dc2d6', class: 'ls-field-properties-section' }, h("div", { key: 'f707c71fc9623bf6fc290ab3bb14451ba98e5454', class: 'ls-field-properties-section-text' }, h("p", { key: 'c000b0fb97cb50712463b4973b8d395df30f0704', class: 'ls-field-properties-section-title' }, "Height and Width"), h("p", { key: '4443d09dd3358da331437d83db4080e7b7a6407b', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), h("div", { key: 'efa8b8ec8030846f073c147879dfab93ba135a02', class: 'input-row' }, h("div", { key: 'c6e3345f3fc87d539ac35a85c0b8c47042795b59', class: 'input-wrapper' }, h("ls-icon", { key: '9033883167f51a83f41039dc9da682de3954cd17', id: "selectLeadingIcon", name: "field-match-width" }), h("input", { key: 'a18a60327e5766e2c109af6dd95f080a5d0aa3b9', class: 'has-leading-icon', aria: "field-width", id: "field-width", onChange: e => this.alter({ width: e.target.value }) })), h("div", { key: '7d3464a547cdf5938311a5f9ffc2995be604035e', class: 'input-wrapper' }, h("ls-icon", { key: '0e413fc72b08cf785b33c56041fe0c638b86bc70', id: "selectLeadingIcon", name: "field-match-height" }), h("input", { key: 'bb8a36bfe49680bbe7183d8cc524d1be95f6d87c', class: 'has-leading-icon', aria: "field-height", id: "field-height", onChange: e => this.alter({ height: e.target.value }) }))))), this.isSingle(this.dataItem) && (h("div", { key: '5f73b3b84f25b2072374fc6ca27d0b59dfc3314e', class: 'field-set' }, h("div", { key: 'ee6d5b21c0957acee288252e35165868cc0db0ba', class: 'ls-field-properties-section' }, h("div", { key: '5edddb346091bb34859f258630ea959492c64ac4', class: 'ls-field-properties-section-text' }, h("p", { key: '3a90f8a2e72a099fe297dfbcc0b269bd61268ad6', class: 'ls-field-properties-section-title' }, "Height and Width"), h("p", { key: '0c336dc47d35dd3a629b766e87046463e19a9522', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), h("div", { key: '494929a5bbb6eae61c2d82aa1e3442ca2c1dabb1', class: 'input-row' }, h("div", { key: 'ce3002cfcf8344556895ed9d237e8dfb359a27a4', class: 'input-wrapper' }, h("ls-icon", { key: 'dca359e82e3733fec34ee138006ef8d63cd7025c', id: "selectLeadingIcon", name: "field-match-width" }), h("input", { key: '421cd8faa380b84cb57d0dc0e76d92a3abd38162', type: "number", class: 'has-leading-icon', aria: "field-width", id: "field-width", value: this.dataItem?.width, onChange: e => this.alter({ width: e.target.value }) })), h("div", { key: '90b66ca4284e84ddb8b22de8d144ae24e757c74c', class: 'input-wrapper' }, h("ls-icon", { key: '438f4022c0b55db6f6131bcf57c957fd644f4661', id: "selectLeadingIcon", name: "field-match-height" }), h("input", { key: 'd936659987860f79cba8e5ada8f28a437eaba4f5', type: "number", class: 'has-leading-icon', aria: "field-height", id: "field-height", value: this.dataItem?.height, onChange: e => this.alter({ height: e.target.value }) })))), h("div", { key: '6b1bafdcf631c2ec00acc7afe7fdfe03b0b6600e', class: 'ls-field-properties-section' }, h("div", { key: '70731c167c84621672059ab5a8ab28c266029525', class: 'ls-field-properties-section-text' }, h("p", { key: '81fbb63a29e0f432765f00beedc4683d3f464a03', class: 'ls-field-properties-section-title' }, "Scale and Resize"), h("p", { key: '1ba477c5b9076364870cdd5f6106a4d40f74189f', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), h("div", { key: '62ba3006a435142653751e81b153b833dafa9801', class: 'button-group' }, h("button", { key: '9dec26a9e8ed19d2c21ea273afd2e655a0e1b6cc', disabled: true }, h("ls-icon", { key: '04777dc3bfdc0b81bce904d4f56108749e0c47c8', name: "field-scale" })), h("button", { key: '709baed52decc30ffebd96b14b02a54466ac7824', disabled: true }, h("ls-icon", { key: 'cf6b733cb6fcda50b39faf12b208cc1d5fa4a8b0', name: "field-match-width" })), h("button", { key: '6ef87f9641f2cc45a679afc73eb49920abdc7822', disabled: true }, h("ls-icon", { key: '28ee6b1d779df43ad15f4041271ec85ac9e95903', name: "field-match-height" }))))))));
|
|
25814
25922
|
}
|
|
25815
25923
|
};
|
|
25816
25924
|
LsFieldDimensions.style = lsFieldDimensionsCss;
|
|
@@ -25862,9 +25970,7 @@ const LsFieldDistribute = class {
|
|
|
25862
25970
|
action: 'update',
|
|
25863
25971
|
data: {
|
|
25864
25972
|
...c,
|
|
25865
|
-
left: newLeft
|
|
25866
|
-
ax: newLeft,
|
|
25867
|
-
bx: newLeft + c.width,
|
|
25973
|
+
left: newLeft
|
|
25868
25974
|
},
|
|
25869
25975
|
};
|
|
25870
25976
|
});
|
|
@@ -25872,6 +25978,51 @@ const LsFieldDistribute = class {
|
|
|
25872
25978
|
this.mutate.emit(diffs);
|
|
25873
25979
|
this.update.emit(diffs);
|
|
25874
25980
|
}
|
|
25981
|
+
gapVertical(spacing) {
|
|
25982
|
+
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
25983
|
+
var buffer = sorted[0].top;
|
|
25984
|
+
const diffs = sorted.map(c => {
|
|
25985
|
+
const newTop = buffer;
|
|
25986
|
+
buffer = buffer + c.height + spacing;
|
|
25987
|
+
const target = {
|
|
25988
|
+
...c,
|
|
25989
|
+
top: newTop
|
|
25990
|
+
};
|
|
25991
|
+
return {
|
|
25992
|
+
action: 'update',
|
|
25993
|
+
data: oob(target) ? {
|
|
25994
|
+
...c,
|
|
25995
|
+
left: c.pageDimensions.height - c.height - 1
|
|
25996
|
+
} : target
|
|
25997
|
+
};
|
|
25998
|
+
});
|
|
25999
|
+
this.dataItem = diffs.map(d => d.data);
|
|
26000
|
+
this.mutate.emit(diffs);
|
|
26001
|
+
this.update.emit(diffs);
|
|
26002
|
+
}
|
|
26003
|
+
gapHorizontal(spacing) {
|
|
26004
|
+
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
26005
|
+
var buffer = sorted[0].left;
|
|
26006
|
+
const diffs = sorted.map(c => {
|
|
26007
|
+
const newLeft = buffer;
|
|
26008
|
+
buffer = buffer + c.width + spacing;
|
|
26009
|
+
const target = {
|
|
26010
|
+
...c,
|
|
26011
|
+
left: newLeft
|
|
26012
|
+
};
|
|
26013
|
+
console.log(target, oob(target));
|
|
26014
|
+
return {
|
|
26015
|
+
action: 'update',
|
|
26016
|
+
data: oob(target) ? {
|
|
26017
|
+
...c,
|
|
26018
|
+
left: c.pageDimensions.width - c.width - 1
|
|
26019
|
+
} : target
|
|
26020
|
+
};
|
|
26021
|
+
});
|
|
26022
|
+
this.dataItem = diffs.map(d => d.data);
|
|
26023
|
+
this.mutate.emit(diffs);
|
|
26024
|
+
this.update.emit(diffs);
|
|
26025
|
+
}
|
|
25875
26026
|
distributeVertical() {
|
|
25876
26027
|
var spacing = this.component.shadowRoot.getElementById('ls-fix-vertical-space');
|
|
25877
26028
|
var avgspace = 0;
|
|
@@ -25891,14 +26042,16 @@ const LsFieldDistribute = class {
|
|
|
25891
26042
|
const diffs = sorted.map(c => {
|
|
25892
26043
|
const newTop = buffer;
|
|
25893
26044
|
buffer = buffer + c.height + avgspace;
|
|
26045
|
+
const target = {
|
|
26046
|
+
...c,
|
|
26047
|
+
top: newTop
|
|
26048
|
+
};
|
|
25894
26049
|
return {
|
|
25895
26050
|
action: 'update',
|
|
25896
|
-
data: {
|
|
26051
|
+
data: oob(target) ? {
|
|
25897
26052
|
...c,
|
|
25898
|
-
top:
|
|
25899
|
-
|
|
25900
|
-
by: newTop + c.height,
|
|
25901
|
-
},
|
|
26053
|
+
top: c.pageDimensions.height - c.height
|
|
26054
|
+
} : target
|
|
25902
26055
|
};
|
|
25903
26056
|
});
|
|
25904
26057
|
this.dataItem = diffs.map(d => d.data);
|
|
@@ -25906,11 +26059,15 @@ const LsFieldDistribute = class {
|
|
|
25906
26059
|
this.update.emit(diffs);
|
|
25907
26060
|
}
|
|
25908
26061
|
render() {
|
|
25909
|
-
return (h(Host, { key: '
|
|
26062
|
+
return (h(Host, { key: '6b56e29ef6606020392f6345eeab99a79201ca39' }, h("div", { key: 'dd54237204e0a3cb3e5e7106fa3c217f1bd4783c', class: 'ls-field-properties-section' }, h("div", { key: '4211d0435d809c161875ec80ed36c8c3fe6e2d09', class: 'ls-field-properties-section-text' }, h("p", { key: '9f6bf5f1c684a17fb20fb5e8b44e2fd193e1c428', class: 'ls-field-properties-section-title' }, "Distribution"), h("p", { key: '7b8da49375a5bc764b3f910a8e625569911aa7b7', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), h("div", { key: '618ac328f320cd4299289fa072d62640964e6b5f', class: 'button-group' }, h("button", { key: 'ae5e15c9947486772f978e028b71d1f0901cb4ef', onClick: () => {
|
|
25910
26063
|
this.distributeVertical();
|
|
25911
|
-
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields vertically.", "data-tooltip-place": "top" }, h("ls-icon", { key: '
|
|
26064
|
+
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields vertically.", "data-tooltip-place": "top" }, h("ls-icon", { key: '30452ccd64d0e2a3d0ebcf7125a37abfa2996610', name: "field-distribute-vertically" })), h("button", { key: 'ced0890fec909ecd9d6c42426eeb5f291303b6b9', onClick: () => {
|
|
25912
26065
|
this.distributeHorizontal();
|
|
25913
|
-
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields horizontally.", "data-tooltip-place": "top" }, h("ls-icon", { key: '
|
|
26066
|
+
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields horizontally.", "data-tooltip-place": "top" }, h("ls-icon", { key: '8c4925974e0f22a0222f0e403a913a03bef27475', name: "field-distribute-horizontally" })))), h("div", { key: '6080eed10a0a7f7b8bc1566936df072ad67c5437', class: 'ls-field-properties-section' }, h("div", { key: '261f4b45dec8cc55bebe5aa9e58524f4077a756a', class: 'ls-field-properties-section-text' }, h("p", { key: '9702708febe79b8f20179dd90fb1b4d839876862', class: 'ls-field-properties-section-title' }, "Gap"), h("p", { key: '226c8c2508c1540aa20ac806522c57e6c374dc98', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), h("div", { key: '857724c65a60b251df274c41ef3167cb9ce39fa9', class: 'input-row' }, h("div", { key: 'e90426b59b908488a8d456fa2cd43984e0da5253', class: 'input-wrapper' }, h("ls-icon", { key: '1977d4be8956afc9de41ead5b6957e4fe3669c4f', id: "selectLeadingIcon", name: "field-distribute-vertically" }), h("input", { key: '2e61592539c3453cf345a2798f75e979ed17fa75', type: "number", class: 'has-leading-icon', id: "ls-fix-vertical-space", onChange: (e) => {
|
|
26067
|
+
this.gapVertical(parseInt(e.target.value));
|
|
26068
|
+
}, value: '', size: 4, min: 0, max: 9999 })), h("div", { key: '9384373f0bb26414c1375f8786624c7aff12ed36', class: 'input-wrapper' }, h("ls-icon", { key: '31e062fb69c324d2571df1d62e2ba3549245acc4', id: "selectLeadingIcon", name: "field-distribute-horizontally" }), h("input", { key: '20352f4de63216cc737f7cf469493381282bef32', type: "number", class: 'has-leading-icon', id: "ls-fix-horizontal-space", onChange: (e) => {
|
|
26069
|
+
this.gapHorizontal(parseInt(e.target.value));
|
|
26070
|
+
}, value: '', size: 4, min: 0, max: 9999 })))), h("slot", { key: '33b53eb78125407c869e7ae32eba9a23ac77001b' })));
|
|
25914
26071
|
}
|
|
25915
26072
|
};
|
|
25916
26073
|
LsFieldDistribute.style = lsFieldDistributeCss;
|
|
@@ -25922,6 +26079,7 @@ const LsFieldFooter = class {
|
|
|
25922
26079
|
registerInstance(this, hostRef);
|
|
25923
26080
|
this.mutate = createEvent(this, "mutate");
|
|
25924
26081
|
this.update = createEvent(this, "update");
|
|
26082
|
+
this.selectFields = createEvent(this, "selectFields");
|
|
25925
26083
|
}
|
|
25926
26084
|
/**
|
|
25927
26085
|
* The selected items information (as JSON).
|
|
@@ -25930,16 +26088,23 @@ const LsFieldFooter = class {
|
|
|
25930
26088
|
dataItem;
|
|
25931
26089
|
mutate;
|
|
25932
26090
|
update;
|
|
26091
|
+
selectFields;
|
|
25933
26092
|
deleteField = () => {
|
|
25934
26093
|
this.update.emit([{ action: 'delete', data: this.dataItem }]);
|
|
25935
26094
|
this.mutate.emit([{ action: 'delete', data: this.dataItem }]);
|
|
25936
26095
|
};
|
|
25937
26096
|
duplicateField = () => {
|
|
25938
|
-
|
|
25939
|
-
|
|
26097
|
+
const newItem = { ...this.dataItem, id: btoa('ele' + crypto.randomUUID()) };
|
|
26098
|
+
const newTop = this.dataItem.top + this.dataItem.height;
|
|
26099
|
+
if (newTop + this.dataItem.height < this.dataItem.pageDimensions.height) {
|
|
26100
|
+
newItem.top = newTop;
|
|
26101
|
+
}
|
|
26102
|
+
this.update.emit([{ action: 'create', data: newItem, select: 'clear' }]);
|
|
26103
|
+
this.mutate.emit([{ action: 'create', data: newItem }]);
|
|
26104
|
+
// this.selectFields.emit([newItem]);
|
|
25940
26105
|
};
|
|
25941
26106
|
render() {
|
|
25942
|
-
return (h(Host, { key: '
|
|
26107
|
+
return (h(Host, { key: '8cb31207e999dc865fb83cb472d77519cd957fdb' }, h("div", { key: 'cdb9ade290c3c1cbe613d5c2f04698d16cf2131e', class: 'button-footer' }, h("button", { key: '6f8db1780d9f860a7d3fa407355fde33cd48c11c', class: 'secondary', onClick: () => this.duplicateField() }, h("ls-icon", { key: '7b01415cc8b7be376445c97e4d2b24788afb3e3a', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: '0447898646ae162dd58ca46befcd468b39af2a1a', class: 'destructive', onClick: () => this.deleteField() }, h("ls-icon", { key: '65074ed995a57053602d665f036fd7280708860d', name: "trash", size: "20" }), "Delete")), h("slot", { key: 'c786084652dfac87fad5ada66808496a3b1aa1dd' })));
|
|
25943
26108
|
}
|
|
25944
26109
|
};
|
|
25945
26110
|
LsFieldFooter.style = lsFieldFooterCss;
|
|
@@ -25956,6 +26121,17 @@ const LsFieldFormat = class {
|
|
|
25956
26121
|
mutate;
|
|
25957
26122
|
update;
|
|
25958
26123
|
get component() { return getElement(this); }
|
|
26124
|
+
// Send selection changes to bars and panels if in use.
|
|
26125
|
+
selectFieldsHandler() {
|
|
26126
|
+
if (this.dataItem.length > 0) {
|
|
26127
|
+
var selFont = this.component.shadowRoot.getElementById('ls-toolbar-font-select');
|
|
26128
|
+
if (selFont)
|
|
26129
|
+
selFont.value = this.dataItem[0].fontName;
|
|
26130
|
+
var selFontSize = this.component.shadowRoot.getElementById('ls-toolbar-font-size');
|
|
26131
|
+
if (selFontSize)
|
|
26132
|
+
selFontSize.value = this.dataItem[0].fontSize.toString();
|
|
26133
|
+
}
|
|
26134
|
+
}
|
|
25959
26135
|
// Send one or more mutations up the chain
|
|
25960
26136
|
// The source of the chain fires the mutation
|
|
25961
26137
|
alter(diff) {
|
|
@@ -25968,26 +26144,29 @@ const LsFieldFormat = class {
|
|
|
25968
26144
|
this.update.emit(diffs);
|
|
25969
26145
|
}
|
|
25970
26146
|
render() {
|
|
25971
|
-
return (h(Host, { key: '
|
|
26147
|
+
return (h(Host, { key: 'db560de41ff6135ddfc7cd24bee0428393612506' }, this.dataItem && this.dataItem.length > 1 && (h("div", { key: '4ea46f8e884a76f7683707f02fd175bbb841a7c4', class: 'ls-field-format-bar' }, h("div", { key: '8004f0b99e69619878b40a4f6a25ccffb76f64cc', class: " input-wrapper" }, h("ls-icon", { key: '8c2a1ecc4b2895217b1a5fbc06b765ee640f57f6', id: "selectLeadingIcon", name: "typeface" }), h("select", { key: 'e9d63ce0c9bf0f807f8843a546615663f6fe0810', id: 'ls-toolbar-font-select', onChange: input => {
|
|
25972
26148
|
this.alter({ fontName: input.target.value });
|
|
25973
|
-
}, class: 'has-leading-icon' }, h("option", { key: '
|
|
26149
|
+
}, class: 'has-leading-icon' }, h("option", { key: '57414b268d83f98ba372970a44b01e6564e3f204', value: "arial" }, "Arial"), h("option", { key: '0ea33343c8b48361730103a0f57b451ce9e2b082', value: "liberation sans" }, "Liberation Sans"), h("option", { key: '41594d03ec8bfb0d30374ab12f524ef083982ab0', value: "courier" }, "Courier"), h("option", { key: '266d0e85da5f80b73fedbadb2c1d049bff226036', value: "helvetica" }, "Helvetica"), h("option", { key: '75078832a92fb69d4e6dbe175f9fefb6ba7b36b8', value: "verdana" }, "Verdana")), h("ls-icon", { key: '82e48e668a00ab951a5ab0a8cc8f4704a19d7a08', id: "selectorIcon", name: "selector" })), h("div", { key: 'c017c1fb108b13f531efcf75264a4d7a4871d6e1', class: "input-wrapper" }, h("ls-icon", { key: '84bd33a74b0332b795d921b481f805a57ef2cfef', id: "selectLeadingIcon", name: "typesize" }), h("input", { key: 'f5e5ac7505bef63d6dc46ab6b6839bac1f8cd74b', id: 'ls-toolbar-font-size', width: "30", size: 4, class: 'has-leading-icon' })), h("div", { key: '9e662def8efd6e8bace2f279ea4b5b15a2fe94ca', class: 'button-group' }, h("button", { key: '3d4ad30a8ec41eb4a1d525eeb53bc8f8757f0c69', onClick: () => {
|
|
25974
26150
|
this.alter({ align: 'left' });
|
|
25975
|
-
} }, h("ls-icon", { key: '
|
|
26151
|
+
} }, h("ls-icon", { key: '338e02bcf2b1ee58167fb54a1cf0c168a45ab80d', name: "menu-alt-2" })), h("button", { key: '594f8af91b7a82b3c67c5e86e0d41307beeb2e71', onClick: () => {
|
|
25976
26152
|
this.alter({ align: 'center' });
|
|
25977
|
-
} }, h("ls-icon", { key: '
|
|
26153
|
+
} }, h("ls-icon", { key: '00eb405987271237bf93ec03df7b37cc0d1bdd53', name: "menu-alt-5" })), h("button", { key: 'a27269a2a51b8fe5bccc15f83628d68251006f70', onClick: () => {
|
|
25978
26154
|
this.alter({ align: 'right' });
|
|
25979
|
-
} }, h("ls-icon", { key: '
|
|
26155
|
+
} }, h("ls-icon", { key: 'b4403cf793697fa578ba4948339959bced93a936', name: "menu-alt-3" }))))), this.dataItem && this.dataItem.length === 1 && (h("div", { key: 'c71a0a7dbf4965db5083c2e31892c7d5376ee512', class: 'ls-field-format-bar' }, h("div", { key: 'c182854d46457e7fce5806042bb81ad2a9e2a0cd', class: "input-wrapper" }, h("ls-icon", { key: 'c37ea1cf1fea476864a869aac0ac69147d33e5b6', id: "selectorIcon", name: "selector" }), h("ls-icon", { key: '499ef3629da6bb05dc85bfad4e22f778a1df00a6', id: "selectLeadingIcon", name: "typeface" }), h("select", { key: 'fc9fbf6d744d2e255c252494a8666e461704cb63', id: 'ls-toolbar-font-select', onChange: input => {
|
|
25980
26156
|
this.alter({ fontName: input.target.value });
|
|
25981
|
-
}, class: 'has-leading-icon' }, h("option", { key: '
|
|
26157
|
+
}, class: 'has-leading-icon' }, h("option", { key: '40bb53d54f3b5f62ec744ae52bea51d7d5e3ffd1', value: "arial" }, "Arial"), h("option", { key: '0883cd66f56fd0ed76f48c36203cf4e50f5af980', value: "liberation sans" }, "Liberation Sans"), h("option", { key: '72187239ec4a7c296b5ab277d0f19253fc1ac0b6', value: "courier" }, "Courier"), h("option", { key: 'cd43e5e9858a58ed2a4f1b99924c5746c75c438d', value: "helvetica" }, "Helvetica"), h("option", { key: '3a20de6b6937525ae0ec6208888d3956d39bf598', value: "verdana" }, "Verdana"))), h("div", { key: '85d7ee0da79d69fcb24495bff20d6683670f0240', class: "input-wrapper" }, h("ls-icon", { key: '4c9ca20bf707f7a0a7dbebda0cdb7db36db0b289', id: "selectLeadingIcon", name: "typesize" }), h("input", { key: '2489d93094f314de173a1a466f0a4d13a0d34373', id: 'ls-toolbar-font-size', width: "30", size: 4, value: this.dataItem[0].fontSize, onChange: input => {
|
|
25982
26158
|
this.alter({ fontSize: input.target.value });
|
|
25983
|
-
}, class: 'has-leading-icon' })), h("div", { key: '
|
|
26159
|
+
}, class: 'has-leading-icon' })), h("div", { key: 'f8e5d4822460f11eca96b422a5e9d72191421afc', class: 'button-group' }, h("button", { key: '547af4eb1d1c0872dd1dbc3ca68eb92621476ae1', onClick: () => {
|
|
25984
26160
|
this.alter({ align: 'left' });
|
|
25985
|
-
} }, h("ls-icon", { key: '
|
|
26161
|
+
} }, h("ls-icon", { key: '8ba5aecb7fc976ef40aea370d00da31e333566c3', name: "menu-alt-2" })), h("button", { key: 'c1bd4b5bf403e2b88a0a2169b4123aa9d143aa22', onClick: () => {
|
|
25986
26162
|
this.alter({ align: 'center' });
|
|
25987
|
-
} }, h("ls-icon", { key: '
|
|
26163
|
+
} }, h("ls-icon", { key: '598a82c0edc4997d22d9decae45286877c43f136', name: "menu-alt-5" })), h("button", { key: '9f39d1337f27b0d74ef557836d4bcd86eb508696', onClick: () => {
|
|
25988
26164
|
this.alter({ align: 'right' });
|
|
25989
|
-
} }, h("ls-icon", { key: '
|
|
26165
|
+
} }, h("ls-icon", { key: 'c3518f2e0f2fa51592660a94a1fd49037422a8eb', name: "menu-alt-3" })))))));
|
|
25990
26166
|
}
|
|
26167
|
+
static get watchers() { return {
|
|
26168
|
+
"dataItem": ["selectFieldsHandler"]
|
|
26169
|
+
}; }
|
|
25991
26170
|
};
|
|
25992
26171
|
LsFieldFormat.style = lsFieldFormatCss;
|
|
25993
26172
|
|
|
@@ -26048,7 +26227,7 @@ const LsFieldPlacement = class {
|
|
|
26048
26227
|
return this.dataItem[0].pageDimensions[this.dataItem[0].page].height - this.dataItem[0].height;
|
|
26049
26228
|
}
|
|
26050
26229
|
render() {
|
|
26051
|
-
return (h(Host, { key: '
|
|
26230
|
+
return (h(Host, { key: 'c9dc68e4e38efb9c800c3162750fda48a679f24d' }, this.isMultiple(this.dataItem) && (h("div", { key: 'b8000d7a209d1b48483c567b9476d264df95cfb8', class: 'ls-field-properties-section' }, h("div", { key: '63b627e957a7cc4e498f4d647d7f097ab46447d0', class: 'ls-field-properties-section-text' }, h("p", { key: 'b2b4d8cabf3b4136bfd8f24a971e37915f831130', class: 'ls-field-properties-section-title' }, "Location"), h("p", { key: '39036ea300acacb68af52a8a7f3c74bfab636ca9', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), h("div", { key: '406a42a6eba6512b4a0aab8af66c7f6c3dba7389', class: 'input-row' }, h("div", { key: '3c1f0599222c5105f345202a453dbe47459e3d08', class: 'input-wrapper' }, h("ls-icon", { key: '1b72436b61075143fcf71aa25c560dda48729b93', id: "selectLeadingIcon", name: "x-letter" }), h("input", { key: 'dbc911eb99b0fb11f618b853610ea61501f248e4', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", onChange: e => this.alter({ left: e.target.value }) })), h("div", { key: '6f805235eedb1ed975a1dd124ed306785cfbc738', class: 'input-wrapper' }, h("ls-icon", { key: 'a09edcec36df6f3541bb99744c1c03b9ac25809d', id: "selectLeadingIcon", name: "y" }), h("input", { key: 'aafc5b2376c78ac269f3bcbec76f654132a1ed31', type: "number", class: 'has-leading-icon', aria: "left-location", id: "left-location", onChange: e => this.alter({ top: e.target.value }) }))))), this.isSingle(this.dataItem) && (h("div", { key: 'e6aefc1f92c9052740ef11a7b68cd437e6cacb62', class: 'field-set' }, h("div", { key: '998c00036ff931841dbee535816d70cc1c13f341', class: 'ls-field-properties-section' }, h("div", { key: '859c5e6195da6aae05f212325cc887a9e6d98b5a', class: 'ls-field-properties-section-text' }, h("p", { key: 'fe1e0776b11bc989a025c598910ab3881876de5a', class: 'ls-field-properties-section-title' }, "Alignment"), h("p", { key: '43a1ae930fd8e07e99af9e03adc82d4032a33fd2', class: 'ls-field-properties-section-description' }, "Align your Fields relative to the page or multi-select and align then to each other.")), h("div", { key: '7a95a01f785eb50a9287457906a6889b7d6a3033', class: 'multi-button-group-row' }, h("div", { key: '504071b40528fd4399755a0af9b1a9ff4f279c5f', class: 'button-group' }, h("button", { key: 'efd3e2aa445a03fce18474c28a07fa7b8687a0c7', onClick: () => { this.alter({ left: 0 }); } }, h("ls-icon", { key: 'e11ff3e4dbe3d6677e117e9b683ee9840f870c26', name: "field-alignment-left" })), h("button", { key: '258b9fb3c78c835fd1e281df90e2984cfb08ef40', onClick: () => { this.alter({ left: this.center() }); } }, h("ls-icon", { key: 'f22b23fd59c5c74baeb42bf60614a06cb4483178', name: "field-alignment-centre" })), h("button", { key: '0b80020e7d7d775c48634d5cb5754f3edce44008', onClick: () => { this.alter({ left: this.right() }); } }, h("ls-icon", { key: 'd8ae12c4670eb1e6e1cf65cfa5c2a5e9f123c261', name: "field-alignment-right" }))), h("div", { key: '2519a99c8563e99c118a250da6747f2b6076de61', class: 'button-group' }, h("button", { key: '6d92cb364078ad0f33e3d22e8753d43d49c96663', onClick: () => this.alter({ top: 0 }) }, h("ls-icon", { key: '21468552b013129c3df35c09871ba9132fb91873', name: "field-alignment-top" })), h("button", { key: 'f040000cfca80f27a5e0bb6169a2111c71a8f1d4', onClick: () => { this.alter({ top: this.middle() }); } }, h("ls-icon", { key: 'b6c5d151dda019ea8d6d912a9fe2677646b7374b', name: "field-alignment-middle" })), h("button", { key: 'a9246e1659fe5e4e0fdd0a03ed5772408bbc7c02', onClick: () => { this.alter({ top: this.bottom() }); } }, h("ls-icon", { key: '1f7933380d6fbfc524cdebc7f86fa1f74ebf1395', name: "field-alignment-bottom" }))))), h("div", { key: '8bf879e9ce04d81f0f5b6df99566a41be51ed470', class: 'ls-field-properties-section' }, h("div", { key: 'a7fee5248dab7322aa5fef2ff2f1dcf91728ee33', class: 'ls-field-properties-section-text' }, h("p", { key: 'b8eb47ce94ec9d00e776ac505686666c430aac61', class: 'ls-field-properties-section-title' }, "Location"), h("p", { key: '17f950776fa0207b9c66a6d6a911e67b1b66c86d', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), h("div", { key: 'da01c959b6265147ed9d90a050401f36228a283d', class: 'input-row' }, h("div", { key: '4dac7c60fdaa4493de9b42401dfacdb031c38a25', class: 'input-wrapper' }, h("ls-icon", { key: '11e8d9bacb897bb04f12b818448eeb039bbf7a47', id: "selectLeadingIcon", name: "x-letter" }), h("input", { key: '24b67407ed28079cf4f5d873c2c771b8f15d8a9c', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", value: this.dataItem?.left, onChange: e => this.alter({ left: e.target.value }) })), h("div", { key: 'f80ae951bd8f5e8e219aa480a4a16ff55f46d8ab', class: 'input-wrapper' }, h("ls-icon", { key: 'b86661a641e357a9b0867d65b4ccee62bea4e44e', id: "selectLeadingIcon", name: "y" }), h("input", { key: 'd2357ca6884f20d72bfb3dbbaa1a14ed797f646b', type: "number", class: 'has-leading-icon', aria: "left-location", id: "left-location", value: this.dataItem?.top, onChange: e => this.alter({ top: e.target.value }), width: "30" })))), h("div", { key: '5a10ba1fa5515601b24343d0b1bf54a97ca29bb3', class: 'ls-field-properties-section' }, h("div", { key: '4b23811405359d00533810851c817939258e7e25', class: 'ls-field-properties-section-text' }, h("p", { key: '328d03492253d0aa58e1155b02fc29efb057c9f8', class: 'ls-field-properties-section-title' }, "Distribution"), h("p", { key: 'e2fecc82d431ee3756d502d45b143b900313ac15', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), h("div", { key: '2c8ba1520ce6aad2c6d96c97b00c3f54e6820b51', class: 'button-group' }, h("button", { key: '69187c8725b6b545ae9cb724b1deaf74e8d9cc88', disabled: true }, h("ls-icon", { key: 'c3d9cdccfb4fb61acd39d941f4d8a4cec449f075', name: "field-distribute-vertically" })), h("button", { key: '72bdb68d15e0e10233dd763c1428cad730a744c7', disabled: true }, h("ls-icon", { key: '1d07a51d8b73bf486f286bfc2d6adfa09038305d', name: "field-distribute-horizontally" })))), h("div", { key: '0776885c8c491e8717548a2e4287403a96488cc4', class: 'ls-field-properties-section' }, h("div", { key: '3ba1d1ea93a606de7b7a533326465e18487e5560', class: 'ls-field-properties-section-text' }, h("p", { key: 'c31cba25f48fdcfe8883443ddecc82e7be4378f4', class: 'ls-field-properties-section-title' }, "Gap"), h("p", { key: '5f6998f21adb8803857a79e6da129022905a8c87', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), h("div", { key: '194a8a16e88493b7b4960fa7ab5ceba6e95b78d9', class: 'input-row' }, h("div", { key: '19862c6084d6fd681ce71bf0e5ba6c2141807d49', class: 'input-wrapper' }, h("ls-icon", { key: 'fc168bd1174daddec9d761b1d8692b69d37cf331', id: "selectLeadingIconDisabled", name: "field-distribute-vertically" }), h("input", { key: '9ce4fe9e1ea759eb867adde5d5360dd3534ebbd0', type: "number", value: "0", class: 'has-leading-icon', aria: "vertical-gap", id: "vertical-gap", disabled: true })), h("div", { key: '54eea8b43335fe796755f36f66ce6828479c137f', class: 'input-wrapper' }, h("ls-icon", { key: '9f94c55ced5a9d3fe43b472a7fcc9f9d7c830fad', id: "selectLeadingIconDisabled", name: "field-distribute-horizontally" }), h("input", { key: 'eb65a84f010fc9f5abfa8fd5fd369cdad2b9670d', type: "number", value: "0", class: 'has-leading-icon', aria: "horizontal-gap", id: "horizontal-gap", disabled: true }))))))));
|
|
26052
26231
|
}
|
|
26053
26232
|
};
|
|
26054
26233
|
LsFieldPlacement.style = lsFieldPlacementCss;
|
|
@@ -26091,7 +26270,7 @@ const LsFieldProperties = class {
|
|
|
26091
26270
|
return h("ls-field-properties-multiple", { dataItem: this.dataItem });
|
|
26092
26271
|
}
|
|
26093
26272
|
render() {
|
|
26094
|
-
return (h(Host, { key: '
|
|
26273
|
+
return (h(Host, { key: '343f2bcd85679323218afc9d2db60127c6f12189' }, this.dataItem && this.renderFields(), h("slot", { key: '455d1ddc501882eaf00e864174e5f867f3a96c13' })));
|
|
26095
26274
|
}
|
|
26096
26275
|
};
|
|
26097
26276
|
LsFieldProperties.style = lsFieldPropertiesCss;
|
|
@@ -26141,7 +26320,7 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
26141
26320
|
return '';
|
|
26142
26321
|
}
|
|
26143
26322
|
render() {
|
|
26144
|
-
return (h(Host, { key: '
|
|
26323
|
+
return (h(Host, { key: '24a4b2e3c09727279e41c27327baea962cdcb890' }, h("div", { key: 'd30d9fcbf06c72ffa6401c0eca4d0519478c831a', class: 'expand-fields-row', onClick: () => (this.expanded = !this.expanded) }, h("ls-icon", { key: 'b1efd67b7585db8fe2e411ef06a0b8441aa9e1b1', name: this.expanded ? 'expand' : 'collapse', size: "20", solid: true }), h("p", { key: 'd08068f7153f435dc3a2a9fa0615caddf00e8535' }, "Advanced Properties")), this.expanded && (h("div", { key: '59f04073ef608af89f5208be35a6641701449123', class: 'field-set' }, h("ls-props-section", { key: '15d9123478373bb244069627c33ea8033475f8d0', sectionTitle: "Field Order", sectionDescription: "Determines what order fields will be filled in by the user" }, h("input", { key: '79298a0173c339135c508cf9e2f9b0d74d2ce192', value: this.getValue('fieldOrder'), type: "text", placeholder: "eg. 1", onChange: e => this.alter({ fieldOrder: e.target.value }) })), h("ls-props-section", { key: '42a97b7f82ec0fba718f3f20858d9f006eef1c96', sectionTitle: "Ref. Name" }, h("input", { key: '597a243802fa0d9d14f9686dcb6c53c5bd60026f', value: this.getValue('link'), placeholder: "eg. checkbox group", onChange: e => this.alter({ link: e.target.value }) })), h("ls-props-section", { key: '8d07374186f3d10621fbb19e14d1c95eb79d3c61', sectionTitle: "Link Type", sectionDescription: "Determines in what way this field is linked to other fields" }, h("select", { key: '30b04fd609f6e301e090bec1b063ba06d821e768', onChange: e => this.alter({ linkType: e.target.value }), name: "Link Field", "aria-label": "Link Field" }, h("option", { key: '937e2ab3ee370623e22e3f2da8aff7aa9824cf2a', value: "0", selected: this.getValue('linkType') === '0' }, "None"), h("option", { key: 'b69255b06207a1748ff9ce54f380e21b0f87b456', value: "1", selected: this.getValue('linkType') === '1' }, "One of a group (e.g. select one checkbox)"), h("option", { key: 'b27aecfc5e9814aa5e1cd29154721decd98a907d', value: "2", selected: this.getValue('linkType') === '2' }, "Add to a total"), h("option", { key: '463e6556da3a8b81a7f9612830157b8e53491bd0', value: "3", selected: this.getValue('linkType') === '3' }, "Make this conditional upon..."))), h("ls-props-section", { key: '9056d087b11e42dd5cd4809b560989f77f67d6df', sectionTitle: "Link Value", sectionDescription: "Fields with the same Link Value will be linked together" }, h("input", { key: '3dcf0a33eecffe721849b4f3ea1c95cdbf6f545e', value: this.getValue('logicAction'), width: "30", placeholder: "eg. checkbox group", onChange: e => this.alter({ logicAction: e.target.value }) }))))));
|
|
26145
26324
|
}
|
|
26146
26325
|
};
|
|
26147
26326
|
LsFieldPropertiesAdvanced.style = lsFieldPropertiesAdvancedCss;
|
|
@@ -26154,7 +26333,7 @@ const LsFieldPropertiesAutosign = class {
|
|
|
26154
26333
|
}
|
|
26155
26334
|
dataItem;
|
|
26156
26335
|
render() {
|
|
26157
|
-
return (h(Host, { key: '
|
|
26336
|
+
return (h(Host, { key: 'df46931c369890f5abf0d25bd9fa8a8ad85ad68c' }, h("div", { key: '2f0d8d99305c136efd368327b8fd333435f068dd', class: "ls-field-properties-section" }, "Self Sign Field"), h("div", { key: 'bd70079d45b70bd3a2c18a148507757bee9f5973' }, "Label: ", h("input", { key: '108a5cc6158af4cb6a37c8f5678039bb354ec591', value: this.dataItem?.label, width: "30" })), h("ls-field-dimensions", { key: '3952b6ca0af4d444243f3c1d821ff72b74ad0100', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: '95df9502c26ca62a8ad46f946742c84555e9c40a', dataItem: this.dataItem }), h("ls-field-footer", { key: '8394977015e41a56d4896d6810e96c4df13c2ae2', dataItem: this.dataItem }), h("slot", { key: 'c6974754a07f99372795a71d9ec370bcbd345a08' })));
|
|
26158
26337
|
}
|
|
26159
26338
|
};
|
|
26160
26339
|
LsFieldPropertiesAutosign.style = lsFieldPropertiesAutosignCss;
|
|
@@ -26174,7 +26353,7 @@ const LsFieldPropertiesContainer = class {
|
|
|
26174
26353
|
}
|
|
26175
26354
|
}
|
|
26176
26355
|
render() {
|
|
26177
|
-
return (h(Host, { key: '
|
|
26356
|
+
return (h(Host, { key: '0603644fbc51f89389ddc25dd5b1371730feaeef' }, this.tabs.length > 1 && (h("div", { key: '602100153a470e329145e69bd38d200cc62daa7b', class: 'tabs-container', style: { gridTemplateColumns: `repeat(${this.tabs.length}, 1fr)` } }, this.tabs.map(tab => (h("button", { class: tab === this.selectedTab ? 'ls-tab active' : 'ls-tab', onClick: () => (this.selectedTab = tab) }, tab))))), h("div", { key: '2e63a3beabdcbaa4e7b15651ecdd0c583229d44f', class: 'scrolling-container' }, h("slot", { key: '4e891478873ea12a5c91e7ba4e45cbfc1398f149', name: this.selectedTab }))));
|
|
26178
26357
|
}
|
|
26179
26358
|
};
|
|
26180
26359
|
LsFieldPropertiesContainer.style = lsFieldPropertiesContainerCss;
|
|
@@ -26187,7 +26366,7 @@ const LsFieldPropertiesDate = class {
|
|
|
26187
26366
|
}
|
|
26188
26367
|
dataItem;
|
|
26189
26368
|
render() {
|
|
26190
|
-
return (h(Host, { key: '
|
|
26369
|
+
return (h(Host, { key: '36e129289aa11e64e2bd75fd1309439b3a520457' }, h("ls-field-properties-container", { key: '809c2b386857b610fd9e871e6579eb84e7d9feeb', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'ac2c345789f21e600ecbd4f55d2b55801a8e5a80', class: 'field-set', slot: "content" }, h("ls-field-content", { key: '2a1aa657a4f802f4ad34baac2031b71330f2ab82', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: '6032597ec4c0a36c12b044acc27da1373ede3348', dataItem: this.dataItem })), h("div", { key: '2becaa0335ce5a94dddc5f7c8dde19821801c520', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '5af127cb268acdd44e08845339fb33b8656aca96', dataItem: this.dataItem })), h("div", { key: 'b35e78ff494db8e0688b7ce1c1a75f21ed176e13', class: 'field-set', slot: "placement" }, h("ls-field-placement", { key: '067d2bdf244f537716d6916663357636bd551e00', dataItem: this.dataItem }))), h("ls-field-footer", { key: '53cbced3ec835b84dcd23c91ceef8345f6a040de', dataItem: this.dataItem })));
|
|
26191
26370
|
}
|
|
26192
26371
|
};
|
|
26193
26372
|
LsFieldPropertiesDate.style = lsFieldPropertiesDateCss;
|
|
@@ -26200,7 +26379,7 @@ const LsFieldPropertiesEmail = class {
|
|
|
26200
26379
|
}
|
|
26201
26380
|
dataItem;
|
|
26202
26381
|
render() {
|
|
26203
|
-
return (h(Host, { key: '
|
|
26382
|
+
return (h(Host, { key: '557c90379fcb802368e3cc9900aa1b5d795e89bb' }, h("ls-field-properties-container", { key: '9406fe9d01158e2cc360a97f597c633114654d1d', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '85399d641c1f731c77d67f1a83a0c9d8772e7baf', class: 'field-set', slot: "content" }, h("ls-field-content", { key: '3e24119b85e872c3b706e6e99c107035a4cb6353', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: '7d17afd248948968abe6358d1f96798f9ecd5f3c', dataItem: this.dataItem })), h("div", { key: 'bef58eca745bacad8969861db73655986135d952', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '075fd44bd77e2c3e5d380167530dc87b6b94cf8e', dataItem: this.dataItem })), h("div", { key: '421e4db23ff914c7d6b861dae38d92d115472a0c', class: 'field-set', slot: "placement" }, h("ls-field-placement", { key: '7a281a15446c697d5a4da832ef09b970faf806a7', dataItem: this.dataItem }))), h("ls-field-footer", { key: '6a9a2c13c5692e15ae816c655f0a2e40f88445b8', dataItem: this.dataItem })));
|
|
26204
26383
|
}
|
|
26205
26384
|
};
|
|
26206
26385
|
LsFieldPropertiesEmail.style = lsFieldPropertiesEmailCss;
|
|
@@ -26213,7 +26392,7 @@ const LsFieldPropertiesFile = class {
|
|
|
26213
26392
|
}
|
|
26214
26393
|
dataItem;
|
|
26215
26394
|
render() {
|
|
26216
|
-
return (h(Host, { key: '
|
|
26395
|
+
return (h(Host, { key: 'bee6d5d0d1f6520b1784585b0ea4517faabdda70' }, h("ls-field-properties-container", { key: 'a37773f2fc761aac6ad779a83f833d7b268949c4', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '68bc9c76ab775a782330f02da0534b4b76f842f5', class: 'field-set', slot: "content" }, h("ls-field-content", { key: '223ce26cb3a8afcbe12d356a346f682a07c4cbae', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: '829a97eb8b576280cf9a8ce2d8497c51e293244b', dataItem: this.dataItem })), h("div", { key: '2ec54dd64c0303fd63cdeb9f9eb4263ac39e8fbe', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '111fd6c0372890cbce36e2dc22a991c8decc95d0', dataItem: this.dataItem })), h("div", { key: '425689aebfda1c89de75fe9471db3937053a2a1b', class: 'field-set', slot: "placement" }, h("ls-field-placement", { key: '7bedf59453fb4083dfa2e1b1976fb139600d1325', dataItem: this.dataItem }))), h("ls-field-footer", { key: 'bf6a97a46730aa15abd404a5b11737ece8acbfab', dataItem: this.dataItem })));
|
|
26217
26396
|
}
|
|
26218
26397
|
};
|
|
26219
26398
|
LsFieldPropertiesFile.style = lsFieldPropertiesFileCss;
|
|
@@ -26226,7 +26405,7 @@ const LsFieldPropertiesGeneral = class {
|
|
|
26226
26405
|
}
|
|
26227
26406
|
dataItem;
|
|
26228
26407
|
render() {
|
|
26229
|
-
return (h(Host, { key: '
|
|
26408
|
+
return (h(Host, { key: 'bae2503fd50b94ad99bfbb24f2abe5e6d5629e2e' }, h("ls-field-properties-container", { key: 'deceb2d1e04ab59a142a46cb9a14a8c38c82b093', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '4a7e524042efba3b2f03fc82598660dd78e3613e', class: 'field-set', slot: "content" }, h("ls-field-content", { key: '820a9ed90d55c4138441442c08ee94c70ccd1d0c', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: 'c999ac86bed0fb6e220c48b7848e3ef7b4101d94', dataItem: this.dataItem })), h("div", { key: '1123d84abf45da1002b62f0d44227cb8361be661', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '4c4c2ccd243e44c36f5f9c4862a12c10e188c630', dataItem: this.dataItem })), h("div", { key: 'f4b01c607e46eaf9895aa6949d3fc7071c3da3ac', class: 'field-set', slot: "placement" }, h("ls-field-placement", { key: '9f7628923c352061af77363ff4fff8391b955abf', dataItem: this.dataItem }))), h("ls-field-footer", { key: 'ae2d65be67e5fc3c13dbffec1e7c1a63c902c394', dataItem: this.dataItem })));
|
|
26230
26409
|
}
|
|
26231
26410
|
};
|
|
26232
26411
|
LsFieldPropertiesGeneral.style = lsFieldPropertiesGeneralCss;
|
|
@@ -26239,7 +26418,7 @@ const LsFieldPropertiesImage = class {
|
|
|
26239
26418
|
}
|
|
26240
26419
|
dataItem;
|
|
26241
26420
|
render() {
|
|
26242
|
-
return (h(Host, { key: '
|
|
26421
|
+
return (h(Host, { key: 'ddf83beff21acc56fc0bcdea811f8c93294bace3' }, h("ls-field-properties-container", { key: '3249c39e164149e3d3c393ed40225bb06af75ab7', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '6aee8f7c5a58d52c53ea0a905b99436c286cbd67', class: 'field-set', slot: "content" }, h("ls-field-content", { key: 'b6265eb5dfb39f3283ffc2045b8460f95093771e', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: 'aec88fe3ca2d5fffaeb949a155d2f4dd56ba54b8', dataItem: this.dataItem })), h("div", { key: '57acc8a5f78004601c787655fe5f7ee9374f46e8', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'c75abe20033bfa8fa3526312b84bca714472df02', dataItem: this.dataItem })), h("div", { key: 'ace7da4cdf9f231fbbb42ca5ada0150f073049f7', class: 'field-set', slot: "placement" }, h("ls-field-placement", { key: '5fc562a92d7948974eca672bd98a891b93ec299e', dataItem: this.dataItem }))), h("ls-field-footer", { key: '537e4d7fb85548e3d366af7fe7ae4eed044bb032', dataItem: this.dataItem })));
|
|
26243
26422
|
}
|
|
26244
26423
|
};
|
|
26245
26424
|
LsFieldPropertiesImage.style = lsFieldPropertiesImageCss;
|
|
@@ -26269,8 +26448,29 @@ const lsFieldPropertiesMultipleCss = ":host{display:flex;flex-direction:column;g
|
|
|
26269
26448
|
const LsFieldPropertiesMultiple = class {
|
|
26270
26449
|
constructor(hostRef) {
|
|
26271
26450
|
registerInstance(this, hostRef);
|
|
26451
|
+
this.mutate = createEvent(this, "mutate");
|
|
26452
|
+
this.update = createEvent(this, "update");
|
|
26272
26453
|
}
|
|
26273
26454
|
dataItem;
|
|
26455
|
+
mutate;
|
|
26456
|
+
update;
|
|
26457
|
+
// Send one or more mutations up the chain
|
|
26458
|
+
// The source of the chain fires the mutation
|
|
26459
|
+
// NOTE this alter is debounced to account for typing
|
|
26460
|
+
alter(diff) {
|
|
26461
|
+
this.dataItem = this.dataItem.map(item => ({ ...item, ...diff }));
|
|
26462
|
+
this.debounce(diff, 500);
|
|
26463
|
+
}
|
|
26464
|
+
labeltimer;
|
|
26465
|
+
debounce(diff, delay) {
|
|
26466
|
+
if (this.labeltimer)
|
|
26467
|
+
clearTimeout(this.labeltimer);
|
|
26468
|
+
this.labeltimer = setTimeout(() => {
|
|
26469
|
+
const evs = this.dataItem.map(item => ({ action: 'update', data: { ...item, ...diff } }));
|
|
26470
|
+
this.mutate.emit(evs);
|
|
26471
|
+
this.update.emit(evs);
|
|
26472
|
+
}, delay);
|
|
26473
|
+
}
|
|
26274
26474
|
allSignersSame = () => {
|
|
26275
26475
|
if (!this.dataItem || this.dataItem.length === 0)
|
|
26276
26476
|
return { isSame: true, signer: undefined };
|
|
@@ -26292,15 +26492,22 @@ const LsFieldPropertiesMultiple = class {
|
|
|
26292
26492
|
const allSame = this.dataItem.every(item => item.elementType === firstElementType);
|
|
26293
26493
|
return { isSame: allSame, elementType: allSame ? firstElementType : 'mixed' };
|
|
26294
26494
|
};
|
|
26495
|
+
allFieldsOptional = () => {
|
|
26496
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
26497
|
+
return { isSame: true, optional: false };
|
|
26498
|
+
const firstElementOptional = this.dataItem[0].optional;
|
|
26499
|
+
const allSame = this.dataItem.every(item => item.optional === firstElementOptional);
|
|
26500
|
+
return { isSame: allSame, optional: allSame ? firstElementOptional : false };
|
|
26501
|
+
};
|
|
26295
26502
|
render() {
|
|
26296
|
-
return (h(Host, { key: '
|
|
26503
|
+
return (h(Host, { key: 'f476c81a545cfa5d49517c70cfe8f12ecbf22cd7' }, h("ls-field-properties-container", { key: '1a8fdf264a6d8e7eb234f64ff2903b87746c91e2', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '415c57349a6ad5305b558483b65d1e3e80c4cfc1', class: 'field-set', slot: "content" }, h("div", { key: '3a29f3fbb697f06743f796d4e73d52af64926b40', class: 'ls-field-properties-section' }, h("div", { key: 'cb368cfd54d6dc7a391f3c8583f7c97ac2d03639', class: 'ls-field-properties-section-text' }, h("p", { key: 'c244f2e88969792b29a8107c75fd4ec092639185', class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { key: 'af171d75c8f0e2e568c4ab01535d49eac53630f3', class: 'ls-field-properties-section-description' }, "The Fields you currently have selected")), h("div", { key: '3afaaa697c6e4b381854bc10eb177b7d3b47d6c1', class: 'ls-field-type-wrapper', style: {
|
|
26297
26504
|
border: `1px dashed ${defaultRolePalette[this.allSignersSame().signer % 100].s30}`,
|
|
26298
26505
|
background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
|
|
26299
|
-
} }, h("div", { key: '
|
|
26506
|
+
} }, h("div", { key: 'd468dc7f2d3e3c626348a137fa43aba2c965cba6', class: 'ls-field-type-inner' }, h("div", { key: '2047648d2b18974e2ed65b94ffbf6aa397e84177', class: 'ls-field-type-icon', style: {
|
|
26300
26507
|
border: `1px solid ${defaultRolePalette[this.allSignersSame().signer % 100].s60}`,
|
|
26301
26508
|
color: defaultRolePalette[this.allSignersSame().signer % 100].s60,
|
|
26302
26509
|
background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
|
|
26303
|
-
} }, h("ls-icon", { key: '
|
|
26510
|
+
} }, h("ls-icon", { key: 'a3d57f28b6cd6cf372da48f53892e681a9a819cc', name: getFieldIcon(this.allElementsSame().elementType), size: "20" })), h("p", { key: '594dc697a1f908fd41e202588a7cf799e6ba201e', class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), h("div", { key: 'c4c9baafa20cf8a7aea384ced5f41d04ec6dce17', class: 'ls-field-properties-section row' }, h("div", { key: '6c4e47a9e34898860fdabdf0bd7849a1de49c797', class: 'ls-field-properties-section-text' }, h("p", { key: 'b07c560ea096a8966074c1b55b97cca62c96f404', class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", { key: '506d4aba1e3cee00dc291a4a3e6a90328f366526', onValueChange: (ev) => this.alter({ optional: !ev.detail }), checked: !this.allFieldsOptional().optional, indeterminate: this.allFieldsOptional().isSame === false })), h("div", { key: '9a872405a537b1bdbbd69cd24344393141bb6759', class: 'ls-field-properties-section' }, h("div", { key: 'f61b198abd3a21adaf3984ce1e0f1e234176f600', class: 'ls-field-properties-section-text' }, h("p", { key: '751dbeb8d45c04b182e83327c9514840c9e8f370', class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { key: '3b87f243c3a86c1c52d8604ec3bd9411e11309ea', class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { key: 'faaa4bb9f9ea893eca15a4034cd582afd49a2965', value: this.allLabelsSame().label, onInput: (e) => this.alter({ label: e.target.value }), width: "30", placeholder: "eg. Sign Here" }))), h("div", { key: '456511585e43608a89e7d5331eb027ab71d08e98', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '0aaafaf40ce37451f6f9ea459ccd9e07e7bedc9f', dataItem: this.dataItem }), h("ls-field-size", { key: 'b1aa99293901f0ade2647688bb0ea3cb7c681850', dataItem: this.dataItem })), h("div", { key: 'e2901a24e8a7994169e4d146a7c3c55040802398', class: 'field-set', slot: "placement" }, h("ls-field-alignment", { key: '0e26ff3cdde4a50f3d6d1d326d76219bf5bdc93b', dataItem: this.dataItem }), h("ls-field-placement", { key: 'f20e953cec0564b6b013d4e560f2532b29c50952', dataItem: this.dataItem }), h("ls-field-distribute", { key: '8eb4e16583a4bd3b550178f83038067a3a8412e5', dataItem: this.dataItem }))), h("ls-field-footer", { key: 'b5b1b4bfaef25effda90fb0a6b9ee00e9d950d8c' }), h("slot", { key: '57f76abbe5d2e9592d88c53f66d20b074d251ac6' })));
|
|
26304
26511
|
}
|
|
26305
26512
|
};
|
|
26306
26513
|
LsFieldPropertiesMultiple.style = lsFieldPropertiesMultipleCss;
|
|
@@ -26313,7 +26520,7 @@ const LsFieldPropertiesNumber = class {
|
|
|
26313
26520
|
}
|
|
26314
26521
|
dataItem;
|
|
26315
26522
|
render() {
|
|
26316
|
-
return (h(Host, { key: '
|
|
26523
|
+
return (h(Host, { key: '68ff2165b13ccc43d6a685a7d6d42396f06b925a' }, h("ls-field-properties-container", { key: 'f16402f8dd1ee0e98a346b1347c938baab354846', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '2b715391b5d40c3f040ff171ae2da91b4f8cffa1', class: 'field-set', slot: "content" }, h("ls-field-content", { key: '32846c02fcc7f55e73a432ab1cd0516ff1c23554', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: '2e2b0e88c815e0e18935793fa1bb0d33389492b8', dataItem: this.dataItem })), h("div", { key: '60b2074337012d34fa809c772f9fde6deb0f3ff7', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'bc3785f75bbc19e32b51a8a904f2b2a350c10a69', dataItem: this.dataItem })), h("div", { key: '16f27469b5eb8a5695305b145dd0a63de95bbc4c', class: 'field-set', slot: "placement" }, h("ls-field-placement", { key: '26219c3f7913f5c0c962fe7faf8739de119a02c6', dataItem: this.dataItem }))), h("ls-field-footer", { key: 'c83c7dda209e25158808a8f1c9d37f5eaac1ddbe', dataItem: this.dataItem })));
|
|
26317
26524
|
}
|
|
26318
26525
|
};
|
|
26319
26526
|
LsFieldPropertiesNumber.style = lsFieldPropertiesNumberCss;
|
|
@@ -26326,7 +26533,7 @@ const LsFieldPropertiesSignature = class {
|
|
|
26326
26533
|
}
|
|
26327
26534
|
dataItem;
|
|
26328
26535
|
render() {
|
|
26329
|
-
return (h(Host, { key: '
|
|
26536
|
+
return (h(Host, { key: '62a9fd4dd5535ce5bcc94fe11cb07020fe391742' }, h("ls-field-properties-container", { key: 'b15a383a7c51769a9c52266c91a47f65c0e85fcb', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'cea89d50cb383f0468553718fe3b11c2116de837', class: 'field-set', slot: "content" }, h("ls-field-content", { key: 'f3043200e40ef623e0686a88ee3bad50195837d3', dataItem: this.dataItem, showValidationTypes: false }), h("ls-field-properties-advanced", { key: '4df0fa78e6b9da356e25f0e6a7192b094fcf8ff3', dataItem: this.dataItem })), h("div", { key: '331a919f4521b1995a9c5e3200587b50ce34c64d', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '816c2f009afb374398640cd08a218523704a3abf', dataItem: this.dataItem })), h("div", { key: '00abad768142abdca45ad3b490cef45f40ff339e', class: 'field-set', slot: "placement" }, h("ls-field-placement", { key: 'ec7710454b70120172308d1c5abafd3a1f307192', dataItem: this.dataItem }))), h("ls-field-footer", { key: '0c27bcb56616a77d26017e6541bbf5a21d36a4b0', dataItem: this.dataItem })));
|
|
26330
26537
|
}
|
|
26331
26538
|
};
|
|
26332
26539
|
LsFieldPropertiesSignature.style = lsFieldPropertiesSignatureCss;
|
|
@@ -26339,7 +26546,7 @@ const LsFieldPropertiesText = class {
|
|
|
26339
26546
|
}
|
|
26340
26547
|
dataItem;
|
|
26341
26548
|
render() {
|
|
26342
|
-
return (h(Host, { key: '
|
|
26549
|
+
return (h(Host, { key: '42c376824ac0c4987319bbcd556420351c8c7abe' }, h("ls-field-properties-container", { key: '2d341f1daef2b8c4cfbf1b6da7613aee0ebc6214', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '11379672c5f10a25793bb1845c62d3d9f3cca9fb', class: 'field-set', slot: "content" }, h("ls-field-content", { key: 'f8d31ed0dadefadf09b01bec1c6b06c3294662bd', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: 'e48c9bfe2abbcbd7fe4075a14741a2e17b946994', dataItem: this.dataItem })), h("div", { key: '23b04bd4d66018f4ec4e9c727cd4e55ad36663e0', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '03f0589f370fd86319a91a38e9ab85e3b038319f', dataItem: this.dataItem })), h("div", { key: 'f9aee3ec9536ba05ea963e46e7575c254de7b154', class: 'field-set', slot: "placement" }, h("ls-field-placement", { key: '088523bd2b8f06eebe6c969b7a846cbfee31fe5c', dataItem: this.dataItem }))), h("ls-field-footer", { key: 'd290dea659d37cd2cdad5dd5f03e71d118db9473', dataItem: this.dataItem })));
|
|
26343
26550
|
}
|
|
26344
26551
|
};
|
|
26345
26552
|
LsFieldPropertiesText.style = lsFieldPropertiesTextCss;
|
|
@@ -26366,7 +26573,7 @@ const LsFieldSize = class {
|
|
|
26366
26573
|
this.update.emit(diffs);
|
|
26367
26574
|
}
|
|
26368
26575
|
render() {
|
|
26369
|
-
return (h(Host, { key: '
|
|
26576
|
+
return (h(Host, { key: '3512b35c1a8bdace79f2196765e2892387a082ab' }, h("div", { key: 'b0535c73b7ad10b7a41d09fc3e97847802c04ea7', class: 'ls-field-properties-section' }, h("div", { key: '5f938c1b6f72720657fd06337cff7b2cfb7e0b18', class: 'ls-field-properties-section-text' }, h("p", { key: '2285e0fc40f37ac0e63f145f5111825371677114', class: 'ls-field-properties-section-title' }, "Scale and Resize"), h("p", { key: '79dece2d13f38f5f6473fd82a19e5574ae2152b1', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), h("div", { key: '0ab5908841094a3ebc9053a4047608fdb1ceb5ea', class: 'button-group' }, h("button", { key: '7d711ca327b83444e3f7f7da6f308abd8de79c88', onClick: () => this.alter({ width: this.dataItem[0].width, height: this.dataItem[0].height }), "aria-label": "Make selected fields the same height and width as the first selected field.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Make selected fields the same height and width as the first selected field.", "data-tooltip-place": "top" }, h("ls-icon", { key: '2f8262c4497b399c1f7b3331c83cbdd2da9bf7c7', name: "field-scale" })), h("button", { key: 'af9ccb863f0f310b753a8b57fe4ec6bda2b984aa', "aria-label": "Make selected fields the same width as the first selected field.", onClick: () => this.alter({ width: this.dataItem[0].width }), "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Make selected fields the same width as the first selected field.", "data-tooltip-place": "top" }, h("ls-icon", { key: 'c00a7c60775de17e949063175e15af84d2d53324', name: "field-match-width" })), h("button", { key: '32236424b6bf23199df20d686b1ed3db4020ef51', onClick: () => this.alter({ height: this.dataItem[0].height }), "aria-label": "Make selected fields the same height as the first selected field.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Make selected fields the same height as the first selected field.", "data-tooltip-place": "top" }, h("ls-icon", { key: '69e4ad1909f9c3cf82dd37f96d6a36d4508a0ab8', name: "field-match-height" })))), h("slot", { key: 'de626a2771e6e5f24f9e1a445789f314223a4479' })));
|
|
26370
26577
|
}
|
|
26371
26578
|
};
|
|
26372
26579
|
LsFieldSize.style = lsFieldSizeCss;
|
|
@@ -26401,74 +26608,18 @@ const LsFieldTypeDisplay = class {
|
|
|
26401
26608
|
fieldType = 'signature';
|
|
26402
26609
|
render() {
|
|
26403
26610
|
const color = defaultRolePalette[this.assignee % 100];
|
|
26404
|
-
return (h(Host, { key: '
|
|
26611
|
+
return (h(Host, { key: '73dd27b05de7a8477b497ee5bb79af0ca31789b2', class: 'ls-field-type-wrapper', style: {
|
|
26405
26612
|
border: `1px dashed ${color.s30}`,
|
|
26406
26613
|
background: color.s10,
|
|
26407
|
-
} }, h("div", { key: '
|
|
26614
|
+
} }, h("div", { key: '445d44e52106148630629b0fafab019422f1a05d', class: 'ls-field-type-inner' }, h("div", { key: '2abde211fce10f59df054f70bcfd5f7cd21cd624', class: 'ls-field-type-icon', style: {
|
|
26408
26615
|
border: `1px solid ${color.s60}`,
|
|
26409
26616
|
color: color.s60,
|
|
26410
26617
|
background: color.s10,
|
|
26411
|
-
} }, h("ls-icon", { key: '
|
|
26618
|
+
} }, h("ls-icon", { key: 'e521264b748012a137d3246f9d539e9e93704d4c', name: getFieldIcon(this.fieldType), size: "20" })), h("p", { key: '3da29fd61c972c9cee454bccd69d70736fe22a2a', class: 'ls-field-type-name' }, getFieldLabel(this.fieldType)))));
|
|
26412
26619
|
}
|
|
26413
26620
|
};
|
|
26414
26621
|
LsFieldTypeDisplay.style = lsFieldTypeDisplayCss;
|
|
26415
26622
|
|
|
26416
|
-
const lsFormfieldCss = "* {\n box-sizing: border-box;\n margin: 0;\n}\n\n.formfield-host {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n width: 100%;\n}\n\n.formfield-top-elements {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0 0.125rem;\n}\n\n.formfield-left-side {\n display: flex;\n align-items: center;\n width: 100%;\n gap: 0.5rem;\n\n ls-icon {\n color: var(--gray-80, #787A80);\n }\n\n .formfield-label {\n color: var(--gray-100, #45484D);\n /* text-base/leading-6/font-medium */\n font-size: 1rem;\n font-style: normal;\n font-weight: 500;\n line-height: 1.5rem; /* 150% */\n }\n}\n\n.formfield-bottom-elements {\n position: relative;\n min-height: 1rem;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n height: fit-content;\n padding: 0 0.125rem;\n}\n\n.formfield-description-text {\n color: var(--Grey-80, #6C6E73);\n width: 100%;\n /* text-xs/leading-4/font-light */\n font-size: 0.75rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1rem; /* 133.333% */\n}\n\n.formfield-error-text {\n color: var(--red-70, #DC2721);\n width: 100%;\n /* text-xs/leading-4/font-light */\n font-size: 0.75rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1rem; /* 133.333% */\n}\n\n.formfield-count-container {\n position: absolute;\n right: 0;\n bottom: 0;\n display: flex;\n gap: 0.125rem;\n align-items: center;\n font-size: 0.75rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1rem; /* 133.333% */\n text-align: right;\n}\n\n.formfield-count {\n display: flex;\n align-items: center;\n color: var(--Grey-70, #6C6E73);\n gap: 0.125rem;\n}\n\n.formfield-count-error {\n display: flex;\n align-items: center;\n gap: 0.125rem;\n color: var(--red-70, #DC2721);\n}\n\n\n";
|
|
26417
|
-
|
|
26418
|
-
const LsFormfield = class {
|
|
26419
|
-
constructor(hostRef) {
|
|
26420
|
-
registerInstance(this, hostRef);
|
|
26421
|
-
this.valueChange = createEvent(this, "valueChange");
|
|
26422
|
-
}
|
|
26423
|
-
name;
|
|
26424
|
-
fieldId;
|
|
26425
|
-
label;
|
|
26426
|
-
as = 'text';
|
|
26427
|
-
value;
|
|
26428
|
-
placeholder;
|
|
26429
|
-
descriptionText;
|
|
26430
|
-
errorText;
|
|
26431
|
-
aria;
|
|
26432
|
-
inputRef;
|
|
26433
|
-
infoTooltipText;
|
|
26434
|
-
hoverTooltipText;
|
|
26435
|
-
disabled;
|
|
26436
|
-
extraLabel = 'none';
|
|
26437
|
-
required;
|
|
26438
|
-
valid;
|
|
26439
|
-
dirty;
|
|
26440
|
-
count;
|
|
26441
|
-
countMax;
|
|
26442
|
-
buttonClick;
|
|
26443
|
-
buttonIcon;
|
|
26444
|
-
labelIcon;
|
|
26445
|
-
fieldIcon;
|
|
26446
|
-
valueChange;
|
|
26447
|
-
changeHandler(value) {
|
|
26448
|
-
this.valueChange.emit(value);
|
|
26449
|
-
}
|
|
26450
|
-
_value;
|
|
26451
|
-
valueWatcher(newValue) {
|
|
26452
|
-
this._value = newValue;
|
|
26453
|
-
console.log(newValue);
|
|
26454
|
-
}
|
|
26455
|
-
componentWillLoad() {
|
|
26456
|
-
this.valueWatcher(this?.value?.toString());
|
|
26457
|
-
}
|
|
26458
|
-
render() {
|
|
26459
|
-
const { name, fieldId, label, as, value, placeholder, descriptionText, errorText, aria, infoTooltipText, disabled, extraLabel, valid, dirty, count, countMax, buttonClick, buttonIcon, fieldIcon, labelIcon, } = this;
|
|
26460
|
-
const countClass = value && value.toString().length > countMax ? 'formfield-count-error' : 'formfield-count';
|
|
26461
|
-
return (h("host", { key: 'e5f6824f9df6531776c52480132206b43012ca0b', class: "formfield-host" }, label?.length > 1 || extraLabel !== 'none' && (h("div", { key: '3d3fc82daac2f290ec293ddc16a543db641b499b', class: "formfield-top-elements" }, h("div", { key: '6429a6fce7eac8e3265d8f1ec8796dd6fe523bff', class: "formfield-left-side" }, labelIcon && h("ls-icon", { key: '5959bf93a9a5425036954e6cf09af87c65e45b46', name: labelIcon }), h("label", { key: 'f35970243533ed0e33d5eeca905e685fc0f16ec2', htmlFor: name, class: "formfield-label" }, label), infoTooltipText && h("ls-icon", { key: 'ed6e965221f7514d35ac42dd50919a915afacc0e', name: 'information-circle' })), extraLabel === 'optional' ? (h("ls-label", { text: "Optional", colour: "gray", type: "low" })) : extraLabel === 'required' ? (h("ls-label", { text: "Required", colour: "gray", type: "low" })) : (''))), as === 'text' ? (h("ls-text-input", { id: fieldId, name: name, value: value?.toString(), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon, onValueChange: (e) => { this.changeHandler(e.detail); } })) : as === 'select' ? (h("ls-select-input", { id: name, name: name, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon }, h("slot", null))) : as === 'radio' ? (h("ls-radio-input", { radioId: label, label: value?.toString(), icon: fieldIcon, name: name, disabled: disabled })) : as === 'textarea' ? (h("ls-textarea-input", { id: name, name: name, value: value?.toString(), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon })) : as === 'password' ? (h("ls-text-input", { type: "password", id: name, name: name, value: value?.toString(), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon })) : as === 'displayonly' ? (h("ls-text-input", { type: "displayonly", id: name, name: name, value: value?.toString(), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon })) : as === 'number' ? (h("ls-number-input", { type: "ls", id: name, name: name, value: Number(value), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon })) : (h("p", null, "placeholder")), errorText ||
|
|
26462
|
-
count ||
|
|
26463
|
-
countMax ||
|
|
26464
|
-
(descriptionText && (h("div", { key: '2ea304d4e81dae4788591d2e7aa5a39b184c6bb5', class: "formfield-bottom-elements" }, errorText && !valid ? h("p", { class: "formfield-error-text" }, errorText) : descriptionText ? h("p", { class: "formfield-description-text" }, descriptionText) : '', count && (h("div", { key: '873c047ac0043308946de56ee48656e7fab39125', class: "formfield-count-container" }, h("p", { key: '023f16d83231af14e88a60f7e4721dae5488a6ce', class: countClass }, value?.toString()?.length), countMax > 0 && (h("div", { key: '08421f716aaa649f04d3816cfba315e021aa6b1c', class: countClass }, h("p", { key: '4592374bf088582c7935e7613cc1030ed4f39b5d' }, "/"), h("p", { key: 'ee2e23debbb907cdd956a946c00bd63de2f35513' }, countMax))))))))));
|
|
26465
|
-
}
|
|
26466
|
-
static get watchers() { return {
|
|
26467
|
-
"value": ["valueWatcher"]
|
|
26468
|
-
}; }
|
|
26469
|
-
};
|
|
26470
|
-
LsFormfield.style = lsFormfieldCss;
|
|
26471
|
-
|
|
26472
26623
|
const html = String.raw;
|
|
26473
26624
|
const icons = [
|
|
26474
26625
|
// Hero Icons
|
|
@@ -33493,7 +33644,7 @@ const LsIcon = class {
|
|
|
33493
33644
|
console.warn('Icons in src/components/ls-icon/icons.ts should be identical to the enum type in src/types/Icon.ts. Please add all icons to the enum type.');
|
|
33494
33645
|
}
|
|
33495
33646
|
render() {
|
|
33496
|
-
return (h("host", { key: '
|
|
33647
|
+
return (h("host", { key: '22d3c71a636675912fa1ca782a1603f01249c86b' }, icons
|
|
33497
33648
|
?.filter((icon) => icon.name === this.name)
|
|
33498
33649
|
?.map((icon) => (h("div", { key: icon?.name, class: 'iconContainer', style: {
|
|
33499
33650
|
height: `${this.size}px`,
|
|
@@ -33512,56 +33663,91 @@ const LsInputWrapper = class {
|
|
|
33512
33663
|
leadingIcon;
|
|
33513
33664
|
select = false;
|
|
33514
33665
|
render() {
|
|
33515
|
-
return (h(Host, { key: '
|
|
33666
|
+
return (h(Host, { key: '27d8e1cd87ced072110e49eec513181b4b2a31fc' }, h("ls-icon", { key: 'f98e5fd1998af46901c8b4443d96ca3eacd9670b', id: "selectLeadingIcon", name: this.leadingIcon }), this.select && h("ls-icon", { key: '9472fb33b2df28d13ffe481fe451f2a9490e52b8', id: "selectorIcon", name: "selector" }), h("slot", { key: '99e95818e3c8f37ae3533d1b8bff73426324b5e1' })));
|
|
33516
33667
|
}
|
|
33517
33668
|
};
|
|
33518
33669
|
LsInputWrapper.style = lsInputWrapperCss;
|
|
33519
33670
|
|
|
33520
|
-
|
|
33521
|
-
|
|
33522
|
-
const lsNumberInputCss = "* {\n box-sizing: border-box;\n font-family:\n 'IBM Plex Sans',\n sans-serif;\n margin: 0;\n}\n\n.host {\n display: flex;\n width: 100%;\n padding: 0.25rem;\n align-items: flex-start;\n gap: 0.25rem;\n border-radius: 0.625rem;\n border: 1px solid var(--Grey-20, #edeff2);\n background: var(--Grey-10, #f7f8fa);\n}\n\n.input-container {\n position: relative;\n display: flex;\n width: 100%;\n}\n\n#fieldIcon {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0.75rem;\n color: var(--gray-80);\n}\n\n#fieldIconDisabled {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0.75rem;\n color: var(--gray-60);\n}\n\n#password-icon {\n padding-right: 0.25rem;\n}\n\n.icon-input {\n padding-left: 2.5rem !important;\n}\n\n.button-input {\n padding-right: 2.5rem !important;\n}\n\n.right-items-input {\n padding-right: 4rem !important;\n}\n\n.input-basic {\n display: flex;\n width: 100%;\n height: 2.25rem;\n padding: 0.5rem 0.75rem;\n align-items: center;\n gap: 0.5rem;\n align-self: stretch;\n border-radius: 0.5rem;\n /* Shadow/sm */\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n /* text-sm/leading-5/font-regular */\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 400;\n}\n\n.input-ls {\n display: flex;\n width: 100%;\n height: 1.75rem;\n padding: 0 0.5rem;\n align-items: center;\n gap: 0.5rem;\n align-self: stretch;\n border-radius: 0.375rem;\n /* Shadow/sm */\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n /* text-sm/leading-5/font-regular */\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 400;\n\n\n}\n\n.input-ls::-webkit-outer-spin-button,\n.input-ls::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n.input-ls {\n -moz-appearance: textfield;\n}\n\ninput-base:active:not(:disabled) {\n outline: 1px solid var(--Legalesign-Blue-60, #4456f6);\n box-shadow:\n 0px 0px 3px 0px rgba(0, 15, 153, 0.25),\n 0px 0px 2px 0px rgba(0, 15, 153, 0.06),\n 0px 0px 0px 4px #9dc3fc;\n}\n\ninput:focus:not(:disabled) {\n outline: 1px solid var(--Legalesign-Blue-60, #4456f6);\n box-shadow:\n 0px 0px 3px 0px rgba(0, 15, 153, 0.25),\n 0px 0px 2px 0px rgba(0, 15, 153, 0.06),\n 0px 0px 0px 4px #9dc3fc;\n}\n\n.default {\n border: 1px solid var(--gray-40, #d8d9dc);\n background: var(--White, #fff);\n color: var(--gray-100);\n}\n\n.default:hover {\n border: 1px solid var(--gray-50, #d8d9dc);\n background: var(--White, #fff);\n color: var(--gray-110);\n}\n\n.disabled {\n border: 1px solid var(--gray-40, #d8d9dc);\n background: var(--gray-10, #f7f8fa);\n color: var(--gray-60);\n cursor: not-allowed;\n}\n\n.display-only {\n border: 1px solid var(--gray-40, #d8d9dc);\n background: var(--gray-10, #f7f8fa);\n color: var(--gray-100);\n cursor: not-allowed;\n}\n\n.invalid {\n border: 1px solid var(--red-40, #ffa19e);\n background: var(--White, #fff);\n color: var(--Red-100, #7a1714);\n}\n\n.invalid:hover {\n border: 1px solid var(--red-50, #ffa19e);\n background: var(--White, #fff);\n color: var(--Red-100, #7a1714);\n}\n\n.valid {\n border: 1px solid var(--green-40, #72f0c2);\n background: var(--White, #fff);\n color: var(--Green-100, #125241);\n}\n\n.valid:hover {\n border: 1px solid var(--green-50, #72f0c2);\n background: var(--White, #fff);\n color: var(--Green-100, #125241);\n}\n\n.right-items {\n position: absolute;\n padding: 0.25rem;\n height: 36px;\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n}\n\n#invalidIcon {\n margin: 0 0.5rem;\n color: var(--red-70);\n}\n\n#validIcon {\n margin: 0 0.5rem;\n color: var(--green-60);\n}\n\n.button {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--gray-50, #c8c9cc);\n background: var(--White, #fff);\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n\n #buttonIcon {\n color: var(--gray-90);\n }\n}\n\n.button-disabled {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--gray-40, #D8D9DC);\n background: var(--gray-=10, #F7F8FA);\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n cursor: not-allowed;\n\n #buttonIcon {\n color: var(--gray-70);\n }\n}\n\n.button:hover {\n border: 1px solid var(--gray-50, #c8c9cc);\n background: var(--gray-20, #edeff2);\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n\n.button:active {\n border: 1px solid var(--Primary-Blue-Light, #4456f6);\n background: var(--White, #fff);\n box-shadow:\n 0px 0px 4px 0px #c7ddff inset,\n 0px 0px 0px 4px #9dc3fc;\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n\n.button:focus {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--Primary-Blue-Light, #4456f6);\n background: var(--White, #fff);\n box-shadow:\n 0px 0px 4px 0px #c7ddff inset,\n 0px 0px 0px 4px #9dc3fc;\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n";
|
|
33671
|
+
const lsPageLoaderCss = ":host{position:fixed;display:flex;top:0;left:0;align-items:center;justify-content:center;background-color:rgba(251, 251, 251, 0.3);backdrop-filter:blur(2px);height:100%;width:100%;z-index:4000}.loading-animation{position:relative;width:200px;height:200px;color:var(--primary-60, #0c7cba)}";
|
|
33523
33672
|
|
|
33524
|
-
const
|
|
33673
|
+
const LsPageLoader = class {
|
|
33525
33674
|
constructor(hostRef) {
|
|
33526
33675
|
registerInstance(this, hostRef);
|
|
33527
33676
|
}
|
|
33528
|
-
type = 'ls';
|
|
33529
|
-
name;
|
|
33530
|
-
value = 0;
|
|
33531
|
-
placeholder;
|
|
33532
|
-
aria;
|
|
33533
|
-
inputRef;
|
|
33534
|
-
disabled;
|
|
33535
|
-
required;
|
|
33536
|
-
valid;
|
|
33537
|
-
dirty;
|
|
33538
|
-
countMax;
|
|
33539
|
-
buttonClick;
|
|
33540
|
-
buttonIcon;
|
|
33541
|
-
fieldIcon;
|
|
33542
|
-
handleChange = (event) => {
|
|
33543
|
-
this.value = event.target.value;
|
|
33544
|
-
};
|
|
33545
|
-
handlePlus = () => {
|
|
33546
|
-
this.value = this.value + 1;
|
|
33547
|
-
};
|
|
33548
|
-
handleMinus = () => {
|
|
33549
|
-
this.value = this.value - 1;
|
|
33550
|
-
};
|
|
33551
33677
|
render() {
|
|
33552
|
-
|
|
33553
|
-
|
|
33554
|
-
|
|
33555
|
-
:
|
|
33556
|
-
|
|
33557
|
-
|
|
33558
|
-
|
|
33559
|
-
|
|
33560
|
-
|
|
33561
|
-
|
|
33678
|
+
return (h(Host, { key: 'b8a22c0a50aa3264a4a8dc932601b7ad65321b40' }, h("div", { key: 'be65314af39c0d5d09bc8d66c2dc301d64c1d4da', class: 'loading-animation' }, h("svg", { key: 'b7175fdef641e5f00729f0949b2c4f013350a596', class: "block w-full h-full", fill: "none", preserveAspectRatio: "none", viewBox: "0 0 20 20" }, h("g", { key: '1e05cfca9a6c9a454fa0dc1c9f06f3f108ca48d4', id: "Icon/solid/logo" }, h("g", { key: 'ffc0feabedc0d90d0c072bdf56fa6b16c73cd590', id: "Icon" }, h("path", { key: '30cdf1467a8f5b216ac77a84f2e713866b63c07a', class: "classic-sequential-front", d: "M9.11077 0.940012C8.98702 0.868406 8.83446 0.868297 8.71061 0.939725C8.58675 1.01115 8.51044 1.14326 8.51044 1.28623V2.34625C8.51044 2.48927 8.5868 2.62141 8.71071 2.69282L14.6321 6.10546C14.818 6.21257 14.9325 6.41078 14.9325 6.6253V13.4621C14.9325 13.6044 15.0081 13.7359 15.131 13.8076L16.0285 14.3311C16.1522 14.4033 16.305 14.4038 16.4292 14.3325C16.5534 14.2611 16.63 14.1288 16.63 13.9856V5.52152C16.63 5.37876 16.5539 5.24681 16.4303 5.17531L9.11077 0.940012Z", fill: "currentColor" }), h("path", { key: 'b43f3d5dd81c338118400fc7ebf14bd59d28075a', class: "classic-sequential-middle", d: "M6.35621 2.52413C6.23246 2.45251 6.07989 2.45239 5.95603 2.52381C5.83217 2.59524 5.75585 2.72735 5.75585 2.87033V3.94156C5.75585 4.08504 5.83269 4.21752 5.95722 4.28876L8.20838 5.57659C8.39518 5.68345 8.51044 5.88218 8.51044 6.09739V9.75268C8.51044 9.89534 8.58642 10.0272 8.70984 10.0987L11.8717 11.9316C12.0569 12.0389 12.1708 12.2367 12.1708 12.4507V16.1015C12.1708 16.2434 12.2461 16.3747 12.3685 16.4465L13.2784 16.9801C13.4021 17.0526 13.5552 17.0534 13.6796 16.9821C13.804 16.9108 13.8808 16.7784 13.8808 16.635V7.10976C13.8808 6.96701 13.8047 6.83507 13.6811 6.76356L6.35621 2.52413Z", fill: "currentColor" }), h("path", { key: 'c52c0916d2e82f7c0c06bc437be4c2465e6de134', class: "classic-sequential-back", d: "M3.60419 4.12505C3.48039 4.05421 3.32824 4.05465 3.20486 4.1262C3.08147 4.19776 3.00552 4.3296 3.00552 4.47223V15.0385C3.00552 15.1812 3.08151 15.3131 3.20494 15.3846L10.5339 19.6323C10.6576 19.704 10.8102 19.7042 10.9341 19.6328C11.0581 19.5614 11.1344 19.4293 11.1344 19.2862V12.9374C11.1344 12.795 11.0587 12.6634 10.9357 12.5917L7.78047 10.7551C7.59587 10.6476 7.48232 10.4501 7.48232 10.2365V6.57621C7.48232 6.43276 7.40549 6.30029 7.28098 6.22904L3.60419 4.12505Z", fill: "currentColor" })))), h("style", { key: 'c58faea0d359c6b1d3fb00ff6944c9952dacbe09' }, `
|
|
33679
|
+
@keyframes classic-sequential-back {
|
|
33680
|
+
0% { opacity: 0; transform: scale(0.3); }
|
|
33681
|
+
2% { opacity: 0.3; transform: scale(0.5); }
|
|
33682
|
+
4% { opacity: 0.6; transform: scale(0.7); }
|
|
33683
|
+
6% { opacity: 0.8; transform: scale(0.85); }
|
|
33684
|
+
8% { opacity: 1; transform: scale(1); }
|
|
33685
|
+
22% { opacity: 1; transform: scale(1); }
|
|
33686
|
+
55% { opacity: 1; transform: scale(1); }
|
|
33687
|
+
64% { opacity: 1; transform: scale(1); }
|
|
33688
|
+
65% { opacity: 0.9; transform: scale(0.95); }
|
|
33689
|
+
66.2% { opacity: 0.75; transform: scale(0.88); }
|
|
33690
|
+
67.2% { opacity: 0.6; transform: scale(0.8); }
|
|
33691
|
+
68% { opacity: 0.4; transform: scale(0.7); }
|
|
33692
|
+
68.8% { opacity: 0.25; transform: scale(0.6); }
|
|
33693
|
+
69.5% { opacity: 0.1; transform: scale(0.45); }
|
|
33694
|
+
70% { opacity: 0.05; transform: scale(0.35); }
|
|
33695
|
+
71% { opacity: 0; transform: scale(0.3); }
|
|
33696
|
+
100% { opacity: 0; transform: scale(0.3); }
|
|
33697
|
+
}
|
|
33698
|
+
|
|
33699
|
+
@keyframes classic-sequential-middle {
|
|
33700
|
+
0%, 16% { opacity: 0; transform: scale(0.3); }
|
|
33701
|
+
18% { opacity: 0.3; transform: scale(0.5); }
|
|
33702
|
+
20% { opacity: 0.6; transform: scale(0.7); }
|
|
33703
|
+
22% { opacity: 0.8; transform: scale(0.85); }
|
|
33704
|
+
24% { opacity: 1; transform: scale(1); }
|
|
33705
|
+
36%, 65%, 70% { opacity: 1; transform: scale(1); }
|
|
33706
|
+
71% { opacity: 0.9; transform: scale(0.95); }
|
|
33707
|
+
72.2% { opacity: 0.75; transform: scale(0.88); }
|
|
33708
|
+
73.2% { opacity: 0.6; transform: scale(0.8); }
|
|
33709
|
+
74% { opacity: 0.4; transform: scale(0.7); }
|
|
33710
|
+
74.8% { opacity: 0.25; transform: scale(0.6); }
|
|
33711
|
+
75.5% { opacity: 0.1; transform: scale(0.45); }
|
|
33712
|
+
76% { opacity: 0.05; transform: scale(0.35); }
|
|
33713
|
+
77%, 100% { opacity: 0; transform: scale(0.3); }
|
|
33714
|
+
}
|
|
33715
|
+
|
|
33716
|
+
@keyframes classic-sequential-front {
|
|
33717
|
+
0%, 32% { opacity: 0; transform: scale(0.3); }
|
|
33718
|
+
34% { opacity: 0.3; transform: scale(0.5); }
|
|
33719
|
+
36% { opacity: 0.6; transform: scale(0.7); }
|
|
33720
|
+
38% { opacity: 0.8; transform: scale(0.85); }
|
|
33721
|
+
40% { opacity: 1; transform: scale(1); }
|
|
33722
|
+
60%, 76% { opacity: 1; transform: scale(1); }
|
|
33723
|
+
77% { opacity: 0.9; transform: scale(0.95); }
|
|
33724
|
+
78.2% { opacity: 0.75; transform: scale(0.88); }
|
|
33725
|
+
79.2% { opacity: 0.6; transform: scale(0.8); }
|
|
33726
|
+
80% { opacity: 0.4; transform: scale(0.7); }
|
|
33727
|
+
80.8% { opacity: 0.25; transform: scale(0.6); }
|
|
33728
|
+
81.5% { opacity: 0.1; transform: scale(0.45); }
|
|
33729
|
+
82% { opacity: 0.05; transform: scale(0.35); }
|
|
33730
|
+
83%, 100% { opacity: 0; transform: scale(0.3); }
|
|
33731
|
+
}
|
|
33732
|
+
|
|
33733
|
+
.classic-sequential-back {
|
|
33734
|
+
animation: classic-sequential-back 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
|
|
33735
|
+
transform-origin: center;
|
|
33736
|
+
}
|
|
33737
|
+
|
|
33738
|
+
.classic-sequential-middle {
|
|
33739
|
+
animation: classic-sequential-middle 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
|
|
33740
|
+
transform-origin: center;
|
|
33741
|
+
}
|
|
33742
|
+
|
|
33743
|
+
.classic-sequential-front {
|
|
33744
|
+
animation: classic-sequential-front 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
|
|
33745
|
+
transform-origin: center;
|
|
33746
|
+
}
|
|
33747
|
+
`)), h("slot", { key: '14a81aa90b119d816fc657f6a46f57ae94d0e4f2' })));
|
|
33562
33748
|
}
|
|
33563
33749
|
};
|
|
33564
|
-
|
|
33750
|
+
LsPageLoader.style = lsPageLoaderCss;
|
|
33565
33751
|
|
|
33566
33752
|
const lsParticipantCardCss = ":host{display:block}*{box-sizing:border-box;margin:0}.participant-card{display:flex;padding:0.625rem;flex-direction:column;align-items:flex-start;gap:0.5rem;align-self:stretch}.top-card{border-radius:1rem 1rem 0 0}.full-card{border-radius:1rem}.bottom-card{border-radius:0 0 1rem 1rem}.participant-card-inner{width:100%;display:flex;flex-direction:column;gap:0.5rem}.hidden{visibility:hidden;display:none}.form-button-set{display:flex;gap:0.5rem}.role-label{display:flex;padding:0.125rem 0.5rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:0.5rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.role-label.fields{border-radius:1rem;margin-top:0.5rem}.innerButton{margin:0px;padding:0px;max-height:1.25rem !important;max-width:1.25rem !important;background-color:transparent;border:none;cursor:pointer;color:var(--default-button-colour)}.innerButton:hover{color:var(--hover-button-colour)}.participant-card-top-items{display:flex;width:100%;justify-content:space-between;align-items:center}.button-set{display:flex;gap:0.125rem}.participant-text-description{font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.participant-text-type{font-style:normal;font-weight:400;line-height:1.25rem;}.titleButton{width:100%;text-align:left;background-color:transparent;border:none}.full-width{width:100%}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;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:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){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{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.tertiary{border:1px solid var(--primary-60, #4456f6);background:transparent;color:var(--primary-70, #2134dc)}button.tertiary:hover{border:1px solid var(--primary-70, #2134dc);border:1px solid var(--primary-80, #0c34b8)}button.destructive{border:1px solid var(--red-60, #f04438);background:transparent;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0);background-color:var(--red-10, #fff1f0)}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-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)}";
|
|
33567
33753
|
|
|
@@ -33616,36 +33802,36 @@ const LsParticipantCard = class {
|
|
|
33616
33802
|
render() {
|
|
33617
33803
|
const participantFields = this.template.elementConnection.templateElements.filter(f => f.signer === this.signer.signerIndex) || [];
|
|
33618
33804
|
const child = this.template.roles.find(r => r.signerParent === this.signer.id);
|
|
33619
|
-
return (h(Host, { key: '
|
|
33805
|
+
return (h(Host, { key: 'e948d8be468f8e81b0ea752b8c37aef7e83d5227' }, h("div", { key: '445aea342b4e4397bc4e6eb8c20e171bd853d59f', class: 'participant-card' + (child ? ' top-card' : this.signer?.signerParent ? ' bottom-card' : ' full-card'), style: {
|
|
33620
33806
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s10,
|
|
33621
33807
|
border: `1px solid ${defaultRolePalette[this.signer?.signerIndex % 100].s60}`,
|
|
33622
33808
|
marginTop: this.signer.roleType === 'WITNESS' ? '-0.813rem' : '0',
|
|
33623
33809
|
}, onMouseEnter: e => e.currentTarget.querySelector('.button-set')?.classList.remove('hidden'), onMouseLeave: e => e.currentTarget.querySelector('.button-set')?.classList.add('hidden'), onDblClick: () => {
|
|
33624
33810
|
this.editable = true;
|
|
33625
|
-
} }, h("div", { key: '
|
|
33811
|
+
} }, h("div", { key: 'b9e87febf6217ffb40c228e67dccc59a4e0a79ea', class: 'participant-card-inner' }, h("div", { key: '930e5dd57d2dba41214d4ae86b4520aec572e92a', class: 'participant-card-top-items' }, h("div", { key: '5cea99ed2038b51441e34c3be9510f7163b27e56', class: 'role-label', style: {
|
|
33626
33812
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
33627
33813
|
color: defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
33628
|
-
} }, h("ls-icon", { key: '
|
|
33814
|
+
} }, h("ls-icon", { key: 'b8bb19361e0cef64eae9bebf01a0fe73ade6be99', name: this.signer?.roleType === 'APPROVER' ? 'check-circle' : this.signer?.roleType === 'SIGNER' ? 'signature' : 'eye' }), 'Participant ' + (this.signer?.signerIndex || '')), h("div", { key: '14bb3077badecdd639ca9221db8ff8135072f008', class: 'button-set hidden' }, this.index > 0 && this.signer.roleType !== 'WITNESS' && (h("div", { key: 'eaf07f2aca39b4666ee36ed50023b198cc6695a9', class: "innerButton", onClick: () => {
|
|
33629
33815
|
this.swapHandler(this.signer, this.template.roles[this.index - 1]);
|
|
33630
33816
|
}, style: {
|
|
33631
33817
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33632
33818
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33633
|
-
} }, h("ls-icon", { key: '
|
|
33819
|
+
} }, h("ls-icon", { key: '48f6736e9f88b03b71dc0836141f2dce10c592da', name: "arrow-up", size: "18" }))), this.signer.signerIndex !== this.template.roles.length && this.signer.roleType !== 'WITNESS' && (h("div", { key: 'f1df1663aba7445c3998a10388054c38202a45d7', class: "innerButton", onClick: () => {
|
|
33634
33820
|
this.swapHandler(this.signer, this.template.roles[this.index + 1]);
|
|
33635
33821
|
}, style: {
|
|
33636
33822
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33637
33823
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33638
|
-
} }, h("ls-icon", { key: '
|
|
33824
|
+
} }, h("ls-icon", { key: '21f3302957048e5c218f04e6da680a5be3ac55ba', name: "arrow-down", size: "18" }))), h("div", { key: '4b59e37058412bbd8d04deb4418fb3f764dbf360', class: "innerButton", onClick: () => {
|
|
33639
33825
|
this.editable = !this.editable;
|
|
33640
33826
|
}, style: {
|
|
33641
33827
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33642
33828
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33643
|
-
} }, h("ls-icon", { key: '
|
|
33829
|
+
} }, h("ls-icon", { key: 'ab068a9b7832b9387a006230231970dd425ae739', name: this.editable ? 'check' : 'pencil-alt', size: "18" })), h("div", { key: 'acede95c9e80168f22b08e24602ade0b1fe1fdb7', class: "innerButton", onClick: () => {
|
|
33644
33830
|
this.deleteHandler(this.signer);
|
|
33645
33831
|
}, style: {
|
|
33646
33832
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33647
33833
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33648
|
-
} }, h("ls-icon", { key: '
|
|
33834
|
+
} }, h("ls-icon", { key: 'd72ebe8b0544eee194842f91f5d449d20ed1da56', name: "trash", size: "18" })))), this.editable ? (h("div", { class: 'participant-card-inner' }, this.signer?.roleType !== 'WITNESS' ? (h("ls-input-wrapper", { select: true, leadingIcon: this.signer?.roleType === 'APPROVER' ? 'check-circle' : 'signature' }, h("select", { name: "roleType", id: "role-type", class: 'has-leading-icon', onChange: e => this.alter({ roleType: e.target.value }), disabled: child ? true : false }, h("option", { value: "APPROVER", selected: this.signer?.roleType === 'APPROVER' }, "Approver"), h("option", { value: "SIGNER", selected: this.signer?.roleType === 'SIGNER' }, "Signer")))) : (h("ls-input-wrapper", { leadingIcon: "eye" }, h("input", { name: "roleType", id: "role-type", class: 'has-leading-icon', disabled: true, value: "Witness" }))), h("input", { type: "text", id: "participant-description", name: "participantDescription", placeholder: "Description, eg. Tenant 1, Agent", defaultValue: this.signer.name, onInput: e => this.alter({ name: e.target.value }), onKeyUp: e => {
|
|
33649
33835
|
if (e.key === 'Enter' || e.keyCode === 13)
|
|
33650
33836
|
this.editable = false;
|
|
33651
33837
|
} }), this.signer?.roleType === 'SIGNER' && !child ? (h("button", { class: 'tertiary', onClick: () => this.addParticipant.emit({ type: 'WITNESS', parent: this.signer.id }) }, h("ls-icon", { name: "plus", style: { marginRight: '0.25rem' } }), "Add Witness")) : this.signer?.roleType === 'SIGNER' && child ? (h("button", { class: 'destructive', onClick: () => {
|
|
@@ -33660,7 +33846,7 @@ const LsParticipantCard = class {
|
|
|
33660
33846
|
} }, this.signer.roleType.toLowerCase()), this.signer?.roleType !== 'APPROVER' && (h("div", { class: 'role-label fields', style: {
|
|
33661
33847
|
background: participantFields.length === 0 ? defaultRolePalette[this.signer?.signerIndex % 100].s60 : defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
33662
33848
|
color: participantFields.length === 0 ? 'white' : defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
33663
|
-
} }, participantFields.length === 0 && h("ls-icon", { name: "exclamation-circle", size: "16", style: { marginRight: '0.125rem' } }), participantFields.length === 0 ? 'Signature Required' : `${participantFields.length} ${participantFields.length === 1 ? 'Field' : 'Fields'}`)))))), h("slot", { key: '
|
|
33849
|
+
} }, participantFields.length === 0 && h("ls-icon", { name: "exclamation-circle", size: "16", style: { marginRight: '0.125rem' } }), participantFields.length === 0 ? 'Signature Required' : `${participantFields.length} ${participantFields.length === 1 ? 'Field' : 'Fields'}`)))))), h("slot", { key: '8059f6c9ce00424f838f1c073ec9b3bf62d1f25d' })));
|
|
33664
33850
|
}
|
|
33665
33851
|
static get watchers() { return {
|
|
33666
33852
|
"editable": ["modeHandler"]
|
|
@@ -33727,12 +33913,12 @@ const LsParticipantManager = class {
|
|
|
33727
33913
|
observer.observe(this.element.shadowRoot, { childList: true, subtree: true });
|
|
33728
33914
|
}
|
|
33729
33915
|
render() {
|
|
33730
|
-
return (h(Host, { key: '
|
|
33916
|
+
return (h(Host, { key: 'edef40a6b345a99b45e4088fd44e463fa769ae8d' }, h("div", { key: '211294eba6699885106d694deb2337eb51b785f8', class: "ls-editor-infobox" }, h("h2", { key: '68a39092393693765bcbc497a457014cbd307580', class: "toolbox-section-title" }, "Participants"), h("p", { key: '29453b8e8fce7eb39f4f34a0d876fe8dd72f6af4', class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), h("div", { key: 'ad9925bc37488c8f4a1cef7d3fdb59d21e92e926', class: "participant-list" }, this.template &&
|
|
33731
33917
|
this.template?.roles.map((r, index) => {
|
|
33732
33918
|
return (h("ls-participant-card", { signer: r, index: index, template: this.template, onOpened: event => {
|
|
33733
33919
|
this.handleOpened.bind(this)(event);
|
|
33734
33920
|
}, onAddParticipant: event => this.handleOpenNewWitness(event) }));
|
|
33735
|
-
})), h("div", { key: '
|
|
33921
|
+
})), h("div", { key: '3a474009f7ba0168da4af3e5807d228a36fe7fa3', class: 'add-participant-button' }, h("button", { key: '405528eb5bf2c30acca22254a8a2cef81f3cb673', onClick: () => this.addParticipant.emit({ type: 'SIGNER' }) }, h("ls-icon", { key: '58aa3bf54a5b49c1fffeca956fa42e8fe6712364', name: "user-add", size: "20", color: "var(--gray-100, #45484D);" }), h("p", { key: '71bcf3329ee400624f4d6dc2577e04c4a33860b0' }, "Add Participant"))), h("slot", { key: 'b2894e4a772329741ff796bf0a39e1333cfa567b' })));
|
|
33736
33922
|
}
|
|
33737
33923
|
};
|
|
33738
33924
|
LsParticipantManager.style = lsParticipantManagerCss;
|
|
@@ -33791,27 +33977,27 @@ const LsParticipantSelect = class {
|
|
|
33791
33977
|
this.addParticipant.emit({ type: 'SIGNER' });
|
|
33792
33978
|
}
|
|
33793
33979
|
render() {
|
|
33794
|
-
return (h(Host, { key: '
|
|
33980
|
+
return (h(Host, { key: '09e119f89d40ae2f0c697ea6721a76a5d6e1e131' }, h("div", { key: 'b9b09c3702d6571572040780cff601ac6d4746c6', class: "dropdown" }, h("div", { key: 'e73286da66a604ebcd2aa3923730b0304726abd9', class: "dropdown-header", onClick: this.toggleDropdown }, h("svg", { key: 'c7d43f1e1153ee47c7512863497a93ddd9cbe013', width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'e7020a015d4ba9df000578c37f296f7638c7d700', d: "M4 0.5H6.5C8.433 0.5 10 2.067 10 4V6.5C10 8.433 8.433 10 6.5 10H4C2.067 10 0.5 8.433 0.5 6.5V4C0.5 2.067 2.067 0.5 4 0.5Z", fill: "#78A3FA", stroke: "#F7F8FA" }), h("path", { key: '077b0ea3f1672163c0037f7ae6203ce8431ba71f', d: "M13.5 0.5H16C17.933 0.5 19.5 2.067 19.5 4V6.5C19.5 8.433 17.933 10 16 10H13.5C11.567 10 10 8.433 10 6.5V4C10 2.067 11.567 0.5 13.5 0.5Z", fill: "#46DBAA", stroke: "#F7F8FA" }), h("path", { key: '5595e1cd44919f359aada27b6d3d1b0ce4653610', d: "M4 10H6.5C8.433 10 10 11.567 10 13.5V16C10 17.933 8.433 19.5 6.5 19.5H4C2.067 19.5 0.5 17.933 0.5 16V13.5C0.5 11.567 2.067 10 4 10Z", fill: "#FAD232", stroke: "#F7F8FA" }), h("path", { key: '98b25a1bb30fc8e1c7e70b72936b7a3cbca7af33', d: "M14.75 12.125V14.75M14.75 14.75V17.375M14.75 14.75H17.375M14.75 14.75L12.125 14.75", stroke: "#939599", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("p", { key: 'eae872f3ba394aadf53092194169c75997e9d53b', class: 'placing-fields-text' }, "Placing Fields for"), h("div", { key: '15f4384297e0e1789a15eb61db66898782a86dbc', class: 'selected-role-label', style: {
|
|
33795
33981
|
background: defaultRolePalette[this.selectedRole?.signerIndex % 100].s20,
|
|
33796
33982
|
color: defaultRolePalette[this.selectedRole?.signerIndex % 100].s80,
|
|
33797
|
-
} }, h("ls-icon", { key: '
|
|
33983
|
+
} }, h("ls-icon", { key: '2cd944cb7f0ca493970032faefd7f3750d580837', size: "18", name: this.selectedRole?.roleType === 'SENDER'
|
|
33798
33984
|
? 'user'
|
|
33799
33985
|
: this.selectedRole?.roleType === 'APPROVER'
|
|
33800
33986
|
? 'check-circle'
|
|
33801
33987
|
: this.selectedRole?.roleType === 'WITNESS'
|
|
33802
33988
|
? 'eye'
|
|
33803
33989
|
: 'signature' }), this.selectedRole.name ||
|
|
33804
|
-
(this.selectedRole.roleType === 'WITNESS' ? `Witness` : `Participant ${this.selectedRole.signerIndex}`)), h("button", { key: '
|
|
33990
|
+
(this.selectedRole.roleType === 'WITNESS' ? `Witness` : `Participant ${this.selectedRole.signerIndex}`)), h("button", { key: 'f339ed045bb0c6af9d2bff3304f7cf4b50721788', class: 'tertiaryGrey expand-button', "aria-haspopup": "listbox", "aria-expanded": this.isOpen }, h("ls-icon", { key: '960f7998fa7d3144c3e33381e843a0cd03ea7ffe', name: "chevron-down" }))), this.isOpen && (h("div", { key: 'b6229b4379b54c37af8089f43f647b724e426e23', class: "dropdown-list" }, h("div", { key: 'd8804bf89d2ffc11fc5ab00acf7eb1cef22c2171', class: this.selectedRole?.signerIndex === 0 ? 'dropdown-item selected' : 'dropdown-item', style: {
|
|
33805
33991
|
'--background-selected': defaultRolePalette[0].s10,
|
|
33806
33992
|
'--check-icon-selected': defaultRolePalette[0].s50,
|
|
33807
|
-
}, onClick: () => this.selectRole({ signerIndex: 0, name: 'Sender', roleType: 'SENDER' }), onMouseEnter: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', 'check-circle'), onMouseLeave: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', this.selectedRole?.signerIndex !== 0 ? 'base-circle' : 'check-circle') }, h("div", { key: '
|
|
33993
|
+
}, onClick: () => this.selectRole({ signerIndex: 0, name: 'Sender', roleType: 'SENDER' }), onMouseEnter: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', 'check-circle'), onMouseLeave: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', this.selectedRole?.signerIndex !== 0 ? 'base-circle' : 'check-circle') }, h("div", { key: '367089f2590b8227a069bcb3d76cf72d22fe2344', class: 'role-icon', style: {
|
|
33808
33994
|
background: defaultRolePalette[0].s50,
|
|
33809
33995
|
color: defaultRolePalette[0].s80,
|
|
33810
|
-
} }, h("ls-icon", { key: '
|
|
33996
|
+
} }, h("ls-icon", { key: 'c331ed982fc98742e132d77203edf13347f67ea2', name: "user" })), h("div", { key: '8f9c45b3ce947d3384a45070b776ee455fb21d0d', class: 'role-text' }, h("p", { key: '6f3a1a221e88bbed1d6d529879f271cb6141637c', class: 'role-name', style: {
|
|
33811
33997
|
'--role-name-selected': defaultRolePalette[0].s80,
|
|
33812
|
-
} }, 'Sender'), h("p", { key: '
|
|
33998
|
+
} }, 'Sender'), h("p", { key: '11d54a7e2c98fdc647ed46ffd2ea10635b7f65b9', class: 'role-type', style: {
|
|
33813
33999
|
'--role-type-selected': defaultRolePalette[0].s80,
|
|
33814
|
-
} }, "You")), h("ls-icon", { key: '
|
|
34000
|
+
} }, "You")), h("ls-icon", { key: 'fa0d74d068b082ccd9baa728c144d27da31aa54e', class: 'check-icon', name: this.selectedRole?.signerIndex === 0 ? 'check-circle' : 'base-circle', solid: this.selectedRole?.signerIndex === 0 })), this.roles.map(r => (h("div", { class: r.signerIndex === this.selectedRole?.signerIndex ? 'dropdown-item selected' : 'dropdown-item', style: {
|
|
33815
34001
|
'--background-selected': defaultRolePalette[r?.signerIndex % 100].s10,
|
|
33816
34002
|
'--check-icon-selected': defaultRolePalette[r?.signerIndex % 100].s50,
|
|
33817
34003
|
}, onClick: () => this.selectRole(r), onMouseEnter: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', 'check-circle'), onMouseLeave: e => e.currentTarget
|
|
@@ -33823,10 +34009,10 @@ const LsParticipantSelect = class {
|
|
|
33823
34009
|
'--role-name-selected': defaultRolePalette[r?.signerIndex % 100].s100,
|
|
33824
34010
|
} }, r.name || (r.signerIndex > 100 ? `Participant ${r.signerIndex - 100} Witness` : `Participant ${r.signerIndex}`)), h("p", { class: 'role-type', style: {
|
|
33825
34011
|
'--role-type-selected': defaultRolePalette[r?.signerIndex % 100].s80,
|
|
33826
|
-
} }, r.roleType === 'WITNESS' ? 'Witness' : r.roleType === 'APPROVER' ? 'Approver' : 'Signer')), h("ls-icon", { class: 'check-icon', name: r.signerIndex === this.selectedRole?.signerIndex ? 'check-circle' : 'base-circle', solid: r.signerIndex === this.selectedRole?.signerIndex })))), h("button", { key: '
|
|
34012
|
+
} }, r.roleType === 'WITNESS' ? 'Witness' : r.roleType === 'APPROVER' ? 'Approver' : 'Signer')), h("ls-icon", { class: 'check-icon', name: r.signerIndex === this.selectedRole?.signerIndex ? 'check-circle' : 'base-circle', solid: r.signerIndex === this.selectedRole?.signerIndex })))), h("button", { key: '9ce97692f5946edce1bf20876aba6a257aa75aa3', onClick: () => this.createHandler(), class: 'add-participant-row', style: {
|
|
33827
34013
|
'--background-selected': defaultRolePalette[1].s10,
|
|
33828
34014
|
'--check-icon-selected': defaultRolePalette[1].s50,
|
|
33829
|
-
} }, h("div", { key: '
|
|
34015
|
+
} }, h("div", { key: '6986fb8bd1d4978aec4369a549eb4eb6e2300c5c', class: 'add-participant-icon' }, h("ls-icon", { key: 'f0fdeccc4489d510ddcfcb39c54e674287d9396b', name: "user-add" })), h("div", { key: 'c3a16b3fccbd5bd4e3d1e30eaf392023ed1382b0', class: 'role-text' }, h("p", { key: 'f663b8c5885f095fde20e204301d0c692f84bb12', class: 'role-name' }, "Add Participant"), h("p", { key: 'db7fadcf03020994b10f5b709f74e9b780e73b60', class: 'role-type' }, "Add a new Signer")), h("ls-icon", { key: 'd9baf06a920f373d651e09dcc4468b50648d742d', class: 'plus-icon', name: "plus" }))))), h("slot", { key: '185c090b40670cd0ce1b9ddda3b82d20e08aae92' })));
|
|
33830
34016
|
}
|
|
33831
34017
|
static get watchers() { return {
|
|
33832
34018
|
"roles": ["handleRoleLoad"]
|
|
@@ -33844,69 +34030,11 @@ const LsPropsSection = class {
|
|
|
33844
34030
|
sectionDescription;
|
|
33845
34031
|
row = false;
|
|
33846
34032
|
render() {
|
|
33847
|
-
return (h(Host, { key: '
|
|
34033
|
+
return (h(Host, { key: '9043f4212d573cb7cae6024f0288d3589cab16ca' }, h("div", { key: '73ad46475e8a1b84f775cf50ef38d96856c845ad', class: this.row ? 'ls-field-properties-section row' : 'ls-field-properties-section' }, h("div", { key: 'a259ac2223024e3b68e24956ac050afd1ed8ad6a', class: 'ls-field-properties-section-text' }, h("p", { key: 'c649eeccdd07ed13d7761a7390737a7f1b27f476', class: 'ls-field-properties-section-title' }, this.sectionTitle), this.sectionDescription && h("p", { key: '668ec0fbf1c9b036bbaf71469862872da1858c5e', class: 'ls-field-properties-section-description' }, this.sectionDescription)), h("slot", { key: '7537449cd511e7fa223c06f96b983ce69a9f6cf8' }))));
|
|
33848
34034
|
}
|
|
33849
34035
|
};
|
|
33850
34036
|
LsPropsSection.style = lsPropsSectionCss;
|
|
33851
34037
|
|
|
33852
|
-
const lsRadioInputCss = ".radioLabel{display:flex;align-items:center;gap:0.75rem;border-radius:0.5rem;padding:0.5rem 0.75rem}.radioLabel.checked{background-color:var(--primary-10);border-color:var(--primary-20);color:var(--primary-90)}.radioLabel:not(checked){color:var(--gray-90);background-color:var(--gray-10);border:1px solid var(--gray-20)}.radioLabel.checked:hover{border-color:var(--primary-30);color:var(--primary-100)}.radioLabel:not(.checked):not(.disabled):hover{border-color:var(--gray-50);color:var(--gray-100)}.radioLabel:focus:not(.disabled){box-shadow:var(--focus-box-shadow);outline-offset:var(--focus-outline-offset);outline:none}.radioLabel.disabled{cursor:not-allowed}.radioLabel.disabled.checked{background-color:var(--primary-10);color:var(--primary-40);border-color:var(--primary-40)}.radioLabel.disabled:not(.checked){background-color:var(--gray-10);color:var(--gray-60)}.inputClass{margin-top:0px}.inputClass:focus{outline:none}.inputClass:disabled{cursor:not-allowed}.spanContainer{display:flex;gap:0.25rem;align-items:center}";
|
|
33853
|
-
|
|
33854
|
-
const LsRadioInput = class {
|
|
33855
|
-
constructor(hostRef) {
|
|
33856
|
-
registerInstance(this, hostRef);
|
|
33857
|
-
}
|
|
33858
|
-
radioId;
|
|
33859
|
-
label;
|
|
33860
|
-
icon;
|
|
33861
|
-
name = 'name';
|
|
33862
|
-
checked = false;
|
|
33863
|
-
disabled = false;
|
|
33864
|
-
customStyle;
|
|
33865
|
-
render() {
|
|
33866
|
-
const { label, radioId, icon, name, disabled, checked, customStyle, } = this;
|
|
33867
|
-
const radioLabelClass = clsx('radioLabel', disabled && 'disabled', checked && 'checked');
|
|
33868
|
-
return (h("label", { key: '071f5ea23374017ef930ff4718df692dfaf9c18d', htmlFor: radioId, tabIndex: 0, class: radioLabelClass, style: customStyle }, h("input", { key: 'eab8afd841ac1b0a8f92c8f39eb141bf0833c41c', type: 'radio', class: 'inputClass', id: radioId, name: name, value: label, disabled: disabled, tabIndex: 0, checked: checked }), h("div", { key: 'c22ee1a9f45bc7894bed6a978b1394de56ee8d0a', class: 'spanContainer' }, h("span", { key: '4f6defdd690a6a799040c1a69461d697086c0272' }, icon && h("ls-icon", { key: '5ef441f24e164cb176ec9fcea931e3d603524297', name: icon, size: "16" })), h("span", { key: '501bb04681a7bb99e19a1dbc1190fe0fc0eff655' }, label))));
|
|
33869
|
-
}
|
|
33870
|
-
};
|
|
33871
|
-
LsRadioInput.style = lsRadioInputCss;
|
|
33872
|
-
|
|
33873
|
-
const lsSelectInputCss = "* {\n box-sizing: border-box;\n margin: 0;\n}\n\n.host {\n position: relative;\n display: flex;\n width: 100%;\n}\n\n#fieldIcon {\n position: absolute;\n top: 0.5rem;\n left: 0.75rem;\n color: var(--gray-80)\n}\n\n#fieldIconDisabled {\n position: absolute;\n top: 0.5rem;\n left: 0.75rem;\n color: var(--gray-60)\n}\n\n.icon-input {\n padding-left: 2.5rem !important;\n}\n\n.button-input {\n padding-right: 2.5rem !important;\n}\n\n.right-items-input {\n padding-right: 4rem !important;\n}\n\n.input-base {\n display: flex;\n width: 100%;\n height: 2.25rem;\n padding: 0rem 0.75rem;\n align-items: center;\n vertical-align: text-top;\n gap: 0.5rem;\n align-self: stretch;\n border-radius: 0.5rem;\n /* Shadow/sm */\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n /* text-sm/leading-5/font-regular */\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 400;\n}\n\nselect::-ms-expand {\n display: none;\n}\n\nselect {\n -moz-appearance: none;\n -webkit-appearance: none;\n}\n\n#select-arrow {\n color: var(--gray-70);\n margin-right: 0.25rem;\n margin-left: -0.125rem;\n}\n\n#select-arrow-disabled {\n color: var(--gray-40);\n margin-right: 0.25rem;\n margin-left: -0.125rem;\n}\n\n.input-base:active:not(:disabled) {\n outline: 1px solid var(--Legalesign-Blue-60, #4456F6);\n box-shadow: 0px 0px 3px 0px rgba(0, 15, 153, 0.25), 0px 0px 2px 0px rgba(0, 15, 153, 0.06), 0px 0px 0px 4px #9DC3FC;\n}\n\n.input-base:focus:not(:disabled) {\n outline: 1px solid var(--Legalesign-Blue-60, #4456F6);\n box-shadow: 0px 0px 3px 0px rgba(0, 15, 153, 0.25), 0px 0px 2px 0px rgba(0, 15, 153, 0.06), 0px 0px 0px 4px #9DC3FC;\n}\n\n\n.default {\n border: 1px solid var(--gray-40, #D8D9DC);\n background: var(--White, #FFF);\n color: var(--gray-100);\n}\n\n.default:hover {\n border: 1px solid var(--gray-50, #D8D9DC);\n background: var(--White, #FFF);\n color: var(--gray-110);\n}\n\n\n.disabled {\n border: 1px solid var(--gray-40, #D8D9DC);\n background: var(--gray-10, #F7F8FA);\n color: var(--gray-60);\n cursor: not-allowed;\n}\n\n.invalid {\n border: 1px solid var(--red-40, #FFA19E);\n background: var(--White, #FFF);\n color: var(--Red-100, #7A1714);\n}\n\n.invalid:hover {\n border: 1px solid var(--red-50, #FFA19E);\n background: var(--White, #FFF);\n color: var(--Red-100, #7A1714);\n}\n\n.valid {\n border: 1px solid var(--green-40, #72F0C2);\n background: var(--White, #FFF);\n color: var(--Green-100, #125241);\n}\n\n.valid:hover {\n border: 1px solid var(--green-50, #72F0C2);\n background: var(--White, #FFF);\n color: var(--Green-100, #125241);\n}\n\n\n.right-items {\n position: absolute;\n padding: 0.25rem;\n height: 36px;\n right: 0;\n top: 0;\n display: flex;\n align-items: center;\n} \n\n#invalidIcon {\n margin: 0 0.5rem;\n color: var(--red-70);\n}\n\n#validIcon {\n margin: 0 0.5rem;\n color: var(--green-60);\n}\n\n.button {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--gray-50, #C8C9CC);\n background: var(--White, #FFF);\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n\n #buttonIcon {\n color: var(--gray-90);\n }\n}\n\n.button:hover {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--gray-50, #C8C9CC);\n background: var(--gray-20, #EDEFF2);\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n\n.button:active {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--Primary-Blue-Light, #4456F6);\n background: var(--White, #FFF);\n box-shadow: 0px 0px 4px 0px #C7DDFF inset, 0px 0px 0px 4px #9DC3FC;\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n\n.button:focus {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--Primary-Blue-Light, #4456F6);\n background: var(--White, #FFF);\n box-shadow: 0px 0px 4px 0px #C7DDFF inset, 0px 0px 0px 4px #9DC3FC;\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n\n\n\n\n\n";
|
|
33874
|
-
|
|
33875
|
-
const LsSelectInput = class {
|
|
33876
|
-
constructor(hostRef) {
|
|
33877
|
-
registerInstance(this, hostRef);
|
|
33878
|
-
}
|
|
33879
|
-
name;
|
|
33880
|
-
value;
|
|
33881
|
-
aria;
|
|
33882
|
-
inputRef;
|
|
33883
|
-
disabled;
|
|
33884
|
-
displayOnly;
|
|
33885
|
-
required;
|
|
33886
|
-
valid;
|
|
33887
|
-
dirty;
|
|
33888
|
-
buttonClick;
|
|
33889
|
-
buttonIcon;
|
|
33890
|
-
fieldIcon;
|
|
33891
|
-
// handleChange(event) {
|
|
33892
|
-
// this.value = event.target.value;
|
|
33893
|
-
// }
|
|
33894
|
-
render() {
|
|
33895
|
-
const { name, aria, disabled, displayOnly, required, valid, dirty, buttonClick, buttonIcon, fieldIcon, } = this;
|
|
33896
|
-
const inputClass = clsx('input-base', disabled
|
|
33897
|
-
? 'disabled'
|
|
33898
|
-
: dirty && valid
|
|
33899
|
-
? 'valid'
|
|
33900
|
-
: dirty && !valid
|
|
33901
|
-
? 'invalid'
|
|
33902
|
-
: displayOnly
|
|
33903
|
-
? 'displayOnly'
|
|
33904
|
-
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33905
|
-
return (h("host", { key: '3d36732b2276fe87beaaf75e51cea6f240c51b76', class: 'host' }, fieldIcon && (h("ls-icon", { key: 'd23477ba9177c049c9af4c0b1eb82285bad773a3', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), h("select", { key: 'fc43cfd4be20eaf13e10d0c0d1b59a8d78a3d2e6', class: inputClass, id: name, name: name, "aria-label": aria, required: required, disabled: disabled }, h("slot", { key: '16c5c77c2708f382be33e72012ac428d302fa8d8' })), h("div", { key: '38749a68383a2656d27946f21af6efd02cf8c80b', class: 'right-items' }, dirty && !disabled && (h("ls-icon", { key: 'a0b606ae3e1ae4b86a9c2c079859ef4eaac42260', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon ? (h("button", { class: 'button', onClick: buttonClick }, h("ls-icon", { id: 'buttonIcon', name: buttonIcon }))) : (h("ls-icon", { id: disabled ? 'select-arrow-disabled' : 'select-arrow', name: 'chevron-down' })))));
|
|
33906
|
-
}
|
|
33907
|
-
};
|
|
33908
|
-
LsSelectInput.style = lsSelectInputCss;
|
|
33909
|
-
|
|
33910
34038
|
const lsStatusbarCss = ":host{position:fixed;z-index:1000;right:1rem;bottom:1rem;display:flex;flex-direction:row;background-color:white;border:1px solid var(--gray-30, #e0e2e5);box-shadow:0px 4px 16px rgba(0, 0, 0, 0.1);border-radius:1rem}*{margin:0;padding:0;box-sizing:border-box}.status-bar-section{display:flex;flex-direction:row;align-items:center;gap:0.75rem;padding:0.5rem 0.75rem}:host>:not(:nth-child(2)){border-left:1px solid var(--gray-30, #e0e2e5)}button{border:0}button:hover{color:var(--gray-100, #45484d);border-radius:0.5rem}input[type=\"range\"]{-webkit-appearance:none;width:100%;height:8px;background:var(--gray-20, #EDEFF2);border-radius:5px;outline:none}input[type=\"range\"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:8px;height:8px;background:var(--gray-70, #4a4c51);border-radius:50%;cursor:pointer}input[type=\"range\"]::-moz-range-thumb{width:8px;height:8%;background:var(--gray-70, #4a4c51);border:none;border-radius:50%;cursor:pointer}input[type=\"range\"]::-moz-range-track{background:var(--gray-20, #EDEFF2);height:8px;border-radius:5px}input[type=\"range\"]::-webkit-slider-runnable-track{background:var(--gray-20, #EDEFF2);height:8px;border-radius:5px}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}button{all:unset;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--gray-80, #6c6e73);text-transform:capitalize}button.tertiaryGrey:hover{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)}";
|
|
33911
34039
|
|
|
33912
34040
|
const LsStatusbar = class {
|
|
@@ -33946,104 +34074,16 @@ const LsStatusbar = class {
|
|
|
33946
34074
|
this.zoom = this.editor.zoom;
|
|
33947
34075
|
}
|
|
33948
34076
|
render() {
|
|
33949
|
-
return (h(Host, { key: '
|
|
34077
|
+
return (h(Host, { key: '5175633d8514ec641b81d161dfbafeaeb90e3dbd' }, h("div", { key: '6ee5ab35d555e4685d3434538238b53169db8d34', class: 'status-bar-section' }, h("button", { key: '678f92a156d291e903a897af50f219b5e161ef41', onClick: () => this.setZoom(this.editor.zoom * 0.8) }, h("ls-icon", { key: 'b8e122bb9aaec0688312b0e6c1c6daf35d46d59e', name: "zoom-out" })), h("div", { key: 'bef53222c3b56c3bb532eeda88eae41400bd1599' }, h("input", { key: '4edd5b23b7bddca49a33399bf8820e2ec89b6243', type: "range", min: "1", max: "300", value: this.zoom * 100, class: "slider", id: "zoomRange", onInput: () => this.handleZoomInput() })), h("button", { key: 'f1762721abfc2888d83575e755a39091042a43b1', onClick: () => this.setZoom(this.editor.zoom / 0.8) }, h("ls-icon", { key: 'c71fcecc620fd255f872f5a7b0252414ac7eaac1', name: "zoom-in" }))), h("div", { key: '188426f1b5a7201fcdaf7ee83727b5e8f4435713', class: 'status-bar-section' }, h("button", { key: '9dd5cd5327d5ab8031233a2b33ec957e0184850c', onClick: () => this.fitWidth() }, h("ls-icon", { key: 'b8bd58c1ac2b2a7d760516a01ea2677997ba1b22', name: "fit-width" })), h("button", { key: '69c3a81d15b2f56922d730c164097616ca2cf7d3', onClick: () => this.fitHeight() }, h("ls-icon", { key: 'ae3ce4a1ae0c5d90080733a4b24bad4e1b1cdd14', name: "fit-height" }))), this.editor?._template?.pageCount > 1 && (h("div", { key: '0dfb2b2be045929e185d67670aa2a48c9007757b', class: 'status-bar-section' }, h("button", { key: 'db482d9a60eee5772e49dbe83273246c1a2acadb', onClick: () => {
|
|
33950
34078
|
this.editor.pagePrev();
|
|
33951
|
-
} }, h("ls-icon", { key: '
|
|
34079
|
+
} }, h("ls-icon", { key: '7759f954bddc55e06dd870560295abd7d82c62bc', name: "chevron-left" })), h("p", { key: 'cc5b3bd1faa52b15865754da73ee107c4dc2a613' }, this.editor?.pageNum, " / ", this.editor?._template?.pageCount), h("button", { key: 'd45ab960fb57260719584388a2dffedf883f62b2', onClick: () => {
|
|
33952
34080
|
this.editor.pageNext();
|
|
33953
|
-
} }, h("ls-icon", { key: '
|
|
34081
|
+
} }, h("ls-icon", { key: 'f23a3ee83510ee41165b720459915a97af0c6061', name: "chevron-right" })))), h("slot", { key: '75f3d128912a26f76fa0c1b043668259a3d028f4' })));
|
|
33954
34082
|
}
|
|
33955
34083
|
};
|
|
33956
34084
|
LsStatusbar.style = lsStatusbarCss;
|
|
33957
34085
|
|
|
33958
|
-
const
|
|
33959
|
-
|
|
33960
|
-
const LsTextInput = class {
|
|
33961
|
-
constructor(hostRef) {
|
|
33962
|
-
registerInstance(this, hostRef);
|
|
33963
|
-
this.valueChange = createEvent(this, "valueChange");
|
|
33964
|
-
}
|
|
33965
|
-
type = 'default';
|
|
33966
|
-
name;
|
|
33967
|
-
value;
|
|
33968
|
-
placeholder;
|
|
33969
|
-
aria;
|
|
33970
|
-
inputRef;
|
|
33971
|
-
disabled;
|
|
33972
|
-
required;
|
|
33973
|
-
valid;
|
|
33974
|
-
dirty;
|
|
33975
|
-
countMax;
|
|
33976
|
-
buttonClick;
|
|
33977
|
-
buttonIcon;
|
|
33978
|
-
fieldIcon;
|
|
33979
|
-
valueChange;
|
|
33980
|
-
showPassword = false;
|
|
33981
|
-
handlePassword = () => {
|
|
33982
|
-
this.showPassword = !this.showPassword;
|
|
33983
|
-
};
|
|
33984
|
-
changeHandler(event) {
|
|
33985
|
-
console.log(event);
|
|
33986
|
-
this.valueChange.emit(event.target.value);
|
|
33987
|
-
}
|
|
33988
|
-
render() {
|
|
33989
|
-
const { type, name, value, placeholder, aria, disabled, required, valid, dirty, countMax, buttonClick, buttonIcon, fieldIcon, showPassword, handlePassword, } = this;
|
|
33990
|
-
const inputClass = clsx('input-base', type === 'displayonly'
|
|
33991
|
-
? 'display-only'
|
|
33992
|
-
: disabled
|
|
33993
|
-
? 'disabled'
|
|
33994
|
-
: dirty && valid
|
|
33995
|
-
? 'valid'
|
|
33996
|
-
: dirty && !valid
|
|
33997
|
-
? 'invalid'
|
|
33998
|
-
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33999
|
-
return (h(Host, { key: '2a86d2b2edd5666c42772d0fbf4627f52b304e7e', class: 'host' }, fieldIcon && (h("ls-icon", { key: 'ef45261622c63b60291451c37618c3e434dbfdf3', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), type === 'password' ? (h("input", { type: showPassword && 'password', class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled, onChange: (e) => {
|
|
34000
|
-
this.changeHandler(e);
|
|
34001
|
-
} })) : type === 'displayonly' ? (h("input", { class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: true, onChange: (e) => {
|
|
34002
|
-
this.changeHandler(e);
|
|
34003
|
-
} })) : (h("input", { class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled, onChange: (e) => {
|
|
34004
|
-
this.changeHandler(e);
|
|
34005
|
-
} })), h("div", { key: '6144900e185b774d5f5e10d094424b78c4899374', class: 'right-items' }, dirty && !disabled && (h("ls-icon", { key: '5cf0c2112ddb11766cda8b2d8c963b4c92ccc9f9', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon && (h("button", { key: '681ec8d8d0ea70b679c8176928e658391ae1a0d0', class: 'button', onClick: buttonClick }, h("ls-icon", { key: 'a3256ca30fddba1c048ee1315f0348cadcfb513b', id: 'buttonIcon', name: buttonIcon }))), type === 'password' && !buttonIcon && (h("ls-icon-button", { key: 'a3e541ae6e5c1c88eea76da2a7d1c7db1022de2c', id: 'password-icon', icon: showPassword ? 'eye' : 'eye-off', onClick: handlePassword })))));
|
|
34006
|
-
}
|
|
34007
|
-
};
|
|
34008
|
-
LsTextInput.style = lsTextInputCss;
|
|
34009
|
-
|
|
34010
|
-
const lsTextareaInputCss = "* {\n box-sizing: border-box;\n font-family: \"IBM Plex\", sans-serif;\n margin: 0;\n}\n\n.host {\n position: relative;\n display: flex;\n width: 100%;\n}\n\n#fieldIcon {\n position: absolute;\n top: 0.5rem;\n left: 0.75rem;\n color: var(--gray-80);\n}\n\n#fieldIconDisabled {\n position: absolute;\n top: 0.5rem;\n left: 0.75rem;\n color: var(--gray-60);\n}\n\n.icon-input {\n padding-left: 2.5rem !important;\n}\n\n.button-input {\n padding-right: 2.5rem !important;\n}\n\n.right-items-input {\n padding-right: 4rem !important;\n}\n\n.input-base {\n display: flex;\n resize: vertical;\n width: 100%;\n min-height: 4rem;\n padding: 0.5rem 0.75rem;\n align-items: center;\n gap: 0.5rem;\n align-self: stretch;\n border-radius: 0.5rem;\n /* Shadow/sm */\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n overflow: hidden;\n text-overflow: ellipsis;\n /* text-sm/leading-5/font-regular */\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 400;\n}\n\n.input-base:active:not(:disabled) {\n outline: 1px solid var(--Legalesign-Blue-60, #4456f6);\n box-shadow:\n 0px 0px 3px 0px rgba(0, 15, 153, 0.25),\n 0px 0px 2px 0px rgba(0, 15, 153, 0.06),\n 0px 0px 0px 4px #9dc3fc;\n}\n\n.input-base:focus:not(:disabled) {\n outline: 1px solid var(--Legalesign-Blue-60, #4456f6);\n box-shadow:\n 0px 0px 3px 0px rgba(0, 15, 153, 0.25),\n 0px 0px 2px 0px rgba(0, 15, 153, 0.06),\n 0px 0px 0px 4px #9dc3fc;\n}\n\n.default {\n border: 1px solid var(--gray-40, #d8d9dc);\n background: var(--White, #fff);\n color: var(--gray-100);\n}\n\n.default:hover {\n border: 1px solid var(--gray-50, #d8d9dc);\n background: var(--White, #fff);\n color: var(--gray-110);\n}\n\n.disabled {\n border: 1px solid var(--gray-40, #d8d9dc);\n background: var(--gray-10, #f7f8fa);\n color: var(--gray-60);\n cursor: not-allowed;\n}\n\n.invalid {\n border: 1px solid var(--red-40, #ffa19e);\n background: var(--White, #fff);\n color: var(--Red-100, #7a1714);\n}\n\n.invalid:hover {\n border: 1px solid var(--red-50, #ffa19e);\n background: var(--White, #fff);\n color: var(--Red-100, #7a1714);\n}\n\n.valid {\n border: 1px solid var(--green-40, #72f0c2);\n background: var(--White, #fff);\n color: var(--Green-100, #125241);\n}\n\n.valid:hover {\n border: 1px solid var(--green-50, #72f0c2);\n background: var(--White, #fff);\n color: var(--Green-100, #125241);\n}\n\n.right-items {\n position: absolute;\n padding: 0.25rem;\n height: 36px;\n right: 0;\n top: 0;\n display: flex;\n align-items: center;\n}\n\n#invalidIcon {\n margin: 0 0.5rem;\n color: var(--red-70);\n}\n\n#validIcon {\n margin: 0 0.5rem;\n color: var(--green-60);\n}\n\n.button {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--gray-50, #c8c9cc);\n background: var(--White, #fff);\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n\n #buttonIcon {\n color: var(--gray-90);\n }\n}\n\n.button:hover {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--gray-50, #c8c9cc);\n background: var(--gray-20, #edeff2);\n box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n\n.button:active {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--Primary-Blue-Light, #4456f6);\n background: var(--White, #fff);\n box-shadow:\n 0px 0px 4px 0px #c7ddff inset,\n 0px 0px 0px 4px #9dc3fc;\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n\n.button:focus {\n display: flex;\n height: 28px;\n width: 28px;\n padding: 0.25rem;\n justify-content: center;\n align-items: center;\n border-radius: 0.375rem;\n border: 1px solid var(--Primary-Blue-Light, #4456f6);\n background: var(--White, #fff);\n box-shadow:\n 0px 0px 4px 0px #c7ddff inset,\n 0px 0px 0px 4px #9dc3fc;\n\n #buttonIcon {\n color: var(--gray-100);\n }\n}\n";
|
|
34011
|
-
|
|
34012
|
-
const LsTextareaInput = class {
|
|
34013
|
-
constructor(hostRef) {
|
|
34014
|
-
registerInstance(this, hostRef);
|
|
34015
|
-
}
|
|
34016
|
-
name;
|
|
34017
|
-
value;
|
|
34018
|
-
placeholder;
|
|
34019
|
-
aria;
|
|
34020
|
-
inputRef;
|
|
34021
|
-
disabled;
|
|
34022
|
-
displayOnly;
|
|
34023
|
-
required;
|
|
34024
|
-
valid;
|
|
34025
|
-
dirty;
|
|
34026
|
-
countMax;
|
|
34027
|
-
buttonClick;
|
|
34028
|
-
buttonIcon;
|
|
34029
|
-
fieldIcon;
|
|
34030
|
-
render() {
|
|
34031
|
-
const { name, value, placeholder, aria, disabled, displayOnly, required, valid, dirty, countMax, buttonClick, buttonIcon, fieldIcon, } = this;
|
|
34032
|
-
const inputClass = clsx('input-base', disabled
|
|
34033
|
-
? 'disabled'
|
|
34034
|
-
: dirty && valid
|
|
34035
|
-
? 'valid'
|
|
34036
|
-
: dirty && !valid
|
|
34037
|
-
? 'invalid'
|
|
34038
|
-
: displayOnly
|
|
34039
|
-
? 'displayOnly'
|
|
34040
|
-
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
34041
|
-
return (h("host", { key: '281954f96e56d9b22ce6e90b73d913449163a384', class: 'host' }, fieldIcon && (h("ls-icon", { key: '7c01fc436423b1a2a7496d0f043bb592510c9057', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), h("textarea", { key: '2a4328d5674b9a759a1c63c4a2f622591679f363', class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled }), h("div", { key: 'a389f298d31654df347c9d654be0868f6ebab862', class: 'right-items' }, dirty && !disabled && (h("ls-icon", { key: 'cd6d7204e0301fd87d29d5c709c9e43721542bb1', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon && (h("button", { key: '31d5b142aa8a642c28748dae32adb19c97ef7936', class: 'button', onClick: buttonClick }, h("ls-icon", { key: '08c4ae96097a8ed4cdc8640c30d2b3b472e4fad5', id: 'buttonIcon', name: buttonIcon }))))));
|
|
34042
|
-
}
|
|
34043
|
-
};
|
|
34044
|
-
LsTextareaInput.style = lsTextareaInputCss;
|
|
34045
|
-
|
|
34046
|
-
const lsToggleCss = ":host{display:block}.switch{position:relative;display:inline-block;width:2.75rem;height:1.5rem}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--gray-20, #EDEFF2);-webkit-transition:.4s;transition:.4s}.slider:before{position:absolute;content:\"\";height:1.25rem;width:1.25rem;left:0.125rem;bottom:0.125rem;background-color:white;-webkit-transition:.4s;transition:.4s}input:checked+.slider{background-color:var(--primary-60, #4456F6)}input:focus+.slider{box-shadow:0 0 1px var(--primary-60, #4456F6);outline:4px solid var(--primary-20, #E3E6FF)}input:checked+.slider:before{-webkit-transform:translateX(1.25rem);-ms-transform:translateX(1.25rem);transform:translateX(1.25rem)}.slider.round{border-radius:34px}.slider.round:before{border-radius:50%}";
|
|
34086
|
+
const lsToggleCss = ":host{display:block}.switch{position:relative;display:inline-block;width:2.75rem;height:1.5rem}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--gray-20, #edeff2);-webkit-transition:0.4s;transition:0.4s}.indeterminate{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--primary-60, #4456f6);-webkit-transition:0.4s;transition:0.4s}.slider:before{position:absolute;content:'';height:1.25rem;width:1.25rem;left:0.125rem;bottom:0.125rem;background-color:white;-webkit-transition:0.4s;transition:0.4s}.indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.75rem;height:0.125rem;background-color:white}input:checked+.slider{background-color:var(--primary-60, #4456f6)}input:focus+.slider{box-shadow:0 0 1px var(--primary-60, #4456f6);outline:4px solid var(--primary-20, #e3e6ff)}input:checked+.slider:before{-webkit-transform:translateX(1.25rem);-ms-transform:translateX(1.25rem);transform:translateX(1.25rem)}.slider.round,.indeterminate.round{border-radius:34px}.slider.round:before{border-radius:50%}";
|
|
34047
34087
|
|
|
34048
34088
|
const LsToggle = class {
|
|
34049
34089
|
constructor(hostRef) {
|
|
@@ -34051,14 +34091,15 @@ const LsToggle = class {
|
|
|
34051
34091
|
this.valueChange = createEvent(this, "valueChange");
|
|
34052
34092
|
}
|
|
34053
34093
|
checked;
|
|
34094
|
+
indeterminate;
|
|
34054
34095
|
valueChange;
|
|
34055
34096
|
changeHandler(value) {
|
|
34056
34097
|
this.valueChange.emit(value);
|
|
34057
34098
|
}
|
|
34058
34099
|
render() {
|
|
34059
|
-
return (h(Host, { key: '
|
|
34100
|
+
return (h(Host, { key: '9a4d61443f92bf65fddf05407f91a01285ccf19f' }, h("label", { key: 'c2bbd322dfdb1e82a99139a412ea1bbed311c92b', class: "switch" }, h("input", { key: 'ffbbda8820f8d42dc316ec873e1d2f1063bceedc', type: "checkbox", checked: this.checked, onChange: (e) => {
|
|
34060
34101
|
this.changeHandler(e.target.checked);
|
|
34061
|
-
} }), h("span", { key: '
|
|
34102
|
+
} }), h("span", { key: 'c5952ebb13c18765abb406ec0916eb26d3db51a2', class: `${this.indeterminate ? 'indeterminate' : 'slider'} round` })), h("slot", { key: 'cae29b87763a90bd1b2b3f029fff63223aa4020f' })));
|
|
34062
34103
|
}
|
|
34063
34104
|
};
|
|
34064
34105
|
LsToggle.style = lsToggleCss;
|
|
@@ -34098,7 +34139,6 @@ const LsToolbar = class {
|
|
|
34098
34139
|
// Send one or more mutations up the chain
|
|
34099
34140
|
// The source of the chain fires the mutation
|
|
34100
34141
|
alter(diff) {
|
|
34101
|
-
console.log(diff);
|
|
34102
34142
|
const diffs = this.dataItem.map(c => {
|
|
34103
34143
|
return { action: 'update', data: { ...c, ...diff } };
|
|
34104
34144
|
});
|
|
@@ -34107,16 +34147,17 @@ const LsToolbar = class {
|
|
|
34107
34147
|
this.update.emit(diffs);
|
|
34108
34148
|
}
|
|
34109
34149
|
render() {
|
|
34110
|
-
return (h(Host, { key: '
|
|
34150
|
+
return (h(Host, { key: '4a3a8c5f0ae97dae39e77134409ceeb585cc8ed2' }, this.dataItem && this.dataItem.length > 1 ? (h("div", { class: 'rowbox' }, h("ls-field-format", { dataItem: this?.dataItem }))) : (h("div", { class: 'rowbox' }, h("ls-field-format", { dataItem: this?.dataItem, style: { visibility: this.dataItem && this.dataItem.length === 1 ? 'visible' : 'hidden' } }), h("ls-participant-select", { id: "ls-participant-select", roles: this.template?.roles, style: { display: this.dataItem && this.dataItem.length === 1 ? 'none' : 'block' } }))), h("slot", { key: 'acaf72f6d91de81ca677fbf60f7ec769cb6b1bef' })));
|
|
34111
34151
|
}
|
|
34112
34152
|
};
|
|
34113
34153
|
LsToolbar.style = lsToolbarCss;
|
|
34114
34154
|
|
|
34115
|
-
const lsToolboxFieldCss = "
|
|
34155
|
+
const lsToolboxFieldCss = ".ls-toolbox-field{display:flex;padding:0.5rem;align-items:center;justify-content:center;gap:0.875rem;border-radius:1rem;border:1px solid var(--gray-20, #edeff2);background:white;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-toolbox-field:hover{background:var(--gray-10, #f7f8fa);box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06);border:1px solid var(--gray-30, #e0e2e5)}.toolbox-field-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;border:1px solid var(--signer-color);background:var(--signer-color-light);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);color:var(--signer-color)}.toolbox-field-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;width:100%;margin:0}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%}.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)}";
|
|
34116
34156
|
|
|
34117
34157
|
const LsToolboxField = class {
|
|
34118
34158
|
constructor(hostRef) {
|
|
34119
34159
|
registerInstance(this, hostRef);
|
|
34160
|
+
this.selected = createEvent(this, "selected");
|
|
34120
34161
|
}
|
|
34121
34162
|
/**
|
|
34122
34163
|
* The field type of this toolbox item, e.g. 'signature'. Note these should always be lowercase.
|
|
@@ -34144,6 +34185,14 @@ const LsToolboxField = class {
|
|
|
34144
34185
|
* The signer color of the element
|
|
34145
34186
|
*/
|
|
34146
34187
|
signer = 0;
|
|
34188
|
+
isSelected = false;
|
|
34189
|
+
selected;
|
|
34190
|
+
modeHandler(_isSelected) {
|
|
34191
|
+
// When opened fire an event to let the parent handle closing other controls
|
|
34192
|
+
if (_isSelected) {
|
|
34193
|
+
this.selected.emit(this.formElementType);
|
|
34194
|
+
}
|
|
34195
|
+
}
|
|
34147
34196
|
handleDragStart(event) {
|
|
34148
34197
|
// Add the target element's id to the data transfer object
|
|
34149
34198
|
event.dataTransfer.setData('application/json', JSON.stringify({
|
|
@@ -34161,8 +34210,18 @@ const LsToolboxField = class {
|
|
|
34161
34210
|
}
|
|
34162
34211
|
}
|
|
34163
34212
|
render() {
|
|
34164
|
-
return (h(Host, { key: '
|
|
34213
|
+
return (h(Host, { key: '46c05581e53608ba17ccf3c50edb3e8097028b55', draggable: "true" }, h("div", { key: '5f79fae515d92d0d13473cd487a0b9085f8bb093', class: 'ls-toolbox-field', style: this.isSelected && {
|
|
34214
|
+
background: defaultRolePalette[this.signer % 100].s10,
|
|
34215
|
+
border: `1px solid ${defaultRolePalette[this.signer % 100].s60}`,
|
|
34216
|
+
color: defaultRolePalette[this.signer % 100].s80,
|
|
34217
|
+
boxShadow: `0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06);`,
|
|
34218
|
+
}, onClick: () => (this.isSelected = !this.isSelected) }, h("div", { key: '7b8a2967e8e3406760944cf663edc152e4a7c12c', class: "toolbox-field-icon", style: { '--signer-color-light': defaultRolePalette[this.signer % 100].s10, '--signer-color': defaultRolePalette[this.signer % 100].s60 } }, h("ls-icon", { key: 'e0ec95278d08e643544297d3f5aa26b66c3f9223', name: this.icon, size: "20" })), h("p", { key: 'e5be2362129ffd4e44eba9a5530c6a9d3693561f', class: "toolbox-field-label", style: this.isSelected && {
|
|
34219
|
+
color: defaultRolePalette[this.signer % 100].s80,
|
|
34220
|
+
} }, this.label), h("ls-icon", { key: '287b53ec216fe60b87c6b2f69ccc3e81795d011f', name: "drag-vertical", size: "16", color: "#787a80" }))));
|
|
34165
34221
|
}
|
|
34222
|
+
static get watchers() { return {
|
|
34223
|
+
"isSelected": ["modeHandler"]
|
|
34224
|
+
}; }
|
|
34166
34225
|
};
|
|
34167
34226
|
LsToolboxField.style = lsToolboxFieldCss;
|
|
34168
34227
|
|
|
@@ -34176,8 +34235,9 @@ const LsValidationTag = class {
|
|
|
34176
34235
|
validationErrors = [];
|
|
34177
34236
|
isExpanded = false;
|
|
34178
34237
|
render() {
|
|
34179
|
-
return (h(Host, { key: '
|
|
34180
|
-
const
|
|
34238
|
+
return (h(Host, { key: 'c6bdded8043e03b185383f12a1f4732f94fc1d0b' }, h("div", { key: '75e388c633e4c0f02a597b975f018aeb88cbe30e', class: `valid-label ${this.validationErrors.length === 0 ? 'valid' : 'invalid'}`, onClick: this.validationErrors.length && (() => (this.isExpanded = !this.isExpanded)) }, this.validationErrors.length === 0 ? 'Ready to Send' : `Requires Fields`, this.validationErrors.length > 0 && h("div", { key: '0f0034a85c407a98cd72caedb7719d57cbbe6419', class: 'field-counter' }, this.validationErrors.length), this.validationErrors.length > 0 && (h("ls-icon", { key: '5f6dadde5dee6d6539531d3e49c5af14e60926ff', name: this.isExpanded ? 'chevron-up' : 'chevron-down', style: { cursor: 'pointer', scale: '0.60', margin: '0 -0.25rem' } }))), this.isExpanded && this.validationErrors.length !== 0 && (h("div", { key: 'f69f5c8f2dcd583bfa6472806e1b15f88143e165', class: 'field-dropdown' }, h("div", { key: '86cc44f470f99e329ca950be1cca4af86389620b', class: 'dropdown-header' }, h("h2", { key: 'ec2c565524f20d85432dfbc7d218cd2c23809a36' }, "Signature Fields Required"), h("p", { key: '272cc03365c6a95ad68aa4d3857d0004187ca9da' }, this.validationErrors.length, " ", this.validationErrors.length === 1 ? 'Recipient needs a Signature Field' : 'Recipients need Signature Fields', " placed for them")), this.validationErrors.map((field, idx) => {
|
|
34239
|
+
const signerIndex = field?.role?.signerIndex ? field?.role?.signerIndex % 100 : null;
|
|
34240
|
+
const pallette = defaultRolePalette[signerIndex || field?.element?.signer || 0];
|
|
34181
34241
|
return (h("div", { key: idx, class: 'required-field', style: {
|
|
34182
34242
|
'--field-background': pallette.s10,
|
|
34183
34243
|
'--field-border-color': pallette.s10,
|
|
@@ -34191,7 +34251,7 @@ const LsValidationTag = class {
|
|
|
34191
34251
|
};
|
|
34192
34252
|
LsValidationTag.style = lsValidationTagCss;
|
|
34193
34253
|
|
|
34194
|
-
export { LsDocumentOptions as ls_document_options, LsDocumentViewer as ls_document_viewer, LsEditorField as ls_editor_field, LsEditorTable as ls_editor_table, LsFeatureColoumn as ls_feature_column, LsFieldAlignment as ls_field_alignment, LsFieldContent as ls_field_content, LsFieldDimensions as ls_field_dimensions, LsFieldDistribute as ls_field_distribute, LsFieldFooter as ls_field_footer, LsFieldFormat as ls_field_format, LsFieldPlacement as ls_field_placement, LsFieldProperties as ls_field_properties, LsFieldPropertiesAdvanced as ls_field_properties_advanced, LsFieldPropertiesAutosign as ls_field_properties_autosign, LsFieldPropertiesContainer as ls_field_properties_container, LsFieldPropertiesDate as ls_field_properties_date, LsFieldPropertiesEmail as ls_field_properties_email, LsFieldPropertiesFile as ls_field_properties_file, LsFieldPropertiesGeneral as ls_field_properties_general, LsFieldPropertiesImage as ls_field_properties_image, LsFieldPropertiesMultiple as ls_field_properties_multiple, LsFieldPropertiesNumber as ls_field_properties_number, LsFieldPropertiesSignature as ls_field_properties_signature, LsFieldPropertiesText as ls_field_properties_text, LsFieldSize as ls_field_size, LsFieldTypeDisplay as ls_field_type_display,
|
|
34195
|
-
//# sourceMappingURL=ls-document-options.ls-document-viewer.ls-editor-field.ls-editor-table.ls-feature-column.ls-field-alignment.ls-field-content.ls-field-dimensions.ls-field-distribute.ls-field-footer.ls-field-format.ls-field-placement.ls-field-properties.ls-field-properties-advanced.ls-field-properties-autosign.ls-field-properties-container.ls-field-properties-date.ls-field-properties-email.ls-field-properties-file.ls-field-properties-general.ls-field-properties-image.ls-field-properties-multiple.ls-field-properties-number.ls-field-properties-signature.ls-field-properties-text.ls-field-size.ls-field-type-display.ls-
|
|
34254
|
+
export { LsDocumentOptions as ls_document_options, LsDocumentViewer as ls_document_viewer, LsEditorField as ls_editor_field, LsEditorTable as ls_editor_table, LsFeatureColoumn as ls_feature_column, LsFieldAlignment as ls_field_alignment, LsFieldContent as ls_field_content, LsFieldDimensions as ls_field_dimensions, LsFieldDistribute as ls_field_distribute, LsFieldFooter as ls_field_footer, LsFieldFormat as ls_field_format, LsFieldPlacement as ls_field_placement, LsFieldProperties as ls_field_properties, LsFieldPropertiesAdvanced as ls_field_properties_advanced, LsFieldPropertiesAutosign as ls_field_properties_autosign, LsFieldPropertiesContainer as ls_field_properties_container, LsFieldPropertiesDate as ls_field_properties_date, LsFieldPropertiesEmail as ls_field_properties_email, LsFieldPropertiesFile as ls_field_properties_file, LsFieldPropertiesGeneral as ls_field_properties_general, LsFieldPropertiesImage as ls_field_properties_image, LsFieldPropertiesMultiple as ls_field_properties_multiple, LsFieldPropertiesNumber as ls_field_properties_number, LsFieldPropertiesSignature as ls_field_properties_signature, LsFieldPropertiesText as ls_field_properties_text, LsFieldSize as ls_field_size, LsFieldTypeDisplay as ls_field_type_display, LsIcon as ls_icon, LsInputWrapper as ls_input_wrapper, LsPageLoader as ls_page_loader, LsParticipantCard as ls_participant_card, LsParticipantManager as ls_participant_manager, LsParticipantSelect as ls_participant_select, LsPropsSection as ls_props_section, LsStatusbar as ls_statusbar, LsToggle as ls_toggle, LsToolbar as ls_toolbar, LsToolboxField as ls_toolbox_field, LsValidationTag as ls_validation_tag };
|
|
34255
|
+
//# sourceMappingURL=ls-document-options.ls-document-viewer.ls-editor-field.ls-editor-table.ls-feature-column.ls-field-alignment.ls-field-content.ls-field-dimensions.ls-field-distribute.ls-field-footer.ls-field-format.ls-field-placement.ls-field-properties.ls-field-properties-advanced.ls-field-properties-autosign.ls-field-properties-container.ls-field-properties-date.ls-field-properties-email.ls-field-properties-file.ls-field-properties-general.ls-field-properties-image.ls-field-properties-multiple.ls-field-properties-number.ls-field-properties-signature.ls-field-properties-text.ls-field-size.ls-field-type-display.ls-icon.ls-input-wrapper.ls-page-loader.ls-participant-card.ls-participant-manager.ls-participant-select.ls-props-section.ls-statusbar.ls-toggle.ls-toolbar.ls-toolbox-field.ls-validation-tag.entry.js.map
|
|
34196
34256
|
|
|
34197
|
-
//# sourceMappingURL=ls-document-
|
|
34257
|
+
//# sourceMappingURL=ls-document-options_39.entry.js.map
|