legalesign-document-viewer 1.0.0 → 1.0.2
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/{editorUtils-ClBh8Wv8.js → editorUtils-CRCLbYrX.js} +3 -3
- package/dist/cjs/{editorUtils-ClBh8Wv8.js.map → editorUtils-CRCLbYrX.js.map} +1 -1
- package/dist/cjs/{i18n-Cm3SP-DJ.js → i18n-e8JieHV6.js} +4 -2
- package/dist/cjs/{i18n-Cm3SP-DJ.js.map → i18n-e8JieHV6.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ls-add-new-button_20.cjs.entry.js +47 -38
- package/dist/cjs/ls-assignee-select_21.cjs.entry.js +65 -27
- package/dist/cjs/ls-compose-loader_7.cjs.entry.js +12 -12
- package/dist/cjs/ls-compose-manager.cjs.entry.js +1 -1
- package/dist/cjs/ls-document-viewer.cjs.entry.js +26 -7
- package/dist/cjs/ls-document-viewer.cjs.js +1 -1
- package/dist/cjs/ls-field-alignment_3.cjs.entry.js +3 -3
- package/dist/cjs/ls-field-format_2.cjs.entry.js +1 -1
- package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +3 -2
- package/dist/cjs/ls-field-type-display.cjs.entry.js +1 -1
- package/dist/cjs/ls-helper-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/{mouseHandlers-CsLRpRbC.js → mouseHandlers-BvqJ2tsu.js} +4 -4
- package/dist/cjs/{mouseHandlers-CsLRpRbC.js.map → mouseHandlers-BvqJ2tsu.js.map} +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.css +0 -7
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +22 -3
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-editor-field/ls-editor-field.css +5 -2
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +44 -15
- 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 +30 -3
- package/dist/collection/components/ls-field-content/ls-field-content.js.map +1 -1
- package/dist/collection/components/ls-field-properties/ls-field-properties.css +1 -0
- package/dist/collection/components/ls-field-properties/ls-field-properties.js +33 -12
- package/dist/collection/components/ls-field-properties/ls-field-properties.js.map +1 -1
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +1 -1
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js.map +1 -1
- package/dist/collection/components/ls-field-properties-checkbox/ls-field-properties-checkbox.css +1 -0
- package/dist/collection/components/ls-field-properties-checkbox/ls-field-properties-checkbox.js +22 -1
- package/dist/collection/components/ls-field-properties-checkbox/ls-field-properties-checkbox.js.map +1 -1
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +22 -1
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js.map +1 -1
- package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.css +1 -0
- package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js +22 -1
- package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js.map +1 -1
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +22 -1
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js.map +1 -1
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +22 -1
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js.map +1 -1
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +22 -1
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js.map +1 -1
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +25 -4
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -1
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +22 -1
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map +1 -1
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +22 -1
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js.map +1 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +22 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js.map +1 -1
- package/dist/collection/components/ls-field-type-select/ls-field-type-select.js +27 -5
- package/dist/collection/components/ls-field-type-select/ls-field-type-select.js.map +1 -1
- package/dist/collection/components/ls-left-bar/ls-left-bar.js +1 -1
- package/dist/collection/components/ls-left-bar/ls-left-bar.js.map +1 -1
- package/dist/collection/components/ls-recipient-card/ls-recipient-card.js +5 -6
- package/dist/collection/components/ls-recipient-card/ls-recipient-card.js.map +1 -1
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +9 -9
- package/dist/collection/components/ls-statusbar/ls-statusbar.js.map +1 -1
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.css +7 -1
- 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-assignee-select.js +1 -1
- package/dist/components/ls-compose-manager.js +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +63 -44
- 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-checkbox.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 +14 -12
- package/dist/components/ls-field-properties-dropdown.js.map +1 -1
- package/dist/components/ls-field-properties-email.js +1 -1
- package/dist/components/ls-field-properties-file.js +1 -1
- package/dist/components/ls-field-properties-general.js +1 -1
- package/dist/components/ls-field-properties-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-field-type-select.js +1 -1
- package/dist/components/ls-helper-bar.js +1 -1
- package/dist/components/ls-keyboard-shortcuts.js +1 -1
- package/dist/components/ls-left-bar.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-recipient-card.js +1 -1
- package/dist/components/ls-recipient-manager.js +1 -1
- package/dist/components/ls-select-menu.js +1 -1
- package/dist/components/ls-statusbar.js +1 -1
- package/dist/components/ls-toolbar.js +1 -1
- package/dist/components/ls-validation-manager.js +1 -1
- package/dist/components/ls-validation-tag.js +1 -1
- package/dist/components/{p-D1fggKxb.js → p-1ayYzye1.js} +19 -17
- package/dist/components/p-1ayYzye1.js.map +1 -0
- package/dist/components/{p-D4VxGydf.js → p-8hWonZD4.js} +15 -13
- package/dist/components/p-8hWonZD4.js.map +1 -0
- package/dist/components/{p-BZ9KFHC1.js → p-BEhTmCBW.js} +15 -13
- package/dist/components/p-BEhTmCBW.js.map +1 -0
- package/dist/components/{p-CAm8iIfB.js → p-BJ7fvXXf.js} +15 -15
- package/dist/components/{p-CAm8iIfB.js.map → p-BJ7fvXXf.js.map} +1 -1
- package/dist/components/{p-CCSMbgUt.js → p-BUAS2e6p.js} +3 -3
- package/dist/components/{p-CCSMbgUt.js.map → p-BUAS2e6p.js.map} +1 -1
- package/dist/components/{p-CtT9DLf0.js → p-BbLFuN1Q.js} +4 -4
- package/dist/components/{p-CtT9DLf0.js.map → p-BbLFuN1Q.js.map} +1 -1
- package/dist/components/{p-CJIhr6ns.js → p-BgIA-QAy.js} +4 -4
- package/dist/components/{p-CJIhr6ns.js.map → p-BgIA-QAy.js.map} +1 -1
- package/dist/components/{p-Bi_4Swkx.js → p-Biay9ys2.js} +3 -3
- package/dist/components/{p-Bi_4Swkx.js.map → p-Biay9ys2.js.map} +1 -1
- package/dist/components/{p-C7WYjjf5.js → p-C1SFI6sR.js} +3 -3
- package/dist/components/{p-C7WYjjf5.js.map → p-C1SFI6sR.js.map} +1 -1
- package/dist/components/{p-4KjU_xHn.js → p-C3xBvNXU.js} +35 -35
- package/dist/components/p-C3xBvNXU.js.map +1 -0
- package/dist/components/{p-BUobLFxb.js → p-CRZNeYR8.js} +3 -3
- package/dist/components/{p-BUobLFxb.js.map → p-CRZNeYR8.js.map} +1 -1
- package/dist/components/{p-MKp33FTH.js → p-CSxx3aLG.js} +3 -3
- package/dist/components/{p-MKp33FTH.js.map → p-CSxx3aLG.js.map} +1 -1
- package/dist/components/{p-BJkRQ2hZ.js → p-CbORhuHl.js} +40 -38
- package/dist/components/p-CbORhuHl.js.map +1 -0
- package/dist/components/{p-Bg8qV5nN.js → p-Ce-55WxN.js} +5 -5
- package/dist/components/{p-Bg8qV5nN.js.map → p-Ce-55WxN.js.map} +1 -1
- package/dist/components/{p-CLScwmO_.js → p-CeO915wm.js} +16 -14
- package/dist/components/p-CeO915wm.js.map +1 -0
- package/dist/components/{p-CMiu82Dz.js → p-CgFpE1fV.js} +3 -3
- package/dist/components/{p-CMiu82Dz.js.map → p-CgFpE1fV.js.map} +1 -1
- package/dist/components/{p-C-5L6LAY.js → p-CgoyKNia.js} +3 -3
- package/dist/components/{p-C-5L6LAY.js.map → p-CgoyKNia.js.map} +1 -1
- package/dist/components/{p-M4AweDeo.js → p-CgqKV0xf.js} +15 -13
- package/dist/components/p-CgqKV0xf.js.map +1 -0
- package/dist/components/{p-CNxS5_JA.js → p-CmsA9-sZ.js} +15 -13
- package/dist/components/p-CmsA9-sZ.js.map +1 -0
- package/dist/components/{p-BmDtavNK.js → p-Cts0eCoL.js} +5 -5
- package/dist/components/{p-BmDtavNK.js.map → p-Cts0eCoL.js.map} +1 -1
- package/dist/components/{p-Bxlq9ywP.js → p-CvMzUIlC.js} +48 -19
- package/dist/components/p-CvMzUIlC.js.map +1 -0
- package/dist/components/{p-D844Ghcf.js → p-CxWGojFs.js} +3 -3
- package/dist/components/{p-D844Ghcf.js.map → p-CxWGojFs.js.map} +1 -1
- package/dist/components/{p-sivKnxmI.js → p-D02hM4Sf.js} +4 -4
- package/dist/components/{p-sivKnxmI.js.map → p-D02hM4Sf.js.map} +1 -1
- package/dist/components/{p-CBN6EOa6.js → p-D1yC5psL.js} +15 -13
- package/dist/components/p-D1yC5psL.js.map +1 -0
- package/dist/components/{p-Cznb3nhw.js → p-D4qAbKWM.js} +7 -7
- package/dist/components/p-D4qAbKWM.js.map +1 -0
- package/dist/components/{p-BiQfNAXm.js → p-DNx0Ngpa.js} +17 -9
- package/dist/components/p-DNx0Ngpa.js.map +1 -0
- package/dist/components/{p-CfOp4S4g.js → p-DRDChAg6.js} +3 -3
- package/dist/components/{p-CfOp4S4g.js.map → p-DRDChAg6.js.map} +1 -1
- package/dist/components/{p-DRIWa5EM.js → p-DWGdXqO4.js} +3 -3
- package/dist/components/{p-DRIWa5EM.js.map → p-DWGdXqO4.js.map} +1 -1
- package/dist/components/{p-883oa-R7.js → p-DX7Kb9cb.js} +11 -8
- package/dist/components/p-DX7Kb9cb.js.map +1 -0
- package/dist/components/{p-DUhCihul.js → p-Dab8K5mi.js} +3 -3
- package/dist/components/{p-DUhCihul.js.map → p-Dab8K5mi.js.map} +1 -1
- package/dist/components/{p-C0fuTQ5C.js → p-DkV1l_zw.js} +3 -3
- package/dist/components/{p-C0fuTQ5C.js.map → p-DkV1l_zw.js.map} +1 -1
- package/dist/components/{p-Rqv3ICkT.js → p-Dl8z1tmj.js} +3 -3
- package/dist/components/{p-Rqv3ICkT.js.map → p-Dl8z1tmj.js.map} +1 -1
- package/dist/components/{p-D9mePwWa.js → p-Dy-dPxzq.js} +15 -13
- package/dist/components/p-Dy-dPxzq.js.map +1 -0
- package/dist/components/{p-D7rSbima.js → p-DzUG2q_b.js} +3 -3
- package/dist/components/{p-D7rSbima.js.map → p-DzUG2q_b.js.map} +1 -1
- package/dist/components/{p-CKq4FH9m.js → p-Qxe4qT6a.js} +8 -9
- package/dist/components/p-Qxe4qT6a.js.map +1 -0
- package/dist/components/{p-Dbp-hj8N.js → p-WVWIAGo_.js} +4 -2
- package/dist/components/{p-Dbp-hj8N.js.map → p-WVWIAGo_.js.map} +1 -1
- package/dist/components/{p-CzT8SbWq.js → p-cjANxX0x.js} +3 -3
- package/dist/components/{p-CzT8SbWq.js.map → p-cjANxX0x.js.map} +1 -1
- package/dist/components/{p-ClKw7Zzi.js → p-fd9JyL4S.js} +15 -13
- package/dist/components/p-fd9JyL4S.js.map +1 -0
- package/dist/components/{p-DiPnUqQx.js → p-pEYsk7D-.js} +3 -3
- package/dist/components/{p-DiPnUqQx.js.map → p-pEYsk7D-.js.map} +1 -1
- package/dist/components/{p-DL5BPoYv.js → p-t7z4Xhda.js} +4 -4
- package/dist/components/{p-DL5BPoYv.js.map → p-t7z4Xhda.js.map} +1 -1
- package/dist/esm/{editorUtils-BZZzuy9j.js → editorUtils-DcBt3fOj.js} +3 -3
- package/dist/esm/{editorUtils-BZZzuy9j.js.map → editorUtils-DcBt3fOj.js.map} +1 -1
- package/dist/esm/{i18n-Dbp-hj8N.js → i18n-WVWIAGo_.js} +4 -2
- package/dist/esm/{i18n-Dbp-hj8N.js.map → i18n-WVWIAGo_.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ls-add-new-button_20.entry.js +47 -38
- package/dist/esm/ls-assignee-select_21.entry.js +65 -27
- package/dist/esm/ls-compose-loader_7.entry.js +12 -12
- package/dist/esm/ls-compose-manager.entry.js +1 -1
- package/dist/esm/ls-document-viewer.entry.js +26 -7
- package/dist/esm/ls-document-viewer.entry.js.map +1 -1
- package/dist/esm/ls-document-viewer.js +1 -1
- package/dist/esm/ls-field-alignment_3.entry.js +3 -3
- package/dist/esm/ls-field-format_2.entry.js +1 -1
- package/dist/esm/ls-field-properties-dropdown.entry.js +3 -2
- package/dist/esm/ls-field-properties-dropdown.entry.js.map +1 -1
- package/dist/esm/ls-field-type-display.entry.js +1 -1
- package/dist/esm/ls-helper-bar_2.entry.js +1 -1
- package/dist/esm/{mouseHandlers-B8kiiTmD.js → mouseHandlers-CUHWhJed.js} +4 -4
- package/dist/esm/{mouseHandlers-B8kiiTmD.js.map → mouseHandlers-CUHWhJed.js.map} +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/p-3918ae76.entry.js +2 -0
- package/dist/ls-document-viewer/p-3918ae76.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-0643c987.entry.js → p-762b88d0.entry.js} +3 -3
- package/dist/ls-document-viewer/p-762b88d0.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-7e6cb6c0.entry.js +2 -0
- package/dist/ls-document-viewer/p-7e6cb6c0.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-46e88f8f.entry.js → p-7f610d52.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-BzuPIF0d.js → p-CEM1EUk-.js} +2 -2
- package/dist/ls-document-viewer/{p-BzuPIF0d.js.map → p-CEM1EUk-.js.map} +1 -1
- package/dist/ls-document-viewer/{p-CIrk12cz.js → p-ChvyHQhX.js} +2 -2
- package/dist/ls-document-viewer/{p-CIrk12cz.js.map → p-ChvyHQhX.js.map} +1 -1
- package/dist/ls-document-viewer/p-WVWIAGo_.js +2 -0
- package/dist/ls-document-viewer/{p-Dbp-hj8N.js.map → p-WVWIAGo_.js.map} +1 -1
- package/dist/ls-document-viewer/p-a27532c9.entry.js +2 -0
- package/dist/ls-document-viewer/p-a27532c9.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-78d72a41.entry.js → p-c47ad3e6.entry.js} +2 -2
- package/dist/ls-document-viewer/p-c56fd5ed.entry.js +2 -0
- package/dist/ls-document-viewer/p-c56fd5ed.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-e20e0bb4.entry.js → p-da9a034d.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-04e5ab9a.entry.js → p-e3cf0df0.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-b97e3ce3.entry.js → p-e4115319.entry.js} +2 -2
- package/dist/types/components/ls-editor-field/ls-editor-field.d.ts +1 -0
- package/dist/types/components/ls-field-content/ls-field-content.d.ts +2 -0
- package/dist/types/components/ls-field-properties/ls-field-properties.d.ts +1 -0
- package/dist/types/components/ls-field-properties-checkbox/ls-field-properties-checkbox.d.ts +1 -0
- package/dist/types/components/ls-field-properties-date/ls-field-properties-date.d.ts +1 -0
- package/dist/types/components/ls-field-properties-dropdown/ls-field-properties-dropdown.d.ts +1 -0
- package/dist/types/components/ls-field-properties-email/ls-field-properties-email.d.ts +1 -0
- package/dist/types/components/ls-field-properties-file/ls-field-properties-file.d.ts +1 -0
- package/dist/types/components/ls-field-properties-general/ls-field-properties-general.d.ts +1 -0
- package/dist/types/components/ls-field-properties-multiple/ls-field-properties-multiple.d.ts +1 -0
- package/dist/types/components/ls-field-properties-number/ls-field-properties-number.d.ts +1 -0
- package/dist/types/components/ls-field-properties-signature/ls-field-properties-signature.d.ts +1 -0
- package/dist/types/components/ls-field-properties-text/ls-field-properties-text.d.ts +1 -0
- package/dist/types/components/ls-field-type-select/ls-field-type-select.d.ts +2 -0
- package/dist/types/components/ls-statusbar/ls-statusbar.d.ts +1 -1
- package/dist/types/components.d.ts +106 -0
- package/package.json +1 -1
- package/dist/components/p-4KjU_xHn.js.map +0 -1
- package/dist/components/p-883oa-R7.js.map +0 -1
- package/dist/components/p-BJkRQ2hZ.js.map +0 -1
- package/dist/components/p-BZ9KFHC1.js.map +0 -1
- package/dist/components/p-BiQfNAXm.js.map +0 -1
- package/dist/components/p-Bxlq9ywP.js.map +0 -1
- package/dist/components/p-CBN6EOa6.js.map +0 -1
- package/dist/components/p-CKq4FH9m.js.map +0 -1
- package/dist/components/p-CLScwmO_.js.map +0 -1
- package/dist/components/p-CNxS5_JA.js.map +0 -1
- package/dist/components/p-ClKw7Zzi.js.map +0 -1
- package/dist/components/p-Cznb3nhw.js.map +0 -1
- package/dist/components/p-D1fggKxb.js.map +0 -1
- package/dist/components/p-D4VxGydf.js.map +0 -1
- package/dist/components/p-D9mePwWa.js.map +0 -1
- package/dist/components/p-M4AweDeo.js.map +0 -1
- package/dist/ls-document-viewer/p-0643c987.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-281fcd37.entry.js +0 -2
- package/dist/ls-document-viewer/p-281fcd37.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-6e6f2681.entry.js +0 -2
- package/dist/ls-document-viewer/p-6e6f2681.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-7be7fad4.entry.js +0 -2
- package/dist/ls-document-viewer/p-7be7fad4.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-8d6d8ce9.entry.js +0 -2
- package/dist/ls-document-viewer/p-8d6d8ce9.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-Dbp-hj8N.js +0 -2
- /package/dist/ls-document-viewer/{p-46e88f8f.entry.js.map → p-7f610d52.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-78d72a41.entry.js.map → p-c47ad3e6.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-e20e0bb4.entry.js.map → p-da9a034d.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-04e5ab9a.entry.js.map → p-e3cf0df0.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-b97e3ce3.entry.js.map → p-e4115319.entry.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-CItPoq74.js';
|
|
2
2
|
import { d as defaultRolePalette } from './defaultPalette-CwCWCxsI.js';
|
|
3
|
-
import { d as dvI18n } from './i18n-
|
|
3
|
+
import { d as dvI18n } from './i18n-WVWIAGo_.js';
|
|
4
4
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
5
|
-
import { h as validateFieldValue, g as getInputType, i as validationTypes } from './editorUtils-
|
|
5
|
+
import { h as validateFieldValue, g as getInputType, i as validationTypes } from './editorUtils-DcBt3fOj.js';
|
|
6
6
|
import { f as forceCloseDatePicker } from './index-Bo8LVmEA.js';
|
|
7
7
|
import { g as getDefaultValidationForType, a as getFieldPlaceholder, b as getFieldTitleSuggestion } from './defaultFieldLabels-GlbzVGpj.js';
|
|
8
8
|
import { g as getFieldIcon } from './defaultFieldIcons-C5wLu85H.js';
|
|
@@ -145,7 +145,7 @@ const LsCheckboxInput = class {
|
|
|
145
145
|
};
|
|
146
146
|
LsCheckboxInput.style = lsCheckboxInputCss();
|
|
147
147
|
|
|
148
|
-
const lsEditorFieldCss = () => `:host{display:block;position:absolute;margin:0px;padding:0px 0px 0px 0px;
|
|
148
|
+
const lsEditorFieldCss = () => `:host{display:block;position:absolute;margin:0px;padding:0px 0px 0px 0px;isolation:isolate;min-height:16px}:host .ls-editor-field{display:flex;flex-direction:column;width:100%;height:100%;position:relative}.ls-dv-editor-field-editable{font-family:inherit;font-size:inherit;color:inherit;overflow:hidden;word-break:break-all;white-space:pre-wrap;margin:0;margin-top:auto;padding:0px 0px 0px 0px;min-width:2em;width:calc(100% - 13px);max-height:100%}.ls-dv-editor-field-editable:focus{outline:none}.ls-dv-editor-field-draggable{display:flex;align-items:flex-end;font-family:inherit;font-size:inherit;overflow:hidden;word-break:break-all;white-space:pre-wrap;min-width:2px;height:100%;width:calc(100% - 13px);margin-top:auto}.ls-dv-hidden-field{display:none}.ls-dv-date-field-input{position:absolute;opacity:0;pointer-events:none;width:100%;height:100%;top:0.5rem;left:0}.ls-dv-date-field-active{pointer-events:auto}input,textarea{all:unset;color:inherit}textarea{resize:none;overflow:hidden;word-break:break-all;white-space:pre-wrap}textarea::placeholder{color:inherit;opacity:0.5}.ls-dv-draggable-input{font-family:inherit;font-size:inherit;position:relative;height:95%;width:95%}.ls-dv-editing-input{caret-color:rgb(15, 23, 42);caret-shape:auto;height:100%;width:100%}.ls-dv-required-icon{color:var(--red-60, #f64a44)}.ls-dv-x-button{all:unset;cursor:pointer;transform:translate(55%, -55%);position:absolute;color:white;background:var(--gray-80, #6f7176);border-radius:50%;top:0;right:0}.ls-dv-x-button:hover{background:var(--gray-90, #5e6066)}.resize-handles{pointer-events:none}.resize-handle{position:absolute;background:var(--field-border-color);border-radius:1px}.handle-e{width:4px;height:16px;right:0px;top:50%;transform:translateY(-50%)}.handle-s{width:16px;height:4px;bottom:0px;left:50%;transform:translateX(-50%)}.handle-se{width:6px;height:6px;right:0px;bottom:0px}`;
|
|
149
149
|
|
|
150
150
|
const fieldTypeKeyMap$1 = {
|
|
151
151
|
'signature': 'toolbox.signature',
|
|
@@ -245,6 +245,10 @@ const LsEditorField = class {
|
|
|
245
245
|
}));
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
+
// Let Delete/Backspace propagate for date fields (no text to edit)
|
|
249
|
+
if ((e.key === 'Delete' || e.key === 'Backspace') && this.isDateField()) {
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
248
252
|
e.stopPropagation();
|
|
249
253
|
}
|
|
250
254
|
handleMouseMove(e) {
|
|
@@ -290,13 +294,19 @@ const LsEditorField = class {
|
|
|
290
294
|
}
|
|
291
295
|
}
|
|
292
296
|
handleDoubleClick(e) {
|
|
293
|
-
if (this.readonly
|
|
297
|
+
if (this.readonly) {
|
|
294
298
|
e.preventDefault();
|
|
295
299
|
e.stopPropagation();
|
|
296
300
|
return;
|
|
297
301
|
}
|
|
298
|
-
// Date fields
|
|
302
|
+
// Date fields open the picker on double-click
|
|
299
303
|
if (this.isDateField()) {
|
|
304
|
+
this.isEditing = true;
|
|
305
|
+
e.preventDefault();
|
|
306
|
+
e.stopPropagation();
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
if (LsEditorField.NO_EDIT_TYPES.includes(this.dataItem.formElementType)) {
|
|
300
310
|
e.preventDefault();
|
|
301
311
|
e.stopPropagation();
|
|
302
312
|
return;
|
|
@@ -351,6 +361,13 @@ const LsEditorField = class {
|
|
|
351
361
|
this.component.style.background = 'rgba(255,255,255,0.5)';
|
|
352
362
|
this.component.style.boxShadow = 'none';
|
|
353
363
|
this.isEditing = false;
|
|
364
|
+
// Flush pending debounced mutate so validation fires immediately
|
|
365
|
+
if (this.labeltimer) {
|
|
366
|
+
clearTimeout(this.labeltimer);
|
|
367
|
+
this.labeltimer = null;
|
|
368
|
+
}
|
|
369
|
+
// Always emit mutate on deselect to catch pending changes from ls-field-content
|
|
370
|
+
this.mutate.emit([{ action: 'update', data: this.dataItem }]);
|
|
354
371
|
// Force close date picker (Safari ignores blur)
|
|
355
372
|
const input = this.component.shadowRoot?.getElementById('editing-input');
|
|
356
373
|
if (input && input.type === 'date') {
|
|
@@ -365,8 +382,10 @@ const LsEditorField = class {
|
|
|
365
382
|
this.mutate.emit([{ action: 'delete', data: this.dataItem }]);
|
|
366
383
|
this.update.emit([{ action: 'delete', data: this.dataItem }]);
|
|
367
384
|
};
|
|
368
|
-
|
|
385
|
+
componentWillLoad() {
|
|
369
386
|
this.valueError = validateFieldValue(this.dataItem?.formElementType, this.dataItem?.validation, this.dataItem?.value, this.dataItem?.options);
|
|
387
|
+
}
|
|
388
|
+
componentDidLoad() {
|
|
370
389
|
this.sizeObserver = new ResizeObserver(entries => {
|
|
371
390
|
for (const entry of entries) {
|
|
372
391
|
if (entry.contentRect) {
|
|
@@ -465,35 +484,45 @@ const LsEditorField = class {
|
|
|
465
484
|
? 'var(--red-50, #FF5C56)'
|
|
466
485
|
: defaultRolePalette[this.dataItem?.signer % 100].s60;
|
|
467
486
|
const hostStyle = this.floatingActive && !this.readonly
|
|
468
|
-
? {
|
|
469
|
-
: {
|
|
487
|
+
? { outline: `2px ${this.dataItem?.signer > 99 ? 'dashed' : 'solid'} ${borderColor}`, outlineOffset: '-2px', boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06)', '--field-border-color': borderColor }
|
|
488
|
+
: { outline: `2px ${this.dataItem?.signer > 99 ? 'dashed' : 'solid'} ${borderColor}`, outlineOffset: '-2px', '--field-border-color': borderColor };
|
|
470
489
|
const zoomValue = parseFloat(this.zoom) || 1;
|
|
471
490
|
// const topOffset = (this.dataItem.height ?? 1) + 4;
|
|
472
491
|
const topOffset = 24;
|
|
473
|
-
return (h(Host, { key: '
|
|
492
|
+
return (h(Host, { key: '69d421bcf112299e4454b1f0d7e19f023c24eba3', id: this.dataItem ? 'ls-field-' + this.dataItem.id : undefined, style: hostStyle, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("div", { key: '2132f3425a824952bc1c0a94df36c5ec5d543a53', class: {
|
|
474
493
|
'ls-editor-field': true,
|
|
475
494
|
'is-selected': this.selected,
|
|
476
|
-
} }, !this.dataItem?.optional && this.dataItem?.formElementType !== 'checkbox' && (h("ls-icon", { key: '
|
|
495
|
+
} }, !this.dataItem?.optional && this.dataItem?.formElementType !== 'checkbox' && (h("ls-icon", { key: '0febe96c93a9336d91662187290a4e829db46d12', name: "required-icon", size: Math.round(12 * zoomValue), class: "ls-dv-required-icon", customStyle: {
|
|
477
496
|
position: 'absolute',
|
|
478
497
|
top: '50%',
|
|
479
498
|
right: `${0.25 * zoomValue}rem`,
|
|
480
499
|
transform: 'translateY(-50%)',
|
|
481
500
|
lineHeight: '1',
|
|
482
501
|
fontSize: `${0.75 * zoomValue}rem`,
|
|
483
|
-
} })), !this.dataItem?.optional && this.dataItem?.formElementType === 'checkbox' && (h("ls-icon", { key: '
|
|
502
|
+
} })), !this.dataItem?.optional && this.dataItem?.formElementType === 'checkbox' && (h("ls-icon", { key: '7bd57a9fa64c996a872a4a02628f015d55293a7d', name: "required-icon", size: Math.round(8 * zoomValue), class: "ls-dv-required-icon", customStyle: {
|
|
484
503
|
position: 'absolute',
|
|
485
504
|
top: `-${3 * zoomValue}px`,
|
|
486
505
|
right: `-${3 * zoomValue}px`,
|
|
487
506
|
lineHeight: '1',
|
|
488
507
|
fontSize: `${0.5 * zoomValue}rem`,
|
|
489
|
-
} })), this.isDateField() ? (h("input", { id: "editing-input", class: "ls-dv-date-field-input", type: "date", style: { color: `${defaultRolePalette[this.dataItem?.signer % 100].s100}`, textAlign: 'inherit' }, value: this.toISODate(this.dataItem?.value),
|
|
508
|
+
} })), this.isDateField() ? (this.isEditing ? (h("input", { id: "editing-input", class: "ls-dv-date-field-input ls-dv-date-field-active", type: "date", "aria-label": dvI18n.t('toolbox.date'), style: { color: `${defaultRolePalette[this.dataItem?.signer % 100].s100}`, textAlign: 'inherit' }, value: this.toISODate(this.dataItem?.value), onInput: e => {
|
|
490
509
|
const val = e.target.value;
|
|
491
510
|
this.alter({ value: this.formatDateFromISO(val) });
|
|
492
511
|
}, onChange: e => {
|
|
493
512
|
const input = e.target;
|
|
494
513
|
this.alter({ value: this.formatDateFromISO(input.value) });
|
|
514
|
+
this.isEditing = false;
|
|
495
515
|
forceCloseDatePicker(input);
|
|
496
|
-
}
|
|
516
|
+
}, onBlur: () => {
|
|
517
|
+
this.isEditing = false;
|
|
518
|
+
}, ref: el => {
|
|
519
|
+
if (el) {
|
|
520
|
+
requestAnimationFrame(() => {
|
|
521
|
+
el.focus();
|
|
522
|
+
el.showPicker?.();
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
} })) : null) : (h("textarea", { id: "editing-input", class: this.isEditing ? 'ls-dv-editor-field-editable' : 'ls-dv-hidden-field', style: { color: `${defaultRolePalette[this.dataItem?.signer % 100].s100}`, textAlign: 'inherit' }, value: this.dataItem?.value, placeholder: dvI18n.t(this.getFieldTypeKey()), rows: 1, onInput: e => {
|
|
497
526
|
const el = e.target;
|
|
498
527
|
el.style.height = 'auto';
|
|
499
528
|
el.style.height = el.scrollHeight + 'px';
|
|
@@ -506,9 +535,9 @@ const LsEditorField = class {
|
|
|
506
535
|
el.style.height = el.scrollHeight + 'px';
|
|
507
536
|
});
|
|
508
537
|
}
|
|
509
|
-
} })), h("div", { key: '
|
|
538
|
+
} })), h("div", { key: 'e9fa09079c0a79d48689e250eac9d0920c61b679', id: "field-info", class: this.isEditing ? 'ls-dv-hidden-field' : 'ls-dv-editor-field-draggable', style: { color: `${defaultRolePalette[this.dataItem?.signer % 100].s100}`, ...(this.dataItem?.formElementType === 'checkbox' ? { width: '100%', overflow: 'visible', justifyContent: 'center', alignItems: 'center' } : {}) } }, h("span", { key: '4bb8e6d406a70926c0ad037f6d22a91c7532a4eb', style: { width: '100%', display: 'block', textAlign: this.dataItem?.formElementType === 'checkbox' ? 'center' : 'inherit' } }, this.dataItem?.formElementType === 'checkbox'
|
|
510
539
|
? this.getCheckboxSymbol()
|
|
511
|
-
: this.dataItem?.value || dvI18n.t(this.getFieldTypeKey()))), (this.floatingActive || this.selected) && !this.multiSelected && this.dataItem?.label && (h("div", { key: '
|
|
540
|
+
: this.dataItem?.value || dvI18n.t(this.getFieldTypeKey()))), (this.floatingActive || this.selected) && !this.multiSelected && this.dataItem?.label && (h("div", { key: '14f10072270d2155b5db94c3ffeaa7867259a6b5', style: {
|
|
512
541
|
position: 'absolute',
|
|
513
542
|
background: `${defaultRolePalette[this.dataItem?.signer % 100].s20}`,
|
|
514
543
|
color: `${defaultRolePalette[this.dataItem?.signer % 100].s80}`,
|
|
@@ -520,7 +549,7 @@ const LsEditorField = class {
|
|
|
520
549
|
left: `-${2 * zoomValue}px`,
|
|
521
550
|
whiteSpace: 'nowrap',
|
|
522
551
|
width: 'fit-content',
|
|
523
|
-
} }, this.dataItem?.label)), (this.floatingActive || this.selected) && !this.multiSelected && (h("p", { key: '
|
|
552
|
+
} }, this.dataItem?.label)), (this.floatingActive || this.selected) && !this.multiSelected && (h("p", { key: 'de3107a8e0529f9878b084a9b9ca78cc88117199', style: {
|
|
524
553
|
position: 'absolute',
|
|
525
554
|
color: 'var(--gray-80, #3a3a3a)',
|
|
526
555
|
bottom: `-${1.75 * zoomValue}rem`,
|
|
@@ -531,7 +560,7 @@ const LsEditorField = class {
|
|
|
531
560
|
textOverflow: 'ellipsis',
|
|
532
561
|
maxWidth: `${10 * zoomValue}rem`,
|
|
533
562
|
fontFamily: 'sans-serif',
|
|
534
|
-
} }, dvI18n.t('fieldproperties.assignedto'), " ", this.assignee)), this.selected && !this.multiSelected && (h("div", { key: '
|
|
563
|
+
} }, dvI18n.t('fieldproperties.assignedto'), " ", this.assignee)), this.selected && !this.multiSelected && (h("div", { key: '7634c594ac826f92c4ac4358583e50e7ea82ef11', class: "resize-handles" }, h("div", { key: 'b0ff296db4fbc7f6c6d5d42369961b45e7fddf6d', class: "resize-handle handle-e" }), h("div", { key: '0915ee6760657bf8acd4512f4fa56c689239f99e', class: "resize-handle handle-s" }), h("div", { key: '49e9a7ed9cf23fdf155b23cbab370b26c5231274', class: "resize-handle handle-se" }))), this.floatingActive && !this.readonly && (h("button", { key: 'ce655a363c3bdc85c7a7015b981ed13630f49e16', class: 'ls-dv-x-button', style: {
|
|
535
564
|
display: 'flex',
|
|
536
565
|
justifyContent: 'center',
|
|
537
566
|
alignItems: 'center',
|
|
@@ -540,7 +569,7 @@ const LsEditorField = class {
|
|
|
540
569
|
lineHeight: `${0.75 * zoomValue}rem`,
|
|
541
570
|
fontSize: `${0.75 * zoomValue}rem`,
|
|
542
571
|
...(this.dataItem?.formElementType === 'checkbox' ? { transform: `translate(75%, -75%)` } : {}),
|
|
543
|
-
}, onClick: () => this.deleteField() }, h("ls-icon", { key: '
|
|
572
|
+
}, onClick: () => this.deleteField() }, h("ls-icon", { key: '7fe51c2ef42fd9cfdbb9c19849e2d5b53a58ab9a', name: "x-icon", size: Math.round(12 * zoomValue) }))))));
|
|
544
573
|
}
|
|
545
574
|
static get watchers() { return {
|
|
546
575
|
"dataItem": ["dataItemChanged", "watchDataItemHandler"],
|
|
@@ -562,6 +591,7 @@ const LsFieldContent = class {
|
|
|
562
591
|
roles = [];
|
|
563
592
|
showValidationTypes = true;
|
|
564
593
|
readonly = false;
|
|
594
|
+
filtertoolbox = null;
|
|
565
595
|
valueError = null;
|
|
566
596
|
isDirty = false;
|
|
567
597
|
watchDataItemHandler() {
|
|
@@ -574,6 +604,12 @@ const LsFieldContent = class {
|
|
|
574
604
|
this.valueError = validateFieldValue(this.dataItem?.formElementType, this.dataItem?.validation, this.dataItem?.value, this.dataItem?.options);
|
|
575
605
|
}
|
|
576
606
|
}
|
|
607
|
+
disconnectedCallback() {
|
|
608
|
+
if (this.labeltimer) {
|
|
609
|
+
clearTimeout(this.labeltimer);
|
|
610
|
+
this.labeltimer = null;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
577
613
|
mutate;
|
|
578
614
|
update;
|
|
579
615
|
// Send one or more mutations up the chain
|
|
@@ -828,7 +864,7 @@ const LsFieldContent = class {
|
|
|
828
864
|
this.alterImmediate({ validation: newValidation, value: newValue });
|
|
829
865
|
}
|
|
830
866
|
render() {
|
|
831
|
-
return (h(Host, { key: '
|
|
867
|
+
return (h(Host, { key: '00f5e6bc3dd6711643e5b0fe25f662d70c3d4b92' }, this.roles?.length > 0 && (h("ls-props-section", { key: '283e02c52f71c5093156e15e1bac5f5057bd0e1f', sectionTitle: dvI18n.t('fieldproperties.assignee'), sectionDescription: dvI18n.t('fieldproperties.assigneedescription') }, h("ls-assignee-select", { key: '84713e819a93cbb464970ee97c5d2488793cb30e', signer: this.dataItem?.signer, roles: this.roles, disabled: this.readonly, disabledSenderReason: this.getSenderDisabledReason(), disabledApproverReason: this.isSignatureType() ? dvI18n.t('fieldproperties.signaturecannotapproversingle') : '', onAssigneeChange: ev => this.handleReassign(ev.detail) }))), h("ls-props-section", { key: 'cd2da1fc874d8d1c37055ad5fb09594c046ba794', sectionTitle: dvI18n.t('fieldproperties.fieldtype'), sectionDescription: dvI18n.t('fieldproperties.fieldtypedescription') }, h("ls-field-type-select", { key: '2ec05e8faf63ce2d5a07dec45ae7c349728e032f', fieldType: this.dataItem?.formElementType, assignee: this.dataItem?.signer, roles: this.roles, roleTypes: [this.getRoleType()], disabled: this.readonly, filtertoolbox: this.filtertoolbox, onFieldTypeChange: ev => this.handleFieldTypeChange(ev.detail) })), this.dataItem?.formElementType !== 'signature' && (h("ls-props-section", { key: '0b4f881aaa5eca5decfe7bf44941dfb51f816edc', sectionTitle: dvI18n.t('fieldproperties.requiredfield'), row: true, sectionDescription: dvI18n.t('fieldproperties.requiredfielddescription') }, h("ls-toggle", { key: '59b7177e7d28957fe276c7f1626831bd1e359c57', id: "toggle-required", checked: !this.dataItem?.optional, onValueChange: ev => !this.readonly && this.alterImmediate({ optional: !ev.detail }) }))), h("ls-props-section", { key: '448f076b297121bab31ba05d7b338c63933f4dbc', sectionTitle: dvI18n.t('fieldproperties.fieldlabel'), sectionDescription: dvI18n.t('fieldproperties.fieldlabeldescription') }, h("ls-formfield", { key: '34aa3ecdba9edb0b2eac092cf34456beade7e311', as: "text", name: "field-label", value: this.dataItem?.label, placeholder: getFieldTitleSuggestion(this.dataItem?.formElementType), disabled: this.readonly, onTextChange: e => this.alter({ label: e.detail.value }) })), this.supportsValue() && (h("ls-props-section", { key: '55ad3cb8e8f86a79412c070700f077ad4a76394e', sectionTitle: dvI18n.t('fieldproperties.value'), sectionDescription: dvI18n.t('fieldproperties.valuedescription') }, this.isDateField() ? (h("div", { class: "ls-dv-date-input-wrapper" }, h("input", { class: "ls-dv-date-display", type: "text", value: this.dataItem?.value, placeholder: this.getDateFormat(), readOnly: true, onClick: () => {
|
|
832
868
|
if (this.readonly)
|
|
833
869
|
return;
|
|
834
870
|
const picker = this.component.shadowRoot.getElementById('ls-date-picker');
|
|
@@ -838,9 +874,9 @@ const LsFieldContent = class {
|
|
|
838
874
|
const input = e.target;
|
|
839
875
|
this.alter({ value: this.formatDateFromISO(input.value) });
|
|
840
876
|
forceCloseDatePicker(input);
|
|
841
|
-
}, disabled: this.readonly }))) : (h("ls-formfield", { as: "text", name: "field-value", value: this.dataItem?.value, placeholder: getFieldPlaceholder(this.dataItem?.formElementType), valid: !this.valueError, dirty: this.isDirty, errorText: this.valueError, disabled: this.readonly, onTextChange: e => this.handleValueChange(e.detail.value) })))), this.dataItem.validation === 20 && (h("ls-props-section", { key: '
|
|
877
|
+
}, disabled: this.readonly }))) : (h("ls-formfield", { as: "text", name: "field-value", value: this.dataItem?.value, placeholder: getFieldPlaceholder(this.dataItem?.formElementType), valid: !this.valueError, dirty: this.isDirty, errorText: this.valueError, disabled: this.readonly, onTextChange: e => this.handleValueChange(e.detail.value) })))), this.dataItem.validation === 20 && (h("ls-props-section", { key: 'c033c2ec1addc298274756c32aabb464bf7f6421', sectionTitle: dvI18n.t('fieldproperties.options'), sectionDescription: dvI18n.t('fieldproperties.optionsdescription') }, h("textarea", { key: '939e98509967a53cafaecf7fc66a7b8b297ccad0', value: this.dataItem?.options, placeholder: "Option 1\nOption 2\nOption 3", onInput: e => this.alter({ options: e.target.value }), disabled: this.readonly }))), this.showValidationTypes && this.dataItem?.formElementType !== 'drawn field' && this.dataItem?.formElementType !== 'regular expression' && this.dataItem?.formElementType !== 'initials' && (h("ls-props-section", { key: '26cd86ed13d794c19d0764c261a3aeeb26baa958', sectionTitle: dvI18n.t('fieldproperties.contentformat'), sectionDescription: dvI18n.t('fieldproperties.contentformatdescription') }, h("ls-input-wrapper", { key: 'db3e98a1fae7280ec82aeadeafd82ee0e75a3f57', select: true }, h("select", { key: '7ddb1ae410ad37bb774af1c2bfd3b865d65e89e9', onChange: ev => !this.readonly && this.handleFormatChange(parseInt(ev.target.value)) }, validationTypes
|
|
842
878
|
.filter(type => type.formType === this.dataItem?.formElementType)
|
|
843
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), this.dataItem?.formElementType === 'checkbox' && this.getCheckboxStates().length === 2 && (h("ls-props-section", { key: '
|
|
879
|
+
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), this.dataItem?.formElementType === 'checkbox' && this.getCheckboxStates().length === 2 && (h("ls-props-section", { key: 'bd1410e73a2f58dde724fbbf05a14d2664e5be50', sectionTitle: dvI18n.t('fieldproperties.displaystate'), sectionDescription: dvI18n.t('fieldproperties.displaystatedescription') }, h("div", { key: 'bec219016a0006c013e009792a471429645fd173', class: "ls-dv-checkbox-toggle" }, this.getCheckboxStates().map((state, idx) => (h("button", { key: idx, class: { 'ls-dv-checkbox-toggle-btn': true, 'ls-dv-active': idx === 0 ? this.dataItem?.value?.toString() !== 'true' : this.dataItem?.value?.toString() === 'true' }, onClick: () => !this.readonly && this.alterImmediate({ value: idx === 0 ? 'false' : 'true' }), disabled: this.readonly }, state)))))), h("slot", { key: 'e40b61c6531b30239885dcc6b3ff1f7a46e8769d' })));
|
|
844
880
|
}
|
|
845
881
|
static get watchers() { return {
|
|
846
882
|
"dataItem": ["watchDataItemHandler"]
|
|
@@ -1107,7 +1143,7 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
1107
1143
|
return '';
|
|
1108
1144
|
}
|
|
1109
1145
|
render() {
|
|
1110
|
-
return (h(Host, { key: '5ee4d83054b39ff8f15f68ce81855358982b47d6' }, h("div", { key: '3c093b283a9675b94476139f743458343b4f868b', class: 'ls-dv-expand-fields-row', onClick: () => (this.expanded = !this.expanded) }, h("ls-icon", { key: '9ad907b068024ba3b062e01487f2d9f81dc62758', name: this.expanded ? 'expand-icon' : 'collapse-icon', size: 20, solid: true }), h("p", { key: '71078ba34ca93acf9b7b214539621d9e543a695a' }, dvI18n.t('fieldproperties.advancedproperties'))), this.expanded && (h("div", { key: '31535010abc956aa04a4723bcf11dd12c503a53f', class: 'ls-dv-field-set' }, h("ls-props-section", { key: '82407eb2fafabc44627f5914e2788f798c908c9a', sectionTitle: dvI18n.t('fieldproperties.fieldorder'), sectionDescription: dvI18n.t('fieldproperties.fieldorderdescription') }, h("input", { key: 'e5f04194d0a766749fbd4a1314c05c66320eae46',
|
|
1146
|
+
return (h(Host, { key: '5ee4d83054b39ff8f15f68ce81855358982b47d6' }, h("div", { key: '3c093b283a9675b94476139f743458343b4f868b', class: 'ls-dv-expand-fields-row', onClick: () => (this.expanded = !this.expanded) }, h("ls-icon", { key: '9ad907b068024ba3b062e01487f2d9f81dc62758', name: this.expanded ? 'expand-icon' : 'collapse-icon', size: 20, solid: true }), h("p", { key: '71078ba34ca93acf9b7b214539621d9e543a695a' }, dvI18n.t('fieldproperties.advancedproperties'))), this.expanded && (h("div", { key: '31535010abc956aa04a4723bcf11dd12c503a53f', class: 'ls-dv-field-set' }, h("ls-props-section", { key: '82407eb2fafabc44627f5914e2788f798c908c9a', sectionTitle: dvI18n.t('fieldproperties.fieldorder'), sectionDescription: dvI18n.t('fieldproperties.fieldorderdescription') }, h("input", { key: 'e5f04194d0a766749fbd4a1314c05c66320eae46', type: "number", placeholder: dvI18n.t('fieldproperties.placeholdereg1'), value: this.getValue('fieldOrder'), onInput: e => {
|
|
1111
1147
|
console.log(e);
|
|
1112
1148
|
this.alter({ fieldOrder: e.target.value }, 100);
|
|
1113
1149
|
}, onChange: () => { console.log('onchange'); }, disabled: this.readonly })), h("ls-props-section", { key: '19166c37580711be5cbf51602e6fdfebc2e664ae', sectionTitle: dvI18n.t('fieldproperties.refname') }, h("input", { key: '96b43215952a905d1870dc85ad9b323634dd48a2', value: this.getValue('link'), placeholder: dvI18n.t('fieldproperties.placeholdercheckboxgroup'), onInput: e => this.alter({ link: e.target.value }, 300), disabled: this.readonly })), h("ls-props-section", { key: '3310038dc7a28e863b34c778e3e1a8f7db7e941e', sectionTitle: dvI18n.t('fieldproperties.linktype'), sectionDescription: dvI18n.t('fieldproperties.linktypedescription') }, h("select", { key: '979ea4470288f616c3a20e0fb9279b43d7805218', onChange: e => this.alter({ linkType: e.target.value }), name: "Link Field", "aria-label": "Link Field", disabled: this.readonly }, h("option", { key: '36c9a9beaf18393c86ddf392bb73f0e48de5eb34', value: "0", selected: this.getValue('linkType') === '0' }, dvI18n.t('fieldproperties.linktypenoption')), h("option", { key: '9e652f27e8fa2d2b232e721f54e9da4bdd13fe9f', value: "1", selected: this.getValue('linkType') === '1' }, dvI18n.t('fieldproperties.linktypeoneofgroup')), h("option", { key: 'e1c980a85eb33f41ddea960cf67e00269a448f80', value: "2", selected: this.getValue('linkType') === '2' }, dvI18n.t('fieldproperties.linktypeaddtotal')), h("option", { key: '508f2e9bf1d5aa99d526312c6e2c3ac456707c60', value: "3", selected: this.getValue('linkType') === '3' }, dvI18n.t('fieldproperties.linktypeconditional')))), h("ls-props-section", { key: '19b6e927b0d23ac8c867f1ac664f897920eeb8f9', sectionTitle: dvI18n.t('fieldproperties.linkvalue'), sectionDescription: dvI18n.t('fieldproperties.linkvaluedescription') }, h("input", { key: '51e3641661d1b40e8b110029436c2a09fa46cb77', value: this.getValue('logicAction'), width: "30", placeholder: dvI18n.t('fieldproperties.placeholdercheckboxgroup'), onChange: e => this.alter({ logicAction: e.target.value }), disabled: this.readonly }))))));
|
|
@@ -1212,6 +1248,8 @@ const LsFieldTypeSelect = class {
|
|
|
1212
1248
|
disabled = false;
|
|
1213
1249
|
/** Show mixed state when multi-select has different field types */
|
|
1214
1250
|
mixed = false;
|
|
1251
|
+
/** Pipe-delimited filter for allowed field types */
|
|
1252
|
+
filtertoolbox = null;
|
|
1215
1253
|
isOpen = false;
|
|
1216
1254
|
fieldTypeChange;
|
|
1217
1255
|
handleWindowClick(event) {
|
|
@@ -1230,21 +1268,21 @@ const LsFieldTypeSelect = class {
|
|
|
1230
1268
|
}
|
|
1231
1269
|
render() {
|
|
1232
1270
|
const color = defaultRolePalette[this.assignee % 100];
|
|
1233
|
-
const validTypes = getValidFieldTypes(this.roleTypes);
|
|
1271
|
+
const validTypes = getValidFieldTypes(this.roleTypes).filter(t => this.filtertoolbox === null || this.filtertoolbox.split('|').includes(t));
|
|
1234
1272
|
const displayLabel = this.mixed
|
|
1235
1273
|
? dvI18n.t('fieldproperties.mixed')
|
|
1236
1274
|
: dvI18n.t(fieldTypeKeyMap[this.fieldType] || 'toolbox.text');
|
|
1237
|
-
return (h(Host, { key: '
|
|
1275
|
+
return (h(Host, { key: '6bfe8fdca902983b87999b331d0ab9e4348d8119' }, h("div", { key: 'd9ecf1411a4b353db022651b5312d2eed8581ce4', class: "ls-dv-fieldtype-dropdown" }, h("div", { key: '2d39319df63a4bd49117efb6f6597ca0acf4998f', class: "ls-dv-fieldtype-header", style: {
|
|
1238
1276
|
border: `1px dashed ${color.s30}`,
|
|
1239
1277
|
background: color.s10,
|
|
1240
|
-
} }, h("div", { key: '
|
|
1278
|
+
} }, h("div", { key: '0dc0422afef8b56b4eb126cf51d5d74eadd0b035', class: "ls-dv-fieldtype-inner" }, h("div", { key: 'e293fddbf13371be97cfae330245fc70a3d90fb6', class: "ls-dv-fieldtype-icon", style: {
|
|
1241
1279
|
border: `1px solid ${color.s60}`,
|
|
1242
1280
|
color: color.s60,
|
|
1243
1281
|
background: color.s10,
|
|
1244
|
-
} }, h("ls-icon", { key: '
|
|
1282
|
+
} }, h("ls-icon", { key: 'd70e7c8a2166ab9a28025fdea837d4ef2548a568', name: this.mixed ? 'view-grid-icon' : getFieldIcon(this.fieldType), size: 20 })), h("span", { key: 'fdac95009c85c06097d852de5e67c881614d22db', class: "ls-dv-fieldtype-name" }, displayLabel), !this.disabled && (h("button", { key: '335160180754f0e4d7f3cb92b0dbf35700aa8ffe', class: "ls-dv-fieldtype-btn", onClick: e => {
|
|
1245
1283
|
e.stopPropagation();
|
|
1246
1284
|
this.toggleDropdown();
|
|
1247
|
-
}, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('fieldproperties.changefieldtype') }, h("ls-icon", { key: '
|
|
1285
|
+
}, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('fieldproperties.changefieldtype') }, h("ls-icon", { key: 'b301132f3002fb687f22afc745791e031f0130ba', name: "switch-horizontal-icon", size: 16 }))))), this.isOpen && (h("div", { key: 'f8a2da27316feb75da093c9a6567dda9c491acc7', class: "ls-dv-fieldtype-list" }, validTypes.map(type => (h("div", { class: `ls-dv-fieldtype-item ${type === this.fieldType && !this.mixed ? 'ls-dv-selected' : ''}`, style: {
|
|
1248
1286
|
'--background-selected': color.s10,
|
|
1249
1287
|
'--check-icon-selected': color.s50,
|
|
1250
1288
|
}, onClick: () => this.selectFieldType(type) }, h("div", { class: "ls-dv-fieldtype-item-icon", style: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-CItPoq74.js';
|
|
2
|
-
import { d as dvI18n } from './i18n-
|
|
2
|
+
import { d as dvI18n } from './i18n-WVWIAGo_.js';
|
|
3
3
|
import { F as FIELD_DEFAULTS } from './fieldDefaults-04cXI5GQ.js';
|
|
4
4
|
import { d as defaultRolePalette } from './defaultPalette-CwCWCxsI.js';
|
|
5
5
|
import { a as undo, r as redo } from './history-xqZBqrca.js';
|
|
@@ -130,7 +130,7 @@ const LsLeftBar = class {
|
|
|
130
130
|
return (h("div", { class: "ls-dv-field-properties-outer" }, h("div", { class: "ls-dv-properties-header" }, h("div", { class: "ls-dv-properties-header-icon" }, h("ls-icon", { name: "pre-filled-content-icon" })), h("h1", { class: "ls-dv-properties-header-title" }, dvI18n.t('viewer.fieldproperties')), h("button", { class: "ls-dv-tertiary-grey", onClick: e => {
|
|
131
131
|
this.clearSelected.emit();
|
|
132
132
|
e.preventDefault();
|
|
133
|
-
}, style: { borderRadius: '0.75rem' }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('viewer.closepropertiespanel') }, h("ls-icon", { name: "x-icon", size: 20 }))), h("ls-field-properties", { id: "my-field-panel", dataItem: this.selectedDataItems, template: this.template, readonly: this.template?.locked || false })));
|
|
133
|
+
}, style: { borderRadius: '0.75rem' }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('viewer.closepropertiespanel') }, h("ls-icon", { name: "x-icon", size: 20 }))), h("ls-field-properties", { id: "my-field-panel", dataItem: this.selectedDataItems, template: this.template, readonly: this.template?.locked || false, filtertoolbox: this.filtertoolbox })));
|
|
134
134
|
}
|
|
135
135
|
renderToolbox() {
|
|
136
136
|
return (h("div", { id: "ls-toolbox", class: this.manager === 'toolbox' ? 'ls-dv-toolbox' : 'ls-dv-hidden' }, h("div", { class: "ls-dv-editor-infobox" }, h("h2", { class: "ls-dv-toolbox-section-title" }, dvI18n.t('toolbox.title')), h("p", { class: "ls-dv-toolbox-section-description" }, dvI18n.t('toolbox.description'))), h("div", { class: "ls-dv-fields-box" }, this.signer > 0 && this.showTool('signature') && !this.checkType('APPROVER') && (h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: dvI18n.t('toolbox.signature'), defaultHeight: FIELD_DEFAULTS['signature'].defaultHeight, defaultWidth: FIELD_DEFAULTS['signature'].defaultWidth, validation: 0, icon: "signature-icon", tooltip: dvI18n.t('toolbox.signaturetooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'signature' })), this.signer === 0 && this.showTool('auto sign') && (h("ls-toolbox-field", { elementType: "admin", formElementType: "auto sign", label: dvI18n.t('toolbox.autosign'), defaultHeight: FIELD_DEFAULTS['auto sign'].defaultHeight, defaultWidth: FIELD_DEFAULTS['auto sign'].defaultWidth, validation: 3000, icon: "auto-sign-icon", tooltip: dvI18n.t('toolbox.autosigntooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'auto sign' })), this.showTool('text') && (h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: dvI18n.t('toolbox.text'), defaultHeight: FIELD_DEFAULTS['text'].defaultHeight, defaultWidth: FIELD_DEFAULTS['text'].defaultWidth, validation: 0, icon: "text-icon", tooltip: dvI18n.t('toolbox.texttooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'text' })), this.signer > 0 && this.showTool('signing date') && (h("ls-toolbox-field", { elementType: "text", formElementType: "signing date", label: dvI18n.t('toolbox.signingdate'), defaultHeight: FIELD_DEFAULTS['signing date'].defaultHeight, defaultWidth: FIELD_DEFAULTS['signing date'].defaultWidth, validation: 32, icon: "auto-date-icon", tooltip: dvI18n.t('toolbox.signingdatetooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'signing date' })), this.showTool('date') && (h("ls-toolbox-field", { elementType: "text", formElementType: "date", label: dvI18n.t('toolbox.date'), defaultHeight: FIELD_DEFAULTS['date'].defaultHeight, defaultWidth: FIELD_DEFAULTS['date'].defaultWidth, validation: 4, icon: "calender-icon", tooltip: dvI18n.t('toolbox.datetooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'date' })), this.showTool('email') && (h("ls-toolbox-field", { elementType: "text", formElementType: "email", label: dvI18n.t('toolbox.email'), defaultHeight: FIELD_DEFAULTS['email'].defaultHeight, defaultWidth: FIELD_DEFAULTS['email'].defaultWidth, validation: 1, icon: "at-symbol-icon", tooltip: dvI18n.t('toolbox.emailtooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'email' })), this.showTool('initials') && (h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: dvI18n.t('toolbox.initials'), defaultHeight: FIELD_DEFAULTS['initials'].defaultHeight, defaultWidth: FIELD_DEFAULTS['initials'].defaultWidth, validation: 2000, icon: "initials-icon", tooltip: dvI18n.t('toolbox.initialstooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'initials' })), this.showTool('number') && (h("ls-toolbox-field", { elementType: "text", formElementType: "number", label: dvI18n.t('toolbox.number'), defaultHeight: FIELD_DEFAULTS['number'].defaultHeight, defaultWidth: FIELD_DEFAULTS['number'].defaultWidth, validation: 50, icon: "hashtag-icon", tooltip: dvI18n.t('toolbox.numbertooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'number' })), this.showTool('dropdown') && (h("ls-toolbox-field", { elementType: "text", formElementType: "dropdown", label: dvI18n.t('toolbox.dropdown'), defaultHeight: FIELD_DEFAULTS['dropdown'].defaultHeight, defaultWidth: FIELD_DEFAULTS['dropdown'].defaultWidth, validation: 20, icon: "dropdown-icon", tooltip: dvI18n.t('toolbox.dropdowntooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'dropdown' })), this.showTool('checkbox') && (h("ls-toolbox-field", { elementType: "text", formElementType: "checkbox", label: dvI18n.t('toolbox.checkbox'), defaultHeight: FIELD_DEFAULTS['checkbox'].defaultHeight, defaultWidth: FIELD_DEFAULTS['checkbox'].defaultWidth, validation: 25, icon: "check-icon", tooltip: dvI18n.t('toolbox.checkboxtooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'checkbox' })), this.signer > 0 && this.showTool('regex') && (h("ls-toolbox-field", { elementType: "text", formElementType: "regular expression", label: dvI18n.t('toolbox.regex'), defaultHeight: FIELD_DEFAULTS['regular expression'].defaultHeight, defaultWidth: FIELD_DEFAULTS['regular expression'].defaultWidth, validation: 93, icon: "code-icon", tooltip: dvI18n.t('toolbox.regextooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'regular expression' })), this.signer > 0 && this.showTool('file') && (h("ls-toolbox-field", { elementType: "text", formElementType: "file", label: dvI18n.t('toolbox.file'), defaultHeight: FIELD_DEFAULTS['file'].defaultHeight, defaultWidth: FIELD_DEFAULTS['file'].defaultWidth, validation: 74, icon: "upload-icon", tooltip: dvI18n.t('toolbox.filetooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'file' })), this.signer > 0 && this.showTool('drawn') && (h("ls-toolbox-field", { elementType: "text", formElementType: "drawn field", label: dvI18n.t('toolbox.drawn'), defaultHeight: FIELD_DEFAULTS['drawn field'].defaultHeight, defaultWidth: FIELD_DEFAULTS['drawn field'].defaultWidth, validation: 90, icon: "pencil-icon", tooltip: dvI18n.t('toolbox.drawntooltip'), signer: this.signer, isSelected: this.fieldTypeSelected?.formElementType === 'drawn field' })))));
|
|
@@ -364,7 +364,7 @@ const LsSelectMenu = class {
|
|
|
364
364
|
};
|
|
365
365
|
LsSelectMenu.style = lsSelectMenuCss();
|
|
366
366
|
|
|
367
|
-
const version = "1.0.
|
|
367
|
+
const version = "1.0.2";
|
|
368
368
|
|
|
369
369
|
const lsStatusbarCss = () => `:host{position:absolute;z-index:1000;left:23.625rem;right:0.5rem;bottom:1rem;display:flex;flex-direction:row;gap:0.5rem;align-items:end;justify-content:space-between;height:2.25rem;overflow:visible}:host(.ls-dv-statusbar-preview){left:0;right:0;justify-content:center}.ls-dv-status-bar-group{display:flex;flex-direction:row;gap:0.5rem;align-items:end}.ls-dv-controls-bar{display:flex;flex-direction:row;background-color:white;border:1px solid var(--gray-30, #e0e2e5);box-shadow:0px 4px 16px rgba(0, 0, 0, 0.1);border-radius:1.125rem;height:fit-content}.ls-dv-page-nav{margin-left:-6rem;position:relative}:host(.ls-dv-statusbar-preview) .ls-dv-page-nav{margin-left:0}*{margin:0;padding:0;box-sizing:border-box}.ls-dv-status-bar-section{display:flex;flex-direction:row;align-items:center;gap:0.625rem;padding:0 0.625rem;height:2.25rem}.ls-dv-controls-bar>:not(:nth-child(1)){border-left:1px solid var(--gray-30, #e0e2e5)}button{border:0}button:hover{color:var(--gray-100, #45484d);border-radius:0.625rem}button:disabled{color:var(--gray-40, #d8d9dc);cursor:not-allowed}input[type=range]{-webkit-appearance:none;width:100%;height:0.5rem;background:var(--gray-20, #edeff2);border-radius:0.25rem;outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:0.5rem;height:0.5rem;background:var(--gray-70, #939599);border-radius:50%;cursor:pointer}input[type=range]::-moz-range-thumb{width:0.5rem;height:0.5rem;background:var(--gray-70, #939599);border:none;border-radius:50%;cursor:pointer}input[type=range]::-moz-range-track{background:var(--gray-20, #edeff2);height:0.5rem;border-radius:0.25rem}input[type=range]::-webkit-slider-runnable-track{background:var(--gray-20, #edeff2);height:0.5rem;border-radius:0.25rem}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}span{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem}.ls-dv-input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}button{all:unset;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--gray-80, #6f7176);text-transform:capitalize}button.ls-dv-tertiary-grey:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}.ls-dv-zoom-level-btn{font-family:var(--font-family);font-size:var(--text-sm);font-weight:400;color:var(--gray-80, #6f7176);padding:0.25rem 0.375rem;border-radius:0.25rem;margin:0 -0.25rem}.ls-dv-zoom-level-btn:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-zoom-menu{position:absolute;width:6rem;bottom:3rem;left:1rem;background:white;border:1px solid var(--gray-30, #e0e2e5);border-radius:1rem;box-shadow:0px 4px 24px rgba(0, 0, 0, 0.12);padding:0.25rem;z-index:1001;display:flex;flex-direction:column;gap:0.25rem}.ls-dv-page-menu{left:auto;max-height:60cqh;overflow-y:auto}.ls-dv-zoom-menu-item{position:relative;font-family:var(--font-family);font-size:var(--text-sm);font-weight:400;color:var(--gray-80, #6f7176);padding:0.375rem 0.625rem;border-radius:0.825rem;display:flex;align-items:center;justify-content:space-between}.ls-dv-zoom-menu-item:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-zoom-menu-item.active{font-weight:500;color:var(--primary-70, #2134dc);background:var(--primary-10, #eff4ff)}.ls-dv-thumbnail-popover{position:absolute;bottom:3rem;right:-3rem;background:white;border:1px solid var(--gray-30, #e0e2e5);border-radius:1.75rem;box-shadow:0px 8px 24px rgba(0, 0, 0, 0.15);padding:0.75rem;z-index:1001;max-height:80cqh;overflow:hidden;display:flex;flex-direction:column}.ls-dv-thumbnail-grid{background:var(--gray-10, #f7f8fa);padding:0.75rem;border-radius:1rem;border:1px solid var(--gray-30, #e0e2e5);display:grid;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));gap:1rem;overflow-y:auto;max-height:100%}.ls-dv-thumbnail-wrapper{display:flex;flex-direction:column;align-items:center;gap:0.25rem;cursor:pointer}.ls-dv-thumbnail-wrapper>span:last-child{font-size:var(--text-xs, 0.75rem);color:var(--gray-80, #6f7176);font-weight:500}.ls-dv-thumbnail{border:1px solid var(--gray-30, #e0e2e5);border-radius:0.5rem;cursor:pointer;transition:border-color 0.15s}.ls-dv-thumbnail:hover{border-color:var(--primary-40, #79adfc);box-shadow:0 0 0 2px rgba(163, 180, 249, 0.3)}.ls-dv-thumbnail.active{border-color:var(--primary-60, #4456f6);outline:0.25rem solid var(--primary-30, #9dc3fc);box-shadow:var(--shadow-md)}.ls-dv-thumbnail-dots{display:flex;gap:3px;justify-content:center;flex-wrap:wrap;margin-top:0.25rem}.ls-dv-thumbnail-dot{width:0.5rem;height:0.5rem;border-radius:50%;display:inline-block;border:2px solid var(--dot-color-60);background-color:var(--dot-color-40);cursor:pointer;transition:background-color 0.15s, border-color 0.15s}.ls-dv-thumbnail-dot:hover{background-color:var(--dot-color-60);border-color:var(--dot-color-70)}.ls-dv-version{position:absolute;bottom:100%;right:0;color:var(--gray-50, #afb0b2);font-size:0.625rem;padding-bottom:0.25rem;display:none}:host(.ls-dv-statusbar-preview) .ls-dv-version{display:block;bottom:-1.25rem;right:-0.5rem}`;
|
|
370
370
|
|
|
@@ -570,7 +570,7 @@ const LsStatusbar = class {
|
|
|
570
570
|
this.editor._skipHistory = true;
|
|
571
571
|
this.editor.mutate.emit(mutations);
|
|
572
572
|
}
|
|
573
|
-
|
|
573
|
+
componentWillLoad() {
|
|
574
574
|
this.zoom = this.editor.zoom;
|
|
575
575
|
}
|
|
576
576
|
onPageChange() {
|
|
@@ -597,9 +597,9 @@ const LsStatusbar = class {
|
|
|
597
597
|
}
|
|
598
598
|
render() {
|
|
599
599
|
const isPreview = this.mode === 'preview';
|
|
600
|
-
return (h(Host, { key: '
|
|
600
|
+
return (h(Host, { key: '7035c4cdf76ac09b909a098d635dd075d7d9388d', class: { 'ls-dv-statusbar-preview': isPreview } }, !isPreview && (h("div", { key: '845fe27459a05b96b06c4025c2f8090b75fee027', class: 'ls-dv-controls-bar' }, h("div", { key: 'fd7e683e2e96e3da8cab7ba9626e9c64c70d62ad', class: 'ls-dv-status-bar-section' }, h("button", { key: 'b015f095a886f8fd41318df2ad1ac9cb4e82ee7c', onClick: () => this.applyUndo(), id: "undo-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('statusbar.undo') }, h("ls-icon", { key: '8ff999de40c5acd0c1cd8dab5858ae8c0b85af99', name: "undo-icon", size: 18 })), h("button", { key: '5019459ef97755347a26d2dd6bc1c5d46fed1506', onClick: () => this.applyRedo(), id: "redo-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('statusbar.redo') }, h("ls-icon", { key: '750526932ff82720ee62b3727b35717621031d1b', name: "redo-icon", style: { transform: "scale(-1, 1)", marginLeft: '0.25rem' }, size: 18 }))))), h("div", { key: 'a1f56781157ad515423a25bcb02c7513a501a26e', class: { 'ls-dv-controls-bar': true, 'ls-dv-page-nav': true } }, h("div", { key: '4b2825b2d93deb7d9976c1f67312053d8fbd6b71', class: 'ls-dv-status-bar-section', style: this.pageCount === 1 && { display: 'none' } }, h("button", { key: '19128a07beda58b596a4d838793888074d53cc50', onClick: () => {
|
|
601
601
|
this.editor.pagePrev();
|
|
602
|
-
}, disabled: this.page === 1, id: "prev-page-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": this.page === 1 ? dvI18n.t('statusbar.nopreviouspage') : dvI18n.t('statusbar.previouspage') }, h("ls-icon", { key: '
|
|
602
|
+
}, disabled: this.page === 1, id: "prev-page-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": this.page === 1 ? dvI18n.t('statusbar.nopreviouspage') : dvI18n.t('statusbar.previouspage') }, h("ls-icon", { key: 'cd90982d3f1b3f1aabc9f9079a6c065cf60cce59', name: "chevron-left-icon" })), h("button", { key: '570e47ef8164220b2d9aba31e2952c8036c6f99d', id: "page-level-btn", class: "ls-dv-zoom-level-btn", onClick: () => {
|
|
603
603
|
this.showPageMenu = !this.showPageMenu;
|
|
604
604
|
if (this.showPageMenu) {
|
|
605
605
|
requestAnimationFrame(() => document.addEventListener('click', this.pageMenuClickHandler, true));
|
|
@@ -607,13 +607,13 @@ const LsStatusbar = class {
|
|
|
607
607
|
else {
|
|
608
608
|
document.removeEventListener('click', this.pageMenuClickHandler, true);
|
|
609
609
|
}
|
|
610
|
-
} }, this.page, " / ", this.pageCount), this.showPageMenu && (h("div", { key: '
|
|
610
|
+
} }, this.page, " / ", this.pageCount), this.showPageMenu && (h("div", { key: '4db0e3d7f8dcc4bb079523abcc6811fd59a9d698', id: "ls-page-menu", class: "ls-dv-zoom-menu ls-dv-page-menu" }, Array.from({ length: this.pageCount }, (_, i) => i + 1).map(p => (h("button", { class: { 'ls-dv-zoom-menu-item': true, 'active': this.page === p }, onClick: () => {
|
|
611
611
|
this.goToPage(p);
|
|
612
612
|
this.showPageMenu = false;
|
|
613
613
|
document.removeEventListener('click', this.pageMenuClickHandler, true);
|
|
614
|
-
} }, p, this.page === p && h("ls-icon", { name: "check-icon", size: 14 })))))), h("button", { key: '
|
|
614
|
+
} }, p, this.page === p && h("ls-icon", { name: "check-icon", size: 14 })))))), h("button", { key: '7b92c7db1a2470124a797af3b69d53d78254080d', onClick: () => {
|
|
615
615
|
this.editor.pageNext();
|
|
616
|
-
}, disabled: this.page === this.pageCount, id: "next-page-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": this.page === this.pageCount ? dvI18n.t('statusbar.nonextpage') : dvI18n.t('statusbar.nextpage') }, h("ls-icon", { key: '
|
|
616
|
+
}, disabled: this.page === this.pageCount, id: "next-page-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": this.page === this.pageCount ? dvI18n.t('statusbar.nonextpage') : dvI18n.t('statusbar.nextpage') }, h("ls-icon", { key: 'bda8988bbd778bbc16f75d2d7299987d9e550753', name: "chevron-right-icon" })))), h("div", { key: '88ad63ca844b8c7ca543fc9cad995eec8ae4cb91', class: 'ls-dv-status-bar-group' }, h("div", { key: '72f15c5e488a8b0e7cb214e01ac53dcb220fe592', class: 'ls-dv-controls-bar', style: { position: 'relative' } }, h("div", { key: '5e3dae4cd7ebf60b57e99995b75a4380729ded88', class: 'ls-dv-status-bar-section' }, h("button", { key: 'f2e8c3af825e08bc4fb16750e41ef423e6aff93b', onClick: () => this.setZoom(this.editor.zoom * 0.8), id: "zoom-out-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('statusbar.zoomout') }, h("ls-icon", { key: '9ce1369ee910dfd32745f729e7dcc6208641867b', name: "zoom-out-icon" })), h("button", { key: '453fb7ba30e350a151d2b66d0a79c70736f56d3a', id: "zoom-level-btn", class: "ls-dv-zoom-level-btn", onClick: () => {
|
|
617
617
|
this.showZoomMenu = !this.showZoomMenu;
|
|
618
618
|
if (this.showZoomMenu) {
|
|
619
619
|
requestAnimationFrame(() => document.addEventListener('click', this.zoomMenuClickHandler, true));
|
|
@@ -621,11 +621,11 @@ const LsStatusbar = class {
|
|
|
621
621
|
else {
|
|
622
622
|
document.removeEventListener('click', this.zoomMenuClickHandler, true);
|
|
623
623
|
}
|
|
624
|
-
} }, Math.round(this.zoom * 100), "%"), this.showZoomMenu && (h("div", { key: '
|
|
624
|
+
} }, Math.round(this.zoom * 100), "%"), this.showZoomMenu && (h("div", { key: 'f0f85d4c6a5c5abb0082e86be9fdbd4d12a12fb3', id: "ls-zoom-menu", class: "ls-dv-zoom-menu" }, [2, 1.75, 1.5, 1.25, 1, 0.75, 0.5, 0.25].map(level => (h("button", { class: { 'ls-dv-zoom-menu-item': true, 'active': Math.round(this.zoom * 100) === Math.round(level * 100) }, onClick: () => {
|
|
625
625
|
this.setZoom(level);
|
|
626
626
|
this.showZoomMenu = false;
|
|
627
627
|
document.removeEventListener('click', this.zoomMenuClickHandler, true);
|
|
628
|
-
} }, Math.round(level * 100), "%", Math.round(this.zoom * 100) === Math.round(level * 100) && h("ls-icon", { name: "check-icon", size: 14 })))))), h("button", { key: '
|
|
628
|
+
} }, Math.round(level * 100), "%", Math.round(this.zoom * 100) === Math.round(level * 100) && h("ls-icon", { name: "check-icon", size: 14 })))))), h("button", { key: 'a38a804049f94cba70d971abf0f58e0d9d43b18f', onClick: () => this.setZoom(this.editor.zoom / 0.8), id: "zoom-in-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('statusbar.zoomin') }, h("ls-icon", { key: '068c11f60c6f720f35edb708e576c4aa2ea088a2', name: "zoom-in-icon" }))), !isPreview && (h("div", { key: '836b1aeba9b7889ea5179abb85efab92aab47bf6', class: 'ls-dv-status-bar-section' }, h("button", { key: '307f97758525ea29151c6e35e4f303b9da6dd226', onClick: () => this.fitWidth(), id: "fit-width-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('statusbar.fitwidth') }, h("ls-icon", { key: '42ceb3d52ad6d31c38dc473317aa6b23af22bcc9', name: "fit-width-icon" })), h("button", { key: 'ee95d25f126735b2795813f2399eac7edf5c0420', onClick: () => this.fitHeight(), id: "fit-height-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('statusbar.fitheight') }, h("ls-icon", { key: '04ddc66e1fbcadc80d63e2afd3ade9faf8eac8bc', name: "fit-height-icon" })))), h("div", { key: '50e0ea122a95e934f85cd33b1cf0df1eaaecaac3', class: 'ls-dv-status-bar-section', style: this.pageCount === 1 ? { display: 'none' } : {} }, h("button", { key: '59293ddd95468c0f01849de3fdb75ba8664b572c', onClick: () => {
|
|
629
629
|
this.showThumbnails = !this.showThumbnails;
|
|
630
630
|
if (this.showThumbnails) {
|
|
631
631
|
requestAnimationFrame(() => {
|
|
@@ -638,7 +638,7 @@ const LsStatusbar = class {
|
|
|
638
638
|
else {
|
|
639
639
|
document.removeEventListener('click', this.outsideClickHandler);
|
|
640
640
|
}
|
|
641
|
-
}, id: "page-thumbnails-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('statusbar.pagethumbnails') }, h("ls-icon", { key: '
|
|
641
|
+
}, id: "page-thumbnails-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('statusbar.pagethumbnails') }, h("ls-icon", { key: '57f1da537f3909bc72933d7f9e5bd61495ab0f18', name: !this.showThumbnails ? 'side-panel-open-right-icon' : 'side-panel-close-right-icon', size: 18 }))), this.showThumbnails && (h("div", { key: 'e6936f45285b825ed96b56e9316754082558b757', class: "ls-dv-thumbnail-popover" }, h("div", { key: 'edfd8ba1e8108c0aa9252aa78c7b6a268ba7e006', id: "ls-thumbnail-container", class: "ls-dv-thumbnail-grid" })))), !isPreview && h("ls-helper-bar", { key: 'c883f32c7a33b3f08006e972ce0d9698f04e8a4f' }), h("span", { key: '613689fe8f313f61a0cd104479c0e22d1105346d', class: "ls-dv-version" }, "v", version), h("ls-tooltip", { key: '7a4e67c40ed2e46dea34444ba9a36a165816e809', tooltipId: "ls-dv-tooltip" }), h("slot", { key: '8f3dbe04c66ff9192f62e8f16a3bf5c5adb9fe1e' }))));
|
|
642
642
|
}
|
|
643
643
|
static get watchers() { return {
|
|
644
644
|
"page": ["onPageChange"]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-CItPoq74.js';
|
|
2
|
-
import { d as dvI18n } from './i18n-
|
|
3
|
-
import { o as oob, m as moveField, u as updateTemplate, r as recalculateCoordinates, s as syncRoles, b as matchData,
|
|
2
|
+
import { d as dvI18n } from './i18n-WVWIAGo_.js';
|
|
3
|
+
import { o as oob, m as moveField, u as updateTemplate, r as recalculateCoordinates, s as syncRoles, b as matchData, v as validate, g as getInputType, c as getApiType, d as addField, e as getTemplate } from './editorUtils-DcBt3fOj.js';
|
|
4
4
|
import { D as DEFAULT_FONT_SIZE$1, a as DEFAULT_FONT_NAME, F as FIELD_DEFAULTS } from './fieldDefaults-04cXI5GQ.js';
|
|
5
|
-
import { c as copySelected, a as cutSelected, p as pasteClipboard, u as updateSelectionBox, t as toolboxDragStart, m as mouseClick, b as mouseDown, d as mouseMove, e as mouseUp, f as mouseDoubleClick } from './mouseHandlers-
|
|
5
|
+
import { c as copySelected, a as cutSelected, p as pasteClipboard, u as updateSelectionBox, t as toolboxDragStart, m as mouseClick, b as mouseDown, d as mouseMove, e as mouseUp, f as mouseDoubleClick } from './mouseHandlers-CUHWhJed.js';
|
|
6
6
|
import { r as redo, a as undo, b as recordMutations } from './history-xqZBqrca.js';
|
|
7
7
|
import './defaultPalette-CwCWCxsI.js';
|
|
8
8
|
|
|
@@ -30469,7 +30469,7 @@ async function checkWitness(defaultExperience) {
|
|
|
30469
30469
|
await Promise.all(witActions);
|
|
30470
30470
|
}
|
|
30471
30471
|
|
|
30472
|
-
const lsDocumentViewerCss = () =>
|
|
30472
|
+
const lsDocumentViewerCss = () => `*,*::before,*::after{box-sizing:border-box}*{margin:0}@media (prefers-reduced-motion: no-preference){html{interpolate-size:allow-keywords}}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}#root,#__next{isolation:isolate}:host{display:flex;flex-direction:column;width:100%;height:100vh;position:relative;overflow:hidden;container-type:size;font-family:var(--font-family, "IBM Plex Sans", sans-serif);font-size:var(--text-sm);margin:0px;padding:0px}:host *{scrollbar-width:none}:host *::-webkit-scrollbar{display:none}.ls-dv-left-slot-wrapper{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);z-index:2000}slot{justify-content:center;align-items:center;border-radius:1rem;font-size:0.75rem;font-style:normal;font-weight:500;line-height:1.25rem;width:fit-content;background-color:var(--green-30, #9df5d4);color:var(--green-100, #125241)}.ls-dv-right-slot-wrapper{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);z-index:2000}.ls-dv-validation-tag-wrapper{position:absolute;top:1rem;right:1rem;z-index:2000;display:flex;width:100%;align-items:center;justify-content:center;padding:0.375rem;gap:0.5rem;width:fit-content;border-radius:1.25rem;border:1px solid var(--gray-20, #edeff2);background:var(--white, #ffffff);box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.ls-dv-page-loader{position:absolute;display:flex;top:0;left:0;align-items:center;justify-content:center;background-color:rgba(251, 251, 251, 0.3);backdrop-filter:blur(2px);height:100%;width:100%;z-index:4000}.ls-dv-custom-loader-slot{position:absolute;top:0;left:0;height:100%;width:100%;z-index:3999}#pdf-canvas{top:0px;left:0px;width:6.25rem;height:6.25rem;box-shadow:0 0.5rem 2rem 0 rgba(0, 0, 0, 0.12)}#ls-mid-area{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;overflow:hidden}.ls-dv-document-frame-wrapper{display:flex;flex-direction:column;justify-content:start;align-items:start;overflow:visible;max-height:100%;width:100%;overflow:scroll;padding:5rem 23.75rem 2rem 23.75rem;position:relative;user-select:none;-webkit-user-select:none}.ls-dv-document-frame-wrapper--preview{align-items:center;padding:2rem}.ls-dv-select-menu-position{position:absolute;top:0;left:calc(100% + 0.5rem);z-index:999}.ls-dv-select-menu-floating{z-index:999;pointer-events:auto}#ls-document-frame{position:relative;height:98cqh;margin-right:auto;margin-left:auto}.ls-dv-prev-button{position:relative;bottom:1.875rem}.ls-dv-next-button{position:relative;bottom:1.875rem}.ls-dv-field-box{z-index:1000}#ls-box-selector{position:absolute;visibility:hidden;background-color:color-mix(in srgb, var(--primary-20, #c7ddff) 20%, transparent);border:1px dashed var(--primary-50, #5185ff)}#ls-drag-selector{position:absolute;visibility:hidden;background-color:color-mix(in srgb, var(--primary-20, #c7ddff) 20%, transparent);border:1px dashed var(--primary-50, #5185ff)}#ls-editor-form{display:flex;width:100%;height:calc(100cqh - 2.25rem);min-height:0;position:relative;overflow:hidden;background:var(--gray-10, #f7f8fa);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.04) inset, 0 10px 15px 0 rgba(0, 0, 0, 0.04) inset}.ls-dv-hidden{visibility:hidden;display:none;width:0px}.ls-dv-page-header{position:relative;display:flex;height:2.25rem;gap:0.5rem;padding:0.25rem 0.75rem;justify-content:center;align-items:center}.ls-dv-header-text-1{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.ls-dv-header-text-2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.ls-dv-expand-fields-row{display:flex;align-items:center;gap:0.5rem;padding:0.5rem;cursor:pointer;color:var(--gray-80, #6f7176);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-dv-expand-fields-row p{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem;}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem}.ls-dv-input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:var(--primary-60, #4456f6)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}.ls-dv-error-state{position:absolute;display:flex;top:0;left:0;align-items:center;justify-content:center;height:100%;width:100%;z-index:4000;background-color:var(--gray-10, #f7f8fa)}.ls-dv-error-card{display:flex;flex-direction:column;align-items:center;gap:0.5rem;padding:2rem;border-radius:0.75rem;background:white;box-shadow:0 0.25rem 1rem rgba(0, 0, 0, 0.08);max-width:24rem;text-align:center;color:var(--gray-80, #6f7176)}.ls-dv-error-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-weight:600;line-height:1.5rem}.ls-dv-error-message{color:var(--gray-80, #6f7176);font-size:0.875rem;line-height:1.25rem}`;
|
|
30473
30473
|
|
|
30474
30474
|
// Polyfill URL.parse for older browsers (used by pdfjs-dist)
|
|
30475
30475
|
if (typeof URL.parse !== 'function') {
|
|
@@ -30788,7 +30788,12 @@ const LsDocumentViewer = class {
|
|
|
30788
30788
|
}
|
|
30789
30789
|
matchData.bind(this)(result);
|
|
30790
30790
|
})
|
|
30791
|
-
.then(() => this.syncChange(me))
|
|
30791
|
+
.then(() => this.syncChange(me))
|
|
30792
|
+
.catch(() => {
|
|
30793
|
+
// Revalidate against current template state on API failure
|
|
30794
|
+
this.validationErrors = validate.bind(this)(this._template);
|
|
30795
|
+
this.validate.emit({ valid: this.validationErrors.length === 0, errors: this.validationErrors });
|
|
30796
|
+
}));
|
|
30792
30797
|
Promise.all(promises).finally(() => {
|
|
30793
30798
|
requestAnimationFrame(() => {
|
|
30794
30799
|
this.isMutating = false;
|
|
@@ -30800,6 +30805,7 @@ const LsDocumentViewer = class {
|
|
|
30800
30805
|
const details = event.detail;
|
|
30801
30806
|
if (!details || !Array.isArray(details) || details.length === 0)
|
|
30802
30807
|
return;
|
|
30808
|
+
event.stopPropagation();
|
|
30803
30809
|
const source = event.target;
|
|
30804
30810
|
const isFromEditorField = source?.tagName === 'LS-EDITOR-FIELD';
|
|
30805
30811
|
for (const detail of details) {
|
|
@@ -30821,6 +30827,19 @@ const LsDocumentViewer = class {
|
|
|
30821
30827
|
}
|
|
30822
30828
|
}
|
|
30823
30829
|
}
|
|
30830
|
+
// Optimistic validation: run validate against a temp template with the updated element
|
|
30831
|
+
const optimisticTemplate = {
|
|
30832
|
+
...this._template,
|
|
30833
|
+
elementConnection: {
|
|
30834
|
+
...this._template.elementConnection,
|
|
30835
|
+
templateElements: this._template.elementConnection.templateElements.map(el => {
|
|
30836
|
+
const updated = details.find(d => d.action === 'update' && d.data?.id === el.id);
|
|
30837
|
+
return updated ? { ...el, ...updated.data } : el;
|
|
30838
|
+
}),
|
|
30839
|
+
},
|
|
30840
|
+
};
|
|
30841
|
+
this.validationErrors = validate.bind(this)(optimisticTemplate);
|
|
30842
|
+
this.validate.emit({ valid: this.validationErrors.length === 0, errors: this.validationErrors });
|
|
30824
30843
|
}
|
|
30825
30844
|
handleFieldTypeSelected(event) {
|
|
30826
30845
|
const fields = this.component.shadowRoot.querySelectorAll('ls-toolbox-field');
|
|
@@ -31354,12 +31373,12 @@ const LsDocumentViewer = class {
|
|
|
31354
31373
|
return false;
|
|
31355
31374
|
}
|
|
31356
31375
|
render() {
|
|
31357
|
-
return (h(Host, { key: '
|
|
31376
|
+
return (h(Host, { key: '4d4c75a54c91e7273c430d8c2b282baa73df1e00' }, h(h.Fragment, null, this.isLoading && (h(h.Fragment, null, h("div", { key: '16fddb4381e60acd21ccb788f7384d462c9842f4', class: 'ls-dv-page-loader' }, h("ls-loading-logo", { key: '06f725f8d84b42705fc4ddd3fd30cd1b0080f0b6', size: 200, colour: "var(--primary-60)" })), h("div", { key: '4111150eb3477de0f4009ed9a1804e1e64462912', class: 'ls-dv-custom-loader-slot' }, h("slot", { key: '78000f2316bce8a385b569e01ff8f588d77b37a2', name: "custom-loader" })), this.mode === 'compose' && h("ls-compose-loader", { key: 'f4db44ff52abffca9e085e165e6efd8cd5cae9ad' }))), this.error && (h("div", { key: '1dba9f3d2b69fbcc148bd788260bbd5bbf0833eb', class: "ls-dv-error-state" }, h("div", { key: '58c86e02e48c7114aa3dce362716591638ac1cb0', class: "ls-dv-error-card" }, h("ls-icon", { key: '340716a3374fcb4001079280ca02d0c9ff7f449b', name: "exclamation-circle-icon", size: 32, style: { color: 'var(--red-60, #dc2626)' } }), h("p", { key: '52948097994a8a4f838303b851a5b0e2470cb2de', class: "ls-dv-error-title" }, this.errorTitle), h("p", { key: '75d191ca2ff7fe750dd0fe330cdde575971f95b2', class: "ls-dv-error-message" }, this.error)))), h("div", { key: 'f5ff447ed5f8b0609aec7adc244c2fa1ee78f6e5', class: "ls-dv-page-header" }, h("div", { key: 'a01d517df7980287605cf8efc2aa4e6668c59173', class: 'ls-dv-left-slot-wrapper' }, h("slot", { key: '8aacd47986783c01bf8c1d593ce5bd1142facfc5', name: "left-button" })), h("div", { key: 'b9e9245183f497757d3684ab25bd52279b2d0bf0', class: 'ls-dv-right-slot-wrapper' }, h("slot", { key: '7ce7e1b8449cee24a8fa6f99645b98f1ec67f4f3', name: "right-button" })), this.mode === 'editor' && (h("div", { key: '7ae7ab56697b25a04fadb171be58efa32124a480' }, h("span", { key: '7653b69dd162c49a0d87fe4584204f759bde97fc', class: "ls-dv-header-text-1" }, dvI18n.t('viewer.templatecreation')), h("span", { key: '91225711049bfbb4bfd42b1c3ba4fffbfb8913b7' }, "/"), h("span", { key: 'f4fcda04089ccdf5cc86999ba399a5017ea461e3', class: "ls-dv-header-text-2" }, this._template?.title))), this.mode === 'compose' && (h("div", { key: '6bfa21d0e4c80395e1e6477074cdc0d989f12a1d', style: { display: 'flex', alignItems: 'center', gap: '0.25rem' } }, h("slot", { key: '2a749c7fbd2f89e2bdba59b3a627be3decca9b1e', name: "top-bar" })))), h("form", { key: '436b84d724bef775dbe8e60abcfd3b1b6223b915', id: "ls-editor-form" }, h("ls-left-bar", { key: 'ee19abe6108dbae2ee8348a4a98ccb74c5ae72d4', mode: this.mode, selected: this.selected, manager: this.manager, signer: this.signer, filtertoolbox: this.filtertoolbox, template: this._template, recipients: this._recipients, validationErrors: this.validationErrors, fieldTypeSelected: this.fieldTypeSelected, displayTable: this.displayTable, selectedDataItems: this.selectedDataItems, busy: this.isMutating, onManagerChange: e => this.handleManagerChange(e.detail), onClearSelected: () => {
|
|
31358
31377
|
this.unselect();
|
|
31359
31378
|
const toolbar = this.component.shadowRoot.getElementById('ls-toolbar');
|
|
31360
31379
|
if (toolbar)
|
|
31361
31380
|
toolbar.dataItem = [];
|
|
31362
|
-
} }, h("slot", { key: '
|
|
31381
|
+
} }, h("slot", { key: '7da43061411b20834f28e6149bd1508d227ae4b9', name: "recipient-panel", slot: "recipient-panel" })), h("ls-toolbar", { key: 'fb6b389c2c3d75eac4ff2b802ee0bd0728a7c7e1', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo, mode: this.mode, signer: this.signer, selected: this.selected, pageNum: this.pageNum }), h("div", { key: 'd8bd7fd6b6fcc26887376c8762589a8cec26b8dc', id: "ls-mid-area" }, h("div", { key: '808c838b658d92d451592decf4b8113311e8d6cd', class: { 'ls-dv-document-frame-wrapper': true, 'ls-dv-document-frame-wrapper--preview': this.mode === 'preview' }, id: "document-frame-wrapper" }, h("div", { key: '2a3332e5d99adf1727527f297dadc1de7efbb9c0', id: "ls-document-frame" }, h("canvas", { key: 'de67fd9855263650465fb7c1f818bccb2d594d55', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'ls-dv-hidden' : '' }), h("ls-editor-table", { key: '9ab1d398e33a5e8e9743017b95b700a7b625d6ba', editor: this, class: this.displayTable ? '' : 'ls-dv-hidden' }), h("div", { key: 'ed7c0ace0a6b2defdee1dd2479bf3c53af89bb4a', id: "ls-box-selector" }), h("div", { key: '2f862b72b295be46c2220dc159150b3531db20f0', id: "ls-drag-selector" }), this.mode !== 'preview' && !this._template?.locked && !this.isLoading && this._template?.elementConnection?.templateElements?.length > 0 && (h("ls-select-menu", { key: '6d8417c85f3dd9119089408b7735f50075e0048f', class: "ls-dv-select-menu-position", selected: this.selected, pageNum: this.pageNum, editor: this })), this.mode !== 'preview' && !this._template?.locked && !this.isLoading && this._template?.elementConnection?.templateElements?.length > 0 && (h("ls-select-menu", { key: 'c57c5e3c6a199426a3d1884aebca895adf6be195', class: "ls-dv-select-menu-floating", selected: this.selected, pageNum: this.pageNum, editor: this, floating: true })))), h("ls-statusbar", { key: 'f5987ae88a446e19a54c051ed7b0d420ce62e739', editor: this, page: this.pageNum, pageCount: this.pageCount, mode: this.mode }), this.mode === 'editor' && (h("div", { key: '37f5e0db9b1a55b1d8bde72de1dcaec584b99b8c', class: 'ls-dv-validation-tag-wrapper' }, h("ls-validation-tag", { key: '9494671b07d6542111b42c05908a5f1c150daa83', validationErrors: this.validationErrors }), h("slot", { key: '80e799322771024181781da6cf268ff0986cdfef', name: "next-button" })))))), h("ls-tooltip", { key: 'e13794838bb1484beb2c0b4bee1647b66e144042', tooltipId: "ls-dv-tooltip" })));
|
|
31363
31382
|
}
|
|
31364
31383
|
static get watchers() { return {
|
|
31365
31384
|
"language": ["languageChanged"],
|