legalesign-document-viewer 0.2.18 → 0.2.19
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/{index-DqDUg8D7.js → index-DruwRbfl.js} +15 -2
- package/dist/cjs/index-DruwRbfl.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/ls-document-options_44.cjs.entry.js +106 -75
- package/dist/cjs/ls-document-options_44.cjs.entry.js.map +1 -1
- package/dist/cjs/ls-document-viewer.cjs.js +2 -2
- package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +1 -1
- package/dist/collection/components/ls-document-options/ls-document-options.js +4 -5
- package/dist/collection/components/ls-document-options/ls-document-options.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorUtils.js +2 -17
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.css +6 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +15 -13
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js +6 -4
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/validator.js +1 -1
- package/dist/collection/components/ls-document-viewer/validator.js.map +1 -1
- package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.js +3 -3
- package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.js.map +1 -1
- package/dist/collection/components/ls-participant-card/ls-participant-card.css +37 -3
- package/dist/collection/components/ls-participant-card/ls-participant-card.js +37 -10
- package/dist/collection/components/ls-participant-card/ls-participant-card.js.map +1 -1
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +25 -7
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js.map +1 -1
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +33 -36
- package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.css +2 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -1
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +1 -1
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +68 -64
- 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 +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-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-validation-tag.js +1 -1
- package/dist/components/{p-D3FTfizs.js → p-5D8PsBm3.js} +4 -4
- package/dist/components/{p-D3FTfizs.js.map → p-5D8PsBm3.js.map} +1 -1
- package/dist/components/{p-DMMnoA4j.js → p-5bipMnyu.js} +27 -27
- package/dist/components/{p-DMMnoA4j.js.map → p-5bipMnyu.js.map} +1 -1
- package/dist/components/{p-PlRt3hai.js → p-5dvIIDY3.js} +4 -4
- package/dist/components/{p-PlRt3hai.js.map → p-5dvIIDY3.js.map} +1 -1
- package/dist/components/{p-BjFkOQE2.js → p-8U1vQjh6.js} +14 -14
- package/dist/components/{p-BjFkOQE2.js.map → p-8U1vQjh6.js.map} +1 -1
- package/dist/components/{p-DedKsdai.js → p-B3nXZzYN.js} +4 -4
- package/dist/components/{p-DedKsdai.js.map → p-B3nXZzYN.js.map} +1 -1
- package/dist/components/{p-D7kumolq.js → p-BClQCPwn.js} +4 -4
- package/dist/components/{p-D7kumolq.js.map → p-BClQCPwn.js.map} +1 -1
- package/dist/components/{p-D9m0QSvy.js → p-BLqzepwP.js} +5 -5
- package/dist/components/{p-D9m0QSvy.js.map → p-BLqzepwP.js.map} +1 -1
- package/dist/components/p-BO65LHPL.js +147 -0
- package/dist/components/p-BO65LHPL.js.map +1 -0
- package/dist/components/{p-BilmyMZI.js → p-BOES-kpO.js} +14 -14
- package/dist/components/{p-BilmyMZI.js.map → p-BOES-kpO.js.map} +1 -1
- package/dist/components/{p-DjfDnBZ1.js → p-BWLt02JN.js} +15 -2
- package/dist/components/p-BWLt02JN.js.map +1 -0
- package/dist/components/{p-B_NmEzQ7.js → p-BYfxQYIe.js} +14 -14
- package/dist/components/{p-B_NmEzQ7.js.map → p-BYfxQYIe.js.map} +1 -1
- package/dist/components/{p-BRLSnaia.js → p-BZmc1jRS.js} +12 -12
- package/dist/components/{p-BRLSnaia.js.map → p-BZmc1jRS.js.map} +1 -1
- package/dist/components/{p-HwxhESdb.js → p-B_RSAYa_.js} +4 -4
- package/dist/components/{p-HwxhESdb.js.map → p-B_RSAYa_.js.map} +1 -1
- package/dist/components/{p-BTkwdXtg.js → p-BcERGojX.js} +3 -3
- package/dist/components/{p-BTkwdXtg.js.map → p-BcERGojX.js.map} +1 -1
- package/dist/components/{p-XTkbfo1k.js → p-BdHdKShC.js} +5 -5
- package/dist/components/{p-XTkbfo1k.js.map → p-BdHdKShC.js.map} +1 -1
- package/dist/components/{p-WpDmGPlV.js → p-C19Sk5Pv.js} +9 -9
- package/dist/components/{p-WpDmGPlV.js.map → p-C19Sk5Pv.js.map} +1 -1
- package/dist/components/{p-B-MQpwUM.js → p-C1qHGnSs.js} +4 -19
- package/dist/components/p-C1qHGnSs.js.map +1 -0
- package/dist/components/{p-Diiu5PgI.js → p-C2AvJYU2.js} +4 -4
- package/dist/components/{p-Diiu5PgI.js.map → p-C2AvJYU2.js.map} +1 -1
- package/dist/components/{p-zUGMkAns.js → p-C4yNfeqL.js} +4 -4
- package/dist/components/{p-zUGMkAns.js.map → p-C4yNfeqL.js.map} +1 -1
- package/dist/components/p-CATruwEZ.js +94 -0
- package/dist/components/p-CATruwEZ.js.map +1 -0
- package/dist/components/{p-FDV-xQ4p.js → p-CFM4LGyt.js} +14 -14
- package/dist/components/{p-FDV-xQ4p.js.map → p-CFM4LGyt.js.map} +1 -1
- package/dist/components/{p-DWNbQoKy.js → p-CIMsSQwZ.js} +36 -17
- package/dist/components/p-CIMsSQwZ.js.map +1 -0
- package/dist/components/{p-BhIPFVxz.js → p-CKpdUPQa.js} +4 -4
- package/dist/components/{p-BhIPFVxz.js.map → p-CKpdUPQa.js.map} +1 -1
- package/dist/components/{p-DkNcLKhc.js → p-CTcGU-0M.js} +4 -4
- package/dist/components/{p-DkNcLKhc.js.map → p-CTcGU-0M.js.map} +1 -1
- package/dist/components/{p-D_w94geo.js → p-CXf5rRrm.js} +3 -3
- package/dist/components/{p-D_w94geo.js.map → p-CXf5rRrm.js.map} +1 -1
- package/dist/components/{p-BHrfmA8s.js → p-CXfTLG4X.js} +15 -16
- package/dist/components/p-CXfTLG4X.js.map +1 -0
- package/dist/components/{p-w22N5I-l.js → p-CYXQyrVE.js} +3 -3
- package/dist/components/{p-w22N5I-l.js.map → p-CYXQyrVE.js.map} +1 -1
- package/dist/components/{p-CsQFaTRj.js → p-CkFBf2X6.js} +8 -8
- package/dist/components/{p-CsQFaTRj.js.map → p-CkFBf2X6.js.map} +1 -1
- package/dist/components/{p-CWzJSXfJ.js → p-CkgCA2si.js} +4 -4
- package/dist/components/{p-CWzJSXfJ.js.map → p-CkgCA2si.js.map} +1 -1
- package/dist/components/{p-udzp6R_t.js → p-Cp5JvKGz.js} +30 -12
- package/dist/components/p-Cp5JvKGz.js.map +1 -0
- package/dist/components/{p-B_6X4Dj9.js → p-D7fmSEF_.js} +14 -14
- package/dist/components/{p-B_6X4Dj9.js.map → p-D7fmSEF_.js.map} +1 -1
- package/dist/components/{p-C1dxLL7L.js → p-DJwEQOhf.js} +3 -3
- package/dist/components/{p-C1dxLL7L.js.map → p-DJwEQOhf.js.map} +1 -1
- package/dist/components/{p-C4WAsTO3.js → p-DNYMtQaJ.js} +14 -14
- package/dist/components/{p-C4WAsTO3.js.map → p-DNYMtQaJ.js.map} +1 -1
- package/dist/components/{p-Cj_UymrF.js → p-DPTEeSlE.js} +5 -5
- package/dist/components/p-DPTEeSlE.js.map +1 -0
- package/dist/components/{p-Dkv2SHBh.js → p-DVYZ-l9i.js} +4 -4
- package/dist/components/{p-Dkv2SHBh.js.map → p-DVYZ-l9i.js.map} +1 -1
- package/dist/components/{p-BFkGGLWP.js → p-DjBw61k9.js} +14 -14
- package/dist/components/{p-BFkGGLWP.js.map → p-DjBw61k9.js.map} +1 -1
- package/dist/components/{p-BSoSLQYh.js → p-DvrE7Co1.js} +4 -4
- package/dist/components/{p-BSoSLQYh.js.map → p-DvrE7Co1.js.map} +1 -1
- package/dist/components/{p-D2YMJ0Aw.js → p-Dz71sI_1.js} +9 -9
- package/dist/components/{p-D2YMJ0Aw.js.map → p-Dz71sI_1.js.map} +1 -1
- package/dist/components/{p-BhfOYgiv.js → p-EJeMGdQu.js} +5 -5
- package/dist/components/{p-BhfOYgiv.js.map → p-EJeMGdQu.js.map} +1 -1
- package/dist/components/{p-DwVBt06x.js → p-EXjgBKTQ.js} +4 -4
- package/dist/components/{p-DwVBt06x.js.map → p-EXjgBKTQ.js.map} +1 -1
- package/dist/components/{p-Cq59orUr.js → p-FYWJbZt4.js} +4 -4
- package/dist/components/{p-Cq59orUr.js.map → p-FYWJbZt4.js.map} +1 -1
- package/dist/components/{p-1WwuurWL.js → p-LAdbaH1v.js} +5 -5
- package/dist/components/p-LAdbaH1v.js.map +1 -0
- package/dist/components/{p-By0To2FW.js → p-TSI6GwEl.js} +4 -4
- package/dist/components/{p-By0To2FW.js.map → p-TSI6GwEl.js.map} +1 -1
- package/dist/components/{p-Cu1yVewC.js → p-gc1S5qea.js} +14 -14
- package/dist/components/{p-Cu1yVewC.js.map → p-gc1S5qea.js.map} +1 -1
- package/dist/components/{p-CpNSQOFF.js → p-pj0dnyXK.js} +4 -4
- package/dist/components/{p-CpNSQOFF.js.map → p-pj0dnyXK.js.map} +1 -1
- package/dist/esm/{index-BwkWPcyG.js → index-CjW5NqdW.js} +15 -2
- package/dist/esm/index-CjW5NqdW.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/ls-document-options_44.entry.js +106 -75
- package/dist/esm/ls-document-options_44.entry.js.map +1 -1
- package/dist/esm/ls-document-viewer.js +3 -3
- package/dist/esm/ls-field-properties-dropdown.entry.js +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/{p-7c302d79.entry.js → p-798903b4.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-8473f817.entry.js → p-996dc931.entry.js} +6 -6
- package/dist/ls-document-viewer/p-996dc931.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-BwkWPcyG.js → p-CjW5NqdW.js} +2 -2
- package/dist/ls-document-viewer/p-CjW5NqdW.js.map +1 -0
- package/dist/types/components/ls-document-options/ls-document-options.d.ts +1 -1
- package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +4 -4
- package/dist/types/components/ls-participant-card/ls-participant-card.d.ts +5 -1
- package/dist/types/components/ls-participant-manager/ls-participant-manager.d.ts +4 -0
- package/dist/types/components/ls-participant-select/ls-participant-select.d.ts +2 -2
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/dist/cjs/index-DqDUg8D7.js.map +0 -1
- package/dist/components/p-1WwuurWL.js.map +0 -1
- package/dist/components/p-B-MQpwUM.js.map +0 -1
- package/dist/components/p-BHrfmA8s.js.map +0 -1
- package/dist/components/p-BY5udTK7.js +0 -94
- package/dist/components/p-BY5udTK7.js.map +0 -1
- package/dist/components/p-Cj_UymrF.js.map +0 -1
- package/dist/components/p-DWNbQoKy.js.map +0 -1
- package/dist/components/p-DjfDnBZ1.js.map +0 -1
- package/dist/components/p-lkNnKQtr.js +0 -140
- package/dist/components/p-lkNnKQtr.js.map +0 -1
- package/dist/components/p-udzp6R_t.js.map +0 -1
- package/dist/esm/index-BwkWPcyG.js.map +0 -1
- package/dist/ls-document-viewer/p-8473f817.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-BwkWPcyG.js.map +0 -1
- /package/dist/ls-document-viewer/{p-7c302d79.entry.js.map → p-798903b4.entry.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DruwRbfl.js');
|
|
4
4
|
|
|
5
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)}";
|
|
6
6
|
|
|
@@ -21,13 +21,12 @@ const LsDocumentOptions = class {
|
|
|
21
21
|
}
|
|
22
22
|
mutate;
|
|
23
23
|
update;
|
|
24
|
-
alter(
|
|
25
|
-
|
|
26
|
-
this.
|
|
27
|
-
this.mutate.emit([{ action: 'update', data: { ...this.template, ...template } }]);
|
|
24
|
+
alter(changedDetails) {
|
|
25
|
+
this.update.emit([{ action: 'update', data: { ...this.template, ...changedDetails } }]);
|
|
26
|
+
this.mutate.emit([{ action: 'update', data: { ...this.template, ...changedDetails } }]);
|
|
28
27
|
}
|
|
29
28
|
render() {
|
|
30
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: 'cf73422a524bb4ce9aba485e0107e0c5bdfc111c' }, index.h("div", { key: '9643e57e98221fc18028b369d311702308006af3', class: "ls-editor-infobox" }, index.h("h2", { key: '21761608b0f30ea8029d7c34359eb953e09a877c', class: "toolbox-section-title" }, "Template Details"), index.h("p", { key: '6478a3f2fe582956a07dd94fd678495295b89b16', class: "toolbox-section-description" }, "Details and insights about the Template.")), index.h("div", { key: 'f178b1b998582d54182b21d371e2f470a51be88a', class: 'template-details' }, index.h("div", { key: '302fc0d678593e10f3fa35b92fcaa8aa0141ff95', class: 'template-detail-section column' }, index.h("p", { key: 'ce93dd65dfbd7771e9b99263f6b52b11a1709438', class: "template-detail-section-title" }, "Name"), index.h("ls-formfield", { key: '2ed97f87424591fa979dbdc6fa44b5c8936aec07', as: "text", value: this.template?.title, style: { width: '100%' }, onValueChange: (e) => { this.alter({ title: e.detail }); } })), index.h("div", { key: '188f6151fb84d0a38960f39de6573bb100fe22bd', class: 'template-detail-section' }, index.h("p", { key: '58bfb11ef3eeecd8eb5b3c1dca9ade4f57a6054b', class: "template-detail-section-title" }, "Auto Archive"), index.h("ls-toggle", { key: 'ea5e98a7e2cf43f44b5f713037bd80d17fcd63d4', checked: this.template?.autoArchive, onValueChange: (e) => { this.alter({ autoArchive: e.detail }); } })), index.h("div", { key: '983ce91d8979286f4a47282111ff8121eaa231fd', class: 'template-detail-section' }, index.h("p", { key: 'd8f530b80fe00b0caed7d6808468958a945476fb', class: "template-detail-section-title" }, "Lock"), index.h("ls-toggle", { key: '9d567f64221707e0a3cd6fa481d10b8b8db960a5', checked: this.template?.locked, onValueChange: (e) => { this.alter({ locked: e.detail }); } })), index.h("div", { key: '1c232a0030ad9ad08f0d6fe5a1e56bb53d9d5df4', class: 'template-detail-section column' }, index.h("p", { key: '5ae3d7643e06649decb443675d7c0f2a368119da', class: "template-detail-section-title" }, "Pages"), index.h("ls-label", { key: 'e96b93c0314b25ef31fb482ea0db5c9c3eab5010', text: this.template?.pageCount })), index.h("div", { key: '523d4e15f9d89d7a2233b07f82aeb6aad86d6b5c', class: 'template-detail-section column' }, index.h("p", { key: 'c00eb240243337384d518fb4912ee6da44f03ddd', class: "template-detail-section-title" }, "Date Created"), " ", this.template?.created), index.h("div", { key: 'aae3a62cfaa6936127607e4a2068042fa53aa021', class: 'template-detail-section column' }, index.h("p", { key: 'a4b90c564e4989614aef70cd1af07f79b03a4c74', class: "template-detail-section-title" }, "Created By"), " ", this.template?.createdBy)), index.h("slot", { key: 'ca8666f8d48133b5385ca03f30e78d0c68c9508a' })));
|
|
31
30
|
}
|
|
32
31
|
static get watchers() { return {
|
|
33
32
|
"template": ["selectedHandler"]
|
|
@@ -20038,24 +20037,9 @@ function matchData(data) {
|
|
|
20038
20037
|
fi.setAttribute('id', 'ls-field-' + id);
|
|
20039
20038
|
fi.dataItem = { ...data.obj, id };
|
|
20040
20039
|
}
|
|
20041
|
-
else if (prefix === 'rol') {
|
|
20042
|
-
var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager');
|
|
20043
|
-
// Note this respread ensures that re-renders are triggered
|
|
20044
|
-
this._template = { ...this._template, roles: [...this._template.roles, { ...data.obj, id }] };
|
|
20045
|
-
participantManager.template = this._template;
|
|
20046
|
-
}
|
|
20047
|
-
}
|
|
20048
|
-
else if (data.event.action === 'delete') {
|
|
20049
|
-
if (prefix === 'rol') {
|
|
20050
|
-
var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager');
|
|
20051
|
-
this._template = { ...this._template, roles: this._template.roles.filter(r => r.id !== id) };
|
|
20052
|
-
participantManager.template = this._template;
|
|
20053
|
-
}
|
|
20054
20040
|
}
|
|
20055
|
-
|
|
20056
|
-
|
|
20057
|
-
syncRoles.bind(this)();
|
|
20058
|
-
}
|
|
20041
|
+
if (prefix === 'rol') {
|
|
20042
|
+
syncRoles.bind(this)();
|
|
20059
20043
|
}
|
|
20060
20044
|
}
|
|
20061
20045
|
async function syncRoles() {
|
|
@@ -20263,6 +20247,7 @@ function debounce(data, delay) {
|
|
|
20263
20247
|
function mouseDown(e) {
|
|
20264
20248
|
if (e.offsetX < 0 || e.offsetY < 0)
|
|
20265
20249
|
return;
|
|
20250
|
+
// console.log('mousedown', e);
|
|
20266
20251
|
// Find if this was
|
|
20267
20252
|
// - a hit on a field edge RESIZE
|
|
20268
20253
|
// - a hit on the middle of a field MOVE
|
|
@@ -20311,10 +20296,11 @@ function mouseDown(e) {
|
|
|
20311
20296
|
this.selectionBox = null;
|
|
20312
20297
|
}
|
|
20313
20298
|
else {
|
|
20314
|
-
console.log('start mouse down reset');
|
|
20299
|
+
// console.log('start mouse down reset');
|
|
20315
20300
|
this.startLocations = null;
|
|
20316
20301
|
this.startMouse = null;
|
|
20317
20302
|
this.selectionBox = { x: e.clientX, y: e.clientY };
|
|
20303
|
+
// console.log('empty space reset selected', this.selectionBox);
|
|
20318
20304
|
this.selectFields.emit([]);
|
|
20319
20305
|
this.selected = [];
|
|
20320
20306
|
this.component.style.cursor = 'crosshair';
|
|
@@ -20366,6 +20352,8 @@ function mouseMove(event) {
|
|
|
20366
20352
|
}
|
|
20367
20353
|
else if (this.startLocations && !this.edgeSide && this.startMouse && event.buttons === 1) {
|
|
20368
20354
|
this.isMoving = true;
|
|
20355
|
+
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20356
|
+
box.style.visibility = 'hidden';
|
|
20369
20357
|
// Move one or more selected items
|
|
20370
20358
|
const movedX = event.screenX - this.startMouse.x;
|
|
20371
20359
|
const movedY = event.screenY - this.startMouse.y;
|
|
@@ -20381,7 +20369,7 @@ function mouseUp(event) {
|
|
|
20381
20369
|
this.edgeSide = null;
|
|
20382
20370
|
this.startMouse = null;
|
|
20383
20371
|
this.component.style.cursor = 'auto';
|
|
20384
|
-
console.log('mouse up');
|
|
20372
|
+
// console.log('mouse up');
|
|
20385
20373
|
// find what was inside the selection box emit the select event and change their style
|
|
20386
20374
|
if (this.selectionBox) {
|
|
20387
20375
|
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
@@ -20390,7 +20378,6 @@ function mouseUp(event) {
|
|
|
20390
20378
|
this.selectionBox = null;
|
|
20391
20379
|
const found = findIn(fields, box, true, event.shiftKey);
|
|
20392
20380
|
this.selected = Array.from(found);
|
|
20393
|
-
console.log(found, this.selectionBox);
|
|
20394
20381
|
this.selectFields.emit(found.map(fx => fx.dataItem));
|
|
20395
20382
|
}
|
|
20396
20383
|
}
|
|
@@ -20485,7 +20472,6 @@ function mouseDrop(event) {
|
|
|
20485
20472
|
templateId: this._template.id,
|
|
20486
20473
|
},
|
|
20487
20474
|
};
|
|
20488
|
-
console.log(newData);
|
|
20489
20475
|
this.mutate.emit([newData]);
|
|
20490
20476
|
this.update.emit([newData]);
|
|
20491
20477
|
}
|
|
@@ -24704,7 +24690,7 @@ function validate(t) {
|
|
|
24704
24690
|
var errors = [];
|
|
24705
24691
|
// Check for missing signatures
|
|
24706
24692
|
t.roles.forEach(tr => {
|
|
24707
|
-
if (t.elementConnection.templateElements.filter(e => e.formElementType === 'signature' && e.signer === tr.signerIndex).length === 0) {
|
|
24693
|
+
if (t.elementConnection.templateElements.filter(e => e.formElementType === 'signature' && e.signer === tr.signerIndex && tr.roleType !== 'APPROVER').length === 0) {
|
|
24708
24694
|
errors.push({
|
|
24709
24695
|
id: tr.id,
|
|
24710
24696
|
title: 'Missing signature.',
|
|
@@ -24727,7 +24713,7 @@ function validate(t) {
|
|
|
24727
24713
|
return errors;
|
|
24728
24714
|
}
|
|
24729
24715
|
|
|
24730
|
-
const lsDocumentViewerCss = "*,*::before,*::after{box-sizing:border-box}*{margin:0}@media (prefers-reduced-motion: no-preference){html{interpolate-size:allow-keywords}}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}#root,#__next{isolation:isolate}:host{display:flex;flex-direction:row;width:100vw;height:100vh;margin:0px;padding:0px}.validation-tag-wrapper{position:fixed;top:0.375rem;right:0.375rem;z-index:2000}#my-field-panel{position:relative;height:calc(100% - 4.313rem)}.leftBox{position:relative;border-radius:16px;border:1px solid var(--gray-30, #edeff2);background:var(--white, #fff);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);width:21.25rem;margin:1rem;min-width:21.25rem;max-height:100%;z-index:1000;left:0;top:0}.left-box-inner{position:relative;display:flex;height:100%;padding:0.75rem;gap:0.75rem}.rightBox{width:200px;border:1px gray solid;width:470px;min-width:390px;padding:4px;font-family:inherit}.toolbox{display:flex;flex-direction:column;width:100%;height:100%;border-radius:8px;border:1px solid var(--gray-30, #e0e2e5);background:var(--gray-10, #f7f8fa);padding:0.75rem;gap:1rem;overflow-y:auto}.ls-editor-infobox{padding:2px 8px 2px 8px}#pdf-canvas{top:0px;left:0px;width:100px;height:100px}#ls-mid-area{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;width:100vw}.document-frame-wrapper{display:flex;flex-direction:column;justify-content:start;align-items:
|
|
24716
|
+
const lsDocumentViewerCss = "*,*::before,*::after{box-sizing:border-box}*{margin:0}@media (prefers-reduced-motion: no-preference){html{interpolate-size:allow-keywords}}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}#root,#__next{isolation:isolate}:host{display:flex;flex-direction:row;width:100vw;height:100vh;margin:0px;padding:0px}.validation-tag-wrapper{position:fixed;top:0.375rem;right:0.375rem;z-index:2000}#my-field-panel{position:relative;height:calc(100% - 4.313rem)}.leftBox{position:relative;border-radius:16px;border:1px solid var(--gray-30, #edeff2);background:var(--white, #fff);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);width:21.25rem;margin:1rem;min-width:21.25rem;max-height:100%;z-index:1000;left:0;top:0}.left-box-inner{position:relative;display:flex;height:100%;padding:0.75rem;gap:0.75rem}.rightBox{width:200px;border:1px gray solid;width:470px;min-width:390px;padding:4px;font-family:inherit}.toolbox{display:flex;flex-direction:column;width:100%;height:100%;border-radius:8px;border:1px solid var(--gray-30, #e0e2e5);background:var(--gray-10, #f7f8fa);padding:0.75rem;gap:1rem;overflow-y:auto}.ls-editor-infobox{padding:2px 8px 2px 8px}#pdf-canvas{top:0px;left:0px;width:100px;height:100px;box-shadow:0 8px 32px 0 rgba(0, 0, 0, 0.12)}#ls-mid-area{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;width:100vw;height:100%}.document-frame-wrapper{display:flex;flex-direction:column;justify-content:start;align-items:start;overflow:visible;max-height:100%;width:100vw;overflow:scroll;padding:5rem 380px 2rem 380px}#ls-document-frame{position:relative;height:98vh;margin-right:auto;margin-left:auto}.prevButton{position:relative;bottom:30px}.nextButton{position:relative;bottom:30px}.fieldBox{z-index:1000}#ls-box-selector{position:absolute;visibility:hidden;background-color:transparent;border:1px rgba(71, 71, 71, 0.716) dashed}#ls-editor-form{display:flex;width:100vw;height:calc(100vh - 2.25rem);position:relative;background:var(--gray-10, #f7f8fa);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.04) inset, 0 10px 15px 0 rgba(0, 0, 0, 0.04) inset}.hidden{visibility:hidden;display:none;width:0px}.toolbox-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;}.toolbox-section-description{color:var(--gray-80, #5e6066);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.fields-box{display:flex;flex-direction:column;gap:0.75rem}.page-header{display:flex;height:2.25rem;gap:0.5rem;padding:0.25rem 0.75rem;justify-content:center;align-items:center}.header-text-1{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.header-text-2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.properties-header{display:flex;padding:1rem;gap:0.75rem;align-items:center;border-bottom:1px solid var(--gray-20, #edeff2)}.properties-header-title{color:var(--gray-100, #45484d);width:100%;font-size:1.5rem;font-style:normal;font-weight:500;line-height:2rem;}.properties-header-icon{display:flex;padding:0.5rem;border-radius:0.625rem;background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.expand-fields-row{display:flex;align-items:center;gap:0.5rem;padding:0.5rem;cursor:pointer;color:var(--gray-80, #6c6e73);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.expand-fields-row p{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem;}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px}.input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.field-properties-outer{position:relative;height:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
24731
24717
|
|
|
24732
24718
|
pdfExports.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.5.207/pdf.worker.min.js';
|
|
24733
24719
|
const LsDocumentViewer = class {
|
|
@@ -24774,10 +24760,10 @@ const LsDocumentViewer = class {
|
|
|
24774
24760
|
*/
|
|
24775
24761
|
token;
|
|
24776
24762
|
/**
|
|
24777
|
-
|
|
24778
|
-
|
|
24779
|
-
|
|
24780
|
-
|
|
24763
|
+
* This will override the default production user pool.
|
|
24764
|
+
* Almost exclusively used for internal development.
|
|
24765
|
+
* {string}
|
|
24766
|
+
*/
|
|
24781
24767
|
userpool;
|
|
24782
24768
|
/**
|
|
24783
24769
|
* This will override the default production graphql endpoint.
|
|
@@ -24904,6 +24890,7 @@ const LsDocumentViewer = class {
|
|
|
24904
24890
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
24905
24891
|
addParticpantHandler(event) {
|
|
24906
24892
|
const defaultExperience = this.groupInfo.experienceConnection.experiences.find(x => x.defaultExperience === true);
|
|
24893
|
+
const parent = this._template.roles.find(r => r.id === event.detail.parent);
|
|
24907
24894
|
const data = [
|
|
24908
24895
|
{
|
|
24909
24896
|
action: 'create',
|
|
@@ -24911,8 +24898,8 @@ const LsDocumentViewer = class {
|
|
|
24911
24898
|
id: btoa('rol' + crypto.randomUUID()),
|
|
24912
24899
|
name: 'Signer ' + (this._template.roles.length + 1),
|
|
24913
24900
|
roleType: event.detail.type,
|
|
24914
|
-
signerIndex: this._template.roles.length
|
|
24915
|
-
ordinal: this._template.roles.length,
|
|
24901
|
+
signerIndex: event.detail.type === 'WITNESS' ? 100 + parent.signerIndex : this._template.roles.length,
|
|
24902
|
+
ordinal: event.detail.type === 'WITNESS' ? parent.ordinal + 1 : this._template.roles.length,
|
|
24916
24903
|
signerParent: event.detail.parent,
|
|
24917
24904
|
experience: defaultExperience.id,
|
|
24918
24905
|
templateId: this._template.id,
|
|
@@ -24925,10 +24912,10 @@ const LsDocumentViewer = class {
|
|
|
24925
24912
|
// Send selection changes to bars and panels if in use.
|
|
24926
24913
|
selectFieldsHandler(event) {
|
|
24927
24914
|
const fields = Array.from(this.component.shadowRoot.querySelectorAll('ls-editor-field'));
|
|
24928
|
-
// update the template with all the latest values in the
|
|
24915
|
+
// update the template with all the latest values in the
|
|
24929
24916
|
this._template = {
|
|
24930
24917
|
...this._template,
|
|
24931
|
-
elementConnection: { ...this._template.elementConnection, templateElements: fields.map(ef => ef.dataItem) }
|
|
24918
|
+
elementConnection: { ...this._template.elementConnection, templateElements: fields.map(ef => ef.dataItem) },
|
|
24932
24919
|
};
|
|
24933
24920
|
var toolbar = this.component.shadowRoot.getElementById('ls-toolbar');
|
|
24934
24921
|
if (toolbar)
|
|
@@ -25023,11 +25010,13 @@ const LsDocumentViewer = class {
|
|
|
25023
25010
|
const preparedRoles = newTemplate.roles.map((ro) => {
|
|
25024
25011
|
return { ...ro, templateId: newTemplate.id };
|
|
25025
25012
|
});
|
|
25013
|
+
this.signer = preparedRoles.length > 0 ? 1 : 0;
|
|
25026
25014
|
this._template = {
|
|
25027
25015
|
...newTemplate,
|
|
25028
25016
|
elementConnection: { ...newTemplate.elementConnection, templateElements: fields },
|
|
25029
25017
|
roles: preparedRoles,
|
|
25030
25018
|
};
|
|
25019
|
+
console.log(this._template);
|
|
25031
25020
|
}
|
|
25032
25021
|
/**
|
|
25033
25022
|
* Render the page based on pageNumber
|
|
@@ -25173,12 +25162,11 @@ const LsDocumentViewer = class {
|
|
|
25173
25162
|
this.load();
|
|
25174
25163
|
}
|
|
25175
25164
|
componentDidLoad() {
|
|
25176
|
-
const box = this.component.shadowRoot.querySelector('
|
|
25177
|
-
box.
|
|
25178
|
-
box.scrollLeft = (box.scrollWidth - box.clientWidth) / 2;
|
|
25165
|
+
const box = this.component.shadowRoot.querySelector('.document-frame-wrapper');
|
|
25166
|
+
box.scrollLeft = -380;
|
|
25179
25167
|
}
|
|
25180
25168
|
render() {
|
|
25181
|
-
return (index.h(index.Host, { key: '
|
|
25169
|
+
return (index.h(index.Host, { key: '772256fe57cd8d2aa9584044d3341ae94f5d856a' }, index.h(index.h.Fragment, null, index.h("div", { key: '3a047e1c06d8da29de6545555e67bf07d879bb90', class: 'validation-tag-wrapper' }, index.h("ls-validation-tag", { key: 'd1c6be4cdd857c8e38f77a036b6594aa44b8fb28', validationErrors: this.validationErrors })), index.h("div", { key: 'bb06ebe66befacf101094d6b7d25a40a0c9cff0d', class: "page-header" }, index.h("p", { key: '1b56235e4994ae43add1b084a5c6de2f40ad5c26', class: "header-text-1" }, "Template Creation"), index.h("p", { key: '9573e82cb20082b311c31d4752c59618c0164c3a' }, "/"), index.h("p", { key: 'ac2f7068d3a7b9fab04be3e5b0e354251db9ae0d', class: "header-text-2" }, this._template?.title)), index.h("form", { key: '5e1b6cefe3d2f12ab7fb711af9a189887744509e', 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 => {
|
|
25182
25170
|
if (manager.detail === 'document') {
|
|
25183
25171
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
25184
25172
|
documentManager.template = this._template;
|
|
@@ -25191,7 +25179,7 @@ const LsDocumentViewer = class {
|
|
|
25191
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 })) : (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 })), index.h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials", signer: this.signer }), index.h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", signer: this.signer }), 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 }), index.h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol", signer: this.signer }), index.h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text", signer: this.signer }), 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 }), index.h("ls-toolbox-field", { elementType: "dropdown", formElementType: "dropdown", label: "Dropdown", defaultHeight: 27, defaultWidth: 80, validation: 20, icon: "hashtag", signer: this.signer }), index.h("ls-toolbox-field", { elementType: "checkbox", formElementType: "checkbox", label: "Checkbox", defaultHeight: 27, defaultWidth: 27, validation: 25, icon: "check", signer: this.signer }), index.h("ls-toolbox-field", { elementType: "regex", formElementType: "regex", label: "Regex", defaultHeight: 27, defaultWidth: 120, validation: 93, icon: "code", signer: this.signer }), index.h("ls-toolbox-field", { elementType: "image", formElementType: "image", label: "Image", defaultHeight: 27, defaultWidth: 120, validation: 90, icon: "photograph", signer: this.signer }), index.h("ls-toolbox-field", { elementType: "file", formElementType: "file", label: "File", defaultHeight: 27, defaultWidth: 120, validation: 74, icon: "upload", signer: this.signer }))))), 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 => {
|
|
25192
25180
|
this.selected = [];
|
|
25193
25181
|
e.preventDefault();
|
|
25194
|
-
} }, 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: '
|
|
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: '71e1039ef2125174823e1731f00da673fb3610d3', id: "ls-toolbar", dataItem: this.selected ? this.selected.map(s => s.dataItem) : null, template: this._template, editor: this, groupInfo: this.groupInfo }), index.h("div", { key: '34104168b0dfaf818f1811f20a76f087c87d9e2e', id: "ls-mid-area" }, index.h("div", { key: '12b3c327d7629deba257d0d44d478ad2a93775bb', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, index.h("div", { key: 'b41998ec0bf1323db3b355fe6fb6cd2cb22cf02d', id: "ls-document-frame" }, index.h("canvas", { key: 'd756a54e89a8f463b26db71d1bb51bebbfc3564e', id: "pdf-canvas", class: this.displayTable ? 'hidden' : '' }), index.h("ls-editor-table", { key: 'd9387528cab97c0a2533164c55e627eda6b40c9b', editor: this, class: this.displayTable ? '' : 'hidden' }), index.h("div", { key: 'cbf35e7c60ddf374b4e6181594a763fc116654e2', id: "ls-box-selector" }))), index.h("ls-statusbar", { key: 'fd5030967606ba707b0f654aa14a5086289a8c02', editor: this }))))));
|
|
25195
25183
|
}
|
|
25196
25184
|
static get watchers() { return {
|
|
25197
25185
|
"mode": ["modeHandler"],
|
|
@@ -26188,7 +26176,7 @@ const LsFieldPropertiesContainer = class {
|
|
|
26188
26176
|
}
|
|
26189
26177
|
}
|
|
26190
26178
|
render() {
|
|
26191
|
-
return (index.h(index.Host, { key: '
|
|
26179
|
+
return (index.h(index.Host, { key: 'bd5cdce632c977e1fc528c9dc019957d693faf94' }, this.tabs.length > 1 && (index.h("div", { key: '971328b1f38c3693934665bcefb84133da76d04f', 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: '096910732325077d5d22526d4928ad7ce9c9d7d8', class: 'scrolling-container' }, index.h("slot", { key: '0d5a8ae8dfc46e2e469d46140e2d6b2a5ecd3aad', name: this.selectedTab }))));
|
|
26192
26180
|
}
|
|
26193
26181
|
};
|
|
26194
26182
|
LsFieldPropertiesContainer.style = lsFieldPropertiesContainerCss;
|
|
@@ -33577,7 +33565,7 @@ const LsNumberInput = class {
|
|
|
33577
33565
|
};
|
|
33578
33566
|
LsNumberInput.style = lsNumberInputCss;
|
|
33579
33567
|
|
|
33580
|
-
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
|
|
33568
|
+
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)}";
|
|
33581
33569
|
|
|
33582
33570
|
const LsParticipantCard = class {
|
|
33583
33571
|
constructor(hostRef) {
|
|
@@ -33585,6 +33573,7 @@ const LsParticipantCard = class {
|
|
|
33585
33573
|
this.mutate = index.createEvent(this, "mutate");
|
|
33586
33574
|
this.update = index.createEvent(this, "update");
|
|
33587
33575
|
this.opened = index.createEvent(this, "opened");
|
|
33576
|
+
this.addParticipant = index.createEvent(this, "addParticipant");
|
|
33588
33577
|
}
|
|
33589
33578
|
get component() { return index.getElement(this); }
|
|
33590
33579
|
signer;
|
|
@@ -33625,41 +33614,47 @@ const LsParticipantCard = class {
|
|
|
33625
33614
|
this.opened.emit(this.signer);
|
|
33626
33615
|
}
|
|
33627
33616
|
}
|
|
33617
|
+
addParticipant;
|
|
33628
33618
|
render() {
|
|
33629
33619
|
const participantFields = this.template.elementConnection.templateElements.filter(f => f.signer === this.signer.signerIndex) || [];
|
|
33630
|
-
|
|
33620
|
+
const child = this.template.roles.find(r => r.signerParent === this.signer.id);
|
|
33621
|
+
return (index.h(index.Host, { key: '050ce0bf860dfebc0f79d45295b6876a8c714c61' }, index.h("div", { key: '03a6151b022ee20de49836d55362ca7842d91c2b', class: 'participant-card' + (child ? ' top-card' : this.signer?.signerParent ? ' bottom-card' : ' full-card'), style: {
|
|
33631
33622
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s10,
|
|
33632
33623
|
border: `1px solid ${defaultRolePalette[this.signer?.signerIndex % 100].s60}`,
|
|
33633
|
-
marginTop: this.signer.
|
|
33624
|
+
marginTop: this.signer.roleType === 'WITNESS' ? '-0.813rem' : '0',
|
|
33634
33625
|
}, onMouseEnter: e => e.currentTarget.querySelector('.button-set')?.classList.remove('hidden'), onMouseLeave: e => e.currentTarget.querySelector('.button-set')?.classList.add('hidden'), onDblClick: () => {
|
|
33635
33626
|
this.editable = true;
|
|
33636
|
-
} }, index.h("div", { key: '
|
|
33627
|
+
} }, index.h("div", { key: '4471c63e21cba70ca9c99e08518b58aa27d51ba7', class: 'participant-card-inner' }, index.h("div", { key: '2880b2ada85743bb5aebb533cf51e837b275329e', class: 'participant-card-top-items' }, index.h("div", { key: '3d4eb8164d136326349cece0b18f5c53b0f88a49', class: 'role-label', style: {
|
|
33637
33628
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
33638
33629
|
color: defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
33639
|
-
} }, index.h("ls-icon", { key: '
|
|
33630
|
+
} }, index.h("ls-icon", { key: 'dad3b4055bdd45df6f8e5085f459961da09d010f', name: this.signer?.roleType === 'APPROVER' ? 'check-circle' : this.signer?.roleType === 'SIGNER' ? 'signature' : 'eye' }), 'Participant ' + (this.signer?.signerIndex || '')), index.h("div", { key: '07fe8b88998c7121217db858c231dcc1cc1707fe', class: 'button-set hidden' }, this.index > 0 && this.signer.roleType !== 'WITNESS' && (index.h("div", { key: '830f21fbae631a0e8e42af15a91d67c9547c1c01', class: "innerButton", onClick: () => {
|
|
33640
33631
|
this.swapHandler(this.signer, this.template.roles[this.index - 1]);
|
|
33641
33632
|
}, style: {
|
|
33642
33633
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33643
33634
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33644
|
-
} }, index.h("ls-icon", { key: '
|
|
33635
|
+
} }, index.h("ls-icon", { key: '8b09d4c2d21c0da1d1e2b8d259808f17db459cbb', name: "arrow-up", size: "18" }))), this.signer.signerIndex !== this.template.roles.length && this.signer.roleType !== 'WITNESS' && (index.h("div", { key: '615157461249449a36d2de250682f61476a9f201', class: "innerButton", onClick: () => {
|
|
33645
33636
|
this.swapHandler(this.signer, this.template.roles[this.index + 1]);
|
|
33646
33637
|
}, style: {
|
|
33647
33638
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33648
33639
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33649
|
-
} }, index.h("ls-icon", { key: '
|
|
33640
|
+
} }, index.h("ls-icon", { key: 'f5272e02633d855779e651e7210f93d345832b88', name: "arrow-down", size: "18" }))), index.h("div", { key: '83fcb361f4610ca0f08db9d6be84ad3cf3abd5d8', class: "innerButton", onClick: () => {
|
|
33650
33641
|
this.editable = !this.editable;
|
|
33651
33642
|
}, style: {
|
|
33652
33643
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33653
33644
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33654
|
-
} }, index.h("ls-icon", { key: '
|
|
33645
|
+
} }, index.h("ls-icon", { key: '9aea4e29845683be3ab72ad4aba8897e2e8f4a2f', name: this.editable ? 'check' : 'pencil-alt', size: "18" })), index.h("div", { key: '451e0cc218f1f505e64a9783902d8627c4c1a005', class: "innerButton", onClick: () => {
|
|
33655
33646
|
this.deleteHandler(this.signer);
|
|
33656
33647
|
}, style: {
|
|
33657
33648
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33658
33649
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33659
|
-
} }, index.h("ls-icon", { key: '
|
|
33650
|
+
} }, index.h("ls-icon", { key: '5678a46062f0ea120d60e070a86f5b1a75d06662', 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 => {
|
|
33660
33651
|
if (e.key === 'Enter' || e.keyCode === 13)
|
|
33661
33652
|
this.editable = false;
|
|
33662
|
-
} })
|
|
33653
|
+
} }), 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: () => {
|
|
33654
|
+
this.deleteHandler(child);
|
|
33655
|
+
} }, index.h("ls-icon", { name: "minus-sm", style: { marginRight: '0.25rem' } }), "Remove Witness")) : this.signer?.roleType === 'WITNESS' ? (index.h("button", { class: 'destructive', onClick: () => {
|
|
33656
|
+
this.deleteHandler(this.signer);
|
|
33657
|
+
} }, index.h("ls-icon", { name: "minus-sm", style: { marginRight: '0.25rem' } }), "Remove Witness")) : null)) : (index.h("div", { class: 'participant-card-text' }, index.h("p", { class: "participant-text-description", style: {
|
|
33663
33658
|
color: defaultRolePalette[this.signer?.signerIndex % 100].s100,
|
|
33664
33659
|
} }, this.signer.name || `${this.signer.signerIndex > 100 ? 'Witness' : 'Signer'} ${this.signer.signerIndex + 1}`), index.h("p", { class: "participant-text-type", style: {
|
|
33665
33660
|
color: defaultRolePalette[this.signer?.signerIndex % 100].s80,
|
|
@@ -33667,7 +33662,7 @@ const LsParticipantCard = class {
|
|
|
33667
33662
|
} }, this.signer.roleType.toLowerCase()), this.signer?.roleType !== 'APPROVER' && (index.h("div", { class: 'role-label fields', style: {
|
|
33668
33663
|
background: participantFields.length === 0 ? defaultRolePalette[this.signer?.signerIndex % 100].s60 : defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
33669
33664
|
color: participantFields.length === 0 ? 'white' : defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
33670
|
-
} }, 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: '
|
|
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: 'ba159f7a2d34de4926bb44ce1aca658cd470833d' })));
|
|
33671
33666
|
}
|
|
33672
33667
|
static get watchers() { return {
|
|
33673
33668
|
"editable": ["modeHandler"]
|
|
@@ -33711,17 +33706,35 @@ const LsParticipantManager = class {
|
|
|
33711
33706
|
handleOpened(event) {
|
|
33712
33707
|
const participants = this.element.shadowRoot.querySelectorAll('ls-participant-card');
|
|
33713
33708
|
participants.forEach(element => {
|
|
33714
|
-
|
|
33715
|
-
|
|
33709
|
+
const isTarget = element.signer?.id === event.detail.id;
|
|
33710
|
+
element.editable = isTarget;
|
|
33711
|
+
if (isTarget) {
|
|
33712
|
+
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
33713
|
+
}
|
|
33716
33714
|
});
|
|
33717
33715
|
}
|
|
33716
|
+
handleOpenNewWitness(event) {
|
|
33717
|
+
const { parent } = event.detail;
|
|
33718
|
+
const observer = new MutationObserver(() => {
|
|
33719
|
+
const participants = this.element.shadowRoot.querySelectorAll('ls-participant-card');
|
|
33720
|
+
participants.forEach(element => {
|
|
33721
|
+
const isTarget = element.signer?.signerParent === parent;
|
|
33722
|
+
element.editable = isTarget;
|
|
33723
|
+
if (isTarget) {
|
|
33724
|
+
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
33725
|
+
}
|
|
33726
|
+
});
|
|
33727
|
+
observer.disconnect();
|
|
33728
|
+
});
|
|
33729
|
+
observer.observe(this.element.shadowRoot, { childList: true, subtree: true });
|
|
33730
|
+
}
|
|
33718
33731
|
render() {
|
|
33719
|
-
return (index.h(index.Host, { key: '
|
|
33732
|
+
return (index.h(index.Host, { key: '969b4cc1f4e86d87035c5c84365dea9607c85fff' }, index.h("div", { key: 'a50e3c6131d31f523a458c0a1729181eea1ce007', class: "ls-editor-infobox" }, index.h("h2", { key: '5e4b848099eb0d3a79b4fa172111288d7b07e278', class: "toolbox-section-title" }, "Participants"), index.h("p", { key: 'fa9267c09a4c443832f76bb88f8c74d69c9838e3', class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), index.h("div", { key: '97aceae65cb31344ad3a724daf7f64c469fd6741', class: "participant-list" }, this.template &&
|
|
33720
33733
|
this.template?.roles.map((r, index$1) => {
|
|
33721
|
-
return index.h("ls-participant-card", { signer: r, index: index$1, template: this.template, onOpened:
|
|
33734
|
+
return (index.h("ls-participant-card", { signer: r, index: index$1, template: this.template, onOpened: event => {
|
|
33722
33735
|
this.handleOpened.bind(this)(event);
|
|
33723
|
-
} });
|
|
33724
|
-
})), index.h("div", { key: '
|
|
33736
|
+
}, onAddParticipant: event => this.handleOpenNewWitness(event) }));
|
|
33737
|
+
})), index.h("div", { key: '1067a4fbd87d7bcbce1a99d4aeb9a04bacfeea36', class: 'add-participant-button' }, index.h("button", { key: 'f0529ee33de114f8d7b5a222d27440686cf9eb0b', onClick: () => this.addParticipant.emit({ type: 'SIGNER' }) }, index.h("ls-icon", { key: 'fab11a0945db10cfde4c537d26e84cfa410cd8a9', name: "user-add", size: "20", color: "var(--gray-100, #45484D);" }), index.h("p", { key: '384ec2ea99caff3321d3d5d70105e6a07c2466fe' }, "Add Participant"))), index.h("slot", { key: 'd0689801afd208555d353f1472e64968c5934647' })));
|
|
33725
33738
|
}
|
|
33726
33739
|
};
|
|
33727
33740
|
LsParticipantManager.style = lsParticipantManagerCss;
|
|
@@ -33734,7 +33747,6 @@ const LsParticipantSelect = class {
|
|
|
33734
33747
|
this.roleChange = index.createEvent(this, "roleChange");
|
|
33735
33748
|
this.addParticipant = index.createEvent(this, "addParticipant");
|
|
33736
33749
|
}
|
|
33737
|
-
dataItem;
|
|
33738
33750
|
/**
|
|
33739
33751
|
* The id of the currently selected role.
|
|
33740
33752
|
* {string}
|
|
@@ -33744,7 +33756,23 @@ const LsParticipantSelect = class {
|
|
|
33744
33756
|
* The currently selected role.
|
|
33745
33757
|
* {number}
|
|
33746
33758
|
*/
|
|
33747
|
-
selectedRole = { signerIndex: 0, name: 'Sender', roleType: 'SENDER' };
|
|
33759
|
+
selectedRole = { signerIndex: 0, name: 'Sender', roleType: 'SENDER', default: true };
|
|
33760
|
+
handleRoleLoad() {
|
|
33761
|
+
if (this.selectedRole.default) {
|
|
33762
|
+
if (this.roles.length > 0) {
|
|
33763
|
+
const initialRole = this.roles.find(r => r.signerIndex === 1);
|
|
33764
|
+
if (initialRole) {
|
|
33765
|
+
this.selectedRole = { ...initialRole, default: false };
|
|
33766
|
+
}
|
|
33767
|
+
}
|
|
33768
|
+
}
|
|
33769
|
+
else {
|
|
33770
|
+
const updatedRole = this.roles.find(r => r.signerIndex === this.selectedRole.signerIndex);
|
|
33771
|
+
if (updatedRole) {
|
|
33772
|
+
this.selectedRole = { ...updatedRole, default: false };
|
|
33773
|
+
}
|
|
33774
|
+
}
|
|
33775
|
+
}
|
|
33748
33776
|
/**
|
|
33749
33777
|
* The current template roles.
|
|
33750
33778
|
* {LSApiRole}
|
|
@@ -33757,7 +33785,7 @@ const LsParticipantSelect = class {
|
|
|
33757
33785
|
roleChange;
|
|
33758
33786
|
addParticipant;
|
|
33759
33787
|
selectRole(role) {
|
|
33760
|
-
this.selectedRole = role;
|
|
33788
|
+
this.selectedRole = { ...role, default: false };
|
|
33761
33789
|
this.isOpen = false;
|
|
33762
33790
|
this.roleChange.emit(role.signerIndex);
|
|
33763
33791
|
}
|
|
@@ -33765,27 +33793,27 @@ const LsParticipantSelect = class {
|
|
|
33765
33793
|
this.addParticipant.emit({ type: 'SIGNER' });
|
|
33766
33794
|
}
|
|
33767
33795
|
render() {
|
|
33768
|
-
return (index.h(index.Host, { key: '
|
|
33796
|
+
return (index.h(index.Host, { key: 'f053e6c27cba0319ca92871a534070d753961aac' }, index.h("div", { key: 'b037b74c477b5f7ad338bc707a1f08bdfb131535', class: "dropdown" }, index.h("div", { key: 'c97336eab86a36d45b9ddef78a6df0e8babada63', class: "dropdown-header", onClick: this.toggleDropdown }, index.h("svg", { key: 'fa69fa36ad9b6e6ae4adfca7017a4457068365d1', width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '860b63abd43343f27b9fd8d597a152bf7e34dc93', 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: '7eeff168b2553f4e79be6d4a8d1bad31282ec5ac', 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: '10216191c461f85e93f97c40d0a9f818cafe6f19', 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: 'c2677a36fe8ffc04141dd8e565916d425b23120f', 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: '977b8593c1eba8a9cafc93f3c548596df4f14383', class: 'placing-fields-text' }, "Placing Fields for"), index.h("div", { key: '7a9decad70156db7451571a813d98ac29bb55969', class: 'selected-role-label', style: {
|
|
33769
33797
|
background: defaultRolePalette[this.selectedRole?.signerIndex % 100].s20,
|
|
33770
33798
|
color: defaultRolePalette[this.selectedRole?.signerIndex % 100].s80,
|
|
33771
|
-
} }, index.h("ls-icon", { key: '
|
|
33799
|
+
} }, index.h("ls-icon", { key: '1bceddc0d5bdcdc9a4550e6871c6f23b130e13a4', size: "18", name: this.selectedRole?.roleType === 'SENDER'
|
|
33772
33800
|
? 'user'
|
|
33773
33801
|
: this.selectedRole?.roleType === 'APPROVER'
|
|
33774
33802
|
? 'check-circle'
|
|
33775
33803
|
: this.selectedRole?.roleType === 'WITNESS'
|
|
33776
33804
|
? 'eye'
|
|
33777
33805
|
: 'signature' }), this.selectedRole.name ||
|
|
33778
|
-
(this.selectedRole.
|
|
33806
|
+
(this.selectedRole.roleType === 'WITNESS' ? `Witness` : `Participant ${this.selectedRole.signerIndex}`)), index.h("button", { key: 'deac6e0ce1405949e279df80396664520ea0a446', class: 'tertiaryGrey expand-button', "aria-haspopup": "listbox", "aria-expanded": this.isOpen }, index.h("ls-icon", { key: '39bb00d902adf511c3122dd8b4a158cfea84dc02', name: "chevron-down" }))), this.isOpen && (index.h("div", { key: '4e1c77622d07e09ad73e8607f2fb7012ab170599', class: "dropdown-list" }, index.h("div", { key: '6333a4f6d8a87b41054b0e0bacefe836093cd64f', class: this.selectedRole?.signerIndex === 0 ? 'dropdown-item selected' : 'dropdown-item', style: {
|
|
33779
33807
|
'--background-selected': defaultRolePalette[0].s10,
|
|
33780
33808
|
'--check-icon-selected': defaultRolePalette[0].s50,
|
|
33781
|
-
}, 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: '
|
|
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: '0172efaa68fd05cc5c8833833f4f44af92d505bc', class: 'role-icon', style: {
|
|
33782
33810
|
background: defaultRolePalette[0].s50,
|
|
33783
33811
|
color: defaultRolePalette[0].s80,
|
|
33784
|
-
} }, index.h("ls-icon", { key: '
|
|
33812
|
+
} }, index.h("ls-icon", { key: '5dc564e507733c2732ab79c3a8437eb275c6aefe', name: "user" })), index.h("div", { key: '9d1a26aa3fceb79612afe66929b9b04fa6c46b66', class: 'role-text' }, index.h("p", { key: 'e89116bb21fb1fa9c00acac2173688629fe2d637', class: 'role-name', style: {
|
|
33785
33813
|
'--role-name-selected': defaultRolePalette[0].s80,
|
|
33786
|
-
} }, 'Sender'), index.h("p", { key: '
|
|
33814
|
+
} }, 'Sender'), index.h("p", { key: '00bb513c28a580faab973e74779c77b6e123aa6d', class: 'role-type', style: {
|
|
33787
33815
|
'--role-type-selected': defaultRolePalette[0].s80,
|
|
33788
|
-
} }, "You")), index.h("ls-icon", { key: '
|
|
33816
|
+
} }, "You")), index.h("ls-icon", { key: '9c375a9cffbc93e6566f496a379f910d7d82ad2e', 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: {
|
|
33789
33817
|
'--background-selected': defaultRolePalette[r?.signerIndex % 100].s10,
|
|
33790
33818
|
'--check-icon-selected': defaultRolePalette[r?.signerIndex % 100].s50,
|
|
33791
33819
|
}, onClick: () => this.selectRole(r), onMouseEnter: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', 'check-circle'), onMouseLeave: e => e.currentTarget
|
|
@@ -33797,11 +33825,14 @@ const LsParticipantSelect = class {
|
|
|
33797
33825
|
'--role-name-selected': defaultRolePalette[r?.signerIndex % 100].s100,
|
|
33798
33826
|
} }, r.name || (r.signerIndex > 100 ? `Participant ${r.signerIndex - 100} Witness` : `Participant ${r.signerIndex}`)), index.h("p", { class: 'role-type', style: {
|
|
33799
33827
|
'--role-type-selected': defaultRolePalette[r?.signerIndex % 100].s80,
|
|
33800
|
-
} }, 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: '
|
|
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: '876d0510b3522b4de6c81a04950e0cbe6d56a7ef', onClick: () => this.createHandler(), class: 'add-participant-row', style: {
|
|
33801
33829
|
'--background-selected': defaultRolePalette[1].s10,
|
|
33802
33830
|
'--check-icon-selected': defaultRolePalette[1].s50,
|
|
33803
|
-
} }, index.h("div", { key: '
|
|
33831
|
+
} }, index.h("div", { key: '18e18d420039303a144a9a40ae73307421e6ddf0', class: 'add-participant-icon' }, index.h("ls-icon", { key: 'f6fa96cc87ee795b827067035b2887dd5af67b71', name: "user-add" })), index.h("div", { key: 'd17693f290f0aba4d16e3d7c92e9d899e18bfd2b', class: 'role-text' }, index.h("p", { key: '6cbd301f3414c84d1dc14e4afa764c920d180b66', class: 'role-name' }, "Add Participant"), index.h("p", { key: '93ff716ae9b2bbdb976f3bb674963c686e8b236d', class: 'role-type' }, "Add a new Signer")), index.h("ls-icon", { key: 'b6c771b3e0773de88ab729a2e8d09c9051b09d5f', class: 'plus-icon', name: "plus" }))))), index.h("slot", { key: 'cd90a24546b04b907c6e82980827fb133ea9b37a' })));
|
|
33804
33832
|
}
|
|
33833
|
+
static get watchers() { return {
|
|
33834
|
+
"roles": ["handleRoleLoad"]
|
|
33835
|
+
}; }
|
|
33805
33836
|
};
|
|
33806
33837
|
LsParticipantSelect.style = lsParticipantSelectCss;
|
|
33807
33838
|
|
|
@@ -34034,7 +34065,7 @@ const LsToggle = class {
|
|
|
34034
34065
|
};
|
|
34035
34066
|
LsToggle.style = lsToggleCss;
|
|
34036
34067
|
|
|
34037
|
-
const lsToolbarCss = ":host{position:absolute;top:1rem;left:50%;transform:translateX(-50%);display:flex;width:100%;align-items:center;justify-content:center;padding:0.
|
|
34068
|
+
const lsToolbarCss = ":host{position:absolute;top:1rem;left:50%;transform:translateX(-50%);display:flex;width:100%;align-items:center;justify-content:center;padding:0.375rem;gap:0.5rem;width:fit-content;border-radius:1rem;border:1px solid var(--gray-20, #edeff2);background:var(--white, #fff);z-index:1000;box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}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)}";
|
|
34038
34069
|
|
|
34039
34070
|
const LsToolbar = class {
|
|
34040
34071
|
constructor(hostRef) {
|
|
@@ -34078,7 +34109,7 @@ const LsToolbar = class {
|
|
|
34078
34109
|
this.update.emit(diffs);
|
|
34079
34110
|
}
|
|
34080
34111
|
render() {
|
|
34081
|
-
return (index.h(index.Host, { key: '930227762fac4d6c8ff5053cf6f844d9e4b5366a' }, 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,
|
|
34112
|
+
return (index.h(index.Host, { key: '930227762fac4d6c8ff5053cf6f844d9e4b5366a' }, 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: '4d23f1bc7e9abe32194bd1628084ab47624ad7c5' })));
|
|
34082
34113
|
}
|
|
34083
34114
|
};
|
|
34084
34115
|
LsToolbar.style = lsToolbarCss;
|
|
@@ -34147,7 +34178,7 @@ const LsValidationTag = class {
|
|
|
34147
34178
|
validationErrors = [];
|
|
34148
34179
|
isExpanded = false;
|
|
34149
34180
|
render() {
|
|
34150
|
-
return (index.h(index.Host, { key: '19a7fa173b5753ee1323adf935c9b76aab197a1b' }, index.h("div", { key: '5c0b59aa90ee1bf2c39f341e167437ae0cfb700b', 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: '209d7861899401458d8a5fa7a64665d7e7991a51', class: 'field-counter' }, this.validationErrors.length), this.validationErrors.length > 0 && (index.h("ls-icon", { key: '0a528826d3b7d67382a934259c1fd515a931a108', name: this.isExpanded ? 'chevron-up' : 'chevron-down', style: { cursor: 'pointer', scale: '0.60', margin: '0 -0.25rem' } }))), this.isExpanded && (index.h("div", { key: '
|
|
34181
|
+
return (index.h(index.Host, { key: '19a7fa173b5753ee1323adf935c9b76aab197a1b' }, index.h("div", { key: '5c0b59aa90ee1bf2c39f341e167437ae0cfb700b', 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: '209d7861899401458d8a5fa7a64665d7e7991a51', class: 'field-counter' }, this.validationErrors.length), this.validationErrors.length > 0 && (index.h("ls-icon", { key: '0a528826d3b7d67382a934259c1fd515a931a108', 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: 'b02370495b444d5fdffce3b6424ebdada55da955', class: 'field-dropdown' }, index.h("div", { key: 'aa939c4bf56a8e5ba53ec3f09d76a897a3c279a9', class: 'dropdown-header' }, index.h("h2", { key: 'cf3d5932c59a742bdefd9a05007d1d6b657789cc' }, "Signature Fields Required"), index.h("p", { key: '2c231dc8f4fd0d0f14f173aae3251078551ab056' }, this.validationErrors.length, " ", this.validationErrors.length === 1 ? 'Recipient needs a Signature Field' : 'Recipients need Signature Fields', " placed for them")), this.validationErrors.map((field, idx) => {
|
|
34151
34182
|
const pallette = defaultRolePalette[field?.role?.signerIndex || field?.element?.signer || 0];
|
|
34152
34183
|
return (index.h("div", { key: idx, class: 'required-field', style: {
|
|
34153
34184
|
'--field-background': pallette.s10,
|