legalesign-document-viewer 0.2.16 → 0.2.17
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/ls-document-options_44.cjs.entry.js +142 -123
- package/dist/cjs/ls-document-options_44.cjs.entry.js.map +1 -1
- package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js +0 -1
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorCalculator.js +1 -11
- package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorUtils.js +7 -7
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +18 -9
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js +13 -8
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -1
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +70 -10
- package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -1
- package/dist/collection/components/ls-field-content/ls-field-content.js +2 -2
- package/dist/collection/components/ls-field-content/ls-field-content.js.map +1 -1
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +1 -1
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +3 -3
- package/dist/collection/components/ls-field-footer/ls-field-footer.js +1 -1
- package/dist/collection/components/ls-field-format/ls-field-format.js +10 -10
- 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 +3 -3
- 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-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-participant-select/ls-participant-select.js.map +1 -1
- 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-toggle/ls-toggle.js +2 -2
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -1
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +1 -1
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.css +1 -0
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +3 -3
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js.map +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +75 -72
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.js +1 -1
- package/dist/components/ls-feature-column.js +1 -1
- package/dist/components/ls-field-alignment.js +1 -1
- package/dist/components/ls-field-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-CEXPiqRy.js → p-08Y1xfZ0.js} +14 -14
- package/dist/components/{p-CEXPiqRy.js.map → p-08Y1xfZ0.js.map} +1 -1
- package/dist/components/{p-7D7_-v1B.js → p-7OOa56_s.js} +7 -7
- package/dist/components/{p-7D7_-v1B.js.map → p-7OOa56_s.js.map} +1 -1
- package/dist/components/{p-BsqW4UBt.js → p-B-MQpwUM.js} +9 -9
- package/dist/components/{p-BsqW4UBt.js.map → p-B-MQpwUM.js.map} +1 -1
- package/dist/components/{p-C4jWZnBE.js → p-BH8GODlq.js} +12 -12
- package/dist/components/{p-C4jWZnBE.js.map → p-BH8GODlq.js.map} +1 -1
- package/dist/components/{p-Cn8L7L3C.js → p-BJNdGImB.js} +10 -10
- package/dist/components/{p-Cn8L7L3C.js.map → p-BJNdGImB.js.map} +1 -1
- package/dist/components/{p-CbUu1dP7.js → p-BKSauoVE.js} +14 -14
- package/dist/components/{p-CbUu1dP7.js.map → p-BKSauoVE.js.map} +1 -1
- package/dist/components/{p-D-FTpvoJ.js → p-BMtpqB19.js} +14 -14
- package/dist/components/{p-D-FTpvoJ.js.map → p-BMtpqB19.js.map} +1 -1
- package/dist/components/{p-DrAK-Oyx.js → p-BaBM1pcx.js} +4 -4
- package/dist/components/{p-DrAK-Oyx.js.map → p-BaBM1pcx.js.map} +1 -1
- package/dist/components/{p-pg5hLDlt.js → p-Bb3qZ1FM.js} +14 -14
- package/dist/components/{p-pg5hLDlt.js.map → p-Bb3qZ1FM.js.map} +1 -1
- package/dist/components/{p-ChypMzKQ.js → p-BcHvi-Xh.js} +6 -6
- package/dist/components/{p-ChypMzKQ.js.map → p-BcHvi-Xh.js.map} +1 -1
- package/dist/components/{p-w1MJLRnN.js → p-Bf6iFJFF.js} +7 -7
- package/dist/components/p-Bf6iFJFF.js.map +1 -0
- package/dist/components/{p-8XEFOn-d.js → p-BgUsEg40.js} +7 -7
- package/dist/components/{p-8XEFOn-d.js.map → p-BgUsEg40.js.map} +1 -1
- package/dist/components/{p-BBB5iQVY.js → p-Bgn7YFt3.js} +5 -5
- package/dist/components/{p-BBB5iQVY.js.map → p-Bgn7YFt3.js.map} +1 -1
- package/dist/components/{p-CVslFJf2.js → p-Bjxpkxq8.js} +4 -4
- package/dist/components/{p-CVslFJf2.js.map → p-Bjxpkxq8.js.map} +1 -1
- package/dist/components/{p-4bLYtZ7G.js → p-BqyKnlkW.js} +5 -5
- package/dist/components/{p-4bLYtZ7G.js.map → p-BqyKnlkW.js.map} +1 -1
- package/dist/components/{p-DANu5iYx.js → p-BrZNyTRl.js} +10 -10
- package/dist/components/p-BrZNyTRl.js.map +1 -0
- package/dist/components/{p-DpxKWYo0.js → p-C-NbhUFS.js} +12 -12
- package/dist/components/{p-DpxKWYo0.js.map → p-C-NbhUFS.js.map} +1 -1
- package/dist/components/{p-C9FzM0ku.js → p-C1dxLL7L.js} +4 -4
- package/dist/components/{p-C9FzM0ku.js.map → p-C1dxLL7L.js.map} +1 -1
- package/dist/components/{p-C-7v41N0.js → p-CPV9Xiwe.js} +14 -14
- package/dist/components/{p-C-7v41N0.js.map → p-CPV9Xiwe.js.map} +1 -1
- package/dist/components/{p-BaQg8rJv.js → p-CPk8Im-e.js} +4 -4
- package/dist/components/{p-BaQg8rJv.js.map → p-CPk8Im-e.js.map} +1 -1
- package/dist/components/{p-Csycl9Pp.js → p-CV8wczQy.js} +4 -4
- package/dist/components/{p-Csycl9Pp.js.map → p-CV8wczQy.js.map} +1 -1
- package/dist/components/{p-BomVzaQC.js → p-Cj_UymrF.js} +3 -3
- package/dist/components/{p-BomVzaQC.js.map → p-Cj_UymrF.js.map} +1 -1
- package/dist/components/{p-DX4v2RbN.js → p-CmTIsM01.js} +13 -13
- package/dist/components/{p-DX4v2RbN.js.map → p-CmTIsM01.js.map} +1 -1
- package/dist/components/{p-DVjK7LqZ.js → p-CnruNkOJ.js} +30 -14
- package/dist/components/p-CnruNkOJ.js.map +1 -0
- package/dist/components/{p-DAbMHiaU.js → p-D3d3JjAV.js} +4 -4
- package/dist/components/{p-DAbMHiaU.js.map → p-D3d3JjAV.js.map} +1 -1
- package/dist/components/{p-CT3TUdFN.js → p-DNCFdaXg.js} +4 -4
- package/dist/components/{p-CT3TUdFN.js.map → p-DNCFdaXg.js.map} +1 -1
- package/dist/components/{p-CjA4yRMZ.js → p-DQLVx6vx.js} +4 -4
- package/dist/components/{p-CjA4yRMZ.js.map → p-DQLVx6vx.js.map} +1 -1
- package/dist/components/{p-lURAmQJs.js → p-DSsM-qVD.js} +27 -27
- package/dist/components/{p-lURAmQJs.js.map → p-DSsM-qVD.js.map} +1 -1
- package/dist/components/{p-BxgeM9bF.js → p-DZvgHLgf.js} +14 -14
- package/dist/components/{p-BxgeM9bF.js.map → p-DZvgHLgf.js.map} +1 -1
- package/dist/components/{p-Cb28A4Tv.js → p-Dd77bTTk.js} +6 -6
- package/dist/components/{p-Cb28A4Tv.js.map → p-Dd77bTTk.js.map} +1 -1
- package/dist/components/{p-DZb-aBrs.js → p-DeH5HbhE.js} +3 -3
- package/dist/components/{p-DZb-aBrs.js.map → p-DeH5HbhE.js.map} +1 -1
- package/dist/components/{p-BSvTHvWc.js → p-DjbyqQGv.js} +4 -4
- package/dist/components/{p-BSvTHvWc.js.map → p-DjbyqQGv.js.map} +1 -1
- package/dist/components/{p-BFCbuKwf.js → p-DkU_dVKz.js} +10 -10
- package/dist/components/{p-BFCbuKwf.js.map → p-DkU_dVKz.js.map} +1 -1
- package/dist/components/{p-dKDNSmDa.js → p-DnA_KO3B.js} +3 -3
- package/dist/components/{p-dKDNSmDa.js.map → p-DnA_KO3B.js.map} +1 -1
- package/dist/components/{p-DaJchBqo.js → p-DqQiR6aT.js} +14 -14
- package/dist/components/{p-DaJchBqo.js.map → p-DqQiR6aT.js.map} +1 -1
- package/dist/components/{p-DTaWUste.js → p-Drpl80FN.js} +3 -3
- package/dist/components/{p-DTaWUste.js.map → p-Drpl80FN.js.map} +1 -1
- package/dist/components/{p-cAAh5-e-.js → p-DzQE3ZEV.js} +14 -14
- package/dist/components/{p-cAAh5-e-.js.map → p-DzQE3ZEV.js.map} +1 -1
- package/dist/components/{p-CYO5mT-l.js → p-ICVf5Ih3.js} +6 -6
- package/dist/components/{p-CYO5mT-l.js.map → p-ICVf5Ih3.js.map} +1 -1
- package/dist/components/{p-D6yt0trA.js → p-InhKbMTN.js} +4 -4
- package/dist/components/{p-D6yt0trA.js.map → p-InhKbMTN.js.map} +1 -1
- package/dist/components/{p-DjL6oQ8M.js → p-TIScgDF2.js} +8 -8
- package/dist/components/{p-DjL6oQ8M.js.map → p-TIScgDF2.js.map} +1 -1
- package/dist/components/{p-BwqaPHwD.js → p-YVznheAe.js} +14 -14
- package/dist/components/{p-BwqaPHwD.js.map → p-YVznheAe.js.map} +1 -1
- package/dist/components/{p-CxNmQxyp.js → p-oXyG7bQB.js} +4 -4
- package/dist/components/{p-CxNmQxyp.js.map → p-oXyG7bQB.js.map} +1 -1
- package/dist/components/{p-D4X6dPGK.js → p-w22N5I-l.js} +3 -3
- package/dist/components/{p-D4X6dPGK.js.map → p-w22N5I-l.js.map} +1 -1
- package/dist/esm/ls-document-options_44.entry.js +142 -123
- package/dist/esm/ls-document-options_44.entry.js.map +1 -1
- package/dist/esm/ls-field-properties-dropdown.entry.js +1 -1
- package/dist/ls-document-viewer/index.esm.js.map +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js.map +1 -1
- package/dist/ls-document-viewer/{p-9affe1e9.entry.js → p-585b2b9b.entry.js} +5 -5
- package/dist/ls-document-viewer/p-585b2b9b.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-7c302d79.entry.js +2 -0
- package/dist/types/components/ls-editor-field/ls-editor-field.d.ts +7 -1
- package/dist/types/components.d.ts +24 -0
- package/package.json +1 -1
- package/dist/components/p-DANu5iYx.js.map +0 -1
- package/dist/components/p-DVjK7LqZ.js.map +0 -1
- package/dist/components/p-w1MJLRnN.js.map +0 -1
- package/dist/ls-document-viewer/clsx-ChV9xqsO.js.map +0 -1
- package/dist/ls-document-viewer/defaultFieldIcons-Cp3IxvzK.js.map +0 -1
- package/dist/ls-document-viewer/defaultPalette-CwCWCxsI.js.map +0 -1
- package/dist/ls-document-viewer/editorUtils-Dh0dNla7.js.map +0 -1
- package/dist/ls-document-viewer/index-Db-CNFwu.js.map +0 -1
- package/dist/ls-document-viewer/p-9affe1e9.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-f8fee9f4.entry.js +0 -2
- /package/dist/ls-document-viewer/{p-f8fee9f4.entry.js.map → p-7c302d79.entry.js.map} +0 -0
|
@@ -19850,7 +19850,7 @@ function addField(frame, data) {
|
|
|
19850
19850
|
const node = document.createElement('ls-editor-field');
|
|
19851
19851
|
node.setAttribute('type', data.formElementType);
|
|
19852
19852
|
node.setAttribute('id', 'ls-field-' + data.id);
|
|
19853
|
-
node.setAttribute('selected', 'selected');
|
|
19853
|
+
// node.setAttribute('selected', 'selected');
|
|
19854
19854
|
node.style.zIndex = '100';
|
|
19855
19855
|
node.style.position = 'absolute';
|
|
19856
19856
|
node.style.top = Math.floor(data.top * this.zoom) + 'px';
|
|
@@ -19889,16 +19889,6 @@ const findDimensions = (frameContainer, sourceField, pageHeight, pageWidth, zoom
|
|
|
19889
19889
|
const ay = top > 0 ? top / pageHeight : 0;
|
|
19890
19890
|
const bx = (left + zwidth) / pageWidth;
|
|
19891
19891
|
const by = (top + zheight) / pageHeight;
|
|
19892
|
-
console.log({
|
|
19893
|
-
top,
|
|
19894
|
-
left,
|
|
19895
|
-
zheight,
|
|
19896
|
-
zwidth,
|
|
19897
|
-
ax,
|
|
19898
|
-
ay,
|
|
19899
|
-
bx,
|
|
19900
|
-
by,
|
|
19901
|
-
});
|
|
19902
19892
|
// Return with calculated styles that try to place it as it would appear on legacy signing page
|
|
19903
19893
|
return {
|
|
19904
19894
|
top,
|
|
@@ -20174,11 +20164,11 @@ const validationTypes = [
|
|
|
20174
20164
|
{ id: 20, description: 'Dropdown List', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
20175
20165
|
{ id: 91, description: 'Countries', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
20176
20166
|
{ id: 92, description: 'Name prefix titles', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
20177
|
-
{ id: 24, description: '✔/✗', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: '
|
|
20178
|
-
{ id: 25, description: '✔/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: '
|
|
20179
|
-
{ id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: '
|
|
20180
|
-
{ id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: '
|
|
20181
|
-
{ id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: '
|
|
20167
|
+
{ id: 24, description: '✔/✗', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'checkbox' },
|
|
20168
|
+
{ id: 25, description: '✔/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'checkbox' },
|
|
20169
|
+
{ id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: 'checkbox' },
|
|
20170
|
+
{ id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'file' },
|
|
20171
|
+
{ id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'file' },
|
|
20182
20172
|
{
|
|
20183
20173
|
id: 76,
|
|
20184
20174
|
description: 'File: zip with PDF (for internal view, signed PDF for signer)',
|
|
@@ -20186,13 +20176,13 @@ const validationTypes = [
|
|
|
20186
20176
|
defaultHeight: 16,
|
|
20187
20177
|
defaultWidth: 200,
|
|
20188
20178
|
typeDefault: false,
|
|
20189
|
-
inputType: '
|
|
20179
|
+
inputType: 'file',
|
|
20190
20180
|
},
|
|
20191
20181
|
{ id: 90, description: 'Drawn field.', formType: 'drawn field', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
20192
20182
|
{ id: 2000, description: 'Initials', formType: 'initials', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
20193
20183
|
{ id: 93, description: 'Regular Expression field', formType: 'regular expression', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
20194
20184
|
{ id: 3000, description: 'Auto Sign', formType: 'auto sign', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
20195
|
-
{ id: 4000, description: 'Text Area', formType: 'textarea', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: '
|
|
20185
|
+
{ id: 4000, description: 'Text Area', formType: 'textarea', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'textarea' },
|
|
20196
20186
|
];
|
|
20197
20187
|
// See validation table in database for latest values - these have to be hard coded for our HTML control - ASW
|
|
20198
20188
|
function getInputType(validation) {
|
|
@@ -20321,9 +20311,12 @@ function mouseDown(e) {
|
|
|
20321
20311
|
this.selectionBox = null;
|
|
20322
20312
|
}
|
|
20323
20313
|
else {
|
|
20314
|
+
console.log('start mouse down reset');
|
|
20324
20315
|
this.startLocations = null;
|
|
20325
20316
|
this.startMouse = null;
|
|
20326
20317
|
this.selectionBox = { x: e.clientX, y: e.clientY };
|
|
20318
|
+
this.selectFields.emit([]);
|
|
20319
|
+
this.selected = [];
|
|
20327
20320
|
this.component.style.cursor = 'crosshair';
|
|
20328
20321
|
}
|
|
20329
20322
|
}
|
|
@@ -20356,6 +20349,7 @@ function mouseMove(event) {
|
|
|
20356
20349
|
debounce.bind(this)({ action: 'update', data: recalculateCoordinates(this.hitField.dataItem) }, 700);
|
|
20357
20350
|
}
|
|
20358
20351
|
else if (this.selectionBox && event.buttons === 1) {
|
|
20352
|
+
console.log('drawing box');
|
|
20359
20353
|
// draw the multiple selection box
|
|
20360
20354
|
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20361
20355
|
var frame = this.component.shadowRoot.getElementById('ls-document-frame');
|
|
@@ -20387,18 +20381,17 @@ function mouseUp(event) {
|
|
|
20387
20381
|
this.edgeSide = null;
|
|
20388
20382
|
this.startMouse = null;
|
|
20389
20383
|
this.component.style.cursor = 'auto';
|
|
20384
|
+
console.log('mouse up');
|
|
20390
20385
|
// find what was inside the selection box emit the select event and change their style
|
|
20391
20386
|
if (this.selectionBox) {
|
|
20392
20387
|
var box = this.component.shadowRoot.getElementById('ls-box-selector');
|
|
20393
20388
|
var fields = this.component.shadowRoot.querySelectorAll('ls-editor-field');
|
|
20394
20389
|
box.style.visibility = 'hidden';
|
|
20395
|
-
findIn(fields, box, true, event.shiftKey);
|
|
20396
|
-
var updatedFields = this.component.shadowRoot.querySelectorAll('ls-editor-field');
|
|
20397
|
-
this.selectFields.emit(Array.from(updatedFields)
|
|
20398
|
-
.filter(fx => fx.selected)
|
|
20399
|
-
.map(fx => fx.dataItem));
|
|
20400
20390
|
this.selectionBox = null;
|
|
20401
|
-
|
|
20391
|
+
const found = findIn(fields, box, true, event.shiftKey);
|
|
20392
|
+
this.selected = Array.from(found);
|
|
20393
|
+
console.log(found, this.selectionBox);
|
|
20394
|
+
this.selectFields.emit(found.map(fx => fx.dataItem));
|
|
20402
20395
|
}
|
|
20403
20396
|
}
|
|
20404
20397
|
function mouseClick(e) {
|
|
@@ -20426,6 +20419,8 @@ function mouseClick(e) {
|
|
|
20426
20419
|
this.selectFields.emit(selected.map(fx => fx.dataItem));
|
|
20427
20420
|
}
|
|
20428
20421
|
else {
|
|
20422
|
+
// reset the selection box location
|
|
20423
|
+
this.selectionBox = { x: e.clientX, y: e.clientY };
|
|
20429
20424
|
const fields = this.component.shadowRoot.querySelectorAll('ls-editor-field');
|
|
20430
20425
|
fields.forEach(f => {
|
|
20431
20426
|
const { left, top, bottom, right } = f.getBoundingClientRect();
|
|
@@ -20451,8 +20446,8 @@ function mouseDrop(event) {
|
|
|
20451
20446
|
var frame = this.component.shadowRoot.getElementById('ls-document-frame');
|
|
20452
20447
|
// Make a new API compatible id for a template element (prefix 'ele')
|
|
20453
20448
|
const id = btoa('ele' + crypto.randomUUID());
|
|
20454
|
-
const top = event.offsetY
|
|
20455
|
-
const left = event.offsetX
|
|
20449
|
+
const top = event.offsetY / this.zoom + frame.scrollTop;
|
|
20450
|
+
const left = event.offsetX / this.zoom + frame.scrollLeft;
|
|
20456
20451
|
// TODO: Put these defaults somewhere sensible
|
|
20457
20452
|
const newData = {
|
|
20458
20453
|
action: 'create',
|
|
@@ -24578,7 +24573,6 @@ class LsDocumentAdapter {
|
|
|
24578
24573
|
break;
|
|
24579
24574
|
}
|
|
24580
24575
|
const result = await this.execute(accessToken, query);
|
|
24581
|
-
console.log(query, result);
|
|
24582
24576
|
return { result, obj, event };
|
|
24583
24577
|
};
|
|
24584
24578
|
/**
|
|
@@ -24803,7 +24797,7 @@ const LsDocumentViewer = class {
|
|
|
24803
24797
|
validationErrors = [];
|
|
24804
24798
|
status;
|
|
24805
24799
|
groupInfo;
|
|
24806
|
-
selected;
|
|
24800
|
+
selected = [];
|
|
24807
24801
|
/**
|
|
24808
24802
|
* An ease of use property that will arrange document-viewer appropraitely.
|
|
24809
24803
|
* {'preview' | 'editor' | 'custom'}
|
|
@@ -24896,9 +24890,8 @@ const LsDocumentViewer = class {
|
|
|
24896
24890
|
// Send an internal event to be processed
|
|
24897
24891
|
update;
|
|
24898
24892
|
adapter;
|
|
24899
|
-
//
|
|
24893
|
+
// Action an external data action and use the result (if required)
|
|
24900
24894
|
mutateHandler(event) {
|
|
24901
|
-
console.log(event);
|
|
24902
24895
|
if (this.token)
|
|
24903
24896
|
event.detail.forEach(me => this.adapter.handleEvent(me, this.token).then(result => matchData.bind(this)(result)));
|
|
24904
24897
|
}
|
|
@@ -24931,17 +24924,26 @@ const LsDocumentViewer = class {
|
|
|
24931
24924
|
}
|
|
24932
24925
|
// Send selection changes to bars and panels if in use.
|
|
24933
24926
|
selectFieldsHandler(event) {
|
|
24927
|
+
const fields = Array.from(this.component.shadowRoot.querySelectorAll('ls-editor-field'));
|
|
24934
24928
|
// update the template with all the latest values in the
|
|
24935
24929
|
this._template = {
|
|
24936
24930
|
...this._template,
|
|
24937
|
-
elementConnection: { ...this._template.elementConnection, templateElements:
|
|
24931
|
+
elementConnection: { ...this._template.elementConnection, templateElements: fields.map(ef => ef.dataItem) }
|
|
24938
24932
|
};
|
|
24939
24933
|
var toolbar = this.component.shadowRoot.getElementById('ls-toolbar');
|
|
24940
24934
|
if (toolbar)
|
|
24941
24935
|
toolbar.dataItem = event.detail;
|
|
24942
24936
|
var propPanel = this.component.shadowRoot.getElementById('my-field-panel');
|
|
24943
|
-
if (propPanel)
|
|
24937
|
+
if (propPanel) {
|
|
24944
24938
|
propPanel.dataItem = event.detail;
|
|
24939
|
+
}
|
|
24940
|
+
// change style of selected fields
|
|
24941
|
+
event.detail.forEach(fc => {
|
|
24942
|
+
const fu = this.component.shadowRoot.getElementById('ls-field-' + fc.id);
|
|
24943
|
+
fu.selected = true;
|
|
24944
|
+
});
|
|
24945
|
+
this.selected = fields.filter(fx => fx.selected);
|
|
24946
|
+
this.selected.forEach(s => (s.selected = event.detail.map(d => d.id).includes(s.dataItem.id)));
|
|
24945
24947
|
this.validationErrors = validate.bind(this)(this._template);
|
|
24946
24948
|
}
|
|
24947
24949
|
// Send role selection changes to bars and panels
|
|
@@ -25109,7 +25111,7 @@ const LsDocumentViewer = class {
|
|
|
25109
25111
|
else if (update.action === 'delete') {
|
|
25110
25112
|
const fi = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
25111
25113
|
this.component.shadowRoot.getElementById('ls-document-frame').removeChild(fi);
|
|
25112
|
-
this.
|
|
25114
|
+
this.selected = [];
|
|
25113
25115
|
}
|
|
25114
25116
|
else {
|
|
25115
25117
|
console.warn('Unrecognised action, check Legalesign documentation. `create`, `update` and `delete` allowed.');
|
|
@@ -25160,6 +25162,7 @@ const LsDocumentViewer = class {
|
|
|
25160
25162
|
this.initViewer();
|
|
25161
25163
|
//Revalidate
|
|
25162
25164
|
this.validationErrors = validate.bind(this)(this._template);
|
|
25165
|
+
this.selected = [];
|
|
25163
25166
|
}
|
|
25164
25167
|
catch (e) {
|
|
25165
25168
|
console.error('Your access token is invalid.', e);
|
|
@@ -25175,7 +25178,7 @@ const LsDocumentViewer = class {
|
|
|
25175
25178
|
box.scrollLeft = (box.scrollWidth - box.clientWidth) / 2;
|
|
25176
25179
|
}
|
|
25177
25180
|
render() {
|
|
25178
|
-
return (index.h(index.Host, { key: '
|
|
25181
|
+
return (index.h(index.Host, { key: '079c3dca9d2e77381a5065218ebc5795257b7b5f' }, index.h(index.h.Fragment, null, index.h("div", { key: '344d5e56479caaadc6f82c4de47c52f08f7d5bc1', class: 'validation-tag-wrapper' }, index.h("ls-validation-tag", { key: '2fef322510e4be2fc6fe2ec6e70664e23ed9413f', validationErrors: this.validationErrors })), index.h("div", { key: '7b581394dd4536ed8f807a7ce5375723a54b2f8d', class: "page-header" }, index.h("p", { key: '0aa1f815c4bc989764efe1969c250fc39fff1294', class: "header-text-1" }, "Template Creation"), index.h("p", { key: 'f6369aff0df03f8ba40f149d4f5d8ca227e15a6c' }, "/"), index.h("p", { key: '3b93a9acaf60c7023286e069ab8ce4a93acc1c5a', class: "header-text-2" }, this._template?.title)), index.h("form", { key: '3f3f426a56d4020f609485b85b80851927060a61', 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 => {
|
|
25179
25182
|
if (manager.detail === 'document') {
|
|
25180
25183
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
25181
25184
|
documentManager.template = this._template;
|
|
@@ -25185,10 +25188,10 @@ const LsDocumentViewer = class {
|
|
|
25185
25188
|
participantManager.template = this._template;
|
|
25186
25189
|
}
|
|
25187
25190
|
this.manager = manager.detail;
|
|
25188
|
-
} }), 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
|
|
25191
|
+
} }), 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 => {
|
|
25189
25192
|
this.selected = [];
|
|
25190
25193
|
e.preventDefault();
|
|
25191
|
-
} }, 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: '
|
|
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: 'b7cda4e39b0b85515f38ceb2c413b2bd3af5089b', 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: '19d4e788c2f1ce3d3951854af41211d5598b1dd2', id: "ls-mid-area" }, index.h("div", { key: '83161a18cdb8e0ce58d7eb571936b2715ffc43e7', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, index.h("div", { key: 'ecbccb9f5bcd253caaa43a08e80957b31b970825', id: "ls-document-frame" }, index.h("canvas", { key: '53d262c1bbda820579da7c89ad63fb252a7d152d', id: "pdf-canvas", class: this.displayTable ? 'hidden' : '' }), index.h("ls-editor-table", { key: 'ed51cfcc623cfa374487ddd0692182e83620ef94', editor: this, class: this.displayTable ? '' : 'hidden' }), index.h("div", { key: '55856f133696700638f8fd7bd8a31ef1b5169f4a', id: "ls-box-selector" }))), index.h("ls-statusbar", { key: '3176526950bed152c446488efd5407717be0d55f', editor: this }))))));
|
|
25192
25195
|
}
|
|
25193
25196
|
static get watchers() { return {
|
|
25194
25197
|
"mode": ["modeHandler"],
|
|
@@ -25418,10 +25421,12 @@ const lsEditorFieldCss = ":host{display:block;position:absolute;margin:0px;paddi
|
|
|
25418
25421
|
const LsEditorField = class {
|
|
25419
25422
|
constructor(hostRef) {
|
|
25420
25423
|
index.registerInstance(this, hostRef);
|
|
25424
|
+
this.mutate = index.createEvent(this, "mutate");
|
|
25425
|
+
this.update = index.createEvent(this, "update");
|
|
25421
25426
|
}
|
|
25422
25427
|
get component() { return index.getElement(this); }
|
|
25423
25428
|
dataItem;
|
|
25424
|
-
selected;
|
|
25429
|
+
selected = false;
|
|
25425
25430
|
readonly;
|
|
25426
25431
|
type;
|
|
25427
25432
|
page;
|
|
@@ -25430,6 +25435,8 @@ const LsEditorField = class {
|
|
|
25430
25435
|
isEdgeDragging = false;
|
|
25431
25436
|
innerValue;
|
|
25432
25437
|
sizeObserver;
|
|
25438
|
+
mutate;
|
|
25439
|
+
update;
|
|
25433
25440
|
handleInput(e) {
|
|
25434
25441
|
if (e.code === 'Enter') {
|
|
25435
25442
|
this.isEditing = false;
|
|
@@ -25467,14 +25474,13 @@ const LsEditorField = class {
|
|
|
25467
25474
|
this.sizeObserver.disconnect();
|
|
25468
25475
|
this.innerValue = this.innerValue ? this.innerValue : this.dataItem?.value;
|
|
25469
25476
|
const editbox = this.component.shadowRoot.getElementById('editing-input');
|
|
25470
|
-
console.log(
|
|
25477
|
+
console.log(this.dataItem);
|
|
25471
25478
|
if (editbox) {
|
|
25472
25479
|
editbox.className = 'ls-editor-field-editable';
|
|
25473
25480
|
editbox.focus();
|
|
25474
25481
|
}
|
|
25475
25482
|
}
|
|
25476
25483
|
handleDragStart(event) {
|
|
25477
|
-
console.log('dragstart ls-editor-field', event, this.type);
|
|
25478
25484
|
// Add the target element's id to the data transfer object
|
|
25479
25485
|
event.dataTransfer.setData('application/json', JSON.stringify({
|
|
25480
25486
|
type: this.type,
|
|
@@ -25493,10 +25499,6 @@ const LsEditorField = class {
|
|
|
25493
25499
|
this.component.style.boxShadow = 'none';
|
|
25494
25500
|
}
|
|
25495
25501
|
}
|
|
25496
|
-
onInputChange(e) {
|
|
25497
|
-
// console.log("INPUT CHANGE", e);
|
|
25498
|
-
this.innerValue = e.target.value;
|
|
25499
|
-
}
|
|
25500
25502
|
componentDidLoad() {
|
|
25501
25503
|
this.sizeObserver = new ResizeObserver(entries => {
|
|
25502
25504
|
for (const entry of entries) {
|
|
@@ -25524,11 +25526,28 @@ const LsEditorField = class {
|
|
|
25524
25526
|
this.component.style.boxShadow = 'none';
|
|
25525
25527
|
}
|
|
25526
25528
|
}
|
|
25529
|
+
// Send one or more mutations up the chain
|
|
25530
|
+
// The source of the chain fires the mutation
|
|
25531
|
+
// NOTE this alter is debounced to account for typing
|
|
25532
|
+
alter(diff) {
|
|
25533
|
+
this.dataItem = { ...this.dataItem, ...diff };
|
|
25534
|
+
this.debounce(this.dataItem, 900);
|
|
25535
|
+
}
|
|
25536
|
+
labeltimer;
|
|
25537
|
+
debounce(data, delay) {
|
|
25538
|
+
if (this.labeltimer)
|
|
25539
|
+
clearTimeout(this.labeltimer);
|
|
25540
|
+
this.labeltimer = setTimeout(() => {
|
|
25541
|
+
const diffs = [{ action: 'update', data }];
|
|
25542
|
+
this.mutate.emit(diffs);
|
|
25543
|
+
this.update.emit(diffs);
|
|
25544
|
+
}, delay);
|
|
25545
|
+
}
|
|
25527
25546
|
render() {
|
|
25528
|
-
return (index.h(index.Host, { key: '
|
|
25547
|
+
return (index.h(index.Host, { key: '3ad1a3a7480b3fc1394db18a60acc7af63f7df98', style: { border: `2px ${defaultRolePalette[this.dataItem?.signer % 100].s60} solid` } }, index.h("div", { key: '16fe59242c50fd50bb96d65c6b3ffa2fa47c5e54', class: {
|
|
25529
25548
|
'ls-editor-field': true,
|
|
25530
25549
|
'is-selected': this.selected,
|
|
25531
|
-
} }, !this.dataItem?.optional && index.h("ls-icon", { key: '
|
|
25550
|
+
} }, !this.dataItem?.optional && index.h("ls-icon", { key: '71ae4733b4c8f05d1c75bb8b5445242b35d958a0', name: "required", size: "12", class: "required-icon" }), index.h("input", { key: '1039562d2c7a854b1da63ebc3c87b76290595436', id: "editing-input", class: this.isEditing ? 'ls-editor-field-editable' : 'hidden-field', type: getInputType(this.dataItem.validation).inputType, value: this.dataItem?.value, checked: this.dataItem?.value ? true : false, onInput: e => this.alter({ value: e.target.value }) }), index.h("div", { key: 'e101d06a1b320479e047a03ccdc0c58fcdb0bfec', id: "field-info", class: this.isEditing ? 'hidden-field' : 'ls-editor-field-draggable' }, this.dataItem.value.length && this.dataItem.value || this.dataItem?.label || this.dataItem?.formElementType))));
|
|
25532
25551
|
}
|
|
25533
25552
|
static get watchers() { return {
|
|
25534
25553
|
"selected": ["watchSelectedHandler"]
|
|
@@ -25761,9 +25780,9 @@ const LsFieldContent = class {
|
|
|
25761
25780
|
}, delay);
|
|
25762
25781
|
}
|
|
25763
25782
|
render() {
|
|
25764
|
-
return (index.h(index.Host, { key: '
|
|
25783
|
+
return (index.h(index.Host, { key: '36e48c5852682a2f976d5b30ffb7ea3bfe24d5f1' }, index.h("ls-props-section", { key: '39ecdfe604236ed2f36dd845e73e70163f5a6ecf', sectionTitle: "Field Type", sectionDescription: "The Field you currently have selected" }, index.h("ls-field-type-display", { key: '5efb9a29fb2f783e55f483ec602fd596624e1c35', fieldType: this.dataItem?.elementType, assignee: this.dataItem?.signer })), index.h("ls-props-section", { key: '85003365f16c771480c03d6e08aaedf48b1824bb', sectionTitle: "Required Field", row: true }, index.h("ls-toggle", { key: 'ed7319e6bd551c1bc8e7d59387fe7b3e3397b7be', id: "toggle-required", checked: !this.dataItem?.optional, onValueChange: (ev) => this.alter({ optional: !ev.detail }) })), index.h("ls-props-section", { key: 'a6d76cd96f21fbb1f037eebd7bd57b21471940ff', sectionTitle: "Field Label", sectionDescription: "Add a label to clarify the information required from the Recipient." }, index.h("input", { key: '48b499a96bb887c88714dc69d2e87af8f1c00dd9', value: this.dataItem?.label, placeholder: "eg. Sign Here", onInput: (e) => this.alter({ label: e.target.value }) })), index.h("ls-props-section", { key: '2d30ed7ac29d061820ef36debad71ff9460dfb4f', sectionTitle: "Value", sectionDescription: "A prefilled value that can be altered by the signer." }, index.h("input", { key: 'f50dde6f4df5d1fe16ed4bf907cf5bd4a4a5f0a2', 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: 'ba47cfa4d3450bfc5dd31a7c0308a905eb38b4e1', sectionTitle: "Options", sectionDescription: "Define the options available in the dropdown. One option per line." }, index.h("textarea", { key: '6f9bc538bca775252b47a74ba4796ee1952bb1df', 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: 'e1b1ce449ccc954f869c98f20d8a64f2372bb677', sectionTitle: "Content Format", sectionDescription: "Select the specific format you want the Recipient to enter." }, index.h("ls-input-wrapper", { key: '4276c393352923286ee12436c43c08e9f3d824e2', select: true }, index.h("select", { key: '58122cae81c4db823ebac128a9067401d312cf12', onChange: (ev) => this.alter({ validation: parseInt(ev.target.value) }) }, validationTypes
|
|
25765
25784
|
.filter(type => type.formType === this.dataItem?.elementType)
|
|
25766
|
-
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), index.h("slot", { key: '
|
|
25785
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), index.h("slot", { key: 'dd4076914cf2d5c2afaef4490673ef1c59154907' })));
|
|
25767
25786
|
}
|
|
25768
25787
|
};
|
|
25769
25788
|
LsFieldContent.style = lsFieldContentCss;
|
|
@@ -25805,7 +25824,7 @@ const LsFieldDimensions = class {
|
|
|
25805
25824
|
}
|
|
25806
25825
|
}
|
|
25807
25826
|
render() {
|
|
25808
|
-
return (index.h(index.Host, { key: '
|
|
25827
|
+
return (index.h(index.Host, { key: '19d830f9e2acf0125befaaa5386613da819d5f0e' }, this.isMultiple(this.dataItem) && (index.h("div", { key: '629f80415218ade978ce45a9fbeea38f136a1b33', class: 'ls-field-properties-section' }, index.h("div", { key: 'a027cc20ae591f94ed54d9e6e93b7826a87dd583', class: 'ls-field-properties-section-text' }, index.h("p", { key: '24270cee4bdecc6c06a06efb34169827dc0aa96e', class: 'ls-field-properties-section-title' }, "Height and Width"), index.h("p", { key: '8558ee8920871270943edbda0392c21eae948c94', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), index.h("div", { key: 'fd8b5281f3a25de363bcbb1ff93189dbadfe7b15', class: 'input-row' }, index.h("div", { key: '6f6d9205a2b1a14c8b0618d8f097290edb43690f', class: 'input-wrapper' }, index.h("ls-icon", { key: '2eb580572a2be6ea8cc204447f760da63d06807f', id: "selectLeadingIcon", name: "field-match-width" }), index.h("input", { key: '2bc5d6f1c7f725ecb6ca82c4081ed5b42b7ee56e', class: 'has-leading-icon', aria: "field-width", id: "field-width", onChange: e => this.alter({ width: e.target.value }) })), index.h("div", { key: '6affcfc83bc4cde7a9fed80415c9d21495e1466c', class: 'input-wrapper' }, index.h("ls-icon", { key: '634b0e72778978116b39cf15869884bbe51eabdc', id: "selectLeadingIcon", name: "field-match-height" }), index.h("input", { key: '762fdbd4b3ff084d7d136f4536d592bf07cf8342', 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: 'aa4c66751db7f2d3dfca151edc1cb23cbfdbfce1', class: 'field-set' }, index.h("div", { key: 'b2e86370878a977450c3057d7892f96a5f3f7dcb', class: 'ls-field-properties-section' }, index.h("div", { key: 'e3c5d394149132da170e7c61b70d6739924b9f52', class: 'ls-field-properties-section-text' }, index.h("p", { key: '52f5b30d62cfc5541952be0650411df7c6d51c42', class: 'ls-field-properties-section-title' }, "Height and Width"), index.h("p", { key: '7b7c280d971473115859f8fb7f274b9e3a028fa1', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), index.h("div", { key: 'ad761e6552cf41cab1abe005a084c68ead82175c', class: 'input-row' }, index.h("div", { key: '3666540cd6533c6d2698cb6b2bd722d7749f930e', class: 'input-wrapper' }, index.h("ls-icon", { key: '0d27684b779b5bcdc69bbc22402615706590c94b', id: "selectLeadingIcon", name: "field-match-width" }), index.h("input", { key: '88b451a53d36ef023545ff0b6cc59ceab85b714c', 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: 'ecca70d84553d8f39cba8c4c5915761e30adf0ab', class: 'input-wrapper' }, index.h("ls-icon", { key: 'c867638bc065ae5702b3e7887cc4f0a42b9e13e3', id: "selectLeadingIcon", name: "field-match-height" }), index.h("input", { key: '44dc86a42a13de363dce31fe99151183da4411aa', 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: 'fc9f465fb17869fcdf129ddbdcc9e3a2d293ef8f', class: 'ls-field-properties-section' }, index.h("div", { key: 'ff59482f02e40b4c2b36ff8bc3e6e2bd6cf2f3e7', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'ff4ab1e6fddcd3acb152986da22d0578b95379de', class: 'ls-field-properties-section-title' }, "Scale and Resize"), index.h("p", { key: 'e421512109ff01779b429be7bef8d94e7aede922', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), index.h("div", { key: 'f73d48bf4e11b750e76bdb19f7c42edd272c0825', class: 'button-group' }, index.h("button", { key: '401b1544201acb638e9370ffa11d18423adb5b4a', disabled: true }, index.h("ls-icon", { key: '54d6007197fff3ea5786af142affcc1a7a68f12e', name: "field-scale" })), index.h("button", { key: '688a49435f72a6b940f5bc1a743465d90ce70079', disabled: true }, index.h("ls-icon", { key: '5b29da650220c305d3cd4a10a36c773ffd8484e5', name: "field-match-width" })), index.h("button", { key: 'ddc295463cae884a14c3391c369af08d406ce575', disabled: true }, index.h("ls-icon", { key: 'd21cca2e51d9556c187fd8688983aef92e09c2dc', name: "field-match-height" }))))))));
|
|
25809
25828
|
}
|
|
25810
25829
|
};
|
|
25811
25830
|
LsFieldDimensions.style = lsFieldDimensionsCss;
|
|
@@ -25901,11 +25920,11 @@ const LsFieldDistribute = class {
|
|
|
25901
25920
|
this.update.emit(diffs);
|
|
25902
25921
|
}
|
|
25903
25922
|
render() {
|
|
25904
|
-
return (index.h(index.Host, { key: '
|
|
25923
|
+
return (index.h(index.Host, { key: '1da6e89c29b012402fb855b09d6f89412b7fffff' }, index.h("div", { key: '13a5e1dfededc5e857f85d731fb23f59b6b8f64b', class: 'ls-field-properties-section' }, index.h("div", { key: 'af4c4a1dc679bff814e0996a56169db0d65c0a52', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'afcd55f8ea2c8000ddaba5bcd516a1926a3f103a', class: 'ls-field-properties-section-title' }, "Distribution"), index.h("p", { key: 'db559e60e145234f95497eca284ccf241fc5f094', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), index.h("div", { key: '4a8433efc339fc1a995ef964abbda61234a00f52', class: 'button-group' }, index.h("button", { key: 'd91bb4652162d97ad921ec91c9c0261f617a518f', onClick: () => {
|
|
25905
25924
|
this.distributeVertical();
|
|
25906
|
-
}, "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: '
|
|
25925
|
+
}, "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: '4c7935424e784dc1fc3ebfe996101c492c8cb4de', name: "field-distribute-vertically" })), index.h("button", { key: '0ac25cb0252642f565af0e43d8e3d62c8869469d', onClick: () => {
|
|
25907
25926
|
this.distributeHorizontal();
|
|
25908
|
-
}, "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: '
|
|
25927
|
+
}, "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: '00d5b191557e95b6dd8f7c9866ade809c5392046', name: "field-distribute-horizontally" })))), index.h("div", { key: 'd21c0297023873f7d752163fb06557504ca3ce91', class: 'ls-field-properties-section' }, index.h("div", { key: '5d29996d6e3c25621ba760bca38a0b76a02c1099', class: 'ls-field-properties-section-text' }, index.h("p", { key: '00ab146d74a0446aad281a46fdafaae20384674c', class: 'ls-field-properties-section-title' }, "Gap"), index.h("p", { key: '968370f8ece75d442fa8b1adc2809a289653b295', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), index.h("div", { key: '2819ad7513258f7c3c4096f171578d5c704d3fc8', class: 'input-row' }, index.h("div", { key: 'a8d5d086e974b911490df419059a82b43cc566de', class: 'input-wrapper' }, index.h("ls-icon", { key: 'fa72a36c4da15a210ee486477b0c362741002940', id: "selectLeadingIcon", name: "field-distribute-vertically" }), index.h("input", { key: '52853aa1afe326391b735f534ff0987dab350037', type: "number", class: 'has-leading-icon', id: "ls-fix-vertical-space", value: '', size: 4, min: 0, max: 9999 })), index.h("div", { key: '57a5adfb1675e7fd5ab71c71ce0d239fc5777c2b', class: 'input-wrapper' }, index.h("ls-icon", { key: '6114732c75cf3499985d80b718578bd6140bd801', id: "selectLeadingIcon", name: "field-distribute-horizontally" }), index.h("input", { key: '729381797b69aca62402451473b3ac2507e21a5c', type: "number", class: 'has-leading-icon', id: "ls-fix-horizontal-space", value: '', size: 4, min: 0, max: 9999 })))), index.h("slot", { key: 'ca7b442e1395376563a47d5377eb9962ace34f38' })));
|
|
25909
25928
|
}
|
|
25910
25929
|
};
|
|
25911
25930
|
LsFieldDistribute.style = lsFieldDistributeCss;
|
|
@@ -25934,7 +25953,7 @@ const LsFieldFooter = class {
|
|
|
25934
25953
|
this.mutate.emit([{ action: 'create', data: { ...this.dataItem, id: btoa('ele' + crypto.randomUUID()) } }]);
|
|
25935
25954
|
};
|
|
25936
25955
|
render() {
|
|
25937
|
-
return (index.h(index.Host, { key: '
|
|
25956
|
+
return (index.h(index.Host, { key: '71d3ecbf124d31efdd15641f46406cc19ef2fad9' }, index.h("div", { key: '9e44d8fa9c1b18199d49ff59f7d9e89cb596a360', class: 'button-footer' }, index.h("button", { key: '3e9fc08011e29e1efd6803f9a03b85dc1209c242', class: 'secondary', onClick: () => this.duplicateField() }, index.h("ls-icon", { key: '9a457d4bca28dcdbe708b32864a66bf690a7212c', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: '05743aea386445a51c808baced5dc540f9c323a1', class: 'destructive', onClick: () => this.deleteField() }, index.h("ls-icon", { key: '7be1455b97f1768ce615474794e0b7dd75a4ecf3', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: '54a62065f104f644ab6454a801a0ed913205009e' })));
|
|
25938
25957
|
}
|
|
25939
25958
|
};
|
|
25940
25959
|
LsFieldFooter.style = lsFieldFooterCss;
|
|
@@ -25963,25 +25982,25 @@ const LsFieldFormat = class {
|
|
|
25963
25982
|
this.update.emit(diffs);
|
|
25964
25983
|
}
|
|
25965
25984
|
render() {
|
|
25966
|
-
return (index.h(index.Host, { key: '
|
|
25985
|
+
return (index.h(index.Host, { key: '9830d08c3b141b3180280179ba118f2aff5172f0' }, this.dataItem && this.dataItem.length > 1 && (index.h("div", { key: 'f125719127e3f8b014cff454bce8fa432dba8570', class: 'ls-field-format-bar' }, index.h("div", { key: '66e387c55b1d9ce916e6944938fbedec7b60df8c', class: " input-wrapper" }, index.h("ls-icon", { key: 'ca4b833a2507e878c35ebf5940beef0ecd2c7776', id: "selectLeadingIcon", name: "typeface" }), index.h("select", { key: 'fcba8b29e969fac7a9acbbeb855d28eeed20ea1f', onChange: input => {
|
|
25967
25986
|
this.alter({ fontName: input.target.value });
|
|
25968
|
-
}, class: 'has-leading-icon' }, index.h("option", { key: '
|
|
25987
|
+
}, class: 'has-leading-icon' }, index.h("option", { key: '33bab119c584bbd70959f01c0a86f47a8472304c', value: "arial" }, "Arial"), index.h("option", { key: '2665a63ab41a4bab8ef59b85dd944495585aba6b', value: "liberation sans" }, "Liberation Sans"), index.h("option", { key: 'dc387a4e0ddd99d2344ef27feef9628286cc1cc3', value: "courier" }, "Courier"), index.h("option", { key: 'c00614f48ddea8e534b14c25880d3a7563f88558', value: "helvetica" }, "Helvetica"), index.h("option", { key: '0558b3283a7654bf6101cd3e31ff633ed4ad7c02', value: "verdana" }, "Verdana")), index.h("ls-icon", { key: '0db075666eaf2ebfba3d24cf15c8607907d568fe', id: "selectorIcon", name: "selector" })), index.h("div", { key: 'ac4632fa34024e3576a882c257e2b633dd39ca23', class: "input-wrapper" }, index.h("ls-icon", { key: '49f56b4031bac85b8d3f240ca38b45e6016517f8', id: "selectLeadingIcon", name: "typesize" }), index.h("input", { key: '6f1c5fbcbe572c49d4343ea7cba63cfe15511404', width: "30", size: 4, class: 'has-leading-icon' })), index.h("div", { key: '3b7c4400dd7bb04751decbf8ad8ea49154c9094f', class: 'button-group' }, index.h("button", { key: 'd0421795af81429299836e36993534b71d094cc4', onClick: () => {
|
|
25969
25988
|
this.alter({ align: 'left' });
|
|
25970
|
-
} }, index.h("ls-icon", { key: '
|
|
25989
|
+
} }, index.h("ls-icon", { key: '10b2b34fdf03fdab5f9938b1352a617ff1a8979d', name: "menu-alt-2" })), index.h("button", { key: '5965c9b86e64cd39a81d1334992daf63b08dcadd', onClick: () => {
|
|
25971
25990
|
this.alter({ align: 'center' });
|
|
25972
|
-
} }, index.h("ls-icon", { key: '
|
|
25991
|
+
} }, index.h("ls-icon", { key: '95ada12f033106a1b5ff8381a21ab2f4751b8b2d', name: "menu-alt-5" })), index.h("button", { key: '12c263cf73c90f58f202e99eb28863b7fa44b6c3', onClick: () => {
|
|
25973
25992
|
this.alter({ align: 'right' });
|
|
25974
|
-
} }, index.h("ls-icon", { key: '
|
|
25993
|
+
} }, index.h("ls-icon", { key: 'deac6371af9a07eac83385bf769af33f3ac895d7', name: "menu-alt-3" }))))), this.dataItem && this.dataItem.length === 1 && (index.h("div", { key: '4d6bb447542540466b47736e2cdd9278f5fb9166', class: 'ls-field-format-bar' }, index.h("div", { key: 'f33f4da0a2e044cdb19b67e58e458f6bea84a882', class: "input-wrapper" }, index.h("ls-icon", { key: 'f6af8ec3739e7bce77c1c87a40d02f6696a32613', id: "selectorIcon", name: "selector" }), index.h("ls-icon", { key: '739d045a9dd6ce8dbb4dd7b67cfe37dd9eb5e638', id: "selectLeadingIcon", name: "typeface" }), index.h("select", { key: 'e678cccd1b544d4a271bdf099ee546e614acdb33', onChange: input => {
|
|
25975
25994
|
this.alter({ fontName: input.target.value });
|
|
25976
|
-
}, class: 'has-leading-icon' }, index.h("option", { key: '
|
|
25995
|
+
}, class: 'has-leading-icon' }, index.h("option", { key: '8f980c08ba53d7ec68b24205c570fd1d51d2879b', value: "arial" }, "Arial"), index.h("option", { key: '9ac51a1f5b47745065ab11047381c21c000147b7', value: "liberation sans" }, "Liberation Sans"), index.h("option", { key: '51625f9069b8a7f9f050a596baaea41026e60e14', value: "courier" }, "Courier"), index.h("option", { key: '87cfc98d3f120474d5d94800df81371163bdc1c6', value: "helvetica" }, "Helvetica"), index.h("option", { key: '297c02916456ab9b4ee0534170f18293ffc7022d', value: "verdana" }, "Verdana"))), index.h("div", { key: '615054d6fad85ed88a0f614d05d217e95a3ed69b', class: "input-wrapper" }, index.h("ls-icon", { key: 'dbe200893041354ea6d4b0e43903aecd9829cccb', id: "selectLeadingIcon", name: "typesize" }), index.h("input", { key: '7140be312d065e352cc801dc5355f795f9052df3', width: "30", size: 4, value: this.dataItem[0].fontSize, onChange: input => {
|
|
25977
25996
|
this.alter({ fontSize: input.target.value });
|
|
25978
|
-
}, class: 'has-leading-icon' })), index.h("div", { key: '
|
|
25997
|
+
}, class: 'has-leading-icon' })), index.h("div", { key: '1d71bd91f2423f24a9b6ae2768a091ba88b9fac0', class: 'button-group' }, index.h("button", { key: '591012d14dd298aa6ef60de1026a8fda55947669', onClick: () => {
|
|
25979
25998
|
this.alter({ align: 'left' });
|
|
25980
|
-
} }, index.h("ls-icon", { key: '
|
|
25999
|
+
} }, index.h("ls-icon", { key: '8e12a1e29b2bf2c2549aa224c0e189e79635c954', name: "menu-alt-2" })), index.h("button", { key: '67e49dc4631e3390da677fd35acc830aff2fa4db', onClick: () => {
|
|
25981
26000
|
this.alter({ align: 'center' });
|
|
25982
|
-
} }, index.h("ls-icon", { key: '
|
|
26001
|
+
} }, index.h("ls-icon", { key: 'e44c688f14e317dc36187e63103cc471da7e7bcd', name: "menu-alt-5" })), index.h("button", { key: 'a1b000dbce0011ec0da15ce6bfbd414a5020ab22', onClick: () => {
|
|
25983
26002
|
this.alter({ align: 'right' });
|
|
25984
|
-
} }, index.h("ls-icon", { key: '
|
|
26003
|
+
} }, index.h("ls-icon", { key: '0181dc2fef0afa5b0412234f15363db2f4b33283', name: "menu-alt-3" })))))));
|
|
25985
26004
|
}
|
|
25986
26005
|
};
|
|
25987
26006
|
LsFieldFormat.style = lsFieldFormatCss;
|
|
@@ -26043,7 +26062,7 @@ const LsFieldPlacement = class {
|
|
|
26043
26062
|
return this.dataItem[0].pageDimensions[this.dataItem[0].page].height - this.dataItem[0].height;
|
|
26044
26063
|
}
|
|
26045
26064
|
render() {
|
|
26046
|
-
return (index.h(index.Host, { key: '
|
|
26065
|
+
return (index.h(index.Host, { key: 'bf165db185ff27a97747d35c439acc36f320cec0' }, this.isMultiple(this.dataItem) && (index.h("div", { key: '28da50141d7f991f3bf1ee51849ca425eaf25a91', class: 'ls-field-properties-section' }, index.h("div", { key: '9d66acfc9a2c7eed9d4f52d250586c1942e7a3ae', class: 'ls-field-properties-section-text' }, index.h("p", { key: '7c3d63ca77a43cfddd265d08d12a68b04e899c11', class: 'ls-field-properties-section-title' }, "Location"), index.h("p", { key: '6b974149ab31cc52caaddf785d8a151660d11044', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), index.h("div", { key: '4ea32eb6799737a8e5962bd814d6e270adfc5a24', class: 'input-row' }, index.h("div", { key: '60303ebaafc5ea7dcc0bea71a029ef443decad51', class: 'input-wrapper' }, index.h("ls-icon", { key: 'b55c508d607d9eddec4e870c00c6e2398f724ce4', id: "selectLeadingIcon", name: "x-letter" }), index.h("input", { key: '41c9e975d7050364a5b3f0cca93b002057694645', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", onChange: e => this.alter({ left: e.target.value }) })), index.h("div", { key: 'ed8258c26042213514cc13f3b2ec5504694de514', class: 'input-wrapper' }, index.h("ls-icon", { key: '28871226f68e0cb9c547cb3e60347ecb2ab91b92', id: "selectLeadingIcon", name: "y" }), index.h("input", { key: '90bd7547481fbab4a2bf19d7675b69e67e99b128', 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: 'd59db0069032eb21d95be7e7e00fe13a55855b6c', class: 'field-set' }, index.h("div", { key: '3da316b826b05ca5c40e86c20ac94a041c9e397b', class: 'ls-field-properties-section' }, index.h("div", { key: '3f25d6a85a54154f7d98b7a8297ea457f3c1d913', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'efa3e1f4e90cf9b84dc6fae89ed555a8afbe2ef9', class: 'ls-field-properties-section-title' }, "Alignment"), index.h("p", { key: 'a4cc37bf9765f780e0acc534c881d2a8637285cd', 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: '6694fe7630c8b20a0491d1af1a151a75aeb3eec7', class: 'multi-button-group-row' }, index.h("div", { key: '29fff0131a1003e441b85f341981e206cb1ee3da', class: 'button-group' }, index.h("button", { key: '0d551642e5ee2fa1eca06f5b86b61159d906fd0f', onClick: () => { this.alter({ left: 0 }); } }, index.h("ls-icon", { key: 'a36f8771e366de820758bfee744da9bde4c9e3ae', name: "field-alignment-left" })), index.h("button", { key: '6a05dafda45385eb977f33427aeb8c7a7d798149', onClick: () => { this.alter({ left: this.center() }); } }, index.h("ls-icon", { key: '3fda591e0cb4920c20206fa6d8ae2352bd742448', name: "field-alignment-centre" })), index.h("button", { key: '99a609d8e76626e46f34bf4fcc6542cd16027d46', onClick: () => { this.alter({ left: this.right() }); } }, index.h("ls-icon", { key: 'e1ff627dccf82333f8f425ab1153cc260f095552', name: "field-alignment-right" }))), index.h("div", { key: 'bafa35fe910a001ccd76935ab68f37ea83b270e9', class: 'button-group' }, index.h("button", { key: '4b1de1698106e5accee226cdc7cd7cd2ede94c3c', onClick: () => this.alter({ top: 0 }) }, index.h("ls-icon", { key: 'bb55c8594838517aca3eb553cd4cb2581c8a1b2e', name: "field-alignment-top" })), index.h("button", { key: '937656e3a4c586480bdadf187966181585693698', onClick: () => { this.alter({ top: this.middle() }); } }, index.h("ls-icon", { key: '4b98a2548231d5c5039e1ac5828eac1d98f468d9', name: "field-alignment-middle" })), index.h("button", { key: 'e805d719c5f88cca065d15fc2ff51d603d0c5d4d', onClick: () => { this.alter({ top: this.bottom() }); } }, index.h("ls-icon", { key: '7dad1351fbb73624b1d507d8ffee1346ad0f35c6', name: "field-alignment-bottom" }))))), index.h("div", { key: 'eb263b6ec37c7bcf57d31573c430e0d87db8cc63', class: 'ls-field-properties-section' }, index.h("div", { key: '79106d27e3afa8cbe58cc1b0d24a9a691f3631e4', class: 'ls-field-properties-section-text' }, index.h("p", { key: '1d6f966bbc0e560654ff10ab116b58bd657efeb8', class: 'ls-field-properties-section-title' }, "Location"), index.h("p", { key: '2ec6eba189500c660d982b61b6cd9c642f9b1495', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), index.h("div", { key: 'f05b96e1b921964dd71f68887441aa7433cf6eba', class: 'input-row' }, index.h("div", { key: 'abd5ed8c84c17023a69cc6efa7365fde3c740dd7', class: 'input-wrapper' }, index.h("ls-icon", { key: 'f4674ea809efbb46dc5bbf32b3c2d050341cf2f8', id: "selectLeadingIcon", name: "x-letter" }), index.h("input", { key: '2f34f8e1f424f58d16b81d0323df2c5f429a6015', 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: '42889a206d59f970040f95d34f0c4804797fb846', class: 'input-wrapper' }, index.h("ls-icon", { key: '05687fb70acbb665a96fe5f5a246a102b65f743f', id: "selectLeadingIcon", name: "y" }), index.h("input", { key: '46367dbecf5f7177391f942279a7a7d58b7d8e28', 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: 'ff92c96808e8ab1f5e9f1d12f945cf3b50617d00', class: 'ls-field-properties-section' }, index.h("div", { key: 'b5cc48867cf12657186c938ae0827202b7700d40', class: 'ls-field-properties-section-text' }, index.h("p", { key: '3b09f573e94322e972e36f0486d92a279b68a28f', class: 'ls-field-properties-section-title' }, "Distribution"), index.h("p", { key: 'fe759b355b5ce3f24a9ee70c94bc3b40daffa418', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), index.h("div", { key: '8fc1f92da89df534a867c3d44e4d63a904803baa', class: 'button-group' }, index.h("button", { key: '6717e349f2f0c4eeb21d6256a1d1cb39faf8f770', disabled: true }, index.h("ls-icon", { key: '72fc889318415749f805db95ceca3487cb26eb98', name: "field-distribute-vertically" })), index.h("button", { key: '55a4fde0120b963ed9f07dd8490f1abbf44b5540', disabled: true }, index.h("ls-icon", { key: 'c3a7a795d6d9da295fd4c7aaef5bf1843b13a26e', name: "field-distribute-horizontally" })))), index.h("div", { key: '57184185505c6dfe16322b8d6b59c3fedf30ef65', class: 'ls-field-properties-section' }, index.h("div", { key: 'd0522de83bfa4a5b6bef87072658f511600c9aa7', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'cd7880e2f53b6452c5fb136d6a4eaecee7f4403c', class: 'ls-field-properties-section-title' }, "Gap"), index.h("p", { key: '019e02dcdb5fe4ae4c4aad9f3deacab084c2b306', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), index.h("div", { key: '8e566f1e91410ee3cb82b4e4c0a0c27e34ffac03', class: 'input-row' }, index.h("div", { key: '811db7eb6e7b3edf49015440814c222a04e88f45', class: 'input-wrapper' }, index.h("ls-icon", { key: '1b7b4c849995b07da7125b4f9e8d95d20430e043', id: "selectLeadingIconDisabled", name: "field-distribute-vertically" }), index.h("input", { key: '2a61868d165b84d85064d5ce30d60502ef702610', type: "number", value: "0", class: 'has-leading-icon', aria: "vertical-gap", id: "vertical-gap", disabled: true })), index.h("div", { key: 'c174ddc8fde35fdef12602d22c0f4330392372fa', class: 'input-wrapper' }, index.h("ls-icon", { key: 'e540dbbae07e64eb0bae816a54775d939a588e82', id: "selectLeadingIconDisabled", name: "field-distribute-horizontally" }), index.h("input", { key: '8b3d0cf223379a4ed8fd7561af482b5a7b2731c3', type: "number", value: "0", class: 'has-leading-icon', aria: "horizontal-gap", id: "horizontal-gap", disabled: true }))))))));
|
|
26047
26066
|
}
|
|
26048
26067
|
};
|
|
26049
26068
|
LsFieldPlacement.style = lsFieldPlacementCss;
|
|
@@ -26086,7 +26105,7 @@ const LsFieldProperties = class {
|
|
|
26086
26105
|
return index.h("ls-field-properties-multiple", { dataItem: this.dataItem });
|
|
26087
26106
|
}
|
|
26088
26107
|
render() {
|
|
26089
|
-
return (index.h(index.Host, { key: '
|
|
26108
|
+
return (index.h(index.Host, { key: '81a4f69d51691f6bb43ad01c130207fa0bdb71c7' }, this.dataItem && this.renderFields(), index.h("slot", { key: '53546d9623461dcc729c2fcd838fc0b885f19df8' })));
|
|
26090
26109
|
}
|
|
26091
26110
|
};
|
|
26092
26111
|
LsFieldProperties.style = lsFieldPropertiesCss;
|
|
@@ -26136,7 +26155,7 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
26136
26155
|
return '';
|
|
26137
26156
|
}
|
|
26138
26157
|
render() {
|
|
26139
|
-
return (index.h(index.Host, { key: '
|
|
26158
|
+
return (index.h(index.Host, { key: '92737a84b80d8010a6287f30945f9df9952fe550' }, index.h("div", { key: 'e5f3a70117500194d06dcca2517a6d80456958dc', class: 'expand-fields-row', onClick: () => (this.expanded = !this.expanded) }, index.h("ls-icon", { key: 'f1d233d3156888ecacb0e1f479e2bfbce6d3abb9', name: this.expanded ? 'expand' : 'collapse', size: "20", solid: true }), index.h("p", { key: '79a344a0919ce2bea99dbe479f6bfc94f40e64a0' }, "Advanced Properties")), this.expanded && (index.h("div", { key: '19ed81c0c6d5eec89f7ed791a54e72ac9d28df85', class: 'field-set' }, index.h("ls-props-section", { key: '2874e24e5c14103feddec461b705d14947d94e90', sectionTitle: "Field Order", sectionDescription: "Determines what order fields will be filled in by the user" }, index.h("input", { key: '244706dccaf95e064329dbce846bf095e74305b4', value: this.getValue('fieldOrder'), type: "text", placeholder: "eg. 1", onChange: e => this.alter({ fieldOrder: e.target.value }) })), index.h("ls-props-section", { key: 'cc12de5c345f5fe2eacc578a20e9fc29c9bdc53a', sectionTitle: "Ref. Name" }, index.h("input", { key: '75ec554e0527e4e86bc431d8e11a48e21bb797d4', value: this.getValue('link'), placeholder: "eg. checkbox group", onChange: e => this.alter({ link: e.target.value }) })), index.h("ls-props-section", { key: '0c1c05a72edf3f40cf1ab4376245de848f2ba3ab', sectionTitle: "Link Type", sectionDescription: "Determines in what way this field is linked to other fields" }, index.h("select", { key: '01f06a4736e7e84bb9450390d4e67483c57ec76c', onChange: e => this.alter({ linkType: e.target.value }), name: "Link Field", "aria-label": "Link Field" }, index.h("option", { key: '0a460d22381e54bf3e51127ddfd9f99173b2c30c', value: "0", selected: this.getValue('linkType') === '0' }, "None"), index.h("option", { key: '9c9eed5cfb5567137f20470ac0fa906d2497fc4b', value: "1", selected: this.getValue('linkType') === '1' }, "One of a group (e.g. select one checkbox)"), index.h("option", { key: '2cbc05b68dd4c6c2ae06b14eb450d37b3862b1b8', value: "2", selected: this.getValue('linkType') === '2' }, "Add to a total"), index.h("option", { key: '693934edcc5fd525a6db7112c4b9f5891c286cd5', value: "3", selected: this.getValue('linkType') === '3' }, "Make this conditional upon..."))), index.h("ls-props-section", { key: '8cff7358763a8673a435596ceb8e2fe72e05d634', sectionTitle: "Link Value", sectionDescription: "Fields with the same Link Value will be linked together" }, index.h("input", { key: '06606d2f951fd737ac14bb74fa49eeedb082c1a4', value: this.getValue('logicAction'), width: "30", placeholder: "eg. checkbox group", onChange: e => this.alter({ logicAction: e.target.value }) }))))));
|
|
26140
26159
|
}
|
|
26141
26160
|
};
|
|
26142
26161
|
LsFieldPropertiesAdvanced.style = lsFieldPropertiesAdvancedCss;
|
|
@@ -26149,7 +26168,7 @@ const LsFieldPropertiesAutosign = class {
|
|
|
26149
26168
|
}
|
|
26150
26169
|
dataItem;
|
|
26151
26170
|
render() {
|
|
26152
|
-
return (index.h(index.Host, { key: '
|
|
26171
|
+
return (index.h(index.Host, { key: '1370a689bd756a7b3322b8a0b79eaf2ca8daef97' }, index.h("div", { key: '7f9c66dd492d817a9ca731eb439ebae63542de03', class: "ls-field-properties-section" }, "Self Sign Field"), index.h("div", { key: 'd4b7a971288792aa196c7fd86ff4ae34359b9400' }, "Label: ", index.h("input", { key: '741c908b66ce73466ef3d8554b1259b1dfb9ad99', value: this.dataItem?.label, width: "30" })), index.h("ls-field-dimensions", { key: 'efc52c57c322088a72c40440eb1d564687f0d3fe', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '5c96421fce1126fd6c6c618155cc8f5ed41e2ca7', dataItem: this.dataItem }), index.h("ls-field-footer", { key: '1806381c74a36eecfd1a2db9df7294fb0ca1b58f', dataItem: this.dataItem }), index.h("slot", { key: 'a0047935845af09666dde9a82076bb4141b9eb55' })));
|
|
26153
26172
|
}
|
|
26154
26173
|
};
|
|
26155
26174
|
LsFieldPropertiesAutosign.style = lsFieldPropertiesAutosignCss;
|
|
@@ -26169,7 +26188,7 @@ const LsFieldPropertiesContainer = class {
|
|
|
26169
26188
|
}
|
|
26170
26189
|
}
|
|
26171
26190
|
render() {
|
|
26172
|
-
return (index.h(index.Host, { key: '
|
|
26191
|
+
return (index.h(index.Host, { key: '02eee9d90b4f8abd72f9e193fe04eb5597f3490e' }, this.tabs.length > 1 && (index.h("div", { key: 'a00dd72171808308d53a8d81ffc89669f1bc65d2', 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: 'ced18e5b24011ba7b982c4aaf7125cb1198991ba', class: 'scrolling-container' }, index.h("slot", { key: 'be78398757fb53cdb987511709f5dd1fc6d5f647', name: this.selectedTab }))));
|
|
26173
26192
|
}
|
|
26174
26193
|
};
|
|
26175
26194
|
LsFieldPropertiesContainer.style = lsFieldPropertiesContainerCss;
|
|
@@ -26182,7 +26201,7 @@ const LsFieldPropertiesDate = class {
|
|
|
26182
26201
|
}
|
|
26183
26202
|
dataItem;
|
|
26184
26203
|
render() {
|
|
26185
|
-
return (index.h(index.Host, { key: '
|
|
26204
|
+
return (index.h(index.Host, { key: 'c5f6d6f13a8420c7db262219a47dd8546a44fbba' }, index.h("ls-field-properties-container", { key: '1913c379eee8558d303bc72dad7a73a2c39f9810', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '7aff7b10b7ec6b52cb3772853812a2e30539677f', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '01361d60d1ad587f3db804e0758d1ced9bd46452', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '64269c2cb83224a402bfa870d11c098a24f5b513', dataItem: this.dataItem })), index.h("div", { key: 'a927e9e6813aaebcd133c229da7fb29ad18587b6', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '48cf4bc0db59aace10a15c04a3d05d7cabe418e1', dataItem: this.dataItem })), index.h("div", { key: '52c47bc5b278587c507c365bc431e85202d3d84d', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: 'df3137d33d4184f6e2cbb80d963ca3a7e568e74c', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '6a69a59eddc45ec3210272c1ff17eed12fdbbde7', dataItem: this.dataItem })));
|
|
26186
26205
|
}
|
|
26187
26206
|
};
|
|
26188
26207
|
LsFieldPropertiesDate.style = lsFieldPropertiesDateCss;
|
|
@@ -26195,7 +26214,7 @@ const LsFieldPropertiesEmail = class {
|
|
|
26195
26214
|
}
|
|
26196
26215
|
dataItem;
|
|
26197
26216
|
render() {
|
|
26198
|
-
return (index.h(index.Host, { key: '
|
|
26217
|
+
return (index.h(index.Host, { key: '864c283c523e58d327a249643d21a9ae0d522772' }, index.h("ls-field-properties-container", { key: 'c41cec11c9daef8e9689296863a59b5d729e167e', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '86318521b7d1f5c0d44bea39cd2d906d2539b3ab', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '252661caa008f083fa0298a1130419ac56a3e7e2', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: 'e0b1aeeeed2d6c6f61d4278689253b2c394f6096', dataItem: this.dataItem })), index.h("div", { key: '4ae3f032410741f717bc99df83a0f733bae9abce', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '2cfcb0548b1b7825027c209ed1326386e6c6d105', dataItem: this.dataItem })), index.h("div", { key: '83895291760d9dc453652bd1eb81f42c9c1b3781', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '0799a31cc828dfe32c494169990c2381852f7141', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '9813afa7e6b4fc79525a12959ff30f3801c7bddc', dataItem: this.dataItem })));
|
|
26199
26218
|
}
|
|
26200
26219
|
};
|
|
26201
26220
|
LsFieldPropertiesEmail.style = lsFieldPropertiesEmailCss;
|
|
@@ -26208,7 +26227,7 @@ const LsFieldPropertiesFile = class {
|
|
|
26208
26227
|
}
|
|
26209
26228
|
dataItem;
|
|
26210
26229
|
render() {
|
|
26211
|
-
return (index.h(index.Host, { key: '
|
|
26230
|
+
return (index.h(index.Host, { key: '87c4c2935c45a3852f9939327db350025d5f26b9' }, index.h("ls-field-properties-container", { key: 'fbd3ff58eb488b82e498941d6a30d3efeb691c22', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '1bb49bc838ecad441feaff1d9330972f40f3c2fb', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: 'ca0a6ae02a132315b804ef987db6d8f6dd8d5bec', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '72346af8dc7fa1917c54450782f5b04d90ea2fe2', dataItem: this.dataItem })), index.h("div", { key: 'aef4008d5f1fa5b6f09e34914aaa0729909b28ef', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '34a0e47aba163d1d50c8b5bd3530d68375ace866', dataItem: this.dataItem })), index.h("div", { key: '67cdead2dd9b6a0ebc4178eb9966cc25aeef7b0d', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: 'c9802804c82bb64e758e69a4f4f9fc98067f3cfd', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'a495c6895d20cef46c687cb65655022279e33c2c', dataItem: this.dataItem })));
|
|
26212
26231
|
}
|
|
26213
26232
|
};
|
|
26214
26233
|
LsFieldPropertiesFile.style = lsFieldPropertiesFileCss;
|
|
@@ -26221,7 +26240,7 @@ const LsFieldPropertiesGeneral = class {
|
|
|
26221
26240
|
}
|
|
26222
26241
|
dataItem;
|
|
26223
26242
|
render() {
|
|
26224
|
-
return (index.h(index.Host, { key: '
|
|
26243
|
+
return (index.h(index.Host, { key: '9cdb29804d3439cc774cdb34fe67cc387d2119d6' }, index.h("ls-field-properties-container", { key: '277529426e659d5bab2370d30757c4418a34c4ea', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '801227d24311f508b852f294a63d20c3ae5d6d07', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: 'e1ce08761d14588a07a9f817ff12deb303c024e4', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: 'f622fd5cdf49ea54f9218d4de080048d95fbe88f', dataItem: this.dataItem })), index.h("div", { key: '98ff04437e1cb412e360794d6fce6820b754733b', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '417029ef39562ff320c036d9d90944300934be17', dataItem: this.dataItem })), index.h("div", { key: '80a8381946ad219a4b7d75981cca80121bdf9a3f', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '603fe5e39eb0a4b87230e1ec6500f5c1a37fb210', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '51fc00d6d488085afda91ce1f2f5eaa945600337', dataItem: this.dataItem })));
|
|
26225
26244
|
}
|
|
26226
26245
|
};
|
|
26227
26246
|
LsFieldPropertiesGeneral.style = lsFieldPropertiesGeneralCss;
|
|
@@ -26234,7 +26253,7 @@ const LsFieldPropertiesImage = class {
|
|
|
26234
26253
|
}
|
|
26235
26254
|
dataItem;
|
|
26236
26255
|
render() {
|
|
26237
|
-
return (index.h(index.Host, { key: '
|
|
26256
|
+
return (index.h(index.Host, { key: '90a138e3af555cf9d41afc9ec8c350e48466bb0c' }, index.h("ls-field-properties-container", { key: 'b67fe1f9fa3a010736841720725405dea6254a49', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: 'c777591ccf44e40c525b2bffd11d84e8c8a77bba', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '1fadd4d4d0ff8cb4683f45f06899725b9f0261a9', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: 'd1486d388f4276cb15d54a728f24e5d8919cb93f', dataItem: this.dataItem })), index.h("div", { key: '0418ca135da5c11c54a7556a023aaf5379ee3899', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: 'b696981f2c6e26df07291f0d018e27fc32675f62', dataItem: this.dataItem })), index.h("div", { key: 'f7dbe53576a316e9a03699fa7fc1e12d44b455d1', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '91b965cf584e1f85b15d84b390ea4ea5b603b263', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '8d4a15349f3056132adf6254b82c535f7ff352d9', dataItem: this.dataItem })));
|
|
26238
26257
|
}
|
|
26239
26258
|
};
|
|
26240
26259
|
LsFieldPropertiesImage.style = lsFieldPropertiesImageCss;
|
|
@@ -26288,14 +26307,14 @@ const LsFieldPropertiesMultiple = class {
|
|
|
26288
26307
|
return { isSame: allSame, elementType: allSame ? firstElementType : 'mixed' };
|
|
26289
26308
|
};
|
|
26290
26309
|
render() {
|
|
26291
|
-
return (index.h(index.Host, { key: '
|
|
26310
|
+
return (index.h(index.Host, { key: '8115299b3d1ebbe1896271da1706e765ebdcbab8' }, index.h("ls-field-properties-container", { key: '6cb7365f2c24cb8acac5c815447ed184b6d139ba', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '155d6b33a0b40dc7941b59a980c513271f9db094', class: 'field-set', slot: "content" }, index.h("div", { key: 'be4c86a550ac16f64a008fbb854825d0d6fdec85', class: 'ls-field-properties-section' }, index.h("div", { key: 'fd87a909acd064c04741e6c07a642f1b6310fa34', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'f88560758858d0082011cacd9e6d436fb24e12d2', class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { key: '7583fdc8f206c3aeeae1df4db5086757acd85c53', class: 'ls-field-properties-section-description' }, "The Fields you currently have selected")), index.h("div", { key: 'd3191ac9f58caa1754749cd751b512cb2da01fc7', class: 'ls-field-type-wrapper', style: {
|
|
26292
26311
|
border: `1px dashed ${defaultRolePalette[this.allSignersSame().signer % 100].s30}`,
|
|
26293
26312
|
background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
|
|
26294
|
-
} }, index.h("div", { key: '
|
|
26313
|
+
} }, index.h("div", { key: '8c107b4502595f57772baa94a88c469f434d18f4', class: 'ls-field-type-inner' }, index.h("div", { key: '69e8d25256f2a9381b86e9a87b298011b1f4a646', class: 'ls-field-type-icon', style: {
|
|
26295
26314
|
border: `1px solid ${defaultRolePalette[this.allSignersSame().signer % 100].s60}`,
|
|
26296
26315
|
color: defaultRolePalette[this.allSignersSame().signer % 100].s60,
|
|
26297
26316
|
background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
|
|
26298
|
-
} }, index.h("ls-icon", { key: '
|
|
26317
|
+
} }, index.h("ls-icon", { key: 'c7ac9e1d06b8873b49c7e885254b4f8def8f3d16', name: getFieldIcon(this.allElementsSame().elementType), size: "20" })), index.h("p", { key: '037d595ee61b1bc26215b10d6465c0a206c3670e', class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), index.h("div", { key: 'e2e7420103eeac2852b7a56f963b88d12bd92faf', class: 'ls-field-properties-section row' }, index.h("div", { key: '8e7ccf6c7930958a95f0ffe55ac5fb61f48655fa', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'f64987a2124b484c5aeb567a17792e15515124de', class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", { key: '7c800d31febea334fa4cbded8c636c3241257ac9' })), index.h("div", { key: 'd075ff5ff376c67f6dad06768462a5d4159981e5', class: 'ls-field-properties-section' }, index.h("div", { key: 'd189f0e0dd17bb698d703d1825fc777d18691b07', class: 'ls-field-properties-section-text' }, index.h("p", { key: '791f2be86f52d6e096c2b447520a76eb93db719e', class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { key: 'eeff9b3b0c561948807b362bd31e4753661f8a3f', class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { key: '9640f11d8f8bff810daccbb9cf930c965c532cd9', value: this.allLabelsSame().label, width: "30", placeholder: "eg. Sign Here" }))), index.h("div", { key: '8914d27fbc2423324df5cf2b5752f790ae8c9019', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: 'd6dcc88283a94466203c7ec3e3768c28ab685eae', dataItem: this.dataItem }), index.h("ls-field-size", { key: 'e1fa1087be2e6d23452e121ce0da5767e9062f61', dataItem: this.dataItem })), index.h("div", { key: '37e113c9d83eb1cdabba34691ea7a72d4934de36', class: 'field-set', slot: "placement" }, index.h("ls-field-alignment", { key: '1fa8a3c5fa4663f2f3ddd82278117b3d0a35834f', dataItem: this.dataItem }), index.h("ls-field-placement", { key: '27598e6fa3e938b8cafbc1e30890674094678933', dataItem: this.dataItem }), index.h("ls-field-distribute", { key: 'be68a572cc2f66e3a2e965e1c6194b30bf5a3e05', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '849536faeb6eb1b72da45c7939c75ba53478fbb5' }), index.h("slot", { key: '541e17c8fc0cd817f0d520c17984aab4ef77ef66' })));
|
|
26299
26318
|
}
|
|
26300
26319
|
};
|
|
26301
26320
|
LsFieldPropertiesMultiple.style = lsFieldPropertiesMultipleCss;
|
|
@@ -26308,7 +26327,7 @@ const LsFieldPropertiesNumber = class {
|
|
|
26308
26327
|
}
|
|
26309
26328
|
dataItem;
|
|
26310
26329
|
render() {
|
|
26311
|
-
return (index.h(index.Host, { key: '
|
|
26330
|
+
return (index.h(index.Host, { key: '440725e751ea3b404c5c50c749c5bb8ba06ba17c' }, index.h("ls-field-properties-container", { key: '7397fdc71259fab68af40ebd665cea30fd79674c', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '24f1a1a03d7ef9fadb6fba1b56aff2879c99c848', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '39606a9437ff02fb77c2130ed719472660f7121b', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '2d7148b24ff388504751755fc5039b53d013fe52', dataItem: this.dataItem })), index.h("div", { key: '670bb29a0876fc24a434ab6aa175b528503209d7', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: 'c9dba48006e57a279e17cdedd8e30bccd4cddab1', dataItem: this.dataItem })), index.h("div", { key: '26e8bc89fa11f9baa6c416bdea37f7ee37f53e92', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '232534855f1d61fa7e37277e7675f7cca84d3f4f', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '0d62c5e191013483238d9b1591e820de7b67cec7', dataItem: this.dataItem })));
|
|
26312
26331
|
}
|
|
26313
26332
|
};
|
|
26314
26333
|
LsFieldPropertiesNumber.style = lsFieldPropertiesNumberCss;
|
|
@@ -26321,7 +26340,7 @@ const LsFieldPropertiesSignature = class {
|
|
|
26321
26340
|
}
|
|
26322
26341
|
dataItem;
|
|
26323
26342
|
render() {
|
|
26324
|
-
return (index.h(index.Host, { key: '
|
|
26343
|
+
return (index.h(index.Host, { key: '7fd5740e3b624b6ac6f8e7ada0df7ff5ccd63269' }, index.h("ls-field-properties-container", { key: '5513682b779b50683e8f66a4e8f7095da59a473c', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: '9fa2ebba6de8c555800656ff62239ad20c2e2ade', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '9689dd597d8628241227c79d2dc8635984176fa0', dataItem: this.dataItem, showValidationTypes: false }), index.h("ls-field-properties-advanced", { key: '51ad1040fad68b13332c40bab9352541c41ddde7', dataItem: this.dataItem })), index.h("div", { key: '2d2fff3746cda4b368063c167bc655cb269062e2', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: 'dfb2bc78783bc43199f1a609907e6dcd26ca23ef', dataItem: this.dataItem })), index.h("div", { key: '8f030a01499135a6d8a902c4ba23838b209abc24', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: 'dae82093080110d81d76b1403b4b60851561273f', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'b7420672d1bdae9118c1bc5abeb67a9bb8e9f991', dataItem: this.dataItem })));
|
|
26325
26344
|
}
|
|
26326
26345
|
};
|
|
26327
26346
|
LsFieldPropertiesSignature.style = lsFieldPropertiesSignatureCss;
|
|
@@ -26334,7 +26353,7 @@ const LsFieldPropertiesText = class {
|
|
|
26334
26353
|
}
|
|
26335
26354
|
dataItem;
|
|
26336
26355
|
render() {
|
|
26337
|
-
return (index.h(index.Host, { key: '
|
|
26356
|
+
return (index.h(index.Host, { key: '6581dc23794e94eb5ac89b620ed6a11380fd2d8d' }, index.h("ls-field-properties-container", { key: 'fa44fb4c49078cbb8cdc0978e7b4596bf2820028', tabs: ['content', 'placement', 'dimensions'] }, index.h("div", { key: 'f372d2b78526341d31f06c7dc039ffef2ab51d94', class: 'field-set', slot: "content" }, index.h("ls-field-content", { key: '3160b82574571bcd67d04ed74696b0382aed3518', dataItem: this.dataItem }), index.h("ls-field-properties-advanced", { key: '96d0f898cc092c395d70b94ed3977ffc473e9538', dataItem: this.dataItem })), index.h("div", { key: 'd62cfb2603c91fec4463c37d26fb6dd9b0cb7164', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: '18e0ced89970409cdabe56eeb54c1b8ec1fd192d', dataItem: this.dataItem })), index.h("div", { key: 'a9edc2428d745ee661a4005de05bb8ed33544d28', class: 'field-set', slot: "placement" }, index.h("ls-field-placement", { key: '18b7c5d2d81a2a4442164eabc3796e3303bfab4a', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'abf9bfd40615ce12e1ae791f1307787f3a8935cd', dataItem: this.dataItem })));
|
|
26338
26357
|
}
|
|
26339
26358
|
};
|
|
26340
26359
|
LsFieldPropertiesText.style = lsFieldPropertiesTextCss;
|
|
@@ -26361,7 +26380,7 @@ const LsFieldSize = class {
|
|
|
26361
26380
|
this.update.emit(diffs);
|
|
26362
26381
|
}
|
|
26363
26382
|
render() {
|
|
26364
|
-
return (index.h(index.Host, { key: '
|
|
26383
|
+
return (index.h(index.Host, { key: '106f435214cd643aaedac927bf8095794fd6408d' }, index.h("div", { key: 'de4168ea47757ecc046e18a70109964b1dfd4b33', class: 'ls-field-properties-section' }, index.h("div", { key: '53f2058d12fbd30363086b213c5869f22e85796f', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'd2ab149dfa93256e3ec15d630c48d17caede8ec6', class: 'ls-field-properties-section-title' }, "Scale and Resize"), index.h("p", { key: 'd4fb4407b0e76ee2124c951e4ea73753777ab1ca', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), index.h("div", { key: '30bcf920ddaaa294bf81eeb31b6fb3415f85197f', class: 'button-group' }, index.h("button", { key: 'f162025f64111b1291541e71d8a22de8b76fe86a', 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: 'c1e09414e242c50be87f6342bd09c30e100edbfc', name: "field-scale" })), index.h("button", { key: '4d82dad505d6b65ecad51b4622911fb2da102397', "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: '8c463d83131514c1f306dd34df17b46272f33971', name: "field-match-width" })), index.h("button", { key: '8ffa41165583cabda6b5571fac6bd10913c703d8', 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: 'f3d18d6238a71ed7b079ec587a86bb3c2567620f', name: "field-match-height" })))), index.h("slot", { key: '1602b72e9a885363f1d1e5bff5b23b26f4c5e5dc' })));
|
|
26365
26384
|
}
|
|
26366
26385
|
};
|
|
26367
26386
|
LsFieldSize.style = lsFieldSizeCss;
|
|
@@ -26396,14 +26415,14 @@ const LsFieldTypeDisplay = class {
|
|
|
26396
26415
|
fieldType = 'signature';
|
|
26397
26416
|
render() {
|
|
26398
26417
|
const color = defaultRolePalette[this.assignee % 100];
|
|
26399
|
-
return (index.h(index.Host, { key: '
|
|
26418
|
+
return (index.h(index.Host, { key: '0d4c4aa48bf3ae8f403df502bf9b3b5ba04be686', class: 'ls-field-type-wrapper', style: {
|
|
26400
26419
|
border: `1px dashed ${color.s30}`,
|
|
26401
26420
|
background: color.s10,
|
|
26402
|
-
} }, index.h("div", { key: '
|
|
26421
|
+
} }, index.h("div", { key: 'e135050c776ba5a4e0bee0fc45c0f8a5de263aef', class: 'ls-field-type-inner' }, index.h("div", { key: '9bedbf90ad8bf224d45c27dc54f125eec297c9fe', class: 'ls-field-type-icon', style: {
|
|
26403
26422
|
border: `1px solid ${color.s60}`,
|
|
26404
26423
|
color: color.s60,
|
|
26405
26424
|
background: color.s10,
|
|
26406
|
-
} }, index.h("ls-icon", { key: '
|
|
26425
|
+
} }, index.h("ls-icon", { key: '4bd803476605785db6d7c16112abda6b8ea7d76f', name: getFieldIcon(this.fieldType), size: "20" })), index.h("p", { key: 'af010e7272ca7f4ffeb8dc61a2b862198b8efcbf', class: 'ls-field-type-name' }, getFieldLabel(this.fieldType)))));
|
|
26407
26426
|
}
|
|
26408
26427
|
};
|
|
26409
26428
|
LsFieldTypeDisplay.style = lsFieldTypeDisplayCss;
|
|
@@ -26453,10 +26472,10 @@ const LsFormfield = class {
|
|
|
26453
26472
|
render() {
|
|
26454
26473
|
const { name, fieldId, label, as, value, placeholder, descriptionText, errorText, aria, infoTooltipText, disabled, extraLabel, valid, dirty, count, countMax, buttonClick, buttonIcon, fieldIcon, labelIcon, } = this;
|
|
26455
26474
|
const countClass = value && value.toString().length > countMax ? 'formfield-count-error' : 'formfield-count';
|
|
26456
|
-
return (index.h("host", { key: '
|
|
26475
|
+
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 ||
|
|
26457
26476
|
count ||
|
|
26458
26477
|
countMax ||
|
|
26459
|
-
(descriptionText && (index.h("div", { key: '
|
|
26478
|
+
(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))))))))));
|
|
26460
26479
|
}
|
|
26461
26480
|
static get watchers() { return {
|
|
26462
26481
|
"value": ["valueWatcher"]
|
|
@@ -33488,7 +33507,7 @@ const LsIcon = class {
|
|
|
33488
33507
|
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.');
|
|
33489
33508
|
}
|
|
33490
33509
|
render() {
|
|
33491
|
-
return (index.h("host", { key: '
|
|
33510
|
+
return (index.h("host", { key: 'dc63ba24967c79b07985dbaa0fb515a7b210e1b5' }, icons
|
|
33492
33511
|
?.filter((icon) => icon.name === this.name)
|
|
33493
33512
|
?.map((icon) => (index.h("div", { key: icon?.name, class: 'iconContainer', style: {
|
|
33494
33513
|
height: `${this.size}px`,
|
|
@@ -33507,7 +33526,7 @@ const LsInputWrapper = class {
|
|
|
33507
33526
|
leadingIcon;
|
|
33508
33527
|
select = false;
|
|
33509
33528
|
render() {
|
|
33510
|
-
return (index.h(index.Host, { key: '
|
|
33529
|
+
return (index.h(index.Host, { key: 'aac9da887f16fb4e885b97fb0347b585cd24b04d' }, index.h("ls-icon", { key: 'c380c2a00b05084cb9c2d18cac05e640e8d3db61', id: "selectLeadingIcon", name: this.leadingIcon }), this.select && index.h("ls-icon", { key: '76c71e77e0acd6be689aaa0e9e11c7787c79facf', id: "selectorIcon", name: "selector" }), index.h("slot", { key: 'b0d5300f47ce2bd5137118c9b8b6536593407a72' })));
|
|
33511
33530
|
}
|
|
33512
33531
|
};
|
|
33513
33532
|
LsInputWrapper.style = lsInputWrapperCss;
|
|
@@ -33553,7 +33572,7 @@ const LsNumberInput = class {
|
|
|
33553
33572
|
? 'invalid'
|
|
33554
33573
|
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33555
33574
|
const plusMinusClass = clsx(disabled ? 'button-disabled' : 'button');
|
|
33556
|
-
return (index.h("host", { key: '
|
|
33575
|
+
return (index.h("host", { key: 'f4555e124b40f13647581d43cf2527497eb71688', class: type === 'ls' && 'host' }, type === 'ls' && (index.h("button", { key: '5adf7f06989b52a3860301168ba2c134975cd065', class: plusMinusClass, onClick: () => handleMinus(), disabled: disabled }, index.h("ls-icon", { key: '384dbf5a886003f31f1a54a504e2f73f34948d14', id: 'buttonIcon', name: 'minus-sm' }))), index.h("div", { key: '3dd5e436957094eb40bc5a3c5c82603dd1d13591', class: 'input-container' }, fieldIcon && (index.h("ls-icon", { key: 'ccf1f2af403c73c30ca8844e9284bbb69ed24975', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), index.h("input", { key: '0e4a866bee7ab98ef5114bf4f556140b6f9d3fc9', type: 'number', class: inputClass, id: name, name: name, value: value, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled, onInput: (event) => handleChange(event) }), index.h("div", { key: '4c741413b32ef1ea14908cff35b7dbf6b03e3295', class: 'right-items' }, dirty && !disabled && (index.h("ls-icon", { key: '2622ddde60eb5fa6c5f0857841341da8f0960da9', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon && type !== 'ls' && (index.h("button", { key: '882cdea945848a5c8f094d5b90792291f8657226', class: 'button', onClick: buttonClick }, index.h("ls-icon", { key: 'c0cb8d43fa3e13aa360e73fb759fd69ba64dafe8', id: 'buttonIcon', name: buttonIcon }))))), type === 'ls' && (index.h("button", { key: 'e5de958aec8c15c4f64e2371a4808167b3847a91', class: plusMinusClass, onClick: handlePlus, disabled: disabled }, index.h("ls-icon", { key: '1aaeddf0456e50a9bd9a37f5a8235617b62f4809', id: 'buttonIcon', name: 'plus-sm' })))));
|
|
33557
33576
|
}
|
|
33558
33577
|
};
|
|
33559
33578
|
LsNumberInput.style = lsNumberInputCss;
|
|
@@ -33608,36 +33627,36 @@ const LsParticipantCard = class {
|
|
|
33608
33627
|
}
|
|
33609
33628
|
render() {
|
|
33610
33629
|
const participantFields = this.template.elementConnection.templateElements.filter(f => f.signer === this.signer.signerIndex) || [];
|
|
33611
|
-
return (index.h(index.Host, { key: '
|
|
33630
|
+
return (index.h(index.Host, { key: '26cd1235d566363298804b8554857f4572fcf3ad' }, index.h("div", { key: '5cb4a93633eaf4fec24648b2207ea8ffb401e950', class: "participant-card", style: {
|
|
33612
33631
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s10,
|
|
33613
33632
|
border: `1px solid ${defaultRolePalette[this.signer?.signerIndex % 100].s60}`,
|
|
33614
33633
|
marginTop: this.signer.signerIndex > 100 && '-0.813rem',
|
|
33615
33634
|
}, onMouseEnter: e => e.currentTarget.querySelector('.button-set')?.classList.remove('hidden'), onMouseLeave: e => e.currentTarget.querySelector('.button-set')?.classList.add('hidden'), onDblClick: () => {
|
|
33616
33635
|
this.editable = true;
|
|
33617
|
-
} }, index.h("div", { key: '
|
|
33636
|
+
} }, index.h("div", { key: '3ca92742e66d2f9e746fbf0725ea26bbdc4989b9', class: 'participant-card-inner' }, index.h("div", { key: '456cfae55b1fe15b6b7d4444ed228183ca1f93f1', class: 'participant-card-top-items' }, index.h("div", { key: '289757cf77b0b57b5cb9d78c1b248a8c469b5268', class: 'role-label', style: {
|
|
33618
33637
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
33619
33638
|
color: defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
33620
|
-
} }, index.h("ls-icon", { key: '
|
|
33639
|
+
} }, index.h("ls-icon", { key: '78405243676cf11489fe016dce9bc0bd493d1005', name: this.signer?.roleType === 'APPROVER' ? 'check-circle' : this.signer?.roleType === 'SIGNER' ? 'signature' : 'eye' }), 'Participant ' + (this.signer?.signerIndex || '')), index.h("div", { key: '07e6126404d7c07004596827847e8c1e618c881b', class: 'button-set hidden' }, this.index > 0 && (index.h("div", { key: '456bd5bab69b4f2ed5791f04b4509dc2a80889e1', class: "innerButton", onClick: () => {
|
|
33621
33640
|
this.swapHandler(this.signer, this.template.roles[this.index - 1]);
|
|
33622
33641
|
}, style: {
|
|
33623
33642
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33624
33643
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33625
|
-
} }, index.h("ls-icon", { key: '
|
|
33644
|
+
} }, index.h("ls-icon", { key: '21d0074f67040d377e43696253d055a61c522a14', name: "arrow-up", size: "18" }))), this.signer.signerIndex !== this.template.roles.length && (index.h("div", { key: '8d9edb433c6a0ea64abfa86212bfddec5a82219b', class: "innerButton", onClick: () => {
|
|
33626
33645
|
this.swapHandler(this.signer, this.template.roles[this.index + 1]);
|
|
33627
33646
|
}, style: {
|
|
33628
33647
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33629
33648
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33630
|
-
} }, index.h("ls-icon", { key: '
|
|
33649
|
+
} }, index.h("ls-icon", { key: '5154b792ed0b47da1852be885d1751dc5f090dbd', name: "arrow-down", size: "18" }))), index.h("div", { key: '625e58c9360e52ad651fac5a81bd6aa05130dabb', class: "innerButton", onClick: () => {
|
|
33631
33650
|
this.editable = !this.editable;
|
|
33632
33651
|
}, style: {
|
|
33633
33652
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33634
33653
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33635
|
-
} }, index.h("ls-icon", { key: '
|
|
33654
|
+
} }, index.h("ls-icon", { key: '75cfef0dcfde68c1a652c0884a910ea4d35deafa', name: this.editable ? 'check' : 'pencil-alt', size: "18" })), index.h("div", { key: 'c90fb747817a8ff3862cd0404e0d2c6507420ea9', class: "innerButton", onClick: () => {
|
|
33636
33655
|
this.deleteHandler(this.signer);
|
|
33637
33656
|
}, style: {
|
|
33638
33657
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
33639
33658
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
33640
|
-
} }, index.h("ls-icon", { key: '
|
|
33659
|
+
} }, index.h("ls-icon", { key: '3eebec8b8dc84006ceddcfd8e9a4336c4d862276', name: "trash", size: "18" })))), this.editable ? (index.h("div", { class: 'participant-card-inner' }, 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 }) }, index.h("option", { value: "APPROVER", selected: this.signer?.roleType === 'APPROVER' }, "Approver"), index.h("option", { value: "SIGNER", selected: this.signer?.roleType === 'SIGNER' }, "Signer"))), 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 => {
|
|
33641
33660
|
if (e.key === 'Enter' || e.keyCode === 13)
|
|
33642
33661
|
this.editable = false;
|
|
33643
33662
|
} }))) : (index.h("div", { class: 'participant-card-text' }, index.h("p", { class: "participant-text-description", style: {
|
|
@@ -33648,7 +33667,7 @@ const LsParticipantCard = class {
|
|
|
33648
33667
|
} }, this.signer.roleType.toLowerCase()), this.signer?.roleType !== 'APPROVER' && (index.h("div", { class: 'role-label fields', style: {
|
|
33649
33668
|
background: participantFields.length === 0 ? defaultRolePalette[this.signer?.signerIndex % 100].s60 : defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
33650
33669
|
color: participantFields.length === 0 ? 'white' : defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
33651
|
-
} }, 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: '
|
|
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: 'ca83751b9647aa1a1b02198dcb02a9c1cc5fa951' })));
|
|
33652
33671
|
}
|
|
33653
33672
|
static get watchers() { return {
|
|
33654
33673
|
"editable": ["modeHandler"]
|
|
@@ -33697,12 +33716,12 @@ const LsParticipantManager = class {
|
|
|
33697
33716
|
});
|
|
33698
33717
|
}
|
|
33699
33718
|
render() {
|
|
33700
|
-
return (index.h(index.Host, { key: '
|
|
33719
|
+
return (index.h(index.Host, { key: '9217c153c317e197897058a5881a781b16a58004' }, index.h("div", { key: '2dd289b3bb90e953eb1c9b722c35d3e20ef17b34', class: "ls-editor-infobox" }, index.h("h2", { key: '67d42783d2b9a8a3161f03c3d517da02eb9ce8b3', class: "toolbox-section-title" }, "Participants"), index.h("p", { key: '2f9cbd596e502a592cedb990855cda5da352a10a', class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), index.h("div", { key: '6936cb07b173bff2a653753aa165366590ce1923', class: "participant-list" }, this.template &&
|
|
33701
33720
|
this.template?.roles.map((r, index$1) => {
|
|
33702
33721
|
return index.h("ls-participant-card", { signer: r, index: index$1, template: this.template, onOpened: (event) => {
|
|
33703
33722
|
this.handleOpened.bind(this)(event);
|
|
33704
33723
|
} });
|
|
33705
|
-
})), index.h("div", { key: '
|
|
33724
|
+
})), index.h("div", { key: 'c57020f2d560dc9241b8cfc38611564b8bf68eb0', class: 'add-participant-button' }, index.h("button", { key: 'd9e352162f8b3e2b2278c392137888ef85cc46a1', onClick: () => this.addParticipant.emit({ type: 'SIGNER' }) }, index.h("ls-icon", { key: '31db90682efdb8b93fcab8d77d1e62385b9e5f36', name: "user-add", size: "20", color: "var(--gray-100, #45484D);" }), index.h("p", { key: 'df6d9f9fd4b8b8330acd2d04c44e36b07fa4aed3' }, "Add Participant"))), index.h("slot", { key: 'e12c849be729bddd04e79b77c182e26ed5a2563b' })));
|
|
33706
33725
|
}
|
|
33707
33726
|
};
|
|
33708
33727
|
LsParticipantManager.style = lsParticipantManagerCss;
|
|
@@ -33746,27 +33765,27 @@ const LsParticipantSelect = class {
|
|
|
33746
33765
|
this.addParticipant.emit({ type: 'SIGNER' });
|
|
33747
33766
|
}
|
|
33748
33767
|
render() {
|
|
33749
|
-
return (index.h(index.Host, { key: '
|
|
33768
|
+
return (index.h(index.Host, { key: '05ce04a14cfb2ad7b758aedc5b65369a0ab0b193' }, index.h("div", { key: '01913be9946c4cbd20be9eb0183ccbbfcbd8ca61', class: "dropdown" }, index.h("div", { key: 'f59100f64738d20ad385de862295edf49a91655a', class: "dropdown-header", onClick: this.toggleDropdown }, index.h("svg", { key: 'c8dca2bf3967cd21445da0d957049a0976cda9a2', width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'fcfacdc95436203bf4d9234531c7f7fb7a7a764a', 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: 'a82eed99f51aa2d161d6b4901c0ee26f582aa895', 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: 'f37b804b8ce9c29ee833813b17dbbfd0c7d070d0', 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: 'f3a2b18f7340021728a1cc563eb35d27ac17990a', 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: 'dc6496244da861eff55d628ed9d240c0f507f22b', class: 'placing-fields-text' }, "Placing Fields for"), index.h("div", { key: '51c552f5e563479b81c26baf7b41b17c06d0f551', class: 'selected-role-label', style: {
|
|
33750
33769
|
background: defaultRolePalette[this.selectedRole?.signerIndex % 100].s20,
|
|
33751
33770
|
color: defaultRolePalette[this.selectedRole?.signerIndex % 100].s80,
|
|
33752
|
-
} }, index.h("ls-icon", { key: '
|
|
33771
|
+
} }, index.h("ls-icon", { key: 'bd7ad751ebf8f1da889fc43fc65c77b309673c30', size: "18", name: this.selectedRole?.roleType === 'SENDER'
|
|
33753
33772
|
? 'user'
|
|
33754
33773
|
: this.selectedRole?.roleType === 'APPROVER'
|
|
33755
33774
|
? 'check-circle'
|
|
33756
33775
|
: this.selectedRole?.roleType === 'WITNESS'
|
|
33757
33776
|
? 'eye'
|
|
33758
33777
|
: 'signature' }), this.selectedRole.name ||
|
|
33759
|
-
(this.selectedRole.signerIndex > 100 ? `Participant ${this.selectedRole.signerIndex - 100} Witness` : `Participant ${this.selectedRole.signerIndex}`)), index.h("button", { key: '
|
|
33778
|
+
(this.selectedRole.signerIndex > 100 ? `Participant ${this.selectedRole.signerIndex - 100} Witness` : `Participant ${this.selectedRole.signerIndex}`)), index.h("button", { key: 'fc7751e7aa67036b170dffffa6f1205bb079da4d', class: 'tertiaryGrey expand-button', "aria-haspopup": "listbox", "aria-expanded": this.isOpen }, index.h("ls-icon", { key: 'd4a9c60a0a9d309c779d926547beab66dd258ec5', name: "chevron-down" }))), this.isOpen && (index.h("div", { key: '9afdac4d0239217a9145b87e86ce82fe4baeacfb', class: "dropdown-list" }, index.h("div", { key: '6e6c690b9b73369da2b920d601bd03ae2d4e2c62', class: this.selectedRole?.signerIndex === 0 ? 'dropdown-item selected' : 'dropdown-item', style: {
|
|
33760
33779
|
'--background-selected': defaultRolePalette[0].s10,
|
|
33761
33780
|
'--check-icon-selected': defaultRolePalette[0].s50,
|
|
33762
|
-
}, 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: '
|
|
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: '7eafd31f64a1cc1578f79e46eed06fe3c6f19089', class: 'role-icon', style: {
|
|
33763
33782
|
background: defaultRolePalette[0].s50,
|
|
33764
33783
|
color: defaultRolePalette[0].s80,
|
|
33765
|
-
} }, index.h("ls-icon", { key: '
|
|
33784
|
+
} }, index.h("ls-icon", { key: '7a6b5e21dd76b8bf75d8932b049bcdb3b86a4e12', name: "user" })), index.h("div", { key: 'dbc8abbdf4b2ded694637aa54e6124ca5496d3f7', class: 'role-text' }, index.h("p", { key: 'fd3b749275de606c1807f728de49ea12e5fb4964', class: 'role-name', style: {
|
|
33766
33785
|
'--role-name-selected': defaultRolePalette[0].s80,
|
|
33767
|
-
} }, 'Sender'), index.h("p", { key: '
|
|
33786
|
+
} }, 'Sender'), index.h("p", { key: '673247e9d41fc4ba38fd7ca8a49f7cd7d6a037c6', class: 'role-type', style: {
|
|
33768
33787
|
'--role-type-selected': defaultRolePalette[0].s80,
|
|
33769
|
-
} }, "You")), index.h("ls-icon", { key: '
|
|
33788
|
+
} }, "You")), index.h("ls-icon", { key: 'efab79f4b3d39fe14fd8c91420d0717e4159337a', 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: {
|
|
33770
33789
|
'--background-selected': defaultRolePalette[r?.signerIndex % 100].s10,
|
|
33771
33790
|
'--check-icon-selected': defaultRolePalette[r?.signerIndex % 100].s50,
|
|
33772
33791
|
}, onClick: () => this.selectRole(r), onMouseEnter: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', 'check-circle'), onMouseLeave: e => e.currentTarget
|
|
@@ -33778,10 +33797,10 @@ const LsParticipantSelect = class {
|
|
|
33778
33797
|
'--role-name-selected': defaultRolePalette[r?.signerIndex % 100].s100,
|
|
33779
33798
|
} }, r.name || (r.signerIndex > 100 ? `Participant ${r.signerIndex - 100} Witness` : `Participant ${r.signerIndex}`)), index.h("p", { class: 'role-type', style: {
|
|
33780
33799
|
'--role-type-selected': defaultRolePalette[r?.signerIndex % 100].s80,
|
|
33781
|
-
} }, 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: '
|
|
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: 'fb09ef1b14adc8f9b4ac2f09cfeadb09158691c7', onClick: () => this.createHandler(), class: 'add-participant-row', style: {
|
|
33782
33801
|
'--background-selected': defaultRolePalette[1].s10,
|
|
33783
33802
|
'--check-icon-selected': defaultRolePalette[1].s50,
|
|
33784
|
-
} }, index.h("div", { key: '
|
|
33803
|
+
} }, index.h("div", { key: '33b7d90c55ad488e95a83526e4c501a72ad9c0f6', class: 'add-participant-icon' }, index.h("ls-icon", { key: '32ae47b14d9c5047dc10478a09a8725be7d08f14', name: "user-add" })), index.h("div", { key: '2d206c0f2d7e562098dddb4efbb21bcb537fe402', class: 'role-text' }, index.h("p", { key: 'ae5d9123112652e4af9912b309da2e6eb6705995', class: 'role-name' }, "Add Participant"), index.h("p", { key: 'dcbd38153b8fc2666790df3af0229438b94f9cf0', class: 'role-type' }, "Add a new Signer")), index.h("ls-icon", { key: '65fed105324c1dca3c7b0983e6a81db8eb18e4a5', class: 'plus-icon', name: "plus" }))))), index.h("slot", { key: 'd18f3b14f6ae9b47f186451c2390acb600a7d476' })));
|
|
33785
33804
|
}
|
|
33786
33805
|
};
|
|
33787
33806
|
LsParticipantSelect.style = lsParticipantSelectCss;
|
|
@@ -33796,7 +33815,7 @@ const LsPropsSection = class {
|
|
|
33796
33815
|
sectionDescription;
|
|
33797
33816
|
row = false;
|
|
33798
33817
|
render() {
|
|
33799
|
-
return (index.h(index.Host, { key: '
|
|
33818
|
+
return (index.h(index.Host, { key: 'bef8c364809ca1fe0f137d4fd66ac66de3275d1d' }, index.h("div", { key: 'd0c8b400401a26e228aa7696ab4a78f5d1febaae', class: this.row ? 'ls-field-properties-section row' : 'ls-field-properties-section' }, index.h("div", { key: '3683032dad4fd51bf1150f6c3fc82b274757dc44', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'e3af41b678439b5e6a165d81c18668ab8aae7579', class: 'ls-field-properties-section-title' }, this.sectionTitle), this.sectionDescription && index.h("p", { key: '4e8ddddc08e4155cdbccd2225b3135e2f583344a', class: 'ls-field-properties-section-description' }, this.sectionDescription)), index.h("slot", { key: '430f6ee17ee17e5049caffbd5646693623bb8341' }))));
|
|
33800
33819
|
}
|
|
33801
33820
|
};
|
|
33802
33821
|
LsPropsSection.style = lsPropsSectionCss;
|
|
@@ -33817,7 +33836,7 @@ const LsRadioInput = class {
|
|
|
33817
33836
|
render() {
|
|
33818
33837
|
const { label, radioId, icon, name, disabled, checked, customStyle, } = this;
|
|
33819
33838
|
const radioLabelClass = clsx('radioLabel', disabled && 'disabled', checked && 'checked');
|
|
33820
|
-
return (index.h("label", { key: '
|
|
33839
|
+
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))));
|
|
33821
33840
|
}
|
|
33822
33841
|
};
|
|
33823
33842
|
LsRadioInput.style = lsRadioInputCss;
|
|
@@ -33854,7 +33873,7 @@ const LsSelectInput = class {
|
|
|
33854
33873
|
: displayOnly
|
|
33855
33874
|
? 'displayOnly'
|
|
33856
33875
|
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33857
|
-
return (index.h("host", { key: '
|
|
33876
|
+
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' })))));
|
|
33858
33877
|
}
|
|
33859
33878
|
};
|
|
33860
33879
|
LsSelectInput.style = lsSelectInputCss;
|
|
@@ -33898,11 +33917,11 @@ const LsStatusbar = class {
|
|
|
33898
33917
|
this.zoom = this.editor.zoom;
|
|
33899
33918
|
}
|
|
33900
33919
|
render() {
|
|
33901
|
-
return (index.h(index.Host, { key: '
|
|
33920
|
+
return (index.h(index.Host, { key: '55097643549b7cbe604e9bee3849b9766f080126' }, index.h("div", { key: '9b133335d222606b1097e8da02314bf0b0b6a1ae', class: "status-bar-section" }, index.h("button", { key: '0827867b7959437e246b906d43809a44654f2f86', onClick: () => this.setZoom(this.editor.zoom * 0.8) }, index.h("ls-icon", { key: '00c7626a1734ca3e033449465e67dcc31eaa0529', name: "zoom-out" })), index.h("div", { key: '3855d5a719e2da9d7cdb7ced6d8738bcbf6eb820' }, index.h("input", { key: '8314f667a74775625d0b64a7d6002ca8f06e64b1', type: "range", min: "1", max: "300", value: this.zoom * 100, class: "slider", id: "zoomRange", onInput: () => this.handleZoomInput() })), index.h("button", { key: '911190a0e364786561c0858331bdb453fb6ec75e', onClick: () => this.setZoom(this.editor.zoom / 0.8) }, index.h("ls-icon", { key: '08d488109b61fd13977645a66abbd96332989f5b', name: "zoom-in" }))), index.h("div", { key: '6f014eb039ae5e72df5371337fb0133d4042b9fc', class: "status-bar-section" }, index.h("button", { key: 'bf93ddda1fb8206c31df64705d72c49dc6807274', onClick: () => this.fitWidth() }, index.h("ls-icon", { key: 'bcc5998901ba5875de5dc2f33fd8001f0c64cdd9', name: "fit-width" })), index.h("button", { key: '66d72546495cdcee8afa2d1ba85d7dc9100e2184', onClick: () => this.fitHeight() }, index.h("ls-icon", { key: '872ac2174c60d828c58f0d45f0aa15bf0a5a74ce', name: "fit-height" }))), index.h("div", { key: '78222891e89515a221be4d3e517bac94b7c213a8', class: "status-bar-section" }, index.h("button", { key: 'dca255d5540c8752fbd424909bb5595484bc84ca', onClick: () => {
|
|
33902
33921
|
this.editor.pagePrev();
|
|
33903
|
-
} }, index.h("ls-icon", { key: '
|
|
33922
|
+
} }, index.h("ls-icon", { key: '6a5a348512d4746727bbb9a1bb3b25f3c7ac84e9', name: "chevron-left" })), index.h("p", { key: '8c78f2ae00d855c0cdb19ffbfbe1bcdabf2cf65d' }, this.editor?.pageNum, " / ", this.editor?._template?.pageCount), index.h("button", { key: 'b91bb6fec66a25071d847b85dd5723960e433094', onClick: () => {
|
|
33904
33923
|
this.editor.pageNext();
|
|
33905
|
-
} }, index.h("ls-icon", { key: '
|
|
33924
|
+
} }, index.h("ls-icon", { key: 'd73352bf128f6d2911b98bd9340a8963018e7fd6', name: "chevron-right" }))), index.h("slot", { key: '1829b9f4ce5f420972c64b9f63a59c1aa48c70b2' })));
|
|
33906
33925
|
}
|
|
33907
33926
|
};
|
|
33908
33927
|
LsStatusbar.style = lsStatusbarCss;
|
|
@@ -33948,13 +33967,13 @@ const LsTextInput = class {
|
|
|
33948
33967
|
: dirty && !valid
|
|
33949
33968
|
? 'invalid'
|
|
33950
33969
|
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33951
|
-
return (index.h(index.Host, { key: '
|
|
33970
|
+
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) => {
|
|
33952
33971
|
this.changeHandler(e);
|
|
33953
33972
|
} })) : 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) => {
|
|
33954
33973
|
this.changeHandler(e);
|
|
33955
33974
|
} })) : (index.h("input", { class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled, onChange: (e) => {
|
|
33956
33975
|
this.changeHandler(e);
|
|
33957
|
-
} })), index.h("div", { key: '
|
|
33976
|
+
} })), 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 })))));
|
|
33958
33977
|
}
|
|
33959
33978
|
};
|
|
33960
33979
|
LsTextInput.style = lsTextInputCss;
|
|
@@ -33990,7 +34009,7 @@ const LsTextareaInput = class {
|
|
|
33990
34009
|
: displayOnly
|
|
33991
34010
|
? 'displayOnly'
|
|
33992
34011
|
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33993
|
-
return (index.h("host", { key: '
|
|
34012
|
+
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 }))))));
|
|
33994
34013
|
}
|
|
33995
34014
|
};
|
|
33996
34015
|
LsTextareaInput.style = lsTextareaInputCss;
|
|
@@ -34008,9 +34027,9 @@ const LsToggle = class {
|
|
|
34008
34027
|
this.valueChange.emit(value);
|
|
34009
34028
|
}
|
|
34010
34029
|
render() {
|
|
34011
|
-
return (index.h(index.Host, { key: '
|
|
34030
|
+
return (index.h(index.Host, { key: 'fff128eeef303b0a5482220dc6d9c3d0ac0ae400' }, index.h("label", { key: 'd5297141d7c7279f07d72d939e5924b8841bce82', class: "switch" }, index.h("input", { key: '0ee4b85550bac696e7e4273fbe31165445897a06', type: "checkbox", checked: this.checked, onChange: (e) => {
|
|
34012
34031
|
this.changeHandler(e.target.checked);
|
|
34013
|
-
} }), index.h("span", { key: '
|
|
34032
|
+
} }), index.h("span", { key: 'fe5e6f17345ba5057d2df8a9c245d28b7c79e328', class: "slider round" })), index.h("slot", { key: '9c3d8ceb80fbf7d4c0efff45d671866b42476f21' })));
|
|
34014
34033
|
}
|
|
34015
34034
|
};
|
|
34016
34035
|
LsToggle.style = lsToggleCss;
|
|
@@ -34059,7 +34078,7 @@ const LsToolbar = class {
|
|
|
34059
34078
|
this.update.emit(diffs);
|
|
34060
34079
|
}
|
|
34061
34080
|
render() {
|
|
34062
|
-
return (index.h(index.Host, { key: '
|
|
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, dataItem: this?.dataItem, style: { display: this.dataItem && this.dataItem.length === 1 ? 'none' : 'block' } }))), index.h("slot", { key: 'c22f9e9921ca69912896777e704636e323ffdb36' })));
|
|
34063
34082
|
}
|
|
34064
34083
|
};
|
|
34065
34084
|
LsToolbar.style = lsToolbarCss;
|
|
@@ -34113,12 +34132,12 @@ const LsToolboxField = class {
|
|
|
34113
34132
|
}
|
|
34114
34133
|
}
|
|
34115
34134
|
render() {
|
|
34116
|
-
return (index.h(index.Host, { key: '
|
|
34135
|
+
return (index.h(index.Host, { key: 'fb137a5eaeb10b88f8d0eb43feef6d2ef8505973', draggable: "true" }, index.h("div", { key: '9c92bec6e9abb2b57697eef17b52d43d24461784', 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: '6febc0b55187a9b51ac094f49f72266c90acd433', name: this.icon, size: "20" })), index.h("p", { key: '2533c0ad8ac9e815847b1bad4798451f6b19118a', class: "toolbox-field-label" }, this.label), index.h("ls-icon", { key: 'bee17f0bedbbd904e634064bd37825fd96c75bc5', name: "drag-vertical", size: "16", color: "#787a80" })));
|
|
34117
34136
|
}
|
|
34118
34137
|
};
|
|
34119
34138
|
LsToolboxField.style = lsToolboxFieldCss;
|
|
34120
34139
|
|
|
34121
|
-
const lsValidationTagCss = ":host{position:relative}*{box-sizing:border-box;margin:0}.valid-label{display:flex;padding:2px 0.5rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:1rem;font-size:0.75rem;font-style:normal;font-weight:500;line-height:1.25rem;width:fit-content}.valid{background-color:var(--green-30, #9df5d4);color:var(--green-100, #125241)}.invalid{background:var(--yellow-20, #fff3c2);color:var(--yellow-90, #8a3f0e)}.field-counter{display:flex;padding:0.125rem;justify-content:center;align-items:center;border-radius:1rem;font-size:0.625rem;line-height:0.75rem;font-style:normal;font-weight:500;color:var(--yellow-20, #fff3c2);background:#e17100;min-width:1rem}.field-dropdown{position:absolute;top:2rem;right:0;background:white;display:flex;flex-direction:column;gap:0.75rem;width:20rem;padding:1rem;border-radius:1rem;border:1px solid #e5e7eb;background:#fff;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);max-height:20rem;overflow-y:auto;flex-direction:column;align-items:flex-start;z-index:1000}.required-field{position:relative;display:flex;width:100%;justify-content:space-between;align-items:center;gap:0.5rem;border-radius:0.75rem;padding:0.5rem 0.5rem 0.5rem 1rem;background:var(--field-background);color:var(--field-text-color);border:1px solid var(--field-border-color);transition:all 0.1s ease-in-out}.required-field:hover{background:var(--field-background-hover);color:var(--field-text-color-hover);border:1px solid var(--field-border-color-hover);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.required-field-items-left{display:flex;gap:0.5rem;align-items:center;width:100%}.required-field-items-left p{font-size:0.875rem;font-style:normal;font-weight:500;line-height:0.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot{height:0.5rem;width:0.5rem;border-radius:50%}.role-label{display:flex;padding:2px 3px;justify-content:center;align-items:center;border-radius:0.25rem;font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;}.dropdown-header h2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;margin-bottom:0.125rem}.dropdown-header p{color:var(--gray-80, #6c6e73);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;}";
|
|
34140
|
+
const lsValidationTagCss = ":host{position:relative}*{box-sizing:border-box;margin:0}.valid-label{display:flex;padding:2px 0.5rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:1rem;font-size:0.75rem;font-style:normal;font-weight:500;line-height:1.25rem;width:fit-content}.valid{background-color:var(--green-30, #9df5d4);color:var(--green-100, #125241)}.invalid{background:var(--yellow-20, #fff3c2);color:var(--yellow-90, #8a3f0e)}.field-counter{display:flex;padding:0.125rem;justify-content:center;align-items:center;border-radius:1rem;font-size:0.625rem;line-height:0.75rem;font-style:normal;font-weight:500;color:var(--yellow-20, #fff3c2);background:#e17100;min-width:1rem}.field-dropdown{position:absolute;top:2rem;right:0;background:white;display:flex;flex-direction:column;gap:0.75rem;width:20rem;padding:1rem;border-radius:1rem;border:1px solid #e5e7eb;background:#fff;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);max-height:20rem;overflow-y:auto;flex-direction:column;align-items:flex-start;z-index:1000}.required-field{position:relative;display:flex;width:100%;justify-content:space-between;align-items:center;gap:0.5rem;border-radius:0.75rem;padding:0.5rem 0.5rem 0.5rem 1rem;background:var(--field-background);color:var(--field-text-color);border:1px solid var(--field-border-color);transition:all 0.1s ease-in-out}.required-field:hover{background:var(--field-background-hover);color:var(--field-text-color-hover);border:1px solid var(--field-border-color-hover);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.required-field-items-left{display:flex;gap:0.5rem;align-items:center;width:100%}.required-field-items-left p{font-size:0.875rem;font-style:normal;font-weight:500;line-height:0.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dot{height:0.5rem;width:0.5rem;border-radius:50%}.role-label{display:flex;padding:2px 3px;justify-content:center;align-items:center;border-radius:0.25rem;font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;text-transform:capitalize}.dropdown-header h2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;margin-bottom:0.125rem}.dropdown-header p{color:var(--gray-80, #6c6e73);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;}";
|
|
34122
34141
|
|
|
34123
34142
|
const LsValidationTag = class {
|
|
34124
34143
|
constructor(hostRef) {
|
|
@@ -34128,16 +34147,16 @@ const LsValidationTag = class {
|
|
|
34128
34147
|
validationErrors = [];
|
|
34129
34148
|
isExpanded = false;
|
|
34130
34149
|
render() {
|
|
34131
|
-
return (index.h(index.Host, { key: '
|
|
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: 'b1628cd4fcfa5b92d88b492504865a2d91c5713a', class: 'field-dropdown' }, index.h("div", { key: '5cf6c73e2bf98fa41ae6016e1d1e75a150b334cb', class: 'dropdown-header' }, index.h("h2", { key: '389ba3f91d3195671965ee25a5e85764ade84449' }, "Signature Fields Required"), index.h("p", { key: '6bb94ffb2b9063a9f033e939af816bbb0eebda55' }, this.validationErrors.length, " ", this.validationErrors.length === 1 ? 'Recipient needs a Signature Field' : 'Recipients need Signature Fields', " placed for them")), this.validationErrors.map((field, idx) => {
|
|
34132
34151
|
const pallette = defaultRolePalette[field?.role?.signerIndex || field?.element?.signer || 0];
|
|
34133
|
-
return index.h("div", { key: idx, class: 'required-field', style: {
|
|
34152
|
+
return (index.h("div", { key: idx, class: 'required-field', style: {
|
|
34134
34153
|
'--field-background': pallette.s10,
|
|
34135
34154
|
'--field-border-color': pallette.s10,
|
|
34136
34155
|
'--field-background-hover': pallette.s20,
|
|
34137
34156
|
'--field-text-color': pallette.s70,
|
|
34138
34157
|
'--field-text-color-hover': pallette.s80,
|
|
34139
34158
|
'--field-border-color-hover': pallette.s60,
|
|
34140
|
-
} }, index.h("div", { class: 'required-field-items-left' }, index.h("div", { class: 'dot', style: { background: pallette.s60 } }), field?.role && index.h(
|
|
34159
|
+
} }, index.h("div", { class: 'required-field-items-left' }, index.h("div", { class: 'dot', style: { background: pallette.s60 } }), field?.role && (index.h("div", { class: 'required-field-items-left' }, index.h("p", { style: { color: pallette.s80 } }, field.role?.name || `Signer ${field?.role?.signerIndex + 1}`), index.h("div", { class: 'role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.role?.roleType.toLowerCase() || `Signer ${field.role?.signerIndex + 1}`))), field?.element && (index.h(index.h.Fragment, null, index.h("p", { style: { color: pallette.s80 } }, field.role?.name || `${field.element.formElementType} ${field?.element?.label + 1}`), index.h("div", { class: 'role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.description)))), index.h("ls-icon", { name: "chevron-right" })));
|
|
34141
34160
|
})))));
|
|
34142
34161
|
}
|
|
34143
34162
|
};
|