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
package/dist/cjs/{ls-document-options_44.cjs.entry.js → ls-document-options_39.cjs.entry.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DruwRbfl.js');
|
|
4
4
|
|
|
5
|
-
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)}";
|
|
5
|
+
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)}";
|
|
6
6
|
|
|
7
7
|
const LsDocumentOptions = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -16,6 +16,7 @@ const LsDocumentOptions = class {
|
|
|
16
16
|
* {LSApiTemplate}
|
|
17
17
|
*/
|
|
18
18
|
template;
|
|
19
|
+
editTitle = false;
|
|
19
20
|
selectedHandler(newSelected, _oldSelected) {
|
|
20
21
|
console.log(newSelected, 'document manager');
|
|
21
22
|
}
|
|
@@ -26,7 +27,25 @@ const LsDocumentOptions = class {
|
|
|
26
27
|
this.mutate.emit([{ action: 'update', data: { ...this.template, ...changedDetails } }]);
|
|
27
28
|
}
|
|
28
29
|
render() {
|
|
29
|
-
|
|
30
|
+
function formatDate(isoString) {
|
|
31
|
+
const date = new Date(isoString);
|
|
32
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
33
|
+
const month = String(date.getMonth() + 1).padStart(2, '0'); // Months are 0-indexed
|
|
34
|
+
const year = date.getFullYear();
|
|
35
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
|
36
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
37
|
+
return `${day}/${month}/${year} at ${hours}:${minutes}`;
|
|
38
|
+
}
|
|
39
|
+
return (index.h(index.Host, null, index.h("div", { class: "ls-editor-infobox" }, index.h("h2", { class: "toolbox-section-title" }, "Template Details"), index.h("p", { class: "toolbox-section-description" }, "Details and insights about the Template.")), index.h("div", { class: 'template-details' }, index.h("div", { class: 'template-detail-section column' }, index.h("p", { class: "template-detail-section-title" }, "Name"), index.h("div", { class: "editButton", onClick: () => {
|
|
40
|
+
this.editTitle = !this.editTitle;
|
|
41
|
+
} }, index.h("ls-icon", { name: this.editTitle ? 'check' : 'pencil-alt', size: "18" })), this.editTitle ? (index.h("input", { value: this.template?.title, style: { width: '100%' }, onInput: e => this.alter({ title: e.detail }), onKeyUp: e => {
|
|
42
|
+
if (e.key === 'Enter' || e.keyCode === 13)
|
|
43
|
+
this.editTitle = false;
|
|
44
|
+
} })) : (index.h("p", null, this.template?.title))), index.h("div", { class: 'template-detail-section' }, index.h("div", null, index.h("p", { class: "template-detail-section-title" }, "Auto Archive"), index.h("p", { class: 'template-detail-section-info' }, "After Sending the Template will be automatically archived.")), index.h("ls-toggle", { checked: this.template?.autoArchive, onValueChange: e => {
|
|
45
|
+
this.alter({ autoArchive: e.detail });
|
|
46
|
+
} })), index.h("div", { class: 'template-detail-section' }, index.h("div", null, index.h("p", { class: "template-detail-section-title" }, "Lock Template"), index.h("p", { class: 'template-detail-section-info' }, "Lock Template to avoid changes being made")), index.h("ls-toggle", { checked: this.template?.locked, onValueChange: e => {
|
|
47
|
+
this.alter({ locked: e.detail });
|
|
48
|
+
} })), index.h("div", { class: 'template-detail-section column' }, index.h("p", { class: "template-detail-section-title" }, "Pages"), index.h("p", null, this.template?.pageCount)), index.h("div", { class: 'template-detail-section column' }, index.h("p", { class: "template-detail-section-title" }, "Date Created"), " ", index.h("p", null, formatDate(this.template?.created))), index.h("div", { class: 'template-detail-section column' }, index.h("p", { class: "template-detail-section-title" }, "Created By"), " ", index.h("p", null, this.template?.createdBy))), index.h("slot", null)));
|
|
30
49
|
}
|
|
31
50
|
static get watchers() { return {
|
|
32
51
|
"template": ["selectedHandler"]
|
|
@@ -19907,12 +19926,6 @@ const recalculateCoordinates = (d) => {
|
|
|
19907
19926
|
const ay = d.top / d.pageDimensions.height;
|
|
19908
19927
|
const bx = (d.left + d.width) / d.pageDimensions.width;
|
|
19909
19928
|
const by = (d.top + d.height) / d.pageDimensions.height;
|
|
19910
|
-
console.log({
|
|
19911
|
-
ax,
|
|
19912
|
-
ay,
|
|
19913
|
-
bx,
|
|
19914
|
-
by,
|
|
19915
|
-
}, 'recalc');
|
|
19916
19929
|
// Return with calculated styles that try to place it as it would appear on legacy signing page
|
|
19917
19930
|
return {
|
|
19918
19931
|
...d,
|
|
@@ -20224,7 +20237,7 @@ function keyDown(ev) {
|
|
|
20224
20237
|
return oob(alterElement) ? original : alterElement;
|
|
20225
20238
|
});
|
|
20226
20239
|
}
|
|
20227
|
-
else if (ev.key === 'Delete') {
|
|
20240
|
+
else if (ev.key === 'Delete' || ev.key === 'Backspace') {
|
|
20228
20241
|
const arr = Array.from(this.selected);
|
|
20229
20242
|
this.mutate.emit(arr.map(s => {
|
|
20230
20243
|
return { action: 'delete', data: s.dataItem };
|
|
@@ -20283,12 +20296,44 @@ function mouseDown(e) {
|
|
|
20283
20296
|
this.hitField = f;
|
|
20284
20297
|
}
|
|
20285
20298
|
});
|
|
20286
|
-
if (this.hitField) {
|
|
20299
|
+
if (this.hitField && e.shiftKey === false) {
|
|
20300
|
+
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20301
|
+
box.style.visibility = 'hidden';
|
|
20302
|
+
// mouse down on a field, select it and note the start location
|
|
20303
|
+
if (this.hitField.selected === false) {
|
|
20304
|
+
// unselect all other fields
|
|
20305
|
+
fields.forEach(fu => {
|
|
20306
|
+
fu.selected = false;
|
|
20307
|
+
});
|
|
20308
|
+
this.selected = [this.hitField];
|
|
20309
|
+
this.selectFields.emit([this.hitField.dataItem]);
|
|
20310
|
+
}
|
|
20311
|
+
const { height, width } = this.hitField.getBoundingClientRect();
|
|
20312
|
+
const fdims = { left: this.hitField.offsetLeft, top: this.hitField.offsetTop, height, width, x: e.screenX, y: e.screenY };
|
|
20313
|
+
this.startMouse = fdims;
|
|
20314
|
+
this.startLocations = this.selected.map(f => {
|
|
20315
|
+
const { height, width } = f.getBoundingClientRect();
|
|
20316
|
+
const beHtml = f;
|
|
20317
|
+
return { top: beHtml.offsetTop, left: beHtml.offsetLeft, height, width };
|
|
20318
|
+
});
|
|
20319
|
+
this.selectionBox = null;
|
|
20320
|
+
}
|
|
20321
|
+
else if (this.hitField && e.shiftKey === true) {
|
|
20322
|
+
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20323
|
+
box.style.visibility = 'hidden';
|
|
20324
|
+
// mouse down on a field, select it and note the start location
|
|
20325
|
+
if (this.hitField.selected === false) {
|
|
20326
|
+
// unselect all other fields
|
|
20327
|
+
fields.forEach(fu => {
|
|
20328
|
+
fu.selected = false;
|
|
20329
|
+
});
|
|
20330
|
+
this.selected = [...this.selected, this.hitField];
|
|
20331
|
+
this.selectFields.emit([...this.selected.map(si => si.dataItem), this.hitField.dataItem]);
|
|
20332
|
+
}
|
|
20287
20333
|
const { height, width } = this.hitField.getBoundingClientRect();
|
|
20288
20334
|
const fdims = { left: this.hitField.offsetLeft, top: this.hitField.offsetTop, height, width, x: e.screenX, y: e.screenY };
|
|
20289
20335
|
this.startMouse = fdims;
|
|
20290
|
-
|
|
20291
|
-
this.startLocations = target.map(f => {
|
|
20336
|
+
this.startLocations = this.selected.map(f => {
|
|
20292
20337
|
const { height, width } = f.getBoundingClientRect();
|
|
20293
20338
|
const beHtml = f;
|
|
20294
20339
|
return { top: beHtml.offsetTop, left: beHtml.offsetLeft, height, width };
|
|
@@ -20296,11 +20341,12 @@ function mouseDown(e) {
|
|
|
20296
20341
|
this.selectionBox = null;
|
|
20297
20342
|
}
|
|
20298
20343
|
else {
|
|
20299
|
-
//
|
|
20344
|
+
// move down on empty space, start a selection box
|
|
20300
20345
|
this.startLocations = null;
|
|
20301
20346
|
this.startMouse = null;
|
|
20302
20347
|
this.selectionBox = { x: e.clientX, y: e.clientY };
|
|
20303
20348
|
// console.log('empty space reset selected', this.selectionBox);
|
|
20349
|
+
this.unselect();
|
|
20304
20350
|
this.selectFields.emit([]);
|
|
20305
20351
|
this.selected = [];
|
|
20306
20352
|
this.component.style.cursor = 'crosshair';
|
|
@@ -20335,7 +20381,7 @@ function mouseMove(event) {
|
|
|
20335
20381
|
debounce.bind(this)({ action: 'update', data: recalculateCoordinates(this.hitField.dataItem) }, 700);
|
|
20336
20382
|
}
|
|
20337
20383
|
else if (this.selectionBox && event.buttons === 1) {
|
|
20338
|
-
|
|
20384
|
+
this.isBoxing = true;
|
|
20339
20385
|
// draw the multiple selection box
|
|
20340
20386
|
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20341
20387
|
var frame = this.component.shadowRoot.getElementById('ls-document-frame');
|
|
@@ -20349,6 +20395,7 @@ function mouseMove(event) {
|
|
|
20349
20395
|
box.style.top = (this.selectionBox.y > event.clientY ? event.clientY : this.selectionBox.y) - topOffset + frame.scrollTop + 'px';
|
|
20350
20396
|
box.style.width = Math.abs(movedX) + 'px';
|
|
20351
20397
|
box.style.height = Math.abs(movedY) + 'px';
|
|
20398
|
+
// Move one or more selected items
|
|
20352
20399
|
}
|
|
20353
20400
|
else if (this.startLocations && !this.edgeSide && this.startMouse && event.buttons === 1) {
|
|
20354
20401
|
this.isMoving = true;
|
|
@@ -20371,7 +20418,8 @@ function mouseUp(event) {
|
|
|
20371
20418
|
this.component.style.cursor = 'auto';
|
|
20372
20419
|
// console.log('mouse up');
|
|
20373
20420
|
// find what was inside the selection box emit the select event and change their style
|
|
20374
|
-
if (this.selectionBox) {
|
|
20421
|
+
if (this.selectionBox && this.isBoxing) {
|
|
20422
|
+
this.isBoxing = false;
|
|
20375
20423
|
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20376
20424
|
var fields = this.component.shadowRoot.querySelectorAll('ls-editor-field');
|
|
20377
20425
|
box.style.visibility = 'hidden';
|
|
@@ -24526,7 +24574,7 @@ class LsDocumentAdapter {
|
|
|
24526
24574
|
query = createElement(obj);
|
|
24527
24575
|
break;
|
|
24528
24576
|
case 'update':
|
|
24529
|
-
query = updateElement(obj);
|
|
24577
|
+
query = updateElement(recalculateCoordinates(obj));
|
|
24530
24578
|
break;
|
|
24531
24579
|
case 'delete':
|
|
24532
24580
|
query = deleteElement(obj);
|
|
@@ -24735,6 +24783,8 @@ const LsDocumentViewer = class {
|
|
|
24735
24783
|
// @ts-ignore
|
|
24736
24784
|
isMoving = false;
|
|
24737
24785
|
// @ts-ignore
|
|
24786
|
+
isBoxing = false;
|
|
24787
|
+
// @ts-ignore
|
|
24738
24788
|
selectionBox = null;
|
|
24739
24789
|
// @ts-ignore
|
|
24740
24790
|
hitField;
|
|
@@ -24784,11 +24834,12 @@ const LsDocumentViewer = class {
|
|
|
24784
24834
|
status;
|
|
24785
24835
|
groupInfo;
|
|
24786
24836
|
selected = [];
|
|
24837
|
+
isLoading = true;
|
|
24787
24838
|
/**
|
|
24788
24839
|
* An ease of use property that will arrange document-viewer appropraitely.
|
|
24789
24840
|
* {'preview' | 'editor' | 'custom'}
|
|
24790
24841
|
*/
|
|
24791
|
-
mode = '
|
|
24842
|
+
mode = 'editor';
|
|
24792
24843
|
modeHandler(_newMode, _oldMode) {
|
|
24793
24844
|
if (_newMode === 'preview') {
|
|
24794
24845
|
this.showtoolbar = false;
|
|
@@ -24802,6 +24853,12 @@ const LsDocumentViewer = class {
|
|
|
24802
24853
|
this.showstatusbar = true;
|
|
24803
24854
|
this.readonly = false;
|
|
24804
24855
|
}
|
|
24856
|
+
else if (_newMode === 'compose') {
|
|
24857
|
+
this.showtoolbar = true;
|
|
24858
|
+
this.showtoolbox = true;
|
|
24859
|
+
this.showstatusbar = true;
|
|
24860
|
+
this.readonly = false;
|
|
24861
|
+
}
|
|
24805
24862
|
}
|
|
24806
24863
|
tableViewHandler(_newMode, _oldMode) {
|
|
24807
24864
|
if (_newMode === true) {
|
|
@@ -24878,7 +24935,7 @@ const LsDocumentViewer = class {
|
|
|
24878
24935
|
adapter;
|
|
24879
24936
|
// Action an external data action and use the result (if required)
|
|
24880
24937
|
mutateHandler(event) {
|
|
24881
|
-
if (this.token)
|
|
24938
|
+
if (this.token && this.adapter)
|
|
24882
24939
|
event.detail.forEach(me => this.adapter.handleEvent(me, this.token).then(result => matchData.bind(this)(result)));
|
|
24883
24940
|
}
|
|
24884
24941
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
@@ -24918,8 +24975,9 @@ const LsDocumentViewer = class {
|
|
|
24918
24975
|
elementConnection: { ...this._template.elementConnection, templateElements: fields.map(ef => ef.dataItem) },
|
|
24919
24976
|
};
|
|
24920
24977
|
var toolbar = this.component.shadowRoot.getElementById('ls-toolbar');
|
|
24921
|
-
if (toolbar)
|
|
24978
|
+
if (toolbar) {
|
|
24922
24979
|
toolbar.dataItem = event.detail;
|
|
24980
|
+
}
|
|
24923
24981
|
var propPanel = this.component.shadowRoot.getElementById('my-field-panel');
|
|
24924
24982
|
if (propPanel) {
|
|
24925
24983
|
propPanel.dataItem = event.detail;
|
|
@@ -24929,7 +24987,7 @@ const LsDocumentViewer = class {
|
|
|
24929
24987
|
const fu = this.component.shadowRoot.getElementById('ls-field-' + fc.id);
|
|
24930
24988
|
fu.selected = true;
|
|
24931
24989
|
});
|
|
24932
|
-
this.selected = fields.filter(fx => fx.selected);
|
|
24990
|
+
// this.selected = fields.filter(fx => fx.selected) as HTMLLsEditorFieldElement[];
|
|
24933
24991
|
this.selected.forEach(s => (s.selected = event.detail.map(d => d.id).includes(s.dataItem.id)));
|
|
24934
24992
|
this.validationErrors = validate.bind(this)(this._template);
|
|
24935
24993
|
}
|
|
@@ -24964,6 +25022,14 @@ const LsDocumentViewer = class {
|
|
|
24964
25022
|
this.queueRenderPage(this.pageNum);
|
|
24965
25023
|
this.showPageFields(this.pageNum);
|
|
24966
25024
|
}
|
|
25025
|
+
/**
|
|
25026
|
+
* Unselect all fields
|
|
25027
|
+
*/
|
|
25028
|
+
async unselect() {
|
|
25029
|
+
const fields = this.component.shadowRoot.querySelectorAll('ls-editor-field');
|
|
25030
|
+
fields.forEach(fu => { fu.selected = false; });
|
|
25031
|
+
this.selected = [];
|
|
25032
|
+
}
|
|
24967
25033
|
/**
|
|
24968
25034
|
* Page and field resize on zoom change
|
|
24969
25035
|
*
|
|
@@ -24984,6 +25050,13 @@ const LsDocumentViewer = class {
|
|
|
24984
25050
|
this.queueRenderPage(this.pageNum);
|
|
24985
25051
|
this.showPageFields(this.pageNum);
|
|
24986
25052
|
}
|
|
25053
|
+
/**
|
|
25054
|
+
* Ensure broken or misplaced fields are put onto the page.
|
|
25055
|
+
* {number} position
|
|
25056
|
+
*/
|
|
25057
|
+
clip(legacyPosition, failback = 0.0) {
|
|
25058
|
+
return legacyPosition > 1 ? failback : legacyPosition;
|
|
25059
|
+
}
|
|
24987
25060
|
/**
|
|
24988
25061
|
* Decorate the template data object with useful transformations.
|
|
24989
25062
|
* {string} json of template
|
|
@@ -25000,10 +25073,10 @@ const LsDocumentViewer = class {
|
|
|
25000
25073
|
const fields = newTemplate.elementConnection.templateElements.map(f => {
|
|
25001
25074
|
return {
|
|
25002
25075
|
...f,
|
|
25003
|
-
top: f.ay *
|
|
25004
|
-
left: f.ax *
|
|
25005
|
-
height: (f.by - f.ay) *
|
|
25006
|
-
width: (f.bx - f.ax) *
|
|
25076
|
+
top: this.clip(f.ay) * this.pageDimensions[0].height,
|
|
25077
|
+
left: this.clip(f.ax) * this.pageDimensions[0].width,
|
|
25078
|
+
height: (this.clip(f.by, 0.1) - this.clip(f.ay)) * this.pageDimensions[0].height,
|
|
25079
|
+
width: (this.clip(f.bx, 0.2) - this.clip(f.ax)) * this.pageDimensions[0].width,
|
|
25007
25080
|
templateId: newTemplate.id,
|
|
25008
25081
|
};
|
|
25009
25082
|
});
|
|
@@ -25065,23 +25138,26 @@ const LsDocumentViewer = class {
|
|
|
25065
25138
|
prepareElement(newElement) {
|
|
25066
25139
|
return {
|
|
25067
25140
|
...newElement,
|
|
25068
|
-
top: Math.floor(newElement.ay * this.pageDimensions[newElement.page - 1].height),
|
|
25069
|
-
left: Math.floor(newElement.ax * this.pageDimensions[newElement.page - 1].width),
|
|
25070
|
-
height: Math.floor((newElement.by - newElement.ay) * this.pageDimensions[newElement.page - 1].height),
|
|
25071
|
-
width: Math.floor((newElement.bx - newElement.ax) * this.pageDimensions[newElement.page - 1].width),
|
|
25141
|
+
top: Math.floor(this.clip(newElement.ay) * this.pageDimensions[newElement.page - 1].height),
|
|
25142
|
+
left: Math.floor(this.clip(newElement.ax) * this.pageDimensions[newElement.page - 1].width),
|
|
25143
|
+
height: Math.floor((this.clip(newElement.by, 0.05) - this.clip(newElement.ay)) * this.pageDimensions[newElement.page - 1].height),
|
|
25144
|
+
width: Math.floor((this.clip(newElement.bx, 0.2) - this.clip(newElement.ax)) * this.pageDimensions[newElement.page - 1].width),
|
|
25072
25145
|
pageDimensions: this.pageDimensions[newElement.page - 1],
|
|
25073
25146
|
templateId: this._template.id,
|
|
25074
25147
|
};
|
|
25075
25148
|
}
|
|
25076
25149
|
// internal forced change
|
|
25077
25150
|
syncChange(update) {
|
|
25151
|
+
if (update?.select === 'clear') {
|
|
25152
|
+
this.unselect();
|
|
25153
|
+
}
|
|
25078
25154
|
if (getApiType(update.data) === 'element') {
|
|
25079
25155
|
if (update.action === 'create') {
|
|
25080
25156
|
const newData = { ...update.data, page: this.pageNum };
|
|
25081
25157
|
addField.bind(this)(this.component.shadowRoot.getElementById('ls-document-frame'), newData);
|
|
25082
|
-
const newField = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
25083
|
-
this.selected = [newField];
|
|
25084
|
-
this.selectFields.emit([newData]);
|
|
25158
|
+
//const newField = this.component.shadowRoot.getElementById('ls-field-' + update.data.id) as HTMLLsEditorFieldElement;
|
|
25159
|
+
//this.selected = [newField];
|
|
25160
|
+
//this.selectFields.emit([newData as LSApiElement]);
|
|
25085
25161
|
}
|
|
25086
25162
|
else if (update.action === 'update') {
|
|
25087
25163
|
const fi = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
@@ -25141,6 +25217,7 @@ const LsDocumentViewer = class {
|
|
|
25141
25217
|
});
|
|
25142
25218
|
}
|
|
25143
25219
|
async load() {
|
|
25220
|
+
this.isLoading = true;
|
|
25144
25221
|
// Get all template and group listing data.
|
|
25145
25222
|
try {
|
|
25146
25223
|
this.adapter = new LsDocumentAdapter(this.endpoint);
|
|
@@ -25152,6 +25229,8 @@ const LsDocumentViewer = class {
|
|
|
25152
25229
|
//Revalidate
|
|
25153
25230
|
this.validationErrors = validate.bind(this)(this._template);
|
|
25154
25231
|
this.selected = [];
|
|
25232
|
+
this.setZoom(1.0);
|
|
25233
|
+
this.isLoading = false;
|
|
25155
25234
|
}
|
|
25156
25235
|
catch (e) {
|
|
25157
25236
|
console.error('Your access token is invalid.', e);
|
|
@@ -25161,12 +25240,15 @@ const LsDocumentViewer = class {
|
|
|
25161
25240
|
if (this.token && !this._template)
|
|
25162
25241
|
this.load();
|
|
25163
25242
|
}
|
|
25164
|
-
|
|
25165
|
-
const
|
|
25166
|
-
|
|
25243
|
+
handleSelectedField(event) {
|
|
25244
|
+
const fields = this.component.shadowRoot.querySelectorAll('ls-toolbox-field');
|
|
25245
|
+
fields.forEach(element => {
|
|
25246
|
+
const isSelected = element.formElementType === event.detail;
|
|
25247
|
+
element.isSelected = isSelected;
|
|
25248
|
+
});
|
|
25167
25249
|
}
|
|
25168
25250
|
render() {
|
|
25169
|
-
return (index.h(index.Host, { key: '
|
|
25251
|
+
return (index.h(index.Host, { key: 'ba98f503028b8060b6d7de59ebec65543bf5d34f' }, index.h(index.h.Fragment, null, this.isLoading && index.h("ls-page-loader", { key: 'da33facea5a874f2c372e6929c792223cd1d774f' }), index.h("div", { key: 'ed01cec72df4e2343b2fba0fd0e11078c09db240', class: 'validation-tag-wrapper' }, index.h("ls-validation-tag", { key: 'dec9e222a7235a55b0b7d6742ed942bf3af15e31', validationErrors: this.validationErrors })), index.h("div", { key: '7d6b631c38281c856824897813d1b627d5af17bc', class: "page-header" }, index.h("p", { key: '1137422244e4fa7f62e6ddf3447a6948198f4f77', class: "header-text-1" }, "Template Creation"), index.h("p", { key: '9202737314df5c2238f74bd897a23c892facd100' }, "/"), index.h("p", { key: '8572833ade9d180ad8f39ca7e4bfb3352f3cecc0', class: "header-text-2" }, this._template?.title)), index.h("form", { key: '84a6e0219e003051bbf200527ed275d05a9b1a40', id: "ls-editor-form" }, this.showtoolbox === true ? (index.h("div", { class: "leftBox" }, index.h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, index.h("ls-feature-column", { onManage: manager => {
|
|
25170
25252
|
if (manager.detail === 'document') {
|
|
25171
25253
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
25172
25254
|
documentManager.template = this._template;
|
|
@@ -25176,10 +25258,36 @@ const LsDocumentViewer = class {
|
|
|
25176
25258
|
participantManager.template = this._template;
|
|
25177
25259
|
}
|
|
25178
25260
|
this.manager = manager.detail;
|
|
25179
|
-
} }), index.h("div", { id: "ls-toolbox", class: this.manager === 'toolbox' ? 'toolbox' : 'hidden' }, index.h("div", { class: "ls-editor-infobox" }, index.h("h2", { class: "toolbox-section-title" }, "Participant Fields"), index.h("p", { class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), index.h("div", { class: "fields-box" }, this.signer > 0 ? (index.h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: "Signature", defaultHeight: 27, defaultWidth: 120, validation: 0, icon: "signature", signer: this.signer
|
|
25261
|
+
} }), index.h("div", { id: "ls-toolbox", class: this.manager === 'toolbox' ? 'toolbox' : 'hidden' }, index.h("div", { class: "ls-editor-infobox" }, index.h("h2", { class: "toolbox-section-title" }, "Participant Fields"), index.h("p", { class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), index.h("div", { class: "fields-box" }, this.signer > 0 ? (index.h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: "Signature", defaultHeight: 27, defaultWidth: 120, validation: 0, icon: "signature", signer: this.signer, onSelected: event => {
|
|
25262
|
+
this.handleSelectedField.bind(this)(event);
|
|
25263
|
+
} })) : (index.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 => {
|
|
25264
|
+
this.handleSelectedField.bind(this)(event);
|
|
25265
|
+
} })), index.h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials", signer: this.signer, onSelected: event => {
|
|
25266
|
+
this.handleSelectedField.bind(this)(event);
|
|
25267
|
+
} }), index.h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", signer: this.signer, onSelected: event => {
|
|
25268
|
+
this.handleSelectedField.bind(this)(event);
|
|
25269
|
+
} }), index.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 => {
|
|
25270
|
+
this.handleSelectedField.bind(this)(event);
|
|
25271
|
+
} }), index.h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol", signer: this.signer, onSelected: event => {
|
|
25272
|
+
this.handleSelectedField.bind(this)(event);
|
|
25273
|
+
} }), index.h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text", signer: this.signer, onSelected: event => {
|
|
25274
|
+
this.handleSelectedField.bind(this)(event);
|
|
25275
|
+
} }), index.h("div", { class: 'expand-fields-row', onClick: () => (this.expandfields = !this.expandfields) }, index.h("ls-icon", { name: this.expandfields ? 'expand' : 'collapse', size: "20", solid: true }), index.h("p", null, "More Field Types")), this.expandfields && (index.h("div", { class: "fields-box" }, index.h("ls-toolbox-field", { elementType: "number", formElementType: "number", label: "Number", defaultHeight: 27, defaultWidth: 80, validation: 50, icon: "hashtag", signer: this.signer, onSelected: event => {
|
|
25276
|
+
this.handleSelectedField.bind(this)(event);
|
|
25277
|
+
} }), index.h("ls-toolbox-field", { elementType: "dropdown", formElementType: "dropdown", label: "Dropdown", defaultHeight: 27, defaultWidth: 80, validation: 20, icon: "hashtag", signer: this.signer, onSelected: event => {
|
|
25278
|
+
this.handleSelectedField.bind(this)(event);
|
|
25279
|
+
} }), index.h("ls-toolbox-field", { elementType: "checkbox", formElementType: "checkbox", label: "Checkbox", defaultHeight: 27, defaultWidth: 27, validation: 25, icon: "check", signer: this.signer, onSelected: event => {
|
|
25280
|
+
this.handleSelectedField.bind(this)(event);
|
|
25281
|
+
} }), index.h("ls-toolbox-field", { elementType: "regex", formElementType: "regex", label: "Regex", defaultHeight: 27, defaultWidth: 120, validation: 93, icon: "code", signer: this.signer, onSelected: event => {
|
|
25282
|
+
this.handleSelectedField.bind(this)(event);
|
|
25283
|
+
} }), index.h("ls-toolbox-field", { elementType: "image", formElementType: "image", label: "Image", defaultHeight: 27, defaultWidth: 120, validation: 90, icon: "photograph", signer: this.signer, onSelected: event => {
|
|
25284
|
+
this.handleSelectedField.bind(this)(event);
|
|
25285
|
+
} }), index.h("ls-toolbox-field", { elementType: "file", formElementType: "file", label: "File", defaultHeight: 27, defaultWidth: 120, validation: 74, icon: "upload", signer: this.signer, onSelected: event => {
|
|
25286
|
+
this.handleSelectedField.bind(this)(event);
|
|
25287
|
+
} }))))), index.h("ls-participant-manager", { id: "ls-participant-manager", class: this.manager === 'participant' ? 'toolbox' : 'hidden', editor: this }), index.h("ls-document-options", { id: "ls-document-options", class: this.manager === 'document' ? 'toolbox' : 'hidden' })), !this.displayTable && (index.h("div", { class: this.selected.length > 0 ? 'field-properties-outer' : 'hidden' }, index.h("div", { class: 'properties-header' }, index.h("div", { class: 'properties-header-icon' }, index.h("ls-icon", { name: "pre-filled-content" })), index.h("h1", { class: 'properties-header-title' }, "Field Properties"), index.h("button", { class: 'tertiaryGrey', onClick: e => {
|
|
25180
25288
|
this.selected = [];
|
|
25181
25289
|
e.preventDefault();
|
|
25182
|
-
} }, index.h("ls-icon", { name: "x", size: "20" }))), index.h("ls-field-properties", { id: "my-field-panel" }), index.h("slot", null))))) : (index.h(index.h.Fragment, null)), index.h("ls-toolbar", { key: '
|
|
25290
|
+
} }, index.h("ls-icon", { name: "x", size: "20" }))), index.h("ls-field-properties", { id: "my-field-panel" }), index.h("slot", null))))) : (index.h(index.h.Fragment, null)), index.h("ls-toolbar", { key: '300a112fbe7e1b6acfd6ce0ec54cb3a752f55815', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo }), index.h("div", { key: '92700d27b2be0e8c74952dd1dd4225cd6449f550', id: "ls-mid-area" }, index.h("div", { key: 'a52bf847bd9eb219a0b470ce4e36fc97e315c6c8', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, index.h("div", { key: '9edf12e09ccea929e531ee52a4354c389d055629', id: "ls-document-frame" }, index.h("canvas", { key: '167c02485f5484e32576749c9ffd90ea478ecfcb', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'hidden' : '' }), index.h("ls-editor-table", { key: 'ed899a22082224f5f7cc294b68e4c6b56d60d0d3', editor: this, class: this.displayTable ? '' : 'hidden' }), index.h("div", { key: 'ccf62d6787987a90426cc79139e517c7ac27502c', id: "ls-box-selector" }))), index.h("ls-statusbar", { key: 'afe98039104214aaecf7b5b77497becbe04b830c', editor: this }))))));
|
|
25183
25291
|
}
|
|
25184
25292
|
static get watchers() { return {
|
|
25185
25293
|
"mode": ["modeHandler"],
|
|
@@ -25572,7 +25680,7 @@ const LsEditorTable = class {
|
|
|
25572
25680
|
});
|
|
25573
25681
|
}
|
|
25574
25682
|
render() {
|
|
25575
|
-
return (index.h(index.Host, { key: '
|
|
25683
|
+
return (index.h(index.Host, { key: '5843064d233783ed3c491d399c415d281ed35e11' }, index.h("table", { key: '8a6d6d1dc717876eb4401f76f8dc280b957fdeb7', id: "ls-editor-table" }), index.h("slot", { key: '334d466e08ed2490fa88ef774912b469fde0a287' })));
|
|
25576
25684
|
}
|
|
25577
25685
|
};
|
|
25578
25686
|
LsEditorTable.style = lsEditorTableCss;
|
|
@@ -25592,17 +25700,17 @@ const LsFeatureColoumn = class {
|
|
|
25592
25700
|
// Send an manager change up the DOM
|
|
25593
25701
|
manage;
|
|
25594
25702
|
render() {
|
|
25595
|
-
return (index.h(index.Host, { key: '
|
|
25703
|
+
return (index.h(index.Host, { key: 'c153ff8227ffe959671bd72b62eef1be0d6ea0a5' }, index.h("div", { key: 'febf78c0ccc42e2511b52419955e28017b6d617c', class: this.manager === 'document' ? 'activeIcon' : 'defaultIcon', onClick: () => {
|
|
25596
25704
|
console.log('document');
|
|
25597
25705
|
this.manage.emit('document');
|
|
25598
25706
|
this.manager = 'document';
|
|
25599
|
-
} }, index.h("ls-icon", { key: '
|
|
25707
|
+
} }, index.h("ls-icon", { key: '027568b936d809b03eecc895fcfab24cd65e7fa3', name: "document", size: "24" })), index.h("div", { key: '3fe1542a7c2053dcca881682eb29859f4bf7a914', class: this.manager === 'toolbox' ? 'activeIcon' : 'defaultIcon', onClick: () => {
|
|
25600
25708
|
this.manage.emit('toolbox');
|
|
25601
25709
|
this.manager = 'toolbox';
|
|
25602
|
-
} }, index.h("ls-icon", { key: '
|
|
25710
|
+
} }, index.h("ls-icon", { key: '2656bb9ebbcec8dbf2a5519e9f80ceb734413828', name: "typing-input", size: "24" })), index.h("div", { key: '46abc8a29b3488273d669089602ed902752b1145', class: this.manager === 'participant' ? 'activeIcon' : 'defaultIcon', onClick: () => {
|
|
25603
25711
|
this.manage.emit('participant');
|
|
25604
25712
|
this.manager = 'participant';
|
|
25605
|
-
} }, index.h("ls-icon", { key: '
|
|
25713
|
+
} }, index.h("ls-icon", { key: '173f5cc9556a37f7502fb7c02e1644659dd65b16', name: "user-group", size: "24" })), index.h("slot", { key: '856f4c459eb86ae32eb564c5024f64231f9cc8a1' })));
|
|
25606
25714
|
}
|
|
25607
25715
|
};
|
|
25608
25716
|
LsFeatureColoumn.style = lsFeatureColumnCss;
|
|
@@ -25730,9 +25838,9 @@ const LsFieldAlignment = class {
|
|
|
25730
25838
|
this.update.emit(diffs);
|
|
25731
25839
|
}
|
|
25732
25840
|
render() {
|
|
25733
|
-
return (index.h(index.Host, { key: '
|
|
25841
|
+
return (index.h(index.Host, { key: '276514255f8b1da24cffe917638d0e79196cd4c9' }, index.h("div", { key: '0e4af454e1789c6b5ee4dd443c69eb700428bee6', class: 'ls-field-properties-section' }, index.h("div", { key: '958a851c77101f9146c3947fd31d56b9ad0d1c84', class: 'ls-field-properties-section-text' }, index.h("p", { key: '7d8add53a07a7b453feedffcd45dd6129f57de37', class: 'ls-field-properties-section-title' }, "Alignment"), index.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.")), index.h("div", { key: '6bf9c9285cdbdab4ed8b51de45b8199d2e2d1770', class: 'multi-button-group-row' }, index.h("div", { key: 'ba5a3e3e98211666a962c20c6de73aca844c4af5', class: 'button-group' }, index.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" }, index.h("ls-icon", { key: '97dbc0e12710ca5dea47d8da193ab238ee5ae9dd', name: "field-alignment-left" })), index.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" }, index.h("ls-icon", { key: 'be176582cc48aaf636e7590224fcddf8a39bb7ef', name: "field-alignment-centre" })), index.h("button", { key: '9b7ac33e30f711b2aa806cfc87ae1e85fe3158f8', onClick: () => {
|
|
25734
25842
|
this.right();
|
|
25735
|
-
}, "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" }, index.h("ls-icon", { key: '
|
|
25843
|
+
}, "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" }, index.h("ls-icon", { key: '81953cc88fadc80c0df9a53d367edf4240ba1225', name: "field-alignment-right" }))), index.h("div", { key: '88274bcb8a4f0df2de472e006470f47741448cfe', class: 'button-group' }, index.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" }, index.h("ls-icon", { key: '69e5a9a07882a5038e56f574cbe4f5a844ff2400', name: "field-alignment-top" })), index.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" }, index.h("ls-icon", { key: '0b4c455c31330de80905f8522baf9e7db621fd0f', name: "field-alignment-middle" })), index.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" }, index.h("ls-icon", { key: '3faf90ae35dc58ff59d899c74b3d2e8f24755dd5', name: "field-alignment-bottom" }))))), index.h("slot", { key: '427224b21fa432083716c6cee3d7d0483ddbd0f4' })));
|
|
25736
25844
|
}
|
|
25737
25845
|
};
|
|
25738
25846
|
LsFieldAlignment.style = lsFieldAlignmentCss;
|
|
@@ -25768,9 +25876,9 @@ const LsFieldContent = class {
|
|
|
25768
25876
|
}, delay);
|
|
25769
25877
|
}
|
|
25770
25878
|
render() {
|
|
25771
|
-
return (index.h(index.Host, { key: '
|
|
25879
|
+
return (index.h(index.Host, { key: '480b4e4a16a11270f16c1fbd52a9cfc06319c003' }, index.h("ls-props-section", { key: '9f01dda37d313b6e0b37374cd6b7b03c50552ed5', sectionTitle: "Field Type", sectionDescription: "The Field you currently have selected" }, index.h("ls-field-type-display", { key: '901f4bd65d8dfb70369e80b83d438c716a728e57', fieldType: this.dataItem?.elementType, assignee: this.dataItem?.signer })), index.h("ls-props-section", { key: 'df0d5739a95f1385d652bdc306aa35184ff87623', sectionTitle: "Required Field", row: true }, index.h("ls-toggle", { key: '4802d31dbe2e6e4d3c1819fe8d11949ad57040ed', id: "toggle-required", checked: !this.dataItem?.optional, onValueChange: (ev) => this.alter({ optional: !ev.detail }) })), index.h("ls-props-section", { key: '29dda3f847d0686b45ead2c3f94d639ff4f53665', sectionTitle: "Field Label", sectionDescription: "Add a label to clarify the information required from the Recipient." }, index.h("input", { key: '84b7878c52b8b2675345d6d6c7b924ee1ed29ad7', value: this.dataItem?.label, placeholder: "eg. Sign Here", onInput: (e) => this.alter({ label: e.target.value }) })), index.h("ls-props-section", { key: '8ed642c24e6ade9785eedc5782c3ec4162d7f1dc', sectionTitle: "Value", sectionDescription: "A prefilled value that can be altered by the signer." }, index.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 && (index.h("ls-props-section", { key: '327c7c2cd68d130fafbe3622b8e3cadfd85dc79c', sectionTitle: "Options", sectionDescription: "Define the options available in the dropdown. One option per line." }, index.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 && (index.h("ls-props-section", { key: '3df0258a1d0ceb8139b905c8341c5273138dad10', sectionTitle: "Content Format", sectionDescription: "Select the specific format you want the Recipient to enter." }, index.h("ls-input-wrapper", { key: 'd404f6fd35d413afd4db73e66844a08b5231663b', select: true }, index.h("select", { key: '71bb83a0f36b694012c1da60ef0c346822dc7d92', onChange: (ev) => this.alter({ validation: parseInt(ev.target.value) }) }, validationTypes
|
|
25772
25880
|
.filter(type => type.formType === this.dataItem?.elementType)
|
|
25773
|
-
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), index.h("slot", { key: '
|
|
25881
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), index.h("slot", { key: '2316014e98eb0ae99884f42b1c37f22e2a4f1732' })));
|
|
25774
25882
|
}
|
|
25775
25883
|
};
|
|
25776
25884
|
LsFieldContent.style = lsFieldContentCss;
|
|
@@ -25812,7 +25920,7 @@ const LsFieldDimensions = class {
|
|
|
25812
25920
|
}
|
|
25813
25921
|
}
|
|
25814
25922
|
render() {
|
|
25815
|
-
return (index.h(index.Host, { key: '
|
|
25923
|
+
return (index.h(index.Host, { key: '53678e7fc68e795616c51e7cb7325a5cd45761de' }, this.isMultiple(this.dataItem) && (index.h("div", { key: 'f5a073c2039858e3b69162a1d1e599ae559dc2d6', class: 'ls-field-properties-section' }, index.h("div", { key: 'f707c71fc9623bf6fc290ab3bb14451ba98e5454', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'c000b0fb97cb50712463b4973b8d395df30f0704', class: 'ls-field-properties-section-title' }, "Height and Width"), index.h("p", { key: '4443d09dd3358da331437d83db4080e7b7a6407b', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), index.h("div", { key: 'efa8b8ec8030846f073c147879dfab93ba135a02', class: 'input-row' }, index.h("div", { key: 'c6e3345f3fc87d539ac35a85c0b8c47042795b59', class: 'input-wrapper' }, index.h("ls-icon", { key: '9033883167f51a83f41039dc9da682de3954cd17', id: "selectLeadingIcon", name: "field-match-width" }), index.h("input", { key: 'a18a60327e5766e2c109af6dd95f080a5d0aa3b9', class: 'has-leading-icon', aria: "field-width", id: "field-width", onChange: e => this.alter({ width: e.target.value }) })), index.h("div", { key: '7d3464a547cdf5938311a5f9ffc2995be604035e', class: 'input-wrapper' }, index.h("ls-icon", { key: '0e413fc72b08cf785b33c56041fe0c638b86bc70', id: "selectLeadingIcon", name: "field-match-height" }), index.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) && (index.h("div", { key: '5f73b3b84f25b2072374fc6ca27d0b59dfc3314e', class: 'field-set' }, index.h("div", { key: 'ee6d5b21c0957acee288252e35165868cc0db0ba', class: 'ls-field-properties-section' }, index.h("div", { key: '5edddb346091bb34859f258630ea959492c64ac4', class: 'ls-field-properties-section-text' }, index.h("p", { key: '3a90f8a2e72a099fe297dfbcc0b269bd61268ad6', class: 'ls-field-properties-section-title' }, "Height and Width"), index.h("p", { key: '0c336dc47d35dd3a629b766e87046463e19a9522', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), index.h("div", { key: '494929a5bbb6eae61c2d82aa1e3442ca2c1dabb1', class: 'input-row' }, index.h("div", { key: 'ce3002cfcf8344556895ed9d237e8dfb359a27a4', class: 'input-wrapper' }, index.h("ls-icon", { key: 'dca359e82e3733fec34ee138006ef8d63cd7025c', id: "selectLeadingIcon", name: "field-match-width" }), index.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 }) })), index.h("div", { key: '90b66ca4284e84ddb8b22de8d144ae24e757c74c', class: 'input-wrapper' }, index.h("ls-icon", { key: '438f4022c0b55db6f6131bcf57c957fd644f4661', id: "selectLeadingIcon", name: "field-match-height" }), index.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 }) })))), index.h("div", { key: '6b1bafdcf631c2ec00acc7afe7fdfe03b0b6600e', class: 'ls-field-properties-section' }, index.h("div", { key: '70731c167c84621672059ab5a8ab28c266029525', class: 'ls-field-properties-section-text' }, index.h("p", { key: '81fbb63a29e0f432765f00beedc4683d3f464a03', class: 'ls-field-properties-section-title' }, "Scale and Resize"), index.h("p", { key: '1ba477c5b9076364870cdd5f6106a4d40f74189f', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), index.h("div", { key: '62ba3006a435142653751e81b153b833dafa9801', class: 'button-group' }, index.h("button", { key: '9dec26a9e8ed19d2c21ea273afd2e655a0e1b6cc', disabled: true }, index.h("ls-icon", { key: '04777dc3bfdc0b81bce904d4f56108749e0c47c8', name: "field-scale" })), index.h("button", { key: '709baed52decc30ffebd96b14b02a54466ac7824', disabled: true }, index.h("ls-icon", { key: 'cf6b733cb6fcda50b39faf12b208cc1d5fa4a8b0', name: "field-match-width" })), index.h("button", { key: '6ef87f9641f2cc45a679afc73eb49920abdc7822', disabled: true }, index.h("ls-icon", { key: '28ee6b1d779df43ad15f4041271ec85ac9e95903', name: "field-match-height" }))))))));
|
|
25816
25924
|
}
|
|
25817
25925
|
};
|
|
25818
25926
|
LsFieldDimensions.style = lsFieldDimensionsCss;
|
|
@@ -25864,9 +25972,7 @@ const LsFieldDistribute = class {
|
|
|
25864
25972
|
action: 'update',
|
|
25865
25973
|
data: {
|
|
25866
25974
|
...c,
|
|
25867
|
-
left: newLeft
|
|
25868
|
-
ax: newLeft,
|
|
25869
|
-
bx: newLeft + c.width,
|
|
25975
|
+
left: newLeft
|
|
25870
25976
|
},
|
|
25871
25977
|
};
|
|
25872
25978
|
});
|
|
@@ -25874,6 +25980,51 @@ const LsFieldDistribute = class {
|
|
|
25874
25980
|
this.mutate.emit(diffs);
|
|
25875
25981
|
this.update.emit(diffs);
|
|
25876
25982
|
}
|
|
25983
|
+
gapVertical(spacing) {
|
|
25984
|
+
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
25985
|
+
var buffer = sorted[0].top;
|
|
25986
|
+
const diffs = sorted.map(c => {
|
|
25987
|
+
const newTop = buffer;
|
|
25988
|
+
buffer = buffer + c.height + spacing;
|
|
25989
|
+
const target = {
|
|
25990
|
+
...c,
|
|
25991
|
+
top: newTop
|
|
25992
|
+
};
|
|
25993
|
+
return {
|
|
25994
|
+
action: 'update',
|
|
25995
|
+
data: oob(target) ? {
|
|
25996
|
+
...c,
|
|
25997
|
+
left: c.pageDimensions.height - c.height - 1
|
|
25998
|
+
} : target
|
|
25999
|
+
};
|
|
26000
|
+
});
|
|
26001
|
+
this.dataItem = diffs.map(d => d.data);
|
|
26002
|
+
this.mutate.emit(diffs);
|
|
26003
|
+
this.update.emit(diffs);
|
|
26004
|
+
}
|
|
26005
|
+
gapHorizontal(spacing) {
|
|
26006
|
+
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
26007
|
+
var buffer = sorted[0].left;
|
|
26008
|
+
const diffs = sorted.map(c => {
|
|
26009
|
+
const newLeft = buffer;
|
|
26010
|
+
buffer = buffer + c.width + spacing;
|
|
26011
|
+
const target = {
|
|
26012
|
+
...c,
|
|
26013
|
+
left: newLeft
|
|
26014
|
+
};
|
|
26015
|
+
console.log(target, oob(target));
|
|
26016
|
+
return {
|
|
26017
|
+
action: 'update',
|
|
26018
|
+
data: oob(target) ? {
|
|
26019
|
+
...c,
|
|
26020
|
+
left: c.pageDimensions.width - c.width - 1
|
|
26021
|
+
} : target
|
|
26022
|
+
};
|
|
26023
|
+
});
|
|
26024
|
+
this.dataItem = diffs.map(d => d.data);
|
|
26025
|
+
this.mutate.emit(diffs);
|
|
26026
|
+
this.update.emit(diffs);
|
|
26027
|
+
}
|
|
25877
26028
|
distributeVertical() {
|
|
25878
26029
|
var spacing = this.component.shadowRoot.getElementById('ls-fix-vertical-space');
|
|
25879
26030
|
var avgspace = 0;
|
|
@@ -25893,14 +26044,16 @@ const LsFieldDistribute = class {
|
|
|
25893
26044
|
const diffs = sorted.map(c => {
|
|
25894
26045
|
const newTop = buffer;
|
|
25895
26046
|
buffer = buffer + c.height + avgspace;
|
|
26047
|
+
const target = {
|
|
26048
|
+
...c,
|
|
26049
|
+
top: newTop
|
|
26050
|
+
};
|
|
25896
26051
|
return {
|
|
25897
26052
|
action: 'update',
|
|
25898
|
-
data: {
|
|
26053
|
+
data: oob(target) ? {
|
|
25899
26054
|
...c,
|
|
25900
|
-
top:
|
|
25901
|
-
|
|
25902
|
-
by: newTop + c.height,
|
|
25903
|
-
},
|
|
26055
|
+
top: c.pageDimensions.height - c.height
|
|
26056
|
+
} : target
|
|
25904
26057
|
};
|
|
25905
26058
|
});
|
|
25906
26059
|
this.dataItem = diffs.map(d => d.data);
|
|
@@ -25908,11 +26061,15 @@ const LsFieldDistribute = class {
|
|
|
25908
26061
|
this.update.emit(diffs);
|
|
25909
26062
|
}
|
|
25910
26063
|
render() {
|
|
25911
|
-
return (index.h(index.Host, { key: '
|
|
26064
|
+
return (index.h(index.Host, { key: '6b56e29ef6606020392f6345eeab99a79201ca39' }, index.h("div", { key: 'dd54237204e0a3cb3e5e7106fa3c217f1bd4783c', class: 'ls-field-properties-section' }, index.h("div", { key: '4211d0435d809c161875ec80ed36c8c3fe6e2d09', class: 'ls-field-properties-section-text' }, index.h("p", { key: '9f6bf5f1c684a17fb20fb5e8b44e2fd193e1c428', class: 'ls-field-properties-section-title' }, "Distribution"), index.h("p", { key: '7b8da49375a5bc764b3f910a8e625569911aa7b7', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), index.h("div", { key: '618ac328f320cd4299289fa072d62640964e6b5f', class: 'button-group' }, index.h("button", { key: 'ae5e15c9947486772f978e028b71d1f0901cb4ef', onClick: () => {
|
|
25912
26065
|
this.distributeVertical();
|
|
25913
|
-
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields vertically.", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '
|
|
26066
|
+
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields vertically.", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '30452ccd64d0e2a3d0ebcf7125a37abfa2996610', name: "field-distribute-vertically" })), index.h("button", { key: 'ced0890fec909ecd9d6c42426eeb5f291303b6b9', onClick: () => {
|
|
25914
26067
|
this.distributeHorizontal();
|
|
25915
|
-
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields horizontally.", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '
|
|
26068
|
+
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields horizontally.", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '8c4925974e0f22a0222f0e403a913a03bef27475', name: "field-distribute-horizontally" })))), index.h("div", { key: '6080eed10a0a7f7b8bc1566936df072ad67c5437', class: 'ls-field-properties-section' }, index.h("div", { key: '261f4b45dec8cc55bebe5aa9e58524f4077a756a', class: 'ls-field-properties-section-text' }, index.h("p", { key: '9702708febe79b8f20179dd90fb1b4d839876862', class: 'ls-field-properties-section-title' }, "Gap"), index.h("p", { key: '226c8c2508c1540aa20ac806522c57e6c374dc98', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), index.h("div", { key: '857724c65a60b251df274c41ef3167cb9ce39fa9', class: 'input-row' }, index.h("div", { key: 'e90426b59b908488a8d456fa2cd43984e0da5253', class: 'input-wrapper' }, index.h("ls-icon", { key: '1977d4be8956afc9de41ead5b6957e4fe3669c4f', id: "selectLeadingIcon", name: "field-distribute-vertically" }), index.h("input", { key: '2e61592539c3453cf345a2798f75e979ed17fa75', type: "number", class: 'has-leading-icon', id: "ls-fix-vertical-space", onChange: (e) => {
|
|
26069
|
+
this.gapVertical(parseInt(e.target.value));
|
|
26070
|
+
}, value: '', size: 4, min: 0, max: 9999 })), index.h("div", { key: '9384373f0bb26414c1375f8786624c7aff12ed36', class: 'input-wrapper' }, index.h("ls-icon", { key: '31e062fb69c324d2571df1d62e2ba3549245acc4', id: "selectLeadingIcon", name: "field-distribute-horizontally" }), index.h("input", { key: '20352f4de63216cc737f7cf469493381282bef32', type: "number", class: 'has-leading-icon', id: "ls-fix-horizontal-space", onChange: (e) => {
|
|
26071
|
+
this.gapHorizontal(parseInt(e.target.value));
|
|
26072
|
+
}, value: '', size: 4, min: 0, max: 9999 })))), index.h("slot", { key: '33b53eb78125407c869e7ae32eba9a23ac77001b' })));
|
|
25916
26073
|
}
|
|
25917
26074
|
};
|
|
25918
26075
|
LsFieldDistribute.style = lsFieldDistributeCss;
|
|
@@ -25924,6 +26081,7 @@ const LsFieldFooter = class {
|
|
|
25924
26081
|
index.registerInstance(this, hostRef);
|
|
25925
26082
|
this.mutate = index.createEvent(this, "mutate");
|
|
25926
26083
|
this.update = index.createEvent(this, "update");
|
|
26084
|
+
this.selectFields = index.createEvent(this, "selectFields");
|
|
25927
26085
|
}
|
|
25928
26086
|
/**
|
|
25929
26087
|
* The selected items information (as JSON).
|
|
@@ -25932,16 +26090,23 @@ const LsFieldFooter = class {
|
|
|
25932
26090
|
dataItem;
|
|
25933
26091
|
mutate;
|
|
25934
26092
|
update;
|
|
26093
|
+
selectFields;
|
|
25935
26094
|
deleteField = () => {
|
|
25936
26095
|
this.update.emit([{ action: 'delete', data: this.dataItem }]);
|
|
25937
26096
|
this.mutate.emit([{ action: 'delete', data: this.dataItem }]);
|
|
25938
26097
|
};
|
|
25939
26098
|
duplicateField = () => {
|
|
25940
|
-
|
|
25941
|
-
|
|
26099
|
+
const newItem = { ...this.dataItem, id: btoa('ele' + crypto.randomUUID()) };
|
|
26100
|
+
const newTop = this.dataItem.top + this.dataItem.height;
|
|
26101
|
+
if (newTop + this.dataItem.height < this.dataItem.pageDimensions.height) {
|
|
26102
|
+
newItem.top = newTop;
|
|
26103
|
+
}
|
|
26104
|
+
this.update.emit([{ action: 'create', data: newItem, select: 'clear' }]);
|
|
26105
|
+
this.mutate.emit([{ action: 'create', data: newItem }]);
|
|
26106
|
+
// this.selectFields.emit([newItem]);
|
|
25942
26107
|
};
|
|
25943
26108
|
render() {
|
|
25944
|
-
return (index.h(index.Host, { key: '
|
|
26109
|
+
return (index.h(index.Host, { key: '8cb31207e999dc865fb83cb472d77519cd957fdb' }, index.h("div", { key: 'cdb9ade290c3c1cbe613d5c2f04698d16cf2131e', class: 'button-footer' }, index.h("button", { key: '6f8db1780d9f860a7d3fa407355fde33cd48c11c', class: 'secondary', onClick: () => this.duplicateField() }, index.h("ls-icon", { key: '7b01415cc8b7be376445c97e4d2b24788afb3e3a', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: '0447898646ae162dd58ca46befcd468b39af2a1a', class: 'destructive', onClick: () => this.deleteField() }, index.h("ls-icon", { key: '65074ed995a57053602d665f036fd7280708860d', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: 'c786084652dfac87fad5ada66808496a3b1aa1dd' })));
|
|
25945
26110
|
}
|
|
25946
26111
|
};
|
|
25947
26112
|
LsFieldFooter.style = lsFieldFooterCss;
|
|
@@ -25958,6 +26123,17 @@ const LsFieldFormat = class {
|
|
|
25958
26123
|
mutate;
|
|
25959
26124
|
update;
|
|
25960
26125
|
get component() { return index.getElement(this); }
|
|
26126
|
+
// Send selection changes to bars and panels if in use.
|
|
26127
|
+
selectFieldsHandler() {
|
|
26128
|
+
if (this.dataItem.length > 0) {
|
|
26129
|
+
var selFont = this.component.shadowRoot.getElementById('ls-toolbar-font-select');
|
|
26130
|
+
if (selFont)
|
|
26131
|
+
selFont.value = this.dataItem[0].fontName;
|
|
26132
|
+
var selFontSize = this.component.shadowRoot.getElementById('ls-toolbar-font-size');
|
|
26133
|
+
if (selFontSize)
|
|
26134
|
+
selFontSize.value = this.dataItem[0].fontSize.toString();
|
|
26135
|
+
}
|
|
26136
|
+
}
|
|
25961
26137
|
// Send one or more mutations up the chain
|
|
25962
26138
|
// The source of the chain fires the mutation
|
|
25963
26139
|
alter(diff) {
|
|
@@ -25970,26 +26146,29 @@ const LsFieldFormat = class {
|
|
|
25970
26146
|
this.update.emit(diffs);
|
|
25971
26147
|
}
|
|
25972
26148
|
render() {
|
|
25973
|
-
return (index.h(index.Host, { key: '
|
|
26149
|
+
return (index.h(index.Host, { key: 'db560de41ff6135ddfc7cd24bee0428393612506' }, this.dataItem && this.dataItem.length > 1 && (index.h("div", { key: '4ea46f8e884a76f7683707f02fd175bbb841a7c4', class: 'ls-field-format-bar' }, index.h("div", { key: '8004f0b99e69619878b40a4f6a25ccffb76f64cc', class: " input-wrapper" }, index.h("ls-icon", { key: '8c2a1ecc4b2895217b1a5fbc06b765ee640f57f6', id: "selectLeadingIcon", name: "typeface" }), index.h("select", { key: 'e9d63ce0c9bf0f807f8843a546615663f6fe0810', id: 'ls-toolbar-font-select', onChange: input => {
|
|
25974
26150
|
this.alter({ fontName: input.target.value });
|
|
25975
|
-
}, class: 'has-leading-icon' }, index.h("option", { key: '
|
|
26151
|
+
}, class: 'has-leading-icon' }, index.h("option", { key: '57414b268d83f98ba372970a44b01e6564e3f204', value: "arial" }, "Arial"), index.h("option", { key: '0ea33343c8b48361730103a0f57b451ce9e2b082', value: "liberation sans" }, "Liberation Sans"), index.h("option", { key: '41594d03ec8bfb0d30374ab12f524ef083982ab0', value: "courier" }, "Courier"), index.h("option", { key: '266d0e85da5f80b73fedbadb2c1d049bff226036', value: "helvetica" }, "Helvetica"), index.h("option", { key: '75078832a92fb69d4e6dbe175f9fefb6ba7b36b8', value: "verdana" }, "Verdana")), index.h("ls-icon", { key: '82e48e668a00ab951a5ab0a8cc8f4704a19d7a08', id: "selectorIcon", name: "selector" })), index.h("div", { key: 'c017c1fb108b13f531efcf75264a4d7a4871d6e1', class: "input-wrapper" }, index.h("ls-icon", { key: '84bd33a74b0332b795d921b481f805a57ef2cfef', id: "selectLeadingIcon", name: "typesize" }), index.h("input", { key: 'f5e5ac7505bef63d6dc46ab6b6839bac1f8cd74b', id: 'ls-toolbar-font-size', width: "30", size: 4, class: 'has-leading-icon' })), index.h("div", { key: '9e662def8efd6e8bace2f279ea4b5b15a2fe94ca', class: 'button-group' }, index.h("button", { key: '3d4ad30a8ec41eb4a1d525eeb53bc8f8757f0c69', onClick: () => {
|
|
25976
26152
|
this.alter({ align: 'left' });
|
|
25977
|
-
} }, index.h("ls-icon", { key: '
|
|
26153
|
+
} }, index.h("ls-icon", { key: '338e02bcf2b1ee58167fb54a1cf0c168a45ab80d', name: "menu-alt-2" })), index.h("button", { key: '594f8af91b7a82b3c67c5e86e0d41307beeb2e71', onClick: () => {
|
|
25978
26154
|
this.alter({ align: 'center' });
|
|
25979
|
-
} }, index.h("ls-icon", { key: '
|
|
26155
|
+
} }, index.h("ls-icon", { key: '00eb405987271237bf93ec03df7b37cc0d1bdd53', name: "menu-alt-5" })), index.h("button", { key: 'a27269a2a51b8fe5bccc15f83628d68251006f70', onClick: () => {
|
|
25980
26156
|
this.alter({ align: 'right' });
|
|
25981
|
-
} }, index.h("ls-icon", { key: '
|
|
26157
|
+
} }, index.h("ls-icon", { key: 'b4403cf793697fa578ba4948339959bced93a936', name: "menu-alt-3" }))))), this.dataItem && this.dataItem.length === 1 && (index.h("div", { key: 'c71a0a7dbf4965db5083c2e31892c7d5376ee512', class: 'ls-field-format-bar' }, index.h("div", { key: 'c182854d46457e7fce5806042bb81ad2a9e2a0cd', class: "input-wrapper" }, index.h("ls-icon", { key: 'c37ea1cf1fea476864a869aac0ac69147d33e5b6', id: "selectorIcon", name: "selector" }), index.h("ls-icon", { key: '499ef3629da6bb05dc85bfad4e22f778a1df00a6', id: "selectLeadingIcon", name: "typeface" }), index.h("select", { key: 'fc9fbf6d744d2e255c252494a8666e461704cb63', id: 'ls-toolbar-font-select', onChange: input => {
|
|
25982
26158
|
this.alter({ fontName: input.target.value });
|
|
25983
|
-
}, class: 'has-leading-icon' }, index.h("option", { key: '
|
|
26159
|
+
}, class: 'has-leading-icon' }, index.h("option", { key: '40bb53d54f3b5f62ec744ae52bea51d7d5e3ffd1', value: "arial" }, "Arial"), index.h("option", { key: '0883cd66f56fd0ed76f48c36203cf4e50f5af980', value: "liberation sans" }, "Liberation Sans"), index.h("option", { key: '72187239ec4a7c296b5ab277d0f19253fc1ac0b6', value: "courier" }, "Courier"), index.h("option", { key: 'cd43e5e9858a58ed2a4f1b99924c5746c75c438d', value: "helvetica" }, "Helvetica"), index.h("option", { key: '3a20de6b6937525ae0ec6208888d3956d39bf598', value: "verdana" }, "Verdana"))), index.h("div", { key: '85d7ee0da79d69fcb24495bff20d6683670f0240', class: "input-wrapper" }, index.h("ls-icon", { key: '4c9ca20bf707f7a0a7dbebda0cdb7db36db0b289', id: "selectLeadingIcon", name: "typesize" }), index.h("input", { key: '2489d93094f314de173a1a466f0a4d13a0d34373', id: 'ls-toolbar-font-size', width: "30", size: 4, value: this.dataItem[0].fontSize, onChange: input => {
|
|
25984
26160
|
this.alter({ fontSize: input.target.value });
|
|
25985
|
-
}, class: 'has-leading-icon' })), index.h("div", { key: '
|
|
26161
|
+
}, class: 'has-leading-icon' })), index.h("div", { key: 'f8e5d4822460f11eca96b422a5e9d72191421afc', class: 'button-group' }, index.h("button", { key: '547af4eb1d1c0872dd1dbc3ca68eb92621476ae1', onClick: () => {
|
|
25986
26162
|
this.alter({ align: 'left' });
|
|
25987
|
-
} }, index.h("ls-icon", { key: '
|
|
26163
|
+
} }, index.h("ls-icon", { key: '8ba5aecb7fc976ef40aea370d00da31e333566c3', name: "menu-alt-2" })), index.h("button", { key: 'c1bd4b5bf403e2b88a0a2169b4123aa9d143aa22', onClick: () => {
|
|
25988
26164
|
this.alter({ align: 'center' });
|
|
25989
|
-
} }, index.h("ls-icon", { key: '
|
|
26165
|
+
} }, index.h("ls-icon", { key: '598a82c0edc4997d22d9decae45286877c43f136', name: "menu-alt-5" })), index.h("button", { key: '9f39d1337f27b0d74ef557836d4bcd86eb508696', onClick: () => {
|
|
25990
26166
|
this.alter({ align: 'right' });
|
|
25991
|
-
} }, index.h("ls-icon", { key: '
|
|
26167
|
+
} }, index.h("ls-icon", { key: 'c3518f2e0f2fa51592660a94a1fd49037422a8eb', name: "menu-alt-3" })))))));
|
|
25992
26168
|
}
|
|
26169
|
+
static get watchers() { return {
|
|
26170
|
+
"dataItem": ["selectFieldsHandler"]
|
|
26171
|
+
}; }
|
|
25993
26172
|
};
|
|
25994
26173
|
LsFieldFormat.style = lsFieldFormatCss;
|
|
25995
26174
|
|
|
@@ -26050,7 +26229,7 @@ const LsFieldPlacement = class {
|
|
|
26050
26229
|
return this.dataItem[0].pageDimensions[this.dataItem[0].page].height - this.dataItem[0].height;
|
|
26051
26230
|
}
|
|
26052
26231
|
render() {
|
|
26053
|
-
return (index.h(index.Host, { key: '
|
|
26232
|
+
return (index.h(index.Host, { key: 'c9dc68e4e38efb9c800c3162750fda48a679f24d' }, this.isMultiple(this.dataItem) && (index.h("div", { key: 'b8000d7a209d1b48483c567b9476d264df95cfb8', class: 'ls-field-properties-section' }, index.h("div", { key: '63b627e957a7cc4e498f4d647d7f097ab46447d0', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'b2b4d8cabf3b4136bfd8f24a971e37915f831130', class: 'ls-field-properties-section-title' }, "Location"), index.h("p", { key: '39036ea300acacb68af52a8a7f3c74bfab636ca9', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), index.h("div", { key: '406a42a6eba6512b4a0aab8af66c7f6c3dba7389', class: 'input-row' }, index.h("div", { key: '3c1f0599222c5105f345202a453dbe47459e3d08', class: 'input-wrapper' }, index.h("ls-icon", { key: '1b72436b61075143fcf71aa25c560dda48729b93', id: "selectLeadingIcon", name: "x-letter" }), index.h("input", { key: 'dbc911eb99b0fb11f618b853610ea61501f248e4', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", onChange: e => this.alter({ left: e.target.value }) })), index.h("div", { key: '6f805235eedb1ed975a1dd124ed306785cfbc738', class: 'input-wrapper' }, index.h("ls-icon", { key: 'a09edcec36df6f3541bb99744c1c03b9ac25809d', id: "selectLeadingIcon", name: "y" }), index.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) && (index.h("div", { key: 'e6aefc1f92c9052740ef11a7b68cd437e6cacb62', class: 'field-set' }, index.h("div", { key: '998c00036ff931841dbee535816d70cc1c13f341', class: 'ls-field-properties-section' }, index.h("div", { key: '859c5e6195da6aae05f212325cc887a9e6d98b5a', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'fe1e0776b11bc989a025c598910ab3881876de5a', class: 'ls-field-properties-section-title' }, "Alignment"), index.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.")), index.h("div", { key: '7a95a01f785eb50a9287457906a6889b7d6a3033', class: 'multi-button-group-row' }, index.h("div", { key: '504071b40528fd4399755a0af9b1a9ff4f279c5f', class: 'button-group' }, index.h("button", { key: 'efd3e2aa445a03fce18474c28a07fa7b8687a0c7', onClick: () => { this.alter({ left: 0 }); } }, index.h("ls-icon", { key: 'e11ff3e4dbe3d6677e117e9b683ee9840f870c26', name: "field-alignment-left" })), index.h("button", { key: '258b9fb3c78c835fd1e281df90e2984cfb08ef40', onClick: () => { this.alter({ left: this.center() }); } }, index.h("ls-icon", { key: 'f22b23fd59c5c74baeb42bf60614a06cb4483178', name: "field-alignment-centre" })), index.h("button", { key: '0b80020e7d7d775c48634d5cb5754f3edce44008', onClick: () => { this.alter({ left: this.right() }); } }, index.h("ls-icon", { key: 'd8ae12c4670eb1e6e1cf65cfa5c2a5e9f123c261', name: "field-alignment-right" }))), index.h("div", { key: '2519a99c8563e99c118a250da6747f2b6076de61', class: 'button-group' }, index.h("button", { key: '6d92cb364078ad0f33e3d22e8753d43d49c96663', onClick: () => this.alter({ top: 0 }) }, index.h("ls-icon", { key: '21468552b013129c3df35c09871ba9132fb91873', name: "field-alignment-top" })), index.h("button", { key: 'f040000cfca80f27a5e0bb6169a2111c71a8f1d4', onClick: () => { this.alter({ top: this.middle() }); } }, index.h("ls-icon", { key: 'b6c5d151dda019ea8d6d912a9fe2677646b7374b', name: "field-alignment-middle" })), index.h("button", { key: 'a9246e1659fe5e4e0fdd0a03ed5772408bbc7c02', onClick: () => { this.alter({ top: this.bottom() }); } }, index.h("ls-icon", { key: '1f7933380d6fbfc524cdebc7f86fa1f74ebf1395', name: "field-alignment-bottom" }))))), index.h("div", { key: '8bf879e9ce04d81f0f5b6df99566a41be51ed470', class: 'ls-field-properties-section' }, index.h("div", { key: 'a7fee5248dab7322aa5fef2ff2f1dcf91728ee33', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'b8eb47ce94ec9d00e776ac505686666c430aac61', class: 'ls-field-properties-section-title' }, "Location"), index.h("p", { key: '17f950776fa0207b9c66a6d6a911e67b1b66c86d', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), index.h("div", { key: 'da01c959b6265147ed9d90a050401f36228a283d', class: 'input-row' }, index.h("div", { key: '4dac7c60fdaa4493de9b42401dfacdb031c38a25', class: 'input-wrapper' }, index.h("ls-icon", { key: '11e8d9bacb897bb04f12b818448eeb039bbf7a47', id: "selectLeadingIcon", name: "x-letter" }), index.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 }) })), index.h("div", { key: 'f80ae951bd8f5e8e219aa480a4a16ff55f46d8ab', class: 'input-wrapper' }, index.h("ls-icon", { key: 'b86661a641e357a9b0867d65b4ccee62bea4e44e', id: "selectLeadingIcon", name: "y" }), index.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" })))), index.h("div", { key: '5a10ba1fa5515601b24343d0b1bf54a97ca29bb3', class: 'ls-field-properties-section' }, index.h("div", { key: '4b23811405359d00533810851c817939258e7e25', class: 'ls-field-properties-section-text' }, index.h("p", { key: '328d03492253d0aa58e1155b02fc29efb057c9f8', class: 'ls-field-properties-section-title' }, "Distribution"), index.h("p", { key: 'e2fecc82d431ee3756d502d45b143b900313ac15', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), index.h("div", { key: '2c8ba1520ce6aad2c6d96c97b00c3f54e6820b51', class: 'button-group' }, index.h("button", { key: '69187c8725b6b545ae9cb724b1deaf74e8d9cc88', disabled: true }, index.h("ls-icon", { key: 'c3d9cdccfb4fb61acd39d941f4d8a4cec449f075', name: "field-distribute-vertically" })), index.h("button", { key: '72bdb68d15e0e10233dd763c1428cad730a744c7', disabled: true }, index.h("ls-icon", { key: '1d07a51d8b73bf486f286bfc2d6adfa09038305d', name: "field-distribute-horizontally" })))), index.h("div", { key: '0776885c8c491e8717548a2e4287403a96488cc4', class: 'ls-field-properties-section' }, index.h("div", { key: '3ba1d1ea93a606de7b7a533326465e18487e5560', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'c31cba25f48fdcfe8883443ddecc82e7be4378f4', class: 'ls-field-properties-section-title' }, "Gap"), index.h("p", { key: '5f6998f21adb8803857a79e6da129022905a8c87', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), index.h("div", { key: '194a8a16e88493b7b4960fa7ab5ceba6e95b78d9', class: 'input-row' }, index.h("div", { key: '19862c6084d6fd681ce71bf0e5ba6c2141807d49', class: 'input-wrapper' }, index.h("ls-icon", { key: 'fc168bd1174daddec9d761b1d8692b69d37cf331', id: "selectLeadingIconDisabled", name: "field-distribute-vertically" }), index.h("input", { key: '9ce4fe9e1ea759eb867adde5d5360dd3534ebbd0', type: "number", value: "0", class: 'has-leading-icon', aria: "vertical-gap", id: "vertical-gap", disabled: true })), index.h("div", { key: '54eea8b43335fe796755f36f66ce6828479c137f', class: 'input-wrapper' }, index.h("ls-icon", { key: '9f94c55ced5a9d3fe43b472a7fcc9f9d7c830fad', id: "selectLeadingIconDisabled", name: "field-distribute-horizontally" }), index.h("input", { key: 'eb65a84f010fc9f5abfa8fd5fd369cdad2b9670d', type: "number", value: "0", class: 'has-leading-icon', aria: "horizontal-gap", id: "horizontal-gap", disabled: true }))))))));
|
|
26054
26233
|
}
|
|
26055
26234
|
};
|
|
26056
26235
|
LsFieldPlacement.style = lsFieldPlacementCss;
|
|
@@ -26093,7 +26272,7 @@ const LsFieldProperties = class {
|
|
|
26093
26272
|
return index.h("ls-field-properties-multiple", { dataItem: this.dataItem });
|
|
26094
26273
|
}
|
|
26095
26274
|
render() {
|
|
26096
|
-
return (index.h(index.Host, { key: '
|
|
26275
|
+
return (index.h(index.Host, { key: '343f2bcd85679323218afc9d2db60127c6f12189' }, this.dataItem && this.renderFields(), index.h("slot", { key: '455d1ddc501882eaf00e864174e5f867f3a96c13' })));
|
|
26097
26276
|
}
|
|
26098
26277
|
};
|
|
26099
26278
|
LsFieldProperties.style = lsFieldPropertiesCss;
|
|
@@ -26143,7 +26322,7 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
26143
26322
|
return '';
|
|
26144
26323
|
}
|
|
26145
26324
|
render() {
|
|
26146
|
-
return (index.h(index.Host, { key: '
|
|
26325
|
+
return (index.h(index.Host, { key: '24a4b2e3c09727279e41c27327baea962cdcb890' }, index.h("div", { key: 'd30d9fcbf06c72ffa6401c0eca4d0519478c831a', class: 'expand-fields-row', onClick: () => (this.expanded = !this.expanded) }, index.h("ls-icon", { key: 'b1efd67b7585db8fe2e411ef06a0b8441aa9e1b1', name: this.expanded ? 'expand' : 'collapse', size: "20", solid: true }), index.h("p", { key: 'd08068f7153f435dc3a2a9fa0615caddf00e8535' }, "Advanced Properties")), this.expanded && (index.h("div", { key: '59f04073ef608af89f5208be35a6641701449123', class: 'field-set' }, index.h("ls-props-section", { key: '15d9123478373bb244069627c33ea8033475f8d0', sectionTitle: "Field Order", sectionDescription: "Determines what order fields will be filled in by the user" }, index.h("input", { key: '79298a0173c339135c508cf9e2f9b0d74d2ce192', value: this.getValue('fieldOrder'), type: "text", placeholder: "eg. 1", onChange: e => this.alter({ fieldOrder: e.target.value }) })), index.h("ls-props-section", { key: '42a97b7f82ec0fba718f3f20858d9f006eef1c96', sectionTitle: "Ref. Name" }, index.h("input", { key: '597a243802fa0d9d14f9686dcb6c53c5bd60026f', value: this.getValue('link'), placeholder: "eg. checkbox group", onChange: e => this.alter({ link: e.target.value }) })), index.h("ls-props-section", { key: '8d07374186f3d10621fbb19e14d1c95eb79d3c61', sectionTitle: "Link Type", sectionDescription: "Determines in what way this field is linked to other fields" }, index.h("select", { key: '30b04fd609f6e301e090bec1b063ba06d821e768', onChange: e => this.alter({ linkType: e.target.value }), name: "Link Field", "aria-label": "Link Field" }, index.h("option", { key: '937e2ab3ee370623e22e3f2da8aff7aa9824cf2a', value: "0", selected: this.getValue('linkType') === '0' }, "None"), index.h("option", { key: 'b69255b06207a1748ff9ce54f380e21b0f87b456', value: "1", selected: this.getValue('linkType') === '1' }, "One of a group (e.g. select one checkbox)"), index.h("option", { key: 'b27aecfc5e9814aa5e1cd29154721decd98a907d', value: "2", selected: this.getValue('linkType') === '2' }, "Add to a total"), index.h("option", { key: '463e6556da3a8b81a7f9612830157b8e53491bd0', value: "3", selected: this.getValue('linkType') === '3' }, "Make this conditional upon..."))), index.h("ls-props-section", { key: '9056d087b11e42dd5cd4809b560989f77f67d6df', sectionTitle: "Link Value", sectionDescription: "Fields with the same Link Value will be linked together" }, index.h("input", { key: '3dcf0a33eecffe721849b4f3ea1c95cdbf6f545e', value: this.getValue('logicAction'), width: "30", placeholder: "eg. checkbox group", onChange: e => this.alter({ logicAction: e.target.value }) }))))));
|
|
26147
26326
|
}
|
|
26148
26327
|
};
|
|
26149
26328
|
LsFieldPropertiesAdvanced.style = lsFieldPropertiesAdvancedCss;
|
|
@@ -26156,7 +26335,7 @@ const LsFieldPropertiesAutosign = class {
|
|
|
26156
26335
|
}
|
|
26157
26336
|
dataItem;
|
|
26158
26337
|
render() {
|
|
26159
|
-
return (index.h(index.Host, { key: '
|
|
26338
|
+
return (index.h(index.Host, { key: 'df46931c369890f5abf0d25bd9fa8a8ad85ad68c' }, index.h("div", { key: '2f0d8d99305c136efd368327b8fd333435f068dd', class: "ls-field-properties-section" }, "Self Sign Field"), index.h("div", { key: 'bd70079d45b70bd3a2c18a148507757bee9f5973' }, "Label: ", index.h("input", { key: '108a5cc6158af4cb6a37c8f5678039bb354ec591', value: this.dataItem?.label, width: "30" })), index.h("ls-field-dimensions", { key: '3952b6ca0af4d444243f3c1d821ff72b74ad0100', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '95df9502c26ca62a8ad46f946742c84555e9c40a', dataItem: this.dataItem }), index.h("ls-field-footer", { key: '8394977015e41a56d4896d6810e96c4df13c2ae2', dataItem: this.dataItem }), index.h("slot", { key: 'c6974754a07f99372795a71d9ec370bcbd345a08' })));
|
|
26160
26339
|
}
|
|
26161
26340
|
};
|
|
26162
26341
|
LsFieldPropertiesAutosign.style = lsFieldPropertiesAutosignCss;
|
|
@@ -26176,7 +26355,7 @@ const LsFieldPropertiesContainer = class {
|
|
|
26176
26355
|
}
|
|
26177
26356
|
}
|
|
26178
26357
|
render() {
|
|
26179
|
-
return (index.h(index.Host, { key: '
|
|
26358
|
+
return (index.h(index.Host, { key: '0603644fbc51f89389ddc25dd5b1371730feaeef' }, this.tabs.length > 1 && (index.h("div", { key: '602100153a470e329145e69bd38d200cc62daa7b', class: 'tabs-container', style: { gridTemplateColumns: `repeat(${this.tabs.length}, 1fr)` } }, this.tabs.map(tab => (index.h("button", { class: tab === this.selectedTab ? 'ls-tab active' : 'ls-tab', onClick: () => (this.selectedTab = tab) }, tab))))), index.h("div", { key: '2e63a3beabdcbaa4e7b15651ecdd0c583229d44f', class: 'scrolling-container' }, index.h("slot", { key: '4e891478873ea12a5c91e7ba4e45cbfc1398f149', name: this.selectedTab }))));
|
|
26180
26359
|
}
|
|
26181
26360
|
};
|
|
26182
26361
|
LsFieldPropertiesContainer.style = lsFieldPropertiesContainerCss;
|
|
@@ -26189,7 +26368,7 @@ const LsFieldPropertiesDate = class {
|
|
|
26189
26368
|
}
|
|
26190
26369
|
dataItem;
|
|
26191
26370
|
render() {
|
|
26192
|
-
return (index.h(index.Host, { key: '
|
|
26371
|
+
return (index.h(index.Host, { key: '36e129289aa11e64e2bd75fd1309439b3a520457' }, index.h("ls-field-properties-container", { key: '809c2b386857b610fd9e871e6579eb84e7d9feeb', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: 'ac2c345789f21e600ecbd4f55d2b55801a8e5a80', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '2a1aa657a4f802f4ad34baac2031b71330f2ab82', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '6032597ec4c0a36c12b044acc27da1373ede3348', dataItem: this.dataItem })), index.h("div", { key: '2becaa0335ce5a94dddc5f7c8dde19821801c520', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '5af127cb268acdd44e08845339fb33b8656aca96', dataItem: this.dataItem })), index.h("div", { key: 'b35e78ff494db8e0688b7ce1c1a75f21ed176e13', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '067d2bdf244f537716d6916663357636bd551e00', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '53cbced3ec835b84dcd23c91ceef8345f6a040de', dataItem: this.dataItem })));
|
|
26193
26372
|
}
|
|
26194
26373
|
};
|
|
26195
26374
|
LsFieldPropertiesDate.style = lsFieldPropertiesDateCss;
|
|
@@ -26202,7 +26381,7 @@ const LsFieldPropertiesEmail = class {
|
|
|
26202
26381
|
}
|
|
26203
26382
|
dataItem;
|
|
26204
26383
|
render() {
|
|
26205
|
-
return (index.h(index.Host, { key: '
|
|
26384
|
+
return (index.h(index.Host, { key: '557c90379fcb802368e3cc9900aa1b5d795e89bb' }, index.h("ls-field-properties-container", { key: '9406fe9d01158e2cc360a97f597c633114654d1d', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '85399d641c1f731c77d67f1a83a0c9d8772e7baf', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '3e24119b85e872c3b706e6e99c107035a4cb6353', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '7d17afd248948968abe6358d1f96798f9ecd5f3c', dataItem: this.dataItem })), index.h("div", { key: 'bef58eca745bacad8969861db73655986135d952', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '075fd44bd77e2c3e5d380167530dc87b6b94cf8e', dataItem: this.dataItem })), index.h("div", { key: '421e4db23ff914c7d6b861dae38d92d115472a0c', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '7a281a15446c697d5a4da832ef09b970faf806a7', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '6a9a2c13c5692e15ae816c655f0a2e40f88445b8', dataItem: this.dataItem })));
|
|
26206
26385
|
}
|
|
26207
26386
|
};
|
|
26208
26387
|
LsFieldPropertiesEmail.style = lsFieldPropertiesEmailCss;
|
|
@@ -26215,7 +26394,7 @@ const LsFieldPropertiesFile = class {
|
|
|
26215
26394
|
}
|
|
26216
26395
|
dataItem;
|
|
26217
26396
|
render() {
|
|
26218
|
-
return (index.h(index.Host, { key: '
|
|
26397
|
+
return (index.h(index.Host, { key: 'bee6d5d0d1f6520b1784585b0ea4517faabdda70' }, index.h("ls-field-properties-container", { key: 'a37773f2fc761aac6ad779a83f833d7b268949c4', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '68bc9c76ab775a782330f02da0534b4b76f842f5', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '223ce26cb3a8afcbe12d356a346f682a07c4cbae', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '829a97eb8b576280cf9a8ce2d8497c51e293244b', dataItem: this.dataItem })), index.h("div", { key: '2ec54dd64c0303fd63cdeb9f9eb4263ac39e8fbe', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '111fd6c0372890cbce36e2dc22a991c8decc95d0', dataItem: this.dataItem })), index.h("div", { key: '425689aebfda1c89de75fe9471db3937053a2a1b', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '7bedf59453fb4083dfa2e1b1976fb139600d1325', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'bf6a97a46730aa15abd404a5b11737ece8acbfab', dataItem: this.dataItem })));
|
|
26219
26398
|
}
|
|
26220
26399
|
};
|
|
26221
26400
|
LsFieldPropertiesFile.style = lsFieldPropertiesFileCss;
|
|
@@ -26228,7 +26407,7 @@ const LsFieldPropertiesGeneral = class {
|
|
|
26228
26407
|
}
|
|
26229
26408
|
dataItem;
|
|
26230
26409
|
render() {
|
|
26231
|
-
return (index.h(index.Host, { key: '
|
|
26410
|
+
return (index.h(index.Host, { key: 'bae2503fd50b94ad99bfbb24f2abe5e6d5629e2e' }, index.h("ls-field-properties-container", { key: 'deceb2d1e04ab59a142a46cb9a14a8c38c82b093', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '4a7e524042efba3b2f03fc82598660dd78e3613e', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '820a9ed90d55c4138441442c08ee94c70ccd1d0c', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: 'c999ac86bed0fb6e220c48b7848e3ef7b4101d94', dataItem: this.dataItem })), index.h("div", { key: '1123d84abf45da1002b62f0d44227cb8361be661', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '4c4c2ccd243e44c36f5f9c4862a12c10e188c630', dataItem: this.dataItem })), index.h("div", { key: 'f4b01c607e46eaf9895aa6949d3fc7071c3da3ac', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '9f7628923c352061af77363ff4fff8391b955abf', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'ae2d65be67e5fc3c13dbffec1e7c1a63c902c394', dataItem: this.dataItem })));
|
|
26232
26411
|
}
|
|
26233
26412
|
};
|
|
26234
26413
|
LsFieldPropertiesGeneral.style = lsFieldPropertiesGeneralCss;
|
|
@@ -26241,7 +26420,7 @@ const LsFieldPropertiesImage = class {
|
|
|
26241
26420
|
}
|
|
26242
26421
|
dataItem;
|
|
26243
26422
|
render() {
|
|
26244
|
-
return (index.h(index.Host, { key: '
|
|
26423
|
+
return (index.h(index.Host, { key: 'ddf83beff21acc56fc0bcdea811f8c93294bace3' }, index.h("ls-field-properties-container", { key: '3249c39e164149e3d3c393ed40225bb06af75ab7', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '6aee8f7c5a58d52c53ea0a905b99436c286cbd67', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: 'b6265eb5dfb39f3283ffc2045b8460f95093771e', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: 'aec88fe3ca2d5fffaeb949a155d2f4dd56ba54b8', dataItem: this.dataItem })), index.h("div", { key: '57acc8a5f78004601c787655fe5f7ee9374f46e8', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: 'c75abe20033bfa8fa3526312b84bca714472df02', dataItem: this.dataItem })), index.h("div", { key: 'ace7da4cdf9f231fbbb42ca5ada0150f073049f7', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '5fc562a92d7948974eca672bd98a891b93ec299e', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '537e4d7fb85548e3d366af7fe7ae4eed044bb032', dataItem: this.dataItem })));
|
|
26245
26424
|
}
|
|
26246
26425
|
};
|
|
26247
26426
|
LsFieldPropertiesImage.style = lsFieldPropertiesImageCss;
|
|
@@ -26271,8 +26450,29 @@ const lsFieldPropertiesMultipleCss = ":host{display:flex;flex-direction:column;g
|
|
|
26271
26450
|
const LsFieldPropertiesMultiple = class {
|
|
26272
26451
|
constructor(hostRef) {
|
|
26273
26452
|
index.registerInstance(this, hostRef);
|
|
26453
|
+
this.mutate = index.createEvent(this, "mutate");
|
|
26454
|
+
this.update = index.createEvent(this, "update");
|
|
26274
26455
|
}
|
|
26275
26456
|
dataItem;
|
|
26457
|
+
mutate;
|
|
26458
|
+
update;
|
|
26459
|
+
// Send one or more mutations up the chain
|
|
26460
|
+
// The source of the chain fires the mutation
|
|
26461
|
+
// NOTE this alter is debounced to account for typing
|
|
26462
|
+
alter(diff) {
|
|
26463
|
+
this.dataItem = this.dataItem.map(item => ({ ...item, ...diff }));
|
|
26464
|
+
this.debounce(diff, 500);
|
|
26465
|
+
}
|
|
26466
|
+
labeltimer;
|
|
26467
|
+
debounce(diff, delay) {
|
|
26468
|
+
if (this.labeltimer)
|
|
26469
|
+
clearTimeout(this.labeltimer);
|
|
26470
|
+
this.labeltimer = setTimeout(() => {
|
|
26471
|
+
const evs = this.dataItem.map(item => ({ action: 'update', data: { ...item, ...diff } }));
|
|
26472
|
+
this.mutate.emit(evs);
|
|
26473
|
+
this.update.emit(evs);
|
|
26474
|
+
}, delay);
|
|
26475
|
+
}
|
|
26276
26476
|
allSignersSame = () => {
|
|
26277
26477
|
if (!this.dataItem || this.dataItem.length === 0)
|
|
26278
26478
|
return { isSame: true, signer: undefined };
|
|
@@ -26294,15 +26494,22 @@ const LsFieldPropertiesMultiple = class {
|
|
|
26294
26494
|
const allSame = this.dataItem.every(item => item.elementType === firstElementType);
|
|
26295
26495
|
return { isSame: allSame, elementType: allSame ? firstElementType : 'mixed' };
|
|
26296
26496
|
};
|
|
26497
|
+
allFieldsOptional = () => {
|
|
26498
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
26499
|
+
return { isSame: true, optional: false };
|
|
26500
|
+
const firstElementOptional = this.dataItem[0].optional;
|
|
26501
|
+
const allSame = this.dataItem.every(item => item.optional === firstElementOptional);
|
|
26502
|
+
return { isSame: allSame, optional: allSame ? firstElementOptional : false };
|
|
26503
|
+
};
|
|
26297
26504
|
render() {
|
|
26298
|
-
return (index.h(index.Host, { key: '
|
|
26505
|
+
return (index.h(index.Host, { key: 'f476c81a545cfa5d49517c70cfe8f12ecbf22cd7' }, index.h("ls-field-properties-container", { key: '1a8fdf264a6d8e7eb234f64ff2903b87746c91e2', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '415c57349a6ad5305b558483b65d1e3e80c4cfc1', class: 'field-set', slot: "content" }, index.h("div", { key: '3a29f3fbb697f06743f796d4e73d52af64926b40', class: 'ls-field-properties-section' }, index.h("div", { key: 'cb368cfd54d6dc7a391f3c8583f7c97ac2d03639', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'c244f2e88969792b29a8107c75fd4ec092639185', class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { key: 'af171d75c8f0e2e568c4ab01535d49eac53630f3', class: 'ls-field-properties-section-description' }, "The Fields you currently have selected")), index.h("div", { key: '3afaaa697c6e4b381854bc10eb177b7d3b47d6c1', class: 'ls-field-type-wrapper', style: {
|
|
26299
26506
|
border: `1px dashed ${defaultRolePalette[this.allSignersSame().signer % 100].s30}`,
|
|
26300
26507
|
background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
|
|
26301
|
-
} }, index.h("div", { key: '
|
|
26508
|
+
} }, index.h("div", { key: 'd468dc7f2d3e3c626348a137fa43aba2c965cba6', class: 'ls-field-type-inner' }, index.h("div", { key: '2047648d2b18974e2ed65b94ffbf6aa397e84177', class: 'ls-field-type-icon', style: {
|
|
26302
26509
|
border: `1px solid ${defaultRolePalette[this.allSignersSame().signer % 100].s60}`,
|
|
26303
26510
|
color: defaultRolePalette[this.allSignersSame().signer % 100].s60,
|
|
26304
26511
|
background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
|
|
26305
|
-
} }, index.h("ls-icon", { key: '
|
|
26512
|
+
} }, index.h("ls-icon", { key: 'a3d57f28b6cd6cf372da48f53892e681a9a819cc', name: getFieldIcon(this.allElementsSame().elementType), size: "20" })), index.h("p", { key: '594dc697a1f908fd41e202588a7cf799e6ba201e', class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), index.h("div", { key: 'c4c9baafa20cf8a7aea384ced5f41d04ec6dce17', class: 'ls-field-properties-section row' }, index.h("div", { key: '6c4e47a9e34898860fdabdf0bd7849a1de49c797', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'b07c560ea096a8966074c1b55b97cca62c96f404', class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", { key: '506d4aba1e3cee00dc291a4a3e6a90328f366526', onValueChange: (ev) => this.alter({ optional: !ev.detail }), checked: !this.allFieldsOptional().optional, indeterminate: this.allFieldsOptional().isSame === false })), index.h("div", { key: '9a872405a537b1bdbbd69cd24344393141bb6759', class: 'ls-field-properties-section' }, index.h("div", { key: 'f61b198abd3a21adaf3984ce1e0f1e234176f600', class: 'ls-field-properties-section-text' }, index.h("p", { key: '751dbeb8d45c04b182e83327c9514840c9e8f370', class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { key: '3b87f243c3a86c1c52d8604ec3bd9411e11309ea', class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { key: 'faaa4bb9f9ea893eca15a4034cd582afd49a2965', value: this.allLabelsSame().label, onInput: (e) => this.alter({ label: e.target.value }), width: "30", placeholder: "eg. Sign Here" }))), index.h("div", { key: '456511585e43608a89e7d5331eb027ab71d08e98', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '0aaafaf40ce37451f6f9ea459ccd9e07e7bedc9f', dataItem: this.dataItem }), index.h("ls-field-size", { key: 'b1aa99293901f0ade2647688bb0ea3cb7c681850', dataItem: this.dataItem })), index.h("div", { key: 'e2901a24e8a7994169e4d146a7c3c55040802398', class: 'field-set', slot: "placement" }, index.h("ls-field-alignment", { key: '0e26ff3cdde4a50f3d6d1d326d76219bf5bdc93b', dataItem: this.dataItem }), index.h("ls-field-placement", { key: 'f20e953cec0564b6b013d4e560f2532b29c50952', dataItem: this.dataItem }), index.h("ls-field-distribute", { key: '8eb4e16583a4bd3b550178f83038067a3a8412e5', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'b5b1b4bfaef25effda90fb0a6b9ee00e9d950d8c' }), index.h("slot", { key: '57f76abbe5d2e9592d88c53f66d20b074d251ac6' })));
|
|
26306
26513
|
}
|
|
26307
26514
|
};
|
|
26308
26515
|
LsFieldPropertiesMultiple.style = lsFieldPropertiesMultipleCss;
|
|
@@ -26315,7 +26522,7 @@ const LsFieldPropertiesNumber = class {
|
|
|
26315
26522
|
}
|
|
26316
26523
|
dataItem;
|
|
26317
26524
|
render() {
|
|
26318
|
-
return (index.h(index.Host, { key: '
|
|
26525
|
+
return (index.h(index.Host, { key: '68ff2165b13ccc43d6a685a7d6d42396f06b925a' }, index.h("ls-field-properties-container", { key: 'f16402f8dd1ee0e98a346b1347c938baab354846', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '2b715391b5d40c3f040ff171ae2da91b4f8cffa1', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '32846c02fcc7f55e73a432ab1cd0516ff1c23554', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '2e2b0e88c815e0e18935793fa1bb0d33389492b8', dataItem: this.dataItem })), index.h("div", { key: '60b2074337012d34fa809c772f9fde6deb0f3ff7', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: 'bc3785f75bbc19e32b51a8a904f2b2a350c10a69', dataItem: this.dataItem })), index.h("div", { key: '16f27469b5eb8a5695305b145dd0a63de95bbc4c', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '26219c3f7913f5c0c962fe7faf8739de119a02c6', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'c83c7dda209e25158808a8f1c9d37f5eaac1ddbe', dataItem: this.dataItem })));
|
|
26319
26526
|
}
|
|
26320
26527
|
};
|
|
26321
26528
|
LsFieldPropertiesNumber.style = lsFieldPropertiesNumberCss;
|
|
@@ -26328,7 +26535,7 @@ const LsFieldPropertiesSignature = class {
|
|
|
26328
26535
|
}
|
|
26329
26536
|
dataItem;
|
|
26330
26537
|
render() {
|
|
26331
|
-
return (index.h(index.Host, { key: '
|
|
26538
|
+
return (index.h(index.Host, { key: '62a9fd4dd5535ce5bcc94fe11cb07020fe391742' }, index.h("ls-field-properties-container", { key: 'b15a383a7c51769a9c52266c91a47f65c0e85fcb', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: 'cea89d50cb383f0468553718fe3b11c2116de837', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: 'f3043200e40ef623e0686a88ee3bad50195837d3', dataItem: this.dataItem, showValidationTypes: false }), index.h("ls-field-properties-advanced", { key: '4df0fa78e6b9da356e25f0e6a7192b094fcf8ff3', dataItem: this.dataItem })), index.h("div", { key: '331a919f4521b1995a9c5e3200587b50ce34c64d', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '816c2f009afb374398640cd08a218523704a3abf', dataItem: this.dataItem })), index.h("div", { key: '00abad768142abdca45ad3b490cef45f40ff339e', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: 'ec7710454b70120172308d1c5abafd3a1f307192', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '0c27bcb56616a77d26017e6541bbf5a21d36a4b0', dataItem: this.dataItem })));
|
|
26332
26539
|
}
|
|
26333
26540
|
};
|
|
26334
26541
|
LsFieldPropertiesSignature.style = lsFieldPropertiesSignatureCss;
|
|
@@ -26341,7 +26548,7 @@ const LsFieldPropertiesText = class {
|
|
|
26341
26548
|
}
|
|
26342
26549
|
dataItem;
|
|
26343
26550
|
render() {
|
|
26344
|
-
return (index.h(index.Host, { key: '
|
|
26551
|
+
return (index.h(index.Host, { key: '42c376824ac0c4987319bbcd556420351c8c7abe' }, index.h("ls-field-properties-container", { key: '2d341f1daef2b8c4cfbf1b6da7613aee0ebc6214', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '11379672c5f10a25793bb1845c62d3d9f3cca9fb', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: 'f8d31ed0dadefadf09b01bec1c6b06c3294662bd', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: 'e48c9bfe2abbcbd7fe4075a14741a2e17b946994', dataItem: this.dataItem })), index.h("div", { key: '23b04bd4d66018f4ec4e9c727cd4e55ad36663e0', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '03f0589f370fd86319a91a38e9ab85e3b038319f', dataItem: this.dataItem })), index.h("div", { key: 'f9aee3ec9536ba05ea963e46e7575c254de7b154', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '088523bd2b8f06eebe6c969b7a846cbfee31fe5c', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'd290dea659d37cd2cdad5dd5f03e71d118db9473', dataItem: this.dataItem })));
|
|
26345
26552
|
}
|
|
26346
26553
|
};
|
|
26347
26554
|
LsFieldPropertiesText.style = lsFieldPropertiesTextCss;
|
|
@@ -26368,7 +26575,7 @@ const LsFieldSize = class {
|
|
|
26368
26575
|
this.update.emit(diffs);
|
|
26369
26576
|
}
|
|
26370
26577
|
render() {
|
|
26371
|
-
return (index.h(index.Host, { key: '
|
|
26578
|
+
return (index.h(index.Host, { key: '3512b35c1a8bdace79f2196765e2892387a082ab' }, index.h("div", { key: 'b0535c73b7ad10b7a41d09fc3e97847802c04ea7', class: 'ls-field-properties-section' }, index.h("div", { key: '5f938c1b6f72720657fd06337cff7b2cfb7e0b18', class: 'ls-field-properties-section-text' }, index.h("p", { key: '2285e0fc40f37ac0e63f145f5111825371677114', class: 'ls-field-properties-section-title' }, "Scale and Resize"), index.h("p", { key: '79dece2d13f38f5f6473fd82a19e5574ae2152b1', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), index.h("div", { key: '0ab5908841094a3ebc9053a4047608fdb1ceb5ea', class: 'button-group' }, index.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" }, index.h("ls-icon", { key: '2f8262c4497b399c1f7b3331c83cbdd2da9bf7c7', name: "field-scale" })), index.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" }, index.h("ls-icon", { key: 'c00a7c60775de17e949063175e15af84d2d53324', name: "field-match-width" })), index.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" }, index.h("ls-icon", { key: '69e4ad1909f9c3cf82dd37f96d6a36d4508a0ab8', name: "field-match-height" })))), index.h("slot", { key: 'de626a2771e6e5f24f9e1a445789f314223a4479' })));
|
|
26372
26579
|
}
|
|
26373
26580
|
};
|
|
26374
26581
|
LsFieldSize.style = lsFieldSizeCss;
|
|
@@ -26403,74 +26610,18 @@ const LsFieldTypeDisplay = class {
|
|
|
26403
26610
|
fieldType = 'signature';
|
|
26404
26611
|
render() {
|
|
26405
26612
|
const color = defaultRolePalette[this.assignee % 100];
|
|
26406
|
-
return (index.h(index.Host, { key: '
|
|
26613
|
+
return (index.h(index.Host, { key: '73dd27b05de7a8477b497ee5bb79af0ca31789b2', class: 'ls-field-type-wrapper', style: {
|
|
26407
26614
|
border: `1px dashed ${color.s30}`,
|
|
26408
26615
|
background: color.s10,
|
|
26409
|
-
} }, index.h("div", { key: '
|
|
26616
|
+
} }, index.h("div", { key: '445d44e52106148630629b0fafab019422f1a05d', class: 'ls-field-type-inner' }, index.h("div", { key: '2abde211fce10f59df054f70bcfd5f7cd21cd624', class: 'ls-field-type-icon', style: {
|
|
26410
26617
|
border: `1px solid ${color.s60}`,
|
|
26411
26618
|
color: color.s60,
|
|
26412
26619
|
background: color.s10,
|
|
26413
|
-
} }, index.h("ls-icon", { key: '
|
|
26620
|
+
} }, index.h("ls-icon", { key: 'e521264b748012a137d3246f9d539e9e93704d4c', name: getFieldIcon(this.fieldType), size: "20" })), index.h("p", { key: '3da29fd61c972c9cee454bccd69d70736fe22a2a', class: 'ls-field-type-name' }, getFieldLabel(this.fieldType)))));
|
|
26414
26621
|
}
|
|
26415
26622
|
};
|
|
26416
26623
|
LsFieldTypeDisplay.style = lsFieldTypeDisplayCss;
|
|
26417
26624
|
|
|
26418
|
-
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";
|
|
26419
|
-
|
|
26420
|
-
const LsFormfield = class {
|
|
26421
|
-
constructor(hostRef) {
|
|
26422
|
-
index.registerInstance(this, hostRef);
|
|
26423
|
-
this.valueChange = index.createEvent(this, "valueChange");
|
|
26424
|
-
}
|
|
26425
|
-
name;
|
|
26426
|
-
fieldId;
|
|
26427
|
-
label;
|
|
26428
|
-
as = 'text';
|
|
26429
|
-
value;
|
|
26430
|
-
placeholder;
|
|
26431
|
-
descriptionText;
|
|
26432
|
-
errorText;
|
|
26433
|
-
aria;
|
|
26434
|
-
inputRef;
|
|
26435
|
-
infoTooltipText;
|
|
26436
|
-
hoverTooltipText;
|
|
26437
|
-
disabled;
|
|
26438
|
-
extraLabel = 'none';
|
|
26439
|
-
required;
|
|
26440
|
-
valid;
|
|
26441
|
-
dirty;
|
|
26442
|
-
count;
|
|
26443
|
-
countMax;
|
|
26444
|
-
buttonClick;
|
|
26445
|
-
buttonIcon;
|
|
26446
|
-
labelIcon;
|
|
26447
|
-
fieldIcon;
|
|
26448
|
-
valueChange;
|
|
26449
|
-
changeHandler(value) {
|
|
26450
|
-
this.valueChange.emit(value);
|
|
26451
|
-
}
|
|
26452
|
-
_value;
|
|
26453
|
-
valueWatcher(newValue) {
|
|
26454
|
-
this._value = newValue;
|
|
26455
|
-
console.log(newValue);
|
|
26456
|
-
}
|
|
26457
|
-
componentWillLoad() {
|
|
26458
|
-
this.valueWatcher(this?.value?.toString());
|
|
26459
|
-
}
|
|
26460
|
-
render() {
|
|
26461
|
-
const { name, fieldId, label, as, value, placeholder, descriptionText, errorText, aria, infoTooltipText, disabled, extraLabel, valid, dirty, count, countMax, buttonClick, buttonIcon, fieldIcon, labelIcon, } = this;
|
|
26462
|
-
const countClass = value && value.toString().length > countMax ? 'formfield-count-error' : 'formfield-count';
|
|
26463
|
-
return (index.h("host", { key: 'e5f6824f9df6531776c52480132206b43012ca0b', class: "formfield-host" }, label?.length > 1 || extraLabel !== 'none' && (index.h("div", { key: '3d3fc82daac2f290ec293ddc16a543db641b499b', class: "formfield-top-elements" }, index.h("div", { key: '6429a6fce7eac8e3265d8f1ec8796dd6fe523bff', class: "formfield-left-side" }, labelIcon && index.h("ls-icon", { key: '5959bf93a9a5425036954e6cf09af87c65e45b46', name: labelIcon }), index.h("label", { key: 'f35970243533ed0e33d5eeca905e685fc0f16ec2', htmlFor: name, class: "formfield-label" }, label), infoTooltipText && index.h("ls-icon", { key: 'ed6e965221f7514d35ac42dd50919a915afacc0e', name: 'information-circle' })), extraLabel === 'optional' ? (index.h("ls-label", { text: "Optional", colour: "gray", type: "low" })) : extraLabel === 'required' ? (index.h("ls-label", { text: "Required", colour: "gray", type: "low" })) : (''))), as === 'text' ? (index.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' ? (index.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 }, index.h("slot", null))) : as === 'radio' ? (index.h("ls-radio-input", { radioId: label, label: value?.toString(), icon: fieldIcon, name: name, disabled: disabled })) : as === 'textarea' ? (index.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' ? (index.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' ? (index.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' ? (index.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 })) : (index.h("p", null, "placeholder")), errorText ||
|
|
26464
|
-
count ||
|
|
26465
|
-
countMax ||
|
|
26466
|
-
(descriptionText && (index.h("div", { key: '2ea304d4e81dae4788591d2e7aa5a39b184c6bb5', class: "formfield-bottom-elements" }, errorText && !valid ? index.h("p", { class: "formfield-error-text" }, errorText) : descriptionText ? index.h("p", { class: "formfield-description-text" }, descriptionText) : '', count && (index.h("div", { key: '873c047ac0043308946de56ee48656e7fab39125', class: "formfield-count-container" }, index.h("p", { key: '023f16d83231af14e88a60f7e4721dae5488a6ce', class: countClass }, value?.toString()?.length), countMax > 0 && (index.h("div", { key: '08421f716aaa649f04d3816cfba315e021aa6b1c', class: countClass }, index.h("p", { key: '4592374bf088582c7935e7613cc1030ed4f39b5d' }, "/"), index.h("p", { key: 'ee2e23debbb907cdd956a946c00bd63de2f35513' }, countMax))))))))));
|
|
26467
|
-
}
|
|
26468
|
-
static get watchers() { return {
|
|
26469
|
-
"value": ["valueWatcher"]
|
|
26470
|
-
}; }
|
|
26471
|
-
};
|
|
26472
|
-
LsFormfield.style = lsFormfieldCss;
|
|
26473
|
-
|
|
26474
26625
|
const html = String.raw;
|
|
26475
26626
|
const icons = [
|
|
26476
26627
|
// Hero Icons
|
|
@@ -33495,7 +33646,7 @@ const LsIcon = class {
|
|
|
33495
33646
|
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.');
|
|
33496
33647
|
}
|
|
33497
33648
|
render() {
|
|
33498
|
-
return (index.h("host", { key: '
|
|
33649
|
+
return (index.h("host", { key: '22d3c71a636675912fa1ca782a1603f01249c86b' }, icons
|
|
33499
33650
|
?.filter((icon) => icon.name === this.name)
|
|
33500
33651
|
?.map((icon) => (index.h("div", { key: icon?.name, class: 'iconContainer', style: {
|
|
33501
33652
|
height: `${this.size}px`,
|
|
@@ -33514,56 +33665,91 @@ const LsInputWrapper = class {
|
|
|
33514
33665
|
leadingIcon;
|
|
33515
33666
|
select = false;
|
|
33516
33667
|
render() {
|
|
33517
|
-
return (index.h(index.Host, { key: '
|
|
33668
|
+
return (index.h(index.Host, { key: '27d8e1cd87ced072110e49eec513181b4b2a31fc' }, index.h("ls-icon", { key: 'f98e5fd1998af46901c8b4443d96ca3eacd9670b', id: "selectLeadingIcon", name: this.leadingIcon }), this.select && index.h("ls-icon", { key: '9472fb33b2df28d13ffe481fe451f2a9490e52b8', id: "selectorIcon", name: "selector" }), index.h("slot", { key: '99e95818e3c8f37ae3533d1b8bff73426324b5e1' })));
|
|
33518
33669
|
}
|
|
33519
33670
|
};
|
|
33520
33671
|
LsInputWrapper.style = lsInputWrapperCss;
|
|
33521
33672
|
|
|
33522
|
-
|
|
33523
|
-
|
|
33524
|
-
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";
|
|
33673
|
+
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)}";
|
|
33525
33674
|
|
|
33526
|
-
const
|
|
33675
|
+
const LsPageLoader = class {
|
|
33527
33676
|
constructor(hostRef) {
|
|
33528
33677
|
index.registerInstance(this, hostRef);
|
|
33529
33678
|
}
|
|
33530
|
-
type = 'ls';
|
|
33531
|
-
name;
|
|
33532
|
-
value = 0;
|
|
33533
|
-
placeholder;
|
|
33534
|
-
aria;
|
|
33535
|
-
inputRef;
|
|
33536
|
-
disabled;
|
|
33537
|
-
required;
|
|
33538
|
-
valid;
|
|
33539
|
-
dirty;
|
|
33540
|
-
countMax;
|
|
33541
|
-
buttonClick;
|
|
33542
|
-
buttonIcon;
|
|
33543
|
-
fieldIcon;
|
|
33544
|
-
handleChange = (event) => {
|
|
33545
|
-
this.value = event.target.value;
|
|
33546
|
-
};
|
|
33547
|
-
handlePlus = () => {
|
|
33548
|
-
this.value = this.value + 1;
|
|
33549
|
-
};
|
|
33550
|
-
handleMinus = () => {
|
|
33551
|
-
this.value = this.value - 1;
|
|
33552
|
-
};
|
|
33553
33679
|
render() {
|
|
33554
|
-
|
|
33555
|
-
|
|
33556
|
-
|
|
33557
|
-
:
|
|
33558
|
-
|
|
33559
|
-
|
|
33560
|
-
|
|
33561
|
-
|
|
33562
|
-
|
|
33563
|
-
|
|
33680
|
+
return (index.h(index.Host, { key: 'b8a22c0a50aa3264a4a8dc932601b7ad65321b40' }, index.h("div", { key: 'be65314af39c0d5d09bc8d66c2dc301d64c1d4da', class: 'loading-animation' }, index.h("svg", { key: 'b7175fdef641e5f00729f0949b2c4f013350a596', class: "block w-full h-full", fill: "none", preserveAspectRatio: "none", viewBox: "0 0 20 20" }, index.h("g", { key: '1e05cfca9a6c9a454fa0dc1c9f06f3f108ca48d4', id: "Icon/solid/logo" }, index.h("g", { key: 'ffc0feabedc0d90d0c072bdf56fa6b16c73cd590', id: "Icon" }, index.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" }), index.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" }), index.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" })))), index.h("style", { key: 'c58faea0d359c6b1d3fb00ff6944c9952dacbe09' }, `
|
|
33681
|
+
@keyframes classic-sequential-back {
|
|
33682
|
+
0% { opacity: 0; transform: scale(0.3); }
|
|
33683
|
+
2% { opacity: 0.3; transform: scale(0.5); }
|
|
33684
|
+
4% { opacity: 0.6; transform: scale(0.7); }
|
|
33685
|
+
6% { opacity: 0.8; transform: scale(0.85); }
|
|
33686
|
+
8% { opacity: 1; transform: scale(1); }
|
|
33687
|
+
22% { opacity: 1; transform: scale(1); }
|
|
33688
|
+
55% { opacity: 1; transform: scale(1); }
|
|
33689
|
+
64% { opacity: 1; transform: scale(1); }
|
|
33690
|
+
65% { opacity: 0.9; transform: scale(0.95); }
|
|
33691
|
+
66.2% { opacity: 0.75; transform: scale(0.88); }
|
|
33692
|
+
67.2% { opacity: 0.6; transform: scale(0.8); }
|
|
33693
|
+
68% { opacity: 0.4; transform: scale(0.7); }
|
|
33694
|
+
68.8% { opacity: 0.25; transform: scale(0.6); }
|
|
33695
|
+
69.5% { opacity: 0.1; transform: scale(0.45); }
|
|
33696
|
+
70% { opacity: 0.05; transform: scale(0.35); }
|
|
33697
|
+
71% { opacity: 0; transform: scale(0.3); }
|
|
33698
|
+
100% { opacity: 0; transform: scale(0.3); }
|
|
33699
|
+
}
|
|
33700
|
+
|
|
33701
|
+
@keyframes classic-sequential-middle {
|
|
33702
|
+
0%, 16% { opacity: 0; transform: scale(0.3); }
|
|
33703
|
+
18% { opacity: 0.3; transform: scale(0.5); }
|
|
33704
|
+
20% { opacity: 0.6; transform: scale(0.7); }
|
|
33705
|
+
22% { opacity: 0.8; transform: scale(0.85); }
|
|
33706
|
+
24% { opacity: 1; transform: scale(1); }
|
|
33707
|
+
36%, 65%, 70% { opacity: 1; transform: scale(1); }
|
|
33708
|
+
71% { opacity: 0.9; transform: scale(0.95); }
|
|
33709
|
+
72.2% { opacity: 0.75; transform: scale(0.88); }
|
|
33710
|
+
73.2% { opacity: 0.6; transform: scale(0.8); }
|
|
33711
|
+
74% { opacity: 0.4; transform: scale(0.7); }
|
|
33712
|
+
74.8% { opacity: 0.25; transform: scale(0.6); }
|
|
33713
|
+
75.5% { opacity: 0.1; transform: scale(0.45); }
|
|
33714
|
+
76% { opacity: 0.05; transform: scale(0.35); }
|
|
33715
|
+
77%, 100% { opacity: 0; transform: scale(0.3); }
|
|
33716
|
+
}
|
|
33717
|
+
|
|
33718
|
+
@keyframes classic-sequential-front {
|
|
33719
|
+
0%, 32% { opacity: 0; transform: scale(0.3); }
|
|
33720
|
+
34% { opacity: 0.3; transform: scale(0.5); }
|
|
33721
|
+
36% { opacity: 0.6; transform: scale(0.7); }
|
|
33722
|
+
38% { opacity: 0.8; transform: scale(0.85); }
|
|
33723
|
+
40% { opacity: 1; transform: scale(1); }
|
|
33724
|
+
60%, 76% { opacity: 1; transform: scale(1); }
|
|
33725
|
+
77% { opacity: 0.9; transform: scale(0.95); }
|
|
33726
|
+
78.2% { opacity: 0.75; transform: scale(0.88); }
|
|
33727
|
+
79.2% { opacity: 0.6; transform: scale(0.8); }
|
|
33728
|
+
80% { opacity: 0.4; transform: scale(0.7); }
|
|
33729
|
+
80.8% { opacity: 0.25; transform: scale(0.6); }
|
|
33730
|
+
81.5% { opacity: 0.1; transform: scale(0.45); }
|
|
33731
|
+
82% { opacity: 0.05; transform: scale(0.35); }
|
|
33732
|
+
83%, 100% { opacity: 0; transform: scale(0.3); }
|
|
33733
|
+
}
|
|
33734
|
+
|
|
33735
|
+
.classic-sequential-back {
|
|
33736
|
+
animation: classic-sequential-back 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
|
|
33737
|
+
transform-origin: center;
|
|
33738
|
+
}
|
|
33739
|
+
|
|
33740
|
+
.classic-sequential-middle {
|
|
33741
|
+
animation: classic-sequential-middle 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
|
|
33742
|
+
transform-origin: center;
|
|
33743
|
+
}
|
|
33744
|
+
|
|
33745
|
+
.classic-sequential-front {
|
|
33746
|
+
animation: classic-sequential-front 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
|
|
33747
|
+
transform-origin: center;
|
|
33748
|
+
}
|
|
33749
|
+
`)), index.h("slot", { key: '14a81aa90b119d816fc657f6a46f57ae94d0e4f2' })));
|
|
33564
33750
|
}
|
|
33565
33751
|
};
|
|
33566
|
-
|
|
33752
|
+
LsPageLoader.style = lsPageLoaderCss;
|
|
33567
33753
|
|
|
33568
33754
|
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)}";
|
|
33569
33755
|
|
|
@@ -33618,36 +33804,36 @@ const LsParticipantCard = class {
|
|
|
33618
33804
|
render() {
|
|
33619
33805
|
const participantFields = this.template.elementConnection.templateElements.filter(f => f.signer === this.signer.signerIndex) || [];
|
|
33620
33806
|
const child = this.template.roles.find(r => r.signerParent === this.signer.id);
|
|
33621
|
-
return (index.h(index.Host, { key: '
|
|
33807
|
+
return (index.h(index.Host, { key: 'e948d8be468f8e81b0ea752b8c37aef7e83d5227' }, index.h("div", { key: '445aea342b4e4397bc4e6eb8c20e171bd853d59f', class: 'participant-card' + (child ? ' top-card' : this.signer?.signerParent ? ' bottom-card' : ' full-card'), style: {
|
|
33622
33808
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s10,
|
|
33623
33809
|
border: `1px solid ${defaultRolePalette[this.signer?.signerIndex % 100].s60}`,
|
|
33624
33810
|
marginTop: this.signer.roleType === 'WITNESS' ? '-0.813rem' : '0',
|
|
33625
33811
|
}, onMouseEnter: e => e.currentTarget.querySelector('.button-set')?.classList.remove('hidden'), onMouseLeave: e => e.currentTarget.querySelector('.button-set')?.classList.add('hidden'), onDblClick: () => {
|
|
33626
33812
|
this.editable = true;
|
|
33627
|
-
} }, index.h("div", { key: '
|
|
33813
|
+
} }, index.h("div", { key: 'b9e87febf6217ffb40c228e67dccc59a4e0a79ea', class: 'participant-card-inner' }, index.h("div", { key: '930e5dd57d2dba41214d4ae86b4520aec572e92a', class: 'participant-card-top-items' }, index.h("div", { key: '5cea99ed2038b51441e34c3be9510f7163b27e56', class: 'role-label', style: {
|
|
33628
33814
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
33629
33815
|
color: defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
33630
|
-
} }, index.h("ls-icon", { key: '
|
|
33816
|
+
} }, index.h("ls-icon", { key: 'b8bb19361e0cef64eae9bebf01a0fe73ade6be99', name: this.signer?.roleType === 'APPROVER' ? 'check-circle' : this.signer?.roleType === 'SIGNER' ? 'signature' : 'eye' }), 'Participant ' + (this.signer?.signerIndex || '')), index.h("div", { key: '14bb3077badecdd639ca9221db8ff8135072f008', class: 'button-set hidden' }, this.index > 0 && this.signer.roleType !== 'WITNESS' && (index.h("div", { key: 'eaf07f2aca39b4666ee36ed50023b198cc6695a9', class: "innerButton", onClick: () => {
|
|
33631
33817
|
this.swapHandler(this.signer, this.template.roles[this.index - 1]);
|
|
33632
33818
|
}, style: {
|
|
33633
33819
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33634
33820
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33635
|
-
} }, index.h("ls-icon", { key: '
|
|
33821
|
+
} }, index.h("ls-icon", { key: '48f6736e9f88b03b71dc0836141f2dce10c592da', name: "arrow-up", size: "18" }))), this.signer.signerIndex !== this.template.roles.length && this.signer.roleType !== 'WITNESS' && (index.h("div", { key: 'f1df1663aba7445c3998a10388054c38202a45d7', class: "innerButton", onClick: () => {
|
|
33636
33822
|
this.swapHandler(this.signer, this.template.roles[this.index + 1]);
|
|
33637
33823
|
}, style: {
|
|
33638
33824
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33639
33825
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33640
|
-
} }, index.h("ls-icon", { key: '
|
|
33826
|
+
} }, index.h("ls-icon", { key: '21f3302957048e5c218f04e6da680a5be3ac55ba', name: "arrow-down", size: "18" }))), index.h("div", { key: '4b59e37058412bbd8d04deb4418fb3f764dbf360', class: "innerButton", onClick: () => {
|
|
33641
33827
|
this.editable = !this.editable;
|
|
33642
33828
|
}, style: {
|
|
33643
33829
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33644
33830
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33645
|
-
} }, index.h("ls-icon", { key: '
|
|
33831
|
+
} }, index.h("ls-icon", { key: 'ab068a9b7832b9387a006230231970dd425ae739', name: this.editable ? 'check' : 'pencil-alt', size: "18" })), index.h("div", { key: 'acede95c9e80168f22b08e24602ade0b1fe1fdb7', class: "innerButton", onClick: () => {
|
|
33646
33832
|
this.deleteHandler(this.signer);
|
|
33647
33833
|
}, style: {
|
|
33648
33834
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33649
33835
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33650
|
-
} }, index.h("ls-icon", { key: '
|
|
33836
|
+
} }, index.h("ls-icon", { key: 'd72ebe8b0544eee194842f91f5d449d20ed1da56', name: "trash", size: "18" })))), this.editable ? (index.h("div", { class: 'participant-card-inner' }, this.signer?.roleType !== 'WITNESS' ? (index.h("ls-input-wrapper", { select: true, leadingIcon: this.signer?.roleType === 'APPROVER' ? 'check-circle' : 'signature' }, index.h("select", { name: "roleType", id: "role-type", class: 'has-leading-icon', onChange: e => this.alter({ roleType: e.target.value }), disabled: child ? true : false }, index.h("option", { value: "APPROVER", selected: this.signer?.roleType === 'APPROVER' }, "Approver"), index.h("option", { value: "SIGNER", selected: this.signer?.roleType === 'SIGNER' }, "Signer")))) : (index.h("ls-input-wrapper", { leadingIcon: "eye" }, index.h("input", { name: "roleType", id: "role-type", class: 'has-leading-icon', disabled: true, value: "Witness" }))), index.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 => {
|
|
33651
33837
|
if (e.key === 'Enter' || e.keyCode === 13)
|
|
33652
33838
|
this.editable = false;
|
|
33653
33839
|
} }), this.signer?.roleType === 'SIGNER' && !child ? (index.h("button", { class: 'tertiary', onClick: () => this.addParticipant.emit({ type: 'WITNESS', parent: this.signer.id }) }, index.h("ls-icon", { name: "plus", style: { marginRight: '0.25rem' } }), "Add Witness")) : this.signer?.roleType === 'SIGNER' && child ? (index.h("button", { class: 'destructive', onClick: () => {
|
|
@@ -33662,7 +33848,7 @@ const LsParticipantCard = class {
|
|
|
33662
33848
|
} }, this.signer.roleType.toLowerCase()), this.signer?.roleType !== 'APPROVER' && (index.h("div", { class: 'role-label fields', style: {
|
|
33663
33849
|
background: participantFields.length === 0 ? defaultRolePalette[this.signer?.signerIndex % 100].s60 : defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
33664
33850
|
color: participantFields.length === 0 ? 'white' : defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
33665
|
-
} }, participantFields.length === 0 && index.h("ls-icon", { name: "exclamation-circle", size: "16", style: { marginRight: '0.125rem' } }), participantFields.length === 0 ? 'Signature Required' : `${participantFields.length} ${participantFields.length === 1 ? 'Field' : 'Fields'}`)))))), index.h("slot", { key: '
|
|
33851
|
+
} }, participantFields.length === 0 && index.h("ls-icon", { name: "exclamation-circle", size: "16", style: { marginRight: '0.125rem' } }), participantFields.length === 0 ? 'Signature Required' : `${participantFields.length} ${participantFields.length === 1 ? 'Field' : 'Fields'}`)))))), index.h("slot", { key: '8059f6c9ce00424f838f1c073ec9b3bf62d1f25d' })));
|
|
33666
33852
|
}
|
|
33667
33853
|
static get watchers() { return {
|
|
33668
33854
|
"editable": ["modeHandler"]
|
|
@@ -33729,12 +33915,12 @@ const LsParticipantManager = class {
|
|
|
33729
33915
|
observer.observe(this.element.shadowRoot, { childList: true, subtree: true });
|
|
33730
33916
|
}
|
|
33731
33917
|
render() {
|
|
33732
|
-
return (index.h(index.Host, { key: '
|
|
33918
|
+
return (index.h(index.Host, { key: 'edef40a6b345a99b45e4088fd44e463fa769ae8d' }, index.h("div", { key: '211294eba6699885106d694deb2337eb51b785f8', class: "ls-editor-infobox" }, index.h("h2", { key: '68a39092393693765bcbc497a457014cbd307580', class: "toolbox-section-title" }, "Participants"), index.h("p", { key: '29453b8e8fce7eb39f4f34a0d876fe8dd72f6af4', class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), index.h("div", { key: 'ad9925bc37488c8f4a1cef7d3fdb59d21e92e926', class: "participant-list" }, this.template &&
|
|
33733
33919
|
this.template?.roles.map((r, index$1) => {
|
|
33734
33920
|
return (index.h("ls-participant-card", { signer: r, index: index$1, template: this.template, onOpened: event => {
|
|
33735
33921
|
this.handleOpened.bind(this)(event);
|
|
33736
33922
|
}, onAddParticipant: event => this.handleOpenNewWitness(event) }));
|
|
33737
|
-
})), index.h("div", { key: '
|
|
33923
|
+
})), index.h("div", { key: '3a474009f7ba0168da4af3e5807d228a36fe7fa3', class: 'add-participant-button' }, index.h("button", { key: '405528eb5bf2c30acca22254a8a2cef81f3cb673', onClick: () => this.addParticipant.emit({ type: 'SIGNER' }) }, index.h("ls-icon", { key: '58aa3bf54a5b49c1fffeca956fa42e8fe6712364', name: "user-add", size: "20", color: "var(--gray-100, #45484D);" }), index.h("p", { key: '71bcf3329ee400624f4d6dc2577e04c4a33860b0' }, "Add Participant"))), index.h("slot", { key: 'b2894e4a772329741ff796bf0a39e1333cfa567b' })));
|
|
33738
33924
|
}
|
|
33739
33925
|
};
|
|
33740
33926
|
LsParticipantManager.style = lsParticipantManagerCss;
|
|
@@ -33793,27 +33979,27 @@ const LsParticipantSelect = class {
|
|
|
33793
33979
|
this.addParticipant.emit({ type: 'SIGNER' });
|
|
33794
33980
|
}
|
|
33795
33981
|
render() {
|
|
33796
|
-
return (index.h(index.Host, { key: '
|
|
33982
|
+
return (index.h(index.Host, { key: '09e119f89d40ae2f0c697ea6721a76a5d6e1e131' }, index.h("div", { key: 'b9b09c3702d6571572040780cff601ac6d4746c6', class: "dropdown" }, index.h("div", { key: 'e73286da66a604ebcd2aa3923730b0304726abd9', class: "dropdown-header", onClick: this.toggleDropdown }, index.h("svg", { key: 'c7d43f1e1153ee47c7512863497a93ddd9cbe013', width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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" }), index.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" }), index.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" }), index.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" })), index.h("p", { key: 'eae872f3ba394aadf53092194169c75997e9d53b', class: 'placing-fields-text' }, "Placing Fields for"), index.h("div", { key: '15f4384297e0e1789a15eb61db66898782a86dbc', class: 'selected-role-label', style: {
|
|
33797
33983
|
background: defaultRolePalette[this.selectedRole?.signerIndex % 100].s20,
|
|
33798
33984
|
color: defaultRolePalette[this.selectedRole?.signerIndex % 100].s80,
|
|
33799
|
-
} }, index.h("ls-icon", { key: '
|
|
33985
|
+
} }, index.h("ls-icon", { key: '2cd944cb7f0ca493970032faefd7f3750d580837', size: "18", name: this.selectedRole?.roleType === 'SENDER'
|
|
33800
33986
|
? 'user'
|
|
33801
33987
|
: this.selectedRole?.roleType === 'APPROVER'
|
|
33802
33988
|
? 'check-circle'
|
|
33803
33989
|
: this.selectedRole?.roleType === 'WITNESS'
|
|
33804
33990
|
? 'eye'
|
|
33805
33991
|
: 'signature' }), this.selectedRole.name ||
|
|
33806
|
-
(this.selectedRole.roleType === 'WITNESS' ? `Witness` : `Participant ${this.selectedRole.signerIndex}`)), index.h("button", { key: '
|
|
33992
|
+
(this.selectedRole.roleType === 'WITNESS' ? `Witness` : `Participant ${this.selectedRole.signerIndex}`)), index.h("button", { key: 'f339ed045bb0c6af9d2bff3304f7cf4b50721788', class: 'tertiaryGrey expand-button', "aria-haspopup": "listbox", "aria-expanded": this.isOpen }, index.h("ls-icon", { key: '960f7998fa7d3144c3e33381e843a0cd03ea7ffe', name: "chevron-down" }))), this.isOpen && (index.h("div", { key: 'b6229b4379b54c37af8089f43f647b724e426e23', class: "dropdown-list" }, index.h("div", { key: 'd8804bf89d2ffc11fc5ab00acf7eb1cef22c2171', class: this.selectedRole?.signerIndex === 0 ? 'dropdown-item selected' : 'dropdown-item', style: {
|
|
33807
33993
|
'--background-selected': defaultRolePalette[0].s10,
|
|
33808
33994
|
'--check-icon-selected': defaultRolePalette[0].s50,
|
|
33809
|
-
}, 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') }, index.h("div", { key: '
|
|
33995
|
+
}, 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') }, index.h("div", { key: '367089f2590b8227a069bcb3d76cf72d22fe2344', class: 'role-icon', style: {
|
|
33810
33996
|
background: defaultRolePalette[0].s50,
|
|
33811
33997
|
color: defaultRolePalette[0].s80,
|
|
33812
|
-
} }, index.h("ls-icon", { key: '
|
|
33998
|
+
} }, index.h("ls-icon", { key: 'c331ed982fc98742e132d77203edf13347f67ea2', name: "user" })), index.h("div", { key: '8f9c45b3ce947d3384a45070b776ee455fb21d0d', class: 'role-text' }, index.h("p", { key: '6f3a1a221e88bbed1d6d529879f271cb6141637c', class: 'role-name', style: {
|
|
33813
33999
|
'--role-name-selected': defaultRolePalette[0].s80,
|
|
33814
|
-
} }, 'Sender'), index.h("p", { key: '
|
|
34000
|
+
} }, 'Sender'), index.h("p", { key: '11d54a7e2c98fdc647ed46ffd2ea10635b7f65b9', class: 'role-type', style: {
|
|
33815
34001
|
'--role-type-selected': defaultRolePalette[0].s80,
|
|
33816
|
-
} }, "You")), index.h("ls-icon", { key: '
|
|
34002
|
+
} }, "You")), index.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 => (index.h("div", { class: r.signerIndex === this.selectedRole?.signerIndex ? 'dropdown-item selected' : 'dropdown-item', style: {
|
|
33817
34003
|
'--background-selected': defaultRolePalette[r?.signerIndex % 100].s10,
|
|
33818
34004
|
'--check-icon-selected': defaultRolePalette[r?.signerIndex % 100].s50,
|
|
33819
34005
|
}, onClick: () => this.selectRole(r), onMouseEnter: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', 'check-circle'), onMouseLeave: e => e.currentTarget
|
|
@@ -33825,10 +34011,10 @@ const LsParticipantSelect = class {
|
|
|
33825
34011
|
'--role-name-selected': defaultRolePalette[r?.signerIndex % 100].s100,
|
|
33826
34012
|
} }, r.name || (r.signerIndex > 100 ? `Participant ${r.signerIndex - 100} Witness` : `Participant ${r.signerIndex}`)), index.h("p", { class: 'role-type', style: {
|
|
33827
34013
|
'--role-type-selected': defaultRolePalette[r?.signerIndex % 100].s80,
|
|
33828
|
-
} }, r.roleType === 'WITNESS' ? 'Witness' : r.roleType === 'APPROVER' ? 'Approver' : 'Signer')), index.h("ls-icon", { class: 'check-icon', name: r.signerIndex === this.selectedRole?.signerIndex ? 'check-circle' : 'base-circle', solid: r.signerIndex === this.selectedRole?.signerIndex })))), index.h("button", { key: '
|
|
34014
|
+
} }, r.roleType === 'WITNESS' ? 'Witness' : r.roleType === 'APPROVER' ? 'Approver' : 'Signer')), index.h("ls-icon", { class: 'check-icon', name: r.signerIndex === this.selectedRole?.signerIndex ? 'check-circle' : 'base-circle', solid: r.signerIndex === this.selectedRole?.signerIndex })))), index.h("button", { key: '9ce97692f5946edce1bf20876aba6a257aa75aa3', onClick: () => this.createHandler(), class: 'add-participant-row', style: {
|
|
33829
34015
|
'--background-selected': defaultRolePalette[1].s10,
|
|
33830
34016
|
'--check-icon-selected': defaultRolePalette[1].s50,
|
|
33831
|
-
} }, index.h("div", { key: '
|
|
34017
|
+
} }, index.h("div", { key: '6986fb8bd1d4978aec4369a549eb4eb6e2300c5c', class: 'add-participant-icon' }, index.h("ls-icon", { key: 'f0fdeccc4489d510ddcfcb39c54e674287d9396b', name: "user-add" })), index.h("div", { key: 'c3a16b3fccbd5bd4e3d1e30eaf392023ed1382b0', class: 'role-text' }, index.h("p", { key: 'f663b8c5885f095fde20e204301d0c692f84bb12', class: 'role-name' }, "Add Participant"), index.h("p", { key: 'db7fadcf03020994b10f5b709f74e9b780e73b60', class: 'role-type' }, "Add a new Signer")), index.h("ls-icon", { key: 'd9baf06a920f373d651e09dcc4468b50648d742d', class: 'plus-icon', name: "plus" }))))), index.h("slot", { key: '185c090b40670cd0ce1b9ddda3b82d20e08aae92' })));
|
|
33832
34018
|
}
|
|
33833
34019
|
static get watchers() { return {
|
|
33834
34020
|
"roles": ["handleRoleLoad"]
|
|
@@ -33846,69 +34032,11 @@ const LsPropsSection = class {
|
|
|
33846
34032
|
sectionDescription;
|
|
33847
34033
|
row = false;
|
|
33848
34034
|
render() {
|
|
33849
|
-
return (index.h(index.Host, { key: '
|
|
34035
|
+
return (index.h(index.Host, { key: '9043f4212d573cb7cae6024f0288d3589cab16ca' }, index.h("div", { key: '73ad46475e8a1b84f775cf50ef38d96856c845ad', class: this.row ? 'ls-field-properties-section row' : 'ls-field-properties-section' }, index.h("div", { key: 'a259ac2223024e3b68e24956ac050afd1ed8ad6a', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'c649eeccdd07ed13d7761a7390737a7f1b27f476', class: 'ls-field-properties-section-title' }, this.sectionTitle), this.sectionDescription && index.h("p", { key: '668ec0fbf1c9b036bbaf71469862872da1858c5e', class: 'ls-field-properties-section-description' }, this.sectionDescription)), index.h("slot", { key: '7537449cd511e7fa223c06f96b983ce69a9f6cf8' }))));
|
|
33850
34036
|
}
|
|
33851
34037
|
};
|
|
33852
34038
|
LsPropsSection.style = lsPropsSectionCss;
|
|
33853
34039
|
|
|
33854
|
-
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}";
|
|
33855
|
-
|
|
33856
|
-
const LsRadioInput = class {
|
|
33857
|
-
constructor(hostRef) {
|
|
33858
|
-
index.registerInstance(this, hostRef);
|
|
33859
|
-
}
|
|
33860
|
-
radioId;
|
|
33861
|
-
label;
|
|
33862
|
-
icon;
|
|
33863
|
-
name = 'name';
|
|
33864
|
-
checked = false;
|
|
33865
|
-
disabled = false;
|
|
33866
|
-
customStyle;
|
|
33867
|
-
render() {
|
|
33868
|
-
const { label, radioId, icon, name, disabled, checked, customStyle, } = this;
|
|
33869
|
-
const radioLabelClass = clsx('radioLabel', disabled && 'disabled', checked && 'checked');
|
|
33870
|
-
return (index.h("label", { key: '071f5ea23374017ef930ff4718df692dfaf9c18d', htmlFor: radioId, tabIndex: 0, class: radioLabelClass, style: customStyle }, index.h("input", { key: 'eab8afd841ac1b0a8f92c8f39eb141bf0833c41c', type: 'radio', class: 'inputClass', id: radioId, name: name, value: label, disabled: disabled, tabIndex: 0, checked: checked }), index.h("div", { key: 'c22ee1a9f45bc7894bed6a978b1394de56ee8d0a', class: 'spanContainer' }, index.h("span", { key: '4f6defdd690a6a799040c1a69461d697086c0272' }, icon && index.h("ls-icon", { key: '5ef441f24e164cb176ec9fcea931e3d603524297', name: icon, size: "16" })), index.h("span", { key: '501bb04681a7bb99e19a1dbc1190fe0fc0eff655' }, label))));
|
|
33871
|
-
}
|
|
33872
|
-
};
|
|
33873
|
-
LsRadioInput.style = lsRadioInputCss;
|
|
33874
|
-
|
|
33875
|
-
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";
|
|
33876
|
-
|
|
33877
|
-
const LsSelectInput = class {
|
|
33878
|
-
constructor(hostRef) {
|
|
33879
|
-
index.registerInstance(this, hostRef);
|
|
33880
|
-
}
|
|
33881
|
-
name;
|
|
33882
|
-
value;
|
|
33883
|
-
aria;
|
|
33884
|
-
inputRef;
|
|
33885
|
-
disabled;
|
|
33886
|
-
displayOnly;
|
|
33887
|
-
required;
|
|
33888
|
-
valid;
|
|
33889
|
-
dirty;
|
|
33890
|
-
buttonClick;
|
|
33891
|
-
buttonIcon;
|
|
33892
|
-
fieldIcon;
|
|
33893
|
-
// handleChange(event) {
|
|
33894
|
-
// this.value = event.target.value;
|
|
33895
|
-
// }
|
|
33896
|
-
render() {
|
|
33897
|
-
const { name, aria, disabled, displayOnly, required, valid, dirty, buttonClick, buttonIcon, fieldIcon, } = this;
|
|
33898
|
-
const inputClass = clsx('input-base', disabled
|
|
33899
|
-
? 'disabled'
|
|
33900
|
-
: dirty && valid
|
|
33901
|
-
? 'valid'
|
|
33902
|
-
: dirty && !valid
|
|
33903
|
-
? 'invalid'
|
|
33904
|
-
: displayOnly
|
|
33905
|
-
? 'displayOnly'
|
|
33906
|
-
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33907
|
-
return (index.h("host", { key: '3d36732b2276fe87beaaf75e51cea6f240c51b76', class: 'host' }, fieldIcon && (index.h("ls-icon", { key: 'd23477ba9177c049c9af4c0b1eb82285bad773a3', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), index.h("select", { key: 'fc43cfd4be20eaf13e10d0c0d1b59a8d78a3d2e6', class: inputClass, id: name, name: name, "aria-label": aria, required: required, disabled: disabled }, index.h("slot", { key: '16c5c77c2708f382be33e72012ac428d302fa8d8' })), index.h("div", { key: '38749a68383a2656d27946f21af6efd02cf8c80b', class: 'right-items' }, dirty && !disabled && (index.h("ls-icon", { key: 'a0b606ae3e1ae4b86a9c2c079859ef4eaac42260', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon ? (index.h("button", { class: 'button', onClick: buttonClick }, index.h("ls-icon", { id: 'buttonIcon', name: buttonIcon }))) : (index.h("ls-icon", { id: disabled ? 'select-arrow-disabled' : 'select-arrow', name: 'chevron-down' })))));
|
|
33908
|
-
}
|
|
33909
|
-
};
|
|
33910
|
-
LsSelectInput.style = lsSelectInputCss;
|
|
33911
|
-
|
|
33912
34040
|
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)}";
|
|
33913
34041
|
|
|
33914
34042
|
const LsStatusbar = class {
|
|
@@ -33948,104 +34076,16 @@ const LsStatusbar = class {
|
|
|
33948
34076
|
this.zoom = this.editor.zoom;
|
|
33949
34077
|
}
|
|
33950
34078
|
render() {
|
|
33951
|
-
return (index.h(index.Host, { key: '
|
|
34079
|
+
return (index.h(index.Host, { key: '5175633d8514ec641b81d161dfbafeaeb90e3dbd' }, index.h("div", { key: '6ee5ab35d555e4685d3434538238b53169db8d34', class: 'status-bar-section' }, index.h("button", { key: '678f92a156d291e903a897af50f219b5e161ef41', onClick: () => this.setZoom(this.editor.zoom * 0.8) }, index.h("ls-icon", { key: 'b8e122bb9aaec0688312b0e6c1c6daf35d46d59e', name: "zoom-out" })), index.h("div", { key: 'bef53222c3b56c3bb532eeda88eae41400bd1599' }, index.h("input", { key: '4edd5b23b7bddca49a33399bf8820e2ec89b6243', type: "range", min: "1", max: "300", value: this.zoom * 100, class: "slider", id: "zoomRange", onInput: () => this.handleZoomInput() })), index.h("button", { key: 'f1762721abfc2888d83575e755a39091042a43b1', onClick: () => this.setZoom(this.editor.zoom / 0.8) }, index.h("ls-icon", { key: 'c71fcecc620fd255f872f5a7b0252414ac7eaac1', name: "zoom-in" }))), index.h("div", { key: '188426f1b5a7201fcdaf7ee83727b5e8f4435713', class: 'status-bar-section' }, index.h("button", { key: '9dd5cd5327d5ab8031233a2b33ec957e0184850c', onClick: () => this.fitWidth() }, index.h("ls-icon", { key: 'b8bd58c1ac2b2a7d760516a01ea2677997ba1b22', name: "fit-width" })), index.h("button", { key: '69c3a81d15b2f56922d730c164097616ca2cf7d3', onClick: () => this.fitHeight() }, index.h("ls-icon", { key: 'ae3ce4a1ae0c5d90080733a4b24bad4e1b1cdd14', name: "fit-height" }))), this.editor?._template?.pageCount > 1 && (index.h("div", { key: '0dfb2b2be045929e185d67670aa2a48c9007757b', class: 'status-bar-section' }, index.h("button", { key: 'db482d9a60eee5772e49dbe83273246c1a2acadb', onClick: () => {
|
|
33952
34080
|
this.editor.pagePrev();
|
|
33953
|
-
} }, index.h("ls-icon", { key: '
|
|
34081
|
+
} }, index.h("ls-icon", { key: '7759f954bddc55e06dd870560295abd7d82c62bc', name: "chevron-left" })), index.h("p", { key: 'cc5b3bd1faa52b15865754da73ee107c4dc2a613' }, this.editor?.pageNum, " / ", this.editor?._template?.pageCount), index.h("button", { key: 'd45ab960fb57260719584388a2dffedf883f62b2', onClick: () => {
|
|
33954
34082
|
this.editor.pageNext();
|
|
33955
|
-
} }, index.h("ls-icon", { key: '
|
|
34083
|
+
} }, index.h("ls-icon", { key: 'f23a3ee83510ee41165b720459915a97af0c6061', name: "chevron-right" })))), index.h("slot", { key: '75f3d128912a26f76fa0c1b043668259a3d028f4' })));
|
|
33956
34084
|
}
|
|
33957
34085
|
};
|
|
33958
34086
|
LsStatusbar.style = lsStatusbarCss;
|
|
33959
34087
|
|
|
33960
|
-
const
|
|
33961
|
-
|
|
33962
|
-
const LsTextInput = class {
|
|
33963
|
-
constructor(hostRef) {
|
|
33964
|
-
index.registerInstance(this, hostRef);
|
|
33965
|
-
this.valueChange = index.createEvent(this, "valueChange");
|
|
33966
|
-
}
|
|
33967
|
-
type = 'default';
|
|
33968
|
-
name;
|
|
33969
|
-
value;
|
|
33970
|
-
placeholder;
|
|
33971
|
-
aria;
|
|
33972
|
-
inputRef;
|
|
33973
|
-
disabled;
|
|
33974
|
-
required;
|
|
33975
|
-
valid;
|
|
33976
|
-
dirty;
|
|
33977
|
-
countMax;
|
|
33978
|
-
buttonClick;
|
|
33979
|
-
buttonIcon;
|
|
33980
|
-
fieldIcon;
|
|
33981
|
-
valueChange;
|
|
33982
|
-
showPassword = false;
|
|
33983
|
-
handlePassword = () => {
|
|
33984
|
-
this.showPassword = !this.showPassword;
|
|
33985
|
-
};
|
|
33986
|
-
changeHandler(event) {
|
|
33987
|
-
console.log(event);
|
|
33988
|
-
this.valueChange.emit(event.target.value);
|
|
33989
|
-
}
|
|
33990
|
-
render() {
|
|
33991
|
-
const { type, name, value, placeholder, aria, disabled, required, valid, dirty, countMax, buttonClick, buttonIcon, fieldIcon, showPassword, handlePassword, } = this;
|
|
33992
|
-
const inputClass = clsx('input-base', type === 'displayonly'
|
|
33993
|
-
? 'display-only'
|
|
33994
|
-
: disabled
|
|
33995
|
-
? 'disabled'
|
|
33996
|
-
: dirty && valid
|
|
33997
|
-
? 'valid'
|
|
33998
|
-
: dirty && !valid
|
|
33999
|
-
? 'invalid'
|
|
34000
|
-
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
34001
|
-
return (index.h(index.Host, { key: '2a86d2b2edd5666c42772d0fbf4627f52b304e7e', class: 'host' }, fieldIcon && (index.h("ls-icon", { key: 'ef45261622c63b60291451c37618c3e434dbfdf3', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), type === 'password' ? (index.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) => {
|
|
34002
|
-
this.changeHandler(e);
|
|
34003
|
-
} })) : type === 'displayonly' ? (index.h("input", { class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: true, onChange: (e) => {
|
|
34004
|
-
this.changeHandler(e);
|
|
34005
|
-
} })) : (index.h("input", { class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled, onChange: (e) => {
|
|
34006
|
-
this.changeHandler(e);
|
|
34007
|
-
} })), index.h("div", { key: '6144900e185b774d5f5e10d094424b78c4899374', class: 'right-items' }, dirty && !disabled && (index.h("ls-icon", { key: '5cf0c2112ddb11766cda8b2d8c963b4c92ccc9f9', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon && (index.h("button", { key: '681ec8d8d0ea70b679c8176928e658391ae1a0d0', class: 'button', onClick: buttonClick }, index.h("ls-icon", { key: 'a3256ca30fddba1c048ee1315f0348cadcfb513b', id: 'buttonIcon', name: buttonIcon }))), type === 'password' && !buttonIcon && (index.h("ls-icon-button", { key: 'a3e541ae6e5c1c88eea76da2a7d1c7db1022de2c', id: 'password-icon', icon: showPassword ? 'eye' : 'eye-off', onClick: handlePassword })))));
|
|
34008
|
-
}
|
|
34009
|
-
};
|
|
34010
|
-
LsTextInput.style = lsTextInputCss;
|
|
34011
|
-
|
|
34012
|
-
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";
|
|
34013
|
-
|
|
34014
|
-
const LsTextareaInput = class {
|
|
34015
|
-
constructor(hostRef) {
|
|
34016
|
-
index.registerInstance(this, hostRef);
|
|
34017
|
-
}
|
|
34018
|
-
name;
|
|
34019
|
-
value;
|
|
34020
|
-
placeholder;
|
|
34021
|
-
aria;
|
|
34022
|
-
inputRef;
|
|
34023
|
-
disabled;
|
|
34024
|
-
displayOnly;
|
|
34025
|
-
required;
|
|
34026
|
-
valid;
|
|
34027
|
-
dirty;
|
|
34028
|
-
countMax;
|
|
34029
|
-
buttonClick;
|
|
34030
|
-
buttonIcon;
|
|
34031
|
-
fieldIcon;
|
|
34032
|
-
render() {
|
|
34033
|
-
const { name, value, placeholder, aria, disabled, displayOnly, required, valid, dirty, countMax, buttonClick, buttonIcon, fieldIcon, } = this;
|
|
34034
|
-
const inputClass = clsx('input-base', disabled
|
|
34035
|
-
? 'disabled'
|
|
34036
|
-
: dirty && valid
|
|
34037
|
-
? 'valid'
|
|
34038
|
-
: dirty && !valid
|
|
34039
|
-
? 'invalid'
|
|
34040
|
-
: displayOnly
|
|
34041
|
-
? 'displayOnly'
|
|
34042
|
-
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
34043
|
-
return (index.h("host", { key: '281954f96e56d9b22ce6e90b73d913449163a384', class: 'host' }, fieldIcon && (index.h("ls-icon", { key: '7c01fc436423b1a2a7496d0f043bb592510c9057', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), index.h("textarea", { key: '2a4328d5674b9a759a1c63c4a2f622591679f363', class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled }), index.h("div", { key: 'a389f298d31654df347c9d654be0868f6ebab862', class: 'right-items' }, dirty && !disabled && (index.h("ls-icon", { key: 'cd6d7204e0301fd87d29d5c709c9e43721542bb1', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon && (index.h("button", { key: '31d5b142aa8a642c28748dae32adb19c97ef7936', class: 'button', onClick: buttonClick }, index.h("ls-icon", { key: '08c4ae96097a8ed4cdc8640c30d2b3b472e4fad5', id: 'buttonIcon', name: buttonIcon }))))));
|
|
34044
|
-
}
|
|
34045
|
-
};
|
|
34046
|
-
LsTextareaInput.style = lsTextareaInputCss;
|
|
34047
|
-
|
|
34048
|
-
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%}";
|
|
34088
|
+
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%}";
|
|
34049
34089
|
|
|
34050
34090
|
const LsToggle = class {
|
|
34051
34091
|
constructor(hostRef) {
|
|
@@ -34053,14 +34093,15 @@ const LsToggle = class {
|
|
|
34053
34093
|
this.valueChange = index.createEvent(this, "valueChange");
|
|
34054
34094
|
}
|
|
34055
34095
|
checked;
|
|
34096
|
+
indeterminate;
|
|
34056
34097
|
valueChange;
|
|
34057
34098
|
changeHandler(value) {
|
|
34058
34099
|
this.valueChange.emit(value);
|
|
34059
34100
|
}
|
|
34060
34101
|
render() {
|
|
34061
|
-
return (index.h(index.Host, { key: '
|
|
34102
|
+
return (index.h(index.Host, { key: '9a4d61443f92bf65fddf05407f91a01285ccf19f' }, index.h("label", { key: 'c2bbd322dfdb1e82a99139a412ea1bbed311c92b', class: "switch" }, index.h("input", { key: 'ffbbda8820f8d42dc316ec873e1d2f1063bceedc', type: "checkbox", checked: this.checked, onChange: (e) => {
|
|
34062
34103
|
this.changeHandler(e.target.checked);
|
|
34063
|
-
} }), index.h("span", { key: '
|
|
34104
|
+
} }), index.h("span", { key: 'c5952ebb13c18765abb406ec0916eb26d3db51a2', class: `${this.indeterminate ? 'indeterminate' : 'slider'} round` })), index.h("slot", { key: 'cae29b87763a90bd1b2b3f029fff63223aa4020f' })));
|
|
34064
34105
|
}
|
|
34065
34106
|
};
|
|
34066
34107
|
LsToggle.style = lsToggleCss;
|
|
@@ -34100,7 +34141,6 @@ const LsToolbar = class {
|
|
|
34100
34141
|
// Send one or more mutations up the chain
|
|
34101
34142
|
// The source of the chain fires the mutation
|
|
34102
34143
|
alter(diff) {
|
|
34103
|
-
console.log(diff);
|
|
34104
34144
|
const diffs = this.dataItem.map(c => {
|
|
34105
34145
|
return { action: 'update', data: { ...c, ...diff } };
|
|
34106
34146
|
});
|
|
@@ -34109,16 +34149,17 @@ const LsToolbar = class {
|
|
|
34109
34149
|
this.update.emit(diffs);
|
|
34110
34150
|
}
|
|
34111
34151
|
render() {
|
|
34112
|
-
return (index.h(index.Host, { key: '
|
|
34152
|
+
return (index.h(index.Host, { key: '4a3a8c5f0ae97dae39e77134409ceeb585cc8ed2' }, this.dataItem && this.dataItem.length > 1 ? (index.h("div", { class: 'rowbox' }, index.h("ls-field-format", { dataItem: this?.dataItem }))) : (index.h("div", { class: 'rowbox' }, index.h("ls-field-format", { dataItem: this?.dataItem, style: { visibility: this.dataItem && this.dataItem.length === 1 ? 'visible' : 'hidden' } }), index.h("ls-participant-select", { id: "ls-participant-select", roles: this.template?.roles, style: { display: this.dataItem && this.dataItem.length === 1 ? 'none' : 'block' } }))), index.h("slot", { key: 'acaf72f6d91de81ca677fbf60f7ec769cb6b1bef' })));
|
|
34113
34153
|
}
|
|
34114
34154
|
};
|
|
34115
34155
|
LsToolbar.style = lsToolbarCss;
|
|
34116
34156
|
|
|
34117
|
-
const lsToolboxFieldCss = "
|
|
34157
|
+
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)}";
|
|
34118
34158
|
|
|
34119
34159
|
const LsToolboxField = class {
|
|
34120
34160
|
constructor(hostRef) {
|
|
34121
34161
|
index.registerInstance(this, hostRef);
|
|
34162
|
+
this.selected = index.createEvent(this, "selected");
|
|
34122
34163
|
}
|
|
34123
34164
|
/**
|
|
34124
34165
|
* The field type of this toolbox item, e.g. 'signature'. Note these should always be lowercase.
|
|
@@ -34146,6 +34187,14 @@ const LsToolboxField = class {
|
|
|
34146
34187
|
* The signer color of the element
|
|
34147
34188
|
*/
|
|
34148
34189
|
signer = 0;
|
|
34190
|
+
isSelected = false;
|
|
34191
|
+
selected;
|
|
34192
|
+
modeHandler(_isSelected) {
|
|
34193
|
+
// When opened fire an event to let the parent handle closing other controls
|
|
34194
|
+
if (_isSelected) {
|
|
34195
|
+
this.selected.emit(this.formElementType);
|
|
34196
|
+
}
|
|
34197
|
+
}
|
|
34149
34198
|
handleDragStart(event) {
|
|
34150
34199
|
// Add the target element's id to the data transfer object
|
|
34151
34200
|
event.dataTransfer.setData('application/json', JSON.stringify({
|
|
@@ -34163,8 +34212,18 @@ const LsToolboxField = class {
|
|
|
34163
34212
|
}
|
|
34164
34213
|
}
|
|
34165
34214
|
render() {
|
|
34166
|
-
return (index.h(index.Host, { key: '
|
|
34215
|
+
return (index.h(index.Host, { key: '46c05581e53608ba17ccf3c50edb3e8097028b55', draggable: "true" }, index.h("div", { key: '5f79fae515d92d0d13473cd487a0b9085f8bb093', class: 'ls-toolbox-field', style: this.isSelected && {
|
|
34216
|
+
background: defaultRolePalette[this.signer % 100].s10,
|
|
34217
|
+
border: `1px solid ${defaultRolePalette[this.signer % 100].s60}`,
|
|
34218
|
+
color: defaultRolePalette[this.signer % 100].s80,
|
|
34219
|
+
boxShadow: `0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06);`,
|
|
34220
|
+
}, onClick: () => (this.isSelected = !this.isSelected) }, index.h("div", { key: '7b8a2967e8e3406760944cf663edc152e4a7c12c', class: "toolbox-field-icon", style: { '--signer-color-light': defaultRolePalette[this.signer % 100].s10, '--signer-color': defaultRolePalette[this.signer % 100].s60 } }, index.h("ls-icon", { key: 'e0ec95278d08e643544297d3f5aa26b66c3f9223', name: this.icon, size: "20" })), index.h("p", { key: 'e5be2362129ffd4e44eba9a5530c6a9d3693561f', class: "toolbox-field-label", style: this.isSelected && {
|
|
34221
|
+
color: defaultRolePalette[this.signer % 100].s80,
|
|
34222
|
+
} }, this.label), index.h("ls-icon", { key: '287b53ec216fe60b87c6b2f69ccc3e81795d011f', name: "drag-vertical", size: "16", color: "#787a80" }))));
|
|
34167
34223
|
}
|
|
34224
|
+
static get watchers() { return {
|
|
34225
|
+
"isSelected": ["modeHandler"]
|
|
34226
|
+
}; }
|
|
34168
34227
|
};
|
|
34169
34228
|
LsToolboxField.style = lsToolboxFieldCss;
|
|
34170
34229
|
|
|
@@ -34178,8 +34237,9 @@ const LsValidationTag = class {
|
|
|
34178
34237
|
validationErrors = [];
|
|
34179
34238
|
isExpanded = false;
|
|
34180
34239
|
render() {
|
|
34181
|
-
return (index.h(index.Host, { key: '
|
|
34182
|
-
const
|
|
34240
|
+
return (index.h(index.Host, { key: 'c6bdded8043e03b185383f12a1f4732f94fc1d0b' }, index.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 && index.h("div", { key: '0f0034a85c407a98cd72caedb7719d57cbbe6419', class: 'field-counter' }, this.validationErrors.length), this.validationErrors.length > 0 && (index.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 && (index.h("div", { key: 'f69f5c8f2dcd583bfa6472806e1b15f88143e165', class: 'field-dropdown' }, index.h("div", { key: '86cc44f470f99e329ca950be1cca4af86389620b', class: 'dropdown-header' }, index.h("h2", { key: 'ec2c565524f20d85432dfbc7d218cd2c23809a36' }, "Signature Fields Required"), index.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) => {
|
|
34241
|
+
const signerIndex = field?.role?.signerIndex ? field?.role?.signerIndex % 100 : null;
|
|
34242
|
+
const pallette = defaultRolePalette[signerIndex || field?.element?.signer || 0];
|
|
34183
34243
|
return (index.h("div", { key: idx, class: 'required-field', style: {
|
|
34184
34244
|
'--field-background': pallette.s10,
|
|
34185
34245
|
'--field-border-color': pallette.s10,
|
|
@@ -34220,23 +34280,18 @@ exports.ls_field_properties_signature = LsFieldPropertiesSignature;
|
|
|
34220
34280
|
exports.ls_field_properties_text = LsFieldPropertiesText;
|
|
34221
34281
|
exports.ls_field_size = LsFieldSize;
|
|
34222
34282
|
exports.ls_field_type_display = LsFieldTypeDisplay;
|
|
34223
|
-
exports.ls_formfield = LsFormfield;
|
|
34224
34283
|
exports.ls_icon = LsIcon;
|
|
34225
34284
|
exports.ls_input_wrapper = LsInputWrapper;
|
|
34226
|
-
exports.
|
|
34285
|
+
exports.ls_page_loader = LsPageLoader;
|
|
34227
34286
|
exports.ls_participant_card = LsParticipantCard;
|
|
34228
34287
|
exports.ls_participant_manager = LsParticipantManager;
|
|
34229
34288
|
exports.ls_participant_select = LsParticipantSelect;
|
|
34230
34289
|
exports.ls_props_section = LsPropsSection;
|
|
34231
|
-
exports.ls_radio_input = LsRadioInput;
|
|
34232
|
-
exports.ls_select_input = LsSelectInput;
|
|
34233
34290
|
exports.ls_statusbar = LsStatusbar;
|
|
34234
|
-
exports.ls_text_input = LsTextInput;
|
|
34235
|
-
exports.ls_textarea_input = LsTextareaInput;
|
|
34236
34291
|
exports.ls_toggle = LsToggle;
|
|
34237
34292
|
exports.ls_toolbar = LsToolbar;
|
|
34238
34293
|
exports.ls_toolbox_field = LsToolboxField;
|
|
34239
34294
|
exports.ls_validation_tag = LsValidationTag;
|
|
34240
|
-
//# 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-
|
|
34295
|
+
//# 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.cjs.js.map
|
|
34241
34296
|
|
|
34242
|
-
//# sourceMappingURL=ls-document-
|
|
34297
|
+
//# sourceMappingURL=ls-document-options_39.cjs.entry.js.map
|